From 0a4c381b040bb4ce281abc0458bf84190ed9b486 Mon Sep 17 00:00:00 2001 From: TJ DeVries Date: Mon, 8 Apr 2024 08:35:50 -0400 Subject: [PATCH] feat: move to cody agent binaries --- build/init.lua | 2 +- dist/cody-agent.js | 229955 ------------------------------------ lua/sg/build.lua | 262 +- lua/sg/cody/rpc.lua | 4 +- lua/sg/cody/rpc/chat.lua | 4 +- 5 files changed, 194 insertions(+), 230033 deletions(-) delete mode 100644 dist/cody-agent.js diff --git a/build/init.lua b/build/init.lua index 180f1a13..3c4cccaa 100644 --- a/build/init.lua +++ b/build/init.lua @@ -15,7 +15,7 @@ config.accept_tos = true -- This is the default path of downloading binaries if config.download_binaries or config.download_binaries == nil then - return require("sg.build").download() + return require("sg.build").download_sync() else -- This is the path to build these manually. diff --git a/dist/cody-agent.js b/dist/cody-agent.js deleted file mode 100644 index cb7faf01..00000000 --- a/dist/cody-agent.js +++ /dev/null @@ -1,229955 +0,0 @@ -"use strict"; -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __esm = (fn, res) => function __init() { - return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res; -}; -var __commonJS = (cb, mod) => function __require() { - return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; -}; -var __export = (target, all3) => { - for (var name in all3) - __defProp(target, name, { get: all3[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default")); -var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, - mod -)); -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); - -// ../node_modules/.pnpm/commander@11.1.0/node_modules/commander/lib/error.js -var require_error = __commonJS({ - "../node_modules/.pnpm/commander@11.1.0/node_modules/commander/lib/error.js"(exports2) { - var CommanderError2 = class extends Error { - /** - * Constructs the CommanderError class - * @param {number} exitCode suggested exit code which could be used with process.exit - * @param {string} code an id string representing the error - * @param {string} message human-readable description of the error - * @constructor - */ - constructor(exitCode, code, message) { - super(message); - Error.captureStackTrace(this, this.constructor); - this.name = this.constructor.name; - this.code = code; - this.exitCode = exitCode; - this.nestedError = void 0; - } - }; - var InvalidArgumentError2 = class extends CommanderError2 { - /** - * Constructs the InvalidArgumentError class - * @param {string} [message] explanation of why argument is invalid - * @constructor - */ - constructor(message) { - super(1, "commander.invalidArgument", message); - Error.captureStackTrace(this, this.constructor); - this.name = this.constructor.name; - } - }; - exports2.CommanderError = CommanderError2; - exports2.InvalidArgumentError = InvalidArgumentError2; - } -}); - -// ../node_modules/.pnpm/commander@11.1.0/node_modules/commander/lib/argument.js -var require_argument = __commonJS({ - "../node_modules/.pnpm/commander@11.1.0/node_modules/commander/lib/argument.js"(exports2) { - var { InvalidArgumentError: InvalidArgumentError2 } = require_error(); - var Argument2 = class { - /** - * Initialize a new command argument with the given name and description. - * The default is that the argument is required, and you can explicitly - * indicate this with <> around the name. Put [] around the name for an optional argument. - * - * @param {string} name - * @param {string} [description] - */ - constructor(name, description) { - this.description = description || ""; - this.variadic = false; - this.parseArg = void 0; - this.defaultValue = void 0; - this.defaultValueDescription = void 0; - this.argChoices = void 0; - switch (name[0]) { - case "<": - this.required = true; - this._name = name.slice(1, -1); - break; - case "[": - this.required = false; - this._name = name.slice(1, -1); - break; - default: - this.required = true; - this._name = name; - break; - } - if (this._name.length > 3 && this._name.slice(-3) === "...") { - this.variadic = true; - this._name = this._name.slice(0, -3); - } - } - /** - * Return argument name. - * - * @return {string} - */ - name() { - return this._name; - } - /** - * @api private - */ - _concatValue(value, previous) { - if (previous === this.defaultValue || !Array.isArray(previous)) { - return [value]; - } - return previous.concat(value); - } - /** - * Set the default value, and optionally supply the description to be displayed in the help. - * - * @param {*} value - * @param {string} [description] - * @return {Argument} - */ - default(value, description) { - this.defaultValue = value; - this.defaultValueDescription = description; - return this; - } - /** - * Set the custom handler for processing CLI command arguments into argument values. - * - * @param {Function} [fn] - * @return {Argument} - */ - argParser(fn) { - this.parseArg = fn; - return this; - } - /** - * Only allow argument value to be one of choices. - * - * @param {string[]} values - * @return {Argument} - */ - choices(values) { - this.argChoices = values.slice(); - this.parseArg = (arg, previous) => { - if (!this.argChoices.includes(arg)) { - throw new InvalidArgumentError2(`Allowed choices are ${this.argChoices.join(", ")}.`); - } - if (this.variadic) { - return this._concatValue(arg, previous); - } - return arg; - }; - return this; - } - /** - * Make argument required. - */ - argRequired() { - this.required = true; - return this; - } - /** - * Make argument optional. - */ - argOptional() { - this.required = false; - return this; - } - }; - function humanReadableArgName(arg) { - const nameOutput = arg.name() + (arg.variadic === true ? "..." : ""); - return arg.required ? "<" + nameOutput + ">" : "[" + nameOutput + "]"; - } - exports2.Argument = Argument2; - exports2.humanReadableArgName = humanReadableArgName; - } -}); - -// ../node_modules/.pnpm/commander@11.1.0/node_modules/commander/lib/help.js -var require_help = __commonJS({ - "../node_modules/.pnpm/commander@11.1.0/node_modules/commander/lib/help.js"(exports2) { - var { humanReadableArgName } = require_argument(); - var Help2 = class { - constructor() { - this.helpWidth = void 0; - this.sortSubcommands = false; - this.sortOptions = false; - this.showGlobalOptions = false; - } - /** - * Get an array of the visible subcommands. Includes a placeholder for the implicit help command, if there is one. - * - * @param {Command} cmd - * @returns {Command[]} - */ - visibleCommands(cmd) { - const visibleCommands = cmd.commands.filter((cmd2) => !cmd2._hidden); - if (cmd._hasImplicitHelpCommand()) { - const [, helpName, helpArgs] = cmd._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/); - const helpCommand = cmd.createCommand(helpName).helpOption(false); - helpCommand.description(cmd._helpCommandDescription); - if (helpArgs) - helpCommand.arguments(helpArgs); - visibleCommands.push(helpCommand); - } - if (this.sortSubcommands) { - visibleCommands.sort((a, b) => { - return a.name().localeCompare(b.name()); - }); - } - return visibleCommands; - } - /** - * Compare options for sort. - * - * @param {Option} a - * @param {Option} b - * @returns number - */ - compareOptions(a, b) { - const getSortKey = (option) => { - return option.short ? option.short.replace(/^-/, "") : option.long.replace(/^--/, ""); - }; - return getSortKey(a).localeCompare(getSortKey(b)); - } - /** - * Get an array of the visible options. Includes a placeholder for the implicit help option, if there is one. - * - * @param {Command} cmd - * @returns {Option[]} - */ - visibleOptions(cmd) { - const visibleOptions = cmd.options.filter((option) => !option.hidden); - const showShortHelpFlag = cmd._hasHelpOption && cmd._helpShortFlag && !cmd._findOption(cmd._helpShortFlag); - const showLongHelpFlag = cmd._hasHelpOption && !cmd._findOption(cmd._helpLongFlag); - if (showShortHelpFlag || showLongHelpFlag) { - let helpOption; - if (!showShortHelpFlag) { - helpOption = cmd.createOption(cmd._helpLongFlag, cmd._helpDescription); - } else if (!showLongHelpFlag) { - helpOption = cmd.createOption(cmd._helpShortFlag, cmd._helpDescription); - } else { - helpOption = cmd.createOption(cmd._helpFlags, cmd._helpDescription); - } - visibleOptions.push(helpOption); - } - if (this.sortOptions) { - visibleOptions.sort(this.compareOptions); - } - return visibleOptions; - } - /** - * Get an array of the visible global options. (Not including help.) - * - * @param {Command} cmd - * @returns {Option[]} - */ - visibleGlobalOptions(cmd) { - if (!this.showGlobalOptions) - return []; - const globalOptions = []; - for (let ancestorCmd = cmd.parent; ancestorCmd; ancestorCmd = ancestorCmd.parent) { - const visibleOptions = ancestorCmd.options.filter((option) => !option.hidden); - globalOptions.push(...visibleOptions); - } - if (this.sortOptions) { - globalOptions.sort(this.compareOptions); - } - return globalOptions; - } - /** - * Get an array of the arguments if any have a description. - * - * @param {Command} cmd - * @returns {Argument[]} - */ - visibleArguments(cmd) { - if (cmd._argsDescription) { - cmd.registeredArguments.forEach((argument) => { - argument.description = argument.description || cmd._argsDescription[argument.name()] || ""; - }); - } - if (cmd.registeredArguments.find((argument) => argument.description)) { - return cmd.registeredArguments; - } - return []; - } - /** - * Get the command term to show in the list of subcommands. - * - * @param {Command} cmd - * @returns {string} - */ - subcommandTerm(cmd) { - const args3 = cmd.registeredArguments.map((arg) => humanReadableArgName(arg)).join(" "); - return cmd._name + (cmd._aliases[0] ? "|" + cmd._aliases[0] : "") + (cmd.options.length ? " [options]" : "") + // simplistic check for non-help option - (args3 ? " " + args3 : ""); - } - /** - * Get the option term to show in the list of options. - * - * @param {Option} option - * @returns {string} - */ - optionTerm(option) { - return option.flags; - } - /** - * Get the argument term to show in the list of arguments. - * - * @param {Argument} argument - * @returns {string} - */ - argumentTerm(argument) { - return argument.name(); - } - /** - * Get the longest command term length. - * - * @param {Command} cmd - * @param {Help} helper - * @returns {number} - */ - longestSubcommandTermLength(cmd, helper) { - return helper.visibleCommands(cmd).reduce((max, command) => { - return Math.max(max, helper.subcommandTerm(command).length); - }, 0); - } - /** - * Get the longest option term length. - * - * @param {Command} cmd - * @param {Help} helper - * @returns {number} - */ - longestOptionTermLength(cmd, helper) { - return helper.visibleOptions(cmd).reduce((max, option) => { - return Math.max(max, helper.optionTerm(option).length); - }, 0); - } - /** - * Get the longest global option term length. - * - * @param {Command} cmd - * @param {Help} helper - * @returns {number} - */ - longestGlobalOptionTermLength(cmd, helper) { - return helper.visibleGlobalOptions(cmd).reduce((max, option) => { - return Math.max(max, helper.optionTerm(option).length); - }, 0); - } - /** - * Get the longest argument term length. - * - * @param {Command} cmd - * @param {Help} helper - * @returns {number} - */ - longestArgumentTermLength(cmd, helper) { - return helper.visibleArguments(cmd).reduce((max, argument) => { - return Math.max(max, helper.argumentTerm(argument).length); - }, 0); - } - /** - * Get the command usage to be displayed at the top of the built-in help. - * - * @param {Command} cmd - * @returns {string} - */ - commandUsage(cmd) { - let cmdName = cmd._name; - if (cmd._aliases[0]) { - cmdName = cmdName + "|" + cmd._aliases[0]; - } - let ancestorCmdNames = ""; - for (let ancestorCmd = cmd.parent; ancestorCmd; ancestorCmd = ancestorCmd.parent) { - ancestorCmdNames = ancestorCmd.name() + " " + ancestorCmdNames; - } - return ancestorCmdNames + cmdName + " " + cmd.usage(); - } - /** - * Get the description for the command. - * - * @param {Command} cmd - * @returns {string} - */ - commandDescription(cmd) { - return cmd.description(); - } - /** - * Get the subcommand summary to show in the list of subcommands. - * (Fallback to description for backwards compatibility.) - * - * @param {Command} cmd - * @returns {string} - */ - subcommandDescription(cmd) { - return cmd.summary() || cmd.description(); - } - /** - * Get the option description to show in the list of options. - * - * @param {Option} option - * @return {string} - */ - optionDescription(option) { - const extraInfo = []; - if (option.argChoices) { - extraInfo.push( - // use stringify to match the display of the default value - `choices: ${option.argChoices.map((choice) => JSON.stringify(choice)).join(", ")}` - ); - } - if (option.defaultValue !== void 0) { - const showDefault = option.required || option.optional || option.isBoolean() && typeof option.defaultValue === "boolean"; - if (showDefault) { - extraInfo.push(`default: ${option.defaultValueDescription || JSON.stringify(option.defaultValue)}`); - } - } - if (option.presetArg !== void 0 && option.optional) { - extraInfo.push(`preset: ${JSON.stringify(option.presetArg)}`); - } - if (option.envVar !== void 0) { - extraInfo.push(`env: ${option.envVar}`); - } - if (extraInfo.length > 0) { - return `${option.description} (${extraInfo.join(", ")})`; - } - return option.description; - } - /** - * Get the argument description to show in the list of arguments. - * - * @param {Argument} argument - * @return {string} - */ - argumentDescription(argument) { - const extraInfo = []; - if (argument.argChoices) { - extraInfo.push( - // use stringify to match the display of the default value - `choices: ${argument.argChoices.map((choice) => JSON.stringify(choice)).join(", ")}` - ); - } - if (argument.defaultValue !== void 0) { - extraInfo.push(`default: ${argument.defaultValueDescription || JSON.stringify(argument.defaultValue)}`); - } - if (extraInfo.length > 0) { - const extraDescripton = `(${extraInfo.join(", ")})`; - if (argument.description) { - return `${argument.description} ${extraDescripton}`; - } - return extraDescripton; - } - return argument.description; - } - /** - * Generate the built-in help text. - * - * @param {Command} cmd - * @param {Help} helper - * @returns {string} - */ - formatHelp(cmd, helper) { - const termWidth = helper.padWidth(cmd, helper); - const helpWidth = helper.helpWidth || 80; - const itemIndentWidth = 2; - const itemSeparatorWidth = 2; - function formatItem(term, description) { - if (description) { - const fullText = `${term.padEnd(termWidth + itemSeparatorWidth)}${description}`; - return helper.wrap(fullText, helpWidth - itemIndentWidth, termWidth + itemSeparatorWidth); - } - return term; - } - function formatList(textArray) { - return textArray.join("\n").replace(/^/gm, " ".repeat(itemIndentWidth)); - } - let output = [`Usage: ${helper.commandUsage(cmd)}`, ""]; - const commandDescription = helper.commandDescription(cmd); - if (commandDescription.length > 0) { - output = output.concat([helper.wrap(commandDescription, helpWidth, 0), ""]); - } - const argumentList = helper.visibleArguments(cmd).map((argument) => { - return formatItem(helper.argumentTerm(argument), helper.argumentDescription(argument)); - }); - if (argumentList.length > 0) { - output = output.concat(["Arguments:", formatList(argumentList), ""]); - } - const optionList = helper.visibleOptions(cmd).map((option) => { - return formatItem(helper.optionTerm(option), helper.optionDescription(option)); - }); - if (optionList.length > 0) { - output = output.concat(["Options:", formatList(optionList), ""]); - } - if (this.showGlobalOptions) { - const globalOptionList = helper.visibleGlobalOptions(cmd).map((option) => { - return formatItem(helper.optionTerm(option), helper.optionDescription(option)); - }); - if (globalOptionList.length > 0) { - output = output.concat(["Global Options:", formatList(globalOptionList), ""]); - } - } - const commandList = helper.visibleCommands(cmd).map((cmd2) => { - return formatItem(helper.subcommandTerm(cmd2), helper.subcommandDescription(cmd2)); - }); - if (commandList.length > 0) { - output = output.concat(["Commands:", formatList(commandList), ""]); - } - return output.join("\n"); - } - /** - * Calculate the pad width from the maximum term length. - * - * @param {Command} cmd - * @param {Help} helper - * @returns {number} - */ - padWidth(cmd, helper) { - return Math.max( - helper.longestOptionTermLength(cmd, helper), - helper.longestGlobalOptionTermLength(cmd, helper), - helper.longestSubcommandTermLength(cmd, helper), - helper.longestArgumentTermLength(cmd, helper) - ); - } - /** - * Wrap the given string to width characters per line, with lines after the first indented. - * Do not wrap if insufficient room for wrapping (minColumnWidth), or string is manually formatted. - * - * @param {string} str - * @param {number} width - * @param {number} indent - * @param {number} [minColumnWidth=40] - * @return {string} - * - */ - wrap(str, width, indent, minColumnWidth = 40) { - const indents = " \\f\\t\\v\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF"; - const manualIndent = new RegExp(`[\\n][${indents}]+`); - if (str.match(manualIndent)) - return str; - const columnWidth = width - indent; - if (columnWidth < minColumnWidth) - return str; - const leadingStr = str.slice(0, indent); - const columnText = str.slice(indent).replace("\r\n", "\n"); - const indentString = " ".repeat(indent); - const zeroWidthSpace = "\u200B"; - const breaks = `\\s${zeroWidthSpace}`; - const regex = new RegExp(` -|.{1,${columnWidth - 1}}([${breaks}]|$)|[^${breaks}]+?([${breaks}]|$)`, "g"); - const lines2 = columnText.match(regex) || []; - return leadingStr + lines2.map((line, i) => { - if (line === "\n") - return ""; - return (i > 0 ? indentString : "") + line.trimEnd(); - }).join("\n"); - } - }; - exports2.Help = Help2; - } -}); - -// ../node_modules/.pnpm/commander@11.1.0/node_modules/commander/lib/option.js -var require_option = __commonJS({ - "../node_modules/.pnpm/commander@11.1.0/node_modules/commander/lib/option.js"(exports2) { - var { InvalidArgumentError: InvalidArgumentError2 } = require_error(); - var Option2 = class { - /** - * Initialize a new `Option` with the given `flags` and `description`. - * - * @param {string} flags - * @param {string} [description] - */ - constructor(flags2, description) { - this.flags = flags2; - this.description = description || ""; - this.required = flags2.includes("<"); - this.optional = flags2.includes("["); - this.variadic = /\w\.\.\.[>\]]$/.test(flags2); - this.mandatory = false; - const optionFlags = splitOptionFlags(flags2); - this.short = optionFlags.shortFlag; - this.long = optionFlags.longFlag; - this.negate = false; - if (this.long) { - this.negate = this.long.startsWith("--no-"); - } - this.defaultValue = void 0; - this.defaultValueDescription = void 0; - this.presetArg = void 0; - this.envVar = void 0; - this.parseArg = void 0; - this.hidden = false; - this.argChoices = void 0; - this.conflictsWith = []; - this.implied = void 0; - } - /** - * Set the default value, and optionally supply the description to be displayed in the help. - * - * @param {*} value - * @param {string} [description] - * @return {Option} - */ - default(value, description) { - this.defaultValue = value; - this.defaultValueDescription = description; - return this; - } - /** - * Preset to use when option used without option-argument, especially optional but also boolean and negated. - * The custom processing (parseArg) is called. - * - * @example - * new Option('--color').default('GREYSCALE').preset('RGB'); - * new Option('--donate [amount]').preset('20').argParser(parseFloat); - * - * @param {*} arg - * @return {Option} - */ - preset(arg) { - this.presetArg = arg; - return this; - } - /** - * Add option name(s) that conflict with this option. - * An error will be displayed if conflicting options are found during parsing. - * - * @example - * new Option('--rgb').conflicts('cmyk'); - * new Option('--js').conflicts(['ts', 'jsx']); - * - * @param {string | string[]} names - * @return {Option} - */ - conflicts(names) { - this.conflictsWith = this.conflictsWith.concat(names); - return this; - } - /** - * Specify implied option values for when this option is set and the implied options are not. - * - * The custom processing (parseArg) is not called on the implied values. - * - * @example - * program - * .addOption(new Option('--log', 'write logging information to file')) - * .addOption(new Option('--trace', 'log extra details').implies({ log: 'trace.txt' })); - * - * @param {Object} impliedOptionValues - * @return {Option} - */ - implies(impliedOptionValues) { - let newImplied = impliedOptionValues; - if (typeof impliedOptionValues === "string") { - newImplied = { [impliedOptionValues]: true }; - } - this.implied = Object.assign(this.implied || {}, newImplied); - return this; - } - /** - * Set environment variable to check for option value. - * - * An environment variable is only used if when processed the current option value is - * undefined, or the source of the current value is 'default' or 'config' or 'env'. - * - * @param {string} name - * @return {Option} - */ - env(name) { - this.envVar = name; - return this; - } - /** - * Set the custom handler for processing CLI option arguments into option values. - * - * @param {Function} [fn] - * @return {Option} - */ - argParser(fn) { - this.parseArg = fn; - return this; - } - /** - * Whether the option is mandatory and must have a value after parsing. - * - * @param {boolean} [mandatory=true] - * @return {Option} - */ - makeOptionMandatory(mandatory = true) { - this.mandatory = !!mandatory; - return this; - } - /** - * Hide option in help. - * - * @param {boolean} [hide=true] - * @return {Option} - */ - hideHelp(hide = true) { - this.hidden = !!hide; - return this; - } - /** - * @api private - */ - _concatValue(value, previous) { - if (previous === this.defaultValue || !Array.isArray(previous)) { - return [value]; - } - return previous.concat(value); - } - /** - * Only allow option value to be one of choices. - * - * @param {string[]} values - * @return {Option} - */ - choices(values) { - this.argChoices = values.slice(); - this.parseArg = (arg, previous) => { - if (!this.argChoices.includes(arg)) { - throw new InvalidArgumentError2(`Allowed choices are ${this.argChoices.join(", ")}.`); - } - if (this.variadic) { - return this._concatValue(arg, previous); - } - return arg; - }; - return this; - } - /** - * Return option name. - * - * @return {string} - */ - name() { - if (this.long) { - return this.long.replace(/^--/, ""); - } - return this.short.replace(/^-/, ""); - } - /** - * Return option name, in a camelcase format that can be used - * as a object attribute key. - * - * @return {string} - * @api private - */ - attributeName() { - return camelcase(this.name().replace(/^no-/, "")); - } - /** - * Check if `arg` matches the short or long flag. - * - * @param {string} arg - * @return {boolean} - * @api private - */ - is(arg) { - return this.short === arg || this.long === arg; - } - /** - * Return whether a boolean option. - * - * Options are one of boolean, negated, required argument, or optional argument. - * - * @return {boolean} - * @api private - */ - isBoolean() { - return !this.required && !this.optional && !this.negate; - } - }; - var DualOptions = class { - /** - * @param {Option[]} options - */ - constructor(options2) { - this.positiveOptions = /* @__PURE__ */ new Map(); - this.negativeOptions = /* @__PURE__ */ new Map(); - this.dualOptions = /* @__PURE__ */ new Set(); - options2.forEach((option) => { - if (option.negate) { - this.negativeOptions.set(option.attributeName(), option); - } else { - this.positiveOptions.set(option.attributeName(), option); - } - }); - this.negativeOptions.forEach((value, key) => { - if (this.positiveOptions.has(key)) { - this.dualOptions.add(key); - } - }); - } - /** - * Did the value come from the option, and not from possible matching dual option? - * - * @param {*} value - * @param {Option} option - * @returns {boolean} - */ - valueFromOption(value, option) { - const optionKey = option.attributeName(); - if (!this.dualOptions.has(optionKey)) - return true; - const preset = this.negativeOptions.get(optionKey).presetArg; - const negativeValue = preset !== void 0 ? preset : false; - return option.negate === (negativeValue === value); - } - }; - function camelcase(str) { - return str.split("-").reduce((str2, word) => { - return str2 + word[0].toUpperCase() + word.slice(1); - }); - } - function splitOptionFlags(flags2) { - let shortFlag; - let longFlag; - const flagParts = flags2.split(/[ |,]+/); - if (flagParts.length > 1 && !/^[[<]/.test(flagParts[1])) - shortFlag = flagParts.shift(); - longFlag = flagParts.shift(); - if (!shortFlag && /^-[^-]$/.test(longFlag)) { - shortFlag = longFlag; - longFlag = void 0; - } - return { shortFlag, longFlag }; - } - exports2.Option = Option2; - exports2.splitOptionFlags = splitOptionFlags; - exports2.DualOptions = DualOptions; - } -}); - -// ../node_modules/.pnpm/commander@11.1.0/node_modules/commander/lib/suggestSimilar.js -var require_suggestSimilar = __commonJS({ - "../node_modules/.pnpm/commander@11.1.0/node_modules/commander/lib/suggestSimilar.js"(exports2) { - var maxDistance = 3; - function editDistance(a, b) { - if (Math.abs(a.length - b.length) > maxDistance) - return Math.max(a.length, b.length); - const d = []; - for (let i = 0; i <= a.length; i++) { - d[i] = [i]; - } - for (let j = 0; j <= b.length; j++) { - d[0][j] = j; - } - for (let j = 1; j <= b.length; j++) { - for (let i = 1; i <= a.length; i++) { - let cost = 1; - if (a[i - 1] === b[j - 1]) { - cost = 0; - } else { - cost = 1; - } - d[i][j] = Math.min( - d[i - 1][j] + 1, - // deletion - d[i][j - 1] + 1, - // insertion - d[i - 1][j - 1] + cost - // substitution - ); - if (i > 1 && j > 1 && a[i - 1] === b[j - 2] && a[i - 2] === b[j - 1]) { - d[i][j] = Math.min(d[i][j], d[i - 2][j - 2] + 1); - } - } - } - return d[a.length][b.length]; - } - function suggestSimilar(word, candidates) { - if (!candidates || candidates.length === 0) - return ""; - candidates = Array.from(new Set(candidates)); - const searchingOptions = word.startsWith("--"); - if (searchingOptions) { - word = word.slice(2); - candidates = candidates.map((candidate) => candidate.slice(2)); - } - let similar = []; - let bestDistance = maxDistance; - const minSimilarity = 0.4; - candidates.forEach((candidate) => { - if (candidate.length <= 1) - return; - const distance = editDistance(word, candidate); - const length = Math.max(word.length, candidate.length); - const similarity = (length - distance) / length; - if (similarity > minSimilarity) { - if (distance < bestDistance) { - bestDistance = distance; - similar = [candidate]; - } else if (distance === bestDistance) { - similar.push(candidate); - } - } - }); - similar.sort((a, b) => a.localeCompare(b)); - if (searchingOptions) { - similar = similar.map((candidate) => `--${candidate}`); - } - if (similar.length > 1) { - return ` -(Did you mean one of ${similar.join(", ")}?)`; - } - if (similar.length === 1) { - return ` -(Did you mean ${similar[0]}?)`; - } - return ""; - } - exports2.suggestSimilar = suggestSimilar; - } -}); - -// ../node_modules/.pnpm/commander@11.1.0/node_modules/commander/lib/command.js -var require_command = __commonJS({ - "../node_modules/.pnpm/commander@11.1.0/node_modules/commander/lib/command.js"(exports2) { - var EventEmitter3 = require("events").EventEmitter; - var childProcess = require("child_process"); - var path20 = require("path"); - var fs7 = require("fs"); - var process3 = require("process"); - var { Argument: Argument2, humanReadableArgName } = require_argument(); - var { CommanderError: CommanderError2 } = require_error(); - var { Help: Help2 } = require_help(); - var { Option: Option2, splitOptionFlags, DualOptions } = require_option(); - var { suggestSimilar } = require_suggestSimilar(); - var Command2 = class _Command extends EventEmitter3 { - /** - * Initialize a new `Command`. - * - * @param {string} [name] - */ - constructor(name) { - super(); - this.commands = []; - this.options = []; - this.parent = null; - this._allowUnknownOption = false; - this._allowExcessArguments = true; - this.registeredArguments = []; - this._args = this.registeredArguments; - this.args = []; - this.rawArgs = []; - this.processedArgs = []; - this._scriptPath = null; - this._name = name || ""; - this._optionValues = {}; - this._optionValueSources = {}; - this._storeOptionsAsProperties = false; - this._actionHandler = null; - this._executableHandler = false; - this._executableFile = null; - this._executableDir = null; - this._defaultCommandName = null; - this._exitCallback = null; - this._aliases = []; - this._combineFlagAndOptionalValue = true; - this._description = ""; - this._summary = ""; - this._argsDescription = void 0; - this._enablePositionalOptions = false; - this._passThroughOptions = false; - this._lifeCycleHooks = {}; - this._showHelpAfterError = false; - this._showSuggestionAfterError = true; - this._outputConfiguration = { - writeOut: (str) => process3.stdout.write(str), - writeErr: (str) => process3.stderr.write(str), - getOutHelpWidth: () => process3.stdout.isTTY ? process3.stdout.columns : void 0, - getErrHelpWidth: () => process3.stderr.isTTY ? process3.stderr.columns : void 0, - outputError: (str, write) => write(str) - }; - this._hidden = false; - this._hasHelpOption = true; - this._helpFlags = "-h, --help"; - this._helpDescription = "display help for command"; - this._helpShortFlag = "-h"; - this._helpLongFlag = "--help"; - this._addImplicitHelpCommand = void 0; - this._helpCommandName = "help"; - this._helpCommandnameAndArgs = "help [command]"; - this._helpCommandDescription = "display help for command"; - this._helpConfiguration = {}; - } - /** - * Copy settings that are useful to have in common across root command and subcommands. - * - * (Used internally when adding a command using `.command()` so subcommands inherit parent settings.) - * - * @param {Command} sourceCommand - * @return {Command} `this` command for chaining - */ - copyInheritedSettings(sourceCommand) { - this._outputConfiguration = sourceCommand._outputConfiguration; - this._hasHelpOption = sourceCommand._hasHelpOption; - this._helpFlags = sourceCommand._helpFlags; - this._helpDescription = sourceCommand._helpDescription; - this._helpShortFlag = sourceCommand._helpShortFlag; - this._helpLongFlag = sourceCommand._helpLongFlag; - this._helpCommandName = sourceCommand._helpCommandName; - this._helpCommandnameAndArgs = sourceCommand._helpCommandnameAndArgs; - this._helpCommandDescription = sourceCommand._helpCommandDescription; - this._helpConfiguration = sourceCommand._helpConfiguration; - this._exitCallback = sourceCommand._exitCallback; - this._storeOptionsAsProperties = sourceCommand._storeOptionsAsProperties; - this._combineFlagAndOptionalValue = sourceCommand._combineFlagAndOptionalValue; - this._allowExcessArguments = sourceCommand._allowExcessArguments; - this._enablePositionalOptions = sourceCommand._enablePositionalOptions; - this._showHelpAfterError = sourceCommand._showHelpAfterError; - this._showSuggestionAfterError = sourceCommand._showSuggestionAfterError; - return this; - } - /** - * @returns {Command[]} - * @api private - */ - _getCommandAndAncestors() { - const result = []; - for (let command = this; command; command = command.parent) { - result.push(command); - } - return result; - } - /** - * Define a command. - * - * There are two styles of command: pay attention to where to put the description. - * - * @example - * // Command implemented using action handler (description is supplied separately to `.command`) - * program - * .command('clone [destination]') - * .description('clone a repository into a newly created directory') - * .action((source, destination) => { - * console.log('clone command called'); - * }); - * - * // Command implemented using separate executable file (description is second parameter to `.command`) - * program - * .command('start ', 'start named service') - * .command('stop [service]', 'stop named service, or all if no name supplied'); - * - * @param {string} nameAndArgs - command name and arguments, args are `` or `[optional]` and last may also be `variadic...` - * @param {Object|string} [actionOptsOrExecDesc] - configuration options (for action), or description (for executable) - * @param {Object} [execOpts] - configuration options (for executable) - * @return {Command} returns new command for action handler, or `this` for executable command - */ - command(nameAndArgs, actionOptsOrExecDesc, execOpts) { - let desc = actionOptsOrExecDesc; - let opts = execOpts; - if (typeof desc === "object" && desc !== null) { - opts = desc; - desc = null; - } - opts = opts || {}; - const [, name, args3] = nameAndArgs.match(/([^ ]+) *(.*)/); - const cmd = this.createCommand(name); - if (desc) { - cmd.description(desc); - cmd._executableHandler = true; - } - if (opts.isDefault) - this._defaultCommandName = cmd._name; - cmd._hidden = !!(opts.noHelp || opts.hidden); - cmd._executableFile = opts.executableFile || null; - if (args3) - cmd.arguments(args3); - this.commands.push(cmd); - cmd.parent = this; - cmd.copyInheritedSettings(this); - if (desc) - return this; - return cmd; - } - /** - * Factory routine to create a new unattached command. - * - * See .command() for creating an attached subcommand, which uses this routine to - * create the command. You can override createCommand to customise subcommands. - * - * @param {string} [name] - * @return {Command} new command - */ - createCommand(name) { - return new _Command(name); - } - /** - * You can customise the help with a subclass of Help by overriding createHelp, - * or by overriding Help properties using configureHelp(). - * - * @return {Help} - */ - createHelp() { - return Object.assign(new Help2(), this.configureHelp()); - } - /** - * You can customise the help by overriding Help properties using configureHelp(), - * or with a subclass of Help by overriding createHelp(). - * - * @param {Object} [configuration] - configuration options - * @return {Command|Object} `this` command for chaining, or stored configuration - */ - configureHelp(configuration2) { - if (configuration2 === void 0) - return this._helpConfiguration; - this._helpConfiguration = configuration2; - return this; - } - /** - * The default output goes to stdout and stderr. You can customise this for special - * applications. You can also customise the display of errors by overriding outputError. - * - * The configuration properties are all functions: - * - * // functions to change where being written, stdout and stderr - * writeOut(str) - * writeErr(str) - * // matching functions to specify width for wrapping help - * getOutHelpWidth() - * getErrHelpWidth() - * // functions based on what is being written out - * outputError(str, write) // used for displaying errors, and not used for displaying help - * - * @param {Object} [configuration] - configuration options - * @return {Command|Object} `this` command for chaining, or stored configuration - */ - configureOutput(configuration2) { - if (configuration2 === void 0) - return this._outputConfiguration; - Object.assign(this._outputConfiguration, configuration2); - return this; - } - /** - * Display the help or a custom message after an error occurs. - * - * @param {boolean|string} [displayHelp] - * @return {Command} `this` command for chaining - */ - showHelpAfterError(displayHelp = true) { - if (typeof displayHelp !== "string") - displayHelp = !!displayHelp; - this._showHelpAfterError = displayHelp; - return this; - } - /** - * Display suggestion of similar commands for unknown commands, or options for unknown options. - * - * @param {boolean} [displaySuggestion] - * @return {Command} `this` command for chaining - */ - showSuggestionAfterError(displaySuggestion = true) { - this._showSuggestionAfterError = !!displaySuggestion; - return this; - } - /** - * Add a prepared subcommand. - * - * See .command() for creating an attached subcommand which inherits settings from its parent. - * - * @param {Command} cmd - new subcommand - * @param {Object} [opts] - configuration options - * @return {Command} `this` command for chaining - */ - addCommand(cmd, opts) { - if (!cmd._name) { - throw new Error(`Command passed to .addCommand() must have a name -- specify the name in Command constructor or using .name()`); - } - opts = opts || {}; - if (opts.isDefault) - this._defaultCommandName = cmd._name; - if (opts.noHelp || opts.hidden) - cmd._hidden = true; - this.commands.push(cmd); - cmd.parent = this; - return this; - } - /** - * Factory routine to create a new unattached argument. - * - * See .argument() for creating an attached argument, which uses this routine to - * create the argument. You can override createArgument to return a custom argument. - * - * @param {string} name - * @param {string} [description] - * @return {Argument} new argument - */ - createArgument(name, description) { - return new Argument2(name, description); - } - /** - * Define argument syntax for command. - * - * The default is that the argument is required, and you can explicitly - * indicate this with <> around the name. Put [] around the name for an optional argument. - * - * @example - * program.argument(''); - * program.argument('[output-file]'); - * - * @param {string} name - * @param {string} [description] - * @param {Function|*} [fn] - custom argument processing function - * @param {*} [defaultValue] - * @return {Command} `this` command for chaining - */ - argument(name, description, fn, defaultValue) { - const argument = this.createArgument(name, description); - if (typeof fn === "function") { - argument.default(defaultValue).argParser(fn); - } else { - argument.default(fn); - } - this.addArgument(argument); - return this; - } - /** - * Define argument syntax for command, adding multiple at once (without descriptions). - * - * See also .argument(). - * - * @example - * program.arguments(' [env]'); - * - * @param {string} names - * @return {Command} `this` command for chaining - */ - arguments(names) { - names.trim().split(/ +/).forEach((detail) => { - this.argument(detail); - }); - return this; - } - /** - * Define argument syntax for command, adding a prepared argument. - * - * @param {Argument} argument - * @return {Command} `this` command for chaining - */ - addArgument(argument) { - const previousArgument = this.registeredArguments.slice(-1)[0]; - if (previousArgument && previousArgument.variadic) { - throw new Error(`only the last argument can be variadic '${previousArgument.name()}'`); - } - if (argument.required && argument.defaultValue !== void 0 && argument.parseArg === void 0) { - throw new Error(`a default value for a required argument is never used: '${argument.name()}'`); - } - this.registeredArguments.push(argument); - return this; - } - /** - * Override default decision whether to add implicit help command. - * - * addHelpCommand() // force on - * addHelpCommand(false); // force off - * addHelpCommand('help [cmd]', 'display help for [cmd]'); // force on with custom details - * - * @return {Command} `this` command for chaining - */ - addHelpCommand(enableOrNameAndArgs, description) { - if (enableOrNameAndArgs === false) { - this._addImplicitHelpCommand = false; - } else { - this._addImplicitHelpCommand = true; - if (typeof enableOrNameAndArgs === "string") { - this._helpCommandName = enableOrNameAndArgs.split(" ")[0]; - this._helpCommandnameAndArgs = enableOrNameAndArgs; - } - this._helpCommandDescription = description || this._helpCommandDescription; - } - return this; - } - /** - * @return {boolean} - * @api private - */ - _hasImplicitHelpCommand() { - if (this._addImplicitHelpCommand === void 0) { - return this.commands.length && !this._actionHandler && !this._findCommand("help"); - } - return this._addImplicitHelpCommand; - } - /** - * Add hook for life cycle event. - * - * @param {string} event - * @param {Function} listener - * @return {Command} `this` command for chaining - */ - hook(event, listener) { - const allowedValues = ["preSubcommand", "preAction", "postAction"]; - if (!allowedValues.includes(event)) { - throw new Error(`Unexpected value for event passed to hook : '${event}'. -Expecting one of '${allowedValues.join("', '")}'`); - } - if (this._lifeCycleHooks[event]) { - this._lifeCycleHooks[event].push(listener); - } else { - this._lifeCycleHooks[event] = [listener]; - } - return this; - } - /** - * Register callback to use as replacement for calling process.exit. - * - * @param {Function} [fn] optional callback which will be passed a CommanderError, defaults to throwing - * @return {Command} `this` command for chaining - */ - exitOverride(fn) { - if (fn) { - this._exitCallback = fn; - } else { - this._exitCallback = (err3) => { - if (err3.code !== "commander.executeSubCommandAsync") { - throw err3; - } else { - } - }; - } - return this; - } - /** - * Call process.exit, and _exitCallback if defined. - * - * @param {number} exitCode exit code for using with process.exit - * @param {string} code an id string representing the error - * @param {string} message human-readable description of the error - * @return never - * @api private - */ - _exit(exitCode, code, message) { - if (this._exitCallback) { - this._exitCallback(new CommanderError2(exitCode, code, message)); - } - process3.exit(exitCode); - } - /** - * Register callback `fn` for the command. - * - * @example - * program - * .command('serve') - * .description('start service') - * .action(function() { - * // do work here - * }); - * - * @param {Function} fn - * @return {Command} `this` command for chaining - */ - action(fn) { - const listener = (args3) => { - const expectedArgsCount = this.registeredArguments.length; - const actionArgs = args3.slice(0, expectedArgsCount); - if (this._storeOptionsAsProperties) { - actionArgs[expectedArgsCount] = this; - } else { - actionArgs[expectedArgsCount] = this.opts(); - } - actionArgs.push(this); - return fn.apply(this, actionArgs); - }; - this._actionHandler = listener; - return this; - } - /** - * Factory routine to create a new unattached option. - * - * See .option() for creating an attached option, which uses this routine to - * create the option. You can override createOption to return a custom option. - * - * @param {string} flags - * @param {string} [description] - * @return {Option} new option - */ - createOption(flags2, description) { - return new Option2(flags2, description); - } - /** - * Wrap parseArgs to catch 'commander.invalidArgument'. - * - * @param {Option | Argument} target - * @param {string} value - * @param {*} previous - * @param {string} invalidArgumentMessage - * @api private - */ - _callParseArg(target, value, previous, invalidArgumentMessage) { - try { - return target.parseArg(value, previous); - } catch (err3) { - if (err3.code === "commander.invalidArgument") { - const message = `${invalidArgumentMessage} ${err3.message}`; - this.error(message, { exitCode: err3.exitCode, code: err3.code }); - } - throw err3; - } - } - /** - * Add an option. - * - * @param {Option} option - * @return {Command} `this` command for chaining - */ - addOption(option) { - const oname = option.name(); - const name = option.attributeName(); - if (option.negate) { - const positiveLongFlag = option.long.replace(/^--no-/, "--"); - if (!this._findOption(positiveLongFlag)) { - this.setOptionValueWithSource(name, option.defaultValue === void 0 ? true : option.defaultValue, "default"); - } - } else if (option.defaultValue !== void 0) { - this.setOptionValueWithSource(name, option.defaultValue, "default"); - } - this.options.push(option); - const handleOptionValue = (val2, invalidValueMessage, valueSource) => { - if (val2 == null && option.presetArg !== void 0) { - val2 = option.presetArg; - } - const oldValue = this.getOptionValue(name); - if (val2 !== null && option.parseArg) { - val2 = this._callParseArg(option, val2, oldValue, invalidValueMessage); - } else if (val2 !== null && option.variadic) { - val2 = option._concatValue(val2, oldValue); - } - if (val2 == null) { - if (option.negate) { - val2 = false; - } else if (option.isBoolean() || option.optional) { - val2 = true; - } else { - val2 = ""; - } - } - this.setOptionValueWithSource(name, val2, valueSource); - }; - this.on("option:" + oname, (val2) => { - const invalidValueMessage = `error: option '${option.flags}' argument '${val2}' is invalid.`; - handleOptionValue(val2, invalidValueMessage, "cli"); - }); - if (option.envVar) { - this.on("optionEnv:" + oname, (val2) => { - const invalidValueMessage = `error: option '${option.flags}' value '${val2}' from env '${option.envVar}' is invalid.`; - handleOptionValue(val2, invalidValueMessage, "env"); - }); - } - return this; - } - /** - * Internal implementation shared by .option() and .requiredOption() - * - * @api private - */ - _optionEx(config, flags2, description, fn, defaultValue) { - if (typeof flags2 === "object" && flags2 instanceof Option2) { - throw new Error("To add an Option object use addOption() instead of option() or requiredOption()"); - } - const option = this.createOption(flags2, description); - option.makeOptionMandatory(!!config.mandatory); - if (typeof fn === "function") { - option.default(defaultValue).argParser(fn); - } else if (fn instanceof RegExp) { - const regex = fn; - fn = (val2, def) => { - const m = regex.exec(val2); - return m ? m[0] : def; - }; - option.default(defaultValue).argParser(fn); - } else { - option.default(fn); - } - return this.addOption(option); - } - /** - * Define option with `flags`, `description`, and optional argument parsing function or `defaultValue` or both. - * - * The `flags` string contains the short and/or long flags, separated by comma, a pipe or space. A required - * option-argument is indicated by `<>` and an optional option-argument by `[]`. - * - * See the README for more details, and see also addOption() and requiredOption(). - * - * @example - * program - * .option('-p, --pepper', 'add pepper') - * .option('-p, --pizza-type ', 'type of pizza') // required option-argument - * .option('-c, --cheese [CHEESE]', 'add extra cheese', 'mozzarella') // optional option-argument with default - * .option('-t, --tip ', 'add tip to purchase cost', parseFloat) // custom parse function - * - * @param {string} flags - * @param {string} [description] - * @param {Function|*} [parseArg] - custom option processing function or default value - * @param {*} [defaultValue] - * @return {Command} `this` command for chaining - */ - option(flags2, description, parseArg, defaultValue) { - return this._optionEx({}, flags2, description, parseArg, defaultValue); - } - /** - * Add a required option which must have a value after parsing. This usually means - * the option must be specified on the command line. (Otherwise the same as .option().) - * - * The `flags` string contains the short and/or long flags, separated by comma, a pipe or space. - * - * @param {string} flags - * @param {string} [description] - * @param {Function|*} [parseArg] - custom option processing function or default value - * @param {*} [defaultValue] - * @return {Command} `this` command for chaining - */ - requiredOption(flags2, description, parseArg, defaultValue) { - return this._optionEx({ mandatory: true }, flags2, description, parseArg, defaultValue); - } - /** - * Alter parsing of short flags with optional values. - * - * @example - * // for `.option('-f,--flag [value]'): - * program.combineFlagAndOptionalValue(true); // `-f80` is treated like `--flag=80`, this is the default behaviour - * program.combineFlagAndOptionalValue(false) // `-fb` is treated like `-f -b` - * - * @param {Boolean} [combine=true] - if `true` or omitted, an optional value can be specified directly after the flag. - */ - combineFlagAndOptionalValue(combine = true) { - this._combineFlagAndOptionalValue = !!combine; - return this; - } - /** - * Allow unknown options on the command line. - * - * @param {Boolean} [allowUnknown=true] - if `true` or omitted, no error will be thrown - * for unknown options. - */ - allowUnknownOption(allowUnknown = true) { - this._allowUnknownOption = !!allowUnknown; - return this; - } - /** - * Allow excess command-arguments on the command line. Pass false to make excess arguments an error. - * - * @param {Boolean} [allowExcess=true] - if `true` or omitted, no error will be thrown - * for excess arguments. - */ - allowExcessArguments(allowExcess = true) { - this._allowExcessArguments = !!allowExcess; - return this; - } - /** - * Enable positional options. Positional means global options are specified before subcommands which lets - * subcommands reuse the same option names, and also enables subcommands to turn on passThroughOptions. - * The default behaviour is non-positional and global options may appear anywhere on the command line. - * - * @param {Boolean} [positional=true] - */ - enablePositionalOptions(positional = true) { - this._enablePositionalOptions = !!positional; - return this; - } - /** - * Pass through options that come after command-arguments rather than treat them as command-options, - * so actual command-options come before command-arguments. Turning this on for a subcommand requires - * positional options to have been enabled on the program (parent commands). - * The default behaviour is non-positional and options may appear before or after command-arguments. - * - * @param {Boolean} [passThrough=true] - * for unknown options. - */ - passThroughOptions(passThrough = true) { - this._passThroughOptions = !!passThrough; - if (!!this.parent && passThrough && !this.parent._enablePositionalOptions) { - throw new Error("passThroughOptions can not be used without turning on enablePositionalOptions for parent command(s)"); - } - return this; - } - /** - * Whether to store option values as properties on command object, - * or store separately (specify false). In both cases the option values can be accessed using .opts(). - * - * @param {boolean} [storeAsProperties=true] - * @return {Command} `this` command for chaining - */ - storeOptionsAsProperties(storeAsProperties = true) { - if (this.options.length) { - throw new Error("call .storeOptionsAsProperties() before adding options"); - } - this._storeOptionsAsProperties = !!storeAsProperties; - return this; - } - /** - * Retrieve option value. - * - * @param {string} key - * @return {Object} value - */ - getOptionValue(key) { - if (this._storeOptionsAsProperties) { - return this[key]; - } - return this._optionValues[key]; - } - /** - * Store option value. - * - * @param {string} key - * @param {Object} value - * @return {Command} `this` command for chaining - */ - setOptionValue(key, value) { - return this.setOptionValueWithSource(key, value, void 0); - } - /** - * Store option value and where the value came from. - * - * @param {string} key - * @param {Object} value - * @param {string} source - expected values are default/config/env/cli/implied - * @return {Command} `this` command for chaining - */ - setOptionValueWithSource(key, value, source) { - if (this._storeOptionsAsProperties) { - this[key] = value; - } else { - this._optionValues[key] = value; - } - this._optionValueSources[key] = source; - return this; - } - /** - * Get source of option value. - * Expected values are default | config | env | cli | implied - * - * @param {string} key - * @return {string} - */ - getOptionValueSource(key) { - return this._optionValueSources[key]; - } - /** - * Get source of option value. See also .optsWithGlobals(). - * Expected values are default | config | env | cli | implied - * - * @param {string} key - * @return {string} - */ - getOptionValueSourceWithGlobals(key) { - let source; - this._getCommandAndAncestors().forEach((cmd) => { - if (cmd.getOptionValueSource(key) !== void 0) { - source = cmd.getOptionValueSource(key); - } - }); - return source; - } - /** - * Get user arguments from implied or explicit arguments. - * Side-effects: set _scriptPath if args included script. Used for default program name, and subcommand searches. - * - * @api private - */ - _prepareUserArgs(argv, parseOptions) { - if (argv !== void 0 && !Array.isArray(argv)) { - throw new Error("first parameter to parse must be array or undefined"); - } - parseOptions = parseOptions || {}; - if (argv === void 0) { - argv = process3.argv; - if (process3.versions && process3.versions.electron) { - parseOptions.from = "electron"; - } - } - this.rawArgs = argv.slice(); - let userArgs; - switch (parseOptions.from) { - case void 0: - case "node": - this._scriptPath = argv[1]; - userArgs = argv.slice(2); - break; - case "electron": - if (process3.defaultApp) { - this._scriptPath = argv[1]; - userArgs = argv.slice(2); - } else { - userArgs = argv.slice(1); - } - break; - case "user": - userArgs = argv.slice(0); - break; - default: - throw new Error(`unexpected parse option { from: '${parseOptions.from}' }`); - } - if (!this._name && this._scriptPath) - this.nameFromFilename(this._scriptPath); - this._name = this._name || "program"; - return userArgs; - } - /** - * Parse `argv`, setting options and invoking commands when defined. - * - * The default expectation is that the arguments are from node and have the application as argv[0] - * and the script being run in argv[1], with user parameters after that. - * - * @example - * program.parse(process.argv); - * program.parse(); // implicitly use process.argv and auto-detect node vs electron conventions - * program.parse(my-args, { from: 'user' }); // just user supplied arguments, nothing special about argv[0] - * - * @param {string[]} [argv] - optional, defaults to process.argv - * @param {Object} [parseOptions] - optionally specify style of options with from: node/user/electron - * @param {string} [parseOptions.from] - where the args are from: 'node', 'user', 'electron' - * @return {Command} `this` command for chaining - */ - parse(argv, parseOptions) { - const userArgs = this._prepareUserArgs(argv, parseOptions); - this._parseCommand([], userArgs); - return this; - } - /** - * Parse `argv`, setting options and invoking commands when defined. - * - * Use parseAsync instead of parse if any of your action handlers are async. Returns a Promise. - * - * The default expectation is that the arguments are from node and have the application as argv[0] - * and the script being run in argv[1], with user parameters after that. - * - * @example - * await program.parseAsync(process.argv); - * await program.parseAsync(); // implicitly use process.argv and auto-detect node vs electron conventions - * await program.parseAsync(my-args, { from: 'user' }); // just user supplied arguments, nothing special about argv[0] - * - * @param {string[]} [argv] - * @param {Object} [parseOptions] - * @param {string} parseOptions.from - where the args are from: 'node', 'user', 'electron' - * @return {Promise} - */ - async parseAsync(argv, parseOptions) { - const userArgs = this._prepareUserArgs(argv, parseOptions); - await this._parseCommand([], userArgs); - return this; - } - /** - * Execute a sub-command executable. - * - * @api private - */ - _executeSubCommand(subcommand, args3) { - args3 = args3.slice(); - let launchWithNode = false; - const sourceExt = [".js", ".ts", ".tsx", ".mjs", ".cjs"]; - function findFile(baseDir, baseName) { - const localBin = path20.resolve(baseDir, baseName); - if (fs7.existsSync(localBin)) - return localBin; - if (sourceExt.includes(path20.extname(baseName))) - return void 0; - const foundExt = sourceExt.find((ext2) => fs7.existsSync(`${localBin}${ext2}`)); - if (foundExt) - return `${localBin}${foundExt}`; - return void 0; - } - this._checkForMissingMandatoryOptions(); - this._checkForConflictingOptions(); - let executableFile = subcommand._executableFile || `${this._name}-${subcommand._name}`; - let executableDir = this._executableDir || ""; - if (this._scriptPath) { - let resolvedScriptPath; - try { - resolvedScriptPath = fs7.realpathSync(this._scriptPath); - } catch (err3) { - resolvedScriptPath = this._scriptPath; - } - executableDir = path20.resolve(path20.dirname(resolvedScriptPath), executableDir); - } - if (executableDir) { - let localFile = findFile(executableDir, executableFile); - if (!localFile && !subcommand._executableFile && this._scriptPath) { - const legacyName = path20.basename(this._scriptPath, path20.extname(this._scriptPath)); - if (legacyName !== this._name) { - localFile = findFile(executableDir, `${legacyName}-${subcommand._name}`); - } - } - executableFile = localFile || executableFile; - } - launchWithNode = sourceExt.includes(path20.extname(executableFile)); - let proc2; - if (process3.platform !== "win32") { - if (launchWithNode) { - args3.unshift(executableFile); - args3 = incrementNodeInspectorPort(process3.execArgv).concat(args3); - proc2 = childProcess.spawn(process3.argv[0], args3, { stdio: "inherit" }); - } else { - proc2 = childProcess.spawn(executableFile, args3, { stdio: "inherit" }); - } - } else { - args3.unshift(executableFile); - args3 = incrementNodeInspectorPort(process3.execArgv).concat(args3); - proc2 = childProcess.spawn(process3.execPath, args3, { stdio: "inherit" }); - } - if (!proc2.killed) { - const signals = ["SIGUSR1", "SIGUSR2", "SIGTERM", "SIGINT", "SIGHUP"]; - signals.forEach((signal) => { - process3.on(signal, () => { - if (proc2.killed === false && proc2.exitCode === null) { - proc2.kill(signal); - } - }); - }); - } - const exitCallback = this._exitCallback; - if (!exitCallback) { - proc2.on("close", process3.exit.bind(process3)); - } else { - proc2.on("close", () => { - exitCallback(new CommanderError2(process3.exitCode || 0, "commander.executeSubCommandAsync", "(close)")); - }); - } - proc2.on("error", (err3) => { - if (err3.code === "ENOENT") { - const executableDirMessage = executableDir ? `searched for local subcommand relative to directory '${executableDir}'` : "no directory for search for local subcommand, use .executableDir() to supply a custom directory"; - const executableMissing = `'${executableFile}' does not exist - - if '${subcommand._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead - - if the default executable name is not suitable, use the executableFile option to supply a custom name or path - - ${executableDirMessage}`; - throw new Error(executableMissing); - } else if (err3.code === "EACCES") { - throw new Error(`'${executableFile}' not executable`); - } - if (!exitCallback) { - process3.exit(1); - } else { - const wrappedError = new CommanderError2(1, "commander.executeSubCommandAsync", "(error)"); - wrappedError.nestedError = err3; - exitCallback(wrappedError); - } - }); - this.runningCommand = proc2; - } - /** - * @api private - */ - _dispatchSubcommand(commandName, operands2, unknown) { - const subCommand = this._findCommand(commandName); - if (!subCommand) - this.help({ error: true }); - let promiseChain; - promiseChain = this._chainOrCallSubCommandHook(promiseChain, subCommand, "preSubcommand"); - promiseChain = this._chainOrCall(promiseChain, () => { - if (subCommand._executableHandler) { - this._executeSubCommand(subCommand, operands2.concat(unknown)); - } else { - return subCommand._parseCommand(operands2, unknown); - } - }); - return promiseChain; - } - /** - * Invoke help directly if possible, or dispatch if necessary. - * e.g. help foo - * - * @api private - */ - _dispatchHelpCommand(subcommandName) { - if (!subcommandName) { - this.help(); - } - const subCommand = this._findCommand(subcommandName); - if (subCommand && !subCommand._executableHandler) { - subCommand.help(); - } - return this._dispatchSubcommand(subcommandName, [], [ - this._helpLongFlag || this._helpShortFlag - ]); - } - /** - * Check this.args against expected this.registeredArguments. - * - * @api private - */ - _checkNumberOfArguments() { - this.registeredArguments.forEach((arg, i) => { - if (arg.required && this.args[i] == null) { - this.missingArgument(arg.name()); - } - }); - if (this.registeredArguments.length > 0 && this.registeredArguments[this.registeredArguments.length - 1].variadic) { - return; - } - if (this.args.length > this.registeredArguments.length) { - this._excessArguments(this.args); - } - } - /** - * Process this.args using this.registeredArguments and save as this.processedArgs! - * - * @api private - */ - _processArguments() { - const myParseArg = (argument, value, previous) => { - let parsedValue = value; - if (value !== null && argument.parseArg) { - const invalidValueMessage = `error: command-argument value '${value}' is invalid for argument '${argument.name()}'.`; - parsedValue = this._callParseArg(argument, value, previous, invalidValueMessage); - } - return parsedValue; - }; - this._checkNumberOfArguments(); - const processedArgs = []; - this.registeredArguments.forEach((declaredArg, index) => { - let value = declaredArg.defaultValue; - if (declaredArg.variadic) { - if (index < this.args.length) { - value = this.args.slice(index); - if (declaredArg.parseArg) { - value = value.reduce((processed, v) => { - return myParseArg(declaredArg, v, processed); - }, declaredArg.defaultValue); - } - } else if (value === void 0) { - value = []; - } - } else if (index < this.args.length) { - value = this.args[index]; - if (declaredArg.parseArg) { - value = myParseArg(declaredArg, value, declaredArg.defaultValue); - } - } - processedArgs[index] = value; - }); - this.processedArgs = processedArgs; - } - /** - * Once we have a promise we chain, but call synchronously until then. - * - * @param {Promise|undefined} promise - * @param {Function} fn - * @return {Promise|undefined} - * @api private - */ - _chainOrCall(promise, fn) { - if (promise && promise.then && typeof promise.then === "function") { - return promise.then(() => fn()); - } - return fn(); - } - /** - * - * @param {Promise|undefined} promise - * @param {string} event - * @return {Promise|undefined} - * @api private - */ - _chainOrCallHooks(promise, event) { - let result = promise; - const hooks = []; - this._getCommandAndAncestors().reverse().filter((cmd) => cmd._lifeCycleHooks[event] !== void 0).forEach((hookedCommand) => { - hookedCommand._lifeCycleHooks[event].forEach((callback) => { - hooks.push({ hookedCommand, callback }); - }); - }); - if (event === "postAction") { - hooks.reverse(); - } - hooks.forEach((hookDetail) => { - result = this._chainOrCall(result, () => { - return hookDetail.callback(hookDetail.hookedCommand, this); - }); - }); - return result; - } - /** - * - * @param {Promise|undefined} promise - * @param {Command} subCommand - * @param {string} event - * @return {Promise|undefined} - * @api private - */ - _chainOrCallSubCommandHook(promise, subCommand, event) { - let result = promise; - if (this._lifeCycleHooks[event] !== void 0) { - this._lifeCycleHooks[event].forEach((hook) => { - result = this._chainOrCall(result, () => { - return hook(this, subCommand); - }); - }); - } - return result; - } - /** - * Process arguments in context of this command. - * Returns action result, in case it is a promise. - * - * @api private - */ - _parseCommand(operands2, unknown) { - const parsed = this.parseOptions(unknown); - this._parseOptionsEnv(); - this._parseOptionsImplied(); - operands2 = operands2.concat(parsed.operands); - unknown = parsed.unknown; - this.args = operands2.concat(unknown); - if (operands2 && this._findCommand(operands2[0])) { - return this._dispatchSubcommand(operands2[0], operands2.slice(1), unknown); - } - if (this._hasImplicitHelpCommand() && operands2[0] === this._helpCommandName) { - return this._dispatchHelpCommand(operands2[1]); - } - if (this._defaultCommandName) { - outputHelpIfRequested(this, unknown); - return this._dispatchSubcommand(this._defaultCommandName, operands2, unknown); - } - if (this.commands.length && this.args.length === 0 && !this._actionHandler && !this._defaultCommandName) { - this.help({ error: true }); - } - outputHelpIfRequested(this, parsed.unknown); - this._checkForMissingMandatoryOptions(); - this._checkForConflictingOptions(); - const checkForUnknownOptions = () => { - if (parsed.unknown.length > 0) { - this.unknownOption(parsed.unknown[0]); - } - }; - const commandEvent = `command:${this.name()}`; - if (this._actionHandler) { - checkForUnknownOptions(); - this._processArguments(); - let promiseChain; - promiseChain = this._chainOrCallHooks(promiseChain, "preAction"); - promiseChain = this._chainOrCall(promiseChain, () => this._actionHandler(this.processedArgs)); - if (this.parent) { - promiseChain = this._chainOrCall(promiseChain, () => { - this.parent.emit(commandEvent, operands2, unknown); - }); - } - promiseChain = this._chainOrCallHooks(promiseChain, "postAction"); - return promiseChain; - } - if (this.parent && this.parent.listenerCount(commandEvent)) { - checkForUnknownOptions(); - this._processArguments(); - this.parent.emit(commandEvent, operands2, unknown); - } else if (operands2.length) { - if (this._findCommand("*")) { - return this._dispatchSubcommand("*", operands2, unknown); - } - if (this.listenerCount("command:*")) { - this.emit("command:*", operands2, unknown); - } else if (this.commands.length) { - this.unknownCommand(); - } else { - checkForUnknownOptions(); - this._processArguments(); - } - } else if (this.commands.length) { - checkForUnknownOptions(); - this.help({ error: true }); - } else { - checkForUnknownOptions(); - this._processArguments(); - } - } - /** - * Find matching command. - * - * @api private - */ - _findCommand(name) { - if (!name) - return void 0; - return this.commands.find((cmd) => cmd._name === name || cmd._aliases.includes(name)); - } - /** - * Return an option matching `arg` if any. - * - * @param {string} arg - * @return {Option} - * @api private - */ - _findOption(arg) { - return this.options.find((option) => option.is(arg)); - } - /** - * Display an error message if a mandatory option does not have a value. - * Called after checking for help flags in leaf subcommand. - * - * @api private - */ - _checkForMissingMandatoryOptions() { - this._getCommandAndAncestors().forEach((cmd) => { - cmd.options.forEach((anOption) => { - if (anOption.mandatory && cmd.getOptionValue(anOption.attributeName()) === void 0) { - cmd.missingMandatoryOptionValue(anOption); - } - }); - }); - } - /** - * Display an error message if conflicting options are used together in this. - * - * @api private - */ - _checkForConflictingLocalOptions() { - const definedNonDefaultOptions = this.options.filter( - (option) => { - const optionKey = option.attributeName(); - if (this.getOptionValue(optionKey) === void 0) { - return false; - } - return this.getOptionValueSource(optionKey) !== "default"; - } - ); - const optionsWithConflicting = definedNonDefaultOptions.filter( - (option) => option.conflictsWith.length > 0 - ); - optionsWithConflicting.forEach((option) => { - const conflictingAndDefined = definedNonDefaultOptions.find( - (defined) => option.conflictsWith.includes(defined.attributeName()) - ); - if (conflictingAndDefined) { - this._conflictingOption(option, conflictingAndDefined); - } - }); - } - /** - * Display an error message if conflicting options are used together. - * Called after checking for help flags in leaf subcommand. - * - * @api private - */ - _checkForConflictingOptions() { - this._getCommandAndAncestors().forEach((cmd) => { - cmd._checkForConflictingLocalOptions(); - }); - } - /** - * Parse options from `argv` removing known options, - * and return argv split into operands and unknown arguments. - * - * Examples: - * - * argv => operands, unknown - * --known kkk op => [op], [] - * op --known kkk => [op], [] - * sub --unknown uuu op => [sub], [--unknown uuu op] - * sub -- --unknown uuu op => [sub --unknown uuu op], [] - * - * @param {String[]} argv - * @return {{operands: String[], unknown: String[]}} - */ - parseOptions(argv) { - const operands2 = []; - const unknown = []; - let dest = operands2; - const args3 = argv.slice(); - function maybeOption(arg) { - return arg.length > 1 && arg[0] === "-"; - } - let activeVariadicOption = null; - while (args3.length) { - const arg = args3.shift(); - if (arg === "--") { - if (dest === unknown) - dest.push(arg); - dest.push(...args3); - break; - } - if (activeVariadicOption && !maybeOption(arg)) { - this.emit(`option:${activeVariadicOption.name()}`, arg); - continue; - } - activeVariadicOption = null; - if (maybeOption(arg)) { - const option = this._findOption(arg); - if (option) { - if (option.required) { - const value = args3.shift(); - if (value === void 0) - this.optionMissingArgument(option); - this.emit(`option:${option.name()}`, value); - } else if (option.optional) { - let value = null; - if (args3.length > 0 && !maybeOption(args3[0])) { - value = args3.shift(); - } - this.emit(`option:${option.name()}`, value); - } else { - this.emit(`option:${option.name()}`); - } - activeVariadicOption = option.variadic ? option : null; - continue; - } - } - if (arg.length > 2 && arg[0] === "-" && arg[1] !== "-") { - const option = this._findOption(`-${arg[1]}`); - if (option) { - if (option.required || option.optional && this._combineFlagAndOptionalValue) { - this.emit(`option:${option.name()}`, arg.slice(2)); - } else { - this.emit(`option:${option.name()}`); - args3.unshift(`-${arg.slice(2)}`); - } - continue; - } - } - if (/^--[^=]+=/.test(arg)) { - const index = arg.indexOf("="); - const option = this._findOption(arg.slice(0, index)); - if (option && (option.required || option.optional)) { - this.emit(`option:${option.name()}`, arg.slice(index + 1)); - continue; - } - } - if (maybeOption(arg)) { - dest = unknown; - } - if ((this._enablePositionalOptions || this._passThroughOptions) && operands2.length === 0 && unknown.length === 0) { - if (this._findCommand(arg)) { - operands2.push(arg); - if (args3.length > 0) - unknown.push(...args3); - break; - } else if (arg === this._helpCommandName && this._hasImplicitHelpCommand()) { - operands2.push(arg); - if (args3.length > 0) - operands2.push(...args3); - break; - } else if (this._defaultCommandName) { - unknown.push(arg); - if (args3.length > 0) - unknown.push(...args3); - break; - } - } - if (this._passThroughOptions) { - dest.push(arg); - if (args3.length > 0) - dest.push(...args3); - break; - } - dest.push(arg); - } - return { operands: operands2, unknown }; - } - /** - * Return an object containing local option values as key-value pairs. - * - * @return {Object} - */ - opts() { - if (this._storeOptionsAsProperties) { - const result = {}; - const len = this.options.length; - for (let i = 0; i < len; i++) { - const key = this.options[i].attributeName(); - result[key] = key === this._versionOptionName ? this._version : this[key]; - } - return result; - } - return this._optionValues; - } - /** - * Return an object containing merged local and global option values as key-value pairs. - * - * @return {Object} - */ - optsWithGlobals() { - return this._getCommandAndAncestors().reduce( - (combinedOptions, cmd) => Object.assign(combinedOptions, cmd.opts()), - {} - ); - } - /** - * Display error message and exit (or call exitOverride). - * - * @param {string} message - * @param {Object} [errorOptions] - * @param {string} [errorOptions.code] - an id string representing the error - * @param {number} [errorOptions.exitCode] - used with process.exit - */ - error(message, errorOptions) { - this._outputConfiguration.outputError(`${message} -`, this._outputConfiguration.writeErr); - if (typeof this._showHelpAfterError === "string") { - this._outputConfiguration.writeErr(`${this._showHelpAfterError} -`); - } else if (this._showHelpAfterError) { - this._outputConfiguration.writeErr("\n"); - this.outputHelp({ error: true }); - } - const config = errorOptions || {}; - const exitCode = config.exitCode || 1; - const code = config.code || "commander.error"; - this._exit(exitCode, code, message); - } - /** - * Apply any option related environment variables, if option does - * not have a value from cli or client code. - * - * @api private - */ - _parseOptionsEnv() { - this.options.forEach((option) => { - if (option.envVar && option.envVar in process3.env) { - const optionKey = option.attributeName(); - if (this.getOptionValue(optionKey) === void 0 || ["default", "config", "env"].includes(this.getOptionValueSource(optionKey))) { - if (option.required || option.optional) { - this.emit(`optionEnv:${option.name()}`, process3.env[option.envVar]); - } else { - this.emit(`optionEnv:${option.name()}`); - } - } - } - }); - } - /** - * Apply any implied option values, if option is undefined or default value. - * - * @api private - */ - _parseOptionsImplied() { - const dualHelper = new DualOptions(this.options); - const hasCustomOptionValue = (optionKey) => { - return this.getOptionValue(optionKey) !== void 0 && !["default", "implied"].includes(this.getOptionValueSource(optionKey)); - }; - this.options.filter((option) => option.implied !== void 0 && hasCustomOptionValue(option.attributeName()) && dualHelper.valueFromOption(this.getOptionValue(option.attributeName()), option)).forEach((option) => { - Object.keys(option.implied).filter((impliedKey) => !hasCustomOptionValue(impliedKey)).forEach((impliedKey) => { - this.setOptionValueWithSource(impliedKey, option.implied[impliedKey], "implied"); - }); - }); - } - /** - * Argument `name` is missing. - * - * @param {string} name - * @api private - */ - missingArgument(name) { - const message = `error: missing required argument '${name}'`; - this.error(message, { code: "commander.missingArgument" }); - } - /** - * `Option` is missing an argument. - * - * @param {Option} option - * @api private - */ - optionMissingArgument(option) { - const message = `error: option '${option.flags}' argument missing`; - this.error(message, { code: "commander.optionMissingArgument" }); - } - /** - * `Option` does not have a value, and is a mandatory option. - * - * @param {Option} option - * @api private - */ - missingMandatoryOptionValue(option) { - const message = `error: required option '${option.flags}' not specified`; - this.error(message, { code: "commander.missingMandatoryOptionValue" }); - } - /** - * `Option` conflicts with another option. - * - * @param {Option} option - * @param {Option} conflictingOption - * @api private - */ - _conflictingOption(option, conflictingOption) { - const findBestOptionFromValue = (option2) => { - const optionKey = option2.attributeName(); - const optionValue = this.getOptionValue(optionKey); - const negativeOption = this.options.find((target) => target.negate && optionKey === target.attributeName()); - const positiveOption = this.options.find((target) => !target.negate && optionKey === target.attributeName()); - if (negativeOption && (negativeOption.presetArg === void 0 && optionValue === false || negativeOption.presetArg !== void 0 && optionValue === negativeOption.presetArg)) { - return negativeOption; - } - return positiveOption || option2; - }; - const getErrorMessage = (option2) => { - const bestOption = findBestOptionFromValue(option2); - const optionKey = bestOption.attributeName(); - const source = this.getOptionValueSource(optionKey); - if (source === "env") { - return `environment variable '${bestOption.envVar}'`; - } - return `option '${bestOption.flags}'`; - }; - const message = `error: ${getErrorMessage(option)} cannot be used with ${getErrorMessage(conflictingOption)}`; - this.error(message, { code: "commander.conflictingOption" }); - } - /** - * Unknown option `flag`. - * - * @param {string} flag - * @api private - */ - unknownOption(flag) { - if (this._allowUnknownOption) - return; - let suggestion = ""; - if (flag.startsWith("--") && this._showSuggestionAfterError) { - let candidateFlags = []; - let command = this; - do { - const moreFlags = command.createHelp().visibleOptions(command).filter((option) => option.long).map((option) => option.long); - candidateFlags = candidateFlags.concat(moreFlags); - command = command.parent; - } while (command && !command._enablePositionalOptions); - suggestion = suggestSimilar(flag, candidateFlags); - } - const message = `error: unknown option '${flag}'${suggestion}`; - this.error(message, { code: "commander.unknownOption" }); - } - /** - * Excess arguments, more than expected. - * - * @param {string[]} receivedArgs - * @api private - */ - _excessArguments(receivedArgs) { - if (this._allowExcessArguments) - return; - const expected = this.registeredArguments.length; - const s = expected === 1 ? "" : "s"; - const forSubcommand = this.parent ? ` for '${this.name()}'` : ""; - const message = `error: too many arguments${forSubcommand}. Expected ${expected} argument${s} but got ${receivedArgs.length}.`; - this.error(message, { code: "commander.excessArguments" }); - } - /** - * Unknown command. - * - * @api private - */ - unknownCommand() { - const unknownName = this.args[0]; - let suggestion = ""; - if (this._showSuggestionAfterError) { - const candidateNames = []; - this.createHelp().visibleCommands(this).forEach((command) => { - candidateNames.push(command.name()); - if (command.alias()) - candidateNames.push(command.alias()); - }); - suggestion = suggestSimilar(unknownName, candidateNames); - } - const message = `error: unknown command '${unknownName}'${suggestion}`; - this.error(message, { code: "commander.unknownCommand" }); - } - /** - * Get or set the program version. - * - * This method auto-registers the "-V, --version" option which will print the version number. - * - * You can optionally supply the flags and description to override the defaults. - * - * @param {string} [str] - * @param {string} [flags] - * @param {string} [description] - * @return {this | string | undefined} `this` command for chaining, or version string if no arguments - */ - version(str, flags2, description) { - if (str === void 0) - return this._version; - this._version = str; - flags2 = flags2 || "-V, --version"; - description = description || "output the version number"; - const versionOption = this.createOption(flags2, description); - this._versionOptionName = versionOption.attributeName(); - this.options.push(versionOption); - this.on("option:" + versionOption.name(), () => { - this._outputConfiguration.writeOut(`${str} -`); - this._exit(0, "commander.version", str); - }); - return this; - } - /** - * Set the description. - * - * @param {string} [str] - * @param {Object} [argsDescription] - * @return {string|Command} - */ - description(str, argsDescription) { - if (str === void 0 && argsDescription === void 0) - return this._description; - this._description = str; - if (argsDescription) { - this._argsDescription = argsDescription; - } - return this; - } - /** - * Set the summary. Used when listed as subcommand of parent. - * - * @param {string} [str] - * @return {string|Command} - */ - summary(str) { - if (str === void 0) - return this._summary; - this._summary = str; - return this; - } - /** - * Set an alias for the command. - * - * You may call more than once to add multiple aliases. Only the first alias is shown in the auto-generated help. - * - * @param {string} [alias] - * @return {string|Command} - */ - alias(alias) { - if (alias === void 0) - return this._aliases[0]; - let command = this; - if (this.commands.length !== 0 && this.commands[this.commands.length - 1]._executableHandler) { - command = this.commands[this.commands.length - 1]; - } - if (alias === command._name) - throw new Error("Command alias can't be the same as its name"); - command._aliases.push(alias); - return this; - } - /** - * Set aliases for the command. - * - * Only the first alias is shown in the auto-generated help. - * - * @param {string[]} [aliases] - * @return {string[]|Command} - */ - aliases(aliases) { - if (aliases === void 0) - return this._aliases; - aliases.forEach((alias) => this.alias(alias)); - return this; - } - /** - * Set / get the command usage `str`. - * - * @param {string} [str] - * @return {String|Command} - */ - usage(str) { - if (str === void 0) { - if (this._usage) - return this._usage; - const args3 = this.registeredArguments.map((arg) => { - return humanReadableArgName(arg); - }); - return [].concat( - this.options.length || this._hasHelpOption ? "[options]" : [], - this.commands.length ? "[command]" : [], - this.registeredArguments.length ? args3 : [] - ).join(" "); - } - this._usage = str; - return this; - } - /** - * Get or set the name of the command. - * - * @param {string} [str] - * @return {string|Command} - */ - name(str) { - if (str === void 0) - return this._name; - this._name = str; - return this; - } - /** - * Set the name of the command from script filename, such as process.argv[1], - * or require.main.filename, or __filename. - * - * (Used internally and public although not documented in README.) - * - * @example - * program.nameFromFilename(require.main.filename); - * - * @param {string} filename - * @return {Command} - */ - nameFromFilename(filename) { - this._name = path20.basename(filename, path20.extname(filename)); - return this; - } - /** - * Get or set the directory for searching for executable subcommands of this command. - * - * @example - * program.executableDir(__dirname); - * // or - * program.executableDir('subcommands'); - * - * @param {string} [path] - * @return {string|null|Command} - */ - executableDir(path21) { - if (path21 === void 0) - return this._executableDir; - this._executableDir = path21; - return this; - } - /** - * Return program help documentation. - * - * @param {{ error: boolean }} [contextOptions] - pass {error:true} to wrap for stderr instead of stdout - * @return {string} - */ - helpInformation(contextOptions) { - const helper = this.createHelp(); - if (helper.helpWidth === void 0) { - helper.helpWidth = contextOptions && contextOptions.error ? this._outputConfiguration.getErrHelpWidth() : this._outputConfiguration.getOutHelpWidth(); - } - return helper.formatHelp(this, helper); - } - /** - * @api private - */ - _getHelpContext(contextOptions) { - contextOptions = contextOptions || {}; - const context3 = { error: !!contextOptions.error }; - let write; - if (context3.error) { - write = (arg) => this._outputConfiguration.writeErr(arg); - } else { - write = (arg) => this._outputConfiguration.writeOut(arg); - } - context3.write = contextOptions.write || write; - context3.command = this; - return context3; - } - /** - * Output help information for this command. - * - * Outputs built-in help, and custom text added using `.addHelpText()`. - * - * @param {{ error: boolean } | Function} [contextOptions] - pass {error:true} to write to stderr instead of stdout - */ - outputHelp(contextOptions) { - let deprecatedCallback; - if (typeof contextOptions === "function") { - deprecatedCallback = contextOptions; - contextOptions = void 0; - } - const context3 = this._getHelpContext(contextOptions); - this._getCommandAndAncestors().reverse().forEach((command) => command.emit("beforeAllHelp", context3)); - this.emit("beforeHelp", context3); - let helpInformation = this.helpInformation(context3); - if (deprecatedCallback) { - helpInformation = deprecatedCallback(helpInformation); - if (typeof helpInformation !== "string" && !Buffer.isBuffer(helpInformation)) { - throw new Error("outputHelp callback must return a string or a Buffer"); - } - } - context3.write(helpInformation); - if (this._helpLongFlag) { - this.emit(this._helpLongFlag); - } - this.emit("afterHelp", context3); - this._getCommandAndAncestors().forEach((command) => command.emit("afterAllHelp", context3)); - } - /** - * You can pass in flags and a description to override the help - * flags and help description for your command. Pass in false to - * disable the built-in help option. - * - * @param {string | boolean} [flags] - * @param {string} [description] - * @return {Command} `this` command for chaining - */ - helpOption(flags2, description) { - if (typeof flags2 === "boolean") { - this._hasHelpOption = flags2; - return this; - } - this._helpFlags = flags2 || this._helpFlags; - this._helpDescription = description || this._helpDescription; - const helpFlags = splitOptionFlags(this._helpFlags); - this._helpShortFlag = helpFlags.shortFlag; - this._helpLongFlag = helpFlags.longFlag; - return this; - } - /** - * Output help information and exit. - * - * Outputs built-in help, and custom text added using `.addHelpText()`. - * - * @param {{ error: boolean }} [contextOptions] - pass {error:true} to write to stderr instead of stdout - */ - help(contextOptions) { - this.outputHelp(contextOptions); - let exitCode = process3.exitCode || 0; - if (exitCode === 0 && contextOptions && typeof contextOptions !== "function" && contextOptions.error) { - exitCode = 1; - } - this._exit(exitCode, "commander.help", "(outputHelp)"); - } - /** - * Add additional text to be displayed with the built-in help. - * - * Position is 'before' or 'after' to affect just this command, - * and 'beforeAll' or 'afterAll' to affect this command and all its subcommands. - * - * @param {string} position - before or after built-in help - * @param {string | Function} text - string to add, or a function returning a string - * @return {Command} `this` command for chaining - */ - addHelpText(position, text) { - const allowedValues = ["beforeAll", "before", "after", "afterAll"]; - if (!allowedValues.includes(position)) { - throw new Error(`Unexpected value for position to addHelpText. -Expecting one of '${allowedValues.join("', '")}'`); - } - const helpEvent = `${position}Help`; - this.on(helpEvent, (context3) => { - let helpStr; - if (typeof text === "function") { - helpStr = text({ error: context3.error, command: context3.command }); - } else { - helpStr = text; - } - if (helpStr) { - context3.write(`${helpStr} -`); - } - }); - return this; - } - }; - function outputHelpIfRequested(cmd, args3) { - const helpOption = cmd._hasHelpOption && args3.find((arg) => arg === cmd._helpLongFlag || arg === cmd._helpShortFlag); - if (helpOption) { - cmd.outputHelp(); - cmd._exit(0, "commander.helpDisplayed", "(outputHelp)"); - } - } - function incrementNodeInspectorPort(args3) { - return args3.map((arg) => { - if (!arg.startsWith("--inspect")) { - return arg; - } - let debugOption; - let debugHost = "127.0.0.1"; - let debugPort2 = "9229"; - let match2; - if ((match2 = arg.match(/^(--inspect(-brk)?)$/)) !== null) { - debugOption = match2[1]; - } else if ((match2 = arg.match(/^(--inspect(-brk|-port)?)=([^:]+)$/)) !== null) { - debugOption = match2[1]; - if (/^\d+$/.test(match2[3])) { - debugPort2 = match2[3]; - } else { - debugHost = match2[3]; - } - } else if ((match2 = arg.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/)) !== null) { - debugOption = match2[1]; - debugHost = match2[3]; - debugPort2 = match2[4]; - } - if (debugOption && debugPort2 !== "0") { - return `${debugOption}=${debugHost}:${parseInt(debugPort2) + 1}`; - } - return arg; - }); - } - exports2.Command = Command2; - } -}); - -// ../node_modules/.pnpm/commander@11.1.0/node_modules/commander/index.js -var require_commander = __commonJS({ - "../node_modules/.pnpm/commander@11.1.0/node_modules/commander/index.js"(exports2, module2) { - var { Argument: Argument2 } = require_argument(); - var { Command: Command2 } = require_command(); - var { CommanderError: CommanderError2, InvalidArgumentError: InvalidArgumentError2 } = require_error(); - var { Help: Help2 } = require_help(); - var { Option: Option2 } = require_option(); - exports2 = module2.exports = new Command2(); - exports2.program = exports2; - exports2.Command = Command2; - exports2.Option = Option2; - exports2.Argument = Argument2; - exports2.Help = Help2; - exports2.CommanderError = CommanderError2; - exports2.InvalidArgumentError = InvalidArgumentError2; - exports2.InvalidOptionArgumentError = InvalidArgumentError2; - } -}); - -// ../node_modules/.pnpm/commander@11.1.0/node_modules/commander/esm.mjs -var import_index, program, createCommand, createArgument, createOption, CommanderError, InvalidArgumentError, InvalidOptionArgumentError, Command, Argument, Option, Help; -var init_esm = __esm({ - "../node_modules/.pnpm/commander@11.1.0/node_modules/commander/esm.mjs"() { - import_index = __toESM(require_commander(), 1); - ({ - program, - createCommand, - createArgument, - createOption, - CommanderError, - InvalidArgumentError, - InvalidOptionArgumentError, - Command: ( - // deprecated old name - Command - ), - Argument, - Option, - Help - } = import_index.default); - } -}); - -// ../node_modules/.pnpm/uuid@9.0.0/node_modules/uuid/dist/esm-node/rng.js -function rng() { - if (poolPtr > rnds8Pool.length - 16) { - import_crypto.default.randomFillSync(rnds8Pool); - poolPtr = 0; - } - return rnds8Pool.slice(poolPtr, poolPtr += 16); -} -var import_crypto, rnds8Pool, poolPtr; -var init_rng = __esm({ - "../node_modules/.pnpm/uuid@9.0.0/node_modules/uuid/dist/esm-node/rng.js"() { - import_crypto = __toESM(require("crypto")); - rnds8Pool = new Uint8Array(256); - poolPtr = rnds8Pool.length; - } -}); - -// ../node_modules/.pnpm/uuid@9.0.0/node_modules/uuid/dist/esm-node/stringify.js -function unsafeStringify(arr, offset = 0) { - return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); -} -var byteToHex; -var init_stringify = __esm({ - "../node_modules/.pnpm/uuid@9.0.0/node_modules/uuid/dist/esm-node/stringify.js"() { - byteToHex = []; - for (let i = 0; i < 256; ++i) { - byteToHex.push((i + 256).toString(16).slice(1)); - } - } -}); - -// ../node_modules/.pnpm/uuid@9.0.0/node_modules/uuid/dist/esm-node/native.js -var import_crypto2, native_default; -var init_native = __esm({ - "../node_modules/.pnpm/uuid@9.0.0/node_modules/uuid/dist/esm-node/native.js"() { - import_crypto2 = __toESM(require("crypto")); - native_default = { - randomUUID: import_crypto2.default.randomUUID - }; - } -}); - -// ../node_modules/.pnpm/uuid@9.0.0/node_modules/uuid/dist/esm-node/v4.js -function v4(options2, buf, offset) { - if (native_default.randomUUID && !buf && !options2) { - return native_default.randomUUID(); - } - options2 = options2 || {}; - const rnds = options2.random || (options2.rng || rng)(); - rnds[6] = rnds[6] & 15 | 64; - rnds[8] = rnds[8] & 63 | 128; - if (buf) { - offset = offset || 0; - for (let i = 0; i < 16; ++i) { - buf[offset + i] = rnds[i]; - } - return buf; - } - return unsafeStringify(rnds); -} -var v4_default; -var init_v4 = __esm({ - "../node_modules/.pnpm/uuid@9.0.0/node_modules/uuid/dist/esm-node/v4.js"() { - init_native(); - init_rng(); - init_stringify(); - v4_default = v4; - } -}); - -// ../node_modules/.pnpm/uuid@9.0.0/node_modules/uuid/dist/esm-node/index.js -var init_esm_node = __esm({ - "../node_modules/.pnpm/uuid@9.0.0/node_modules/uuid/dist/esm-node/index.js"() { - init_v4(); - } -}); - -// ../lib/shared/src/logger.ts -function setLogger(newLogger) { - _logger = newLogger; -} -function logDebug(filterLabel, text, ...args3) { - _logger.logDebug(filterLabel, text, ...args3); -} -function logError(filterLabel, text, ...args3) { - _logger.logError(filterLabel, text, ...args3); -} -var consoleLogger, _logger; -var init_logger = __esm({ - "../lib/shared/src/logger.ts"() { - "use strict"; - consoleLogger = { - logDebug(filterLabel, text, ...args3) { - console.log(`${filterLabel}:${text}`, ...args3); - }, - logError(filterLabel, text, ...args3) { - console.log(`${filterLabel}:${text}`, ...args3); - } - }; - _logger = consoleLogger; - } -}); - -// ../lib/shared/src/common/index.ts -function pluralize(string, count, plural = `${string}s`) { - return count === 1 || count === 1n ? string : plural; -} -var isDefined, dedupeWith; -var init_common = __esm({ - "../lib/shared/src/common/index.ts"() { - "use strict"; - isDefined = (value) => value !== void 0 && value !== null; - dedupeWith = (items, key) => [ - ...new Map(items.map((item) => [typeof key === "function" ? key(item) : item[key], item])).values() - ]; - } -}); - -// ../node_modules/.pnpm/@babel+runtime@7.22.3/node_modules/@babel/runtime/helpers/interopRequireDefault.js -var require_interopRequireDefault = __commonJS({ - "../node_modules/.pnpm/@babel+runtime@7.22.3/node_modules/@babel/runtime/helpers/interopRequireDefault.js"(exports2, module2) { - function _interopRequireDefault(obj2) { - return obj2 && obj2.__esModule ? obj2 : { - "default": obj2 - }; - } - module2.exports = _interopRequireDefault, module2.exports.__esModule = true, module2.exports["default"] = module2.exports; - } -}); - -// ../node_modules/.pnpm/@babel+runtime@7.22.3/node_modules/@babel/runtime/helpers/typeof.js -var require_typeof = __commonJS({ - "../node_modules/.pnpm/@babel+runtime@7.22.3/node_modules/@babel/runtime/helpers/typeof.js"(exports2, module2) { - function _typeof(obj2) { - "@babel/helpers - typeof"; - return module2.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj3) { - return typeof obj3; - } : function(obj3) { - return obj3 && "function" == typeof Symbol && obj3.constructor === Symbol && obj3 !== Symbol.prototype ? "symbol" : typeof obj3; - }, module2.exports.__esModule = true, module2.exports["default"] = module2.exports, _typeof(obj2); - } - module2.exports = _typeof, module2.exports.__esModule = true, module2.exports["default"] = module2.exports; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/toInteger/index.js -var require_toInteger = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/toInteger/index.js"(exports2, module2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = toInteger; - function toInteger(dirtyNumber) { - if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) { - return NaN; - } - var number = Number(dirtyNumber); - if (isNaN(number)) { - return number; - } - return number < 0 ? Math.ceil(number) : Math.floor(number); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/requiredArgs/index.js -var require_requiredArgs = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/requiredArgs/index.js"(exports2, module2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = requiredArgs; - function requiredArgs(required, args3) { - if (args3.length < required) { - throw new TypeError(required + " argument" + (required > 1 ? "s" : "") + " required, but only " + args3.length + " present"); - } - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/toDate/index.js -var require_toDate = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/toDate/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = toDate; - var _typeof2 = _interopRequireDefault(require_typeof()); - var _index = _interopRequireDefault(require_requiredArgs()); - function toDate(argument) { - (0, _index.default)(1, arguments); - var argStr = Object.prototype.toString.call(argument); - if (argument instanceof Date || (0, _typeof2.default)(argument) === "object" && argStr === "[object Date]") { - return new Date(argument.getTime()); - } else if (typeof argument === "number" || argStr === "[object Number]") { - return new Date(argument); - } else { - if ((typeof argument === "string" || argStr === "[object String]") && typeof console !== "undefined") { - console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"); - console.warn(new Error().stack); - } - return /* @__PURE__ */ new Date(NaN); - } - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/addDays/index.js -var require_addDays = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/addDays/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = addDays; - var _index = _interopRequireDefault(require_toInteger()); - var _index2 = _interopRequireDefault(require_toDate()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function addDays(dirtyDate, dirtyAmount) { - (0, _index3.default)(2, arguments); - var date = (0, _index2.default)(dirtyDate); - var amount = (0, _index.default)(dirtyAmount); - if (isNaN(amount)) { - return /* @__PURE__ */ new Date(NaN); - } - if (!amount) { - return date; - } - date.setDate(date.getDate() + amount); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/addMonths/index.js -var require_addMonths = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/addMonths/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = addMonths; - var _index = _interopRequireDefault(require_toInteger()); - var _index2 = _interopRequireDefault(require_toDate()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function addMonths(dirtyDate, dirtyAmount) { - (0, _index3.default)(2, arguments); - var date = (0, _index2.default)(dirtyDate); - var amount = (0, _index.default)(dirtyAmount); - if (isNaN(amount)) { - return /* @__PURE__ */ new Date(NaN); - } - if (!amount) { - return date; - } - var dayOfMonth = date.getDate(); - var endOfDesiredMonth = new Date(date.getTime()); - endOfDesiredMonth.setMonth(date.getMonth() + amount + 1, 0); - var daysInMonth = endOfDesiredMonth.getDate(); - if (dayOfMonth >= daysInMonth) { - return endOfDesiredMonth; - } else { - date.setFullYear(endOfDesiredMonth.getFullYear(), endOfDesiredMonth.getMonth(), dayOfMonth); - return date; - } - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/add/index.js -var require_add = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/add/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = add2; - var _typeof2 = _interopRequireDefault(require_typeof()); - var _index = _interopRequireDefault(require_addDays()); - var _index2 = _interopRequireDefault(require_addMonths()); - var _index3 = _interopRequireDefault(require_toDate()); - var _index4 = _interopRequireDefault(require_requiredArgs()); - var _index5 = _interopRequireDefault(require_toInteger()); - function add2(dirtyDate, duration) { - (0, _index4.default)(2, arguments); - if (!duration || (0, _typeof2.default)(duration) !== "object") - return /* @__PURE__ */ new Date(NaN); - var years = duration.years ? (0, _index5.default)(duration.years) : 0; - var months = duration.months ? (0, _index5.default)(duration.months) : 0; - var weeks = duration.weeks ? (0, _index5.default)(duration.weeks) : 0; - var days = duration.days ? (0, _index5.default)(duration.days) : 0; - var hours = duration.hours ? (0, _index5.default)(duration.hours) : 0; - var minutes = duration.minutes ? (0, _index5.default)(duration.minutes) : 0; - var seconds = duration.seconds ? (0, _index5.default)(duration.seconds) : 0; - var date = (0, _index3.default)(dirtyDate); - var dateWithMonths = months || years ? (0, _index2.default)(date, months + years * 12) : date; - var dateWithDays = days || weeks ? (0, _index.default)(dateWithMonths, days + weeks * 7) : dateWithMonths; - var minutesToAdd = minutes + hours * 60; - var secondsToAdd = seconds + minutesToAdd * 60; - var msToAdd = secondsToAdd * 1e3; - var finalDate = new Date(dateWithDays.getTime() + msToAdd); - return finalDate; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isWeekend/index.js -var require_isWeekend = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isWeekend/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isWeekend; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function isWeekend(dirtyDate) { - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - var day = date.getDay(); - return day === 0 || day === 6; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isSunday/index.js -var require_isSunday = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isSunday/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isSunday; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function isSunday(dirtyDate) { - (0, _index2.default)(1, arguments); - return (0, _index.default)(dirtyDate).getDay() === 0; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isSaturday/index.js -var require_isSaturday = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isSaturday/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isSaturday; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function isSaturday(dirtyDate) { - (0, _index2.default)(1, arguments); - return (0, _index.default)(dirtyDate).getDay() === 6; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/addBusinessDays/index.js -var require_addBusinessDays = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/addBusinessDays/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = addBusinessDays; - var _index = _interopRequireDefault(require_isWeekend()); - var _index2 = _interopRequireDefault(require_toDate()); - var _index3 = _interopRequireDefault(require_toInteger()); - var _index4 = _interopRequireDefault(require_requiredArgs()); - var _index5 = _interopRequireDefault(require_isSunday()); - var _index6 = _interopRequireDefault(require_isSaturday()); - function addBusinessDays(dirtyDate, dirtyAmount) { - (0, _index4.default)(2, arguments); - var date = (0, _index2.default)(dirtyDate); - var startedOnWeekend = (0, _index.default)(date); - var amount = (0, _index3.default)(dirtyAmount); - if (isNaN(amount)) - return /* @__PURE__ */ new Date(NaN); - var hours = date.getHours(); - var sign = amount < 0 ? -1 : 1; - var fullWeeks = (0, _index3.default)(amount / 5); - date.setDate(date.getDate() + fullWeeks * 7); - var restDays = Math.abs(amount % 5); - while (restDays > 0) { - date.setDate(date.getDate() + sign); - if (!(0, _index.default)(date)) - restDays -= 1; - } - if (startedOnWeekend && (0, _index.default)(date) && amount !== 0) { - if ((0, _index6.default)(date)) - date.setDate(date.getDate() + (sign < 0 ? 2 : -1)); - if ((0, _index5.default)(date)) - date.setDate(date.getDate() + (sign < 0 ? 1 : -2)); - } - date.setHours(hours); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/addMilliseconds/index.js -var require_addMilliseconds = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/addMilliseconds/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = addMilliseconds; - var _index = _interopRequireDefault(require_toInteger()); - var _index2 = _interopRequireDefault(require_toDate()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function addMilliseconds(dirtyDate, dirtyAmount) { - (0, _index3.default)(2, arguments); - var timestamp = (0, _index2.default)(dirtyDate).getTime(); - var amount = (0, _index.default)(dirtyAmount); - return new Date(timestamp + amount); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/addHours/index.js -var require_addHours = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/addHours/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = addHours; - var _index = _interopRequireDefault(require_toInteger()); - var _index2 = _interopRequireDefault(require_addMilliseconds()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - var MILLISECONDS_IN_HOUR = 36e5; - function addHours(dirtyDate, dirtyAmount) { - (0, _index3.default)(2, arguments); - var amount = (0, _index.default)(dirtyAmount); - return (0, _index2.default)(dirtyDate, amount * MILLISECONDS_IN_HOUR); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/defaultOptions/index.js -var require_defaultOptions = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/defaultOptions/index.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.getDefaultOptions = getDefaultOptions; - exports2.setDefaultOptions = setDefaultOptions; - var defaultOptions = {}; - function getDefaultOptions() { - return defaultOptions; - } - function setDefaultOptions(newOptions) { - defaultOptions = newOptions; - } - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/startOfWeek/index.js -var require_startOfWeek = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/startOfWeek/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = startOfWeek; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_toInteger()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - var _index4 = require_defaultOptions(); - function startOfWeek(dirtyDate, options2) { - var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; - (0, _index3.default)(1, arguments); - var defaultOptions = (0, _index4.getDefaultOptions)(); - var weekStartsOn = (0, _index2.default)((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options2 === null || options2 === void 0 ? void 0 : options2.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options2 === null || options2 === void 0 ? void 0 : (_options$locale = options2.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); - if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { - throw new RangeError("weekStartsOn must be between 0 and 6 inclusively"); - } - var date = (0, _index.default)(dirtyDate); - var day = date.getDay(); - var diff2 = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; - date.setDate(date.getDate() - diff2); - date.setHours(0, 0, 0, 0); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/startOfISOWeek/index.js -var require_startOfISOWeek = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/startOfISOWeek/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = startOfISOWeek; - var _index = _interopRequireDefault(require_startOfWeek()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function startOfISOWeek(dirtyDate) { - (0, _index2.default)(1, arguments); - return (0, _index.default)(dirtyDate, { - weekStartsOn: 1 - }); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getISOWeekYear/index.js -var require_getISOWeekYear = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getISOWeekYear/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = getISOWeekYear; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_startOfISOWeek()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function getISOWeekYear(dirtyDate) { - (0, _index3.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - var year = date.getFullYear(); - var fourthOfJanuaryOfNextYear = /* @__PURE__ */ new Date(0); - fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4); - fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0); - var startOfNextYear = (0, _index2.default)(fourthOfJanuaryOfNextYear); - var fourthOfJanuaryOfThisYear = /* @__PURE__ */ new Date(0); - fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4); - fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0); - var startOfThisYear = (0, _index2.default)(fourthOfJanuaryOfThisYear); - if (date.getTime() >= startOfNextYear.getTime()) { - return year + 1; - } else if (date.getTime() >= startOfThisYear.getTime()) { - return year; - } else { - return year - 1; - } - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/startOfISOWeekYear/index.js -var require_startOfISOWeekYear = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/startOfISOWeekYear/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = startOfISOWeekYear; - var _index = _interopRequireDefault(require_getISOWeekYear()); - var _index2 = _interopRequireDefault(require_startOfISOWeek()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function startOfISOWeekYear(dirtyDate) { - (0, _index3.default)(1, arguments); - var year = (0, _index.default)(dirtyDate); - var fourthOfJanuary = /* @__PURE__ */ new Date(0); - fourthOfJanuary.setFullYear(year, 0, 4); - fourthOfJanuary.setHours(0, 0, 0, 0); - var date = (0, _index2.default)(fourthOfJanuary); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds/index.js -var require_getTimezoneOffsetInMilliseconds = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds/index.js"(exports2, module2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = getTimezoneOffsetInMilliseconds; - function getTimezoneOffsetInMilliseconds(date) { - var utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds())); - utcDate.setUTCFullYear(date.getFullYear()); - return date.getTime() - utcDate.getTime(); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/startOfDay/index.js -var require_startOfDay = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/startOfDay/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = startOfDay; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function startOfDay(dirtyDate) { - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - date.setHours(0, 0, 0, 0); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInCalendarDays/index.js -var require_differenceInCalendarDays = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInCalendarDays/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = differenceInCalendarDays; - var _index = _interopRequireDefault(require_getTimezoneOffsetInMilliseconds()); - var _index2 = _interopRequireDefault(require_startOfDay()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - var MILLISECONDS_IN_DAY = 864e5; - function differenceInCalendarDays(dirtyDateLeft, dirtyDateRight) { - (0, _index3.default)(2, arguments); - var startOfDayLeft = (0, _index2.default)(dirtyDateLeft); - var startOfDayRight = (0, _index2.default)(dirtyDateRight); - var timestampLeft = startOfDayLeft.getTime() - (0, _index.default)(startOfDayLeft); - var timestampRight = startOfDayRight.getTime() - (0, _index.default)(startOfDayRight); - return Math.round((timestampLeft - timestampRight) / MILLISECONDS_IN_DAY); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/setISOWeekYear/index.js -var require_setISOWeekYear = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/setISOWeekYear/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = setISOWeekYear; - var _index = _interopRequireDefault(require_toInteger()); - var _index2 = _interopRequireDefault(require_toDate()); - var _index3 = _interopRequireDefault(require_startOfISOWeekYear()); - var _index4 = _interopRequireDefault(require_differenceInCalendarDays()); - var _index5 = _interopRequireDefault(require_requiredArgs()); - function setISOWeekYear(dirtyDate, dirtyISOWeekYear) { - (0, _index5.default)(2, arguments); - var date = (0, _index2.default)(dirtyDate); - var isoWeekYear = (0, _index.default)(dirtyISOWeekYear); - var diff2 = (0, _index4.default)(date, (0, _index3.default)(date)); - var fourthOfJanuary = /* @__PURE__ */ new Date(0); - fourthOfJanuary.setFullYear(isoWeekYear, 0, 4); - fourthOfJanuary.setHours(0, 0, 0, 0); - date = (0, _index3.default)(fourthOfJanuary); - date.setDate(date.getDate() + diff2); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/addISOWeekYears/index.js -var require_addISOWeekYears = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/addISOWeekYears/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = addISOWeekYears; - var _index = _interopRequireDefault(require_toInteger()); - var _index2 = _interopRequireDefault(require_getISOWeekYear()); - var _index3 = _interopRequireDefault(require_setISOWeekYear()); - var _index4 = _interopRequireDefault(require_requiredArgs()); - function addISOWeekYears(dirtyDate, dirtyAmount) { - (0, _index4.default)(2, arguments); - var amount = (0, _index.default)(dirtyAmount); - return (0, _index3.default)(dirtyDate, (0, _index2.default)(dirtyDate) + amount); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/addMinutes/index.js -var require_addMinutes = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/addMinutes/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = addMinutes; - var _index = _interopRequireDefault(require_toInteger()); - var _index2 = _interopRequireDefault(require_addMilliseconds()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - var MILLISECONDS_IN_MINUTE = 6e4; - function addMinutes(dirtyDate, dirtyAmount) { - (0, _index3.default)(2, arguments); - var amount = (0, _index.default)(dirtyAmount); - return (0, _index2.default)(dirtyDate, amount * MILLISECONDS_IN_MINUTE); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/addQuarters/index.js -var require_addQuarters = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/addQuarters/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = addQuarters; - var _index = _interopRequireDefault(require_toInteger()); - var _index2 = _interopRequireDefault(require_addMonths()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function addQuarters(dirtyDate, dirtyAmount) { - (0, _index3.default)(2, arguments); - var amount = (0, _index.default)(dirtyAmount); - var months = amount * 3; - return (0, _index2.default)(dirtyDate, months); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/addSeconds/index.js -var require_addSeconds = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/addSeconds/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = addSeconds; - var _index = _interopRequireDefault(require_toInteger()); - var _index2 = _interopRequireDefault(require_addMilliseconds()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function addSeconds(dirtyDate, dirtyAmount) { - (0, _index3.default)(2, arguments); - var amount = (0, _index.default)(dirtyAmount); - return (0, _index2.default)(dirtyDate, amount * 1e3); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/addWeeks/index.js -var require_addWeeks = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/addWeeks/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = addWeeks; - var _index = _interopRequireDefault(require_toInteger()); - var _index2 = _interopRequireDefault(require_addDays()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function addWeeks(dirtyDate, dirtyAmount) { - (0, _index3.default)(2, arguments); - var amount = (0, _index.default)(dirtyAmount); - var days = amount * 7; - return (0, _index2.default)(dirtyDate, days); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/addYears/index.js -var require_addYears = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/addYears/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = addYears; - var _index = _interopRequireDefault(require_toInteger()); - var _index2 = _interopRequireDefault(require_addMonths()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function addYears(dirtyDate, dirtyAmount) { - (0, _index3.default)(2, arguments); - var amount = (0, _index.default)(dirtyAmount); - return (0, _index2.default)(dirtyDate, amount * 12); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/areIntervalsOverlapping/index.js -var require_areIntervalsOverlapping = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/areIntervalsOverlapping/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = areIntervalsOverlapping; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function areIntervalsOverlapping(intervalLeft, intervalRight, options2) { - (0, _index2.default)(2, arguments); - var leftStartTime = (0, _index.default)(intervalLeft === null || intervalLeft === void 0 ? void 0 : intervalLeft.start).getTime(); - var leftEndTime = (0, _index.default)(intervalLeft === null || intervalLeft === void 0 ? void 0 : intervalLeft.end).getTime(); - var rightStartTime = (0, _index.default)(intervalRight === null || intervalRight === void 0 ? void 0 : intervalRight.start).getTime(); - var rightEndTime = (0, _index.default)(intervalRight === null || intervalRight === void 0 ? void 0 : intervalRight.end).getTime(); - if (!(leftStartTime <= leftEndTime && rightStartTime <= rightEndTime)) { - throw new RangeError("Invalid interval"); - } - if (options2 !== null && options2 !== void 0 && options2.inclusive) { - return leftStartTime <= rightEndTime && rightStartTime <= leftEndTime; - } - return leftStartTime < rightEndTime && rightStartTime < leftEndTime; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/max/index.js -var require_max = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/max/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = max; - var _typeof2 = _interopRequireDefault(require_typeof()); - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function max(dirtyDatesArray) { - (0, _index2.default)(1, arguments); - var datesArray; - if (dirtyDatesArray && typeof dirtyDatesArray.forEach === "function") { - datesArray = dirtyDatesArray; - } else if ((0, _typeof2.default)(dirtyDatesArray) === "object" && dirtyDatesArray !== null) { - datesArray = Array.prototype.slice.call(dirtyDatesArray); - } else { - return /* @__PURE__ */ new Date(NaN); - } - var result; - datesArray.forEach(function(dirtyDate) { - var currentDate = (0, _index.default)(dirtyDate); - if (result === void 0 || result < currentDate || isNaN(Number(currentDate))) { - result = currentDate; - } - }); - return result || /* @__PURE__ */ new Date(NaN); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/min/index.js -var require_min = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/min/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = min; - var _typeof2 = _interopRequireDefault(require_typeof()); - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function min(dirtyDatesArray) { - (0, _index2.default)(1, arguments); - var datesArray; - if (dirtyDatesArray && typeof dirtyDatesArray.forEach === "function") { - datesArray = dirtyDatesArray; - } else if ((0, _typeof2.default)(dirtyDatesArray) === "object" && dirtyDatesArray !== null) { - datesArray = Array.prototype.slice.call(dirtyDatesArray); - } else { - return /* @__PURE__ */ new Date(NaN); - } - var result; - datesArray.forEach(function(dirtyDate) { - var currentDate = (0, _index.default)(dirtyDate); - if (result === void 0 || result > currentDate || isNaN(currentDate.getDate())) { - result = currentDate; - } - }); - return result || /* @__PURE__ */ new Date(NaN); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/clamp/index.js -var require_clamp = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/clamp/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = clamp; - var _index = _interopRequireDefault(require_max()); - var _index2 = _interopRequireDefault(require_min()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function clamp(date, _ref) { - var start4 = _ref.start, end = _ref.end; - (0, _index3.default)(2, arguments); - return (0, _index2.default)([(0, _index.default)([date, start4]), end]); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/closestIndexTo/index.js -var require_closestIndexTo = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/closestIndexTo/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = closestIndexTo; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function closestIndexTo(dirtyDateToCompare, dirtyDatesArray) { - (0, _index2.default)(2, arguments); - var dateToCompare = (0, _index.default)(dirtyDateToCompare); - if (isNaN(Number(dateToCompare))) - return NaN; - var timeToCompare = dateToCompare.getTime(); - var datesArray; - if (dirtyDatesArray == null) { - datesArray = []; - } else if (typeof dirtyDatesArray.forEach === "function") { - datesArray = dirtyDatesArray; - } else { - datesArray = Array.prototype.slice.call(dirtyDatesArray); - } - var result; - var minDistance; - datesArray.forEach(function(dirtyDate, index) { - var currentDate = (0, _index.default)(dirtyDate); - if (isNaN(Number(currentDate))) { - result = NaN; - minDistance = NaN; - return; - } - var distance = Math.abs(timeToCompare - currentDate.getTime()); - if (result == null || distance < Number(minDistance)) { - result = index; - minDistance = distance; - } - }); - return result; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/closestTo/index.js -var require_closestTo = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/closestTo/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = closestTo; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function closestTo(dirtyDateToCompare, dirtyDatesArray) { - (0, _index2.default)(2, arguments); - var dateToCompare = (0, _index.default)(dirtyDateToCompare); - if (isNaN(Number(dateToCompare))) - return /* @__PURE__ */ new Date(NaN); - var timeToCompare = dateToCompare.getTime(); - var datesArray; - if (dirtyDatesArray == null) { - datesArray = []; - } else if (typeof dirtyDatesArray.forEach === "function") { - datesArray = dirtyDatesArray; - } else { - datesArray = Array.prototype.slice.call(dirtyDatesArray); - } - var result; - var minDistance; - datesArray.forEach(function(dirtyDate) { - var currentDate = (0, _index.default)(dirtyDate); - if (isNaN(Number(currentDate))) { - result = /* @__PURE__ */ new Date(NaN); - minDistance = NaN; - return; - } - var distance = Math.abs(timeToCompare - currentDate.getTime()); - if (result == null || distance < Number(minDistance)) { - result = currentDate; - minDistance = distance; - } - }); - return result; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/compareAsc/index.js -var require_compareAsc = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/compareAsc/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = compareAsc; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function compareAsc(dirtyDateLeft, dirtyDateRight) { - (0, _index2.default)(2, arguments); - var dateLeft = (0, _index.default)(dirtyDateLeft); - var dateRight = (0, _index.default)(dirtyDateRight); - var diff2 = dateLeft.getTime() - dateRight.getTime(); - if (diff2 < 0) { - return -1; - } else if (diff2 > 0) { - return 1; - } else { - return diff2; - } - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/compareDesc/index.js -var require_compareDesc = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/compareDesc/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = compareDesc; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function compareDesc(dirtyDateLeft, dirtyDateRight) { - (0, _index2.default)(2, arguments); - var dateLeft = (0, _index.default)(dirtyDateLeft); - var dateRight = (0, _index.default)(dirtyDateRight); - var diff2 = dateLeft.getTime() - dateRight.getTime(); - if (diff2 > 0) { - return -1; - } else if (diff2 < 0) { - return 1; - } else { - return diff2; - } - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/constants/index.js -var require_constants = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/constants/index.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.secondsInYear = exports2.secondsInWeek = exports2.secondsInQuarter = exports2.secondsInMonth = exports2.secondsInMinute = exports2.secondsInHour = exports2.secondsInDay = exports2.quartersInYear = exports2.monthsInYear = exports2.monthsInQuarter = exports2.minutesInHour = exports2.minTime = exports2.millisecondsInSecond = exports2.millisecondsInMinute = exports2.millisecondsInHour = exports2.maxTime = exports2.daysInYear = exports2.daysInWeek = void 0; - var daysInWeek = 7; - exports2.daysInWeek = daysInWeek; - var daysInYear = 365.2425; - exports2.daysInYear = daysInYear; - var maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1e3; - exports2.maxTime = maxTime; - var millisecondsInMinute = 6e4; - exports2.millisecondsInMinute = millisecondsInMinute; - var millisecondsInHour = 36e5; - exports2.millisecondsInHour = millisecondsInHour; - var millisecondsInSecond = 1e3; - exports2.millisecondsInSecond = millisecondsInSecond; - var minTime = -maxTime; - exports2.minTime = minTime; - var minutesInHour = 60; - exports2.minutesInHour = minutesInHour; - var monthsInQuarter = 3; - exports2.monthsInQuarter = monthsInQuarter; - var monthsInYear = 12; - exports2.monthsInYear = monthsInYear; - var quartersInYear = 4; - exports2.quartersInYear = quartersInYear; - var secondsInHour = 3600; - exports2.secondsInHour = secondsInHour; - var secondsInMinute = 60; - exports2.secondsInMinute = secondsInMinute; - var secondsInDay = secondsInHour * 24; - exports2.secondsInDay = secondsInDay; - var secondsInWeek = secondsInDay * 7; - exports2.secondsInWeek = secondsInWeek; - var secondsInYear = secondsInDay * daysInYear; - exports2.secondsInYear = secondsInYear; - var secondsInMonth = secondsInYear / 12; - exports2.secondsInMonth = secondsInMonth; - var secondsInQuarter = secondsInMonth * 3; - exports2.secondsInQuarter = secondsInQuarter; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/daysToWeeks/index.js -var require_daysToWeeks = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/daysToWeeks/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = daysToWeeks; - var _index = _interopRequireDefault(require_requiredArgs()); - var _index2 = require_constants(); - function daysToWeeks(days) { - (0, _index.default)(1, arguments); - var weeks = days / _index2.daysInWeek; - return Math.floor(weeks); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isSameDay/index.js -var require_isSameDay = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isSameDay/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isSameDay; - var _index = _interopRequireDefault(require_startOfDay()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function isSameDay(dirtyDateLeft, dirtyDateRight) { - (0, _index2.default)(2, arguments); - var dateLeftStartOfDay = (0, _index.default)(dirtyDateLeft); - var dateRightStartOfDay = (0, _index.default)(dirtyDateRight); - return dateLeftStartOfDay.getTime() === dateRightStartOfDay.getTime(); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isDate/index.js -var require_isDate = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isDate/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isDate2; - var _typeof2 = _interopRequireDefault(require_typeof()); - var _index = _interopRequireDefault(require_requiredArgs()); - function isDate2(value) { - (0, _index.default)(1, arguments); - return value instanceof Date || (0, _typeof2.default)(value) === "object" && Object.prototype.toString.call(value) === "[object Date]"; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isValid/index.js -var require_isValid = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isValid/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isValid; - var _index = _interopRequireDefault(require_isDate()); - var _index2 = _interopRequireDefault(require_toDate()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function isValid(dirtyDate) { - (0, _index3.default)(1, arguments); - if (!(0, _index.default)(dirtyDate) && typeof dirtyDate !== "number") { - return false; - } - var date = (0, _index2.default)(dirtyDate); - return !isNaN(Number(date)); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInBusinessDays/index.js -var require_differenceInBusinessDays = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInBusinessDays/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = differenceInBusinessDays; - var _index = _interopRequireDefault(require_addDays()); - var _index2 = _interopRequireDefault(require_differenceInCalendarDays()); - var _index3 = _interopRequireDefault(require_isSameDay()); - var _index4 = _interopRequireDefault(require_isValid()); - var _index5 = _interopRequireDefault(require_isWeekend()); - var _index6 = _interopRequireDefault(require_toDate()); - var _index7 = _interopRequireDefault(require_requiredArgs()); - var _index8 = _interopRequireDefault(require_toInteger()); - function differenceInBusinessDays(dirtyDateLeft, dirtyDateRight) { - (0, _index7.default)(2, arguments); - var dateLeft = (0, _index6.default)(dirtyDateLeft); - var dateRight = (0, _index6.default)(dirtyDateRight); - if (!(0, _index4.default)(dateLeft) || !(0, _index4.default)(dateRight)) - return NaN; - var calendarDifference = (0, _index2.default)(dateLeft, dateRight); - var sign = calendarDifference < 0 ? -1 : 1; - var weeks = (0, _index8.default)(calendarDifference / 7); - var result = weeks * 5; - dateRight = (0, _index.default)(dateRight, weeks * 7); - while (!(0, _index3.default)(dateLeft, dateRight)) { - result += (0, _index5.default)(dateRight) ? 0 : sign; - dateRight = (0, _index.default)(dateRight, sign); - } - return result === 0 ? 0 : result; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInCalendarISOWeekYears/index.js -var require_differenceInCalendarISOWeekYears = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInCalendarISOWeekYears/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = differenceInCalendarISOWeekYears; - var _index = _interopRequireDefault(require_getISOWeekYear()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function differenceInCalendarISOWeekYears(dirtyDateLeft, dirtyDateRight) { - (0, _index2.default)(2, arguments); - return (0, _index.default)(dirtyDateLeft) - (0, _index.default)(dirtyDateRight); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInCalendarISOWeeks/index.js -var require_differenceInCalendarISOWeeks = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInCalendarISOWeeks/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = differenceInCalendarISOWeeks; - var _index = _interopRequireDefault(require_getTimezoneOffsetInMilliseconds()); - var _index2 = _interopRequireDefault(require_startOfISOWeek()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - var MILLISECONDS_IN_WEEK = 6048e5; - function differenceInCalendarISOWeeks(dirtyDateLeft, dirtyDateRight) { - (0, _index3.default)(2, arguments); - var startOfISOWeekLeft = (0, _index2.default)(dirtyDateLeft); - var startOfISOWeekRight = (0, _index2.default)(dirtyDateRight); - var timestampLeft = startOfISOWeekLeft.getTime() - (0, _index.default)(startOfISOWeekLeft); - var timestampRight = startOfISOWeekRight.getTime() - (0, _index.default)(startOfISOWeekRight); - return Math.round((timestampLeft - timestampRight) / MILLISECONDS_IN_WEEK); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInCalendarMonths/index.js -var require_differenceInCalendarMonths = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInCalendarMonths/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = differenceInCalendarMonths; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function differenceInCalendarMonths(dirtyDateLeft, dirtyDateRight) { - (0, _index2.default)(2, arguments); - var dateLeft = (0, _index.default)(dirtyDateLeft); - var dateRight = (0, _index.default)(dirtyDateRight); - var yearDiff = dateLeft.getFullYear() - dateRight.getFullYear(); - var monthDiff = dateLeft.getMonth() - dateRight.getMonth(); - return yearDiff * 12 + monthDiff; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getQuarter/index.js -var require_getQuarter = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getQuarter/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = getQuarter; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function getQuarter(dirtyDate) { - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - var quarter = Math.floor(date.getMonth() / 3) + 1; - return quarter; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInCalendarQuarters/index.js -var require_differenceInCalendarQuarters = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInCalendarQuarters/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = differenceInCalendarQuarters; - var _index = _interopRequireDefault(require_getQuarter()); - var _index2 = _interopRequireDefault(require_toDate()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function differenceInCalendarQuarters(dirtyDateLeft, dirtyDateRight) { - (0, _index3.default)(2, arguments); - var dateLeft = (0, _index2.default)(dirtyDateLeft); - var dateRight = (0, _index2.default)(dirtyDateRight); - var yearDiff = dateLeft.getFullYear() - dateRight.getFullYear(); - var quarterDiff = (0, _index.default)(dateLeft) - (0, _index.default)(dateRight); - return yearDiff * 4 + quarterDiff; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInCalendarWeeks/index.js -var require_differenceInCalendarWeeks = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInCalendarWeeks/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = differenceInCalendarWeeks; - var _index = _interopRequireDefault(require_startOfWeek()); - var _index2 = _interopRequireDefault(require_getTimezoneOffsetInMilliseconds()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - var MILLISECONDS_IN_WEEK = 6048e5; - function differenceInCalendarWeeks(dirtyDateLeft, dirtyDateRight, options2) { - (0, _index3.default)(2, arguments); - var startOfWeekLeft = (0, _index.default)(dirtyDateLeft, options2); - var startOfWeekRight = (0, _index.default)(dirtyDateRight, options2); - var timestampLeft = startOfWeekLeft.getTime() - (0, _index2.default)(startOfWeekLeft); - var timestampRight = startOfWeekRight.getTime() - (0, _index2.default)(startOfWeekRight); - return Math.round((timestampLeft - timestampRight) / MILLISECONDS_IN_WEEK); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInCalendarYears/index.js -var require_differenceInCalendarYears = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInCalendarYears/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = differenceInCalendarYears; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function differenceInCalendarYears(dirtyDateLeft, dirtyDateRight) { - (0, _index2.default)(2, arguments); - var dateLeft = (0, _index.default)(dirtyDateLeft); - var dateRight = (0, _index.default)(dirtyDateRight); - return dateLeft.getFullYear() - dateRight.getFullYear(); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInDays/index.js -var require_differenceInDays = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInDays/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = differenceInDays2; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_differenceInCalendarDays()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function compareLocalAsc(dateLeft, dateRight) { - var diff2 = dateLeft.getFullYear() - dateRight.getFullYear() || dateLeft.getMonth() - dateRight.getMonth() || dateLeft.getDate() - dateRight.getDate() || dateLeft.getHours() - dateRight.getHours() || dateLeft.getMinutes() - dateRight.getMinutes() || dateLeft.getSeconds() - dateRight.getSeconds() || dateLeft.getMilliseconds() - dateRight.getMilliseconds(); - if (diff2 < 0) { - return -1; - } else if (diff2 > 0) { - return 1; - } else { - return diff2; - } - } - function differenceInDays2(dirtyDateLeft, dirtyDateRight) { - (0, _index3.default)(2, arguments); - var dateLeft = (0, _index.default)(dirtyDateLeft); - var dateRight = (0, _index.default)(dirtyDateRight); - var sign = compareLocalAsc(dateLeft, dateRight); - var difference = Math.abs((0, _index2.default)(dateLeft, dateRight)); - dateLeft.setDate(dateLeft.getDate() - sign * difference); - var isLastDayNotFull = Number(compareLocalAsc(dateLeft, dateRight) === -sign); - var result = sign * (difference - isLastDayNotFull); - return result === 0 ? 0 : result; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInMilliseconds/index.js -var require_differenceInMilliseconds = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInMilliseconds/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = differenceInMilliseconds; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function differenceInMilliseconds(dateLeft, dateRight) { - (0, _index2.default)(2, arguments); - return (0, _index.default)(dateLeft).getTime() - (0, _index.default)(dateRight).getTime(); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/roundingMethods/index.js -var require_roundingMethods = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/roundingMethods/index.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.getRoundingMethod = getRoundingMethod; - var roundingMap = { - ceil: Math.ceil, - round: Math.round, - floor: Math.floor, - trunc: function trunc(value) { - return value < 0 ? Math.ceil(value) : Math.floor(value); - } - // Math.trunc is not supported by IE - }; - var defaultRoundingMethod = "trunc"; - function getRoundingMethod(method) { - return method ? roundingMap[method] : roundingMap[defaultRoundingMethod]; - } - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInHours/index.js -var require_differenceInHours = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInHours/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = differenceInHours; - var _index = require_constants(); - var _index2 = _interopRequireDefault(require_differenceInMilliseconds()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - var _index4 = require_roundingMethods(); - function differenceInHours(dateLeft, dateRight, options2) { - (0, _index3.default)(2, arguments); - var diff2 = (0, _index2.default)(dateLeft, dateRight) / _index.millisecondsInHour; - return (0, _index4.getRoundingMethod)(options2 === null || options2 === void 0 ? void 0 : options2.roundingMethod)(diff2); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/subISOWeekYears/index.js -var require_subISOWeekYears = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/subISOWeekYears/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = subISOWeekYears; - var _index = _interopRequireDefault(require_addISOWeekYears()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - var _index3 = _interopRequireDefault(require_toInteger()); - function subISOWeekYears(dirtyDate, dirtyAmount) { - (0, _index2.default)(2, arguments); - var amount = (0, _index3.default)(dirtyAmount); - return (0, _index.default)(dirtyDate, -amount); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInISOWeekYears/index.js -var require_differenceInISOWeekYears = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInISOWeekYears/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = differenceInISOWeekYears; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_differenceInCalendarISOWeekYears()); - var _index3 = _interopRequireDefault(require_compareAsc()); - var _index4 = _interopRequireDefault(require_subISOWeekYears()); - var _index5 = _interopRequireDefault(require_requiredArgs()); - function differenceInISOWeekYears(dirtyDateLeft, dirtyDateRight) { - (0, _index5.default)(2, arguments); - var dateLeft = (0, _index.default)(dirtyDateLeft); - var dateRight = (0, _index.default)(dirtyDateRight); - var sign = (0, _index3.default)(dateLeft, dateRight); - var difference = Math.abs((0, _index2.default)(dateLeft, dateRight)); - dateLeft = (0, _index4.default)(dateLeft, sign * difference); - var isLastISOWeekYearNotFull = Number((0, _index3.default)(dateLeft, dateRight) === -sign); - var result = sign * (difference - isLastISOWeekYearNotFull); - return result === 0 ? 0 : result; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInMinutes/index.js -var require_differenceInMinutes = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInMinutes/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = differenceInMinutes; - var _index = require_constants(); - var _index2 = _interopRequireDefault(require_differenceInMilliseconds()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - var _index4 = require_roundingMethods(); - function differenceInMinutes(dateLeft, dateRight, options2) { - (0, _index3.default)(2, arguments); - var diff2 = (0, _index2.default)(dateLeft, dateRight) / _index.millisecondsInMinute; - return (0, _index4.getRoundingMethod)(options2 === null || options2 === void 0 ? void 0 : options2.roundingMethod)(diff2); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/endOfDay/index.js -var require_endOfDay = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/endOfDay/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = endOfDay; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function endOfDay(dirtyDate) { - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - date.setHours(23, 59, 59, 999); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/endOfMonth/index.js -var require_endOfMonth = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/endOfMonth/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = endOfMonth; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function endOfMonth(dirtyDate) { - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - var month = date.getMonth(); - date.setFullYear(date.getFullYear(), month + 1, 0); - date.setHours(23, 59, 59, 999); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isLastDayOfMonth/index.js -var require_isLastDayOfMonth = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isLastDayOfMonth/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isLastDayOfMonth; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_endOfDay()); - var _index3 = _interopRequireDefault(require_endOfMonth()); - var _index4 = _interopRequireDefault(require_requiredArgs()); - function isLastDayOfMonth(dirtyDate) { - (0, _index4.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - return (0, _index2.default)(date).getTime() === (0, _index3.default)(date).getTime(); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInMonths/index.js -var require_differenceInMonths = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInMonths/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = differenceInMonths; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_differenceInCalendarMonths()); - var _index3 = _interopRequireDefault(require_compareAsc()); - var _index4 = _interopRequireDefault(require_requiredArgs()); - var _index5 = _interopRequireDefault(require_isLastDayOfMonth()); - function differenceInMonths(dirtyDateLeft, dirtyDateRight) { - (0, _index4.default)(2, arguments); - var dateLeft = (0, _index.default)(dirtyDateLeft); - var dateRight = (0, _index.default)(dirtyDateRight); - var sign = (0, _index3.default)(dateLeft, dateRight); - var difference = Math.abs((0, _index2.default)(dateLeft, dateRight)); - var result; - if (difference < 1) { - result = 0; - } else { - if (dateLeft.getMonth() === 1 && dateLeft.getDate() > 27) { - dateLeft.setDate(30); - } - dateLeft.setMonth(dateLeft.getMonth() - sign * difference); - var isLastMonthNotFull = (0, _index3.default)(dateLeft, dateRight) === -sign; - if ((0, _index5.default)((0, _index.default)(dirtyDateLeft)) && difference === 1 && (0, _index3.default)(dirtyDateLeft, dateRight) === 1) { - isLastMonthNotFull = false; - } - result = sign * (difference - Number(isLastMonthNotFull)); - } - return result === 0 ? 0 : result; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInQuarters/index.js -var require_differenceInQuarters = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInQuarters/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = differenceInQuarters; - var _index = _interopRequireDefault(require_differenceInMonths()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - var _index3 = require_roundingMethods(); - function differenceInQuarters(dateLeft, dateRight, options2) { - (0, _index2.default)(2, arguments); - var diff2 = (0, _index.default)(dateLeft, dateRight) / 3; - return (0, _index3.getRoundingMethod)(options2 === null || options2 === void 0 ? void 0 : options2.roundingMethod)(diff2); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInSeconds/index.js -var require_differenceInSeconds = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInSeconds/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = differenceInSeconds; - var _index = _interopRequireDefault(require_differenceInMilliseconds()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - var _index3 = require_roundingMethods(); - function differenceInSeconds(dateLeft, dateRight, options2) { - (0, _index2.default)(2, arguments); - var diff2 = (0, _index.default)(dateLeft, dateRight) / 1e3; - return (0, _index3.getRoundingMethod)(options2 === null || options2 === void 0 ? void 0 : options2.roundingMethod)(diff2); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInWeeks/index.js -var require_differenceInWeeks = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInWeeks/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = differenceInWeeks; - var _index = _interopRequireDefault(require_differenceInDays()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - var _index3 = require_roundingMethods(); - function differenceInWeeks(dateLeft, dateRight, options2) { - (0, _index2.default)(2, arguments); - var diff2 = (0, _index.default)(dateLeft, dateRight) / 7; - return (0, _index3.getRoundingMethod)(options2 === null || options2 === void 0 ? void 0 : options2.roundingMethod)(diff2); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInYears/index.js -var require_differenceInYears = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/differenceInYears/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = differenceInYears; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_differenceInCalendarYears()); - var _index3 = _interopRequireDefault(require_compareAsc()); - var _index4 = _interopRequireDefault(require_requiredArgs()); - function differenceInYears(dirtyDateLeft, dirtyDateRight) { - (0, _index4.default)(2, arguments); - var dateLeft = (0, _index.default)(dirtyDateLeft); - var dateRight = (0, _index.default)(dirtyDateRight); - var sign = (0, _index3.default)(dateLeft, dateRight); - var difference = Math.abs((0, _index2.default)(dateLeft, dateRight)); - dateLeft.setFullYear(1584); - dateRight.setFullYear(1584); - var isLastYearNotFull = (0, _index3.default)(dateLeft, dateRight) === -sign; - var result = sign * (difference - Number(isLastYearNotFull)); - return result === 0 ? 0 : result; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/eachDayOfInterval/index.js -var require_eachDayOfInterval = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/eachDayOfInterval/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = eachDayOfInterval; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function eachDayOfInterval(dirtyInterval, options2) { - var _options$step; - (0, _index2.default)(1, arguments); - var interval = dirtyInterval || {}; - var startDate = (0, _index.default)(interval.start); - var endDate = (0, _index.default)(interval.end); - var endTime = endDate.getTime(); - if (!(startDate.getTime() <= endTime)) { - throw new RangeError("Invalid interval"); - } - var dates = []; - var currentDate = startDate; - currentDate.setHours(0, 0, 0, 0); - var step = Number((_options$step = options2 === null || options2 === void 0 ? void 0 : options2.step) !== null && _options$step !== void 0 ? _options$step : 1); - if (step < 1 || isNaN(step)) - throw new RangeError("`options.step` must be a number greater than 1"); - while (currentDate.getTime() <= endTime) { - dates.push((0, _index.default)(currentDate)); - currentDate.setDate(currentDate.getDate() + step); - currentDate.setHours(0, 0, 0, 0); - } - return dates; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/eachHourOfInterval/index.js -var require_eachHourOfInterval = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/eachHourOfInterval/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = eachHourOfInterval; - var _index = _interopRequireDefault(require_addHours()); - var _index2 = _interopRequireDefault(require_toDate()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function eachHourOfInterval(dirtyInterval, options2) { - var _options$step; - (0, _index3.default)(1, arguments); - var interval = dirtyInterval || {}; - var startDate = (0, _index2.default)(interval.start); - var endDate = (0, _index2.default)(interval.end); - var startTime = startDate.getTime(); - var endTime = endDate.getTime(); - if (!(startTime <= endTime)) { - throw new RangeError("Invalid interval"); - } - var dates = []; - var currentDate = startDate; - currentDate.setMinutes(0, 0, 0); - var step = Number((_options$step = options2 === null || options2 === void 0 ? void 0 : options2.step) !== null && _options$step !== void 0 ? _options$step : 1); - if (step < 1 || isNaN(step)) - throw new RangeError("`options.step` must be a number greater than 1"); - while (currentDate.getTime() <= endTime) { - dates.push((0, _index2.default)(currentDate)); - currentDate = (0, _index.default)(currentDate, step); - } - return dates; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/startOfMinute/index.js -var require_startOfMinute = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/startOfMinute/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = startOfMinute; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function startOfMinute(dirtyDate) { - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - date.setSeconds(0, 0); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/eachMinuteOfInterval/index.js -var require_eachMinuteOfInterval = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/eachMinuteOfInterval/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = eachMinuteOfInterval; - var _index = _interopRequireDefault(require_addMinutes()); - var _index2 = _interopRequireDefault(require_toDate()); - var _index3 = _interopRequireDefault(require_startOfMinute()); - var _index4 = _interopRequireDefault(require_requiredArgs()); - function eachMinuteOfInterval(interval, options2) { - var _options$step; - (0, _index4.default)(1, arguments); - var startDate = (0, _index3.default)((0, _index2.default)(interval.start)); - var endDate = (0, _index2.default)(interval.end); - var startTime = startDate.getTime(); - var endTime = endDate.getTime(); - if (startTime >= endTime) { - throw new RangeError("Invalid interval"); - } - var dates = []; - var currentDate = startDate; - var step = Number((_options$step = options2 === null || options2 === void 0 ? void 0 : options2.step) !== null && _options$step !== void 0 ? _options$step : 1); - if (step < 1 || isNaN(step)) - throw new RangeError("`options.step` must be a number equal to or greater than 1"); - while (currentDate.getTime() <= endTime) { - dates.push((0, _index2.default)(currentDate)); - currentDate = (0, _index.default)(currentDate, step); - } - return dates; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/eachMonthOfInterval/index.js -var require_eachMonthOfInterval = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/eachMonthOfInterval/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = eachMonthOfInterval; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function eachMonthOfInterval(dirtyInterval) { - (0, _index2.default)(1, arguments); - var interval = dirtyInterval || {}; - var startDate = (0, _index.default)(interval.start); - var endDate = (0, _index.default)(interval.end); - var endTime = endDate.getTime(); - var dates = []; - if (!(startDate.getTime() <= endTime)) { - throw new RangeError("Invalid interval"); - } - var currentDate = startDate; - currentDate.setHours(0, 0, 0, 0); - currentDate.setDate(1); - while (currentDate.getTime() <= endTime) { - dates.push((0, _index.default)(currentDate)); - currentDate.setMonth(currentDate.getMonth() + 1); - } - return dates; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/startOfQuarter/index.js -var require_startOfQuarter = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/startOfQuarter/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = startOfQuarter; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function startOfQuarter(dirtyDate) { - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - var currentMonth = date.getMonth(); - var month = currentMonth - currentMonth % 3; - date.setMonth(month, 1); - date.setHours(0, 0, 0, 0); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/eachQuarterOfInterval/index.js -var require_eachQuarterOfInterval = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/eachQuarterOfInterval/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = eachQuarterOfInterval; - var _index = _interopRequireDefault(require_addQuarters()); - var _index2 = _interopRequireDefault(require_startOfQuarter()); - var _index3 = _interopRequireDefault(require_toDate()); - var _index4 = _interopRequireDefault(require_requiredArgs()); - function eachQuarterOfInterval(dirtyInterval) { - (0, _index4.default)(1, arguments); - var interval = dirtyInterval || {}; - var startDate = (0, _index3.default)(interval.start); - var endDate = (0, _index3.default)(interval.end); - var endTime = endDate.getTime(); - if (!(startDate.getTime() <= endTime)) { - throw new RangeError("Invalid interval"); - } - var startDateQuarter = (0, _index2.default)(startDate); - var endDateQuarter = (0, _index2.default)(endDate); - endTime = endDateQuarter.getTime(); - var quarters = []; - var currentQuarter = startDateQuarter; - while (currentQuarter.getTime() <= endTime) { - quarters.push((0, _index3.default)(currentQuarter)); - currentQuarter = (0, _index.default)(currentQuarter, 1); - } - return quarters; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/eachWeekOfInterval/index.js -var require_eachWeekOfInterval = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/eachWeekOfInterval/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = eachWeekOfInterval; - var _index = _interopRequireDefault(require_addWeeks()); - var _index2 = _interopRequireDefault(require_startOfWeek()); - var _index3 = _interopRequireDefault(require_toDate()); - var _index4 = _interopRequireDefault(require_requiredArgs()); - function eachWeekOfInterval(dirtyInterval, options2) { - (0, _index4.default)(1, arguments); - var interval = dirtyInterval || {}; - var startDate = (0, _index3.default)(interval.start); - var endDate = (0, _index3.default)(interval.end); - var endTime = endDate.getTime(); - if (!(startDate.getTime() <= endTime)) { - throw new RangeError("Invalid interval"); - } - var startDateWeek = (0, _index2.default)(startDate, options2); - var endDateWeek = (0, _index2.default)(endDate, options2); - startDateWeek.setHours(15); - endDateWeek.setHours(15); - endTime = endDateWeek.getTime(); - var weeks = []; - var currentWeek = startDateWeek; - while (currentWeek.getTime() <= endTime) { - currentWeek.setHours(0); - weeks.push((0, _index3.default)(currentWeek)); - currentWeek = (0, _index.default)(currentWeek, 1); - currentWeek.setHours(15); - } - return weeks; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/eachWeekendOfInterval/index.js -var require_eachWeekendOfInterval = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/eachWeekendOfInterval/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = eachWeekendOfInterval; - var _index = _interopRequireDefault(require_eachDayOfInterval()); - var _index2 = _interopRequireDefault(require_isSunday()); - var _index3 = _interopRequireDefault(require_isWeekend()); - var _index4 = _interopRequireDefault(require_requiredArgs()); - function eachWeekendOfInterval(interval) { - (0, _index4.default)(1, arguments); - var dateInterval = (0, _index.default)(interval); - var weekends = []; - var index = 0; - while (index < dateInterval.length) { - var date = dateInterval[index++]; - if ((0, _index3.default)(date)) { - weekends.push(date); - if ((0, _index2.default)(date)) - index = index + 5; - } - } - return weekends; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/startOfMonth/index.js -var require_startOfMonth = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/startOfMonth/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = startOfMonth; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function startOfMonth(dirtyDate) { - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - date.setDate(1); - date.setHours(0, 0, 0, 0); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/eachWeekendOfMonth/index.js -var require_eachWeekendOfMonth = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/eachWeekendOfMonth/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = eachWeekendOfMonth; - var _index = _interopRequireDefault(require_eachWeekendOfInterval()); - var _index2 = _interopRequireDefault(require_startOfMonth()); - var _index3 = _interopRequireDefault(require_endOfMonth()); - var _index4 = _interopRequireDefault(require_requiredArgs()); - function eachWeekendOfMonth(dirtyDate) { - (0, _index4.default)(1, arguments); - var startDate = (0, _index2.default)(dirtyDate); - if (isNaN(startDate.getTime())) - throw new RangeError("The passed date is invalid"); - var endDate = (0, _index3.default)(dirtyDate); - return (0, _index.default)({ - start: startDate, - end: endDate - }); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/endOfYear/index.js -var require_endOfYear = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/endOfYear/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = endOfYear; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function endOfYear(dirtyDate) { - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - var year = date.getFullYear(); - date.setFullYear(year + 1, 0, 0); - date.setHours(23, 59, 59, 999); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/startOfYear/index.js -var require_startOfYear = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/startOfYear/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = startOfYear; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function startOfYear(dirtyDate) { - (0, _index2.default)(1, arguments); - var cleanDate = (0, _index.default)(dirtyDate); - var date = /* @__PURE__ */ new Date(0); - date.setFullYear(cleanDate.getFullYear(), 0, 1); - date.setHours(0, 0, 0, 0); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/eachWeekendOfYear/index.js -var require_eachWeekendOfYear = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/eachWeekendOfYear/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = eachWeekendOfYear; - var _index = _interopRequireDefault(require_eachWeekendOfInterval()); - var _index2 = _interopRequireDefault(require_endOfYear()); - var _index3 = _interopRequireDefault(require_startOfYear()); - var _index4 = _interopRequireDefault(require_requiredArgs()); - function eachWeekendOfYear(dirtyDate) { - (0, _index4.default)(1, arguments); - var startDate = (0, _index3.default)(dirtyDate); - var endDate = (0, _index2.default)(dirtyDate); - return (0, _index.default)({ - start: startDate, - end: endDate - }); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/eachYearOfInterval/index.js -var require_eachYearOfInterval = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/eachYearOfInterval/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = eachYearOfInterval; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function eachYearOfInterval(dirtyInterval) { - (0, _index2.default)(1, arguments); - var interval = dirtyInterval || {}; - var startDate = (0, _index.default)(interval.start); - var endDate = (0, _index.default)(interval.end); - var endTime = endDate.getTime(); - if (!(startDate.getTime() <= endTime)) { - throw new RangeError("Invalid interval"); - } - var dates = []; - var currentDate = startDate; - currentDate.setHours(0, 0, 0, 0); - currentDate.setMonth(0, 1); - while (currentDate.getTime() <= endTime) { - dates.push((0, _index.default)(currentDate)); - currentDate.setFullYear(currentDate.getFullYear() + 1); - } - return dates; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/endOfDecade/index.js -var require_endOfDecade = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/endOfDecade/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = endOfDecade; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function endOfDecade(dirtyDate) { - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - var year = date.getFullYear(); - var decade = 9 + Math.floor(year / 10) * 10; - date.setFullYear(decade, 11, 31); - date.setHours(23, 59, 59, 999); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/endOfHour/index.js -var require_endOfHour = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/endOfHour/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = endOfHour; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function endOfHour(dirtyDate) { - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - date.setMinutes(59, 59, 999); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/endOfWeek/index.js -var require_endOfWeek = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/endOfWeek/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = endOfWeek; - var _index = require_defaultOptions(); - var _index2 = _interopRequireDefault(require_toDate()); - var _index3 = _interopRequireDefault(require_toInteger()); - var _index4 = _interopRequireDefault(require_requiredArgs()); - function endOfWeek(dirtyDate, options2) { - var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; - (0, _index4.default)(1, arguments); - var defaultOptions = (0, _index.getDefaultOptions)(); - var weekStartsOn = (0, _index3.default)((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options2 === null || options2 === void 0 ? void 0 : options2.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options2 === null || options2 === void 0 ? void 0 : (_options$locale = options2.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); - if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { - throw new RangeError("weekStartsOn must be between 0 and 6 inclusively"); - } - var date = (0, _index2.default)(dirtyDate); - var day = date.getDay(); - var diff2 = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn); - date.setDate(date.getDate() + diff2); - date.setHours(23, 59, 59, 999); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/endOfISOWeek/index.js -var require_endOfISOWeek = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/endOfISOWeek/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = endOfISOWeek; - var _index = _interopRequireDefault(require_endOfWeek()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function endOfISOWeek(dirtyDate) { - (0, _index2.default)(1, arguments); - return (0, _index.default)(dirtyDate, { - weekStartsOn: 1 - }); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/endOfISOWeekYear/index.js -var require_endOfISOWeekYear = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/endOfISOWeekYear/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = endOfISOWeekYear; - var _index = _interopRequireDefault(require_getISOWeekYear()); - var _index2 = _interopRequireDefault(require_startOfISOWeek()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function endOfISOWeekYear(dirtyDate) { - (0, _index3.default)(1, arguments); - var year = (0, _index.default)(dirtyDate); - var fourthOfJanuaryOfNextYear = /* @__PURE__ */ new Date(0); - fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4); - fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0); - var date = (0, _index2.default)(fourthOfJanuaryOfNextYear); - date.setMilliseconds(date.getMilliseconds() - 1); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/endOfMinute/index.js -var require_endOfMinute = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/endOfMinute/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = endOfMinute; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function endOfMinute(dirtyDate) { - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - date.setSeconds(59, 999); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/endOfQuarter/index.js -var require_endOfQuarter = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/endOfQuarter/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = endOfQuarter; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function endOfQuarter(dirtyDate) { - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - var currentMonth = date.getMonth(); - var month = currentMonth - currentMonth % 3 + 3; - date.setMonth(month, 0); - date.setHours(23, 59, 59, 999); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/endOfSecond/index.js -var require_endOfSecond = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/endOfSecond/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = endOfSecond; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function endOfSecond(dirtyDate) { - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - date.setMilliseconds(999); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/endOfToday/index.js -var require_endOfToday = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/endOfToday/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = endOfToday; - var _index = _interopRequireDefault(require_endOfDay()); - function endOfToday() { - return (0, _index.default)(Date.now()); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/endOfTomorrow/index.js -var require_endOfTomorrow = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/endOfTomorrow/index.js"(exports2, module2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = endOfTomorrow; - function endOfTomorrow() { - var now = /* @__PURE__ */ new Date(); - var year = now.getFullYear(); - var month = now.getMonth(); - var day = now.getDate(); - var date = /* @__PURE__ */ new Date(0); - date.setFullYear(year, month, day + 1); - date.setHours(23, 59, 59, 999); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/endOfYesterday/index.js -var require_endOfYesterday = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/endOfYesterday/index.js"(exports2, module2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = endOfYesterday; - function endOfYesterday() { - var now = /* @__PURE__ */ new Date(); - var year = now.getFullYear(); - var month = now.getMonth(); - var day = now.getDate(); - var date = /* @__PURE__ */ new Date(0); - date.setFullYear(year, month, day - 1); - date.setHours(23, 59, 59, 999); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/subMilliseconds/index.js -var require_subMilliseconds = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/subMilliseconds/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = subMilliseconds; - var _index = _interopRequireDefault(require_addMilliseconds()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - var _index3 = _interopRequireDefault(require_toInteger()); - function subMilliseconds(dirtyDate, dirtyAmount) { - (0, _index2.default)(2, arguments); - var amount = (0, _index3.default)(dirtyAmount); - return (0, _index.default)(dirtyDate, -amount); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/getUTCDayOfYear/index.js -var require_getUTCDayOfYear = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/getUTCDayOfYear/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = getUTCDayOfYear; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - var MILLISECONDS_IN_DAY = 864e5; - function getUTCDayOfYear(dirtyDate) { - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - var timestamp = date.getTime(); - date.setUTCMonth(0, 1); - date.setUTCHours(0, 0, 0, 0); - var startOfYearTimestamp = date.getTime(); - var difference = timestamp - startOfYearTimestamp; - return Math.floor(difference / MILLISECONDS_IN_DAY) + 1; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/startOfUTCISOWeek/index.js -var require_startOfUTCISOWeek = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/startOfUTCISOWeek/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = startOfUTCISOWeek; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function startOfUTCISOWeek(dirtyDate) { - (0, _index2.default)(1, arguments); - var weekStartsOn = 1; - var date = (0, _index.default)(dirtyDate); - var day = date.getUTCDay(); - var diff2 = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; - date.setUTCDate(date.getUTCDate() - diff2); - date.setUTCHours(0, 0, 0, 0); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/getUTCISOWeekYear/index.js -var require_getUTCISOWeekYear = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/getUTCISOWeekYear/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = getUTCISOWeekYear; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - var _index3 = _interopRequireDefault(require_startOfUTCISOWeek()); - function getUTCISOWeekYear(dirtyDate) { - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - var year = date.getUTCFullYear(); - var fourthOfJanuaryOfNextYear = /* @__PURE__ */ new Date(0); - fourthOfJanuaryOfNextYear.setUTCFullYear(year + 1, 0, 4); - fourthOfJanuaryOfNextYear.setUTCHours(0, 0, 0, 0); - var startOfNextYear = (0, _index3.default)(fourthOfJanuaryOfNextYear); - var fourthOfJanuaryOfThisYear = /* @__PURE__ */ new Date(0); - fourthOfJanuaryOfThisYear.setUTCFullYear(year, 0, 4); - fourthOfJanuaryOfThisYear.setUTCHours(0, 0, 0, 0); - var startOfThisYear = (0, _index3.default)(fourthOfJanuaryOfThisYear); - if (date.getTime() >= startOfNextYear.getTime()) { - return year + 1; - } else if (date.getTime() >= startOfThisYear.getTime()) { - return year; - } else { - return year - 1; - } - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/startOfUTCISOWeekYear/index.js -var require_startOfUTCISOWeekYear = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/startOfUTCISOWeekYear/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = startOfUTCISOWeekYear; - var _index = _interopRequireDefault(require_getUTCISOWeekYear()); - var _index2 = _interopRequireDefault(require_startOfUTCISOWeek()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function startOfUTCISOWeekYear(dirtyDate) { - (0, _index3.default)(1, arguments); - var year = (0, _index.default)(dirtyDate); - var fourthOfJanuary = /* @__PURE__ */ new Date(0); - fourthOfJanuary.setUTCFullYear(year, 0, 4); - fourthOfJanuary.setUTCHours(0, 0, 0, 0); - var date = (0, _index2.default)(fourthOfJanuary); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/getUTCISOWeek/index.js -var require_getUTCISOWeek = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/getUTCISOWeek/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = getUTCISOWeek; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_startOfUTCISOWeek()); - var _index3 = _interopRequireDefault(require_startOfUTCISOWeekYear()); - var _index4 = _interopRequireDefault(require_requiredArgs()); - var MILLISECONDS_IN_WEEK = 6048e5; - function getUTCISOWeek(dirtyDate) { - (0, _index4.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - var diff2 = (0, _index2.default)(date).getTime() - (0, _index3.default)(date).getTime(); - return Math.round(diff2 / MILLISECONDS_IN_WEEK) + 1; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/startOfUTCWeek/index.js -var require_startOfUTCWeek = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/startOfUTCWeek/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = startOfUTCWeek; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - var _index3 = _interopRequireDefault(require_toInteger()); - var _index4 = require_defaultOptions(); - function startOfUTCWeek(dirtyDate, options2) { - var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; - (0, _index2.default)(1, arguments); - var defaultOptions = (0, _index4.getDefaultOptions)(); - var weekStartsOn = (0, _index3.default)((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options2 === null || options2 === void 0 ? void 0 : options2.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options2 === null || options2 === void 0 ? void 0 : (_options$locale = options2.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); - if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { - throw new RangeError("weekStartsOn must be between 0 and 6 inclusively"); - } - var date = (0, _index.default)(dirtyDate); - var day = date.getUTCDay(); - var diff2 = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; - date.setUTCDate(date.getUTCDate() - diff2); - date.setUTCHours(0, 0, 0, 0); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/getUTCWeekYear/index.js -var require_getUTCWeekYear = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/getUTCWeekYear/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = getUTCWeekYear; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - var _index3 = _interopRequireDefault(require_startOfUTCWeek()); - var _index4 = _interopRequireDefault(require_toInteger()); - var _index5 = require_defaultOptions(); - function getUTCWeekYear(dirtyDate, options2) { - var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - var year = date.getUTCFullYear(); - var defaultOptions = (0, _index5.getDefaultOptions)(); - var firstWeekContainsDate = (0, _index4.default)((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options2 === null || options2 === void 0 ? void 0 : options2.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options2 === null || options2 === void 0 ? void 0 : (_options$locale = options2.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1); - if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) { - throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively"); - } - var firstWeekOfNextYear = /* @__PURE__ */ new Date(0); - firstWeekOfNextYear.setUTCFullYear(year + 1, 0, firstWeekContainsDate); - firstWeekOfNextYear.setUTCHours(0, 0, 0, 0); - var startOfNextYear = (0, _index3.default)(firstWeekOfNextYear, options2); - var firstWeekOfThisYear = /* @__PURE__ */ new Date(0); - firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate); - firstWeekOfThisYear.setUTCHours(0, 0, 0, 0); - var startOfThisYear = (0, _index3.default)(firstWeekOfThisYear, options2); - if (date.getTime() >= startOfNextYear.getTime()) { - return year + 1; - } else if (date.getTime() >= startOfThisYear.getTime()) { - return year; - } else { - return year - 1; - } - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/startOfUTCWeekYear/index.js -var require_startOfUTCWeekYear = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/startOfUTCWeekYear/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = startOfUTCWeekYear; - var _index = _interopRequireDefault(require_getUTCWeekYear()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - var _index3 = _interopRequireDefault(require_startOfUTCWeek()); - var _index4 = _interopRequireDefault(require_toInteger()); - var _index5 = require_defaultOptions(); - function startOfUTCWeekYear(dirtyDate, options2) { - var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; - (0, _index2.default)(1, arguments); - var defaultOptions = (0, _index5.getDefaultOptions)(); - var firstWeekContainsDate = (0, _index4.default)((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options2 === null || options2 === void 0 ? void 0 : options2.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options2 === null || options2 === void 0 ? void 0 : (_options$locale = options2.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1); - var year = (0, _index.default)(dirtyDate, options2); - var firstWeek = /* @__PURE__ */ new Date(0); - firstWeek.setUTCFullYear(year, 0, firstWeekContainsDate); - firstWeek.setUTCHours(0, 0, 0, 0); - var date = (0, _index3.default)(firstWeek, options2); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/getUTCWeek/index.js -var require_getUTCWeek = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/getUTCWeek/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = getUTCWeek; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_startOfUTCWeek()); - var _index3 = _interopRequireDefault(require_startOfUTCWeekYear()); - var _index4 = _interopRequireDefault(require_requiredArgs()); - var MILLISECONDS_IN_WEEK = 6048e5; - function getUTCWeek(dirtyDate, options2) { - (0, _index4.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - var diff2 = (0, _index2.default)(date, options2).getTime() - (0, _index3.default)(date, options2).getTime(); - return Math.round(diff2 / MILLISECONDS_IN_WEEK) + 1; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/addLeadingZeros/index.js -var require_addLeadingZeros = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/addLeadingZeros/index.js"(exports2, module2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = addLeadingZeros; - function addLeadingZeros(number, targetLength) { - var sign = number < 0 ? "-" : ""; - var output = Math.abs(number).toString(); - while (output.length < targetLength) { - output = "0" + output; - } - return sign + output; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/format/lightFormatters/index.js -var require_lightFormatters = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/format/lightFormatters/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = void 0; - var _index = _interopRequireDefault(require_addLeadingZeros()); - var formatters = { - // Year - y: function y(date, token) { - var signedYear = date.getUTCFullYear(); - var year = signedYear > 0 ? signedYear : 1 - signedYear; - return (0, _index.default)(token === "yy" ? year % 100 : year, token.length); - }, - // Month - M: function M(date, token) { - var month = date.getUTCMonth(); - return token === "M" ? String(month + 1) : (0, _index.default)(month + 1, 2); - }, - // Day of the month - d: function d(date, token) { - return (0, _index.default)(date.getUTCDate(), token.length); - }, - // AM or PM - a: function a(date, token) { - var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? "pm" : "am"; - switch (token) { - case "a": - case "aa": - return dayPeriodEnumValue.toUpperCase(); - case "aaa": - return dayPeriodEnumValue; - case "aaaaa": - return dayPeriodEnumValue[0]; - case "aaaa": - default: - return dayPeriodEnumValue === "am" ? "a.m." : "p.m."; - } - }, - // Hour [1-12] - h: function h(date, token) { - return (0, _index.default)(date.getUTCHours() % 12 || 12, token.length); - }, - // Hour [0-23] - H: function H(date, token) { - return (0, _index.default)(date.getUTCHours(), token.length); - }, - // Minute - m: function m(date, token) { - return (0, _index.default)(date.getUTCMinutes(), token.length); - }, - // Second - s: function s(date, token) { - return (0, _index.default)(date.getUTCSeconds(), token.length); - }, - // Fraction of second - S: function S(date, token) { - var numberOfDigits = token.length; - var milliseconds = date.getUTCMilliseconds(); - var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3)); - return (0, _index.default)(fractionalSeconds, token.length); - } - }; - var _default = formatters; - exports2.default = _default; - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/format/formatters/index.js -var require_formatters = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/format/formatters/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = void 0; - var _index = _interopRequireDefault(require_getUTCDayOfYear()); - var _index2 = _interopRequireDefault(require_getUTCISOWeek()); - var _index3 = _interopRequireDefault(require_getUTCISOWeekYear()); - var _index4 = _interopRequireDefault(require_getUTCWeek()); - var _index5 = _interopRequireDefault(require_getUTCWeekYear()); - var _index6 = _interopRequireDefault(require_addLeadingZeros()); - var _index7 = _interopRequireDefault(require_lightFormatters()); - var dayPeriodEnum = { - am: "am", - pm: "pm", - midnight: "midnight", - noon: "noon", - morning: "morning", - afternoon: "afternoon", - evening: "evening", - night: "night" - }; - var formatters = { - // Era - G: function G(date, token, localize) { - var era = date.getUTCFullYear() > 0 ? 1 : 0; - switch (token) { - case "G": - case "GG": - case "GGG": - return localize.era(era, { - width: "abbreviated" - }); - case "GGGGG": - return localize.era(era, { - width: "narrow" - }); - case "GGGG": - default: - return localize.era(era, { - width: "wide" - }); - } - }, - // Year - y: function y(date, token, localize) { - if (token === "yo") { - var signedYear = date.getUTCFullYear(); - var year = signedYear > 0 ? signedYear : 1 - signedYear; - return localize.ordinalNumber(year, { - unit: "year" - }); - } - return _index7.default.y(date, token); - }, - // Local week-numbering year - Y: function Y(date, token, localize, options2) { - var signedWeekYear = (0, _index5.default)(date, options2); - var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear; - if (token === "YY") { - var twoDigitYear = weekYear % 100; - return (0, _index6.default)(twoDigitYear, 2); - } - if (token === "Yo") { - return localize.ordinalNumber(weekYear, { - unit: "year" - }); - } - return (0, _index6.default)(weekYear, token.length); - }, - // ISO week-numbering year - R: function R(date, token) { - var isoWeekYear = (0, _index3.default)(date); - return (0, _index6.default)(isoWeekYear, token.length); - }, - // Extended year. This is a single number designating the year of this calendar system. - // The main difference between `y` and `u` localizers are B.C. years: - // | Year | `y` | `u` | - // |------|-----|-----| - // | AC 1 | 1 | 1 | - // | BC 1 | 1 | 0 | - // | BC 2 | 2 | -1 | - // Also `yy` always returns the last two digits of a year, - // while `uu` pads single digit years to 2 characters and returns other years unchanged. - u: function u(date, token) { - var year = date.getUTCFullYear(); - return (0, _index6.default)(year, token.length); - }, - // Quarter - Q: function Q(date, token, localize) { - var quarter = Math.ceil((date.getUTCMonth() + 1) / 3); - switch (token) { - case "Q": - return String(quarter); - case "QQ": - return (0, _index6.default)(quarter, 2); - case "Qo": - return localize.ordinalNumber(quarter, { - unit: "quarter" - }); - case "QQQ": - return localize.quarter(quarter, { - width: "abbreviated", - context: "formatting" - }); - case "QQQQQ": - return localize.quarter(quarter, { - width: "narrow", - context: "formatting" - }); - case "QQQQ": - default: - return localize.quarter(quarter, { - width: "wide", - context: "formatting" - }); - } - }, - // Stand-alone quarter - q: function q(date, token, localize) { - var quarter = Math.ceil((date.getUTCMonth() + 1) / 3); - switch (token) { - case "q": - return String(quarter); - case "qq": - return (0, _index6.default)(quarter, 2); - case "qo": - return localize.ordinalNumber(quarter, { - unit: "quarter" - }); - case "qqq": - return localize.quarter(quarter, { - width: "abbreviated", - context: "standalone" - }); - case "qqqqq": - return localize.quarter(quarter, { - width: "narrow", - context: "standalone" - }); - case "qqqq": - default: - return localize.quarter(quarter, { - width: "wide", - context: "standalone" - }); - } - }, - // Month - M: function M(date, token, localize) { - var month = date.getUTCMonth(); - switch (token) { - case "M": - case "MM": - return _index7.default.M(date, token); - case "Mo": - return localize.ordinalNumber(month + 1, { - unit: "month" - }); - case "MMM": - return localize.month(month, { - width: "abbreviated", - context: "formatting" - }); - case "MMMMM": - return localize.month(month, { - width: "narrow", - context: "formatting" - }); - case "MMMM": - default: - return localize.month(month, { - width: "wide", - context: "formatting" - }); - } - }, - // Stand-alone month - L: function L(date, token, localize) { - var month = date.getUTCMonth(); - switch (token) { - case "L": - return String(month + 1); - case "LL": - return (0, _index6.default)(month + 1, 2); - case "Lo": - return localize.ordinalNumber(month + 1, { - unit: "month" - }); - case "LLL": - return localize.month(month, { - width: "abbreviated", - context: "standalone" - }); - case "LLLLL": - return localize.month(month, { - width: "narrow", - context: "standalone" - }); - case "LLLL": - default: - return localize.month(month, { - width: "wide", - context: "standalone" - }); - } - }, - // Local week of year - w: function w(date, token, localize, options2) { - var week = (0, _index4.default)(date, options2); - if (token === "wo") { - return localize.ordinalNumber(week, { - unit: "week" - }); - } - return (0, _index6.default)(week, token.length); - }, - // ISO week of year - I: function I(date, token, localize) { - var isoWeek = (0, _index2.default)(date); - if (token === "Io") { - return localize.ordinalNumber(isoWeek, { - unit: "week" - }); - } - return (0, _index6.default)(isoWeek, token.length); - }, - // Day of the month - d: function d(date, token, localize) { - if (token === "do") { - return localize.ordinalNumber(date.getUTCDate(), { - unit: "date" - }); - } - return _index7.default.d(date, token); - }, - // Day of year - D: function D(date, token, localize) { - var dayOfYear = (0, _index.default)(date); - if (token === "Do") { - return localize.ordinalNumber(dayOfYear, { - unit: "dayOfYear" - }); - } - return (0, _index6.default)(dayOfYear, token.length); - }, - // Day of week - E: function E(date, token, localize) { - var dayOfWeek = date.getUTCDay(); - switch (token) { - case "E": - case "EE": - case "EEE": - return localize.day(dayOfWeek, { - width: "abbreviated", - context: "formatting" - }); - case "EEEEE": - return localize.day(dayOfWeek, { - width: "narrow", - context: "formatting" - }); - case "EEEEEE": - return localize.day(dayOfWeek, { - width: "short", - context: "formatting" - }); - case "EEEE": - default: - return localize.day(dayOfWeek, { - width: "wide", - context: "formatting" - }); - } - }, - // Local day of week - e: function e(date, token, localize, options2) { - var dayOfWeek = date.getUTCDay(); - var localDayOfWeek = (dayOfWeek - options2.weekStartsOn + 8) % 7 || 7; - switch (token) { - case "e": - return String(localDayOfWeek); - case "ee": - return (0, _index6.default)(localDayOfWeek, 2); - case "eo": - return localize.ordinalNumber(localDayOfWeek, { - unit: "day" - }); - case "eee": - return localize.day(dayOfWeek, { - width: "abbreviated", - context: "formatting" - }); - case "eeeee": - return localize.day(dayOfWeek, { - width: "narrow", - context: "formatting" - }); - case "eeeeee": - return localize.day(dayOfWeek, { - width: "short", - context: "formatting" - }); - case "eeee": - default: - return localize.day(dayOfWeek, { - width: "wide", - context: "formatting" - }); - } - }, - // Stand-alone local day of week - c: function c(date, token, localize, options2) { - var dayOfWeek = date.getUTCDay(); - var localDayOfWeek = (dayOfWeek - options2.weekStartsOn + 8) % 7 || 7; - switch (token) { - case "c": - return String(localDayOfWeek); - case "cc": - return (0, _index6.default)(localDayOfWeek, token.length); - case "co": - return localize.ordinalNumber(localDayOfWeek, { - unit: "day" - }); - case "ccc": - return localize.day(dayOfWeek, { - width: "abbreviated", - context: "standalone" - }); - case "ccccc": - return localize.day(dayOfWeek, { - width: "narrow", - context: "standalone" - }); - case "cccccc": - return localize.day(dayOfWeek, { - width: "short", - context: "standalone" - }); - case "cccc": - default: - return localize.day(dayOfWeek, { - width: "wide", - context: "standalone" - }); - } - }, - // ISO day of week - i: function i(date, token, localize) { - var dayOfWeek = date.getUTCDay(); - var isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek; - switch (token) { - case "i": - return String(isoDayOfWeek); - case "ii": - return (0, _index6.default)(isoDayOfWeek, token.length); - case "io": - return localize.ordinalNumber(isoDayOfWeek, { - unit: "day" - }); - case "iii": - return localize.day(dayOfWeek, { - width: "abbreviated", - context: "formatting" - }); - case "iiiii": - return localize.day(dayOfWeek, { - width: "narrow", - context: "formatting" - }); - case "iiiiii": - return localize.day(dayOfWeek, { - width: "short", - context: "formatting" - }); - case "iiii": - default: - return localize.day(dayOfWeek, { - width: "wide", - context: "formatting" - }); - } - }, - // AM or PM - a: function a(date, token, localize) { - var hours = date.getUTCHours(); - var dayPeriodEnumValue = hours / 12 >= 1 ? "pm" : "am"; - switch (token) { - case "a": - case "aa": - return localize.dayPeriod(dayPeriodEnumValue, { - width: "abbreviated", - context: "formatting" - }); - case "aaa": - return localize.dayPeriod(dayPeriodEnumValue, { - width: "abbreviated", - context: "formatting" - }).toLowerCase(); - case "aaaaa": - return localize.dayPeriod(dayPeriodEnumValue, { - width: "narrow", - context: "formatting" - }); - case "aaaa": - default: - return localize.dayPeriod(dayPeriodEnumValue, { - width: "wide", - context: "formatting" - }); - } - }, - // AM, PM, midnight, noon - b: function b(date, token, localize) { - var hours = date.getUTCHours(); - var dayPeriodEnumValue; - if (hours === 12) { - dayPeriodEnumValue = dayPeriodEnum.noon; - } else if (hours === 0) { - dayPeriodEnumValue = dayPeriodEnum.midnight; - } else { - dayPeriodEnumValue = hours / 12 >= 1 ? "pm" : "am"; - } - switch (token) { - case "b": - case "bb": - return localize.dayPeriod(dayPeriodEnumValue, { - width: "abbreviated", - context: "formatting" - }); - case "bbb": - return localize.dayPeriod(dayPeriodEnumValue, { - width: "abbreviated", - context: "formatting" - }).toLowerCase(); - case "bbbbb": - return localize.dayPeriod(dayPeriodEnumValue, { - width: "narrow", - context: "formatting" - }); - case "bbbb": - default: - return localize.dayPeriod(dayPeriodEnumValue, { - width: "wide", - context: "formatting" - }); - } - }, - // in the morning, in the afternoon, in the evening, at night - B: function B(date, token, localize) { - var hours = date.getUTCHours(); - var dayPeriodEnumValue; - if (hours >= 17) { - dayPeriodEnumValue = dayPeriodEnum.evening; - } else if (hours >= 12) { - dayPeriodEnumValue = dayPeriodEnum.afternoon; - } else if (hours >= 4) { - dayPeriodEnumValue = dayPeriodEnum.morning; - } else { - dayPeriodEnumValue = dayPeriodEnum.night; - } - switch (token) { - case "B": - case "BB": - case "BBB": - return localize.dayPeriod(dayPeriodEnumValue, { - width: "abbreviated", - context: "formatting" - }); - case "BBBBB": - return localize.dayPeriod(dayPeriodEnumValue, { - width: "narrow", - context: "formatting" - }); - case "BBBB": - default: - return localize.dayPeriod(dayPeriodEnumValue, { - width: "wide", - context: "formatting" - }); - } - }, - // Hour [1-12] - h: function h(date, token, localize) { - if (token === "ho") { - var hours = date.getUTCHours() % 12; - if (hours === 0) - hours = 12; - return localize.ordinalNumber(hours, { - unit: "hour" - }); - } - return _index7.default.h(date, token); - }, - // Hour [0-23] - H: function H(date, token, localize) { - if (token === "Ho") { - return localize.ordinalNumber(date.getUTCHours(), { - unit: "hour" - }); - } - return _index7.default.H(date, token); - }, - // Hour [0-11] - K: function K(date, token, localize) { - var hours = date.getUTCHours() % 12; - if (token === "Ko") { - return localize.ordinalNumber(hours, { - unit: "hour" - }); - } - return (0, _index6.default)(hours, token.length); - }, - // Hour [1-24] - k: function k(date, token, localize) { - var hours = date.getUTCHours(); - if (hours === 0) - hours = 24; - if (token === "ko") { - return localize.ordinalNumber(hours, { - unit: "hour" - }); - } - return (0, _index6.default)(hours, token.length); - }, - // Minute - m: function m(date, token, localize) { - if (token === "mo") { - return localize.ordinalNumber(date.getUTCMinutes(), { - unit: "minute" - }); - } - return _index7.default.m(date, token); - }, - // Second - s: function s(date, token, localize) { - if (token === "so") { - return localize.ordinalNumber(date.getUTCSeconds(), { - unit: "second" - }); - } - return _index7.default.s(date, token); - }, - // Fraction of second - S: function S(date, token) { - return _index7.default.S(date, token); - }, - // Timezone (ISO-8601. If offset is 0, output is always `'Z'`) - X: function X(date, token, _localize, options2) { - var originalDate = options2._originalDate || date; - var timezoneOffset = originalDate.getTimezoneOffset(); - if (timezoneOffset === 0) { - return "Z"; - } - switch (token) { - case "X": - return formatTimezoneWithOptionalMinutes(timezoneOffset); - case "XXXX": - case "XX": - return formatTimezone(timezoneOffset); - case "XXXXX": - case "XXX": - default: - return formatTimezone(timezoneOffset, ":"); - } - }, - // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent) - x: function x(date, token, _localize, options2) { - var originalDate = options2._originalDate || date; - var timezoneOffset = originalDate.getTimezoneOffset(); - switch (token) { - case "x": - return formatTimezoneWithOptionalMinutes(timezoneOffset); - case "xxxx": - case "xx": - return formatTimezone(timezoneOffset); - case "xxxxx": - case "xxx": - default: - return formatTimezone(timezoneOffset, ":"); - } - }, - // Timezone (GMT) - O: function O(date, token, _localize, options2) { - var originalDate = options2._originalDate || date; - var timezoneOffset = originalDate.getTimezoneOffset(); - switch (token) { - case "O": - case "OO": - case "OOO": - return "GMT" + formatTimezoneShort(timezoneOffset, ":"); - case "OOOO": - default: - return "GMT" + formatTimezone(timezoneOffset, ":"); - } - }, - // Timezone (specific non-location) - z: function z(date, token, _localize, options2) { - var originalDate = options2._originalDate || date; - var timezoneOffset = originalDate.getTimezoneOffset(); - switch (token) { - case "z": - case "zz": - case "zzz": - return "GMT" + formatTimezoneShort(timezoneOffset, ":"); - case "zzzz": - default: - return "GMT" + formatTimezone(timezoneOffset, ":"); - } - }, - // Seconds timestamp - t: function t(date, token, _localize, options2) { - var originalDate = options2._originalDate || date; - var timestamp = Math.floor(originalDate.getTime() / 1e3); - return (0, _index6.default)(timestamp, token.length); - }, - // Milliseconds timestamp - T: function T(date, token, _localize, options2) { - var originalDate = options2._originalDate || date; - var timestamp = originalDate.getTime(); - return (0, _index6.default)(timestamp, token.length); - } - }; - function formatTimezoneShort(offset, dirtyDelimiter) { - var sign = offset > 0 ? "-" : "+"; - var absOffset = Math.abs(offset); - var hours = Math.floor(absOffset / 60); - var minutes = absOffset % 60; - if (minutes === 0) { - return sign + String(hours); - } - var delimiter = dirtyDelimiter || ""; - return sign + String(hours) + delimiter + (0, _index6.default)(minutes, 2); - } - function formatTimezoneWithOptionalMinutes(offset, dirtyDelimiter) { - if (offset % 60 === 0) { - var sign = offset > 0 ? "-" : "+"; - return sign + (0, _index6.default)(Math.abs(offset) / 60, 2); - } - return formatTimezone(offset, dirtyDelimiter); - } - function formatTimezone(offset, dirtyDelimiter) { - var delimiter = dirtyDelimiter || ""; - var sign = offset > 0 ? "-" : "+"; - var absOffset = Math.abs(offset); - var hours = (0, _index6.default)(Math.floor(absOffset / 60), 2); - var minutes = (0, _index6.default)(absOffset % 60, 2); - return sign + hours + delimiter + minutes; - } - var _default = formatters; - exports2.default = _default; - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/format/longFormatters/index.js -var require_longFormatters = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/format/longFormatters/index.js"(exports2, module2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = void 0; - var dateLongFormatter = function dateLongFormatter2(pattern, formatLong) { - switch (pattern) { - case "P": - return formatLong.date({ - width: "short" - }); - case "PP": - return formatLong.date({ - width: "medium" - }); - case "PPP": - return formatLong.date({ - width: "long" - }); - case "PPPP": - default: - return formatLong.date({ - width: "full" - }); - } - }; - var timeLongFormatter = function timeLongFormatter2(pattern, formatLong) { - switch (pattern) { - case "p": - return formatLong.time({ - width: "short" - }); - case "pp": - return formatLong.time({ - width: "medium" - }); - case "ppp": - return formatLong.time({ - width: "long" - }); - case "pppp": - default: - return formatLong.time({ - width: "full" - }); - } - }; - var dateTimeLongFormatter = function dateTimeLongFormatter2(pattern, formatLong) { - var matchResult = pattern.match(/(P+)(p+)?/) || []; - var datePattern = matchResult[1]; - var timePattern = matchResult[2]; - if (!timePattern) { - return dateLongFormatter(pattern, formatLong); - } - var dateTimeFormat; - switch (datePattern) { - case "P": - dateTimeFormat = formatLong.dateTime({ - width: "short" - }); - break; - case "PP": - dateTimeFormat = formatLong.dateTime({ - width: "medium" - }); - break; - case "PPP": - dateTimeFormat = formatLong.dateTime({ - width: "long" - }); - break; - case "PPPP": - default: - dateTimeFormat = formatLong.dateTime({ - width: "full" - }); - break; - } - return dateTimeFormat.replace("{{date}}", dateLongFormatter(datePattern, formatLong)).replace("{{time}}", timeLongFormatter(timePattern, formatLong)); - }; - var longFormatters = { - p: timeLongFormatter, - P: dateTimeLongFormatter - }; - var _default = longFormatters; - exports2.default = _default; - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/protectedTokens/index.js -var require_protectedTokens = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/protectedTokens/index.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.isProtectedDayOfYearToken = isProtectedDayOfYearToken; - exports2.isProtectedWeekYearToken = isProtectedWeekYearToken; - exports2.throwProtectedError = throwProtectedError; - var protectedDayOfYearTokens = ["D", "DD"]; - var protectedWeekYearTokens = ["YY", "YYYY"]; - function isProtectedDayOfYearToken(token) { - return protectedDayOfYearTokens.indexOf(token) !== -1; - } - function isProtectedWeekYearToken(token) { - return protectedWeekYearTokens.indexOf(token) !== -1; - } - function throwProtectedError(token, format2, input) { - if (token === "YYYY") { - throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(format2, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")); - } else if (token === "YY") { - throw new RangeError("Use `yy` instead of `YY` (in `".concat(format2, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")); - } else if (token === "D") { - throw new RangeError("Use `d` instead of `D` (in `".concat(format2, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")); - } else if (token === "DD") { - throw new RangeError("Use `dd` instead of `DD` (in `".concat(format2, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")); - } - } - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/locale/en-US/_lib/formatDistance/index.js -var require_formatDistance = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/locale/en-US/_lib/formatDistance/index.js"(exports2, module2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = void 0; - var formatDistanceLocale = { - lessThanXSeconds: { - one: "less than a second", - other: "less than {{count}} seconds" - }, - xSeconds: { - one: "1 second", - other: "{{count}} seconds" - }, - halfAMinute: "half a minute", - lessThanXMinutes: { - one: "less than a minute", - other: "less than {{count}} minutes" - }, - xMinutes: { - one: "1 minute", - other: "{{count}} minutes" - }, - aboutXHours: { - one: "about 1 hour", - other: "about {{count}} hours" - }, - xHours: { - one: "1 hour", - other: "{{count}} hours" - }, - xDays: { - one: "1 day", - other: "{{count}} days" - }, - aboutXWeeks: { - one: "about 1 week", - other: "about {{count}} weeks" - }, - xWeeks: { - one: "1 week", - other: "{{count}} weeks" - }, - aboutXMonths: { - one: "about 1 month", - other: "about {{count}} months" - }, - xMonths: { - one: "1 month", - other: "{{count}} months" - }, - aboutXYears: { - one: "about 1 year", - other: "about {{count}} years" - }, - xYears: { - one: "1 year", - other: "{{count}} years" - }, - overXYears: { - one: "over 1 year", - other: "over {{count}} years" - }, - almostXYears: { - one: "almost 1 year", - other: "almost {{count}} years" - } - }; - var formatDistance = function formatDistance2(token, count, options2) { - var result; - var tokenValue = formatDistanceLocale[token]; - if (typeof tokenValue === "string") { - result = tokenValue; - } else if (count === 1) { - result = tokenValue.one; - } else { - result = tokenValue.other.replace("{{count}}", count.toString()); - } - if (options2 !== null && options2 !== void 0 && options2.addSuffix) { - if (options2.comparison && options2.comparison > 0) { - return "in " + result; - } else { - return result + " ago"; - } - } - return result; - }; - var _default = formatDistance; - exports2.default = _default; - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/locale/_lib/buildFormatLongFn/index.js -var require_buildFormatLongFn = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/locale/_lib/buildFormatLongFn/index.js"(exports2, module2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = buildFormatLongFn; - function buildFormatLongFn(args3) { - return function() { - var options2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; - var width = options2.width ? String(options2.width) : args3.defaultWidth; - var format2 = args3.formats[width] || args3.formats[args3.defaultWidth]; - return format2; - }; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/locale/en-US/_lib/formatLong/index.js -var require_formatLong = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/locale/en-US/_lib/formatLong/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = void 0; - var _index = _interopRequireDefault(require_buildFormatLongFn()); - var dateFormats = { - full: "EEEE, MMMM do, y", - long: "MMMM do, y", - medium: "MMM d, y", - short: "MM/dd/yyyy" - }; - var timeFormats = { - full: "h:mm:ss a zzzz", - long: "h:mm:ss a z", - medium: "h:mm:ss a", - short: "h:mm a" - }; - var dateTimeFormats = { - full: "{{date}} 'at' {{time}}", - long: "{{date}} 'at' {{time}}", - medium: "{{date}}, {{time}}", - short: "{{date}}, {{time}}" - }; - var formatLong = { - date: (0, _index.default)({ - formats: dateFormats, - defaultWidth: "full" - }), - time: (0, _index.default)({ - formats: timeFormats, - defaultWidth: "full" - }), - dateTime: (0, _index.default)({ - formats: dateTimeFormats, - defaultWidth: "full" - }) - }; - var _default = formatLong; - exports2.default = _default; - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/locale/en-US/_lib/formatRelative/index.js -var require_formatRelative = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/locale/en-US/_lib/formatRelative/index.js"(exports2, module2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = void 0; - var formatRelativeLocale = { - lastWeek: "'last' eeee 'at' p", - yesterday: "'yesterday at' p", - today: "'today at' p", - tomorrow: "'tomorrow at' p", - nextWeek: "eeee 'at' p", - other: "P" - }; - var formatRelative2 = function formatRelative3(token, _date, _baseDate, _options) { - return formatRelativeLocale[token]; - }; - var _default = formatRelative2; - exports2.default = _default; - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/locale/_lib/buildLocalizeFn/index.js -var require_buildLocalizeFn = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/locale/_lib/buildLocalizeFn/index.js"(exports2, module2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = buildLocalizeFn; - function buildLocalizeFn(args3) { - return function(dirtyIndex, options2) { - var context3 = options2 !== null && options2 !== void 0 && options2.context ? String(options2.context) : "standalone"; - var valuesArray; - if (context3 === "formatting" && args3.formattingValues) { - var defaultWidth = args3.defaultFormattingWidth || args3.defaultWidth; - var width = options2 !== null && options2 !== void 0 && options2.width ? String(options2.width) : defaultWidth; - valuesArray = args3.formattingValues[width] || args3.formattingValues[defaultWidth]; - } else { - var _defaultWidth = args3.defaultWidth; - var _width = options2 !== null && options2 !== void 0 && options2.width ? String(options2.width) : args3.defaultWidth; - valuesArray = args3.values[_width] || args3.values[_defaultWidth]; - } - var index = args3.argumentCallback ? args3.argumentCallback(dirtyIndex) : dirtyIndex; - return valuesArray[index]; - }; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/locale/en-US/_lib/localize/index.js -var require_localize = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/locale/en-US/_lib/localize/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = void 0; - var _index = _interopRequireDefault(require_buildLocalizeFn()); - var eraValues = { - narrow: ["B", "A"], - abbreviated: ["BC", "AD"], - wide: ["Before Christ", "Anno Domini"] - }; - var quarterValues = { - narrow: ["1", "2", "3", "4"], - abbreviated: ["Q1", "Q2", "Q3", "Q4"], - wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"] - }; - var monthValues = { - narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], - abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], - wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"] - }; - var dayValues = { - narrow: ["S", "M", "T", "W", "T", "F", "S"], - short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], - abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], - wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] - }; - var dayPeriodValues = { - narrow: { - am: "a", - pm: "p", - midnight: "mi", - noon: "n", - morning: "morning", - afternoon: "afternoon", - evening: "evening", - night: "night" - }, - abbreviated: { - am: "AM", - pm: "PM", - midnight: "midnight", - noon: "noon", - morning: "morning", - afternoon: "afternoon", - evening: "evening", - night: "night" - }, - wide: { - am: "a.m.", - pm: "p.m.", - midnight: "midnight", - noon: "noon", - morning: "morning", - afternoon: "afternoon", - evening: "evening", - night: "night" - } - }; - var formattingDayPeriodValues = { - narrow: { - am: "a", - pm: "p", - midnight: "mi", - noon: "n", - morning: "in the morning", - afternoon: "in the afternoon", - evening: "in the evening", - night: "at night" - }, - abbreviated: { - am: "AM", - pm: "PM", - midnight: "midnight", - noon: "noon", - morning: "in the morning", - afternoon: "in the afternoon", - evening: "in the evening", - night: "at night" - }, - wide: { - am: "a.m.", - pm: "p.m.", - midnight: "midnight", - noon: "noon", - morning: "in the morning", - afternoon: "in the afternoon", - evening: "in the evening", - night: "at night" - } - }; - var ordinalNumber = function ordinalNumber2(dirtyNumber, _options) { - var number = Number(dirtyNumber); - var rem100 = number % 100; - if (rem100 > 20 || rem100 < 10) { - switch (rem100 % 10) { - case 1: - return number + "st"; - case 2: - return number + "nd"; - case 3: - return number + "rd"; - } - } - return number + "th"; - }; - var localize = { - ordinalNumber, - era: (0, _index.default)({ - values: eraValues, - defaultWidth: "wide" - }), - quarter: (0, _index.default)({ - values: quarterValues, - defaultWidth: "wide", - argumentCallback: function argumentCallback(quarter) { - return quarter - 1; - } - }), - month: (0, _index.default)({ - values: monthValues, - defaultWidth: "wide" - }), - day: (0, _index.default)({ - values: dayValues, - defaultWidth: "wide" - }), - dayPeriod: (0, _index.default)({ - values: dayPeriodValues, - defaultWidth: "wide", - formattingValues: formattingDayPeriodValues, - defaultFormattingWidth: "wide" - }) - }; - var _default = localize; - exports2.default = _default; - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/locale/_lib/buildMatchFn/index.js -var require_buildMatchFn = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/locale/_lib/buildMatchFn/index.js"(exports2, module2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = buildMatchFn; - function buildMatchFn(args3) { - return function(string) { - var options2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; - var width = options2.width; - var matchPattern = width && args3.matchPatterns[width] || args3.matchPatterns[args3.defaultMatchWidth]; - var matchResult = string.match(matchPattern); - if (!matchResult) { - return null; - } - var matchedString = matchResult[0]; - var parsePatterns = width && args3.parsePatterns[width] || args3.parsePatterns[args3.defaultParseWidth]; - var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function(pattern) { - return pattern.test(matchedString); - }) : findKey2(parsePatterns, function(pattern) { - return pattern.test(matchedString); - }); - var value; - value = args3.valueCallback ? args3.valueCallback(key) : key; - value = options2.valueCallback ? options2.valueCallback(value) : value; - var rest = string.slice(matchedString.length); - return { - value, - rest - }; - }; - } - function findKey2(object, predicate) { - for (var key in object) { - if (object.hasOwnProperty(key) && predicate(object[key])) { - return key; - } - } - return void 0; - } - function findIndex(array, predicate) { - for (var key = 0; key < array.length; key++) { - if (predicate(array[key])) { - return key; - } - } - return void 0; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn/index.js -var require_buildMatchPatternFn = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn/index.js"(exports2, module2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = buildMatchPatternFn; - function buildMatchPatternFn(args3) { - return function(string) { - var options2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; - var matchResult = string.match(args3.matchPattern); - if (!matchResult) - return null; - var matchedString = matchResult[0]; - var parseResult = string.match(args3.parsePattern); - if (!parseResult) - return null; - var value = args3.valueCallback ? args3.valueCallback(parseResult[0]) : parseResult[0]; - value = options2.valueCallback ? options2.valueCallback(value) : value; - var rest = string.slice(matchedString.length); - return { - value, - rest - }; - }; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/locale/en-US/_lib/match/index.js -var require_match = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/locale/en-US/_lib/match/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = void 0; - var _index = _interopRequireDefault(require_buildMatchFn()); - var _index2 = _interopRequireDefault(require_buildMatchPatternFn()); - var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; - var parseOrdinalNumberPattern = /\d+/i; - var matchEraPatterns = { - narrow: /^(b|a)/i, - abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, - wide: /^(before christ|before common era|anno domini|common era)/i - }; - var parseEraPatterns = { - any: [/^b/i, /^(a|c)/i] - }; - var matchQuarterPatterns = { - narrow: /^[1234]/i, - abbreviated: /^q[1234]/i, - wide: /^[1234](th|st|nd|rd)? quarter/i - }; - var parseQuarterPatterns = { - any: [/1/i, /2/i, /3/i, /4/i] - }; - var matchMonthPatterns = { - narrow: /^[jfmasond]/i, - abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, - wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i - }; - var parseMonthPatterns = { - narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], - any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] - }; - var matchDayPatterns = { - narrow: /^[smtwf]/i, - short: /^(su|mo|tu|we|th|fr|sa)/i, - abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, - wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i - }; - var parseDayPatterns = { - narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], - any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i] - }; - var matchDayPeriodPatterns = { - narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, - any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i - }; - var parseDayPeriodPatterns = { - any: { - am: /^a/i, - pm: /^p/i, - midnight: /^mi/i, - noon: /^no/i, - morning: /morning/i, - afternoon: /afternoon/i, - evening: /evening/i, - night: /night/i - } - }; - var match2 = { - ordinalNumber: (0, _index2.default)({ - matchPattern: matchOrdinalNumberPattern, - parsePattern: parseOrdinalNumberPattern, - valueCallback: function valueCallback(value) { - return parseInt(value, 10); - } - }), - era: (0, _index.default)({ - matchPatterns: matchEraPatterns, - defaultMatchWidth: "wide", - parsePatterns: parseEraPatterns, - defaultParseWidth: "any" - }), - quarter: (0, _index.default)({ - matchPatterns: matchQuarterPatterns, - defaultMatchWidth: "wide", - parsePatterns: parseQuarterPatterns, - defaultParseWidth: "any", - valueCallback: function valueCallback(index) { - return index + 1; - } - }), - month: (0, _index.default)({ - matchPatterns: matchMonthPatterns, - defaultMatchWidth: "wide", - parsePatterns: parseMonthPatterns, - defaultParseWidth: "any" - }), - day: (0, _index.default)({ - matchPatterns: matchDayPatterns, - defaultMatchWidth: "wide", - parsePatterns: parseDayPatterns, - defaultParseWidth: "any" - }), - dayPeriod: (0, _index.default)({ - matchPatterns: matchDayPeriodPatterns, - defaultMatchWidth: "any", - parsePatterns: parseDayPeriodPatterns, - defaultParseWidth: "any" - }) - }; - var _default = match2; - exports2.default = _default; - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/locale/en-US/index.js -var require_en_US = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/locale/en-US/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = void 0; - var _index = _interopRequireDefault(require_formatDistance()); - var _index2 = _interopRequireDefault(require_formatLong()); - var _index3 = _interopRequireDefault(require_formatRelative()); - var _index4 = _interopRequireDefault(require_localize()); - var _index5 = _interopRequireDefault(require_match()); - var locale = { - code: "en-US", - formatDistance: _index.default, - formatLong: _index2.default, - formatRelative: _index3.default, - localize: _index4.default, - match: _index5.default, - options: { - weekStartsOn: 0, - firstWeekContainsDate: 1 - } - }; - var _default = locale; - exports2.default = _default; - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/defaultLocale/index.js -var require_defaultLocale = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/defaultLocale/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = void 0; - var _index = _interopRequireDefault(require_en_US()); - var _default = _index.default; - exports2.default = _default; - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/format/index.js -var require_format = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/format/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = format2; - var _index = _interopRequireDefault(require_isValid()); - var _index2 = _interopRequireDefault(require_subMilliseconds()); - var _index3 = _interopRequireDefault(require_toDate()); - var _index4 = _interopRequireDefault(require_formatters()); - var _index5 = _interopRequireDefault(require_longFormatters()); - var _index6 = _interopRequireDefault(require_getTimezoneOffsetInMilliseconds()); - var _index7 = require_protectedTokens(); - var _index8 = _interopRequireDefault(require_toInteger()); - var _index9 = _interopRequireDefault(require_requiredArgs()); - var _index10 = require_defaultOptions(); - var _index11 = _interopRequireDefault(require_defaultLocale()); - var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; - var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g; - var escapedStringRegExp = /^'([^]*?)'?$/; - var doubleQuoteRegExp = /''/g; - var unescapedLatinCharacterRegExp = /[a-zA-Z]/; - function format2(dirtyDate, dirtyFormatStr, options2) { - var _ref, _options$locale, _ref2, _ref3, _ref4, _options$firstWeekCon, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2, _ref5, _ref6, _ref7, _options$weekStartsOn, _options$locale3, _options$locale3$opti, _defaultOptions$local3, _defaultOptions$local4; - (0, _index9.default)(2, arguments); - var formatStr = String(dirtyFormatStr); - var defaultOptions = (0, _index10.getDefaultOptions)(); - var locale = (_ref = (_options$locale = options2 === null || options2 === void 0 ? void 0 : options2.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : _index11.default; - var firstWeekContainsDate = (0, _index8.default)((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = options2 === null || options2 === void 0 ? void 0 : options2.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options2 === null || options2 === void 0 ? void 0 : (_options$locale2 = options2.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.firstWeekContainsDate) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1); - if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) { - throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively"); - } - var weekStartsOn = (0, _index8.default)((_ref5 = (_ref6 = (_ref7 = (_options$weekStartsOn = options2 === null || options2 === void 0 ? void 0 : options2.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options2 === null || options2 === void 0 ? void 0 : (_options$locale3 = options2.locale) === null || _options$locale3 === void 0 ? void 0 : (_options$locale3$opti = _options$locale3.options) === null || _options$locale3$opti === void 0 ? void 0 : _options$locale3$opti.weekStartsOn) !== null && _ref7 !== void 0 ? _ref7 : defaultOptions.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : (_defaultOptions$local3 = defaultOptions.locale) === null || _defaultOptions$local3 === void 0 ? void 0 : (_defaultOptions$local4 = _defaultOptions$local3.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : 0); - if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { - throw new RangeError("weekStartsOn must be between 0 and 6 inclusively"); - } - if (!locale.localize) { - throw new RangeError("locale must contain localize property"); - } - if (!locale.formatLong) { - throw new RangeError("locale must contain formatLong property"); - } - var originalDate = (0, _index3.default)(dirtyDate); - if (!(0, _index.default)(originalDate)) { - throw new RangeError("Invalid time value"); - } - var timezoneOffset = (0, _index6.default)(originalDate); - var utcDate = (0, _index2.default)(originalDate, timezoneOffset); - var formatterOptions = { - firstWeekContainsDate, - weekStartsOn, - locale, - _originalDate: originalDate - }; - var result = formatStr.match(longFormattingTokensRegExp).map(function(substring) { - var firstCharacter = substring[0]; - if (firstCharacter === "p" || firstCharacter === "P") { - var longFormatter = _index5.default[firstCharacter]; - return longFormatter(substring, locale.formatLong); - } - return substring; - }).join("").match(formattingTokensRegExp).map(function(substring) { - if (substring === "''") { - return "'"; - } - var firstCharacter = substring[0]; - if (firstCharacter === "'") { - return cleanEscapedString(substring); - } - var formatter = _index4.default[firstCharacter]; - if (formatter) { - if (!(options2 !== null && options2 !== void 0 && options2.useAdditionalWeekYearTokens) && (0, _index7.isProtectedWeekYearToken)(substring)) { - (0, _index7.throwProtectedError)(substring, dirtyFormatStr, String(dirtyDate)); - } - if (!(options2 !== null && options2 !== void 0 && options2.useAdditionalDayOfYearTokens) && (0, _index7.isProtectedDayOfYearToken)(substring)) { - (0, _index7.throwProtectedError)(substring, dirtyFormatStr, String(dirtyDate)); - } - return formatter(utcDate, substring, locale.localize, formatterOptions); - } - if (firstCharacter.match(unescapedLatinCharacterRegExp)) { - throw new RangeError("Format string contains an unescaped latin alphabet character `" + firstCharacter + "`"); - } - return substring; - }).join(""); - return result; - } - function cleanEscapedString(input) { - var matched = input.match(escapedStringRegExp); - if (!matched) { - return input; - } - return matched[1].replace(doubleQuoteRegExp, "'"); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/assign/index.js -var require_assign = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/assign/index.js"(exports2, module2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = assign2; - function assign2(target, object) { - if (target == null) { - throw new TypeError("assign requires that input parameter not be null or undefined"); - } - for (var property in object) { - if (Object.prototype.hasOwnProperty.call(object, property)) { - ; - target[property] = object[property]; - } - } - return target; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/cloneObject/index.js -var require_cloneObject = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/cloneObject/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = cloneObject; - var _index = _interopRequireDefault(require_assign()); - function cloneObject(object) { - return (0, _index.default)({}, object); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/formatDistance/index.js -var require_formatDistance2 = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/formatDistance/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = formatDistance; - var _index = require_defaultOptions(); - var _index2 = _interopRequireDefault(require_compareAsc()); - var _index3 = _interopRequireDefault(require_differenceInMonths()); - var _index4 = _interopRequireDefault(require_differenceInSeconds()); - var _index5 = _interopRequireDefault(require_defaultLocale()); - var _index6 = _interopRequireDefault(require_toDate()); - var _index7 = _interopRequireDefault(require_cloneObject()); - var _index8 = _interopRequireDefault(require_assign()); - var _index9 = _interopRequireDefault(require_getTimezoneOffsetInMilliseconds()); - var _index10 = _interopRequireDefault(require_requiredArgs()); - var MINUTES_IN_DAY = 1440; - var MINUTES_IN_ALMOST_TWO_DAYS = 2520; - var MINUTES_IN_MONTH = 43200; - var MINUTES_IN_TWO_MONTHS = 86400; - function formatDistance(dirtyDate, dirtyBaseDate, options2) { - var _ref, _options$locale; - (0, _index10.default)(2, arguments); - var defaultOptions = (0, _index.getDefaultOptions)(); - var locale = (_ref = (_options$locale = options2 === null || options2 === void 0 ? void 0 : options2.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : _index5.default; - if (!locale.formatDistance) { - throw new RangeError("locale must contain formatDistance property"); - } - var comparison = (0, _index2.default)(dirtyDate, dirtyBaseDate); - if (isNaN(comparison)) { - throw new RangeError("Invalid time value"); - } - var localizeOptions = (0, _index8.default)((0, _index7.default)(options2), { - addSuffix: Boolean(options2 === null || options2 === void 0 ? void 0 : options2.addSuffix), - comparison - }); - var dateLeft; - var dateRight; - if (comparison > 0) { - dateLeft = (0, _index6.default)(dirtyBaseDate); - dateRight = (0, _index6.default)(dirtyDate); - } else { - dateLeft = (0, _index6.default)(dirtyDate); - dateRight = (0, _index6.default)(dirtyBaseDate); - } - var seconds = (0, _index4.default)(dateRight, dateLeft); - var offsetInSeconds = ((0, _index9.default)(dateRight) - (0, _index9.default)(dateLeft)) / 1e3; - var minutes = Math.round((seconds - offsetInSeconds) / 60); - var months; - if (minutes < 2) { - if (options2 !== null && options2 !== void 0 && options2.includeSeconds) { - if (seconds < 5) { - return locale.formatDistance("lessThanXSeconds", 5, localizeOptions); - } else if (seconds < 10) { - return locale.formatDistance("lessThanXSeconds", 10, localizeOptions); - } else if (seconds < 20) { - return locale.formatDistance("lessThanXSeconds", 20, localizeOptions); - } else if (seconds < 40) { - return locale.formatDistance("halfAMinute", 0, localizeOptions); - } else if (seconds < 60) { - return locale.formatDistance("lessThanXMinutes", 1, localizeOptions); - } else { - return locale.formatDistance("xMinutes", 1, localizeOptions); - } - } else { - if (minutes === 0) { - return locale.formatDistance("lessThanXMinutes", 1, localizeOptions); - } else { - return locale.formatDistance("xMinutes", minutes, localizeOptions); - } - } - } else if (minutes < 45) { - return locale.formatDistance("xMinutes", minutes, localizeOptions); - } else if (minutes < 90) { - return locale.formatDistance("aboutXHours", 1, localizeOptions); - } else if (minutes < MINUTES_IN_DAY) { - var hours = Math.round(minutes / 60); - return locale.formatDistance("aboutXHours", hours, localizeOptions); - } else if (minutes < MINUTES_IN_ALMOST_TWO_DAYS) { - return locale.formatDistance("xDays", 1, localizeOptions); - } else if (minutes < MINUTES_IN_MONTH) { - var days = Math.round(minutes / MINUTES_IN_DAY); - return locale.formatDistance("xDays", days, localizeOptions); - } else if (minutes < MINUTES_IN_TWO_MONTHS) { - months = Math.round(minutes / MINUTES_IN_MONTH); - return locale.formatDistance("aboutXMonths", months, localizeOptions); - } - months = (0, _index3.default)(dateRight, dateLeft); - if (months < 12) { - var nearestMonth = Math.round(minutes / MINUTES_IN_MONTH); - return locale.formatDistance("xMonths", nearestMonth, localizeOptions); - } else { - var monthsSinceStartOfYear = months % 12; - var years = Math.floor(months / 12); - if (monthsSinceStartOfYear < 3) { - return locale.formatDistance("aboutXYears", years, localizeOptions); - } else if (monthsSinceStartOfYear < 9) { - return locale.formatDistance("overXYears", years, localizeOptions); - } else { - return locale.formatDistance("almostXYears", years + 1, localizeOptions); - } - } - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/formatDistanceStrict/index.js -var require_formatDistanceStrict = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/formatDistanceStrict/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = formatDistanceStrict2; - var _index = require_defaultOptions(); - var _index2 = _interopRequireDefault(require_getTimezoneOffsetInMilliseconds()); - var _index3 = _interopRequireDefault(require_compareAsc()); - var _index4 = _interopRequireDefault(require_toDate()); - var _index5 = _interopRequireDefault(require_cloneObject()); - var _index6 = _interopRequireDefault(require_assign()); - var _index7 = _interopRequireDefault(require_defaultLocale()); - var _index8 = _interopRequireDefault(require_requiredArgs()); - var MILLISECONDS_IN_MINUTE = 1e3 * 60; - var MINUTES_IN_DAY = 60 * 24; - var MINUTES_IN_MONTH = MINUTES_IN_DAY * 30; - var MINUTES_IN_YEAR = MINUTES_IN_DAY * 365; - function formatDistanceStrict2(dirtyDate, dirtyBaseDate, options2) { - var _ref, _options$locale, _options$roundingMeth; - (0, _index8.default)(2, arguments); - var defaultOptions = (0, _index.getDefaultOptions)(); - var locale = (_ref = (_options$locale = options2 === null || options2 === void 0 ? void 0 : options2.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : _index7.default; - if (!locale.formatDistance) { - throw new RangeError("locale must contain localize.formatDistance property"); - } - var comparison = (0, _index3.default)(dirtyDate, dirtyBaseDate); - if (isNaN(comparison)) { - throw new RangeError("Invalid time value"); - } - var localizeOptions = (0, _index6.default)((0, _index5.default)(options2), { - addSuffix: Boolean(options2 === null || options2 === void 0 ? void 0 : options2.addSuffix), - comparison - }); - var dateLeft; - var dateRight; - if (comparison > 0) { - dateLeft = (0, _index4.default)(dirtyBaseDate); - dateRight = (0, _index4.default)(dirtyDate); - } else { - dateLeft = (0, _index4.default)(dirtyDate); - dateRight = (0, _index4.default)(dirtyBaseDate); - } - var roundingMethod = String((_options$roundingMeth = options2 === null || options2 === void 0 ? void 0 : options2.roundingMethod) !== null && _options$roundingMeth !== void 0 ? _options$roundingMeth : "round"); - var roundingMethodFn; - if (roundingMethod === "floor") { - roundingMethodFn = Math.floor; - } else if (roundingMethod === "ceil") { - roundingMethodFn = Math.ceil; - } else if (roundingMethod === "round") { - roundingMethodFn = Math.round; - } else { - throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'"); - } - var milliseconds = dateRight.getTime() - dateLeft.getTime(); - var minutes = milliseconds / MILLISECONDS_IN_MINUTE; - var timezoneOffset = (0, _index2.default)(dateRight) - (0, _index2.default)(dateLeft); - var dstNormalizedMinutes = (milliseconds - timezoneOffset) / MILLISECONDS_IN_MINUTE; - var defaultUnit = options2 === null || options2 === void 0 ? void 0 : options2.unit; - var unit; - if (!defaultUnit) { - if (minutes < 1) { - unit = "second"; - } else if (minutes < 60) { - unit = "minute"; - } else if (minutes < MINUTES_IN_DAY) { - unit = "hour"; - } else if (dstNormalizedMinutes < MINUTES_IN_MONTH) { - unit = "day"; - } else if (dstNormalizedMinutes < MINUTES_IN_YEAR) { - unit = "month"; - } else { - unit = "year"; - } - } else { - unit = String(defaultUnit); - } - if (unit === "second") { - var seconds = roundingMethodFn(milliseconds / 1e3); - return locale.formatDistance("xSeconds", seconds, localizeOptions); - } else if (unit === "minute") { - var roundedMinutes = roundingMethodFn(minutes); - return locale.formatDistance("xMinutes", roundedMinutes, localizeOptions); - } else if (unit === "hour") { - var hours = roundingMethodFn(minutes / 60); - return locale.formatDistance("xHours", hours, localizeOptions); - } else if (unit === "day") { - var days = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_DAY); - return locale.formatDistance("xDays", days, localizeOptions); - } else if (unit === "month") { - var months = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_MONTH); - return months === 12 && defaultUnit !== "month" ? locale.formatDistance("xYears", 1, localizeOptions) : locale.formatDistance("xMonths", months, localizeOptions); - } else if (unit === "year") { - var years = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_YEAR); - return locale.formatDistance("xYears", years, localizeOptions); - } - throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'"); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/formatDistanceToNow/index.js -var require_formatDistanceToNow = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/formatDistanceToNow/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = formatDistanceToNow; - var _index = _interopRequireDefault(require_formatDistance2()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function formatDistanceToNow(dirtyDate, options2) { - (0, _index2.default)(1, arguments); - return (0, _index.default)(dirtyDate, Date.now(), options2); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/formatDistanceToNowStrict/index.js -var require_formatDistanceToNowStrict = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/formatDistanceToNowStrict/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = formatDistanceToNowStrict; - var _index = _interopRequireDefault(require_formatDistanceStrict()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function formatDistanceToNowStrict(dirtyDate, options2) { - (0, _index2.default)(1, arguments); - return (0, _index.default)(dirtyDate, Date.now(), options2); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/formatDuration/index.js -var require_formatDuration = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/formatDuration/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = formatDuration; - var _index = require_defaultOptions(); - var _index2 = _interopRequireDefault(require_defaultLocale()); - var defaultFormat = ["years", "months", "weeks", "days", "hours", "minutes", "seconds"]; - function formatDuration(duration, options2) { - var _ref, _options$locale, _options$format, _options$zero, _options$delimiter; - if (arguments.length < 1) { - throw new TypeError("1 argument required, but only ".concat(arguments.length, " present")); - } - var defaultOptions = (0, _index.getDefaultOptions)(); - var locale = (_ref = (_options$locale = options2 === null || options2 === void 0 ? void 0 : options2.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : _index2.default; - var format2 = (_options$format = options2 === null || options2 === void 0 ? void 0 : options2.format) !== null && _options$format !== void 0 ? _options$format : defaultFormat; - var zero2 = (_options$zero = options2 === null || options2 === void 0 ? void 0 : options2.zero) !== null && _options$zero !== void 0 ? _options$zero : false; - var delimiter = (_options$delimiter = options2 === null || options2 === void 0 ? void 0 : options2.delimiter) !== null && _options$delimiter !== void 0 ? _options$delimiter : " "; - if (!locale.formatDistance) { - return ""; - } - var result = format2.reduce(function(acc, unit) { - var token = "x".concat(unit.replace(/(^.)/, function(m) { - return m.toUpperCase(); - })); - var value = duration[unit]; - if (typeof value === "number" && (zero2 || duration[unit])) { - return acc.concat(locale.formatDistance(token, value)); - } - return acc; - }, []).join(delimiter); - return result; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/formatISO/index.js -var require_formatISO = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/formatISO/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = formatISO; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_addLeadingZeros()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function formatISO(date, options2) { - var _options$format, _options$representati; - (0, _index3.default)(1, arguments); - var originalDate = (0, _index.default)(date); - if (isNaN(originalDate.getTime())) { - throw new RangeError("Invalid time value"); - } - var format2 = String((_options$format = options2 === null || options2 === void 0 ? void 0 : options2.format) !== null && _options$format !== void 0 ? _options$format : "extended"); - var representation = String((_options$representati = options2 === null || options2 === void 0 ? void 0 : options2.representation) !== null && _options$representati !== void 0 ? _options$representati : "complete"); - if (format2 !== "extended" && format2 !== "basic") { - throw new RangeError("format must be 'extended' or 'basic'"); - } - if (representation !== "date" && representation !== "time" && representation !== "complete") { - throw new RangeError("representation must be 'date', 'time', or 'complete'"); - } - var result = ""; - var tzOffset = ""; - var dateDelimiter = format2 === "extended" ? "-" : ""; - var timeDelimiter = format2 === "extended" ? ":" : ""; - if (representation !== "time") { - var day = (0, _index2.default)(originalDate.getDate(), 2); - var month = (0, _index2.default)(originalDate.getMonth() + 1, 2); - var year = (0, _index2.default)(originalDate.getFullYear(), 4); - result = "".concat(year).concat(dateDelimiter).concat(month).concat(dateDelimiter).concat(day); - } - if (representation !== "date") { - var offset = originalDate.getTimezoneOffset(); - if (offset !== 0) { - var absoluteOffset = Math.abs(offset); - var hourOffset = (0, _index2.default)(Math.floor(absoluteOffset / 60), 2); - var minuteOffset = (0, _index2.default)(absoluteOffset % 60, 2); - var sign = offset < 0 ? "+" : "-"; - tzOffset = "".concat(sign).concat(hourOffset, ":").concat(minuteOffset); - } else { - tzOffset = "Z"; - } - var hour = (0, _index2.default)(originalDate.getHours(), 2); - var minute = (0, _index2.default)(originalDate.getMinutes(), 2); - var second = (0, _index2.default)(originalDate.getSeconds(), 2); - var separator = result === "" ? "" : "T"; - var time = [hour, minute, second].join(timeDelimiter); - result = "".concat(result).concat(separator).concat(time).concat(tzOffset); - } - return result; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/formatISO9075/index.js -var require_formatISO9075 = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/formatISO9075/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = formatISO9075; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_isValid()); - var _index3 = _interopRequireDefault(require_addLeadingZeros()); - function formatISO9075(dirtyDate, options2) { - var _options$format, _options$representati; - if (arguments.length < 1) { - throw new TypeError("1 argument required, but only ".concat(arguments.length, " present")); - } - var originalDate = (0, _index.default)(dirtyDate); - if (!(0, _index2.default)(originalDate)) { - throw new RangeError("Invalid time value"); - } - var format2 = String((_options$format = options2 === null || options2 === void 0 ? void 0 : options2.format) !== null && _options$format !== void 0 ? _options$format : "extended"); - var representation = String((_options$representati = options2 === null || options2 === void 0 ? void 0 : options2.representation) !== null && _options$representati !== void 0 ? _options$representati : "complete"); - if (format2 !== "extended" && format2 !== "basic") { - throw new RangeError("format must be 'extended' or 'basic'"); - } - if (representation !== "date" && representation !== "time" && representation !== "complete") { - throw new RangeError("representation must be 'date', 'time', or 'complete'"); - } - var result = ""; - var dateDelimiter = format2 === "extended" ? "-" : ""; - var timeDelimiter = format2 === "extended" ? ":" : ""; - if (representation !== "time") { - var day = (0, _index3.default)(originalDate.getDate(), 2); - var month = (0, _index3.default)(originalDate.getMonth() + 1, 2); - var year = (0, _index3.default)(originalDate.getFullYear(), 4); - result = "".concat(year).concat(dateDelimiter).concat(month).concat(dateDelimiter).concat(day); - } - if (representation !== "date") { - var hour = (0, _index3.default)(originalDate.getHours(), 2); - var minute = (0, _index3.default)(originalDate.getMinutes(), 2); - var second = (0, _index3.default)(originalDate.getSeconds(), 2); - var separator = result === "" ? "" : " "; - result = "".concat(result).concat(separator).concat(hour).concat(timeDelimiter).concat(minute).concat(timeDelimiter).concat(second); - } - return result; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/formatISODuration/index.js -var require_formatISODuration = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/formatISODuration/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = formatISODuration; - var _typeof2 = _interopRequireDefault(require_typeof()); - var _index = _interopRequireDefault(require_requiredArgs()); - function formatISODuration(duration) { - (0, _index.default)(1, arguments); - if ((0, _typeof2.default)(duration) !== "object") - throw new Error("Duration must be an object"); - var _duration$years = duration.years, years = _duration$years === void 0 ? 0 : _duration$years, _duration$months = duration.months, months = _duration$months === void 0 ? 0 : _duration$months, _duration$days = duration.days, days = _duration$days === void 0 ? 0 : _duration$days, _duration$hours = duration.hours, hours = _duration$hours === void 0 ? 0 : _duration$hours, _duration$minutes = duration.minutes, minutes = _duration$minutes === void 0 ? 0 : _duration$minutes, _duration$seconds = duration.seconds, seconds = _duration$seconds === void 0 ? 0 : _duration$seconds; - return "P".concat(years, "Y").concat(months, "M").concat(days, "DT").concat(hours, "H").concat(minutes, "M").concat(seconds, "S"); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/formatRFC3339/index.js -var require_formatRFC3339 = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/formatRFC3339/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = formatRFC3339; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_isValid()); - var _index3 = _interopRequireDefault(require_addLeadingZeros()); - var _index4 = _interopRequireDefault(require_toInteger()); - function formatRFC3339(dirtyDate, options2) { - var _options$fractionDigi; - if (arguments.length < 1) { - throw new TypeError("1 arguments required, but only ".concat(arguments.length, " present")); - } - var originalDate = (0, _index.default)(dirtyDate); - if (!(0, _index2.default)(originalDate)) { - throw new RangeError("Invalid time value"); - } - var fractionDigits = Number((_options$fractionDigi = options2 === null || options2 === void 0 ? void 0 : options2.fractionDigits) !== null && _options$fractionDigi !== void 0 ? _options$fractionDigi : 0); - if (!(fractionDigits >= 0 && fractionDigits <= 3)) { - throw new RangeError("fractionDigits must be between 0 and 3 inclusively"); - } - var day = (0, _index3.default)(originalDate.getDate(), 2); - var month = (0, _index3.default)(originalDate.getMonth() + 1, 2); - var year = originalDate.getFullYear(); - var hour = (0, _index3.default)(originalDate.getHours(), 2); - var minute = (0, _index3.default)(originalDate.getMinutes(), 2); - var second = (0, _index3.default)(originalDate.getSeconds(), 2); - var fractionalSecond = ""; - if (fractionDigits > 0) { - var milliseconds = originalDate.getMilliseconds(); - var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, fractionDigits - 3)); - fractionalSecond = "." + (0, _index3.default)(fractionalSeconds, fractionDigits); - } - var offset = ""; - var tzOffset = originalDate.getTimezoneOffset(); - if (tzOffset !== 0) { - var absoluteOffset = Math.abs(tzOffset); - var hourOffset = (0, _index3.default)((0, _index4.default)(absoluteOffset / 60), 2); - var minuteOffset = (0, _index3.default)(absoluteOffset % 60, 2); - var sign = tzOffset < 0 ? "+" : "-"; - offset = "".concat(sign).concat(hourOffset, ":").concat(minuteOffset); - } else { - offset = "Z"; - } - return "".concat(year, "-").concat(month, "-").concat(day, "T").concat(hour, ":").concat(minute, ":").concat(second).concat(fractionalSecond).concat(offset); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/formatRFC7231/index.js -var require_formatRFC7231 = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/formatRFC7231/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = formatRFC7231; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_isValid()); - var _index3 = _interopRequireDefault(require_addLeadingZeros()); - var days = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]; - var months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; - function formatRFC7231(dirtyDate) { - if (arguments.length < 1) { - throw new TypeError("1 arguments required, but only ".concat(arguments.length, " present")); - } - var originalDate = (0, _index.default)(dirtyDate); - if (!(0, _index2.default)(originalDate)) { - throw new RangeError("Invalid time value"); - } - var dayName = days[originalDate.getUTCDay()]; - var dayOfMonth = (0, _index3.default)(originalDate.getUTCDate(), 2); - var monthName = months[originalDate.getUTCMonth()]; - var year = originalDate.getUTCFullYear(); - var hour = (0, _index3.default)(originalDate.getUTCHours(), 2); - var minute = (0, _index3.default)(originalDate.getUTCMinutes(), 2); - var second = (0, _index3.default)(originalDate.getUTCSeconds(), 2); - return "".concat(dayName, ", ").concat(dayOfMonth, " ").concat(monthName, " ").concat(year, " ").concat(hour, ":").concat(minute, ":").concat(second, " GMT"); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/formatRelative/index.js -var require_formatRelative2 = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/formatRelative/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = formatRelative2; - var _index = require_defaultOptions(); - var _index2 = _interopRequireDefault(require_differenceInCalendarDays()); - var _index3 = _interopRequireDefault(require_format()); - var _index4 = _interopRequireDefault(require_defaultLocale()); - var _index5 = _interopRequireDefault(require_subMilliseconds()); - var _index6 = _interopRequireDefault(require_toDate()); - var _index7 = _interopRequireDefault(require_getTimezoneOffsetInMilliseconds()); - var _index8 = _interopRequireDefault(require_requiredArgs()); - var _index9 = _interopRequireDefault(require_toInteger()); - function formatRelative2(dirtyDate, dirtyBaseDate, options2) { - var _ref, _options$locale, _ref2, _ref3, _ref4, _options$weekStartsOn, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2; - (0, _index8.default)(2, arguments); - var date = (0, _index6.default)(dirtyDate); - var baseDate = (0, _index6.default)(dirtyBaseDate); - var defaultOptions = (0, _index.getDefaultOptions)(); - var locale = (_ref = (_options$locale = options2 === null || options2 === void 0 ? void 0 : options2.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : _index4.default; - var weekStartsOn = (0, _index9.default)((_ref2 = (_ref3 = (_ref4 = (_options$weekStartsOn = options2 === null || options2 === void 0 ? void 0 : options2.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options2 === null || options2 === void 0 ? void 0 : (_options$locale2 = options2.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.weekStartsOn) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : 0); - if (!locale.localize) { - throw new RangeError("locale must contain localize property"); - } - if (!locale.formatLong) { - throw new RangeError("locale must contain formatLong property"); - } - if (!locale.formatRelative) { - throw new RangeError("locale must contain formatRelative property"); - } - var diff2 = (0, _index2.default)(date, baseDate); - if (isNaN(diff2)) { - throw new RangeError("Invalid time value"); - } - var token; - if (diff2 < -6) { - token = "other"; - } else if (diff2 < -1) { - token = "lastWeek"; - } else if (diff2 < 0) { - token = "yesterday"; - } else if (diff2 < 1) { - token = "today"; - } else if (diff2 < 2) { - token = "tomorrow"; - } else if (diff2 < 7) { - token = "nextWeek"; - } else { - token = "other"; - } - var utcDate = (0, _index5.default)(date, (0, _index7.default)(date)); - var utcBaseDate = (0, _index5.default)(baseDate, (0, _index7.default)(baseDate)); - var formatStr = locale.formatRelative(token, utcDate, utcBaseDate, { - locale, - weekStartsOn - }); - return (0, _index3.default)(date, formatStr, { - locale, - weekStartsOn - }); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/fromUnixTime/index.js -var require_fromUnixTime = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/fromUnixTime/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = fromUnixTime; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_toInteger()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function fromUnixTime(dirtyUnixTime) { - (0, _index3.default)(1, arguments); - var unixTime = (0, _index2.default)(dirtyUnixTime); - return (0, _index.default)(unixTime * 1e3); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getDate/index.js -var require_getDate = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getDate/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = getDate; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function getDate(dirtyDate) { - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - var dayOfMonth = date.getDate(); - return dayOfMonth; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getDay/index.js -var require_getDay = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getDay/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = getDay; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function getDay(dirtyDate) { - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - var day = date.getDay(); - return day; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getDayOfYear/index.js -var require_getDayOfYear = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getDayOfYear/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = getDayOfYear; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_startOfYear()); - var _index3 = _interopRequireDefault(require_differenceInCalendarDays()); - var _index4 = _interopRequireDefault(require_requiredArgs()); - function getDayOfYear(dirtyDate) { - (0, _index4.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - var diff2 = (0, _index3.default)(date, (0, _index2.default)(date)); - var dayOfYear = diff2 + 1; - return dayOfYear; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getDaysInMonth/index.js -var require_getDaysInMonth = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getDaysInMonth/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = getDaysInMonth; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function getDaysInMonth(dirtyDate) { - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - var year = date.getFullYear(); - var monthIndex = date.getMonth(); - var lastDayOfMonth = /* @__PURE__ */ new Date(0); - lastDayOfMonth.setFullYear(year, monthIndex + 1, 0); - lastDayOfMonth.setHours(0, 0, 0, 0); - return lastDayOfMonth.getDate(); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isLeapYear/index.js -var require_isLeapYear = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isLeapYear/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isLeapYear; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function isLeapYear(dirtyDate) { - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - var year = date.getFullYear(); - return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getDaysInYear/index.js -var require_getDaysInYear = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getDaysInYear/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = getDaysInYear; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_isLeapYear()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function getDaysInYear(dirtyDate) { - (0, _index3.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - if (String(new Date(date)) === "Invalid Date") { - return NaN; - } - return (0, _index2.default)(date) ? 366 : 365; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getDecade/index.js -var require_getDecade = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getDecade/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = getDecade; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function getDecade(dirtyDate) { - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - var year = date.getFullYear(); - var decade = Math.floor(year / 10) * 10; - return decade; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getDefaultOptions/index.js -var require_getDefaultOptions = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getDefaultOptions/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = getDefaultOptions; - var _index = require_defaultOptions(); - var _index2 = _interopRequireDefault(require_assign()); - function getDefaultOptions() { - return (0, _index2.default)({}, (0, _index.getDefaultOptions)()); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getHours/index.js -var require_getHours = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getHours/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = getHours; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function getHours(dirtyDate) { - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - var hours = date.getHours(); - return hours; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getISODay/index.js -var require_getISODay = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getISODay/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = getISODay; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function getISODay(dirtyDate) { - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - var day = date.getDay(); - if (day === 0) { - day = 7; - } - return day; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getISOWeek/index.js -var require_getISOWeek = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getISOWeek/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = getISOWeek; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_startOfISOWeek()); - var _index3 = _interopRequireDefault(require_startOfISOWeekYear()); - var _index4 = _interopRequireDefault(require_requiredArgs()); - var MILLISECONDS_IN_WEEK = 6048e5; - function getISOWeek(dirtyDate) { - (0, _index4.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - var diff2 = (0, _index2.default)(date).getTime() - (0, _index3.default)(date).getTime(); - return Math.round(diff2 / MILLISECONDS_IN_WEEK) + 1; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getISOWeeksInYear/index.js -var require_getISOWeeksInYear = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getISOWeeksInYear/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = getISOWeeksInYear; - var _index = _interopRequireDefault(require_startOfISOWeekYear()); - var _index2 = _interopRequireDefault(require_addWeeks()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - var MILLISECONDS_IN_WEEK = 6048e5; - function getISOWeeksInYear(dirtyDate) { - (0, _index3.default)(1, arguments); - var thisYear = (0, _index.default)(dirtyDate); - var nextYear = (0, _index.default)((0, _index2.default)(thisYear, 60)); - var diff2 = nextYear.valueOf() - thisYear.valueOf(); - return Math.round(diff2 / MILLISECONDS_IN_WEEK); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getMilliseconds/index.js -var require_getMilliseconds = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getMilliseconds/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = getMilliseconds; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function getMilliseconds(dirtyDate) { - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - var milliseconds = date.getMilliseconds(); - return milliseconds; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getMinutes/index.js -var require_getMinutes = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getMinutes/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = getMinutes; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function getMinutes(dirtyDate) { - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - var minutes = date.getMinutes(); - return minutes; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getMonth/index.js -var require_getMonth = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getMonth/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = getMonth; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function getMonth(dirtyDate) { - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - var month = date.getMonth(); - return month; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getOverlappingDaysInIntervals/index.js -var require_getOverlappingDaysInIntervals = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getOverlappingDaysInIntervals/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = getOverlappingDaysInIntervals; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - var MILLISECONDS_IN_DAY = 24 * 60 * 60 * 1e3; - function getOverlappingDaysInIntervals(dirtyIntervalLeft, dirtyIntervalRight) { - (0, _index2.default)(2, arguments); - var intervalLeft = dirtyIntervalLeft || {}; - var intervalRight = dirtyIntervalRight || {}; - var leftStartTime = (0, _index.default)(intervalLeft.start).getTime(); - var leftEndTime = (0, _index.default)(intervalLeft.end).getTime(); - var rightStartTime = (0, _index.default)(intervalRight.start).getTime(); - var rightEndTime = (0, _index.default)(intervalRight.end).getTime(); - if (!(leftStartTime <= leftEndTime && rightStartTime <= rightEndTime)) { - throw new RangeError("Invalid interval"); - } - var isOverlapping = leftStartTime < rightEndTime && rightStartTime < leftEndTime; - if (!isOverlapping) { - return 0; - } - var overlapStartDate = rightStartTime < leftStartTime ? leftStartTime : rightStartTime; - var overlapEndDate = rightEndTime > leftEndTime ? leftEndTime : rightEndTime; - var differenceInMs = overlapEndDate - overlapStartDate; - return Math.ceil(differenceInMs / MILLISECONDS_IN_DAY); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getSeconds/index.js -var require_getSeconds = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getSeconds/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = getSeconds; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function getSeconds(dirtyDate) { - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - var seconds = date.getSeconds(); - return seconds; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getTime/index.js -var require_getTime = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getTime/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = getTime; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function getTime(dirtyDate) { - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - var timestamp = date.getTime(); - return timestamp; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getUnixTime/index.js -var require_getUnixTime = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getUnixTime/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = getUnixTime; - var _index = _interopRequireDefault(require_getTime()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function getUnixTime(dirtyDate) { - (0, _index2.default)(1, arguments); - return Math.floor((0, _index.default)(dirtyDate) / 1e3); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getWeekYear/index.js -var require_getWeekYear = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getWeekYear/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = getWeekYear; - var _index = _interopRequireDefault(require_startOfWeek()); - var _index2 = _interopRequireDefault(require_toDate()); - var _index3 = _interopRequireDefault(require_toInteger()); - var _index4 = _interopRequireDefault(require_requiredArgs()); - var _index5 = require_defaultOptions(); - function getWeekYear(dirtyDate, options2) { - var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; - (0, _index4.default)(1, arguments); - var date = (0, _index2.default)(dirtyDate); - var year = date.getFullYear(); - var defaultOptions = (0, _index5.getDefaultOptions)(); - var firstWeekContainsDate = (0, _index3.default)((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options2 === null || options2 === void 0 ? void 0 : options2.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options2 === null || options2 === void 0 ? void 0 : (_options$locale = options2.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1); - if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) { - throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively"); - } - var firstWeekOfNextYear = /* @__PURE__ */ new Date(0); - firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate); - firstWeekOfNextYear.setHours(0, 0, 0, 0); - var startOfNextYear = (0, _index.default)(firstWeekOfNextYear, options2); - var firstWeekOfThisYear = /* @__PURE__ */ new Date(0); - firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate); - firstWeekOfThisYear.setHours(0, 0, 0, 0); - var startOfThisYear = (0, _index.default)(firstWeekOfThisYear, options2); - if (date.getTime() >= startOfNextYear.getTime()) { - return year + 1; - } else if (date.getTime() >= startOfThisYear.getTime()) { - return year; - } else { - return year - 1; - } - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/startOfWeekYear/index.js -var require_startOfWeekYear = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/startOfWeekYear/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = startOfWeekYear; - var _index = _interopRequireDefault(require_getWeekYear()); - var _index2 = _interopRequireDefault(require_startOfWeek()); - var _index3 = _interopRequireDefault(require_toInteger()); - var _index4 = _interopRequireDefault(require_requiredArgs()); - var _index5 = require_defaultOptions(); - function startOfWeekYear(dirtyDate, options2) { - var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; - (0, _index4.default)(1, arguments); - var defaultOptions = (0, _index5.getDefaultOptions)(); - var firstWeekContainsDate = (0, _index3.default)((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options2 === null || options2 === void 0 ? void 0 : options2.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options2 === null || options2 === void 0 ? void 0 : (_options$locale = options2.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1); - var year = (0, _index.default)(dirtyDate, options2); - var firstWeek = /* @__PURE__ */ new Date(0); - firstWeek.setFullYear(year, 0, firstWeekContainsDate); - firstWeek.setHours(0, 0, 0, 0); - var date = (0, _index2.default)(firstWeek, options2); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getWeek/index.js -var require_getWeek = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getWeek/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = getWeek; - var _index = _interopRequireDefault(require_startOfWeek()); - var _index2 = _interopRequireDefault(require_startOfWeekYear()); - var _index3 = _interopRequireDefault(require_toDate()); - var _index4 = _interopRequireDefault(require_requiredArgs()); - var MILLISECONDS_IN_WEEK = 6048e5; - function getWeek(dirtyDate, options2) { - (0, _index4.default)(1, arguments); - var date = (0, _index3.default)(dirtyDate); - var diff2 = (0, _index.default)(date, options2).getTime() - (0, _index2.default)(date, options2).getTime(); - return Math.round(diff2 / MILLISECONDS_IN_WEEK) + 1; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getWeekOfMonth/index.js -var require_getWeekOfMonth = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getWeekOfMonth/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = getWeekOfMonth; - var _index = require_defaultOptions(); - var _index2 = _interopRequireDefault(require_getDate()); - var _index3 = _interopRequireDefault(require_getDay()); - var _index4 = _interopRequireDefault(require_startOfMonth()); - var _index5 = _interopRequireDefault(require_requiredArgs()); - var _index6 = _interopRequireDefault(require_toInteger()); - function getWeekOfMonth(date, options2) { - var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; - (0, _index5.default)(1, arguments); - var defaultOptions = (0, _index.getDefaultOptions)(); - var weekStartsOn = (0, _index6.default)((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options2 === null || options2 === void 0 ? void 0 : options2.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options2 === null || options2 === void 0 ? void 0 : (_options$locale = options2.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); - if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { - throw new RangeError("weekStartsOn must be between 0 and 6 inclusively"); - } - var currentDayOfMonth = (0, _index2.default)(date); - if (isNaN(currentDayOfMonth)) - return NaN; - var startWeekDay = (0, _index3.default)((0, _index4.default)(date)); - var lastDayOfFirstWeek = weekStartsOn - startWeekDay; - if (lastDayOfFirstWeek <= 0) - lastDayOfFirstWeek += 7; - var remainingDaysAfterFirstWeek = currentDayOfMonth - lastDayOfFirstWeek; - return Math.ceil(remainingDaysAfterFirstWeek / 7) + 1; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/lastDayOfMonth/index.js -var require_lastDayOfMonth = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/lastDayOfMonth/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = lastDayOfMonth; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function lastDayOfMonth(dirtyDate) { - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - var month = date.getMonth(); - date.setFullYear(date.getFullYear(), month + 1, 0); - date.setHours(0, 0, 0, 0); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getWeeksInMonth/index.js -var require_getWeeksInMonth = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getWeeksInMonth/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = getWeeksInMonth; - var _index = _interopRequireDefault(require_differenceInCalendarWeeks()); - var _index2 = _interopRequireDefault(require_lastDayOfMonth()); - var _index3 = _interopRequireDefault(require_startOfMonth()); - var _index4 = _interopRequireDefault(require_requiredArgs()); - function getWeeksInMonth(date, options2) { - (0, _index4.default)(1, arguments); - return (0, _index.default)((0, _index2.default)(date), (0, _index3.default)(date), options2) + 1; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getYear/index.js -var require_getYear = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/getYear/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = getYear; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function getYear(dirtyDate) { - (0, _index2.default)(1, arguments); - return (0, _index.default)(dirtyDate).getFullYear(); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/hoursToMilliseconds/index.js -var require_hoursToMilliseconds = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/hoursToMilliseconds/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = hoursToMilliseconds; - var _index = _interopRequireDefault(require_requiredArgs()); - var _index2 = require_constants(); - function hoursToMilliseconds(hours) { - (0, _index.default)(1, arguments); - return Math.floor(hours * _index2.millisecondsInHour); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/hoursToMinutes/index.js -var require_hoursToMinutes = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/hoursToMinutes/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = hoursToMinutes; - var _index = _interopRequireDefault(require_requiredArgs()); - var _index2 = require_constants(); - function hoursToMinutes(hours) { - (0, _index.default)(1, arguments); - return Math.floor(hours * _index2.minutesInHour); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/hoursToSeconds/index.js -var require_hoursToSeconds = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/hoursToSeconds/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = hoursToSeconds; - var _index = _interopRequireDefault(require_requiredArgs()); - var _index2 = require_constants(); - function hoursToSeconds(hours) { - (0, _index.default)(1, arguments); - return Math.floor(hours * _index2.secondsInHour); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/intervalToDuration/index.js -var require_intervalToDuration = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/intervalToDuration/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = intervalToDuration; - var _index = _interopRequireDefault(require_compareAsc()); - var _index2 = _interopRequireDefault(require_add()); - var _index3 = _interopRequireDefault(require_differenceInDays()); - var _index4 = _interopRequireDefault(require_differenceInHours()); - var _index5 = _interopRequireDefault(require_differenceInMinutes()); - var _index6 = _interopRequireDefault(require_differenceInMonths()); - var _index7 = _interopRequireDefault(require_differenceInSeconds()); - var _index8 = _interopRequireDefault(require_differenceInYears()); - var _index9 = _interopRequireDefault(require_toDate()); - var _index10 = _interopRequireDefault(require_requiredArgs()); - function intervalToDuration(interval) { - (0, _index10.default)(1, arguments); - var start4 = (0, _index9.default)(interval.start); - var end = (0, _index9.default)(interval.end); - if (isNaN(start4.getTime())) - throw new RangeError("Start Date is invalid"); - if (isNaN(end.getTime())) - throw new RangeError("End Date is invalid"); - var duration = {}; - duration.years = Math.abs((0, _index8.default)(end, start4)); - var sign = (0, _index.default)(end, start4); - var remainingMonths = (0, _index2.default)(start4, { - years: sign * duration.years - }); - duration.months = Math.abs((0, _index6.default)(end, remainingMonths)); - var remainingDays = (0, _index2.default)(remainingMonths, { - months: sign * duration.months - }); - duration.days = Math.abs((0, _index3.default)(end, remainingDays)); - var remainingHours = (0, _index2.default)(remainingDays, { - days: sign * duration.days - }); - duration.hours = Math.abs((0, _index4.default)(end, remainingHours)); - var remainingMinutes = (0, _index2.default)(remainingHours, { - hours: sign * duration.hours - }); - duration.minutes = Math.abs((0, _index5.default)(end, remainingMinutes)); - var remainingSeconds = (0, _index2.default)(remainingMinutes, { - minutes: sign * duration.minutes - }); - duration.seconds = Math.abs((0, _index7.default)(end, remainingSeconds)); - return duration; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/intlFormat/index.js -var require_intlFormat = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/intlFormat/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = intlFormat; - var _index = _interopRequireDefault(require_requiredArgs()); - function intlFormat(date, formatOrLocale, localeOptions) { - var _localeOptions; - (0, _index.default)(1, arguments); - var formatOptions; - if (isFormatOptions(formatOrLocale)) { - formatOptions = formatOrLocale; - } else { - localeOptions = formatOrLocale; - } - return new Intl.DateTimeFormat((_localeOptions = localeOptions) === null || _localeOptions === void 0 ? void 0 : _localeOptions.locale, formatOptions).format(date); - } - function isFormatOptions(opts) { - return opts !== void 0 && !("locale" in opts); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/intlFormatDistance/index.js -var require_intlFormatDistance = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/intlFormatDistance/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = intlFormatDistance; - var _index = require_constants(); - var _index2 = _interopRequireDefault(require_differenceInCalendarDays()); - var _index3 = _interopRequireDefault(require_differenceInCalendarMonths()); - var _index4 = _interopRequireDefault(require_differenceInCalendarQuarters()); - var _index5 = _interopRequireDefault(require_differenceInCalendarWeeks()); - var _index6 = _interopRequireDefault(require_differenceInCalendarYears()); - var _index7 = _interopRequireDefault(require_differenceInHours()); - var _index8 = _interopRequireDefault(require_differenceInMinutes()); - var _index9 = _interopRequireDefault(require_differenceInSeconds()); - var _index10 = _interopRequireDefault(require_toDate()); - var _index11 = _interopRequireDefault(require_requiredArgs()); - function intlFormatDistance(date, baseDate, options2) { - (0, _index11.default)(2, arguments); - var value = 0; - var unit; - var dateLeft = (0, _index10.default)(date); - var dateRight = (0, _index10.default)(baseDate); - if (!(options2 !== null && options2 !== void 0 && options2.unit)) { - var diffInSeconds = (0, _index9.default)(dateLeft, dateRight); - if (Math.abs(diffInSeconds) < _index.secondsInMinute) { - value = (0, _index9.default)(dateLeft, dateRight); - unit = "second"; - } else if (Math.abs(diffInSeconds) < _index.secondsInHour) { - value = (0, _index8.default)(dateLeft, dateRight); - unit = "minute"; - } else if (Math.abs(diffInSeconds) < _index.secondsInDay && Math.abs((0, _index2.default)(dateLeft, dateRight)) < 1) { - value = (0, _index7.default)(dateLeft, dateRight); - unit = "hour"; - } else if (Math.abs(diffInSeconds) < _index.secondsInWeek && (value = (0, _index2.default)(dateLeft, dateRight)) && Math.abs(value) < 7) { - unit = "day"; - } else if (Math.abs(diffInSeconds) < _index.secondsInMonth) { - value = (0, _index5.default)(dateLeft, dateRight); - unit = "week"; - } else if (Math.abs(diffInSeconds) < _index.secondsInQuarter) { - value = (0, _index3.default)(dateLeft, dateRight); - unit = "month"; - } else if (Math.abs(diffInSeconds) < _index.secondsInYear) { - if ((0, _index4.default)(dateLeft, dateRight) < 4) { - value = (0, _index4.default)(dateLeft, dateRight); - unit = "quarter"; - } else { - value = (0, _index6.default)(dateLeft, dateRight); - unit = "year"; - } - } else { - value = (0, _index6.default)(dateLeft, dateRight); - unit = "year"; - } - } else { - unit = options2 === null || options2 === void 0 ? void 0 : options2.unit; - if (unit === "second") { - value = (0, _index9.default)(dateLeft, dateRight); - } else if (unit === "minute") { - value = (0, _index8.default)(dateLeft, dateRight); - } else if (unit === "hour") { - value = (0, _index7.default)(dateLeft, dateRight); - } else if (unit === "day") { - value = (0, _index2.default)(dateLeft, dateRight); - } else if (unit === "week") { - value = (0, _index5.default)(dateLeft, dateRight); - } else if (unit === "month") { - value = (0, _index3.default)(dateLeft, dateRight); - } else if (unit === "quarter") { - value = (0, _index4.default)(dateLeft, dateRight); - } else if (unit === "year") { - value = (0, _index6.default)(dateLeft, dateRight); - } - } - var rtf = new Intl.RelativeTimeFormat(options2 === null || options2 === void 0 ? void 0 : options2.locale, { - localeMatcher: options2 === null || options2 === void 0 ? void 0 : options2.localeMatcher, - numeric: (options2 === null || options2 === void 0 ? void 0 : options2.numeric) || "auto", - style: options2 === null || options2 === void 0 ? void 0 : options2.style - }); - return rtf.format(value, unit); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isAfter/index.js -var require_isAfter = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isAfter/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isAfter; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function isAfter(dirtyDate, dirtyDateToCompare) { - (0, _index2.default)(2, arguments); - var date = (0, _index.default)(dirtyDate); - var dateToCompare = (0, _index.default)(dirtyDateToCompare); - return date.getTime() > dateToCompare.getTime(); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isBefore/index.js -var require_isBefore = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isBefore/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isBefore; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function isBefore(dirtyDate, dirtyDateToCompare) { - (0, _index2.default)(2, arguments); - var date = (0, _index.default)(dirtyDate); - var dateToCompare = (0, _index.default)(dirtyDateToCompare); - return date.getTime() < dateToCompare.getTime(); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isEqual/index.js -var require_isEqual = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isEqual/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isEqual2; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function isEqual2(dirtyLeftDate, dirtyRightDate) { - (0, _index2.default)(2, arguments); - var dateLeft = (0, _index.default)(dirtyLeftDate); - var dateRight = (0, _index.default)(dirtyRightDate); - return dateLeft.getTime() === dateRight.getTime(); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isExists/index.js -var require_isExists = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isExists/index.js"(exports2, module2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isExists; - function isExists(year, month, day) { - if (arguments.length < 3) { - throw new TypeError("3 argument required, but only " + arguments.length + " present"); - } - var date = new Date(year, month, day); - return date.getFullYear() === year && date.getMonth() === month && date.getDate() === day; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isFirstDayOfMonth/index.js -var require_isFirstDayOfMonth = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isFirstDayOfMonth/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isFirstDayOfMonth; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function isFirstDayOfMonth(dirtyDate) { - (0, _index2.default)(1, arguments); - return (0, _index.default)(dirtyDate).getDate() === 1; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isFriday/index.js -var require_isFriday = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isFriday/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isFriday; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function isFriday(dirtyDate) { - (0, _index2.default)(1, arguments); - return (0, _index.default)(dirtyDate).getDay() === 5; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isFuture/index.js -var require_isFuture = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isFuture/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isFuture; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function isFuture(dirtyDate) { - (0, _index2.default)(1, arguments); - return (0, _index.default)(dirtyDate).getTime() > Date.now(); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/@babel+runtime@7.22.3/node_modules/@babel/runtime/helpers/arrayLikeToArray.js -var require_arrayLikeToArray = __commonJS({ - "../node_modules/.pnpm/@babel+runtime@7.22.3/node_modules/@babel/runtime/helpers/arrayLikeToArray.js"(exports2, module2) { - function _arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) - len = arr.length; - for (var i = 0, arr2 = new Array(len); i < len; i++) - arr2[i] = arr[i]; - return arr2; - } - module2.exports = _arrayLikeToArray, module2.exports.__esModule = true, module2.exports["default"] = module2.exports; - } -}); - -// ../node_modules/.pnpm/@babel+runtime@7.22.3/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js -var require_unsupportedIterableToArray = __commonJS({ - "../node_modules/.pnpm/@babel+runtime@7.22.3/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"(exports2, module2) { - var arrayLikeToArray = require_arrayLikeToArray(); - function _unsupportedIterableToArray(o, minLen) { - if (!o) - return; - if (typeof o === "string") - return arrayLikeToArray(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) - n = o.constructor.name; - if (n === "Map" || n === "Set") - return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) - return arrayLikeToArray(o, minLen); - } - module2.exports = _unsupportedIterableToArray, module2.exports.__esModule = true, module2.exports["default"] = module2.exports; - } -}); - -// ../node_modules/.pnpm/@babel+runtime@7.22.3/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js -var require_createForOfIteratorHelper = __commonJS({ - "../node_modules/.pnpm/@babel+runtime@7.22.3/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js"(exports2, module2) { - var unsupportedIterableToArray = require_unsupportedIterableToArray(); - function _createForOfIteratorHelper(o, allowArrayLike) { - var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; - if (!it) { - if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { - if (it) - o = it; - var i = 0; - var F = function F2() { - }; - return { - s: F, - n: function n() { - if (i >= o.length) - return { - done: true - }; - return { - done: false, - value: o[i++] - }; - }, - e: function e(_e) { - throw _e; - }, - f: F - }; - } - throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); - } - var normalCompletion = true, didErr = false, err3; - return { - s: function s() { - it = it.call(o); - }, - n: function n() { - var step = it.next(); - normalCompletion = step.done; - return step; - }, - e: function e(_e2) { - didErr = true; - err3 = _e2; - }, - f: function f() { - try { - if (!normalCompletion && it["return"] != null) - it["return"](); - } finally { - if (didErr) - throw err3; - } - } - }; - } - module2.exports = _createForOfIteratorHelper, module2.exports.__esModule = true, module2.exports["default"] = module2.exports; - } -}); - -// ../node_modules/.pnpm/@babel+runtime@7.22.3/node_modules/@babel/runtime/helpers/assertThisInitialized.js -var require_assertThisInitialized = __commonJS({ - "../node_modules/.pnpm/@babel+runtime@7.22.3/node_modules/@babel/runtime/helpers/assertThisInitialized.js"(exports2, module2) { - function _assertThisInitialized(self2) { - if (self2 === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - return self2; - } - module2.exports = _assertThisInitialized, module2.exports.__esModule = true, module2.exports["default"] = module2.exports; - } -}); - -// ../node_modules/.pnpm/@babel+runtime@7.22.3/node_modules/@babel/runtime/helpers/setPrototypeOf.js -var require_setPrototypeOf = __commonJS({ - "../node_modules/.pnpm/@babel+runtime@7.22.3/node_modules/@babel/runtime/helpers/setPrototypeOf.js"(exports2, module2) { - function _setPrototypeOf(o, p) { - module2.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) { - o2.__proto__ = p2; - return o2; - }, module2.exports.__esModule = true, module2.exports["default"] = module2.exports; - return _setPrototypeOf(o, p); - } - module2.exports = _setPrototypeOf, module2.exports.__esModule = true, module2.exports["default"] = module2.exports; - } -}); - -// ../node_modules/.pnpm/@babel+runtime@7.22.3/node_modules/@babel/runtime/helpers/inherits.js -var require_inherits = __commonJS({ - "../node_modules/.pnpm/@babel+runtime@7.22.3/node_modules/@babel/runtime/helpers/inherits.js"(exports2, module2) { - var setPrototypeOf = require_setPrototypeOf(); - function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); - } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - writable: true, - configurable: true - } - }); - Object.defineProperty(subClass, "prototype", { - writable: false - }); - if (superClass) - setPrototypeOf(subClass, superClass); - } - module2.exports = _inherits, module2.exports.__esModule = true, module2.exports["default"] = module2.exports; - } -}); - -// ../node_modules/.pnpm/@babel+runtime@7.22.3/node_modules/@babel/runtime/helpers/getPrototypeOf.js -var require_getPrototypeOf = __commonJS({ - "../node_modules/.pnpm/@babel+runtime@7.22.3/node_modules/@babel/runtime/helpers/getPrototypeOf.js"(exports2, module2) { - function _getPrototypeOf(o) { - module2.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) { - return o2.__proto__ || Object.getPrototypeOf(o2); - }, module2.exports.__esModule = true, module2.exports["default"] = module2.exports; - return _getPrototypeOf(o); - } - module2.exports = _getPrototypeOf, module2.exports.__esModule = true, module2.exports["default"] = module2.exports; - } -}); - -// ../node_modules/.pnpm/@babel+runtime@7.22.3/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js -var require_isNativeReflectConstruct = __commonJS({ - "../node_modules/.pnpm/@babel+runtime@7.22.3/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js"(exports2, module2) { - function _isNativeReflectConstruct() { - if (typeof Reflect === "undefined" || !Reflect.construct) - return false; - if (Reflect.construct.sham) - return false; - if (typeof Proxy === "function") - return true; - try { - Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { - })); - return true; - } catch (e) { - return false; - } - } - module2.exports = _isNativeReflectConstruct, module2.exports.__esModule = true, module2.exports["default"] = module2.exports; - } -}); - -// ../node_modules/.pnpm/@babel+runtime@7.22.3/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js -var require_possibleConstructorReturn = __commonJS({ - "../node_modules/.pnpm/@babel+runtime@7.22.3/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"(exports2, module2) { - var _typeof = require_typeof()["default"]; - var assertThisInitialized = require_assertThisInitialized(); - function _possibleConstructorReturn(self2, call) { - if (call && (_typeof(call) === "object" || typeof call === "function")) { - return call; - } else if (call !== void 0) { - throw new TypeError("Derived constructors may only return object or undefined"); - } - return assertThisInitialized(self2); - } - module2.exports = _possibleConstructorReturn, module2.exports.__esModule = true, module2.exports["default"] = module2.exports; - } -}); - -// ../node_modules/.pnpm/@babel+runtime@7.22.3/node_modules/@babel/runtime/helpers/createSuper.js -var require_createSuper = __commonJS({ - "../node_modules/.pnpm/@babel+runtime@7.22.3/node_modules/@babel/runtime/helpers/createSuper.js"(exports2, module2) { - var getPrototypeOf2 = require_getPrototypeOf(); - var isNativeReflectConstruct = require_isNativeReflectConstruct(); - var possibleConstructorReturn = require_possibleConstructorReturn(); - function _createSuper(Derived) { - var hasNativeReflectConstruct = isNativeReflectConstruct(); - return function _createSuperInternal() { - var Super = getPrototypeOf2(Derived), result; - if (hasNativeReflectConstruct) { - var NewTarget = getPrototypeOf2(this).constructor; - result = Reflect.construct(Super, arguments, NewTarget); - } else { - result = Super.apply(this, arguments); - } - return possibleConstructorReturn(this, result); - }; - } - module2.exports = _createSuper, module2.exports.__esModule = true, module2.exports["default"] = module2.exports; - } -}); - -// ../node_modules/.pnpm/@babel+runtime@7.22.3/node_modules/@babel/runtime/helpers/classCallCheck.js -var require_classCallCheck = __commonJS({ - "../node_modules/.pnpm/@babel+runtime@7.22.3/node_modules/@babel/runtime/helpers/classCallCheck.js"(exports2, module2) { - function _classCallCheck(instance2, Constructor) { - if (!(instance2 instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } - } - module2.exports = _classCallCheck, module2.exports.__esModule = true, module2.exports["default"] = module2.exports; - } -}); - -// ../node_modules/.pnpm/@babel+runtime@7.22.3/node_modules/@babel/runtime/helpers/toPrimitive.js -var require_toPrimitive = __commonJS({ - "../node_modules/.pnpm/@babel+runtime@7.22.3/node_modules/@babel/runtime/helpers/toPrimitive.js"(exports2, module2) { - var _typeof = require_typeof()["default"]; - function _toPrimitive(input, hint) { - if (_typeof(input) !== "object" || input === null) - return input; - var prim = input[Symbol.toPrimitive]; - if (prim !== void 0) { - var res = prim.call(input, hint || "default"); - if (_typeof(res) !== "object") - return res; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return (hint === "string" ? String : Number)(input); - } - module2.exports = _toPrimitive, module2.exports.__esModule = true, module2.exports["default"] = module2.exports; - } -}); - -// ../node_modules/.pnpm/@babel+runtime@7.22.3/node_modules/@babel/runtime/helpers/toPropertyKey.js -var require_toPropertyKey = __commonJS({ - "../node_modules/.pnpm/@babel+runtime@7.22.3/node_modules/@babel/runtime/helpers/toPropertyKey.js"(exports2, module2) { - var _typeof = require_typeof()["default"]; - var toPrimitive = require_toPrimitive(); - function _toPropertyKey(arg) { - var key = toPrimitive(arg, "string"); - return _typeof(key) === "symbol" ? key : String(key); - } - module2.exports = _toPropertyKey, module2.exports.__esModule = true, module2.exports["default"] = module2.exports; - } -}); - -// ../node_modules/.pnpm/@babel+runtime@7.22.3/node_modules/@babel/runtime/helpers/createClass.js -var require_createClass = __commonJS({ - "../node_modules/.pnpm/@babel+runtime@7.22.3/node_modules/@babel/runtime/helpers/createClass.js"(exports2, module2) { - var toPropertyKey = require_toPropertyKey(); - function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) - descriptor.writable = true; - Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor); - } - } - function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) - _defineProperties(Constructor.prototype, protoProps); - if (staticProps) - _defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { - writable: false - }); - return Constructor; - } - module2.exports = _createClass, module2.exports.__esModule = true, module2.exports["default"] = module2.exports; - } -}); - -// ../node_modules/.pnpm/@babel+runtime@7.22.3/node_modules/@babel/runtime/helpers/defineProperty.js -var require_defineProperty = __commonJS({ - "../node_modules/.pnpm/@babel+runtime@7.22.3/node_modules/@babel/runtime/helpers/defineProperty.js"(exports2, module2) { - var toPropertyKey = require_toPropertyKey(); - function _defineProperty(obj2, key, value) { - key = toPropertyKey(key); - if (key in obj2) { - Object.defineProperty(obj2, key, { - value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj2[key] = value; - } - return obj2; - } - module2.exports = _defineProperty, module2.exports.__esModule = true, module2.exports["default"] = module2.exports; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/Setter.js -var require_Setter = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/Setter.js"(exports2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.ValueSetter = exports2.Setter = exports2.DateToSystemTimezoneSetter = void 0; - var _assertThisInitialized2 = _interopRequireDefault(require_assertThisInitialized()); - var _inherits2 = _interopRequireDefault(require_inherits()); - var _createSuper2 = _interopRequireDefault(require_createSuper()); - var _classCallCheck2 = _interopRequireDefault(require_classCallCheck()); - var _createClass2 = _interopRequireDefault(require_createClass()); - var _defineProperty2 = _interopRequireDefault(require_defineProperty()); - var TIMEZONE_UNIT_PRIORITY = 10; - var Setter = /* @__PURE__ */ function() { - function Setter2() { - (0, _classCallCheck2.default)(this, Setter2); - (0, _defineProperty2.default)(this, "priority", void 0); - (0, _defineProperty2.default)(this, "subPriority", 0); - } - (0, _createClass2.default)(Setter2, [{ - key: "validate", - value: function validate(_utcDate, _options) { - return true; - } - }]); - return Setter2; - }(); - exports2.Setter = Setter; - var ValueSetter = /* @__PURE__ */ function(_Setter) { - (0, _inherits2.default)(ValueSetter2, _Setter); - var _super = (0, _createSuper2.default)(ValueSetter2); - function ValueSetter2(value, validateValue, setValue2, priority, subPriority) { - var _this; - (0, _classCallCheck2.default)(this, ValueSetter2); - _this = _super.call(this); - _this.value = value; - _this.validateValue = validateValue; - _this.setValue = setValue2; - _this.priority = priority; - if (subPriority) { - _this.subPriority = subPriority; - } - return _this; - } - (0, _createClass2.default)(ValueSetter2, [{ - key: "validate", - value: function validate(utcDate, options2) { - return this.validateValue(utcDate, this.value, options2); - } - }, { - key: "set", - value: function set(utcDate, flags2, options2) { - return this.setValue(utcDate, flags2, this.value, options2); - } - }]); - return ValueSetter2; - }(Setter); - exports2.ValueSetter = ValueSetter; - var DateToSystemTimezoneSetter = /* @__PURE__ */ function(_Setter2) { - (0, _inherits2.default)(DateToSystemTimezoneSetter2, _Setter2); - var _super2 = (0, _createSuper2.default)(DateToSystemTimezoneSetter2); - function DateToSystemTimezoneSetter2() { - var _this2; - (0, _classCallCheck2.default)(this, DateToSystemTimezoneSetter2); - for (var _len = arguments.length, args3 = new Array(_len), _key = 0; _key < _len; _key++) { - args3[_key] = arguments[_key]; - } - _this2 = _super2.call.apply(_super2, [this].concat(args3)); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this2), "priority", TIMEZONE_UNIT_PRIORITY); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this2), "subPriority", -1); - return _this2; - } - (0, _createClass2.default)(DateToSystemTimezoneSetter2, [{ - key: "set", - value: function set(date, flags2) { - if (flags2.timestampIsSet) { - return date; - } - var convertedDate = /* @__PURE__ */ new Date(0); - convertedDate.setFullYear(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate()); - convertedDate.setHours(date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds(), date.getUTCMilliseconds()); - return convertedDate; - } - }]); - return DateToSystemTimezoneSetter2; - }(Setter); - exports2.DateToSystemTimezoneSetter = DateToSystemTimezoneSetter; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/Parser.js -var require_Parser = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/Parser.js"(exports2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.Parser = void 0; - var _classCallCheck2 = _interopRequireDefault(require_classCallCheck()); - var _createClass2 = _interopRequireDefault(require_createClass()); - var _defineProperty2 = _interopRequireDefault(require_defineProperty()); - var _Setter = require_Setter(); - var Parser3 = /* @__PURE__ */ function() { - function Parser4() { - (0, _classCallCheck2.default)(this, Parser4); - (0, _defineProperty2.default)(this, "incompatibleTokens", void 0); - (0, _defineProperty2.default)(this, "priority", void 0); - (0, _defineProperty2.default)(this, "subPriority", void 0); - } - (0, _createClass2.default)(Parser4, [{ - key: "run", - value: function run2(dateString, token, match2, options2) { - var result = this.parse(dateString, token, match2, options2); - if (!result) { - return null; - } - return { - setter: new _Setter.ValueSetter(result.value, this.validate, this.set, this.priority, this.subPriority), - rest: result.rest - }; - } - }, { - key: "validate", - value: function validate(_utcDate, _value, _options) { - return true; - } - }]); - return Parser4; - }(); - exports2.Parser = Parser3; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/EraParser.js -var require_EraParser = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/EraParser.js"(exports2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.EraParser = void 0; - var _classCallCheck2 = _interopRequireDefault(require_classCallCheck()); - var _createClass2 = _interopRequireDefault(require_createClass()); - var _assertThisInitialized2 = _interopRequireDefault(require_assertThisInitialized()); - var _inherits2 = _interopRequireDefault(require_inherits()); - var _createSuper2 = _interopRequireDefault(require_createSuper()); - var _defineProperty2 = _interopRequireDefault(require_defineProperty()); - var _Parser2 = require_Parser(); - var EraParser = /* @__PURE__ */ function(_Parser3) { - (0, _inherits2.default)(EraParser2, _Parser3); - var _super = (0, _createSuper2.default)(EraParser2); - function EraParser2() { - var _this; - (0, _classCallCheck2.default)(this, EraParser2); - for (var _len = arguments.length, args3 = new Array(_len), _key = 0; _key < _len; _key++) { - args3[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args3)); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "priority", 140); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "incompatibleTokens", ["R", "u", "t", "T"]); - return _this; - } - (0, _createClass2.default)(EraParser2, [{ - key: "parse", - value: function parse7(dateString, token, match2) { - switch (token) { - case "G": - case "GG": - case "GGG": - return match2.era(dateString, { - width: "abbreviated" - }) || match2.era(dateString, { - width: "narrow" - }); - case "GGGGG": - return match2.era(dateString, { - width: "narrow" - }); - case "GGGG": - default: - return match2.era(dateString, { - width: "wide" - }) || match2.era(dateString, { - width: "abbreviated" - }) || match2.era(dateString, { - width: "narrow" - }); - } - } - }, { - key: "set", - value: function set(date, flags2, value) { - flags2.era = value; - date.setUTCFullYear(value, 0, 1); - date.setUTCHours(0, 0, 0, 0); - return date; - } - }]); - return EraParser2; - }(_Parser2.Parser); - exports2.EraParser = EraParser; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/constants.js -var require_constants2 = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/constants.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.timezonePatterns = exports2.numericPatterns = void 0; - var numericPatterns = { - month: /^(1[0-2]|0?\d)/, - // 0 to 12 - date: /^(3[0-1]|[0-2]?\d)/, - // 0 to 31 - dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/, - // 0 to 366 - week: /^(5[0-3]|[0-4]?\d)/, - // 0 to 53 - hour23h: /^(2[0-3]|[0-1]?\d)/, - // 0 to 23 - hour24h: /^(2[0-4]|[0-1]?\d)/, - // 0 to 24 - hour11h: /^(1[0-1]|0?\d)/, - // 0 to 11 - hour12h: /^(1[0-2]|0?\d)/, - // 0 to 12 - minute: /^[0-5]?\d/, - // 0 to 59 - second: /^[0-5]?\d/, - // 0 to 59 - singleDigit: /^\d/, - // 0 to 9 - twoDigits: /^\d{1,2}/, - // 0 to 99 - threeDigits: /^\d{1,3}/, - // 0 to 999 - fourDigits: /^\d{1,4}/, - // 0 to 9999 - anyDigitsSigned: /^-?\d+/, - singleDigitSigned: /^-?\d/, - // 0 to 9, -0 to -9 - twoDigitsSigned: /^-?\d{1,2}/, - // 0 to 99, -0 to -99 - threeDigitsSigned: /^-?\d{1,3}/, - // 0 to 999, -0 to -999 - fourDigitsSigned: /^-?\d{1,4}/ - // 0 to 9999, -0 to -9999 - }; - exports2.numericPatterns = numericPatterns; - var timezonePatterns = { - basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/, - basic: /^([+-])(\d{2})(\d{2})|Z/, - basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/, - extended: /^([+-])(\d{2}):(\d{2})|Z/, - extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/ - }; - exports2.timezonePatterns = timezonePatterns; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/utils.js -var require_utils = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/utils.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.dayPeriodEnumToHours = dayPeriodEnumToHours; - exports2.isLeapYearIndex = isLeapYearIndex; - exports2.mapValue = mapValue; - exports2.normalizeTwoDigitYear = normalizeTwoDigitYear; - exports2.parseAnyDigitsSigned = parseAnyDigitsSigned; - exports2.parseNDigits = parseNDigits; - exports2.parseNDigitsSigned = parseNDigitsSigned; - exports2.parseNumericPattern = parseNumericPattern; - exports2.parseTimezonePattern = parseTimezonePattern; - var _index = require_constants(); - var _constants = require_constants2(); - function mapValue(parseFnResult, mapFn) { - if (!parseFnResult) { - return parseFnResult; - } - return { - value: mapFn(parseFnResult.value), - rest: parseFnResult.rest - }; - } - function parseNumericPattern(pattern, dateString) { - var matchResult = dateString.match(pattern); - if (!matchResult) { - return null; - } - return { - value: parseInt(matchResult[0], 10), - rest: dateString.slice(matchResult[0].length) - }; - } - function parseTimezonePattern(pattern, dateString) { - var matchResult = dateString.match(pattern); - if (!matchResult) { - return null; - } - if (matchResult[0] === "Z") { - return { - value: 0, - rest: dateString.slice(1) - }; - } - var sign = matchResult[1] === "+" ? 1 : -1; - var hours = matchResult[2] ? parseInt(matchResult[2], 10) : 0; - var minutes = matchResult[3] ? parseInt(matchResult[3], 10) : 0; - var seconds = matchResult[5] ? parseInt(matchResult[5], 10) : 0; - return { - value: sign * (hours * _index.millisecondsInHour + minutes * _index.millisecondsInMinute + seconds * _index.millisecondsInSecond), - rest: dateString.slice(matchResult[0].length) - }; - } - function parseAnyDigitsSigned(dateString) { - return parseNumericPattern(_constants.numericPatterns.anyDigitsSigned, dateString); - } - function parseNDigits(n, dateString) { - switch (n) { - case 1: - return parseNumericPattern(_constants.numericPatterns.singleDigit, dateString); - case 2: - return parseNumericPattern(_constants.numericPatterns.twoDigits, dateString); - case 3: - return parseNumericPattern(_constants.numericPatterns.threeDigits, dateString); - case 4: - return parseNumericPattern(_constants.numericPatterns.fourDigits, dateString); - default: - return parseNumericPattern(new RegExp("^\\d{1," + n + "}"), dateString); - } - } - function parseNDigitsSigned(n, dateString) { - switch (n) { - case 1: - return parseNumericPattern(_constants.numericPatterns.singleDigitSigned, dateString); - case 2: - return parseNumericPattern(_constants.numericPatterns.twoDigitsSigned, dateString); - case 3: - return parseNumericPattern(_constants.numericPatterns.threeDigitsSigned, dateString); - case 4: - return parseNumericPattern(_constants.numericPatterns.fourDigitsSigned, dateString); - default: - return parseNumericPattern(new RegExp("^-?\\d{1," + n + "}"), dateString); - } - } - function dayPeriodEnumToHours(dayPeriod) { - switch (dayPeriod) { - case "morning": - return 4; - case "evening": - return 17; - case "pm": - case "noon": - case "afternoon": - return 12; - case "am": - case "midnight": - case "night": - default: - return 0; - } - } - function normalizeTwoDigitYear(twoDigitYear, currentYear) { - var isCommonEra = currentYear > 0; - var absCurrentYear = isCommonEra ? currentYear : 1 - currentYear; - var result; - if (absCurrentYear <= 50) { - result = twoDigitYear || 100; - } else { - var rangeEnd = absCurrentYear + 50; - var rangeEndCentury = Math.floor(rangeEnd / 100) * 100; - var isPreviousCentury = twoDigitYear >= rangeEnd % 100; - result = twoDigitYear + rangeEndCentury - (isPreviousCentury ? 100 : 0); - } - return isCommonEra ? result : 1 - result; - } - function isLeapYearIndex(year) { - return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0; - } - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/YearParser.js -var require_YearParser = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/YearParser.js"(exports2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.YearParser = void 0; - var _classCallCheck2 = _interopRequireDefault(require_classCallCheck()); - var _createClass2 = _interopRequireDefault(require_createClass()); - var _assertThisInitialized2 = _interopRequireDefault(require_assertThisInitialized()); - var _inherits2 = _interopRequireDefault(require_inherits()); - var _createSuper2 = _interopRequireDefault(require_createSuper()); - var _defineProperty2 = _interopRequireDefault(require_defineProperty()); - var _Parser2 = require_Parser(); - var _utils = require_utils(); - var YearParser = /* @__PURE__ */ function(_Parser3) { - (0, _inherits2.default)(YearParser2, _Parser3); - var _super = (0, _createSuper2.default)(YearParser2); - function YearParser2() { - var _this; - (0, _classCallCheck2.default)(this, YearParser2); - for (var _len = arguments.length, args3 = new Array(_len), _key = 0; _key < _len; _key++) { - args3[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args3)); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "priority", 130); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "incompatibleTokens", ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"]); - return _this; - } - (0, _createClass2.default)(YearParser2, [{ - key: "parse", - value: function parse7(dateString, token, match2) { - var valueCallback = function valueCallback2(year) { - return { - year, - isTwoDigitYear: token === "yy" - }; - }; - switch (token) { - case "y": - return (0, _utils.mapValue)((0, _utils.parseNDigits)(4, dateString), valueCallback); - case "yo": - return (0, _utils.mapValue)(match2.ordinalNumber(dateString, { - unit: "year" - }), valueCallback); - default: - return (0, _utils.mapValue)((0, _utils.parseNDigits)(token.length, dateString), valueCallback); - } - } - }, { - key: "validate", - value: function validate(_date, value) { - return value.isTwoDigitYear || value.year > 0; - } - }, { - key: "set", - value: function set(date, flags2, value) { - var currentYear = date.getUTCFullYear(); - if (value.isTwoDigitYear) { - var normalizedTwoDigitYear = (0, _utils.normalizeTwoDigitYear)(value.year, currentYear); - date.setUTCFullYear(normalizedTwoDigitYear, 0, 1); - date.setUTCHours(0, 0, 0, 0); - return date; - } - var year = !("era" in flags2) || flags2.era === 1 ? value.year : 1 - value.year; - date.setUTCFullYear(year, 0, 1); - date.setUTCHours(0, 0, 0, 0); - return date; - } - }]); - return YearParser2; - }(_Parser2.Parser); - exports2.YearParser = YearParser; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js -var require_LocalWeekYearParser = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js"(exports2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.LocalWeekYearParser = void 0; - var _classCallCheck2 = _interopRequireDefault(require_classCallCheck()); - var _createClass2 = _interopRequireDefault(require_createClass()); - var _assertThisInitialized2 = _interopRequireDefault(require_assertThisInitialized()); - var _inherits2 = _interopRequireDefault(require_inherits()); - var _createSuper2 = _interopRequireDefault(require_createSuper()); - var _defineProperty2 = _interopRequireDefault(require_defineProperty()); - var _Parser2 = require_Parser(); - var _utils = require_utils(); - var _index = _interopRequireDefault(require_getUTCWeekYear()); - var _index2 = _interopRequireDefault(require_startOfUTCWeek()); - var LocalWeekYearParser = /* @__PURE__ */ function(_Parser3) { - (0, _inherits2.default)(LocalWeekYearParser2, _Parser3); - var _super = (0, _createSuper2.default)(LocalWeekYearParser2); - function LocalWeekYearParser2() { - var _this; - (0, _classCallCheck2.default)(this, LocalWeekYearParser2); - for (var _len = arguments.length, args3 = new Array(_len), _key = 0; _key < _len; _key++) { - args3[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args3)); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "priority", 130); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "incompatibleTokens", ["y", "R", "u", "Q", "q", "M", "L", "I", "d", "D", "i", "t", "T"]); - return _this; - } - (0, _createClass2.default)(LocalWeekYearParser2, [{ - key: "parse", - value: function parse7(dateString, token, match2) { - var valueCallback = function valueCallback2(year) { - return { - year, - isTwoDigitYear: token === "YY" - }; - }; - switch (token) { - case "Y": - return (0, _utils.mapValue)((0, _utils.parseNDigits)(4, dateString), valueCallback); - case "Yo": - return (0, _utils.mapValue)(match2.ordinalNumber(dateString, { - unit: "year" - }), valueCallback); - default: - return (0, _utils.mapValue)((0, _utils.parseNDigits)(token.length, dateString), valueCallback); - } - } - }, { - key: "validate", - value: function validate(_date, value) { - return value.isTwoDigitYear || value.year > 0; - } - }, { - key: "set", - value: function set(date, flags2, value, options2) { - var currentYear = (0, _index.default)(date, options2); - if (value.isTwoDigitYear) { - var normalizedTwoDigitYear = (0, _utils.normalizeTwoDigitYear)(value.year, currentYear); - date.setUTCFullYear(normalizedTwoDigitYear, 0, options2.firstWeekContainsDate); - date.setUTCHours(0, 0, 0, 0); - return (0, _index2.default)(date, options2); - } - var year = !("era" in flags2) || flags2.era === 1 ? value.year : 1 - value.year; - date.setUTCFullYear(year, 0, options2.firstWeekContainsDate); - date.setUTCHours(0, 0, 0, 0); - return (0, _index2.default)(date, options2); - } - }]); - return LocalWeekYearParser2; - }(_Parser2.Parser); - exports2.LocalWeekYearParser = LocalWeekYearParser; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js -var require_ISOWeekYearParser = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js"(exports2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.ISOWeekYearParser = void 0; - var _classCallCheck2 = _interopRequireDefault(require_classCallCheck()); - var _createClass2 = _interopRequireDefault(require_createClass()); - var _assertThisInitialized2 = _interopRequireDefault(require_assertThisInitialized()); - var _inherits2 = _interopRequireDefault(require_inherits()); - var _createSuper2 = _interopRequireDefault(require_createSuper()); - var _defineProperty2 = _interopRequireDefault(require_defineProperty()); - var _Parser2 = require_Parser(); - var _utils = require_utils(); - var _index = _interopRequireDefault(require_startOfUTCISOWeek()); - var ISOWeekYearParser = /* @__PURE__ */ function(_Parser3) { - (0, _inherits2.default)(ISOWeekYearParser2, _Parser3); - var _super = (0, _createSuper2.default)(ISOWeekYearParser2); - function ISOWeekYearParser2() { - var _this; - (0, _classCallCheck2.default)(this, ISOWeekYearParser2); - for (var _len = arguments.length, args3 = new Array(_len), _key = 0; _key < _len; _key++) { - args3[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args3)); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "priority", 130); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "incompatibleTokens", ["G", "y", "Y", "u", "Q", "q", "M", "L", "w", "d", "D", "e", "c", "t", "T"]); - return _this; - } - (0, _createClass2.default)(ISOWeekYearParser2, [{ - key: "parse", - value: function parse7(dateString, token) { - if (token === "R") { - return (0, _utils.parseNDigitsSigned)(4, dateString); - } - return (0, _utils.parseNDigitsSigned)(token.length, dateString); - } - }, { - key: "set", - value: function set(_date, _flags, value) { - var firstWeekOfYear = /* @__PURE__ */ new Date(0); - firstWeekOfYear.setUTCFullYear(value, 0, 4); - firstWeekOfYear.setUTCHours(0, 0, 0, 0); - return (0, _index.default)(firstWeekOfYear); - } - }]); - return ISOWeekYearParser2; - }(_Parser2.Parser); - exports2.ISOWeekYearParser = ISOWeekYearParser; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js -var require_ExtendedYearParser = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js"(exports2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.ExtendedYearParser = void 0; - var _classCallCheck2 = _interopRequireDefault(require_classCallCheck()); - var _createClass2 = _interopRequireDefault(require_createClass()); - var _assertThisInitialized2 = _interopRequireDefault(require_assertThisInitialized()); - var _inherits2 = _interopRequireDefault(require_inherits()); - var _createSuper2 = _interopRequireDefault(require_createSuper()); - var _defineProperty2 = _interopRequireDefault(require_defineProperty()); - var _Parser2 = require_Parser(); - var _utils = require_utils(); - var ExtendedYearParser = /* @__PURE__ */ function(_Parser3) { - (0, _inherits2.default)(ExtendedYearParser2, _Parser3); - var _super = (0, _createSuper2.default)(ExtendedYearParser2); - function ExtendedYearParser2() { - var _this; - (0, _classCallCheck2.default)(this, ExtendedYearParser2); - for (var _len = arguments.length, args3 = new Array(_len), _key = 0; _key < _len; _key++) { - args3[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args3)); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "priority", 130); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]); - return _this; - } - (0, _createClass2.default)(ExtendedYearParser2, [{ - key: "parse", - value: function parse7(dateString, token) { - if (token === "u") { - return (0, _utils.parseNDigitsSigned)(4, dateString); - } - return (0, _utils.parseNDigitsSigned)(token.length, dateString); - } - }, { - key: "set", - value: function set(date, _flags, value) { - date.setUTCFullYear(value, 0, 1); - date.setUTCHours(0, 0, 0, 0); - return date; - } - }]); - return ExtendedYearParser2; - }(_Parser2.Parser); - exports2.ExtendedYearParser = ExtendedYearParser; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js -var require_QuarterParser = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js"(exports2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.QuarterParser = void 0; - var _classCallCheck2 = _interopRequireDefault(require_classCallCheck()); - var _createClass2 = _interopRequireDefault(require_createClass()); - var _assertThisInitialized2 = _interopRequireDefault(require_assertThisInitialized()); - var _inherits2 = _interopRequireDefault(require_inherits()); - var _createSuper2 = _interopRequireDefault(require_createSuper()); - var _defineProperty2 = _interopRequireDefault(require_defineProperty()); - var _Parser2 = require_Parser(); - var _utils = require_utils(); - var QuarterParser = /* @__PURE__ */ function(_Parser3) { - (0, _inherits2.default)(QuarterParser2, _Parser3); - var _super = (0, _createSuper2.default)(QuarterParser2); - function QuarterParser2() { - var _this; - (0, _classCallCheck2.default)(this, QuarterParser2); - for (var _len = arguments.length, args3 = new Array(_len), _key = 0; _key < _len; _key++) { - args3[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args3)); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "priority", 120); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "incompatibleTokens", ["Y", "R", "q", "M", "L", "w", "I", "d", "D", "i", "e", "c", "t", "T"]); - return _this; - } - (0, _createClass2.default)(QuarterParser2, [{ - key: "parse", - value: function parse7(dateString, token, match2) { - switch (token) { - case "Q": - case "QQ": - return (0, _utils.parseNDigits)(token.length, dateString); - case "Qo": - return match2.ordinalNumber(dateString, { - unit: "quarter" - }); - case "QQQ": - return match2.quarter(dateString, { - width: "abbreviated", - context: "formatting" - }) || match2.quarter(dateString, { - width: "narrow", - context: "formatting" - }); - case "QQQQQ": - return match2.quarter(dateString, { - width: "narrow", - context: "formatting" - }); - case "QQQQ": - default: - return match2.quarter(dateString, { - width: "wide", - context: "formatting" - }) || match2.quarter(dateString, { - width: "abbreviated", - context: "formatting" - }) || match2.quarter(dateString, { - width: "narrow", - context: "formatting" - }); - } - } - }, { - key: "validate", - value: function validate(_date, value) { - return value >= 1 && value <= 4; - } - }, { - key: "set", - value: function set(date, _flags, value) { - date.setUTCMonth((value - 1) * 3, 1); - date.setUTCHours(0, 0, 0, 0); - return date; - } - }]); - return QuarterParser2; - }(_Parser2.Parser); - exports2.QuarterParser = QuarterParser; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js -var require_StandAloneQuarterParser = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js"(exports2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.StandAloneQuarterParser = void 0; - var _classCallCheck2 = _interopRequireDefault(require_classCallCheck()); - var _createClass2 = _interopRequireDefault(require_createClass()); - var _assertThisInitialized2 = _interopRequireDefault(require_assertThisInitialized()); - var _inherits2 = _interopRequireDefault(require_inherits()); - var _createSuper2 = _interopRequireDefault(require_createSuper()); - var _defineProperty2 = _interopRequireDefault(require_defineProperty()); - var _Parser2 = require_Parser(); - var _utils = require_utils(); - var StandAloneQuarterParser = /* @__PURE__ */ function(_Parser3) { - (0, _inherits2.default)(StandAloneQuarterParser2, _Parser3); - var _super = (0, _createSuper2.default)(StandAloneQuarterParser2); - function StandAloneQuarterParser2() { - var _this; - (0, _classCallCheck2.default)(this, StandAloneQuarterParser2); - for (var _len = arguments.length, args3 = new Array(_len), _key = 0; _key < _len; _key++) { - args3[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args3)); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "priority", 120); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "incompatibleTokens", ["Y", "R", "Q", "M", "L", "w", "I", "d", "D", "i", "e", "c", "t", "T"]); - return _this; - } - (0, _createClass2.default)(StandAloneQuarterParser2, [{ - key: "parse", - value: function parse7(dateString, token, match2) { - switch (token) { - case "q": - case "qq": - return (0, _utils.parseNDigits)(token.length, dateString); - case "qo": - return match2.ordinalNumber(dateString, { - unit: "quarter" - }); - case "qqq": - return match2.quarter(dateString, { - width: "abbreviated", - context: "standalone" - }) || match2.quarter(dateString, { - width: "narrow", - context: "standalone" - }); - case "qqqqq": - return match2.quarter(dateString, { - width: "narrow", - context: "standalone" - }); - case "qqqq": - default: - return match2.quarter(dateString, { - width: "wide", - context: "standalone" - }) || match2.quarter(dateString, { - width: "abbreviated", - context: "standalone" - }) || match2.quarter(dateString, { - width: "narrow", - context: "standalone" - }); - } - } - }, { - key: "validate", - value: function validate(_date, value) { - return value >= 1 && value <= 4; - } - }, { - key: "set", - value: function set(date, _flags, value) { - date.setUTCMonth((value - 1) * 3, 1); - date.setUTCHours(0, 0, 0, 0); - return date; - } - }]); - return StandAloneQuarterParser2; - }(_Parser2.Parser); - exports2.StandAloneQuarterParser = StandAloneQuarterParser; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/MonthParser.js -var require_MonthParser = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/MonthParser.js"(exports2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.MonthParser = void 0; - var _classCallCheck2 = _interopRequireDefault(require_classCallCheck()); - var _createClass2 = _interopRequireDefault(require_createClass()); - var _assertThisInitialized2 = _interopRequireDefault(require_assertThisInitialized()); - var _inherits2 = _interopRequireDefault(require_inherits()); - var _createSuper2 = _interopRequireDefault(require_createSuper()); - var _defineProperty2 = _interopRequireDefault(require_defineProperty()); - var _utils = require_utils(); - var _Parser2 = require_Parser(); - var _constants = require_constants2(); - var MonthParser = /* @__PURE__ */ function(_Parser3) { - (0, _inherits2.default)(MonthParser2, _Parser3); - var _super = (0, _createSuper2.default)(MonthParser2); - function MonthParser2() { - var _this; - (0, _classCallCheck2.default)(this, MonthParser2); - for (var _len = arguments.length, args3 = new Array(_len), _key = 0; _key < _len; _key++) { - args3[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args3)); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "incompatibleTokens", ["Y", "R", "q", "Q", "L", "w", "I", "D", "i", "e", "c", "t", "T"]); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "priority", 110); - return _this; - } - (0, _createClass2.default)(MonthParser2, [{ - key: "parse", - value: function parse7(dateString, token, match2) { - var valueCallback = function valueCallback2(value) { - return value - 1; - }; - switch (token) { - case "M": - return (0, _utils.mapValue)((0, _utils.parseNumericPattern)(_constants.numericPatterns.month, dateString), valueCallback); - case "MM": - return (0, _utils.mapValue)((0, _utils.parseNDigits)(2, dateString), valueCallback); - case "Mo": - return (0, _utils.mapValue)(match2.ordinalNumber(dateString, { - unit: "month" - }), valueCallback); - case "MMM": - return match2.month(dateString, { - width: "abbreviated", - context: "formatting" - }) || match2.month(dateString, { - width: "narrow", - context: "formatting" - }); - case "MMMMM": - return match2.month(dateString, { - width: "narrow", - context: "formatting" - }); - case "MMMM": - default: - return match2.month(dateString, { - width: "wide", - context: "formatting" - }) || match2.month(dateString, { - width: "abbreviated", - context: "formatting" - }) || match2.month(dateString, { - width: "narrow", - context: "formatting" - }); - } - } - }, { - key: "validate", - value: function validate(_date, value) { - return value >= 0 && value <= 11; - } - }, { - key: "set", - value: function set(date, _flags, value) { - date.setUTCMonth(value, 1); - date.setUTCHours(0, 0, 0, 0); - return date; - } - }]); - return MonthParser2; - }(_Parser2.Parser); - exports2.MonthParser = MonthParser; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js -var require_StandAloneMonthParser = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js"(exports2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.StandAloneMonthParser = void 0; - var _classCallCheck2 = _interopRequireDefault(require_classCallCheck()); - var _createClass2 = _interopRequireDefault(require_createClass()); - var _assertThisInitialized2 = _interopRequireDefault(require_assertThisInitialized()); - var _inherits2 = _interopRequireDefault(require_inherits()); - var _createSuper2 = _interopRequireDefault(require_createSuper()); - var _defineProperty2 = _interopRequireDefault(require_defineProperty()); - var _Parser2 = require_Parser(); - var _constants = require_constants2(); - var _utils = require_utils(); - var StandAloneMonthParser = /* @__PURE__ */ function(_Parser3) { - (0, _inherits2.default)(StandAloneMonthParser2, _Parser3); - var _super = (0, _createSuper2.default)(StandAloneMonthParser2); - function StandAloneMonthParser2() { - var _this; - (0, _classCallCheck2.default)(this, StandAloneMonthParser2); - for (var _len = arguments.length, args3 = new Array(_len), _key = 0; _key < _len; _key++) { - args3[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args3)); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "priority", 110); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "incompatibleTokens", ["Y", "R", "q", "Q", "M", "w", "I", "D", "i", "e", "c", "t", "T"]); - return _this; - } - (0, _createClass2.default)(StandAloneMonthParser2, [{ - key: "parse", - value: function parse7(dateString, token, match2) { - var valueCallback = function valueCallback2(value) { - return value - 1; - }; - switch (token) { - case "L": - return (0, _utils.mapValue)((0, _utils.parseNumericPattern)(_constants.numericPatterns.month, dateString), valueCallback); - case "LL": - return (0, _utils.mapValue)((0, _utils.parseNDigits)(2, dateString), valueCallback); - case "Lo": - return (0, _utils.mapValue)(match2.ordinalNumber(dateString, { - unit: "month" - }), valueCallback); - case "LLL": - return match2.month(dateString, { - width: "abbreviated", - context: "standalone" - }) || match2.month(dateString, { - width: "narrow", - context: "standalone" - }); - case "LLLLL": - return match2.month(dateString, { - width: "narrow", - context: "standalone" - }); - case "LLLL": - default: - return match2.month(dateString, { - width: "wide", - context: "standalone" - }) || match2.month(dateString, { - width: "abbreviated", - context: "standalone" - }) || match2.month(dateString, { - width: "narrow", - context: "standalone" - }); - } - } - }, { - key: "validate", - value: function validate(_date, value) { - return value >= 0 && value <= 11; - } - }, { - key: "set", - value: function set(date, _flags, value) { - date.setUTCMonth(value, 1); - date.setUTCHours(0, 0, 0, 0); - return date; - } - }]); - return StandAloneMonthParser2; - }(_Parser2.Parser); - exports2.StandAloneMonthParser = StandAloneMonthParser; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/setUTCWeek/index.js -var require_setUTCWeek = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/setUTCWeek/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = setUTCWeek; - var _index = _interopRequireDefault(require_toInteger()); - var _index2 = _interopRequireDefault(require_toDate()); - var _index3 = _interopRequireDefault(require_getUTCWeek()); - var _index4 = _interopRequireDefault(require_requiredArgs()); - function setUTCWeek(dirtyDate, dirtyWeek, options2) { - (0, _index4.default)(2, arguments); - var date = (0, _index2.default)(dirtyDate); - var week = (0, _index.default)(dirtyWeek); - var diff2 = (0, _index3.default)(date, options2) - week; - date.setUTCDate(date.getUTCDate() - diff2 * 7); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js -var require_LocalWeekParser = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js"(exports2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.LocalWeekParser = void 0; - var _classCallCheck2 = _interopRequireDefault(require_classCallCheck()); - var _createClass2 = _interopRequireDefault(require_createClass()); - var _assertThisInitialized2 = _interopRequireDefault(require_assertThisInitialized()); - var _inherits2 = _interopRequireDefault(require_inherits()); - var _createSuper2 = _interopRequireDefault(require_createSuper()); - var _defineProperty2 = _interopRequireDefault(require_defineProperty()); - var _Parser2 = require_Parser(); - var _constants = require_constants2(); - var _utils = require_utils(); - var _index = _interopRequireDefault(require_setUTCWeek()); - var _index2 = _interopRequireDefault(require_startOfUTCWeek()); - var LocalWeekParser = /* @__PURE__ */ function(_Parser3) { - (0, _inherits2.default)(LocalWeekParser2, _Parser3); - var _super = (0, _createSuper2.default)(LocalWeekParser2); - function LocalWeekParser2() { - var _this; - (0, _classCallCheck2.default)(this, LocalWeekParser2); - for (var _len = arguments.length, args3 = new Array(_len), _key = 0; _key < _len; _key++) { - args3[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args3)); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "priority", 100); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "i", "t", "T"]); - return _this; - } - (0, _createClass2.default)(LocalWeekParser2, [{ - key: "parse", - value: function parse7(dateString, token, match2) { - switch (token) { - case "w": - return (0, _utils.parseNumericPattern)(_constants.numericPatterns.week, dateString); - case "wo": - return match2.ordinalNumber(dateString, { - unit: "week" - }); - default: - return (0, _utils.parseNDigits)(token.length, dateString); - } - } - }, { - key: "validate", - value: function validate(_date, value) { - return value >= 1 && value <= 53; - } - }, { - key: "set", - value: function set(date, _flags, value, options2) { - return (0, _index2.default)((0, _index.default)(date, value, options2), options2); - } - }]); - return LocalWeekParser2; - }(_Parser2.Parser); - exports2.LocalWeekParser = LocalWeekParser; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/setUTCISOWeek/index.js -var require_setUTCISOWeek = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/setUTCISOWeek/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = setUTCISOWeek; - var _index = _interopRequireDefault(require_toInteger()); - var _index2 = _interopRequireDefault(require_toDate()); - var _index3 = _interopRequireDefault(require_getUTCISOWeek()); - var _index4 = _interopRequireDefault(require_requiredArgs()); - function setUTCISOWeek(dirtyDate, dirtyISOWeek) { - (0, _index4.default)(2, arguments); - var date = (0, _index2.default)(dirtyDate); - var isoWeek = (0, _index.default)(dirtyISOWeek); - var diff2 = (0, _index3.default)(date) - isoWeek; - date.setUTCDate(date.getUTCDate() - diff2 * 7); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js -var require_ISOWeekParser = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js"(exports2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.ISOWeekParser = void 0; - var _classCallCheck2 = _interopRequireDefault(require_classCallCheck()); - var _createClass2 = _interopRequireDefault(require_createClass()); - var _assertThisInitialized2 = _interopRequireDefault(require_assertThisInitialized()); - var _inherits2 = _interopRequireDefault(require_inherits()); - var _createSuper2 = _interopRequireDefault(require_createSuper()); - var _defineProperty2 = _interopRequireDefault(require_defineProperty()); - var _Parser2 = require_Parser(); - var _constants = require_constants2(); - var _utils = require_utils(); - var _index = _interopRequireDefault(require_setUTCISOWeek()); - var _index2 = _interopRequireDefault(require_startOfUTCISOWeek()); - var ISOWeekParser = /* @__PURE__ */ function(_Parser3) { - (0, _inherits2.default)(ISOWeekParser2, _Parser3); - var _super = (0, _createSuper2.default)(ISOWeekParser2); - function ISOWeekParser2() { - var _this; - (0, _classCallCheck2.default)(this, ISOWeekParser2); - for (var _len = arguments.length, args3 = new Array(_len), _key = 0; _key < _len; _key++) { - args3[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args3)); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "priority", 100); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "incompatibleTokens", ["y", "Y", "u", "q", "Q", "M", "L", "w", "d", "D", "e", "c", "t", "T"]); - return _this; - } - (0, _createClass2.default)(ISOWeekParser2, [{ - key: "parse", - value: function parse7(dateString, token, match2) { - switch (token) { - case "I": - return (0, _utils.parseNumericPattern)(_constants.numericPatterns.week, dateString); - case "Io": - return match2.ordinalNumber(dateString, { - unit: "week" - }); - default: - return (0, _utils.parseNDigits)(token.length, dateString); - } - } - }, { - key: "validate", - value: function validate(_date, value) { - return value >= 1 && value <= 53; - } - }, { - key: "set", - value: function set(date, _flags, value) { - return (0, _index2.default)((0, _index.default)(date, value)); - } - }]); - return ISOWeekParser2; - }(_Parser2.Parser); - exports2.ISOWeekParser = ISOWeekParser; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/DateParser.js -var require_DateParser = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/DateParser.js"(exports2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.DateParser = void 0; - var _classCallCheck2 = _interopRequireDefault(require_classCallCheck()); - var _createClass2 = _interopRequireDefault(require_createClass()); - var _assertThisInitialized2 = _interopRequireDefault(require_assertThisInitialized()); - var _inherits2 = _interopRequireDefault(require_inherits()); - var _createSuper2 = _interopRequireDefault(require_createSuper()); - var _defineProperty2 = _interopRequireDefault(require_defineProperty()); - var _utils = require_utils(); - var _Parser2 = require_Parser(); - var _constants = require_constants2(); - var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; - var DAYS_IN_MONTH_LEAP_YEAR = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; - var DateParser = /* @__PURE__ */ function(_Parser3) { - (0, _inherits2.default)(DateParser2, _Parser3); - var _super = (0, _createSuper2.default)(DateParser2); - function DateParser2() { - var _this; - (0, _classCallCheck2.default)(this, DateParser2); - for (var _len = arguments.length, args3 = new Array(_len), _key = 0; _key < _len; _key++) { - args3[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args3)); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "priority", 90); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "subPriority", 1); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "incompatibleTokens", ["Y", "R", "q", "Q", "w", "I", "D", "i", "e", "c", "t", "T"]); - return _this; - } - (0, _createClass2.default)(DateParser2, [{ - key: "parse", - value: function parse7(dateString, token, match2) { - switch (token) { - case "d": - return (0, _utils.parseNumericPattern)(_constants.numericPatterns.date, dateString); - case "do": - return match2.ordinalNumber(dateString, { - unit: "date" - }); - default: - return (0, _utils.parseNDigits)(token.length, dateString); - } - } - }, { - key: "validate", - value: function validate(date, value) { - var year = date.getUTCFullYear(); - var isLeapYear = (0, _utils.isLeapYearIndex)(year); - var month = date.getUTCMonth(); - if (isLeapYear) { - return value >= 1 && value <= DAYS_IN_MONTH_LEAP_YEAR[month]; - } else { - return value >= 1 && value <= DAYS_IN_MONTH[month]; - } - } - }, { - key: "set", - value: function set(date, _flags, value) { - date.setUTCDate(value); - date.setUTCHours(0, 0, 0, 0); - return date; - } - }]); - return DateParser2; - }(_Parser2.Parser); - exports2.DateParser = DateParser; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js -var require_DayOfYearParser = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js"(exports2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.DayOfYearParser = void 0; - var _classCallCheck2 = _interopRequireDefault(require_classCallCheck()); - var _createClass2 = _interopRequireDefault(require_createClass()); - var _assertThisInitialized2 = _interopRequireDefault(require_assertThisInitialized()); - var _inherits2 = _interopRequireDefault(require_inherits()); - var _createSuper2 = _interopRequireDefault(require_createSuper()); - var _defineProperty2 = _interopRequireDefault(require_defineProperty()); - var _Parser2 = require_Parser(); - var _constants = require_constants2(); - var _utils = require_utils(); - var DayOfYearParser = /* @__PURE__ */ function(_Parser3) { - (0, _inherits2.default)(DayOfYearParser2, _Parser3); - var _super = (0, _createSuper2.default)(DayOfYearParser2); - function DayOfYearParser2() { - var _this; - (0, _classCallCheck2.default)(this, DayOfYearParser2); - for (var _len = arguments.length, args3 = new Array(_len), _key = 0; _key < _len; _key++) { - args3[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args3)); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "priority", 90); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "subpriority", 1); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "incompatibleTokens", ["Y", "R", "q", "Q", "M", "L", "w", "I", "d", "E", "i", "e", "c", "t", "T"]); - return _this; - } - (0, _createClass2.default)(DayOfYearParser2, [{ - key: "parse", - value: function parse7(dateString, token, match2) { - switch (token) { - case "D": - case "DD": - return (0, _utils.parseNumericPattern)(_constants.numericPatterns.dayOfYear, dateString); - case "Do": - return match2.ordinalNumber(dateString, { - unit: "date" - }); - default: - return (0, _utils.parseNDigits)(token.length, dateString); - } - } - }, { - key: "validate", - value: function validate(date, value) { - var year = date.getUTCFullYear(); - var isLeapYear = (0, _utils.isLeapYearIndex)(year); - if (isLeapYear) { - return value >= 1 && value <= 366; - } else { - return value >= 1 && value <= 365; - } - } - }, { - key: "set", - value: function set(date, _flags, value) { - date.setUTCMonth(0, value); - date.setUTCHours(0, 0, 0, 0); - return date; - } - }]); - return DayOfYearParser2; - }(_Parser2.Parser); - exports2.DayOfYearParser = DayOfYearParser; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/setUTCDay/index.js -var require_setUTCDay = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/setUTCDay/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = setUTCDay; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - var _index3 = _interopRequireDefault(require_toInteger()); - var _index4 = require_defaultOptions(); - function setUTCDay(dirtyDate, dirtyDay, options2) { - var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; - (0, _index2.default)(2, arguments); - var defaultOptions = (0, _index4.getDefaultOptions)(); - var weekStartsOn = (0, _index3.default)((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options2 === null || options2 === void 0 ? void 0 : options2.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options2 === null || options2 === void 0 ? void 0 : (_options$locale = options2.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); - if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { - throw new RangeError("weekStartsOn must be between 0 and 6 inclusively"); - } - var date = (0, _index.default)(dirtyDate); - var day = (0, _index3.default)(dirtyDay); - var currentDay = date.getUTCDay(); - var remainder = day % 7; - var dayIndex = (remainder + 7) % 7; - var diff2 = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay; - date.setUTCDate(date.getUTCDate() + diff2); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/DayParser.js -var require_DayParser = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/DayParser.js"(exports2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.DayParser = void 0; - var _classCallCheck2 = _interopRequireDefault(require_classCallCheck()); - var _createClass2 = _interopRequireDefault(require_createClass()); - var _assertThisInitialized2 = _interopRequireDefault(require_assertThisInitialized()); - var _inherits2 = _interopRequireDefault(require_inherits()); - var _createSuper2 = _interopRequireDefault(require_createSuper()); - var _defineProperty2 = _interopRequireDefault(require_defineProperty()); - var _Parser2 = require_Parser(); - var _index = _interopRequireDefault(require_setUTCDay()); - var DayParser = /* @__PURE__ */ function(_Parser3) { - (0, _inherits2.default)(DayParser2, _Parser3); - var _super = (0, _createSuper2.default)(DayParser2); - function DayParser2() { - var _this; - (0, _classCallCheck2.default)(this, DayParser2); - for (var _len = arguments.length, args3 = new Array(_len), _key = 0; _key < _len; _key++) { - args3[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args3)); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "priority", 90); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "incompatibleTokens", ["D", "i", "e", "c", "t", "T"]); - return _this; - } - (0, _createClass2.default)(DayParser2, [{ - key: "parse", - value: function parse7(dateString, token, match2) { - switch (token) { - case "E": - case "EE": - case "EEE": - return match2.day(dateString, { - width: "abbreviated", - context: "formatting" - }) || match2.day(dateString, { - width: "short", - context: "formatting" - }) || match2.day(dateString, { - width: "narrow", - context: "formatting" - }); - case "EEEEE": - return match2.day(dateString, { - width: "narrow", - context: "formatting" - }); - case "EEEEEE": - return match2.day(dateString, { - width: "short", - context: "formatting" - }) || match2.day(dateString, { - width: "narrow", - context: "formatting" - }); - case "EEEE": - default: - return match2.day(dateString, { - width: "wide", - context: "formatting" - }) || match2.day(dateString, { - width: "abbreviated", - context: "formatting" - }) || match2.day(dateString, { - width: "short", - context: "formatting" - }) || match2.day(dateString, { - width: "narrow", - context: "formatting" - }); - } - } - }, { - key: "validate", - value: function validate(_date, value) { - return value >= 0 && value <= 6; - } - }, { - key: "set", - value: function set(date, _flags, value, options2) { - date = (0, _index.default)(date, value, options2); - date.setUTCHours(0, 0, 0, 0); - return date; - } - }]); - return DayParser2; - }(_Parser2.Parser); - exports2.DayParser = DayParser; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js -var require_LocalDayParser = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js"(exports2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.LocalDayParser = void 0; - var _classCallCheck2 = _interopRequireDefault(require_classCallCheck()); - var _createClass2 = _interopRequireDefault(require_createClass()); - var _assertThisInitialized2 = _interopRequireDefault(require_assertThisInitialized()); - var _inherits2 = _interopRequireDefault(require_inherits()); - var _createSuper2 = _interopRequireDefault(require_createSuper()); - var _defineProperty2 = _interopRequireDefault(require_defineProperty()); - var _Parser2 = require_Parser(); - var _utils = require_utils(); - var _index = _interopRequireDefault(require_setUTCDay()); - var LocalDayParser = /* @__PURE__ */ function(_Parser3) { - (0, _inherits2.default)(LocalDayParser2, _Parser3); - var _super = (0, _createSuper2.default)(LocalDayParser2); - function LocalDayParser2() { - var _this; - (0, _classCallCheck2.default)(this, LocalDayParser2); - for (var _len = arguments.length, args3 = new Array(_len), _key = 0; _key < _len; _key++) { - args3[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args3)); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "priority", 90); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "E", "i", "c", "t", "T"]); - return _this; - } - (0, _createClass2.default)(LocalDayParser2, [{ - key: "parse", - value: function parse7(dateString, token, match2, options2) { - var valueCallback = function valueCallback2(value) { - var wholeWeekDays = Math.floor((value - 1) / 7) * 7; - return (value + options2.weekStartsOn + 6) % 7 + wholeWeekDays; - }; - switch (token) { - case "e": - case "ee": - return (0, _utils.mapValue)((0, _utils.parseNDigits)(token.length, dateString), valueCallback); - case "eo": - return (0, _utils.mapValue)(match2.ordinalNumber(dateString, { - unit: "day" - }), valueCallback); - case "eee": - return match2.day(dateString, { - width: "abbreviated", - context: "formatting" - }) || match2.day(dateString, { - width: "short", - context: "formatting" - }) || match2.day(dateString, { - width: "narrow", - context: "formatting" - }); - case "eeeee": - return match2.day(dateString, { - width: "narrow", - context: "formatting" - }); - case "eeeeee": - return match2.day(dateString, { - width: "short", - context: "formatting" - }) || match2.day(dateString, { - width: "narrow", - context: "formatting" - }); - case "eeee": - default: - return match2.day(dateString, { - width: "wide", - context: "formatting" - }) || match2.day(dateString, { - width: "abbreviated", - context: "formatting" - }) || match2.day(dateString, { - width: "short", - context: "formatting" - }) || match2.day(dateString, { - width: "narrow", - context: "formatting" - }); - } - } - }, { - key: "validate", - value: function validate(_date, value) { - return value >= 0 && value <= 6; - } - }, { - key: "set", - value: function set(date, _flags, value, options2) { - date = (0, _index.default)(date, value, options2); - date.setUTCHours(0, 0, 0, 0); - return date; - } - }]); - return LocalDayParser2; - }(_Parser2.Parser); - exports2.LocalDayParser = LocalDayParser; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js -var require_StandAloneLocalDayParser = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js"(exports2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.StandAloneLocalDayParser = void 0; - var _classCallCheck2 = _interopRequireDefault(require_classCallCheck()); - var _createClass2 = _interopRequireDefault(require_createClass()); - var _assertThisInitialized2 = _interopRequireDefault(require_assertThisInitialized()); - var _inherits2 = _interopRequireDefault(require_inherits()); - var _createSuper2 = _interopRequireDefault(require_createSuper()); - var _defineProperty2 = _interopRequireDefault(require_defineProperty()); - var _Parser2 = require_Parser(); - var _utils = require_utils(); - var _index = _interopRequireDefault(require_setUTCDay()); - var StandAloneLocalDayParser = /* @__PURE__ */ function(_Parser3) { - (0, _inherits2.default)(StandAloneLocalDayParser2, _Parser3); - var _super = (0, _createSuper2.default)(StandAloneLocalDayParser2); - function StandAloneLocalDayParser2() { - var _this; - (0, _classCallCheck2.default)(this, StandAloneLocalDayParser2); - for (var _len = arguments.length, args3 = new Array(_len), _key = 0; _key < _len; _key++) { - args3[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args3)); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "priority", 90); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "E", "i", "e", "t", "T"]); - return _this; - } - (0, _createClass2.default)(StandAloneLocalDayParser2, [{ - key: "parse", - value: function parse7(dateString, token, match2, options2) { - var valueCallback = function valueCallback2(value) { - var wholeWeekDays = Math.floor((value - 1) / 7) * 7; - return (value + options2.weekStartsOn + 6) % 7 + wholeWeekDays; - }; - switch (token) { - case "c": - case "cc": - return (0, _utils.mapValue)((0, _utils.parseNDigits)(token.length, dateString), valueCallback); - case "co": - return (0, _utils.mapValue)(match2.ordinalNumber(dateString, { - unit: "day" - }), valueCallback); - case "ccc": - return match2.day(dateString, { - width: "abbreviated", - context: "standalone" - }) || match2.day(dateString, { - width: "short", - context: "standalone" - }) || match2.day(dateString, { - width: "narrow", - context: "standalone" - }); - case "ccccc": - return match2.day(dateString, { - width: "narrow", - context: "standalone" - }); - case "cccccc": - return match2.day(dateString, { - width: "short", - context: "standalone" - }) || match2.day(dateString, { - width: "narrow", - context: "standalone" - }); - case "cccc": - default: - return match2.day(dateString, { - width: "wide", - context: "standalone" - }) || match2.day(dateString, { - width: "abbreviated", - context: "standalone" - }) || match2.day(dateString, { - width: "short", - context: "standalone" - }) || match2.day(dateString, { - width: "narrow", - context: "standalone" - }); - } - } - }, { - key: "validate", - value: function validate(_date, value) { - return value >= 0 && value <= 6; - } - }, { - key: "set", - value: function set(date, _flags, value, options2) { - date = (0, _index.default)(date, value, options2); - date.setUTCHours(0, 0, 0, 0); - return date; - } - }]); - return StandAloneLocalDayParser2; - }(_Parser2.Parser); - exports2.StandAloneLocalDayParser = StandAloneLocalDayParser; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/setUTCISODay/index.js -var require_setUTCISODay = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/_lib/setUTCISODay/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = setUTCISODay; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - var _index3 = _interopRequireDefault(require_toInteger()); - function setUTCISODay(dirtyDate, dirtyDay) { - (0, _index2.default)(2, arguments); - var day = (0, _index3.default)(dirtyDay); - if (day % 7 === 0) { - day = day - 7; - } - var weekStartsOn = 1; - var date = (0, _index.default)(dirtyDate); - var currentDay = date.getUTCDay(); - var remainder = day % 7; - var dayIndex = (remainder + 7) % 7; - var diff2 = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay; - date.setUTCDate(date.getUTCDate() + diff2); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js -var require_ISODayParser = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js"(exports2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.ISODayParser = void 0; - var _classCallCheck2 = _interopRequireDefault(require_classCallCheck()); - var _createClass2 = _interopRequireDefault(require_createClass()); - var _assertThisInitialized2 = _interopRequireDefault(require_assertThisInitialized()); - var _inherits2 = _interopRequireDefault(require_inherits()); - var _createSuper2 = _interopRequireDefault(require_createSuper()); - var _defineProperty2 = _interopRequireDefault(require_defineProperty()); - var _Parser2 = require_Parser(); - var _utils = require_utils(); - var _index = _interopRequireDefault(require_setUTCISODay()); - var ISODayParser = /* @__PURE__ */ function(_Parser3) { - (0, _inherits2.default)(ISODayParser2, _Parser3); - var _super = (0, _createSuper2.default)(ISODayParser2); - function ISODayParser2() { - var _this; - (0, _classCallCheck2.default)(this, ISODayParser2); - for (var _len = arguments.length, args3 = new Array(_len), _key = 0; _key < _len; _key++) { - args3[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args3)); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "priority", 90); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "incompatibleTokens", ["y", "Y", "u", "q", "Q", "M", "L", "w", "d", "D", "E", "e", "c", "t", "T"]); - return _this; - } - (0, _createClass2.default)(ISODayParser2, [{ - key: "parse", - value: function parse7(dateString, token, match2) { - var valueCallback = function valueCallback2(value) { - if (value === 0) { - return 7; - } - return value; - }; - switch (token) { - case "i": - case "ii": - return (0, _utils.parseNDigits)(token.length, dateString); - case "io": - return match2.ordinalNumber(dateString, { - unit: "day" - }); - case "iii": - return (0, _utils.mapValue)(match2.day(dateString, { - width: "abbreviated", - context: "formatting" - }) || match2.day(dateString, { - width: "short", - context: "formatting" - }) || match2.day(dateString, { - width: "narrow", - context: "formatting" - }), valueCallback); - case "iiiii": - return (0, _utils.mapValue)(match2.day(dateString, { - width: "narrow", - context: "formatting" - }), valueCallback); - case "iiiiii": - return (0, _utils.mapValue)(match2.day(dateString, { - width: "short", - context: "formatting" - }) || match2.day(dateString, { - width: "narrow", - context: "formatting" - }), valueCallback); - case "iiii": - default: - return (0, _utils.mapValue)(match2.day(dateString, { - width: "wide", - context: "formatting" - }) || match2.day(dateString, { - width: "abbreviated", - context: "formatting" - }) || match2.day(dateString, { - width: "short", - context: "formatting" - }) || match2.day(dateString, { - width: "narrow", - context: "formatting" - }), valueCallback); - } - } - }, { - key: "validate", - value: function validate(_date, value) { - return value >= 1 && value <= 7; - } - }, { - key: "set", - value: function set(date, _flags, value) { - date = (0, _index.default)(date, value); - date.setUTCHours(0, 0, 0, 0); - return date; - } - }]); - return ISODayParser2; - }(_Parser2.Parser); - exports2.ISODayParser = ISODayParser; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js -var require_AMPMParser = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js"(exports2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.AMPMParser = void 0; - var _classCallCheck2 = _interopRequireDefault(require_classCallCheck()); - var _createClass2 = _interopRequireDefault(require_createClass()); - var _assertThisInitialized2 = _interopRequireDefault(require_assertThisInitialized()); - var _inherits2 = _interopRequireDefault(require_inherits()); - var _createSuper2 = _interopRequireDefault(require_createSuper()); - var _defineProperty2 = _interopRequireDefault(require_defineProperty()); - var _Parser2 = require_Parser(); - var _utils = require_utils(); - var AMPMParser = /* @__PURE__ */ function(_Parser3) { - (0, _inherits2.default)(AMPMParser2, _Parser3); - var _super = (0, _createSuper2.default)(AMPMParser2); - function AMPMParser2() { - var _this; - (0, _classCallCheck2.default)(this, AMPMParser2); - for (var _len = arguments.length, args3 = new Array(_len), _key = 0; _key < _len; _key++) { - args3[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args3)); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "priority", 80); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "incompatibleTokens", ["b", "B", "H", "k", "t", "T"]); - return _this; - } - (0, _createClass2.default)(AMPMParser2, [{ - key: "parse", - value: function parse7(dateString, token, match2) { - switch (token) { - case "a": - case "aa": - case "aaa": - return match2.dayPeriod(dateString, { - width: "abbreviated", - context: "formatting" - }) || match2.dayPeriod(dateString, { - width: "narrow", - context: "formatting" - }); - case "aaaaa": - return match2.dayPeriod(dateString, { - width: "narrow", - context: "formatting" - }); - case "aaaa": - default: - return match2.dayPeriod(dateString, { - width: "wide", - context: "formatting" - }) || match2.dayPeriod(dateString, { - width: "abbreviated", - context: "formatting" - }) || match2.dayPeriod(dateString, { - width: "narrow", - context: "formatting" - }); - } - } - }, { - key: "set", - value: function set(date, _flags, value) { - date.setUTCHours((0, _utils.dayPeriodEnumToHours)(value), 0, 0, 0); - return date; - } - }]); - return AMPMParser2; - }(_Parser2.Parser); - exports2.AMPMParser = AMPMParser; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js -var require_AMPMMidnightParser = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js"(exports2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.AMPMMidnightParser = void 0; - var _classCallCheck2 = _interopRequireDefault(require_classCallCheck()); - var _createClass2 = _interopRequireDefault(require_createClass()); - var _assertThisInitialized2 = _interopRequireDefault(require_assertThisInitialized()); - var _inherits2 = _interopRequireDefault(require_inherits()); - var _createSuper2 = _interopRequireDefault(require_createSuper()); - var _defineProperty2 = _interopRequireDefault(require_defineProperty()); - var _Parser2 = require_Parser(); - var _utils = require_utils(); - var AMPMMidnightParser = /* @__PURE__ */ function(_Parser3) { - (0, _inherits2.default)(AMPMMidnightParser2, _Parser3); - var _super = (0, _createSuper2.default)(AMPMMidnightParser2); - function AMPMMidnightParser2() { - var _this; - (0, _classCallCheck2.default)(this, AMPMMidnightParser2); - for (var _len = arguments.length, args3 = new Array(_len), _key = 0; _key < _len; _key++) { - args3[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args3)); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "priority", 80); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "incompatibleTokens", ["a", "B", "H", "k", "t", "T"]); - return _this; - } - (0, _createClass2.default)(AMPMMidnightParser2, [{ - key: "parse", - value: function parse7(dateString, token, match2) { - switch (token) { - case "b": - case "bb": - case "bbb": - return match2.dayPeriod(dateString, { - width: "abbreviated", - context: "formatting" - }) || match2.dayPeriod(dateString, { - width: "narrow", - context: "formatting" - }); - case "bbbbb": - return match2.dayPeriod(dateString, { - width: "narrow", - context: "formatting" - }); - case "bbbb": - default: - return match2.dayPeriod(dateString, { - width: "wide", - context: "formatting" - }) || match2.dayPeriod(dateString, { - width: "abbreviated", - context: "formatting" - }) || match2.dayPeriod(dateString, { - width: "narrow", - context: "formatting" - }); - } - } - }, { - key: "set", - value: function set(date, _flags, value) { - date.setUTCHours((0, _utils.dayPeriodEnumToHours)(value), 0, 0, 0); - return date; - } - }]); - return AMPMMidnightParser2; - }(_Parser2.Parser); - exports2.AMPMMidnightParser = AMPMMidnightParser; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js -var require_DayPeriodParser = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js"(exports2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.DayPeriodParser = void 0; - var _classCallCheck2 = _interopRequireDefault(require_classCallCheck()); - var _createClass2 = _interopRequireDefault(require_createClass()); - var _assertThisInitialized2 = _interopRequireDefault(require_assertThisInitialized()); - var _inherits2 = _interopRequireDefault(require_inherits()); - var _createSuper2 = _interopRequireDefault(require_createSuper()); - var _defineProperty2 = _interopRequireDefault(require_defineProperty()); - var _Parser2 = require_Parser(); - var _utils = require_utils(); - var DayPeriodParser = /* @__PURE__ */ function(_Parser3) { - (0, _inherits2.default)(DayPeriodParser2, _Parser3); - var _super = (0, _createSuper2.default)(DayPeriodParser2); - function DayPeriodParser2() { - var _this; - (0, _classCallCheck2.default)(this, DayPeriodParser2); - for (var _len = arguments.length, args3 = new Array(_len), _key = 0; _key < _len; _key++) { - args3[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args3)); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "priority", 80); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "incompatibleTokens", ["a", "b", "t", "T"]); - return _this; - } - (0, _createClass2.default)(DayPeriodParser2, [{ - key: "parse", - value: function parse7(dateString, token, match2) { - switch (token) { - case "B": - case "BB": - case "BBB": - return match2.dayPeriod(dateString, { - width: "abbreviated", - context: "formatting" - }) || match2.dayPeriod(dateString, { - width: "narrow", - context: "formatting" - }); - case "BBBBB": - return match2.dayPeriod(dateString, { - width: "narrow", - context: "formatting" - }); - case "BBBB": - default: - return match2.dayPeriod(dateString, { - width: "wide", - context: "formatting" - }) || match2.dayPeriod(dateString, { - width: "abbreviated", - context: "formatting" - }) || match2.dayPeriod(dateString, { - width: "narrow", - context: "formatting" - }); - } - } - }, { - key: "set", - value: function set(date, _flags, value) { - date.setUTCHours((0, _utils.dayPeriodEnumToHours)(value), 0, 0, 0); - return date; - } - }]); - return DayPeriodParser2; - }(_Parser2.Parser); - exports2.DayPeriodParser = DayPeriodParser; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js -var require_Hour1to12Parser = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js"(exports2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.Hour1to12Parser = void 0; - var _classCallCheck2 = _interopRequireDefault(require_classCallCheck()); - var _createClass2 = _interopRequireDefault(require_createClass()); - var _assertThisInitialized2 = _interopRequireDefault(require_assertThisInitialized()); - var _inherits2 = _interopRequireDefault(require_inherits()); - var _createSuper2 = _interopRequireDefault(require_createSuper()); - var _defineProperty2 = _interopRequireDefault(require_defineProperty()); - var _Parser2 = require_Parser(); - var _constants = require_constants2(); - var _utils = require_utils(); - var Hour1to12Parser = /* @__PURE__ */ function(_Parser3) { - (0, _inherits2.default)(Hour1to12Parser2, _Parser3); - var _super = (0, _createSuper2.default)(Hour1to12Parser2); - function Hour1to12Parser2() { - var _this; - (0, _classCallCheck2.default)(this, Hour1to12Parser2); - for (var _len = arguments.length, args3 = new Array(_len), _key = 0; _key < _len; _key++) { - args3[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args3)); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "priority", 70); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "incompatibleTokens", ["H", "K", "k", "t", "T"]); - return _this; - } - (0, _createClass2.default)(Hour1to12Parser2, [{ - key: "parse", - value: function parse7(dateString, token, match2) { - switch (token) { - case "h": - return (0, _utils.parseNumericPattern)(_constants.numericPatterns.hour12h, dateString); - case "ho": - return match2.ordinalNumber(dateString, { - unit: "hour" - }); - default: - return (0, _utils.parseNDigits)(token.length, dateString); - } - } - }, { - key: "validate", - value: function validate(_date, value) { - return value >= 1 && value <= 12; - } - }, { - key: "set", - value: function set(date, _flags, value) { - var isPM = date.getUTCHours() >= 12; - if (isPM && value < 12) { - date.setUTCHours(value + 12, 0, 0, 0); - } else if (!isPM && value === 12) { - date.setUTCHours(0, 0, 0, 0); - } else { - date.setUTCHours(value, 0, 0, 0); - } - return date; - } - }]); - return Hour1to12Parser2; - }(_Parser2.Parser); - exports2.Hour1to12Parser = Hour1to12Parser; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js -var require_Hour0to23Parser = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js"(exports2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.Hour0to23Parser = void 0; - var _classCallCheck2 = _interopRequireDefault(require_classCallCheck()); - var _createClass2 = _interopRequireDefault(require_createClass()); - var _assertThisInitialized2 = _interopRequireDefault(require_assertThisInitialized()); - var _inherits2 = _interopRequireDefault(require_inherits()); - var _createSuper2 = _interopRequireDefault(require_createSuper()); - var _defineProperty2 = _interopRequireDefault(require_defineProperty()); - var _Parser2 = require_Parser(); - var _constants = require_constants2(); - var _utils = require_utils(); - var Hour0to23Parser = /* @__PURE__ */ function(_Parser3) { - (0, _inherits2.default)(Hour0to23Parser2, _Parser3); - var _super = (0, _createSuper2.default)(Hour0to23Parser2); - function Hour0to23Parser2() { - var _this; - (0, _classCallCheck2.default)(this, Hour0to23Parser2); - for (var _len = arguments.length, args3 = new Array(_len), _key = 0; _key < _len; _key++) { - args3[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args3)); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "priority", 70); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "incompatibleTokens", ["a", "b", "h", "K", "k", "t", "T"]); - return _this; - } - (0, _createClass2.default)(Hour0to23Parser2, [{ - key: "parse", - value: function parse7(dateString, token, match2) { - switch (token) { - case "H": - return (0, _utils.parseNumericPattern)(_constants.numericPatterns.hour23h, dateString); - case "Ho": - return match2.ordinalNumber(dateString, { - unit: "hour" - }); - default: - return (0, _utils.parseNDigits)(token.length, dateString); - } - } - }, { - key: "validate", - value: function validate(_date, value) { - return value >= 0 && value <= 23; - } - }, { - key: "set", - value: function set(date, _flags, value) { - date.setUTCHours(value, 0, 0, 0); - return date; - } - }]); - return Hour0to23Parser2; - }(_Parser2.Parser); - exports2.Hour0to23Parser = Hour0to23Parser; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js -var require_Hour0To11Parser = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js"(exports2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.Hour0To11Parser = void 0; - var _classCallCheck2 = _interopRequireDefault(require_classCallCheck()); - var _createClass2 = _interopRequireDefault(require_createClass()); - var _assertThisInitialized2 = _interopRequireDefault(require_assertThisInitialized()); - var _inherits2 = _interopRequireDefault(require_inherits()); - var _createSuper2 = _interopRequireDefault(require_createSuper()); - var _defineProperty2 = _interopRequireDefault(require_defineProperty()); - var _Parser2 = require_Parser(); - var _constants = require_constants2(); - var _utils = require_utils(); - var Hour0To11Parser = /* @__PURE__ */ function(_Parser3) { - (0, _inherits2.default)(Hour0To11Parser2, _Parser3); - var _super = (0, _createSuper2.default)(Hour0To11Parser2); - function Hour0To11Parser2() { - var _this; - (0, _classCallCheck2.default)(this, Hour0To11Parser2); - for (var _len = arguments.length, args3 = new Array(_len), _key = 0; _key < _len; _key++) { - args3[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args3)); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "priority", 70); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "incompatibleTokens", ["h", "H", "k", "t", "T"]); - return _this; - } - (0, _createClass2.default)(Hour0To11Parser2, [{ - key: "parse", - value: function parse7(dateString, token, match2) { - switch (token) { - case "K": - return (0, _utils.parseNumericPattern)(_constants.numericPatterns.hour11h, dateString); - case "Ko": - return match2.ordinalNumber(dateString, { - unit: "hour" - }); - default: - return (0, _utils.parseNDigits)(token.length, dateString); - } - } - }, { - key: "validate", - value: function validate(_date, value) { - return value >= 0 && value <= 11; - } - }, { - key: "set", - value: function set(date, _flags, value) { - var isPM = date.getUTCHours() >= 12; - if (isPM && value < 12) { - date.setUTCHours(value + 12, 0, 0, 0); - } else { - date.setUTCHours(value, 0, 0, 0); - } - return date; - } - }]); - return Hour0To11Parser2; - }(_Parser2.Parser); - exports2.Hour0To11Parser = Hour0To11Parser; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js -var require_Hour1To24Parser = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js"(exports2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.Hour1To24Parser = void 0; - var _classCallCheck2 = _interopRequireDefault(require_classCallCheck()); - var _createClass2 = _interopRequireDefault(require_createClass()); - var _assertThisInitialized2 = _interopRequireDefault(require_assertThisInitialized()); - var _inherits2 = _interopRequireDefault(require_inherits()); - var _createSuper2 = _interopRequireDefault(require_createSuper()); - var _defineProperty2 = _interopRequireDefault(require_defineProperty()); - var _Parser2 = require_Parser(); - var _constants = require_constants2(); - var _utils = require_utils(); - var Hour1To24Parser = /* @__PURE__ */ function(_Parser3) { - (0, _inherits2.default)(Hour1To24Parser2, _Parser3); - var _super = (0, _createSuper2.default)(Hour1To24Parser2); - function Hour1To24Parser2() { - var _this; - (0, _classCallCheck2.default)(this, Hour1To24Parser2); - for (var _len = arguments.length, args3 = new Array(_len), _key = 0; _key < _len; _key++) { - args3[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args3)); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "priority", 70); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "incompatibleTokens", ["a", "b", "h", "H", "K", "t", "T"]); - return _this; - } - (0, _createClass2.default)(Hour1To24Parser2, [{ - key: "parse", - value: function parse7(dateString, token, match2) { - switch (token) { - case "k": - return (0, _utils.parseNumericPattern)(_constants.numericPatterns.hour24h, dateString); - case "ko": - return match2.ordinalNumber(dateString, { - unit: "hour" - }); - default: - return (0, _utils.parseNDigits)(token.length, dateString); - } - } - }, { - key: "validate", - value: function validate(_date, value) { - return value >= 1 && value <= 24; - } - }, { - key: "set", - value: function set(date, _flags, value) { - var hours = value <= 24 ? value % 24 : value; - date.setUTCHours(hours, 0, 0, 0); - return date; - } - }]); - return Hour1To24Parser2; - }(_Parser2.Parser); - exports2.Hour1To24Parser = Hour1To24Parser; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js -var require_MinuteParser = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js"(exports2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.MinuteParser = void 0; - var _classCallCheck2 = _interopRequireDefault(require_classCallCheck()); - var _createClass2 = _interopRequireDefault(require_createClass()); - var _assertThisInitialized2 = _interopRequireDefault(require_assertThisInitialized()); - var _inherits2 = _interopRequireDefault(require_inherits()); - var _createSuper2 = _interopRequireDefault(require_createSuper()); - var _defineProperty2 = _interopRequireDefault(require_defineProperty()); - var _Parser2 = require_Parser(); - var _constants = require_constants2(); - var _utils = require_utils(); - var MinuteParser = /* @__PURE__ */ function(_Parser3) { - (0, _inherits2.default)(MinuteParser2, _Parser3); - var _super = (0, _createSuper2.default)(MinuteParser2); - function MinuteParser2() { - var _this; - (0, _classCallCheck2.default)(this, MinuteParser2); - for (var _len = arguments.length, args3 = new Array(_len), _key = 0; _key < _len; _key++) { - args3[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args3)); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "priority", 60); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "incompatibleTokens", ["t", "T"]); - return _this; - } - (0, _createClass2.default)(MinuteParser2, [{ - key: "parse", - value: function parse7(dateString, token, match2) { - switch (token) { - case "m": - return (0, _utils.parseNumericPattern)(_constants.numericPatterns.minute, dateString); - case "mo": - return match2.ordinalNumber(dateString, { - unit: "minute" - }); - default: - return (0, _utils.parseNDigits)(token.length, dateString); - } - } - }, { - key: "validate", - value: function validate(_date, value) { - return value >= 0 && value <= 59; - } - }, { - key: "set", - value: function set(date, _flags, value) { - date.setUTCMinutes(value, 0, 0); - return date; - } - }]); - return MinuteParser2; - }(_Parser2.Parser); - exports2.MinuteParser = MinuteParser; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/SecondParser.js -var require_SecondParser = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/SecondParser.js"(exports2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.SecondParser = void 0; - var _classCallCheck2 = _interopRequireDefault(require_classCallCheck()); - var _createClass2 = _interopRequireDefault(require_createClass()); - var _assertThisInitialized2 = _interopRequireDefault(require_assertThisInitialized()); - var _inherits2 = _interopRequireDefault(require_inherits()); - var _createSuper2 = _interopRequireDefault(require_createSuper()); - var _defineProperty2 = _interopRequireDefault(require_defineProperty()); - var _Parser2 = require_Parser(); - var _constants = require_constants2(); - var _utils = require_utils(); - var SecondParser = /* @__PURE__ */ function(_Parser3) { - (0, _inherits2.default)(SecondParser2, _Parser3); - var _super = (0, _createSuper2.default)(SecondParser2); - function SecondParser2() { - var _this; - (0, _classCallCheck2.default)(this, SecondParser2); - for (var _len = arguments.length, args3 = new Array(_len), _key = 0; _key < _len; _key++) { - args3[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args3)); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "priority", 50); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "incompatibleTokens", ["t", "T"]); - return _this; - } - (0, _createClass2.default)(SecondParser2, [{ - key: "parse", - value: function parse7(dateString, token, match2) { - switch (token) { - case "s": - return (0, _utils.parseNumericPattern)(_constants.numericPatterns.second, dateString); - case "so": - return match2.ordinalNumber(dateString, { - unit: "second" - }); - default: - return (0, _utils.parseNDigits)(token.length, dateString); - } - } - }, { - key: "validate", - value: function validate(_date, value) { - return value >= 0 && value <= 59; - } - }, { - key: "set", - value: function set(date, _flags, value) { - date.setUTCSeconds(value, 0); - return date; - } - }]); - return SecondParser2; - }(_Parser2.Parser); - exports2.SecondParser = SecondParser; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js -var require_FractionOfSecondParser = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js"(exports2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.FractionOfSecondParser = void 0; - var _classCallCheck2 = _interopRequireDefault(require_classCallCheck()); - var _createClass2 = _interopRequireDefault(require_createClass()); - var _assertThisInitialized2 = _interopRequireDefault(require_assertThisInitialized()); - var _inherits2 = _interopRequireDefault(require_inherits()); - var _createSuper2 = _interopRequireDefault(require_createSuper()); - var _defineProperty2 = _interopRequireDefault(require_defineProperty()); - var _Parser2 = require_Parser(); - var _utils = require_utils(); - var FractionOfSecondParser = /* @__PURE__ */ function(_Parser3) { - (0, _inherits2.default)(FractionOfSecondParser2, _Parser3); - var _super = (0, _createSuper2.default)(FractionOfSecondParser2); - function FractionOfSecondParser2() { - var _this; - (0, _classCallCheck2.default)(this, FractionOfSecondParser2); - for (var _len = arguments.length, args3 = new Array(_len), _key = 0; _key < _len; _key++) { - args3[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args3)); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "priority", 30); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "incompatibleTokens", ["t", "T"]); - return _this; - } - (0, _createClass2.default)(FractionOfSecondParser2, [{ - key: "parse", - value: function parse7(dateString, token) { - var valueCallback = function valueCallback2(value) { - return Math.floor(value * Math.pow(10, -token.length + 3)); - }; - return (0, _utils.mapValue)((0, _utils.parseNDigits)(token.length, dateString), valueCallback); - } - }, { - key: "set", - value: function set(date, _flags, value) { - date.setUTCMilliseconds(value); - return date; - } - }]); - return FractionOfSecondParser2; - }(_Parser2.Parser); - exports2.FractionOfSecondParser = FractionOfSecondParser; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js -var require_ISOTimezoneWithZParser = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js"(exports2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.ISOTimezoneWithZParser = void 0; - var _classCallCheck2 = _interopRequireDefault(require_classCallCheck()); - var _createClass2 = _interopRequireDefault(require_createClass()); - var _assertThisInitialized2 = _interopRequireDefault(require_assertThisInitialized()); - var _inherits2 = _interopRequireDefault(require_inherits()); - var _createSuper2 = _interopRequireDefault(require_createSuper()); - var _defineProperty2 = _interopRequireDefault(require_defineProperty()); - var _Parser2 = require_Parser(); - var _constants = require_constants2(); - var _utils = require_utils(); - var ISOTimezoneWithZParser = /* @__PURE__ */ function(_Parser3) { - (0, _inherits2.default)(ISOTimezoneWithZParser2, _Parser3); - var _super = (0, _createSuper2.default)(ISOTimezoneWithZParser2); - function ISOTimezoneWithZParser2() { - var _this; - (0, _classCallCheck2.default)(this, ISOTimezoneWithZParser2); - for (var _len = arguments.length, args3 = new Array(_len), _key = 0; _key < _len; _key++) { - args3[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args3)); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "priority", 10); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "incompatibleTokens", ["t", "T", "x"]); - return _this; - } - (0, _createClass2.default)(ISOTimezoneWithZParser2, [{ - key: "parse", - value: function parse7(dateString, token) { - switch (token) { - case "X": - return (0, _utils.parseTimezonePattern)(_constants.timezonePatterns.basicOptionalMinutes, dateString); - case "XX": - return (0, _utils.parseTimezonePattern)(_constants.timezonePatterns.basic, dateString); - case "XXXX": - return (0, _utils.parseTimezonePattern)(_constants.timezonePatterns.basicOptionalSeconds, dateString); - case "XXXXX": - return (0, _utils.parseTimezonePattern)(_constants.timezonePatterns.extendedOptionalSeconds, dateString); - case "XXX": - default: - return (0, _utils.parseTimezonePattern)(_constants.timezonePatterns.extended, dateString); - } - } - }, { - key: "set", - value: function set(date, flags2, value) { - if (flags2.timestampIsSet) { - return date; - } - return new Date(date.getTime() - value); - } - }]); - return ISOTimezoneWithZParser2; - }(_Parser2.Parser); - exports2.ISOTimezoneWithZParser = ISOTimezoneWithZParser; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js -var require_ISOTimezoneParser = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js"(exports2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.ISOTimezoneParser = void 0; - var _classCallCheck2 = _interopRequireDefault(require_classCallCheck()); - var _createClass2 = _interopRequireDefault(require_createClass()); - var _assertThisInitialized2 = _interopRequireDefault(require_assertThisInitialized()); - var _inherits2 = _interopRequireDefault(require_inherits()); - var _createSuper2 = _interopRequireDefault(require_createSuper()); - var _defineProperty2 = _interopRequireDefault(require_defineProperty()); - var _Parser2 = require_Parser(); - var _constants = require_constants2(); - var _utils = require_utils(); - var ISOTimezoneParser = /* @__PURE__ */ function(_Parser3) { - (0, _inherits2.default)(ISOTimezoneParser2, _Parser3); - var _super = (0, _createSuper2.default)(ISOTimezoneParser2); - function ISOTimezoneParser2() { - var _this; - (0, _classCallCheck2.default)(this, ISOTimezoneParser2); - for (var _len = arguments.length, args3 = new Array(_len), _key = 0; _key < _len; _key++) { - args3[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args3)); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "priority", 10); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "incompatibleTokens", ["t", "T", "X"]); - return _this; - } - (0, _createClass2.default)(ISOTimezoneParser2, [{ - key: "parse", - value: function parse7(dateString, token) { - switch (token) { - case "x": - return (0, _utils.parseTimezonePattern)(_constants.timezonePatterns.basicOptionalMinutes, dateString); - case "xx": - return (0, _utils.parseTimezonePattern)(_constants.timezonePatterns.basic, dateString); - case "xxxx": - return (0, _utils.parseTimezonePattern)(_constants.timezonePatterns.basicOptionalSeconds, dateString); - case "xxxxx": - return (0, _utils.parseTimezonePattern)(_constants.timezonePatterns.extendedOptionalSeconds, dateString); - case "xxx": - default: - return (0, _utils.parseTimezonePattern)(_constants.timezonePatterns.extended, dateString); - } - } - }, { - key: "set", - value: function set(date, flags2, value) { - if (flags2.timestampIsSet) { - return date; - } - return new Date(date.getTime() - value); - } - }]); - return ISOTimezoneParser2; - }(_Parser2.Parser); - exports2.ISOTimezoneParser = ISOTimezoneParser; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js -var require_TimestampSecondsParser = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js"(exports2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.TimestampSecondsParser = void 0; - var _classCallCheck2 = _interopRequireDefault(require_classCallCheck()); - var _createClass2 = _interopRequireDefault(require_createClass()); - var _assertThisInitialized2 = _interopRequireDefault(require_assertThisInitialized()); - var _inherits2 = _interopRequireDefault(require_inherits()); - var _createSuper2 = _interopRequireDefault(require_createSuper()); - var _defineProperty2 = _interopRequireDefault(require_defineProperty()); - var _Parser2 = require_Parser(); - var _utils = require_utils(); - var TimestampSecondsParser = /* @__PURE__ */ function(_Parser3) { - (0, _inherits2.default)(TimestampSecondsParser2, _Parser3); - var _super = (0, _createSuper2.default)(TimestampSecondsParser2); - function TimestampSecondsParser2() { - var _this; - (0, _classCallCheck2.default)(this, TimestampSecondsParser2); - for (var _len = arguments.length, args3 = new Array(_len), _key = 0; _key < _len; _key++) { - args3[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args3)); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "priority", 40); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "incompatibleTokens", "*"); - return _this; - } - (0, _createClass2.default)(TimestampSecondsParser2, [{ - key: "parse", - value: function parse7(dateString) { - return (0, _utils.parseAnyDigitsSigned)(dateString); - } - }, { - key: "set", - value: function set(_date, _flags, value) { - return [new Date(value * 1e3), { - timestampIsSet: true - }]; - } - }]); - return TimestampSecondsParser2; - }(_Parser2.Parser); - exports2.TimestampSecondsParser = TimestampSecondsParser; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js -var require_TimestampMillisecondsParser = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js"(exports2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.TimestampMillisecondsParser = void 0; - var _classCallCheck2 = _interopRequireDefault(require_classCallCheck()); - var _createClass2 = _interopRequireDefault(require_createClass()); - var _assertThisInitialized2 = _interopRequireDefault(require_assertThisInitialized()); - var _inherits2 = _interopRequireDefault(require_inherits()); - var _createSuper2 = _interopRequireDefault(require_createSuper()); - var _defineProperty2 = _interopRequireDefault(require_defineProperty()); - var _Parser2 = require_Parser(); - var _utils = require_utils(); - var TimestampMillisecondsParser = /* @__PURE__ */ function(_Parser3) { - (0, _inherits2.default)(TimestampMillisecondsParser2, _Parser3); - var _super = (0, _createSuper2.default)(TimestampMillisecondsParser2); - function TimestampMillisecondsParser2() { - var _this; - (0, _classCallCheck2.default)(this, TimestampMillisecondsParser2); - for (var _len = arguments.length, args3 = new Array(_len), _key = 0; _key < _len; _key++) { - args3[_key] = arguments[_key]; - } - _this = _super.call.apply(_super, [this].concat(args3)); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "priority", 20); - (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "incompatibleTokens", "*"); - return _this; - } - (0, _createClass2.default)(TimestampMillisecondsParser2, [{ - key: "parse", - value: function parse7(dateString) { - return (0, _utils.parseAnyDigitsSigned)(dateString); - } - }, { - key: "set", - value: function set(_date, _flags, value) { - return [new Date(value), { - timestampIsSet: true - }]; - } - }]); - return TimestampMillisecondsParser2; - }(_Parser2.Parser); - exports2.TimestampMillisecondsParser = TimestampMillisecondsParser; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/index.js -var require_parsers = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/_lib/parsers/index.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.parsers = void 0; - var _EraParser = require_EraParser(); - var _YearParser = require_YearParser(); - var _LocalWeekYearParser = require_LocalWeekYearParser(); - var _ISOWeekYearParser = require_ISOWeekYearParser(); - var _ExtendedYearParser = require_ExtendedYearParser(); - var _QuarterParser = require_QuarterParser(); - var _StandAloneQuarterParser = require_StandAloneQuarterParser(); - var _MonthParser = require_MonthParser(); - var _StandAloneMonthParser = require_StandAloneMonthParser(); - var _LocalWeekParser = require_LocalWeekParser(); - var _ISOWeekParser = require_ISOWeekParser(); - var _DateParser = require_DateParser(); - var _DayOfYearParser = require_DayOfYearParser(); - var _DayParser = require_DayParser(); - var _LocalDayParser = require_LocalDayParser(); - var _StandAloneLocalDayParser = require_StandAloneLocalDayParser(); - var _ISODayParser = require_ISODayParser(); - var _AMPMParser = require_AMPMParser(); - var _AMPMMidnightParser = require_AMPMMidnightParser(); - var _DayPeriodParser = require_DayPeriodParser(); - var _Hour1to12Parser = require_Hour1to12Parser(); - var _Hour0to23Parser = require_Hour0to23Parser(); - var _Hour0To11Parser = require_Hour0To11Parser(); - var _Hour1To24Parser = require_Hour1To24Parser(); - var _MinuteParser = require_MinuteParser(); - var _SecondParser = require_SecondParser(); - var _FractionOfSecondParser = require_FractionOfSecondParser(); - var _ISOTimezoneWithZParser = require_ISOTimezoneWithZParser(); - var _ISOTimezoneParser = require_ISOTimezoneParser(); - var _TimestampSecondsParser = require_TimestampSecondsParser(); - var _TimestampMillisecondsParser = require_TimestampMillisecondsParser(); - var parsers = { - G: new _EraParser.EraParser(), - y: new _YearParser.YearParser(), - Y: new _LocalWeekYearParser.LocalWeekYearParser(), - R: new _ISOWeekYearParser.ISOWeekYearParser(), - u: new _ExtendedYearParser.ExtendedYearParser(), - Q: new _QuarterParser.QuarterParser(), - q: new _StandAloneQuarterParser.StandAloneQuarterParser(), - M: new _MonthParser.MonthParser(), - L: new _StandAloneMonthParser.StandAloneMonthParser(), - w: new _LocalWeekParser.LocalWeekParser(), - I: new _ISOWeekParser.ISOWeekParser(), - d: new _DateParser.DateParser(), - D: new _DayOfYearParser.DayOfYearParser(), - E: new _DayParser.DayParser(), - e: new _LocalDayParser.LocalDayParser(), - c: new _StandAloneLocalDayParser.StandAloneLocalDayParser(), - i: new _ISODayParser.ISODayParser(), - a: new _AMPMParser.AMPMParser(), - b: new _AMPMMidnightParser.AMPMMidnightParser(), - B: new _DayPeriodParser.DayPeriodParser(), - h: new _Hour1to12Parser.Hour1to12Parser(), - H: new _Hour0to23Parser.Hour0to23Parser(), - K: new _Hour0To11Parser.Hour0To11Parser(), - k: new _Hour1To24Parser.Hour1To24Parser(), - m: new _MinuteParser.MinuteParser(), - s: new _SecondParser.SecondParser(), - S: new _FractionOfSecondParser.FractionOfSecondParser(), - X: new _ISOTimezoneWithZParser.ISOTimezoneWithZParser(), - x: new _ISOTimezoneParser.ISOTimezoneParser(), - t: new _TimestampSecondsParser.TimestampSecondsParser(), - T: new _TimestampMillisecondsParser.TimestampMillisecondsParser() - }; - exports2.parsers = parsers; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/index.js -var require_parse = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parse/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = parse7; - var _typeof2 = _interopRequireDefault(require_typeof()); - var _createForOfIteratorHelper2 = _interopRequireDefault(require_createForOfIteratorHelper()); - var _index = _interopRequireDefault(require_defaultLocale()); - var _index2 = _interopRequireDefault(require_subMilliseconds()); - var _index3 = _interopRequireDefault(require_toDate()); - var _index4 = _interopRequireDefault(require_assign()); - var _index5 = _interopRequireDefault(require_longFormatters()); - var _index6 = _interopRequireDefault(require_getTimezoneOffsetInMilliseconds()); - var _index7 = require_protectedTokens(); - var _index8 = _interopRequireDefault(require_toInteger()); - var _index9 = _interopRequireDefault(require_requiredArgs()); - var _Setter = require_Setter(); - var _index10 = require_parsers(); - var _index11 = require_defaultOptions(); - var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; - var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g; - var escapedStringRegExp = /^'([^]*?)'?$/; - var doubleQuoteRegExp = /''/g; - var notWhitespaceRegExp = /\S/; - var unescapedLatinCharacterRegExp = /[a-zA-Z]/; - function parse7(dirtyDateString, dirtyFormatString, dirtyReferenceDate, options2) { - var _ref, _options$locale, _ref2, _ref3, _ref4, _options$firstWeekCon, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2, _ref5, _ref6, _ref7, _options$weekStartsOn, _options$locale3, _options$locale3$opti, _defaultOptions$local3, _defaultOptions$local4; - (0, _index9.default)(3, arguments); - var dateString = String(dirtyDateString); - var formatString = String(dirtyFormatString); - var defaultOptions = (0, _index11.getDefaultOptions)(); - var locale = (_ref = (_options$locale = options2 === null || options2 === void 0 ? void 0 : options2.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : _index.default; - if (!locale.match) { - throw new RangeError("locale must contain match property"); - } - var firstWeekContainsDate = (0, _index8.default)((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = options2 === null || options2 === void 0 ? void 0 : options2.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options2 === null || options2 === void 0 ? void 0 : (_options$locale2 = options2.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.firstWeekContainsDate) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1); - if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) { - throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively"); - } - var weekStartsOn = (0, _index8.default)((_ref5 = (_ref6 = (_ref7 = (_options$weekStartsOn = options2 === null || options2 === void 0 ? void 0 : options2.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options2 === null || options2 === void 0 ? void 0 : (_options$locale3 = options2.locale) === null || _options$locale3 === void 0 ? void 0 : (_options$locale3$opti = _options$locale3.options) === null || _options$locale3$opti === void 0 ? void 0 : _options$locale3$opti.weekStartsOn) !== null && _ref7 !== void 0 ? _ref7 : defaultOptions.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : (_defaultOptions$local3 = defaultOptions.locale) === null || _defaultOptions$local3 === void 0 ? void 0 : (_defaultOptions$local4 = _defaultOptions$local3.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : 0); - if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { - throw new RangeError("weekStartsOn must be between 0 and 6 inclusively"); - } - if (formatString === "") { - if (dateString === "") { - return (0, _index3.default)(dirtyReferenceDate); - } else { - return /* @__PURE__ */ new Date(NaN); - } - } - var subFnOptions = { - firstWeekContainsDate, - weekStartsOn, - locale - }; - var setters = [new _Setter.DateToSystemTimezoneSetter()]; - var tokens = formatString.match(longFormattingTokensRegExp).map(function(substring) { - var firstCharacter = substring[0]; - if (firstCharacter in _index5.default) { - var longFormatter = _index5.default[firstCharacter]; - return longFormatter(substring, locale.formatLong); - } - return substring; - }).join("").match(formattingTokensRegExp); - var usedTokens = []; - var _iterator = (0, _createForOfIteratorHelper2.default)(tokens), _step; - try { - var _loop = function _loop2() { - var token = _step.value; - if (!(options2 !== null && options2 !== void 0 && options2.useAdditionalWeekYearTokens) && (0, _index7.isProtectedWeekYearToken)(token)) { - (0, _index7.throwProtectedError)(token, formatString, dirtyDateString); - } - if (!(options2 !== null && options2 !== void 0 && options2.useAdditionalDayOfYearTokens) && (0, _index7.isProtectedDayOfYearToken)(token)) { - (0, _index7.throwProtectedError)(token, formatString, dirtyDateString); - } - var firstCharacter = token[0]; - var parser2 = _index10.parsers[firstCharacter]; - if (parser2) { - var incompatibleTokens = parser2.incompatibleTokens; - if (Array.isArray(incompatibleTokens)) { - var incompatibleToken = usedTokens.find(function(usedToken) { - return incompatibleTokens.includes(usedToken.token) || usedToken.token === firstCharacter; - }); - if (incompatibleToken) { - throw new RangeError("The format string mustn't contain `".concat(incompatibleToken.fullToken, "` and `").concat(token, "` at the same time")); - } - } else if (parser2.incompatibleTokens === "*" && usedTokens.length > 0) { - throw new RangeError("The format string mustn't contain `".concat(token, "` and any other token at the same time")); - } - usedTokens.push({ - token: firstCharacter, - fullToken: token - }); - var parseResult = parser2.run(dateString, token, locale.match, subFnOptions); - if (!parseResult) { - return { - v: /* @__PURE__ */ new Date(NaN) - }; - } - setters.push(parseResult.setter); - dateString = parseResult.rest; - } else { - if (firstCharacter.match(unescapedLatinCharacterRegExp)) { - throw new RangeError("Format string contains an unescaped latin alphabet character `" + firstCharacter + "`"); - } - if (token === "''") { - token = "'"; - } else if (firstCharacter === "'") { - token = cleanEscapedString(token); - } - if (dateString.indexOf(token) === 0) { - dateString = dateString.slice(token.length); - } else { - return { - v: /* @__PURE__ */ new Date(NaN) - }; - } - } - }; - for (_iterator.s(); !(_step = _iterator.n()).done; ) { - var _ret = _loop(); - if ((0, _typeof2.default)(_ret) === "object") - return _ret.v; - } - } catch (err3) { - _iterator.e(err3); - } finally { - _iterator.f(); - } - if (dateString.length > 0 && notWhitespaceRegExp.test(dateString)) { - return /* @__PURE__ */ new Date(NaN); - } - var uniquePrioritySetters = setters.map(function(setter2) { - return setter2.priority; - }).sort(function(a, b) { - return b - a; - }).filter(function(priority, index, array) { - return array.indexOf(priority) === index; - }).map(function(priority) { - return setters.filter(function(setter2) { - return setter2.priority === priority; - }).sort(function(a, b) { - return b.subPriority - a.subPriority; - }); - }).map(function(setterArray) { - return setterArray[0]; - }); - var date = (0, _index3.default)(dirtyReferenceDate); - if (isNaN(date.getTime())) { - return /* @__PURE__ */ new Date(NaN); - } - var utcDate = (0, _index2.default)(date, (0, _index6.default)(date)); - var flags2 = {}; - var _iterator2 = (0, _createForOfIteratorHelper2.default)(uniquePrioritySetters), _step2; - try { - for (_iterator2.s(); !(_step2 = _iterator2.n()).done; ) { - var setter = _step2.value; - if (!setter.validate(utcDate, subFnOptions)) { - return /* @__PURE__ */ new Date(NaN); - } - var result = setter.set(utcDate, flags2, subFnOptions); - if (Array.isArray(result)) { - utcDate = result[0]; - (0, _index4.default)(flags2, result[1]); - } else { - utcDate = result; - } - } - } catch (err3) { - _iterator2.e(err3); - } finally { - _iterator2.f(); - } - return utcDate; - } - function cleanEscapedString(input) { - return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'"); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isMatch/index.js -var require_isMatch = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isMatch/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isMatch; - var _index = _interopRequireDefault(require_parse()); - var _index2 = _interopRequireDefault(require_isValid()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function isMatch(dateString, formatString, options2) { - (0, _index3.default)(2, arguments); - return (0, _index2.default)((0, _index.default)(dateString, formatString, /* @__PURE__ */ new Date(), options2)); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isMonday/index.js -var require_isMonday = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isMonday/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isMonday; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function isMonday(date) { - (0, _index2.default)(1, arguments); - return (0, _index.default)(date).getDay() === 1; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isPast/index.js -var require_isPast = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isPast/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isPast; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function isPast(dirtyDate) { - (0, _index2.default)(1, arguments); - return (0, _index.default)(dirtyDate).getTime() < Date.now(); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/startOfHour/index.js -var require_startOfHour = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/startOfHour/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = startOfHour; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function startOfHour(dirtyDate) { - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - date.setMinutes(0, 0, 0); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isSameHour/index.js -var require_isSameHour = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isSameHour/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isSameHour; - var _index = _interopRequireDefault(require_startOfHour()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function isSameHour(dirtyDateLeft, dirtyDateRight) { - (0, _index2.default)(2, arguments); - var dateLeftStartOfHour = (0, _index.default)(dirtyDateLeft); - var dateRightStartOfHour = (0, _index.default)(dirtyDateRight); - return dateLeftStartOfHour.getTime() === dateRightStartOfHour.getTime(); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isSameWeek/index.js -var require_isSameWeek = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isSameWeek/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isSameWeek; - var _index = _interopRequireDefault(require_startOfWeek()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function isSameWeek(dirtyDateLeft, dirtyDateRight, options2) { - (0, _index2.default)(2, arguments); - var dateLeftStartOfWeek = (0, _index.default)(dirtyDateLeft, options2); - var dateRightStartOfWeek = (0, _index.default)(dirtyDateRight, options2); - return dateLeftStartOfWeek.getTime() === dateRightStartOfWeek.getTime(); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isSameISOWeek/index.js -var require_isSameISOWeek = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isSameISOWeek/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isSameISOWeek; - var _index = _interopRequireDefault(require_isSameWeek()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function isSameISOWeek(dirtyDateLeft, dirtyDateRight) { - (0, _index2.default)(2, arguments); - return (0, _index.default)(dirtyDateLeft, dirtyDateRight, { - weekStartsOn: 1 - }); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isSameISOWeekYear/index.js -var require_isSameISOWeekYear = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isSameISOWeekYear/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isSameISOWeekYear; - var _index = _interopRequireDefault(require_startOfISOWeekYear()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function isSameISOWeekYear(dirtyDateLeft, dirtyDateRight) { - (0, _index2.default)(2, arguments); - var dateLeftStartOfYear = (0, _index.default)(dirtyDateLeft); - var dateRightStartOfYear = (0, _index.default)(dirtyDateRight); - return dateLeftStartOfYear.getTime() === dateRightStartOfYear.getTime(); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isSameMinute/index.js -var require_isSameMinute = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isSameMinute/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isSameMinute; - var _index = _interopRequireDefault(require_startOfMinute()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function isSameMinute(dirtyDateLeft, dirtyDateRight) { - (0, _index2.default)(2, arguments); - var dateLeftStartOfMinute = (0, _index.default)(dirtyDateLeft); - var dateRightStartOfMinute = (0, _index.default)(dirtyDateRight); - return dateLeftStartOfMinute.getTime() === dateRightStartOfMinute.getTime(); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isSameMonth/index.js -var require_isSameMonth = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isSameMonth/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isSameMonth; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function isSameMonth(dirtyDateLeft, dirtyDateRight) { - (0, _index2.default)(2, arguments); - var dateLeft = (0, _index.default)(dirtyDateLeft); - var dateRight = (0, _index.default)(dirtyDateRight); - return dateLeft.getFullYear() === dateRight.getFullYear() && dateLeft.getMonth() === dateRight.getMonth(); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isSameQuarter/index.js -var require_isSameQuarter = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isSameQuarter/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isSameQuarter; - var _index = _interopRequireDefault(require_startOfQuarter()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function isSameQuarter(dirtyDateLeft, dirtyDateRight) { - (0, _index2.default)(2, arguments); - var dateLeftStartOfQuarter = (0, _index.default)(dirtyDateLeft); - var dateRightStartOfQuarter = (0, _index.default)(dirtyDateRight); - return dateLeftStartOfQuarter.getTime() === dateRightStartOfQuarter.getTime(); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/startOfSecond/index.js -var require_startOfSecond = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/startOfSecond/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = startOfSecond; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function startOfSecond(dirtyDate) { - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - date.setMilliseconds(0); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isSameSecond/index.js -var require_isSameSecond = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isSameSecond/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isSameSecond; - var _index = _interopRequireDefault(require_startOfSecond()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function isSameSecond(dirtyDateLeft, dirtyDateRight) { - (0, _index2.default)(2, arguments); - var dateLeftStartOfSecond = (0, _index.default)(dirtyDateLeft); - var dateRightStartOfSecond = (0, _index.default)(dirtyDateRight); - return dateLeftStartOfSecond.getTime() === dateRightStartOfSecond.getTime(); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isSameYear/index.js -var require_isSameYear = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isSameYear/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isSameYear; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function isSameYear(dirtyDateLeft, dirtyDateRight) { - (0, _index2.default)(2, arguments); - var dateLeft = (0, _index.default)(dirtyDateLeft); - var dateRight = (0, _index.default)(dirtyDateRight); - return dateLeft.getFullYear() === dateRight.getFullYear(); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isThisHour/index.js -var require_isThisHour = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isThisHour/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isThisHour; - var _index = _interopRequireDefault(require_isSameHour()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function isThisHour(dirtyDate) { - (0, _index2.default)(1, arguments); - return (0, _index.default)(Date.now(), dirtyDate); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isThisISOWeek/index.js -var require_isThisISOWeek = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isThisISOWeek/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isThisISOWeek; - var _index = _interopRequireDefault(require_isSameISOWeek()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function isThisISOWeek(dirtyDate) { - (0, _index2.default)(1, arguments); - return (0, _index.default)(dirtyDate, Date.now()); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isThisMinute/index.js -var require_isThisMinute = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isThisMinute/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isThisMinute; - var _index = _interopRequireDefault(require_isSameMinute()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function isThisMinute(dirtyDate) { - (0, _index2.default)(1, arguments); - return (0, _index.default)(Date.now(), dirtyDate); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isThisMonth/index.js -var require_isThisMonth = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isThisMonth/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isThisMonth; - var _index = _interopRequireDefault(require_isSameMonth()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function isThisMonth(dirtyDate) { - (0, _index2.default)(1, arguments); - return (0, _index.default)(Date.now(), dirtyDate); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isThisQuarter/index.js -var require_isThisQuarter = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isThisQuarter/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isThisQuarter; - var _index = _interopRequireDefault(require_isSameQuarter()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function isThisQuarter(dirtyDate) { - (0, _index2.default)(1, arguments); - return (0, _index.default)(Date.now(), dirtyDate); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isThisSecond/index.js -var require_isThisSecond = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isThisSecond/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isThisSecond; - var _index = _interopRequireDefault(require_isSameSecond()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function isThisSecond(dirtyDate) { - (0, _index2.default)(1, arguments); - return (0, _index.default)(Date.now(), dirtyDate); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isThisWeek/index.js -var require_isThisWeek = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isThisWeek/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isThisWeek; - var _index = _interopRequireDefault(require_isSameWeek()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function isThisWeek(dirtyDate, options2) { - (0, _index2.default)(1, arguments); - return (0, _index.default)(dirtyDate, Date.now(), options2); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isThisYear/index.js -var require_isThisYear = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isThisYear/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isThisYear; - var _index = _interopRequireDefault(require_isSameYear()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function isThisYear(dirtyDate) { - (0, _index2.default)(1, arguments); - return (0, _index.default)(dirtyDate, Date.now()); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isThursday/index.js -var require_isThursday = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isThursday/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isThursday; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function isThursday(dirtyDate) { - (0, _index2.default)(1, arguments); - return (0, _index.default)(dirtyDate).getDay() === 4; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isToday/index.js -var require_isToday = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isToday/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isToday; - var _index = _interopRequireDefault(require_isSameDay()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function isToday(dirtyDate) { - (0, _index2.default)(1, arguments); - return (0, _index.default)(dirtyDate, Date.now()); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isTomorrow/index.js -var require_isTomorrow = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isTomorrow/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isTomorrow; - var _index = _interopRequireDefault(require_addDays()); - var _index2 = _interopRequireDefault(require_isSameDay()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function isTomorrow(dirtyDate) { - (0, _index3.default)(1, arguments); - return (0, _index2.default)(dirtyDate, (0, _index.default)(Date.now(), 1)); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isTuesday/index.js -var require_isTuesday = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isTuesday/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isTuesday; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function isTuesday(dirtyDate) { - (0, _index2.default)(1, arguments); - return (0, _index.default)(dirtyDate).getDay() === 2; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isWednesday/index.js -var require_isWednesday = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isWednesday/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isWednesday; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function isWednesday(dirtyDate) { - (0, _index2.default)(1, arguments); - return (0, _index.default)(dirtyDate).getDay() === 3; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isWithinInterval/index.js -var require_isWithinInterval = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isWithinInterval/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isWithinInterval; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function isWithinInterval(dirtyDate, interval) { - (0, _index2.default)(2, arguments); - var time = (0, _index.default)(dirtyDate).getTime(); - var startTime = (0, _index.default)(interval.start).getTime(); - var endTime = (0, _index.default)(interval.end).getTime(); - if (!(startTime <= endTime)) { - throw new RangeError("Invalid interval"); - } - return time >= startTime && time <= endTime; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/subDays/index.js -var require_subDays = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/subDays/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = subDays; - var _index = _interopRequireDefault(require_addDays()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - var _index3 = _interopRequireDefault(require_toInteger()); - function subDays(dirtyDate, dirtyAmount) { - (0, _index2.default)(2, arguments); - var amount = (0, _index3.default)(dirtyAmount); - return (0, _index.default)(dirtyDate, -amount); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isYesterday/index.js -var require_isYesterday = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/isYesterday/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = isYesterday; - var _index = _interopRequireDefault(require_isSameDay()); - var _index2 = _interopRequireDefault(require_subDays()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function isYesterday(dirtyDate) { - (0, _index3.default)(1, arguments); - return (0, _index.default)(dirtyDate, (0, _index2.default)(Date.now(), 1)); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/lastDayOfDecade/index.js -var require_lastDayOfDecade = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/lastDayOfDecade/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = lastDayOfDecade; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function lastDayOfDecade(dirtyDate) { - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - var year = date.getFullYear(); - var decade = 9 + Math.floor(year / 10) * 10; - date.setFullYear(decade + 1, 0, 0); - date.setHours(0, 0, 0, 0); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/lastDayOfWeek/index.js -var require_lastDayOfWeek = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/lastDayOfWeek/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = lastDayOfWeek; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_toInteger()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - var _index4 = require_defaultOptions(); - function lastDayOfWeek(dirtyDate, options2) { - var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; - (0, _index3.default)(1, arguments); - var defaultOptions = (0, _index4.getDefaultOptions)(); - var weekStartsOn = (0, _index2.default)((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options2 === null || options2 === void 0 ? void 0 : options2.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options2 === null || options2 === void 0 ? void 0 : (_options$locale = options2.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); - if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { - throw new RangeError("weekStartsOn must be between 0 and 6"); - } - var date = (0, _index.default)(dirtyDate); - var day = date.getDay(); - var diff2 = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn); - date.setHours(0, 0, 0, 0); - date.setDate(date.getDate() + diff2); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/lastDayOfISOWeek/index.js -var require_lastDayOfISOWeek = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/lastDayOfISOWeek/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = lastDayOfISOWeek; - var _index = _interopRequireDefault(require_lastDayOfWeek()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function lastDayOfISOWeek(dirtyDate) { - (0, _index2.default)(1, arguments); - return (0, _index.default)(dirtyDate, { - weekStartsOn: 1 - }); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/lastDayOfISOWeekYear/index.js -var require_lastDayOfISOWeekYear = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/lastDayOfISOWeekYear/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = lastDayOfISOWeekYear; - var _index = _interopRequireDefault(require_getISOWeekYear()); - var _index2 = _interopRequireDefault(require_startOfISOWeek()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function lastDayOfISOWeekYear(dirtyDate) { - (0, _index3.default)(1, arguments); - var year = (0, _index.default)(dirtyDate); - var fourthOfJanuary = /* @__PURE__ */ new Date(0); - fourthOfJanuary.setFullYear(year + 1, 0, 4); - fourthOfJanuary.setHours(0, 0, 0, 0); - var date = (0, _index2.default)(fourthOfJanuary); - date.setDate(date.getDate() - 1); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/lastDayOfQuarter/index.js -var require_lastDayOfQuarter = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/lastDayOfQuarter/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = lastDayOfQuarter; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function lastDayOfQuarter(dirtyDate) { - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - var currentMonth = date.getMonth(); - var month = currentMonth - currentMonth % 3 + 3; - date.setMonth(month, 0); - date.setHours(0, 0, 0, 0); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/lastDayOfYear/index.js -var require_lastDayOfYear = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/lastDayOfYear/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = lastDayOfYear; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function lastDayOfYear(dirtyDate) { - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - var year = date.getFullYear(); - date.setFullYear(year + 1, 0, 0); - date.setHours(0, 0, 0, 0); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/lightFormat/index.js -var require_lightFormat = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/lightFormat/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = lightFormat; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_lightFormatters()); - var _index3 = _interopRequireDefault(require_getTimezoneOffsetInMilliseconds()); - var _index4 = _interopRequireDefault(require_isValid()); - var _index5 = _interopRequireDefault(require_subMilliseconds()); - var _index6 = _interopRequireDefault(require_requiredArgs()); - var formattingTokensRegExp = /(\w)\1*|''|'(''|[^'])+('|$)|./g; - var escapedStringRegExp = /^'([^]*?)'?$/; - var doubleQuoteRegExp = /''/g; - var unescapedLatinCharacterRegExp = /[a-zA-Z]/; - function lightFormat(dirtyDate, formatStr) { - (0, _index6.default)(2, arguments); - var originalDate = (0, _index.default)(dirtyDate); - if (!(0, _index4.default)(originalDate)) { - throw new RangeError("Invalid time value"); - } - var timezoneOffset = (0, _index3.default)(originalDate); - var utcDate = (0, _index5.default)(originalDate, timezoneOffset); - var tokens = formatStr.match(formattingTokensRegExp); - if (!tokens) - return ""; - var result = tokens.map(function(substring) { - if (substring === "''") { - return "'"; - } - var firstCharacter = substring[0]; - if (firstCharacter === "'") { - return cleanEscapedString(substring); - } - var formatter = _index2.default[firstCharacter]; - if (formatter) { - return formatter(utcDate, substring); - } - if (firstCharacter.match(unescapedLatinCharacterRegExp)) { - throw new RangeError("Format string contains an unescaped latin alphabet character `" + firstCharacter + "`"); - } - return substring; - }).join(""); - return result; - } - function cleanEscapedString(input) { - var matches = input.match(escapedStringRegExp); - if (!matches) { - return input; - } - return matches[1].replace(doubleQuoteRegExp, "'"); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/milliseconds/index.js -var require_milliseconds = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/milliseconds/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = milliseconds; - var _index = _interopRequireDefault(require_requiredArgs()); - var daysInYear = 365.2425; - function milliseconds(_ref) { - var years = _ref.years, months = _ref.months, weeks = _ref.weeks, days = _ref.days, hours = _ref.hours, minutes = _ref.minutes, seconds = _ref.seconds; - (0, _index.default)(1, arguments); - var totalDays = 0; - if (years) - totalDays += years * daysInYear; - if (months) - totalDays += months * (daysInYear / 12); - if (weeks) - totalDays += weeks * 7; - if (days) - totalDays += days; - var totalSeconds = totalDays * 24 * 60 * 60; - if (hours) - totalSeconds += hours * 60 * 60; - if (minutes) - totalSeconds += minutes * 60; - if (seconds) - totalSeconds += seconds; - return Math.round(totalSeconds * 1e3); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/millisecondsToHours/index.js -var require_millisecondsToHours = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/millisecondsToHours/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = millisecondsToHours; - var _index = _interopRequireDefault(require_requiredArgs()); - var _index2 = require_constants(); - function millisecondsToHours(milliseconds) { - (0, _index.default)(1, arguments); - var hours = milliseconds / _index2.millisecondsInHour; - return Math.floor(hours); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/millisecondsToMinutes/index.js -var require_millisecondsToMinutes = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/millisecondsToMinutes/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = millisecondsToMinutes; - var _index = _interopRequireDefault(require_requiredArgs()); - var _index2 = require_constants(); - function millisecondsToMinutes(milliseconds) { - (0, _index.default)(1, arguments); - var minutes = milliseconds / _index2.millisecondsInMinute; - return Math.floor(minutes); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/millisecondsToSeconds/index.js -var require_millisecondsToSeconds = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/millisecondsToSeconds/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = millisecondsToSeconds; - var _index = _interopRequireDefault(require_requiredArgs()); - var _index2 = require_constants(); - function millisecondsToSeconds(milliseconds) { - (0, _index.default)(1, arguments); - var seconds = milliseconds / _index2.millisecondsInSecond; - return Math.floor(seconds); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/minutesToHours/index.js -var require_minutesToHours = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/minutesToHours/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = minutesToHours; - var _index = _interopRequireDefault(require_requiredArgs()); - var _index2 = require_constants(); - function minutesToHours(minutes) { - (0, _index.default)(1, arguments); - var hours = minutes / _index2.minutesInHour; - return Math.floor(hours); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/minutesToMilliseconds/index.js -var require_minutesToMilliseconds = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/minutesToMilliseconds/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = minutesToMilliseconds; - var _index = _interopRequireDefault(require_requiredArgs()); - var _index2 = require_constants(); - function minutesToMilliseconds(minutes) { - (0, _index.default)(1, arguments); - return Math.floor(minutes * _index2.millisecondsInMinute); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/minutesToSeconds/index.js -var require_minutesToSeconds = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/minutesToSeconds/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = minutesToSeconds; - var _index = _interopRequireDefault(require_requiredArgs()); - var _index2 = require_constants(); - function minutesToSeconds(minutes) { - (0, _index.default)(1, arguments); - return Math.floor(minutes * _index2.secondsInMinute); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/monthsToQuarters/index.js -var require_monthsToQuarters = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/monthsToQuarters/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = monthsToQuarters; - var _index = _interopRequireDefault(require_requiredArgs()); - var _index2 = require_constants(); - function monthsToQuarters(months) { - (0, _index.default)(1, arguments); - var quarters = months / _index2.monthsInQuarter; - return Math.floor(quarters); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/monthsToYears/index.js -var require_monthsToYears = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/monthsToYears/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = monthsToYears; - var _index = _interopRequireDefault(require_requiredArgs()); - var _index2 = require_constants(); - function monthsToYears(months) { - (0, _index.default)(1, arguments); - var years = months / _index2.monthsInYear; - return Math.floor(years); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/nextDay/index.js -var require_nextDay = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/nextDay/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = nextDay; - var _index = _interopRequireDefault(require_addDays()); - var _index2 = _interopRequireDefault(require_getDay()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function nextDay(date, day) { - (0, _index3.default)(2, arguments); - var delta = day - (0, _index2.default)(date); - if (delta <= 0) - delta += 7; - return (0, _index.default)(date, delta); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/nextFriday/index.js -var require_nextFriday = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/nextFriday/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = nextFriday; - var _index = _interopRequireDefault(require_nextDay()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function nextFriday(date) { - (0, _index2.default)(1, arguments); - return (0, _index.default)(date, 5); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/nextMonday/index.js -var require_nextMonday = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/nextMonday/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = nextMonday; - var _index = _interopRequireDefault(require_nextDay()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function nextMonday(date) { - (0, _index2.default)(1, arguments); - return (0, _index.default)(date, 1); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/nextSaturday/index.js -var require_nextSaturday = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/nextSaturday/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = nextSaturday; - var _index = _interopRequireDefault(require_nextDay()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function nextSaturday(date) { - (0, _index2.default)(1, arguments); - return (0, _index.default)(date, 6); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/nextSunday/index.js -var require_nextSunday = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/nextSunday/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = nextSunday; - var _index = _interopRequireDefault(require_nextDay()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function nextSunday(date) { - (0, _index2.default)(1, arguments); - return (0, _index.default)(date, 0); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/nextThursday/index.js -var require_nextThursday = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/nextThursday/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = nextThursday; - var _index = _interopRequireDefault(require_nextDay()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function nextThursday(date) { - (0, _index2.default)(1, arguments); - return (0, _index.default)(date, 4); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/nextTuesday/index.js -var require_nextTuesday = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/nextTuesday/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = nextTuesday; - var _index = _interopRequireDefault(require_nextDay()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function nextTuesday(date) { - (0, _index2.default)(1, arguments); - return (0, _index.default)(date, 2); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/nextWednesday/index.js -var require_nextWednesday = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/nextWednesday/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = nextWednesday; - var _index = _interopRequireDefault(require_nextDay()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function nextWednesday(date) { - (0, _index2.default)(1, arguments); - return (0, _index.default)(date, 3); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parseISO/index.js -var require_parseISO = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parseISO/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = parseISO; - var _index = require_constants(); - var _index2 = _interopRequireDefault(require_requiredArgs()); - var _index3 = _interopRequireDefault(require_toInteger()); - function parseISO(argument, options2) { - var _options$additionalDi; - (0, _index2.default)(1, arguments); - var additionalDigits = (0, _index3.default)((_options$additionalDi = options2 === null || options2 === void 0 ? void 0 : options2.additionalDigits) !== null && _options$additionalDi !== void 0 ? _options$additionalDi : 2); - if (additionalDigits !== 2 && additionalDigits !== 1 && additionalDigits !== 0) { - throw new RangeError("additionalDigits must be 0, 1 or 2"); - } - if (!(typeof argument === "string" || Object.prototype.toString.call(argument) === "[object String]")) { - return /* @__PURE__ */ new Date(NaN); - } - var dateStrings = splitDateString(argument); - var date; - if (dateStrings.date) { - var parseYearResult = parseYear(dateStrings.date, additionalDigits); - date = parseDate(parseYearResult.restDateString, parseYearResult.year); - } - if (!date || isNaN(date.getTime())) { - return /* @__PURE__ */ new Date(NaN); - } - var timestamp = date.getTime(); - var time = 0; - var offset; - if (dateStrings.time) { - time = parseTime(dateStrings.time); - if (isNaN(time)) { - return /* @__PURE__ */ new Date(NaN); - } - } - if (dateStrings.timezone) { - offset = parseTimezone(dateStrings.timezone); - if (isNaN(offset)) { - return /* @__PURE__ */ new Date(NaN); - } - } else { - var dirtyDate = new Date(timestamp + time); - var result = /* @__PURE__ */ new Date(0); - result.setFullYear(dirtyDate.getUTCFullYear(), dirtyDate.getUTCMonth(), dirtyDate.getUTCDate()); - result.setHours(dirtyDate.getUTCHours(), dirtyDate.getUTCMinutes(), dirtyDate.getUTCSeconds(), dirtyDate.getUTCMilliseconds()); - return result; - } - return new Date(timestamp + time + offset); - } - var patterns = { - dateTimeDelimiter: /[T ]/, - timeZoneDelimiter: /[Z ]/i, - timezone: /([Z+-].*)$/ - }; - var dateRegex = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/; - var timeRegex = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/; - var timezoneRegex = /^([+-])(\d{2})(?::?(\d{2}))?$/; - function splitDateString(dateString) { - var dateStrings = {}; - var array = dateString.split(patterns.dateTimeDelimiter); - var timeString; - if (array.length > 2) { - return dateStrings; - } - if (/:/.test(array[0])) { - timeString = array[0]; - } else { - dateStrings.date = array[0]; - timeString = array[1]; - if (patterns.timeZoneDelimiter.test(dateStrings.date)) { - dateStrings.date = dateString.split(patterns.timeZoneDelimiter)[0]; - timeString = dateString.substr(dateStrings.date.length, dateString.length); - } - } - if (timeString) { - var token = patterns.timezone.exec(timeString); - if (token) { - dateStrings.time = timeString.replace(token[1], ""); - dateStrings.timezone = token[1]; - } else { - dateStrings.time = timeString; - } - } - return dateStrings; - } - function parseYear(dateString, additionalDigits) { - var regex = new RegExp("^(?:(\\d{4}|[+-]\\d{" + (4 + additionalDigits) + "})|(\\d{2}|[+-]\\d{" + (2 + additionalDigits) + "})$)"); - var captures = dateString.match(regex); - if (!captures) - return { - year: NaN, - restDateString: "" - }; - var year = captures[1] ? parseInt(captures[1]) : null; - var century = captures[2] ? parseInt(captures[2]) : null; - return { - year: century === null ? year : century * 100, - restDateString: dateString.slice((captures[1] || captures[2]).length) - }; - } - function parseDate(dateString, year) { - if (year === null) - return /* @__PURE__ */ new Date(NaN); - var captures = dateString.match(dateRegex); - if (!captures) - return /* @__PURE__ */ new Date(NaN); - var isWeekDate = !!captures[4]; - var dayOfYear = parseDateUnit(captures[1]); - var month = parseDateUnit(captures[2]) - 1; - var day = parseDateUnit(captures[3]); - var week = parseDateUnit(captures[4]); - var dayOfWeek = parseDateUnit(captures[5]) - 1; - if (isWeekDate) { - if (!validateWeekDate(year, week, dayOfWeek)) { - return /* @__PURE__ */ new Date(NaN); - } - return dayOfISOWeekYear(year, week, dayOfWeek); - } else { - var date = /* @__PURE__ */ new Date(0); - if (!validateDate(year, month, day) || !validateDayOfYearDate(year, dayOfYear)) { - return /* @__PURE__ */ new Date(NaN); - } - date.setUTCFullYear(year, month, Math.max(dayOfYear, day)); - return date; - } - } - function parseDateUnit(value) { - return value ? parseInt(value) : 1; - } - function parseTime(timeString) { - var captures = timeString.match(timeRegex); - if (!captures) - return NaN; - var hours = parseTimeUnit(captures[1]); - var minutes = parseTimeUnit(captures[2]); - var seconds = parseTimeUnit(captures[3]); - if (!validateTime(hours, minutes, seconds)) { - return NaN; - } - return hours * _index.millisecondsInHour + minutes * _index.millisecondsInMinute + seconds * 1e3; - } - function parseTimeUnit(value) { - return value && parseFloat(value.replace(",", ".")) || 0; - } - function parseTimezone(timezoneString) { - if (timezoneString === "Z") - return 0; - var captures = timezoneString.match(timezoneRegex); - if (!captures) - return 0; - var sign = captures[1] === "+" ? -1 : 1; - var hours = parseInt(captures[2]); - var minutes = captures[3] && parseInt(captures[3]) || 0; - if (!validateTimezone(hours, minutes)) { - return NaN; - } - return sign * (hours * _index.millisecondsInHour + minutes * _index.millisecondsInMinute); - } - function dayOfISOWeekYear(isoWeekYear, week, day) { - var date = /* @__PURE__ */ new Date(0); - date.setUTCFullYear(isoWeekYear, 0, 4); - var fourthOfJanuaryDay = date.getUTCDay() || 7; - var diff2 = (week - 1) * 7 + day + 1 - fourthOfJanuaryDay; - date.setUTCDate(date.getUTCDate() + diff2); - return date; - } - var daysInMonths = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; - function isLeapYearIndex(year) { - return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0; - } - function validateDate(year, month, date) { - return month >= 0 && month <= 11 && date >= 1 && date <= (daysInMonths[month] || (isLeapYearIndex(year) ? 29 : 28)); - } - function validateDayOfYearDate(year, dayOfYear) { - return dayOfYear >= 1 && dayOfYear <= (isLeapYearIndex(year) ? 366 : 365); - } - function validateWeekDate(_year, week, day) { - return week >= 1 && week <= 53 && day >= 0 && day <= 6; - } - function validateTime(hours, minutes, seconds) { - if (hours === 24) { - return minutes === 0 && seconds === 0; - } - return seconds >= 0 && seconds < 60 && minutes >= 0 && minutes < 60 && hours >= 0 && hours < 25; - } - function validateTimezone(_hours, minutes) { - return minutes >= 0 && minutes <= 59; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parseJSON/index.js -var require_parseJSON = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/parseJSON/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = parseJSON2; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function parseJSON2(argument) { - (0, _index2.default)(1, arguments); - if (typeof argument === "string") { - var parts = argument.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/); - if (parts) { - return new Date(Date.UTC(+parts[1], +parts[2] - 1, +parts[3], +parts[4] - (+parts[9] || 0) * (parts[8] == "-" ? -1 : 1), +parts[5] - (+parts[10] || 0) * (parts[8] == "-" ? -1 : 1), +parts[6], +((parts[7] || "0") + "00").substring(0, 3))); - } - return /* @__PURE__ */ new Date(NaN); - } - return (0, _index.default)(argument); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/previousDay/index.js -var require_previousDay = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/previousDay/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = previousDay; - var _index = _interopRequireDefault(require_requiredArgs()); - var _index2 = _interopRequireDefault(require_getDay()); - var _index3 = _interopRequireDefault(require_subDays()); - function previousDay(date, day) { - (0, _index.default)(2, arguments); - var delta = (0, _index2.default)(date) - day; - if (delta <= 0) - delta += 7; - return (0, _index3.default)(date, delta); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/previousFriday/index.js -var require_previousFriday = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/previousFriday/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = previousFriday; - var _index = _interopRequireDefault(require_requiredArgs()); - var _index2 = _interopRequireDefault(require_previousDay()); - function previousFriday(date) { - (0, _index.default)(1, arguments); - return (0, _index2.default)(date, 5); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/previousMonday/index.js -var require_previousMonday = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/previousMonday/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = previousMonday; - var _index = _interopRequireDefault(require_requiredArgs()); - var _index2 = _interopRequireDefault(require_previousDay()); - function previousMonday(date) { - (0, _index.default)(1, arguments); - return (0, _index2.default)(date, 1); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/previousSaturday/index.js -var require_previousSaturday = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/previousSaturday/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = previousSaturday; - var _index = _interopRequireDefault(require_requiredArgs()); - var _index2 = _interopRequireDefault(require_previousDay()); - function previousSaturday(date) { - (0, _index.default)(1, arguments); - return (0, _index2.default)(date, 6); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/previousSunday/index.js -var require_previousSunday = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/previousSunday/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = previousSunday; - var _index = _interopRequireDefault(require_requiredArgs()); - var _index2 = _interopRequireDefault(require_previousDay()); - function previousSunday(date) { - (0, _index.default)(1, arguments); - return (0, _index2.default)(date, 0); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/previousThursday/index.js -var require_previousThursday = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/previousThursday/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = previousThursday; - var _index = _interopRequireDefault(require_requiredArgs()); - var _index2 = _interopRequireDefault(require_previousDay()); - function previousThursday(date) { - (0, _index.default)(1, arguments); - return (0, _index2.default)(date, 4); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/previousTuesday/index.js -var require_previousTuesday = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/previousTuesday/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = previousTuesday; - var _index = _interopRequireDefault(require_requiredArgs()); - var _index2 = _interopRequireDefault(require_previousDay()); - function previousTuesday(date) { - (0, _index.default)(1, arguments); - return (0, _index2.default)(date, 2); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/previousWednesday/index.js -var require_previousWednesday = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/previousWednesday/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = previousWednesday; - var _index = _interopRequireDefault(require_requiredArgs()); - var _index2 = _interopRequireDefault(require_previousDay()); - function previousWednesday(date) { - (0, _index.default)(1, arguments); - return (0, _index2.default)(date, 3); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/quartersToMonths/index.js -var require_quartersToMonths = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/quartersToMonths/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = quartersToMonths; - var _index = _interopRequireDefault(require_requiredArgs()); - var _index2 = require_constants(); - function quartersToMonths(quarters) { - (0, _index.default)(1, arguments); - return Math.floor(quarters * _index2.monthsInQuarter); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/quartersToYears/index.js -var require_quartersToYears = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/quartersToYears/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = quartersToYears; - var _index = _interopRequireDefault(require_requiredArgs()); - var _index2 = require_constants(); - function quartersToYears(quarters) { - (0, _index.default)(1, arguments); - var years = quarters / _index2.quartersInYear; - return Math.floor(years); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/roundToNearestMinutes/index.js -var require_roundToNearestMinutes = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/roundToNearestMinutes/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = roundToNearestMinutes; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = require_roundingMethods(); - var _index3 = _interopRequireDefault(require_toInteger()); - function roundToNearestMinutes(dirtyDate, options2) { - var _options$nearestTo; - if (arguments.length < 1) { - throw new TypeError("1 argument required, but only none provided present"); - } - var nearestTo = (0, _index3.default)((_options$nearestTo = options2 === null || options2 === void 0 ? void 0 : options2.nearestTo) !== null && _options$nearestTo !== void 0 ? _options$nearestTo : 1); - if (nearestTo < 1 || nearestTo > 30) { - throw new RangeError("`options.nearestTo` must be between 1 and 30"); - } - var date = (0, _index.default)(dirtyDate); - var seconds = date.getSeconds(); - var minutes = date.getMinutes() + seconds / 60; - var roundingMethod = (0, _index2.getRoundingMethod)(options2 === null || options2 === void 0 ? void 0 : options2.roundingMethod); - var roundedMinutes = roundingMethod(minutes / nearestTo) * nearestTo; - var remainderMinutes = minutes % nearestTo; - var addedMinutes = Math.round(remainderMinutes / nearestTo) * nearestTo; - return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), roundedMinutes + addedMinutes); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/secondsToHours/index.js -var require_secondsToHours = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/secondsToHours/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = secondsToHours; - var _index = _interopRequireDefault(require_requiredArgs()); - var _index2 = require_constants(); - function secondsToHours(seconds) { - (0, _index.default)(1, arguments); - var hours = seconds / _index2.secondsInHour; - return Math.floor(hours); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/secondsToMilliseconds/index.js -var require_secondsToMilliseconds = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/secondsToMilliseconds/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = secondsToMilliseconds; - var _index = _interopRequireDefault(require_requiredArgs()); - var _index2 = require_constants(); - function secondsToMilliseconds(seconds) { - (0, _index.default)(1, arguments); - return seconds * _index2.millisecondsInSecond; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/secondsToMinutes/index.js -var require_secondsToMinutes = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/secondsToMinutes/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = secondsToMinutes; - var _index = _interopRequireDefault(require_requiredArgs()); - var _index2 = require_constants(); - function secondsToMinutes(seconds) { - (0, _index.default)(1, arguments); - var minutes = seconds / _index2.secondsInMinute; - return Math.floor(minutes); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/setMonth/index.js -var require_setMonth = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/setMonth/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = setMonth; - var _index = _interopRequireDefault(require_toInteger()); - var _index2 = _interopRequireDefault(require_toDate()); - var _index3 = _interopRequireDefault(require_getDaysInMonth()); - var _index4 = _interopRequireDefault(require_requiredArgs()); - function setMonth(dirtyDate, dirtyMonth) { - (0, _index4.default)(2, arguments); - var date = (0, _index2.default)(dirtyDate); - var month = (0, _index.default)(dirtyMonth); - var year = date.getFullYear(); - var day = date.getDate(); - var dateWithDesiredMonth = /* @__PURE__ */ new Date(0); - dateWithDesiredMonth.setFullYear(year, month, 15); - dateWithDesiredMonth.setHours(0, 0, 0, 0); - var daysInMonth = (0, _index3.default)(dateWithDesiredMonth); - date.setMonth(month, Math.min(day, daysInMonth)); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/set/index.js -var require_set = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/set/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = set; - var _typeof2 = _interopRequireDefault(require_typeof()); - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_setMonth()); - var _index3 = _interopRequireDefault(require_toInteger()); - var _index4 = _interopRequireDefault(require_requiredArgs()); - function set(dirtyDate, values) { - (0, _index4.default)(2, arguments); - if ((0, _typeof2.default)(values) !== "object" || values === null) { - throw new RangeError("values parameter must be an object"); - } - var date = (0, _index.default)(dirtyDate); - if (isNaN(date.getTime())) { - return /* @__PURE__ */ new Date(NaN); - } - if (values.year != null) { - date.setFullYear(values.year); - } - if (values.month != null) { - date = (0, _index2.default)(date, values.month); - } - if (values.date != null) { - date.setDate((0, _index3.default)(values.date)); - } - if (values.hours != null) { - date.setHours((0, _index3.default)(values.hours)); - } - if (values.minutes != null) { - date.setMinutes((0, _index3.default)(values.minutes)); - } - if (values.seconds != null) { - date.setSeconds((0, _index3.default)(values.seconds)); - } - if (values.milliseconds != null) { - date.setMilliseconds((0, _index3.default)(values.milliseconds)); - } - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/setDate/index.js -var require_setDate = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/setDate/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = setDate; - var _index = _interopRequireDefault(require_toInteger()); - var _index2 = _interopRequireDefault(require_toDate()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function setDate(dirtyDate, dirtyDayOfMonth) { - (0, _index3.default)(2, arguments); - var date = (0, _index2.default)(dirtyDate); - var dayOfMonth = (0, _index.default)(dirtyDayOfMonth); - date.setDate(dayOfMonth); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/setDay/index.js -var require_setDay = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/setDay/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = setDay; - var _index = _interopRequireDefault(require_addDays()); - var _index2 = _interopRequireDefault(require_toDate()); - var _index3 = _interopRequireDefault(require_toInteger()); - var _index4 = _interopRequireDefault(require_requiredArgs()); - var _index5 = require_defaultOptions(); - function setDay(dirtyDate, dirtyDay, options2) { - var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; - (0, _index4.default)(2, arguments); - var defaultOptions = (0, _index5.getDefaultOptions)(); - var weekStartsOn = (0, _index3.default)((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options2 === null || options2 === void 0 ? void 0 : options2.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options2 === null || options2 === void 0 ? void 0 : (_options$locale = options2.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); - if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { - throw new RangeError("weekStartsOn must be between 0 and 6 inclusively"); - } - var date = (0, _index2.default)(dirtyDate); - var day = (0, _index3.default)(dirtyDay); - var currentDay = date.getDay(); - var remainder = day % 7; - var dayIndex = (remainder + 7) % 7; - var delta = 7 - weekStartsOn; - var diff2 = day < 0 || day > 6 ? day - (currentDay + delta) % 7 : (dayIndex + delta) % 7 - (currentDay + delta) % 7; - return (0, _index.default)(date, diff2); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/setDayOfYear/index.js -var require_setDayOfYear = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/setDayOfYear/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = setDayOfYear; - var _index = _interopRequireDefault(require_toInteger()); - var _index2 = _interopRequireDefault(require_toDate()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function setDayOfYear(dirtyDate, dirtyDayOfYear) { - (0, _index3.default)(2, arguments); - var date = (0, _index2.default)(dirtyDate); - var dayOfYear = (0, _index.default)(dirtyDayOfYear); - date.setMonth(0); - date.setDate(dayOfYear); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/setDefaultOptions/index.js -var require_setDefaultOptions = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/setDefaultOptions/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = setDefaultOptions; - var _index = require_defaultOptions(); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function setDefaultOptions(newOptions) { - (0, _index2.default)(1, arguments); - var result = {}; - var defaultOptions = (0, _index.getDefaultOptions)(); - for (var property in defaultOptions) { - if (Object.prototype.hasOwnProperty.call(defaultOptions, property)) { - ; - result[property] = defaultOptions[property]; - } - } - for (var _property in newOptions) { - if (Object.prototype.hasOwnProperty.call(newOptions, _property)) { - if (newOptions[_property] === void 0) { - delete result[_property]; - } else { - ; - result[_property] = newOptions[_property]; - } - } - } - (0, _index.setDefaultOptions)(result); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/setHours/index.js -var require_setHours = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/setHours/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = setHours; - var _index = _interopRequireDefault(require_toInteger()); - var _index2 = _interopRequireDefault(require_toDate()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function setHours(dirtyDate, dirtyHours) { - (0, _index3.default)(2, arguments); - var date = (0, _index2.default)(dirtyDate); - var hours = (0, _index.default)(dirtyHours); - date.setHours(hours); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/setISODay/index.js -var require_setISODay = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/setISODay/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = setISODay; - var _index = _interopRequireDefault(require_toInteger()); - var _index2 = _interopRequireDefault(require_toDate()); - var _index3 = _interopRequireDefault(require_addDays()); - var _index4 = _interopRequireDefault(require_getISODay()); - var _index5 = _interopRequireDefault(require_requiredArgs()); - function setISODay(dirtyDate, dirtyDay) { - (0, _index5.default)(2, arguments); - var date = (0, _index2.default)(dirtyDate); - var day = (0, _index.default)(dirtyDay); - var currentDay = (0, _index4.default)(date); - var diff2 = day - currentDay; - return (0, _index3.default)(date, diff2); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/setISOWeek/index.js -var require_setISOWeek = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/setISOWeek/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = setISOWeek; - var _index = _interopRequireDefault(require_toInteger()); - var _index2 = _interopRequireDefault(require_toDate()); - var _index3 = _interopRequireDefault(require_getISOWeek()); - var _index4 = _interopRequireDefault(require_requiredArgs()); - function setISOWeek(dirtyDate, dirtyISOWeek) { - (0, _index4.default)(2, arguments); - var date = (0, _index2.default)(dirtyDate); - var isoWeek = (0, _index.default)(dirtyISOWeek); - var diff2 = (0, _index3.default)(date) - isoWeek; - date.setDate(date.getDate() - diff2 * 7); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/setMilliseconds/index.js -var require_setMilliseconds = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/setMilliseconds/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = setMilliseconds; - var _index = _interopRequireDefault(require_toInteger()); - var _index2 = _interopRequireDefault(require_toDate()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function setMilliseconds(dirtyDate, dirtyMilliseconds) { - (0, _index3.default)(2, arguments); - var date = (0, _index2.default)(dirtyDate); - var milliseconds = (0, _index.default)(dirtyMilliseconds); - date.setMilliseconds(milliseconds); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/setMinutes/index.js -var require_setMinutes = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/setMinutes/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = setMinutes; - var _index = _interopRequireDefault(require_toInteger()); - var _index2 = _interopRequireDefault(require_toDate()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function setMinutes(dirtyDate, dirtyMinutes) { - (0, _index3.default)(2, arguments); - var date = (0, _index2.default)(dirtyDate); - var minutes = (0, _index.default)(dirtyMinutes); - date.setMinutes(minutes); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/setQuarter/index.js -var require_setQuarter = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/setQuarter/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = setQuarter; - var _index = _interopRequireDefault(require_toInteger()); - var _index2 = _interopRequireDefault(require_toDate()); - var _index3 = _interopRequireDefault(require_setMonth()); - var _index4 = _interopRequireDefault(require_requiredArgs()); - function setQuarter(dirtyDate, dirtyQuarter) { - (0, _index4.default)(2, arguments); - var date = (0, _index2.default)(dirtyDate); - var quarter = (0, _index.default)(dirtyQuarter); - var oldQuarter = Math.floor(date.getMonth() / 3) + 1; - var diff2 = quarter - oldQuarter; - return (0, _index3.default)(date, date.getMonth() + diff2 * 3); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/setSeconds/index.js -var require_setSeconds = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/setSeconds/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = setSeconds; - var _index = _interopRequireDefault(require_toInteger()); - var _index2 = _interopRequireDefault(require_toDate()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function setSeconds(dirtyDate, dirtySeconds) { - (0, _index3.default)(2, arguments); - var date = (0, _index2.default)(dirtyDate); - var seconds = (0, _index.default)(dirtySeconds); - date.setSeconds(seconds); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/setWeek/index.js -var require_setWeek = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/setWeek/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = setWeek; - var _index = _interopRequireDefault(require_getWeek()); - var _index2 = _interopRequireDefault(require_toDate()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - var _index4 = _interopRequireDefault(require_toInteger()); - function setWeek(dirtyDate, dirtyWeek, options2) { - (0, _index3.default)(2, arguments); - var date = (0, _index2.default)(dirtyDate); - var week = (0, _index4.default)(dirtyWeek); - var diff2 = (0, _index.default)(date, options2) - week; - date.setDate(date.getDate() - diff2 * 7); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/setWeekYear/index.js -var require_setWeekYear = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/setWeekYear/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = setWeekYear; - var _index = _interopRequireDefault(require_differenceInCalendarDays()); - var _index2 = _interopRequireDefault(require_startOfWeekYear()); - var _index3 = _interopRequireDefault(require_toDate()); - var _index4 = _interopRequireDefault(require_toInteger()); - var _index5 = _interopRequireDefault(require_requiredArgs()); - var _index6 = require_defaultOptions(); - function setWeekYear(dirtyDate, dirtyWeekYear, options2) { - var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; - (0, _index5.default)(2, arguments); - var defaultOptions = (0, _index6.getDefaultOptions)(); - var firstWeekContainsDate = (0, _index4.default)((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options2 === null || options2 === void 0 ? void 0 : options2.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options2 === null || options2 === void 0 ? void 0 : (_options$locale = options2.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1); - var date = (0, _index3.default)(dirtyDate); - var weekYear = (0, _index4.default)(dirtyWeekYear); - var diff2 = (0, _index.default)(date, (0, _index2.default)(date, options2)); - var firstWeek = /* @__PURE__ */ new Date(0); - firstWeek.setFullYear(weekYear, 0, firstWeekContainsDate); - firstWeek.setHours(0, 0, 0, 0); - date = (0, _index2.default)(firstWeek, options2); - date.setDate(date.getDate() + diff2); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/setYear/index.js -var require_setYear = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/setYear/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = setYear; - var _index = _interopRequireDefault(require_toInteger()); - var _index2 = _interopRequireDefault(require_toDate()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function setYear(dirtyDate, dirtyYear) { - (0, _index3.default)(2, arguments); - var date = (0, _index2.default)(dirtyDate); - var year = (0, _index.default)(dirtyYear); - if (isNaN(date.getTime())) { - return /* @__PURE__ */ new Date(NaN); - } - date.setFullYear(year); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/startOfDecade/index.js -var require_startOfDecade = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/startOfDecade/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = startOfDecade; - var _index = _interopRequireDefault(require_toDate()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - function startOfDecade(dirtyDate) { - (0, _index2.default)(1, arguments); - var date = (0, _index.default)(dirtyDate); - var year = date.getFullYear(); - var decade = Math.floor(year / 10) * 10; - date.setFullYear(decade, 0, 1); - date.setHours(0, 0, 0, 0); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/startOfToday/index.js -var require_startOfToday = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/startOfToday/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = startOfToday; - var _index = _interopRequireDefault(require_startOfDay()); - function startOfToday() { - return (0, _index.default)(Date.now()); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/startOfTomorrow/index.js -var require_startOfTomorrow = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/startOfTomorrow/index.js"(exports2, module2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = startOfTomorrow; - function startOfTomorrow() { - var now = /* @__PURE__ */ new Date(); - var year = now.getFullYear(); - var month = now.getMonth(); - var day = now.getDate(); - var date = /* @__PURE__ */ new Date(0); - date.setFullYear(year, month, day + 1); - date.setHours(0, 0, 0, 0); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/startOfYesterday/index.js -var require_startOfYesterday = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/startOfYesterday/index.js"(exports2, module2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = startOfYesterday; - function startOfYesterday() { - var now = /* @__PURE__ */ new Date(); - var year = now.getFullYear(); - var month = now.getMonth(); - var day = now.getDate(); - var date = /* @__PURE__ */ new Date(0); - date.setFullYear(year, month, day - 1); - date.setHours(0, 0, 0, 0); - return date; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/subMonths/index.js -var require_subMonths = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/subMonths/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = subMonths; - var _index = _interopRequireDefault(require_toInteger()); - var _index2 = _interopRequireDefault(require_addMonths()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function subMonths(dirtyDate, dirtyAmount) { - (0, _index3.default)(2, arguments); - var amount = (0, _index.default)(dirtyAmount); - return (0, _index2.default)(dirtyDate, -amount); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/sub/index.js -var require_sub = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/sub/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = sub; - var _typeof2 = _interopRequireDefault(require_typeof()); - var _index = _interopRequireDefault(require_subDays()); - var _index2 = _interopRequireDefault(require_subMonths()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - var _index4 = _interopRequireDefault(require_toInteger()); - function sub(date, duration) { - (0, _index3.default)(2, arguments); - if (!duration || (0, _typeof2.default)(duration) !== "object") - return /* @__PURE__ */ new Date(NaN); - var years = duration.years ? (0, _index4.default)(duration.years) : 0; - var months = duration.months ? (0, _index4.default)(duration.months) : 0; - var weeks = duration.weeks ? (0, _index4.default)(duration.weeks) : 0; - var days = duration.days ? (0, _index4.default)(duration.days) : 0; - var hours = duration.hours ? (0, _index4.default)(duration.hours) : 0; - var minutes = duration.minutes ? (0, _index4.default)(duration.minutes) : 0; - var seconds = duration.seconds ? (0, _index4.default)(duration.seconds) : 0; - var dateWithoutMonths = (0, _index2.default)(date, months + years * 12); - var dateWithoutDays = (0, _index.default)(dateWithoutMonths, days + weeks * 7); - var minutestoSub = minutes + hours * 60; - var secondstoSub = seconds + minutestoSub * 60; - var mstoSub = secondstoSub * 1e3; - var finalDate = new Date(dateWithoutDays.getTime() - mstoSub); - return finalDate; - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/subBusinessDays/index.js -var require_subBusinessDays = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/subBusinessDays/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = subBusinessDays; - var _index = _interopRequireDefault(require_addBusinessDays()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - var _index3 = _interopRequireDefault(require_toInteger()); - function subBusinessDays(dirtyDate, dirtyAmount) { - (0, _index2.default)(2, arguments); - var amount = (0, _index3.default)(dirtyAmount); - return (0, _index.default)(dirtyDate, -amount); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/subHours/index.js -var require_subHours = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/subHours/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = subHours; - var _index = _interopRequireDefault(require_addHours()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - var _index3 = _interopRequireDefault(require_toInteger()); - function subHours(dirtyDate, dirtyAmount) { - (0, _index2.default)(2, arguments); - var amount = (0, _index3.default)(dirtyAmount); - return (0, _index.default)(dirtyDate, -amount); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/subMinutes/index.js -var require_subMinutes = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/subMinutes/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = subMinutes; - var _index = _interopRequireDefault(require_addMinutes()); - var _index2 = _interopRequireDefault(require_requiredArgs()); - var _index3 = _interopRequireDefault(require_toInteger()); - function subMinutes(dirtyDate, dirtyAmount) { - (0, _index2.default)(2, arguments); - var amount = (0, _index3.default)(dirtyAmount); - return (0, _index.default)(dirtyDate, -amount); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/subQuarters/index.js -var require_subQuarters = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/subQuarters/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = subQuarters; - var _index = _interopRequireDefault(require_toInteger()); - var _index2 = _interopRequireDefault(require_addQuarters()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function subQuarters(dirtyDate, dirtyAmount) { - (0, _index3.default)(2, arguments); - var amount = (0, _index.default)(dirtyAmount); - return (0, _index2.default)(dirtyDate, -amount); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/subSeconds/index.js -var require_subSeconds = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/subSeconds/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = subSeconds; - var _index = _interopRequireDefault(require_toInteger()); - var _index2 = _interopRequireDefault(require_addSeconds()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function subSeconds(dirtyDate, dirtyAmount) { - (0, _index3.default)(2, arguments); - var amount = (0, _index.default)(dirtyAmount); - return (0, _index2.default)(dirtyDate, -amount); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/subWeeks/index.js -var require_subWeeks = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/subWeeks/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = subWeeks; - var _index = _interopRequireDefault(require_toInteger()); - var _index2 = _interopRequireDefault(require_addWeeks()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function subWeeks(dirtyDate, dirtyAmount) { - (0, _index3.default)(2, arguments); - var amount = (0, _index.default)(dirtyAmount); - return (0, _index2.default)(dirtyDate, -amount); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/subYears/index.js -var require_subYears = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/subYears/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = subYears; - var _index = _interopRequireDefault(require_toInteger()); - var _index2 = _interopRequireDefault(require_addYears()); - var _index3 = _interopRequireDefault(require_requiredArgs()); - function subYears(dirtyDate, dirtyAmount) { - (0, _index3.default)(2, arguments); - var amount = (0, _index.default)(dirtyAmount); - return (0, _index2.default)(dirtyDate, -amount); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/weeksToDays/index.js -var require_weeksToDays = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/weeksToDays/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = weeksToDays; - var _index = _interopRequireDefault(require_requiredArgs()); - var _index2 = require_constants(); - function weeksToDays(weeks) { - (0, _index.default)(1, arguments); - return Math.floor(weeks * _index2.daysInWeek); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/yearsToMonths/index.js -var require_yearsToMonths = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/yearsToMonths/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = yearsToMonths; - var _index = _interopRequireDefault(require_requiredArgs()); - var _index2 = require_constants(); - function yearsToMonths(years) { - (0, _index.default)(1, arguments); - return Math.floor(years * _index2.monthsInYear); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/yearsToQuarters/index.js -var require_yearsToQuarters = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/yearsToQuarters/index.js"(exports2, module2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.default = yearsToQuarters; - var _index = _interopRequireDefault(require_requiredArgs()); - var _index2 = require_constants(); - function yearsToQuarters(years) { - (0, _index.default)(1, arguments); - return Math.floor(years * _index2.quartersInYear); - } - module2.exports = exports2.default; - } -}); - -// ../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/index.js -var require_date_fns = __commonJS({ - "../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/index.js"(exports2) { - "use strict"; - var _interopRequireDefault = require_interopRequireDefault().default; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - var _exportNames = { - add: true, - addBusinessDays: true, - addDays: true, - addHours: true, - addISOWeekYears: true, - addMilliseconds: true, - addMinutes: true, - addMonths: true, - addQuarters: true, - addSeconds: true, - addWeeks: true, - addYears: true, - areIntervalsOverlapping: true, - clamp: true, - closestIndexTo: true, - closestTo: true, - compareAsc: true, - compareDesc: true, - daysToWeeks: true, - differenceInBusinessDays: true, - differenceInCalendarDays: true, - differenceInCalendarISOWeekYears: true, - differenceInCalendarISOWeeks: true, - differenceInCalendarMonths: true, - differenceInCalendarQuarters: true, - differenceInCalendarWeeks: true, - differenceInCalendarYears: true, - differenceInDays: true, - differenceInHours: true, - differenceInISOWeekYears: true, - differenceInMilliseconds: true, - differenceInMinutes: true, - differenceInMonths: true, - differenceInQuarters: true, - differenceInSeconds: true, - differenceInWeeks: true, - differenceInYears: true, - eachDayOfInterval: true, - eachHourOfInterval: true, - eachMinuteOfInterval: true, - eachMonthOfInterval: true, - eachQuarterOfInterval: true, - eachWeekOfInterval: true, - eachWeekendOfInterval: true, - eachWeekendOfMonth: true, - eachWeekendOfYear: true, - eachYearOfInterval: true, - endOfDay: true, - endOfDecade: true, - endOfHour: true, - endOfISOWeek: true, - endOfISOWeekYear: true, - endOfMinute: true, - endOfMonth: true, - endOfQuarter: true, - endOfSecond: true, - endOfToday: true, - endOfTomorrow: true, - endOfWeek: true, - endOfYear: true, - endOfYesterday: true, - format: true, - formatDistance: true, - formatDistanceStrict: true, - formatDistanceToNow: true, - formatDistanceToNowStrict: true, - formatDuration: true, - formatISO: true, - formatISO9075: true, - formatISODuration: true, - formatRFC3339: true, - formatRFC7231: true, - formatRelative: true, - fromUnixTime: true, - getDate: true, - getDay: true, - getDayOfYear: true, - getDaysInMonth: true, - getDaysInYear: true, - getDecade: true, - getDefaultOptions: true, - getHours: true, - getISODay: true, - getISOWeek: true, - getISOWeekYear: true, - getISOWeeksInYear: true, - getMilliseconds: true, - getMinutes: true, - getMonth: true, - getOverlappingDaysInIntervals: true, - getQuarter: true, - getSeconds: true, - getTime: true, - getUnixTime: true, - getWeek: true, - getWeekOfMonth: true, - getWeekYear: true, - getWeeksInMonth: true, - getYear: true, - hoursToMilliseconds: true, - hoursToMinutes: true, - hoursToSeconds: true, - intervalToDuration: true, - intlFormat: true, - intlFormatDistance: true, - isAfter: true, - isBefore: true, - isDate: true, - isEqual: true, - isExists: true, - isFirstDayOfMonth: true, - isFriday: true, - isFuture: true, - isLastDayOfMonth: true, - isLeapYear: true, - isMatch: true, - isMonday: true, - isPast: true, - isSameDay: true, - isSameHour: true, - isSameISOWeek: true, - isSameISOWeekYear: true, - isSameMinute: true, - isSameMonth: true, - isSameQuarter: true, - isSameSecond: true, - isSameWeek: true, - isSameYear: true, - isSaturday: true, - isSunday: true, - isThisHour: true, - isThisISOWeek: true, - isThisMinute: true, - isThisMonth: true, - isThisQuarter: true, - isThisSecond: true, - isThisWeek: true, - isThisYear: true, - isThursday: true, - isToday: true, - isTomorrow: true, - isTuesday: true, - isValid: true, - isWednesday: true, - isWeekend: true, - isWithinInterval: true, - isYesterday: true, - lastDayOfDecade: true, - lastDayOfISOWeek: true, - lastDayOfISOWeekYear: true, - lastDayOfMonth: true, - lastDayOfQuarter: true, - lastDayOfWeek: true, - lastDayOfYear: true, - lightFormat: true, - max: true, - milliseconds: true, - millisecondsToHours: true, - millisecondsToMinutes: true, - millisecondsToSeconds: true, - min: true, - minutesToHours: true, - minutesToMilliseconds: true, - minutesToSeconds: true, - monthsToQuarters: true, - monthsToYears: true, - nextDay: true, - nextFriday: true, - nextMonday: true, - nextSaturday: true, - nextSunday: true, - nextThursday: true, - nextTuesday: true, - nextWednesday: true, - parse: true, - parseISO: true, - parseJSON: true, - previousDay: true, - previousFriday: true, - previousMonday: true, - previousSaturday: true, - previousSunday: true, - previousThursday: true, - previousTuesday: true, - previousWednesday: true, - quartersToMonths: true, - quartersToYears: true, - roundToNearestMinutes: true, - secondsToHours: true, - secondsToMilliseconds: true, - secondsToMinutes: true, - set: true, - setDate: true, - setDay: true, - setDayOfYear: true, - setDefaultOptions: true, - setHours: true, - setISODay: true, - setISOWeek: true, - setISOWeekYear: true, - setMilliseconds: true, - setMinutes: true, - setMonth: true, - setQuarter: true, - setSeconds: true, - setWeek: true, - setWeekYear: true, - setYear: true, - startOfDay: true, - startOfDecade: true, - startOfHour: true, - startOfISOWeek: true, - startOfISOWeekYear: true, - startOfMinute: true, - startOfMonth: true, - startOfQuarter: true, - startOfSecond: true, - startOfToday: true, - startOfTomorrow: true, - startOfWeek: true, - startOfWeekYear: true, - startOfYear: true, - startOfYesterday: true, - sub: true, - subBusinessDays: true, - subDays: true, - subHours: true, - subISOWeekYears: true, - subMilliseconds: true, - subMinutes: true, - subMonths: true, - subQuarters: true, - subSeconds: true, - subWeeks: true, - subYears: true, - toDate: true, - weeksToDays: true, - yearsToMonths: true, - yearsToQuarters: true - }; - Object.defineProperty(exports2, "add", { - enumerable: true, - get: function get() { - return _index.default; - } - }); - Object.defineProperty(exports2, "addBusinessDays", { - enumerable: true, - get: function get() { - return _index2.default; - } - }); - Object.defineProperty(exports2, "addDays", { - enumerable: true, - get: function get() { - return _index3.default; - } - }); - Object.defineProperty(exports2, "addHours", { - enumerable: true, - get: function get() { - return _index4.default; - } - }); - Object.defineProperty(exports2, "addISOWeekYears", { - enumerable: true, - get: function get() { - return _index5.default; - } - }); - Object.defineProperty(exports2, "addMilliseconds", { - enumerable: true, - get: function get() { - return _index6.default; - } - }); - Object.defineProperty(exports2, "addMinutes", { - enumerable: true, - get: function get() { - return _index7.default; - } - }); - Object.defineProperty(exports2, "addMonths", { - enumerable: true, - get: function get() { - return _index8.default; - } - }); - Object.defineProperty(exports2, "addQuarters", { - enumerable: true, - get: function get() { - return _index9.default; - } - }); - Object.defineProperty(exports2, "addSeconds", { - enumerable: true, - get: function get() { - return _index10.default; - } - }); - Object.defineProperty(exports2, "addWeeks", { - enumerable: true, - get: function get() { - return _index11.default; - } - }); - Object.defineProperty(exports2, "addYears", { - enumerable: true, - get: function get() { - return _index12.default; - } - }); - Object.defineProperty(exports2, "areIntervalsOverlapping", { - enumerable: true, - get: function get() { - return _index13.default; - } - }); - Object.defineProperty(exports2, "clamp", { - enumerable: true, - get: function get() { - return _index14.default; - } - }); - Object.defineProperty(exports2, "closestIndexTo", { - enumerable: true, - get: function get() { - return _index15.default; - } - }); - Object.defineProperty(exports2, "closestTo", { - enumerable: true, - get: function get() { - return _index16.default; - } - }); - Object.defineProperty(exports2, "compareAsc", { - enumerable: true, - get: function get() { - return _index17.default; - } - }); - Object.defineProperty(exports2, "compareDesc", { - enumerable: true, - get: function get() { - return _index18.default; - } - }); - Object.defineProperty(exports2, "daysToWeeks", { - enumerable: true, - get: function get() { - return _index19.default; - } - }); - Object.defineProperty(exports2, "differenceInBusinessDays", { - enumerable: true, - get: function get() { - return _index20.default; - } - }); - Object.defineProperty(exports2, "differenceInCalendarDays", { - enumerable: true, - get: function get() { - return _index21.default; - } - }); - Object.defineProperty(exports2, "differenceInCalendarISOWeekYears", { - enumerable: true, - get: function get() { - return _index22.default; - } - }); - Object.defineProperty(exports2, "differenceInCalendarISOWeeks", { - enumerable: true, - get: function get() { - return _index23.default; - } - }); - Object.defineProperty(exports2, "differenceInCalendarMonths", { - enumerable: true, - get: function get() { - return _index24.default; - } - }); - Object.defineProperty(exports2, "differenceInCalendarQuarters", { - enumerable: true, - get: function get() { - return _index25.default; - } - }); - Object.defineProperty(exports2, "differenceInCalendarWeeks", { - enumerable: true, - get: function get() { - return _index26.default; - } - }); - Object.defineProperty(exports2, "differenceInCalendarYears", { - enumerable: true, - get: function get() { - return _index27.default; - } - }); - Object.defineProperty(exports2, "differenceInDays", { - enumerable: true, - get: function get() { - return _index28.default; - } - }); - Object.defineProperty(exports2, "differenceInHours", { - enumerable: true, - get: function get() { - return _index29.default; - } - }); - Object.defineProperty(exports2, "differenceInISOWeekYears", { - enumerable: true, - get: function get() { - return _index30.default; - } - }); - Object.defineProperty(exports2, "differenceInMilliseconds", { - enumerable: true, - get: function get() { - return _index31.default; - } - }); - Object.defineProperty(exports2, "differenceInMinutes", { - enumerable: true, - get: function get() { - return _index32.default; - } - }); - Object.defineProperty(exports2, "differenceInMonths", { - enumerable: true, - get: function get() { - return _index33.default; - } - }); - Object.defineProperty(exports2, "differenceInQuarters", { - enumerable: true, - get: function get() { - return _index34.default; - } - }); - Object.defineProperty(exports2, "differenceInSeconds", { - enumerable: true, - get: function get() { - return _index35.default; - } - }); - Object.defineProperty(exports2, "differenceInWeeks", { - enumerable: true, - get: function get() { - return _index36.default; - } - }); - Object.defineProperty(exports2, "differenceInYears", { - enumerable: true, - get: function get() { - return _index37.default; - } - }); - Object.defineProperty(exports2, "eachDayOfInterval", { - enumerable: true, - get: function get() { - return _index38.default; - } - }); - Object.defineProperty(exports2, "eachHourOfInterval", { - enumerable: true, - get: function get() { - return _index39.default; - } - }); - Object.defineProperty(exports2, "eachMinuteOfInterval", { - enumerable: true, - get: function get() { - return _index40.default; - } - }); - Object.defineProperty(exports2, "eachMonthOfInterval", { - enumerable: true, - get: function get() { - return _index41.default; - } - }); - Object.defineProperty(exports2, "eachQuarterOfInterval", { - enumerable: true, - get: function get() { - return _index42.default; - } - }); - Object.defineProperty(exports2, "eachWeekOfInterval", { - enumerable: true, - get: function get() { - return _index43.default; - } - }); - Object.defineProperty(exports2, "eachWeekendOfInterval", { - enumerable: true, - get: function get() { - return _index44.default; - } - }); - Object.defineProperty(exports2, "eachWeekendOfMonth", { - enumerable: true, - get: function get() { - return _index45.default; - } - }); - Object.defineProperty(exports2, "eachWeekendOfYear", { - enumerable: true, - get: function get() { - return _index46.default; - } - }); - Object.defineProperty(exports2, "eachYearOfInterval", { - enumerable: true, - get: function get() { - return _index47.default; - } - }); - Object.defineProperty(exports2, "endOfDay", { - enumerable: true, - get: function get() { - return _index48.default; - } - }); - Object.defineProperty(exports2, "endOfDecade", { - enumerable: true, - get: function get() { - return _index49.default; - } - }); - Object.defineProperty(exports2, "endOfHour", { - enumerable: true, - get: function get() { - return _index50.default; - } - }); - Object.defineProperty(exports2, "endOfISOWeek", { - enumerable: true, - get: function get() { - return _index51.default; - } - }); - Object.defineProperty(exports2, "endOfISOWeekYear", { - enumerable: true, - get: function get() { - return _index52.default; - } - }); - Object.defineProperty(exports2, "endOfMinute", { - enumerable: true, - get: function get() { - return _index53.default; - } - }); - Object.defineProperty(exports2, "endOfMonth", { - enumerable: true, - get: function get() { - return _index54.default; - } - }); - Object.defineProperty(exports2, "endOfQuarter", { - enumerable: true, - get: function get() { - return _index55.default; - } - }); - Object.defineProperty(exports2, "endOfSecond", { - enumerable: true, - get: function get() { - return _index56.default; - } - }); - Object.defineProperty(exports2, "endOfToday", { - enumerable: true, - get: function get() { - return _index57.default; - } - }); - Object.defineProperty(exports2, "endOfTomorrow", { - enumerable: true, - get: function get() { - return _index58.default; - } - }); - Object.defineProperty(exports2, "endOfWeek", { - enumerable: true, - get: function get() { - return _index59.default; - } - }); - Object.defineProperty(exports2, "endOfYear", { - enumerable: true, - get: function get() { - return _index60.default; - } - }); - Object.defineProperty(exports2, "endOfYesterday", { - enumerable: true, - get: function get() { - return _index61.default; - } - }); - Object.defineProperty(exports2, "format", { - enumerable: true, - get: function get() { - return _index62.default; - } - }); - Object.defineProperty(exports2, "formatDistance", { - enumerable: true, - get: function get() { - return _index63.default; - } - }); - Object.defineProperty(exports2, "formatDistanceStrict", { - enumerable: true, - get: function get() { - return _index64.default; - } - }); - Object.defineProperty(exports2, "formatDistanceToNow", { - enumerable: true, - get: function get() { - return _index65.default; - } - }); - Object.defineProperty(exports2, "formatDistanceToNowStrict", { - enumerable: true, - get: function get() { - return _index66.default; - } - }); - Object.defineProperty(exports2, "formatDuration", { - enumerable: true, - get: function get() { - return _index67.default; - } - }); - Object.defineProperty(exports2, "formatISO", { - enumerable: true, - get: function get() { - return _index68.default; - } - }); - Object.defineProperty(exports2, "formatISO9075", { - enumerable: true, - get: function get() { - return _index69.default; - } - }); - Object.defineProperty(exports2, "formatISODuration", { - enumerable: true, - get: function get() { - return _index70.default; - } - }); - Object.defineProperty(exports2, "formatRFC3339", { - enumerable: true, - get: function get() { - return _index71.default; - } - }); - Object.defineProperty(exports2, "formatRFC7231", { - enumerable: true, - get: function get() { - return _index72.default; - } - }); - Object.defineProperty(exports2, "formatRelative", { - enumerable: true, - get: function get() { - return _index73.default; - } - }); - Object.defineProperty(exports2, "fromUnixTime", { - enumerable: true, - get: function get() { - return _index74.default; - } - }); - Object.defineProperty(exports2, "getDate", { - enumerable: true, - get: function get() { - return _index75.default; - } - }); - Object.defineProperty(exports2, "getDay", { - enumerable: true, - get: function get() { - return _index76.default; - } - }); - Object.defineProperty(exports2, "getDayOfYear", { - enumerable: true, - get: function get() { - return _index77.default; - } - }); - Object.defineProperty(exports2, "getDaysInMonth", { - enumerable: true, - get: function get() { - return _index78.default; - } - }); - Object.defineProperty(exports2, "getDaysInYear", { - enumerable: true, - get: function get() { - return _index79.default; - } - }); - Object.defineProperty(exports2, "getDecade", { - enumerable: true, - get: function get() { - return _index80.default; - } - }); - Object.defineProperty(exports2, "getDefaultOptions", { - enumerable: true, - get: function get() { - return _index81.default; - } - }); - Object.defineProperty(exports2, "getHours", { - enumerable: true, - get: function get() { - return _index82.default; - } - }); - Object.defineProperty(exports2, "getISODay", { - enumerable: true, - get: function get() { - return _index83.default; - } - }); - Object.defineProperty(exports2, "getISOWeek", { - enumerable: true, - get: function get() { - return _index84.default; - } - }); - Object.defineProperty(exports2, "getISOWeekYear", { - enumerable: true, - get: function get() { - return _index85.default; - } - }); - Object.defineProperty(exports2, "getISOWeeksInYear", { - enumerable: true, - get: function get() { - return _index86.default; - } - }); - Object.defineProperty(exports2, "getMilliseconds", { - enumerable: true, - get: function get() { - return _index87.default; - } - }); - Object.defineProperty(exports2, "getMinutes", { - enumerable: true, - get: function get() { - return _index88.default; - } - }); - Object.defineProperty(exports2, "getMonth", { - enumerable: true, - get: function get() { - return _index89.default; - } - }); - Object.defineProperty(exports2, "getOverlappingDaysInIntervals", { - enumerable: true, - get: function get() { - return _index90.default; - } - }); - Object.defineProperty(exports2, "getQuarter", { - enumerable: true, - get: function get() { - return _index91.default; - } - }); - Object.defineProperty(exports2, "getSeconds", { - enumerable: true, - get: function get() { - return _index92.default; - } - }); - Object.defineProperty(exports2, "getTime", { - enumerable: true, - get: function get() { - return _index93.default; - } - }); - Object.defineProperty(exports2, "getUnixTime", { - enumerable: true, - get: function get() { - return _index94.default; - } - }); - Object.defineProperty(exports2, "getWeek", { - enumerable: true, - get: function get() { - return _index95.default; - } - }); - Object.defineProperty(exports2, "getWeekOfMonth", { - enumerable: true, - get: function get() { - return _index96.default; - } - }); - Object.defineProperty(exports2, "getWeekYear", { - enumerable: true, - get: function get() { - return _index97.default; - } - }); - Object.defineProperty(exports2, "getWeeksInMonth", { - enumerable: true, - get: function get() { - return _index98.default; - } - }); - Object.defineProperty(exports2, "getYear", { - enumerable: true, - get: function get() { - return _index99.default; - } - }); - Object.defineProperty(exports2, "hoursToMilliseconds", { - enumerable: true, - get: function get() { - return _index100.default; - } - }); - Object.defineProperty(exports2, "hoursToMinutes", { - enumerable: true, - get: function get() { - return _index101.default; - } - }); - Object.defineProperty(exports2, "hoursToSeconds", { - enumerable: true, - get: function get() { - return _index102.default; - } - }); - Object.defineProperty(exports2, "intervalToDuration", { - enumerable: true, - get: function get() { - return _index103.default; - } - }); - Object.defineProperty(exports2, "intlFormat", { - enumerable: true, - get: function get() { - return _index104.default; - } - }); - Object.defineProperty(exports2, "intlFormatDistance", { - enumerable: true, - get: function get() { - return _index105.default; - } - }); - Object.defineProperty(exports2, "isAfter", { - enumerable: true, - get: function get() { - return _index106.default; - } - }); - Object.defineProperty(exports2, "isBefore", { - enumerable: true, - get: function get() { - return _index107.default; - } - }); - Object.defineProperty(exports2, "isDate", { - enumerable: true, - get: function get() { - return _index108.default; - } - }); - Object.defineProperty(exports2, "isEqual", { - enumerable: true, - get: function get() { - return _index109.default; - } - }); - Object.defineProperty(exports2, "isExists", { - enumerable: true, - get: function get() { - return _index110.default; - } - }); - Object.defineProperty(exports2, "isFirstDayOfMonth", { - enumerable: true, - get: function get() { - return _index111.default; - } - }); - Object.defineProperty(exports2, "isFriday", { - enumerable: true, - get: function get() { - return _index112.default; - } - }); - Object.defineProperty(exports2, "isFuture", { - enumerable: true, - get: function get() { - return _index113.default; - } - }); - Object.defineProperty(exports2, "isLastDayOfMonth", { - enumerable: true, - get: function get() { - return _index114.default; - } - }); - Object.defineProperty(exports2, "isLeapYear", { - enumerable: true, - get: function get() { - return _index115.default; - } - }); - Object.defineProperty(exports2, "isMatch", { - enumerable: true, - get: function get() { - return _index116.default; - } - }); - Object.defineProperty(exports2, "isMonday", { - enumerable: true, - get: function get() { - return _index117.default; - } - }); - Object.defineProperty(exports2, "isPast", { - enumerable: true, - get: function get() { - return _index118.default; - } - }); - Object.defineProperty(exports2, "isSameDay", { - enumerable: true, - get: function get() { - return _index119.default; - } - }); - Object.defineProperty(exports2, "isSameHour", { - enumerable: true, - get: function get() { - return _index120.default; - } - }); - Object.defineProperty(exports2, "isSameISOWeek", { - enumerable: true, - get: function get() { - return _index121.default; - } - }); - Object.defineProperty(exports2, "isSameISOWeekYear", { - enumerable: true, - get: function get() { - return _index122.default; - } - }); - Object.defineProperty(exports2, "isSameMinute", { - enumerable: true, - get: function get() { - return _index123.default; - } - }); - Object.defineProperty(exports2, "isSameMonth", { - enumerable: true, - get: function get() { - return _index124.default; - } - }); - Object.defineProperty(exports2, "isSameQuarter", { - enumerable: true, - get: function get() { - return _index125.default; - } - }); - Object.defineProperty(exports2, "isSameSecond", { - enumerable: true, - get: function get() { - return _index126.default; - } - }); - Object.defineProperty(exports2, "isSameWeek", { - enumerable: true, - get: function get() { - return _index127.default; - } - }); - Object.defineProperty(exports2, "isSameYear", { - enumerable: true, - get: function get() { - return _index128.default; - } - }); - Object.defineProperty(exports2, "isSaturday", { - enumerable: true, - get: function get() { - return _index129.default; - } - }); - Object.defineProperty(exports2, "isSunday", { - enumerable: true, - get: function get() { - return _index130.default; - } - }); - Object.defineProperty(exports2, "isThisHour", { - enumerable: true, - get: function get() { - return _index131.default; - } - }); - Object.defineProperty(exports2, "isThisISOWeek", { - enumerable: true, - get: function get() { - return _index132.default; - } - }); - Object.defineProperty(exports2, "isThisMinute", { - enumerable: true, - get: function get() { - return _index133.default; - } - }); - Object.defineProperty(exports2, "isThisMonth", { - enumerable: true, - get: function get() { - return _index134.default; - } - }); - Object.defineProperty(exports2, "isThisQuarter", { - enumerable: true, - get: function get() { - return _index135.default; - } - }); - Object.defineProperty(exports2, "isThisSecond", { - enumerable: true, - get: function get() { - return _index136.default; - } - }); - Object.defineProperty(exports2, "isThisWeek", { - enumerable: true, - get: function get() { - return _index137.default; - } - }); - Object.defineProperty(exports2, "isThisYear", { - enumerable: true, - get: function get() { - return _index138.default; - } - }); - Object.defineProperty(exports2, "isThursday", { - enumerable: true, - get: function get() { - return _index139.default; - } - }); - Object.defineProperty(exports2, "isToday", { - enumerable: true, - get: function get() { - return _index140.default; - } - }); - Object.defineProperty(exports2, "isTomorrow", { - enumerable: true, - get: function get() { - return _index141.default; - } - }); - Object.defineProperty(exports2, "isTuesday", { - enumerable: true, - get: function get() { - return _index142.default; - } - }); - Object.defineProperty(exports2, "isValid", { - enumerable: true, - get: function get() { - return _index143.default; - } - }); - Object.defineProperty(exports2, "isWednesday", { - enumerable: true, - get: function get() { - return _index144.default; - } - }); - Object.defineProperty(exports2, "isWeekend", { - enumerable: true, - get: function get() { - return _index145.default; - } - }); - Object.defineProperty(exports2, "isWithinInterval", { - enumerable: true, - get: function get() { - return _index146.default; - } - }); - Object.defineProperty(exports2, "isYesterday", { - enumerable: true, - get: function get() { - return _index147.default; - } - }); - Object.defineProperty(exports2, "lastDayOfDecade", { - enumerable: true, - get: function get() { - return _index148.default; - } - }); - Object.defineProperty(exports2, "lastDayOfISOWeek", { - enumerable: true, - get: function get() { - return _index149.default; - } - }); - Object.defineProperty(exports2, "lastDayOfISOWeekYear", { - enumerable: true, - get: function get() { - return _index150.default; - } - }); - Object.defineProperty(exports2, "lastDayOfMonth", { - enumerable: true, - get: function get() { - return _index151.default; - } - }); - Object.defineProperty(exports2, "lastDayOfQuarter", { - enumerable: true, - get: function get() { - return _index152.default; - } - }); - Object.defineProperty(exports2, "lastDayOfWeek", { - enumerable: true, - get: function get() { - return _index153.default; - } - }); - Object.defineProperty(exports2, "lastDayOfYear", { - enumerable: true, - get: function get() { - return _index154.default; - } - }); - Object.defineProperty(exports2, "lightFormat", { - enumerable: true, - get: function get() { - return _index155.default; - } - }); - Object.defineProperty(exports2, "max", { - enumerable: true, - get: function get() { - return _index156.default; - } - }); - Object.defineProperty(exports2, "milliseconds", { - enumerable: true, - get: function get() { - return _index157.default; - } - }); - Object.defineProperty(exports2, "millisecondsToHours", { - enumerable: true, - get: function get() { - return _index158.default; - } - }); - Object.defineProperty(exports2, "millisecondsToMinutes", { - enumerable: true, - get: function get() { - return _index159.default; - } - }); - Object.defineProperty(exports2, "millisecondsToSeconds", { - enumerable: true, - get: function get() { - return _index160.default; - } - }); - Object.defineProperty(exports2, "min", { - enumerable: true, - get: function get() { - return _index161.default; - } - }); - Object.defineProperty(exports2, "minutesToHours", { - enumerable: true, - get: function get() { - return _index162.default; - } - }); - Object.defineProperty(exports2, "minutesToMilliseconds", { - enumerable: true, - get: function get() { - return _index163.default; - } - }); - Object.defineProperty(exports2, "minutesToSeconds", { - enumerable: true, - get: function get() { - return _index164.default; - } - }); - Object.defineProperty(exports2, "monthsToQuarters", { - enumerable: true, - get: function get() { - return _index165.default; - } - }); - Object.defineProperty(exports2, "monthsToYears", { - enumerable: true, - get: function get() { - return _index166.default; - } - }); - Object.defineProperty(exports2, "nextDay", { - enumerable: true, - get: function get() { - return _index167.default; - } - }); - Object.defineProperty(exports2, "nextFriday", { - enumerable: true, - get: function get() { - return _index168.default; - } - }); - Object.defineProperty(exports2, "nextMonday", { - enumerable: true, - get: function get() { - return _index169.default; - } - }); - Object.defineProperty(exports2, "nextSaturday", { - enumerable: true, - get: function get() { - return _index170.default; - } - }); - Object.defineProperty(exports2, "nextSunday", { - enumerable: true, - get: function get() { - return _index171.default; - } - }); - Object.defineProperty(exports2, "nextThursday", { - enumerable: true, - get: function get() { - return _index172.default; - } - }); - Object.defineProperty(exports2, "nextTuesday", { - enumerable: true, - get: function get() { - return _index173.default; - } - }); - Object.defineProperty(exports2, "nextWednesday", { - enumerable: true, - get: function get() { - return _index174.default; - } - }); - Object.defineProperty(exports2, "parse", { - enumerable: true, - get: function get() { - return _index175.default; - } - }); - Object.defineProperty(exports2, "parseISO", { - enumerable: true, - get: function get() { - return _index176.default; - } - }); - Object.defineProperty(exports2, "parseJSON", { - enumerable: true, - get: function get() { - return _index177.default; - } - }); - Object.defineProperty(exports2, "previousDay", { - enumerable: true, - get: function get() { - return _index178.default; - } - }); - Object.defineProperty(exports2, "previousFriday", { - enumerable: true, - get: function get() { - return _index179.default; - } - }); - Object.defineProperty(exports2, "previousMonday", { - enumerable: true, - get: function get() { - return _index180.default; - } - }); - Object.defineProperty(exports2, "previousSaturday", { - enumerable: true, - get: function get() { - return _index181.default; - } - }); - Object.defineProperty(exports2, "previousSunday", { - enumerable: true, - get: function get() { - return _index182.default; - } - }); - Object.defineProperty(exports2, "previousThursday", { - enumerable: true, - get: function get() { - return _index183.default; - } - }); - Object.defineProperty(exports2, "previousTuesday", { - enumerable: true, - get: function get() { - return _index184.default; - } - }); - Object.defineProperty(exports2, "previousWednesday", { - enumerable: true, - get: function get() { - return _index185.default; - } - }); - Object.defineProperty(exports2, "quartersToMonths", { - enumerable: true, - get: function get() { - return _index186.default; - } - }); - Object.defineProperty(exports2, "quartersToYears", { - enumerable: true, - get: function get() { - return _index187.default; - } - }); - Object.defineProperty(exports2, "roundToNearestMinutes", { - enumerable: true, - get: function get() { - return _index188.default; - } - }); - Object.defineProperty(exports2, "secondsToHours", { - enumerable: true, - get: function get() { - return _index189.default; - } - }); - Object.defineProperty(exports2, "secondsToMilliseconds", { - enumerable: true, - get: function get() { - return _index190.default; - } - }); - Object.defineProperty(exports2, "secondsToMinutes", { - enumerable: true, - get: function get() { - return _index191.default; - } - }); - Object.defineProperty(exports2, "set", { - enumerable: true, - get: function get() { - return _index192.default; - } - }); - Object.defineProperty(exports2, "setDate", { - enumerable: true, - get: function get() { - return _index193.default; - } - }); - Object.defineProperty(exports2, "setDay", { - enumerable: true, - get: function get() { - return _index194.default; - } - }); - Object.defineProperty(exports2, "setDayOfYear", { - enumerable: true, - get: function get() { - return _index195.default; - } - }); - Object.defineProperty(exports2, "setDefaultOptions", { - enumerable: true, - get: function get() { - return _index196.default; - } - }); - Object.defineProperty(exports2, "setHours", { - enumerable: true, - get: function get() { - return _index197.default; - } - }); - Object.defineProperty(exports2, "setISODay", { - enumerable: true, - get: function get() { - return _index198.default; - } - }); - Object.defineProperty(exports2, "setISOWeek", { - enumerable: true, - get: function get() { - return _index199.default; - } - }); - Object.defineProperty(exports2, "setISOWeekYear", { - enumerable: true, - get: function get() { - return _index200.default; - } - }); - Object.defineProperty(exports2, "setMilliseconds", { - enumerable: true, - get: function get() { - return _index201.default; - } - }); - Object.defineProperty(exports2, "setMinutes", { - enumerable: true, - get: function get() { - return _index202.default; - } - }); - Object.defineProperty(exports2, "setMonth", { - enumerable: true, - get: function get() { - return _index203.default; - } - }); - Object.defineProperty(exports2, "setQuarter", { - enumerable: true, - get: function get() { - return _index204.default; - } - }); - Object.defineProperty(exports2, "setSeconds", { - enumerable: true, - get: function get() { - return _index205.default; - } - }); - Object.defineProperty(exports2, "setWeek", { - enumerable: true, - get: function get() { - return _index206.default; - } - }); - Object.defineProperty(exports2, "setWeekYear", { - enumerable: true, - get: function get() { - return _index207.default; - } - }); - Object.defineProperty(exports2, "setYear", { - enumerable: true, - get: function get() { - return _index208.default; - } - }); - Object.defineProperty(exports2, "startOfDay", { - enumerable: true, - get: function get() { - return _index209.default; - } - }); - Object.defineProperty(exports2, "startOfDecade", { - enumerable: true, - get: function get() { - return _index210.default; - } - }); - Object.defineProperty(exports2, "startOfHour", { - enumerable: true, - get: function get() { - return _index211.default; - } - }); - Object.defineProperty(exports2, "startOfISOWeek", { - enumerable: true, - get: function get() { - return _index212.default; - } - }); - Object.defineProperty(exports2, "startOfISOWeekYear", { - enumerable: true, - get: function get() { - return _index213.default; - } - }); - Object.defineProperty(exports2, "startOfMinute", { - enumerable: true, - get: function get() { - return _index214.default; - } - }); - Object.defineProperty(exports2, "startOfMonth", { - enumerable: true, - get: function get() { - return _index215.default; - } - }); - Object.defineProperty(exports2, "startOfQuarter", { - enumerable: true, - get: function get() { - return _index216.default; - } - }); - Object.defineProperty(exports2, "startOfSecond", { - enumerable: true, - get: function get() { - return _index217.default; - } - }); - Object.defineProperty(exports2, "startOfToday", { - enumerable: true, - get: function get() { - return _index218.default; - } - }); - Object.defineProperty(exports2, "startOfTomorrow", { - enumerable: true, - get: function get() { - return _index219.default; - } - }); - Object.defineProperty(exports2, "startOfWeek", { - enumerable: true, - get: function get() { - return _index220.default; - } - }); - Object.defineProperty(exports2, "startOfWeekYear", { - enumerable: true, - get: function get() { - return _index221.default; - } - }); - Object.defineProperty(exports2, "startOfYear", { - enumerable: true, - get: function get() { - return _index222.default; - } - }); - Object.defineProperty(exports2, "startOfYesterday", { - enumerable: true, - get: function get() { - return _index223.default; - } - }); - Object.defineProperty(exports2, "sub", { - enumerable: true, - get: function get() { - return _index224.default; - } - }); - Object.defineProperty(exports2, "subBusinessDays", { - enumerable: true, - get: function get() { - return _index225.default; - } - }); - Object.defineProperty(exports2, "subDays", { - enumerable: true, - get: function get() { - return _index226.default; - } - }); - Object.defineProperty(exports2, "subHours", { - enumerable: true, - get: function get() { - return _index227.default; - } - }); - Object.defineProperty(exports2, "subISOWeekYears", { - enumerable: true, - get: function get() { - return _index228.default; - } - }); - Object.defineProperty(exports2, "subMilliseconds", { - enumerable: true, - get: function get() { - return _index229.default; - } - }); - Object.defineProperty(exports2, "subMinutes", { - enumerable: true, - get: function get() { - return _index230.default; - } - }); - Object.defineProperty(exports2, "subMonths", { - enumerable: true, - get: function get() { - return _index231.default; - } - }); - Object.defineProperty(exports2, "subQuarters", { - enumerable: true, - get: function get() { - return _index232.default; - } - }); - Object.defineProperty(exports2, "subSeconds", { - enumerable: true, - get: function get() { - return _index233.default; - } - }); - Object.defineProperty(exports2, "subWeeks", { - enumerable: true, - get: function get() { - return _index234.default; - } - }); - Object.defineProperty(exports2, "subYears", { - enumerable: true, - get: function get() { - return _index235.default; - } - }); - Object.defineProperty(exports2, "toDate", { - enumerable: true, - get: function get() { - return _index236.default; - } - }); - Object.defineProperty(exports2, "weeksToDays", { - enumerable: true, - get: function get() { - return _index237.default; - } - }); - Object.defineProperty(exports2, "yearsToMonths", { - enumerable: true, - get: function get() { - return _index238.default; - } - }); - Object.defineProperty(exports2, "yearsToQuarters", { - enumerable: true, - get: function get() { - return _index239.default; - } - }); - var _index = _interopRequireDefault(require_add()); - var _index2 = _interopRequireDefault(require_addBusinessDays()); - var _index3 = _interopRequireDefault(require_addDays()); - var _index4 = _interopRequireDefault(require_addHours()); - var _index5 = _interopRequireDefault(require_addISOWeekYears()); - var _index6 = _interopRequireDefault(require_addMilliseconds()); - var _index7 = _interopRequireDefault(require_addMinutes()); - var _index8 = _interopRequireDefault(require_addMonths()); - var _index9 = _interopRequireDefault(require_addQuarters()); - var _index10 = _interopRequireDefault(require_addSeconds()); - var _index11 = _interopRequireDefault(require_addWeeks()); - var _index12 = _interopRequireDefault(require_addYears()); - var _index13 = _interopRequireDefault(require_areIntervalsOverlapping()); - var _index14 = _interopRequireDefault(require_clamp()); - var _index15 = _interopRequireDefault(require_closestIndexTo()); - var _index16 = _interopRequireDefault(require_closestTo()); - var _index17 = _interopRequireDefault(require_compareAsc()); - var _index18 = _interopRequireDefault(require_compareDesc()); - var _index19 = _interopRequireDefault(require_daysToWeeks()); - var _index20 = _interopRequireDefault(require_differenceInBusinessDays()); - var _index21 = _interopRequireDefault(require_differenceInCalendarDays()); - var _index22 = _interopRequireDefault(require_differenceInCalendarISOWeekYears()); - var _index23 = _interopRequireDefault(require_differenceInCalendarISOWeeks()); - var _index24 = _interopRequireDefault(require_differenceInCalendarMonths()); - var _index25 = _interopRequireDefault(require_differenceInCalendarQuarters()); - var _index26 = _interopRequireDefault(require_differenceInCalendarWeeks()); - var _index27 = _interopRequireDefault(require_differenceInCalendarYears()); - var _index28 = _interopRequireDefault(require_differenceInDays()); - var _index29 = _interopRequireDefault(require_differenceInHours()); - var _index30 = _interopRequireDefault(require_differenceInISOWeekYears()); - var _index31 = _interopRequireDefault(require_differenceInMilliseconds()); - var _index32 = _interopRequireDefault(require_differenceInMinutes()); - var _index33 = _interopRequireDefault(require_differenceInMonths()); - var _index34 = _interopRequireDefault(require_differenceInQuarters()); - var _index35 = _interopRequireDefault(require_differenceInSeconds()); - var _index36 = _interopRequireDefault(require_differenceInWeeks()); - var _index37 = _interopRequireDefault(require_differenceInYears()); - var _index38 = _interopRequireDefault(require_eachDayOfInterval()); - var _index39 = _interopRequireDefault(require_eachHourOfInterval()); - var _index40 = _interopRequireDefault(require_eachMinuteOfInterval()); - var _index41 = _interopRequireDefault(require_eachMonthOfInterval()); - var _index42 = _interopRequireDefault(require_eachQuarterOfInterval()); - var _index43 = _interopRequireDefault(require_eachWeekOfInterval()); - var _index44 = _interopRequireDefault(require_eachWeekendOfInterval()); - var _index45 = _interopRequireDefault(require_eachWeekendOfMonth()); - var _index46 = _interopRequireDefault(require_eachWeekendOfYear()); - var _index47 = _interopRequireDefault(require_eachYearOfInterval()); - var _index48 = _interopRequireDefault(require_endOfDay()); - var _index49 = _interopRequireDefault(require_endOfDecade()); - var _index50 = _interopRequireDefault(require_endOfHour()); - var _index51 = _interopRequireDefault(require_endOfISOWeek()); - var _index52 = _interopRequireDefault(require_endOfISOWeekYear()); - var _index53 = _interopRequireDefault(require_endOfMinute()); - var _index54 = _interopRequireDefault(require_endOfMonth()); - var _index55 = _interopRequireDefault(require_endOfQuarter()); - var _index56 = _interopRequireDefault(require_endOfSecond()); - var _index57 = _interopRequireDefault(require_endOfToday()); - var _index58 = _interopRequireDefault(require_endOfTomorrow()); - var _index59 = _interopRequireDefault(require_endOfWeek()); - var _index60 = _interopRequireDefault(require_endOfYear()); - var _index61 = _interopRequireDefault(require_endOfYesterday()); - var _index62 = _interopRequireDefault(require_format()); - var _index63 = _interopRequireDefault(require_formatDistance2()); - var _index64 = _interopRequireDefault(require_formatDistanceStrict()); - var _index65 = _interopRequireDefault(require_formatDistanceToNow()); - var _index66 = _interopRequireDefault(require_formatDistanceToNowStrict()); - var _index67 = _interopRequireDefault(require_formatDuration()); - var _index68 = _interopRequireDefault(require_formatISO()); - var _index69 = _interopRequireDefault(require_formatISO9075()); - var _index70 = _interopRequireDefault(require_formatISODuration()); - var _index71 = _interopRequireDefault(require_formatRFC3339()); - var _index72 = _interopRequireDefault(require_formatRFC7231()); - var _index73 = _interopRequireDefault(require_formatRelative2()); - var _index74 = _interopRequireDefault(require_fromUnixTime()); - var _index75 = _interopRequireDefault(require_getDate()); - var _index76 = _interopRequireDefault(require_getDay()); - var _index77 = _interopRequireDefault(require_getDayOfYear()); - var _index78 = _interopRequireDefault(require_getDaysInMonth()); - var _index79 = _interopRequireDefault(require_getDaysInYear()); - var _index80 = _interopRequireDefault(require_getDecade()); - var _index81 = _interopRequireDefault(require_getDefaultOptions()); - var _index82 = _interopRequireDefault(require_getHours()); - var _index83 = _interopRequireDefault(require_getISODay()); - var _index84 = _interopRequireDefault(require_getISOWeek()); - var _index85 = _interopRequireDefault(require_getISOWeekYear()); - var _index86 = _interopRequireDefault(require_getISOWeeksInYear()); - var _index87 = _interopRequireDefault(require_getMilliseconds()); - var _index88 = _interopRequireDefault(require_getMinutes()); - var _index89 = _interopRequireDefault(require_getMonth()); - var _index90 = _interopRequireDefault(require_getOverlappingDaysInIntervals()); - var _index91 = _interopRequireDefault(require_getQuarter()); - var _index92 = _interopRequireDefault(require_getSeconds()); - var _index93 = _interopRequireDefault(require_getTime()); - var _index94 = _interopRequireDefault(require_getUnixTime()); - var _index95 = _interopRequireDefault(require_getWeek()); - var _index96 = _interopRequireDefault(require_getWeekOfMonth()); - var _index97 = _interopRequireDefault(require_getWeekYear()); - var _index98 = _interopRequireDefault(require_getWeeksInMonth()); - var _index99 = _interopRequireDefault(require_getYear()); - var _index100 = _interopRequireDefault(require_hoursToMilliseconds()); - var _index101 = _interopRequireDefault(require_hoursToMinutes()); - var _index102 = _interopRequireDefault(require_hoursToSeconds()); - var _index103 = _interopRequireDefault(require_intervalToDuration()); - var _index104 = _interopRequireDefault(require_intlFormat()); - var _index105 = _interopRequireDefault(require_intlFormatDistance()); - var _index106 = _interopRequireDefault(require_isAfter()); - var _index107 = _interopRequireDefault(require_isBefore()); - var _index108 = _interopRequireDefault(require_isDate()); - var _index109 = _interopRequireDefault(require_isEqual()); - var _index110 = _interopRequireDefault(require_isExists()); - var _index111 = _interopRequireDefault(require_isFirstDayOfMonth()); - var _index112 = _interopRequireDefault(require_isFriday()); - var _index113 = _interopRequireDefault(require_isFuture()); - var _index114 = _interopRequireDefault(require_isLastDayOfMonth()); - var _index115 = _interopRequireDefault(require_isLeapYear()); - var _index116 = _interopRequireDefault(require_isMatch()); - var _index117 = _interopRequireDefault(require_isMonday()); - var _index118 = _interopRequireDefault(require_isPast()); - var _index119 = _interopRequireDefault(require_isSameDay()); - var _index120 = _interopRequireDefault(require_isSameHour()); - var _index121 = _interopRequireDefault(require_isSameISOWeek()); - var _index122 = _interopRequireDefault(require_isSameISOWeekYear()); - var _index123 = _interopRequireDefault(require_isSameMinute()); - var _index124 = _interopRequireDefault(require_isSameMonth()); - var _index125 = _interopRequireDefault(require_isSameQuarter()); - var _index126 = _interopRequireDefault(require_isSameSecond()); - var _index127 = _interopRequireDefault(require_isSameWeek()); - var _index128 = _interopRequireDefault(require_isSameYear()); - var _index129 = _interopRequireDefault(require_isSaturday()); - var _index130 = _interopRequireDefault(require_isSunday()); - var _index131 = _interopRequireDefault(require_isThisHour()); - var _index132 = _interopRequireDefault(require_isThisISOWeek()); - var _index133 = _interopRequireDefault(require_isThisMinute()); - var _index134 = _interopRequireDefault(require_isThisMonth()); - var _index135 = _interopRequireDefault(require_isThisQuarter()); - var _index136 = _interopRequireDefault(require_isThisSecond()); - var _index137 = _interopRequireDefault(require_isThisWeek()); - var _index138 = _interopRequireDefault(require_isThisYear()); - var _index139 = _interopRequireDefault(require_isThursday()); - var _index140 = _interopRequireDefault(require_isToday()); - var _index141 = _interopRequireDefault(require_isTomorrow()); - var _index142 = _interopRequireDefault(require_isTuesday()); - var _index143 = _interopRequireDefault(require_isValid()); - var _index144 = _interopRequireDefault(require_isWednesday()); - var _index145 = _interopRequireDefault(require_isWeekend()); - var _index146 = _interopRequireDefault(require_isWithinInterval()); - var _index147 = _interopRequireDefault(require_isYesterday()); - var _index148 = _interopRequireDefault(require_lastDayOfDecade()); - var _index149 = _interopRequireDefault(require_lastDayOfISOWeek()); - var _index150 = _interopRequireDefault(require_lastDayOfISOWeekYear()); - var _index151 = _interopRequireDefault(require_lastDayOfMonth()); - var _index152 = _interopRequireDefault(require_lastDayOfQuarter()); - var _index153 = _interopRequireDefault(require_lastDayOfWeek()); - var _index154 = _interopRequireDefault(require_lastDayOfYear()); - var _index155 = _interopRequireDefault(require_lightFormat()); - var _index156 = _interopRequireDefault(require_max()); - var _index157 = _interopRequireDefault(require_milliseconds()); - var _index158 = _interopRequireDefault(require_millisecondsToHours()); - var _index159 = _interopRequireDefault(require_millisecondsToMinutes()); - var _index160 = _interopRequireDefault(require_millisecondsToSeconds()); - var _index161 = _interopRequireDefault(require_min()); - var _index162 = _interopRequireDefault(require_minutesToHours()); - var _index163 = _interopRequireDefault(require_minutesToMilliseconds()); - var _index164 = _interopRequireDefault(require_minutesToSeconds()); - var _index165 = _interopRequireDefault(require_monthsToQuarters()); - var _index166 = _interopRequireDefault(require_monthsToYears()); - var _index167 = _interopRequireDefault(require_nextDay()); - var _index168 = _interopRequireDefault(require_nextFriday()); - var _index169 = _interopRequireDefault(require_nextMonday()); - var _index170 = _interopRequireDefault(require_nextSaturday()); - var _index171 = _interopRequireDefault(require_nextSunday()); - var _index172 = _interopRequireDefault(require_nextThursday()); - var _index173 = _interopRequireDefault(require_nextTuesday()); - var _index174 = _interopRequireDefault(require_nextWednesday()); - var _index175 = _interopRequireDefault(require_parse()); - var _index176 = _interopRequireDefault(require_parseISO()); - var _index177 = _interopRequireDefault(require_parseJSON()); - var _index178 = _interopRequireDefault(require_previousDay()); - var _index179 = _interopRequireDefault(require_previousFriday()); - var _index180 = _interopRequireDefault(require_previousMonday()); - var _index181 = _interopRequireDefault(require_previousSaturday()); - var _index182 = _interopRequireDefault(require_previousSunday()); - var _index183 = _interopRequireDefault(require_previousThursday()); - var _index184 = _interopRequireDefault(require_previousTuesday()); - var _index185 = _interopRequireDefault(require_previousWednesday()); - var _index186 = _interopRequireDefault(require_quartersToMonths()); - var _index187 = _interopRequireDefault(require_quartersToYears()); - var _index188 = _interopRequireDefault(require_roundToNearestMinutes()); - var _index189 = _interopRequireDefault(require_secondsToHours()); - var _index190 = _interopRequireDefault(require_secondsToMilliseconds()); - var _index191 = _interopRequireDefault(require_secondsToMinutes()); - var _index192 = _interopRequireDefault(require_set()); - var _index193 = _interopRequireDefault(require_setDate()); - var _index194 = _interopRequireDefault(require_setDay()); - var _index195 = _interopRequireDefault(require_setDayOfYear()); - var _index196 = _interopRequireDefault(require_setDefaultOptions()); - var _index197 = _interopRequireDefault(require_setHours()); - var _index198 = _interopRequireDefault(require_setISODay()); - var _index199 = _interopRequireDefault(require_setISOWeek()); - var _index200 = _interopRequireDefault(require_setISOWeekYear()); - var _index201 = _interopRequireDefault(require_setMilliseconds()); - var _index202 = _interopRequireDefault(require_setMinutes()); - var _index203 = _interopRequireDefault(require_setMonth()); - var _index204 = _interopRequireDefault(require_setQuarter()); - var _index205 = _interopRequireDefault(require_setSeconds()); - var _index206 = _interopRequireDefault(require_setWeek()); - var _index207 = _interopRequireDefault(require_setWeekYear()); - var _index208 = _interopRequireDefault(require_setYear()); - var _index209 = _interopRequireDefault(require_startOfDay()); - var _index210 = _interopRequireDefault(require_startOfDecade()); - var _index211 = _interopRequireDefault(require_startOfHour()); - var _index212 = _interopRequireDefault(require_startOfISOWeek()); - var _index213 = _interopRequireDefault(require_startOfISOWeekYear()); - var _index214 = _interopRequireDefault(require_startOfMinute()); - var _index215 = _interopRequireDefault(require_startOfMonth()); - var _index216 = _interopRequireDefault(require_startOfQuarter()); - var _index217 = _interopRequireDefault(require_startOfSecond()); - var _index218 = _interopRequireDefault(require_startOfToday()); - var _index219 = _interopRequireDefault(require_startOfTomorrow()); - var _index220 = _interopRequireDefault(require_startOfWeek()); - var _index221 = _interopRequireDefault(require_startOfWeekYear()); - var _index222 = _interopRequireDefault(require_startOfYear()); - var _index223 = _interopRequireDefault(require_startOfYesterday()); - var _index224 = _interopRequireDefault(require_sub()); - var _index225 = _interopRequireDefault(require_subBusinessDays()); - var _index226 = _interopRequireDefault(require_subDays()); - var _index227 = _interopRequireDefault(require_subHours()); - var _index228 = _interopRequireDefault(require_subISOWeekYears()); - var _index229 = _interopRequireDefault(require_subMilliseconds()); - var _index230 = _interopRequireDefault(require_subMinutes()); - var _index231 = _interopRequireDefault(require_subMonths()); - var _index232 = _interopRequireDefault(require_subQuarters()); - var _index233 = _interopRequireDefault(require_subSeconds()); - var _index234 = _interopRequireDefault(require_subWeeks()); - var _index235 = _interopRequireDefault(require_subYears()); - var _index236 = _interopRequireDefault(require_toDate()); - var _index237 = _interopRequireDefault(require_weeksToDays()); - var _index238 = _interopRequireDefault(require_yearsToMonths()); - var _index239 = _interopRequireDefault(require_yearsToQuarters()); - var _index240 = require_constants(); - Object.keys(_index240).forEach(function(key) { - if (key === "default" || key === "__esModule") - return; - if (Object.prototype.hasOwnProperty.call(_exportNames, key)) - return; - if (key in exports2 && exports2[key] === _index240[key]) - return; - Object.defineProperty(exports2, key, { - enumerable: true, - get: function get() { - return _index240[key]; - } - }); - }); - } -}); - -// ../lib/shared/src/utils.ts -function convertGitCloneURLToCodebaseName(cloneURL) { - const result = convertGitCloneURLToCodebaseNameOrError(cloneURL); - if (isError2(result)) { - if (result.message) { - if (result.cause) { - logError("convertGitCloneURLToCodebaseName", result.message, result.cause); - } else { - logError("convertGitCloneURLToCodebaseName", result.message); - } - } - return null; - } - return result; -} -function convertGitCloneURLToCodebaseNameOrError(cloneURL) { - if (!cloneURL) { - return new Error( - `Unable to determine the git clone URL for this workspace. -git output: ${cloneURL}` - ); - } - try { - const match2 = cloneURL.match(/^[\w-]+@([^:]+):([\w-]+)\/([\w-\.]+)$/); - if (match2) { - const host = match2[1]; - const owner = match2[2]; - const repo = match2[3].replace(/\.git$/, ""); - return `${host}/${owner}/${repo}`; - } - const uri = new URL(cloneURL); - if (uri.hostname?.includes("dev.azure") && uri.pathname) { - return `${uri.hostname}${uri.pathname.replace("/_git", "")}`; - } - if (uri.protocol.startsWith("github") || uri.href.startsWith("github")) { - return `github.com/${uri.pathname.replace(".git", "")}`; - } - if (uri.protocol.startsWith("gitlab") || uri.href.startsWith("gitlab")) { - return `gitlab.com/${uri.pathname.replace(".git", "")}`; - } - if (uri.protocol.startsWith("http") && uri.hostname && uri.pathname) { - return `${uri.hostname}${uri.pathname.replace(".git", "")}`; - } - if (uri.hostname && uri.pathname) { - return `${uri.hostname}${uri.pathname.replace(".git", "")}`; - } - return new Error(""); - } catch (error) { - return new Error(`Cody could not extract repo name from clone URL ${cloneURL}:`, { - cause: error - }); - } -} -var isError2; -var init_utils = __esm({ - "../lib/shared/src/utils.ts"() { - "use strict"; - init_logger(); - isError2 = (value) => value instanceof Error; - } -}); - -// ../lib/shared/src/sourcegraph-api/errors.ts -function formatRetryAfterDate(retryAfterDate) { - const now = /* @__PURE__ */ new Date(); - if ((0, import_date_fns.differenceInDays)(retryAfterDate, now) < 7) { - return `Usage will reset ${(0, import_date_fns.formatRelative)(retryAfterDate, now)}`; - } - return `Usage will reset in ${(0, import_date_fns.formatDistanceStrict)(retryAfterDate, now)} (${(0, import_date_fns.format)( - retryAfterDate, - "P" - )} at ${(0, import_date_fns.format)(retryAfterDate, "p")})`; -} -function isRateLimitError(error) { - return error instanceof RateLimitError || error?.name === RateLimitError.errorName; -} -function isNetworkError(error) { - return error instanceof NetworkError; -} -function isAuthError(error) { - return error instanceof NetworkError && (error.status === 401 || error.status === 403); -} -function isAbortError(error) { - return isError2(error) && // custom abort error - (error instanceof AbortError && error.isAbortError || // http module - error.message === "aborted" || // fetch - error.message.includes("The operation was aborted") || error.message.includes("The user aborted a request")); -} -var import_date_fns, RateLimitError, TracedError, NetworkError, AbortError, TimeoutError; -var init_errors = __esm({ - "../lib/shared/src/sourcegraph-api/errors.ts"() { - "use strict"; - import_date_fns = __toESM(require_date_fns()); - init_utils(); - RateLimitError = class _RateLimitError extends Error { - constructor(feature, message, upgradeIsAvailable, limit, retryAfter) { - super(message); - this.feature = feature; - this.message = message; - this.upgradeIsAvailable = upgradeIsAvailable; - this.limit = limit; - this.retryAfter = retryAfter; - this.userMessage = `You've used all ${feature} for ${upgradeIsAvailable ? "the month" : "today"}.`; - this.retryAfterDate = retryAfter ? /^\d+$/.test(retryAfter) ? new Date(Date.now() + parseInt(retryAfter, 10) * 1e3) : new Date(retryAfter) : void 0; - this.retryMessage = this.retryAfterDate ? formatRetryAfterDate(this.retryAfterDate) : void 0; - } - static errorName = "RateLimitError"; - name = _RateLimitError.errorName; - userMessage; - retryAfterDate; - retryMessage; - }; - TracedError = class extends Error { - constructor(message, traceId) { - super(message); - this.traceId = traceId; - } - }; - NetworkError = class extends Error { - constructor(response, content, traceId) { - super( - `Request to ${response.url} failed with ${response.status} ${response.statusText}: ${content}` - ); - this.traceId = traceId; - this.status = response.status; - } - status; - }; - AbortError = class extends Error { - // Added to make TypeScript understand that AbortError is not the same as Error. - isAbortError = true; - }; - TimeoutError = class extends Error { - }; - } -}); - -// ../node_modules/.pnpm/webidl-conversions@3.0.1/node_modules/webidl-conversions/lib/index.js -var require_lib = __commonJS({ - "../node_modules/.pnpm/webidl-conversions@3.0.1/node_modules/webidl-conversions/lib/index.js"(exports2, module2) { - "use strict"; - var conversions = {}; - module2.exports = conversions; - function sign(x) { - return x < 0 ? -1 : 1; - } - function evenRound(x) { - if (x % 1 === 0.5 && (x & 1) === 0) { - return Math.floor(x); - } else { - return Math.round(x); - } - } - function createNumberConversion(bitLength, typeOpts) { - if (!typeOpts.unsigned) { - --bitLength; - } - const lowerBound = typeOpts.unsigned ? 0 : -Math.pow(2, bitLength); - const upperBound = Math.pow(2, bitLength) - 1; - const moduloVal = typeOpts.moduloBitLength ? Math.pow(2, typeOpts.moduloBitLength) : Math.pow(2, bitLength); - const moduloBound = typeOpts.moduloBitLength ? Math.pow(2, typeOpts.moduloBitLength - 1) : Math.pow(2, bitLength - 1); - return function(V, opts) { - if (!opts) - opts = {}; - let x = +V; - if (opts.enforceRange) { - if (!Number.isFinite(x)) { - throw new TypeError("Argument is not a finite number"); - } - x = sign(x) * Math.floor(Math.abs(x)); - if (x < lowerBound || x > upperBound) { - throw new TypeError("Argument is not in byte range"); - } - return x; - } - if (!isNaN(x) && opts.clamp) { - x = evenRound(x); - if (x < lowerBound) - x = lowerBound; - if (x > upperBound) - x = upperBound; - return x; - } - if (!Number.isFinite(x) || x === 0) { - return 0; - } - x = sign(x) * Math.floor(Math.abs(x)); - x = x % moduloVal; - if (!typeOpts.unsigned && x >= moduloBound) { - return x - moduloVal; - } else if (typeOpts.unsigned) { - if (x < 0) { - x += moduloVal; - } else if (x === -0) { - return 0; - } - } - return x; - }; - } - conversions["void"] = function() { - return void 0; - }; - conversions["boolean"] = function(val2) { - return !!val2; - }; - conversions["byte"] = createNumberConversion(8, { unsigned: false }); - conversions["octet"] = createNumberConversion(8, { unsigned: true }); - conversions["short"] = createNumberConversion(16, { unsigned: false }); - conversions["unsigned short"] = createNumberConversion(16, { unsigned: true }); - conversions["long"] = createNumberConversion(32, { unsigned: false }); - conversions["unsigned long"] = createNumberConversion(32, { unsigned: true }); - conversions["long long"] = createNumberConversion(32, { unsigned: false, moduloBitLength: 64 }); - conversions["unsigned long long"] = createNumberConversion(32, { unsigned: true, moduloBitLength: 64 }); - conversions["double"] = function(V) { - const x = +V; - if (!Number.isFinite(x)) { - throw new TypeError("Argument is not a finite floating-point value"); - } - return x; - }; - conversions["unrestricted double"] = function(V) { - const x = +V; - if (isNaN(x)) { - throw new TypeError("Argument is NaN"); - } - return x; - }; - conversions["float"] = conversions["double"]; - conversions["unrestricted float"] = conversions["unrestricted double"]; - conversions["DOMString"] = function(V, opts) { - if (!opts) - opts = {}; - if (opts.treatNullAsEmptyString && V === null) { - return ""; - } - return String(V); - }; - conversions["ByteString"] = function(V, opts) { - const x = String(V); - let c = void 0; - for (let i = 0; (c = x.codePointAt(i)) !== void 0; ++i) { - if (c > 255) { - throw new TypeError("Argument is not a valid bytestring"); - } - } - return x; - }; - conversions["USVString"] = function(V) { - const S = String(V); - const n = S.length; - const U = []; - for (let i = 0; i < n; ++i) { - const c = S.charCodeAt(i); - if (c < 55296 || c > 57343) { - U.push(String.fromCodePoint(c)); - } else if (56320 <= c && c <= 57343) { - U.push(String.fromCodePoint(65533)); - } else { - if (i === n - 1) { - U.push(String.fromCodePoint(65533)); - } else { - const d = S.charCodeAt(i + 1); - if (56320 <= d && d <= 57343) { - const a = c & 1023; - const b = d & 1023; - U.push(String.fromCodePoint((2 << 15) + (2 << 9) * a + b)); - ++i; - } else { - U.push(String.fromCodePoint(65533)); - } - } - } - } - return U.join(""); - }; - conversions["Date"] = function(V, opts) { - if (!(V instanceof Date)) { - throw new TypeError("Argument is not a Date object"); - } - if (isNaN(V)) { - return void 0; - } - return V; - }; - conversions["RegExp"] = function(V, opts) { - if (!(V instanceof RegExp)) { - V = new RegExp(V); - } - return V; - }; - } -}); - -// ../node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/utils.js -var require_utils2 = __commonJS({ - "../node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/utils.js"(exports2, module2) { - "use strict"; - module2.exports.mixin = function mixin(target, source) { - const keys = Object.getOwnPropertyNames(source); - for (let i = 0; i < keys.length; ++i) { - Object.defineProperty(target, keys[i], Object.getOwnPropertyDescriptor(source, keys[i])); - } - }; - module2.exports.wrapperSymbol = Symbol("wrapper"); - module2.exports.implSymbol = Symbol("impl"); - module2.exports.wrapperForImpl = function(impl) { - return impl[module2.exports.wrapperSymbol]; - }; - module2.exports.implForWrapper = function(wrapper) { - return wrapper[module2.exports.implSymbol]; - }; - } -}); - -// ../node_modules/.pnpm/tr46@0.0.3/node_modules/tr46/lib/mappingTable.json -var require_mappingTable = __commonJS({ - "../node_modules/.pnpm/tr46@0.0.3/node_modules/tr46/lib/mappingTable.json"(exports2, module2) { - module2.exports = [[[0, 44], "disallowed_STD3_valid"], [[45, 46], "valid"], [[47, 47], "disallowed_STD3_valid"], [[48, 57], "valid"], [[58, 64], "disallowed_STD3_valid"], [[65, 65], "mapped", [97]], [[66, 66], "mapped", [98]], [[67, 67], "mapped", [99]], [[68, 68], "mapped", [100]], [[69, 69], "mapped", [101]], [[70, 70], "mapped", [102]], [[71, 71], "mapped", [103]], [[72, 72], "mapped", [104]], [[73, 73], "mapped", [105]], [[74, 74], "mapped", [106]], [[75, 75], "mapped", [107]], [[76, 76], "mapped", [108]], [[77, 77], "mapped", [109]], [[78, 78], "mapped", [110]], [[79, 79], "mapped", [111]], [[80, 80], "mapped", [112]], [[81, 81], "mapped", [113]], [[82, 82], "mapped", [114]], [[83, 83], "mapped", [115]], [[84, 84], "mapped", [116]], [[85, 85], "mapped", [117]], [[86, 86], "mapped", [118]], [[87, 87], "mapped", [119]], [[88, 88], "mapped", [120]], [[89, 89], "mapped", [121]], [[90, 90], "mapped", [122]], [[91, 96], "disallowed_STD3_valid"], [[97, 122], "valid"], [[123, 127], "disallowed_STD3_valid"], [[128, 159], "disallowed"], [[160, 160], "disallowed_STD3_mapped", [32]], [[161, 167], "valid", [], "NV8"], [[168, 168], "disallowed_STD3_mapped", [32, 776]], [[169, 169], "valid", [], "NV8"], [[170, 170], "mapped", [97]], [[171, 172], "valid", [], "NV8"], [[173, 173], "ignored"], [[174, 174], "valid", [], "NV8"], [[175, 175], "disallowed_STD3_mapped", [32, 772]], [[176, 177], "valid", [], "NV8"], [[178, 178], "mapped", [50]], [[179, 179], "mapped", [51]], [[180, 180], "disallowed_STD3_mapped", [32, 769]], [[181, 181], "mapped", [956]], [[182, 182], "valid", [], "NV8"], [[183, 183], "valid"], [[184, 184], "disallowed_STD3_mapped", [32, 807]], [[185, 185], "mapped", [49]], [[186, 186], "mapped", [111]], [[187, 187], "valid", [], "NV8"], [[188, 188], "mapped", [49, 8260, 52]], [[189, 189], "mapped", [49, 8260, 50]], [[190, 190], "mapped", [51, 8260, 52]], [[191, 191], "valid", [], "NV8"], [[192, 192], "mapped", [224]], [[193, 193], "mapped", [225]], [[194, 194], "mapped", [226]], [[195, 195], "mapped", [227]], [[196, 196], "mapped", [228]], [[197, 197], "mapped", [229]], [[198, 198], "mapped", [230]], [[199, 199], "mapped", [231]], [[200, 200], "mapped", [232]], [[201, 201], "mapped", [233]], [[202, 202], "mapped", [234]], [[203, 203], "mapped", [235]], [[204, 204], "mapped", [236]], [[205, 205], "mapped", [237]], [[206, 206], "mapped", [238]], [[207, 207], "mapped", [239]], [[208, 208], "mapped", [240]], [[209, 209], "mapped", [241]], [[210, 210], "mapped", [242]], [[211, 211], "mapped", [243]], [[212, 212], "mapped", [244]], [[213, 213], "mapped", [245]], [[214, 214], "mapped", [246]], [[215, 215], "valid", [], "NV8"], [[216, 216], "mapped", [248]], [[217, 217], "mapped", [249]], [[218, 218], "mapped", [250]], [[219, 219], "mapped", [251]], [[220, 220], "mapped", [252]], [[221, 221], "mapped", [253]], [[222, 222], "mapped", [254]], [[223, 223], "deviation", [115, 115]], [[224, 246], "valid"], [[247, 247], "valid", [], "NV8"], [[248, 255], "valid"], [[256, 256], "mapped", [257]], [[257, 257], "valid"], [[258, 258], "mapped", [259]], [[259, 259], "valid"], [[260, 260], "mapped", [261]], [[261, 261], "valid"], [[262, 262], "mapped", [263]], [[263, 263], "valid"], [[264, 264], "mapped", [265]], [[265, 265], "valid"], [[266, 266], "mapped", [267]], [[267, 267], "valid"], [[268, 268], "mapped", [269]], [[269, 269], "valid"], [[270, 270], "mapped", [271]], [[271, 271], "valid"], [[272, 272], "mapped", [273]], [[273, 273], "valid"], [[274, 274], "mapped", [275]], [[275, 275], "valid"], [[276, 276], "mapped", [277]], [[277, 277], "valid"], [[278, 278], "mapped", [279]], [[279, 279], "valid"], [[280, 280], "mapped", [281]], [[281, 281], "valid"], [[282, 282], "mapped", [283]], [[283, 283], "valid"], [[284, 284], "mapped", [285]], [[285, 285], "valid"], [[286, 286], "mapped", [287]], [[287, 287], "valid"], [[288, 288], "mapped", [289]], [[289, 289], "valid"], [[290, 290], "mapped", [291]], [[291, 291], "valid"], [[292, 292], "mapped", [293]], [[293, 293], "valid"], [[294, 294], "mapped", [295]], [[295, 295], "valid"], [[296, 296], "mapped", [297]], [[297, 297], "valid"], [[298, 298], "mapped", [299]], [[299, 299], "valid"], [[300, 300], "mapped", [301]], [[301, 301], "valid"], [[302, 302], "mapped", [303]], [[303, 303], "valid"], [[304, 304], "mapped", [105, 775]], [[305, 305], "valid"], [[306, 307], "mapped", [105, 106]], [[308, 308], "mapped", [309]], [[309, 309], "valid"], [[310, 310], "mapped", [311]], [[311, 312], "valid"], [[313, 313], "mapped", [314]], [[314, 314], "valid"], [[315, 315], "mapped", [316]], [[316, 316], "valid"], [[317, 317], "mapped", [318]], [[318, 318], "valid"], [[319, 320], "mapped", [108, 183]], [[321, 321], "mapped", [322]], [[322, 322], "valid"], [[323, 323], "mapped", [324]], [[324, 324], "valid"], [[325, 325], "mapped", [326]], [[326, 326], "valid"], [[327, 327], "mapped", [328]], [[328, 328], "valid"], [[329, 329], "mapped", [700, 110]], [[330, 330], "mapped", [331]], [[331, 331], "valid"], [[332, 332], "mapped", [333]], [[333, 333], "valid"], [[334, 334], "mapped", [335]], [[335, 335], "valid"], [[336, 336], "mapped", [337]], [[337, 337], "valid"], [[338, 338], "mapped", [339]], [[339, 339], "valid"], [[340, 340], "mapped", [341]], [[341, 341], "valid"], [[342, 342], "mapped", [343]], [[343, 343], "valid"], [[344, 344], "mapped", [345]], [[345, 345], "valid"], [[346, 346], "mapped", [347]], [[347, 347], "valid"], [[348, 348], "mapped", [349]], [[349, 349], "valid"], [[350, 350], "mapped", [351]], [[351, 351], "valid"], [[352, 352], "mapped", [353]], [[353, 353], "valid"], [[354, 354], "mapped", [355]], [[355, 355], "valid"], [[356, 356], "mapped", [357]], [[357, 357], "valid"], [[358, 358], "mapped", [359]], [[359, 359], "valid"], [[360, 360], "mapped", [361]], [[361, 361], "valid"], [[362, 362], "mapped", [363]], [[363, 363], "valid"], [[364, 364], "mapped", [365]], [[365, 365], "valid"], [[366, 366], "mapped", [367]], [[367, 367], "valid"], [[368, 368], "mapped", [369]], [[369, 369], "valid"], [[370, 370], "mapped", [371]], [[371, 371], "valid"], [[372, 372], "mapped", [373]], [[373, 373], "valid"], [[374, 374], "mapped", [375]], [[375, 375], "valid"], [[376, 376], "mapped", [255]], [[377, 377], "mapped", [378]], [[378, 378], "valid"], [[379, 379], "mapped", [380]], [[380, 380], "valid"], [[381, 381], "mapped", [382]], [[382, 382], "valid"], [[383, 383], "mapped", [115]], [[384, 384], "valid"], [[385, 385], "mapped", [595]], [[386, 386], "mapped", [387]], [[387, 387], "valid"], [[388, 388], "mapped", [389]], [[389, 389], "valid"], [[390, 390], "mapped", [596]], [[391, 391], "mapped", [392]], [[392, 392], "valid"], [[393, 393], "mapped", [598]], [[394, 394], "mapped", [599]], [[395, 395], "mapped", [396]], [[396, 397], "valid"], [[398, 398], "mapped", [477]], [[399, 399], "mapped", [601]], [[400, 400], "mapped", [603]], [[401, 401], "mapped", [402]], [[402, 402], "valid"], [[403, 403], "mapped", [608]], [[404, 404], "mapped", [611]], [[405, 405], "valid"], [[406, 406], "mapped", [617]], [[407, 407], "mapped", [616]], [[408, 408], "mapped", [409]], [[409, 411], "valid"], [[412, 412], "mapped", [623]], [[413, 413], "mapped", [626]], [[414, 414], "valid"], [[415, 415], "mapped", [629]], [[416, 416], "mapped", [417]], [[417, 417], "valid"], [[418, 418], "mapped", [419]], [[419, 419], "valid"], [[420, 420], "mapped", [421]], [[421, 421], "valid"], [[422, 422], "mapped", [640]], [[423, 423], "mapped", [424]], [[424, 424], "valid"], [[425, 425], "mapped", [643]], [[426, 427], "valid"], [[428, 428], "mapped", [429]], [[429, 429], "valid"], [[430, 430], "mapped", [648]], [[431, 431], "mapped", [432]], [[432, 432], "valid"], [[433, 433], "mapped", [650]], [[434, 434], "mapped", [651]], [[435, 435], "mapped", [436]], [[436, 436], "valid"], [[437, 437], "mapped", [438]], [[438, 438], "valid"], [[439, 439], "mapped", [658]], [[440, 440], "mapped", [441]], [[441, 443], "valid"], [[444, 444], "mapped", [445]], [[445, 451], "valid"], [[452, 454], "mapped", [100, 382]], [[455, 457], "mapped", [108, 106]], [[458, 460], "mapped", [110, 106]], [[461, 461], "mapped", [462]], [[462, 462], "valid"], [[463, 463], "mapped", [464]], [[464, 464], "valid"], [[465, 465], "mapped", [466]], [[466, 466], "valid"], [[467, 467], "mapped", [468]], [[468, 468], "valid"], [[469, 469], "mapped", [470]], [[470, 470], "valid"], [[471, 471], "mapped", [472]], [[472, 472], "valid"], [[473, 473], "mapped", [474]], [[474, 474], "valid"], [[475, 475], "mapped", [476]], [[476, 477], "valid"], [[478, 478], "mapped", [479]], [[479, 479], "valid"], [[480, 480], "mapped", [481]], [[481, 481], "valid"], [[482, 482], "mapped", [483]], [[483, 483], "valid"], [[484, 484], "mapped", [485]], [[485, 485], "valid"], [[486, 486], "mapped", [487]], [[487, 487], "valid"], [[488, 488], "mapped", [489]], [[489, 489], "valid"], [[490, 490], "mapped", [491]], [[491, 491], "valid"], [[492, 492], "mapped", [493]], [[493, 493], "valid"], [[494, 494], "mapped", [495]], [[495, 496], "valid"], [[497, 499], "mapped", [100, 122]], [[500, 500], "mapped", [501]], [[501, 501], "valid"], [[502, 502], "mapped", [405]], [[503, 503], "mapped", [447]], [[504, 504], "mapped", [505]], [[505, 505], "valid"], [[506, 506], "mapped", [507]], [[507, 507], "valid"], [[508, 508], "mapped", [509]], [[509, 509], "valid"], [[510, 510], "mapped", [511]], [[511, 511], "valid"], [[512, 512], "mapped", [513]], [[513, 513], "valid"], [[514, 514], "mapped", [515]], [[515, 515], "valid"], [[516, 516], "mapped", [517]], [[517, 517], "valid"], [[518, 518], "mapped", [519]], [[519, 519], "valid"], [[520, 520], "mapped", [521]], [[521, 521], "valid"], [[522, 522], "mapped", [523]], [[523, 523], "valid"], [[524, 524], "mapped", [525]], [[525, 525], "valid"], [[526, 526], "mapped", [527]], [[527, 527], "valid"], [[528, 528], "mapped", [529]], [[529, 529], "valid"], [[530, 530], "mapped", [531]], [[531, 531], "valid"], [[532, 532], "mapped", [533]], [[533, 533], "valid"], [[534, 534], "mapped", [535]], [[535, 535], "valid"], [[536, 536], "mapped", [537]], [[537, 537], "valid"], [[538, 538], "mapped", [539]], [[539, 539], "valid"], [[540, 540], "mapped", [541]], [[541, 541], "valid"], [[542, 542], "mapped", [543]], [[543, 543], "valid"], [[544, 544], "mapped", [414]], [[545, 545], "valid"], [[546, 546], "mapped", [547]], [[547, 547], "valid"], [[548, 548], "mapped", [549]], [[549, 549], "valid"], [[550, 550], "mapped", [551]], [[551, 551], "valid"], [[552, 552], "mapped", [553]], [[553, 553], "valid"], [[554, 554], "mapped", [555]], [[555, 555], "valid"], [[556, 556], "mapped", [557]], [[557, 557], "valid"], [[558, 558], "mapped", [559]], [[559, 559], "valid"], [[560, 560], "mapped", [561]], [[561, 561], "valid"], [[562, 562], "mapped", [563]], [[563, 563], "valid"], [[564, 566], "valid"], [[567, 569], "valid"], [[570, 570], "mapped", [11365]], [[571, 571], "mapped", [572]], [[572, 572], "valid"], [[573, 573], "mapped", [410]], [[574, 574], "mapped", [11366]], [[575, 576], "valid"], [[577, 577], "mapped", [578]], [[578, 578], "valid"], [[579, 579], "mapped", [384]], [[580, 580], "mapped", [649]], [[581, 581], "mapped", [652]], [[582, 582], "mapped", [583]], [[583, 583], "valid"], [[584, 584], "mapped", [585]], [[585, 585], "valid"], [[586, 586], "mapped", [587]], [[587, 587], "valid"], [[588, 588], "mapped", [589]], [[589, 589], "valid"], [[590, 590], "mapped", [591]], [[591, 591], "valid"], [[592, 680], "valid"], [[681, 685], "valid"], [[686, 687], "valid"], [[688, 688], "mapped", [104]], [[689, 689], "mapped", [614]], [[690, 690], "mapped", [106]], [[691, 691], "mapped", [114]], [[692, 692], "mapped", [633]], [[693, 693], "mapped", [635]], [[694, 694], "mapped", [641]], [[695, 695], "mapped", [119]], [[696, 696], "mapped", [121]], [[697, 705], "valid"], [[706, 709], "valid", [], "NV8"], [[710, 721], "valid"], [[722, 727], "valid", [], "NV8"], [[728, 728], "disallowed_STD3_mapped", [32, 774]], [[729, 729], "disallowed_STD3_mapped", [32, 775]], [[730, 730], "disallowed_STD3_mapped", [32, 778]], [[731, 731], "disallowed_STD3_mapped", [32, 808]], [[732, 732], "disallowed_STD3_mapped", [32, 771]], [[733, 733], "disallowed_STD3_mapped", [32, 779]], [[734, 734], "valid", [], "NV8"], [[735, 735], "valid", [], "NV8"], [[736, 736], "mapped", [611]], [[737, 737], "mapped", [108]], [[738, 738], "mapped", [115]], [[739, 739], "mapped", [120]], [[740, 740], "mapped", [661]], [[741, 745], "valid", [], "NV8"], [[746, 747], "valid", [], "NV8"], [[748, 748], "valid"], [[749, 749], "valid", [], "NV8"], [[750, 750], "valid"], [[751, 767], "valid", [], "NV8"], [[768, 831], "valid"], [[832, 832], "mapped", [768]], [[833, 833], "mapped", [769]], [[834, 834], "valid"], [[835, 835], "mapped", [787]], [[836, 836], "mapped", [776, 769]], [[837, 837], "mapped", [953]], [[838, 846], "valid"], [[847, 847], "ignored"], [[848, 855], "valid"], [[856, 860], "valid"], [[861, 863], "valid"], [[864, 865], "valid"], [[866, 866], "valid"], [[867, 879], "valid"], [[880, 880], "mapped", [881]], [[881, 881], "valid"], [[882, 882], "mapped", [883]], [[883, 883], "valid"], [[884, 884], "mapped", [697]], [[885, 885], "valid"], [[886, 886], "mapped", [887]], [[887, 887], "valid"], [[888, 889], "disallowed"], [[890, 890], "disallowed_STD3_mapped", [32, 953]], [[891, 893], "valid"], [[894, 894], "disallowed_STD3_mapped", [59]], [[895, 895], "mapped", [1011]], [[896, 899], "disallowed"], [[900, 900], "disallowed_STD3_mapped", [32, 769]], [[901, 901], "disallowed_STD3_mapped", [32, 776, 769]], [[902, 902], "mapped", [940]], [[903, 903], "mapped", [183]], [[904, 904], "mapped", [941]], [[905, 905], "mapped", [942]], [[906, 906], "mapped", [943]], [[907, 907], "disallowed"], [[908, 908], "mapped", [972]], [[909, 909], "disallowed"], [[910, 910], "mapped", [973]], [[911, 911], "mapped", [974]], [[912, 912], "valid"], [[913, 913], "mapped", [945]], [[914, 914], "mapped", [946]], [[915, 915], "mapped", [947]], [[916, 916], "mapped", [948]], [[917, 917], "mapped", [949]], [[918, 918], "mapped", [950]], [[919, 919], "mapped", [951]], [[920, 920], "mapped", [952]], [[921, 921], "mapped", [953]], [[922, 922], "mapped", [954]], [[923, 923], "mapped", [955]], [[924, 924], "mapped", [956]], [[925, 925], "mapped", [957]], [[926, 926], "mapped", [958]], [[927, 927], "mapped", [959]], [[928, 928], "mapped", [960]], [[929, 929], "mapped", [961]], [[930, 930], "disallowed"], [[931, 931], "mapped", [963]], [[932, 932], "mapped", [964]], [[933, 933], "mapped", [965]], [[934, 934], "mapped", [966]], [[935, 935], "mapped", [967]], [[936, 936], "mapped", [968]], [[937, 937], "mapped", [969]], [[938, 938], "mapped", [970]], [[939, 939], "mapped", [971]], [[940, 961], "valid"], [[962, 962], "deviation", [963]], [[963, 974], "valid"], [[975, 975], "mapped", [983]], [[976, 976], "mapped", [946]], [[977, 977], "mapped", [952]], [[978, 978], "mapped", [965]], [[979, 979], "mapped", [973]], [[980, 980], "mapped", [971]], [[981, 981], "mapped", [966]], [[982, 982], "mapped", [960]], [[983, 983], "valid"], [[984, 984], "mapped", [985]], [[985, 985], "valid"], [[986, 986], "mapped", [987]], [[987, 987], "valid"], [[988, 988], "mapped", [989]], [[989, 989], "valid"], [[990, 990], "mapped", [991]], [[991, 991], "valid"], [[992, 992], "mapped", [993]], [[993, 993], "valid"], [[994, 994], "mapped", [995]], [[995, 995], "valid"], [[996, 996], "mapped", [997]], [[997, 997], "valid"], [[998, 998], "mapped", [999]], [[999, 999], "valid"], [[1e3, 1e3], "mapped", [1001]], [[1001, 1001], "valid"], [[1002, 1002], "mapped", [1003]], [[1003, 1003], "valid"], [[1004, 1004], "mapped", [1005]], [[1005, 1005], "valid"], [[1006, 1006], "mapped", [1007]], [[1007, 1007], "valid"], [[1008, 1008], "mapped", [954]], [[1009, 1009], "mapped", [961]], [[1010, 1010], "mapped", [963]], [[1011, 1011], "valid"], [[1012, 1012], "mapped", [952]], [[1013, 1013], "mapped", [949]], [[1014, 1014], "valid", [], "NV8"], [[1015, 1015], "mapped", [1016]], [[1016, 1016], "valid"], [[1017, 1017], "mapped", [963]], [[1018, 1018], "mapped", [1019]], [[1019, 1019], "valid"], [[1020, 1020], "valid"], [[1021, 1021], "mapped", [891]], [[1022, 1022], "mapped", [892]], [[1023, 1023], "mapped", [893]], [[1024, 1024], "mapped", [1104]], [[1025, 1025], "mapped", [1105]], [[1026, 1026], "mapped", [1106]], [[1027, 1027], "mapped", [1107]], [[1028, 1028], "mapped", [1108]], [[1029, 1029], "mapped", [1109]], [[1030, 1030], "mapped", [1110]], [[1031, 1031], "mapped", [1111]], [[1032, 1032], "mapped", [1112]], [[1033, 1033], "mapped", [1113]], [[1034, 1034], "mapped", [1114]], [[1035, 1035], "mapped", [1115]], [[1036, 1036], "mapped", [1116]], [[1037, 1037], "mapped", [1117]], [[1038, 1038], "mapped", [1118]], [[1039, 1039], "mapped", [1119]], [[1040, 1040], "mapped", [1072]], [[1041, 1041], "mapped", [1073]], [[1042, 1042], "mapped", [1074]], [[1043, 1043], "mapped", [1075]], [[1044, 1044], "mapped", [1076]], [[1045, 1045], "mapped", [1077]], [[1046, 1046], "mapped", [1078]], [[1047, 1047], "mapped", [1079]], [[1048, 1048], "mapped", [1080]], [[1049, 1049], "mapped", [1081]], [[1050, 1050], "mapped", [1082]], [[1051, 1051], "mapped", [1083]], [[1052, 1052], "mapped", [1084]], [[1053, 1053], "mapped", [1085]], [[1054, 1054], "mapped", [1086]], [[1055, 1055], "mapped", [1087]], [[1056, 1056], "mapped", [1088]], [[1057, 1057], "mapped", [1089]], [[1058, 1058], "mapped", [1090]], [[1059, 1059], "mapped", [1091]], [[1060, 1060], "mapped", [1092]], [[1061, 1061], "mapped", [1093]], [[1062, 1062], "mapped", [1094]], [[1063, 1063], "mapped", [1095]], [[1064, 1064], "mapped", [1096]], [[1065, 1065], "mapped", [1097]], [[1066, 1066], "mapped", [1098]], [[1067, 1067], "mapped", [1099]], [[1068, 1068], "mapped", [1100]], [[1069, 1069], "mapped", [1101]], [[1070, 1070], "mapped", [1102]], [[1071, 1071], "mapped", [1103]], [[1072, 1103], "valid"], [[1104, 1104], "valid"], [[1105, 1116], "valid"], [[1117, 1117], "valid"], [[1118, 1119], "valid"], [[1120, 1120], "mapped", [1121]], [[1121, 1121], "valid"], [[1122, 1122], "mapped", [1123]], [[1123, 1123], "valid"], [[1124, 1124], "mapped", [1125]], [[1125, 1125], "valid"], [[1126, 1126], "mapped", [1127]], [[1127, 1127], "valid"], [[1128, 1128], "mapped", [1129]], [[1129, 1129], "valid"], [[1130, 1130], "mapped", [1131]], [[1131, 1131], "valid"], [[1132, 1132], "mapped", [1133]], [[1133, 1133], "valid"], [[1134, 1134], "mapped", [1135]], [[1135, 1135], "valid"], [[1136, 1136], "mapped", [1137]], [[1137, 1137], "valid"], [[1138, 1138], "mapped", [1139]], [[1139, 1139], "valid"], [[1140, 1140], "mapped", [1141]], [[1141, 1141], "valid"], [[1142, 1142], "mapped", [1143]], [[1143, 1143], "valid"], [[1144, 1144], "mapped", [1145]], [[1145, 1145], "valid"], [[1146, 1146], "mapped", [1147]], [[1147, 1147], "valid"], [[1148, 1148], "mapped", [1149]], [[1149, 1149], "valid"], [[1150, 1150], "mapped", [1151]], [[1151, 1151], "valid"], [[1152, 1152], "mapped", [1153]], [[1153, 1153], "valid"], [[1154, 1154], "valid", [], "NV8"], [[1155, 1158], "valid"], [[1159, 1159], "valid"], [[1160, 1161], "valid", [], "NV8"], [[1162, 1162], "mapped", [1163]], [[1163, 1163], "valid"], [[1164, 1164], "mapped", [1165]], [[1165, 1165], "valid"], [[1166, 1166], "mapped", [1167]], [[1167, 1167], "valid"], [[1168, 1168], "mapped", [1169]], [[1169, 1169], "valid"], [[1170, 1170], "mapped", [1171]], [[1171, 1171], "valid"], [[1172, 1172], "mapped", [1173]], [[1173, 1173], "valid"], [[1174, 1174], "mapped", [1175]], [[1175, 1175], "valid"], [[1176, 1176], "mapped", [1177]], [[1177, 1177], "valid"], [[1178, 1178], "mapped", [1179]], [[1179, 1179], "valid"], [[1180, 1180], "mapped", [1181]], [[1181, 1181], "valid"], [[1182, 1182], "mapped", [1183]], [[1183, 1183], "valid"], [[1184, 1184], "mapped", [1185]], [[1185, 1185], "valid"], [[1186, 1186], "mapped", [1187]], [[1187, 1187], "valid"], [[1188, 1188], "mapped", [1189]], [[1189, 1189], "valid"], [[1190, 1190], "mapped", [1191]], [[1191, 1191], "valid"], [[1192, 1192], "mapped", [1193]], [[1193, 1193], "valid"], [[1194, 1194], "mapped", [1195]], [[1195, 1195], "valid"], [[1196, 1196], "mapped", [1197]], [[1197, 1197], "valid"], [[1198, 1198], "mapped", [1199]], [[1199, 1199], "valid"], [[1200, 1200], "mapped", [1201]], [[1201, 1201], "valid"], [[1202, 1202], "mapped", [1203]], [[1203, 1203], "valid"], [[1204, 1204], "mapped", [1205]], [[1205, 1205], "valid"], [[1206, 1206], "mapped", [1207]], [[1207, 1207], "valid"], [[1208, 1208], "mapped", [1209]], [[1209, 1209], "valid"], [[1210, 1210], "mapped", [1211]], [[1211, 1211], "valid"], [[1212, 1212], "mapped", [1213]], [[1213, 1213], "valid"], [[1214, 1214], "mapped", [1215]], [[1215, 1215], "valid"], [[1216, 1216], "disallowed"], [[1217, 1217], "mapped", [1218]], [[1218, 1218], "valid"], [[1219, 1219], "mapped", [1220]], [[1220, 1220], "valid"], [[1221, 1221], "mapped", [1222]], [[1222, 1222], "valid"], [[1223, 1223], "mapped", [1224]], [[1224, 1224], "valid"], [[1225, 1225], "mapped", [1226]], [[1226, 1226], "valid"], [[1227, 1227], "mapped", [1228]], [[1228, 1228], "valid"], [[1229, 1229], "mapped", [1230]], [[1230, 1230], "valid"], [[1231, 1231], "valid"], [[1232, 1232], "mapped", [1233]], [[1233, 1233], "valid"], [[1234, 1234], "mapped", [1235]], [[1235, 1235], "valid"], [[1236, 1236], "mapped", [1237]], [[1237, 1237], "valid"], [[1238, 1238], "mapped", [1239]], [[1239, 1239], "valid"], [[1240, 1240], "mapped", [1241]], [[1241, 1241], "valid"], [[1242, 1242], "mapped", [1243]], [[1243, 1243], "valid"], [[1244, 1244], "mapped", [1245]], [[1245, 1245], "valid"], [[1246, 1246], "mapped", [1247]], [[1247, 1247], "valid"], [[1248, 1248], "mapped", [1249]], [[1249, 1249], "valid"], [[1250, 1250], "mapped", [1251]], [[1251, 1251], "valid"], [[1252, 1252], "mapped", [1253]], [[1253, 1253], "valid"], [[1254, 1254], "mapped", [1255]], [[1255, 1255], "valid"], [[1256, 1256], "mapped", [1257]], [[1257, 1257], "valid"], [[1258, 1258], "mapped", [1259]], [[1259, 1259], "valid"], [[1260, 1260], "mapped", [1261]], [[1261, 1261], "valid"], [[1262, 1262], "mapped", [1263]], [[1263, 1263], "valid"], [[1264, 1264], "mapped", [1265]], [[1265, 1265], "valid"], [[1266, 1266], "mapped", [1267]], [[1267, 1267], "valid"], [[1268, 1268], "mapped", [1269]], [[1269, 1269], "valid"], [[1270, 1270], "mapped", [1271]], [[1271, 1271], "valid"], [[1272, 1272], "mapped", [1273]], [[1273, 1273], "valid"], [[1274, 1274], "mapped", [1275]], [[1275, 1275], "valid"], [[1276, 1276], "mapped", [1277]], [[1277, 1277], "valid"], [[1278, 1278], "mapped", [1279]], [[1279, 1279], "valid"], [[1280, 1280], "mapped", [1281]], [[1281, 1281], "valid"], [[1282, 1282], "mapped", [1283]], [[1283, 1283], "valid"], [[1284, 1284], "mapped", [1285]], [[1285, 1285], "valid"], [[1286, 1286], "mapped", [1287]], [[1287, 1287], "valid"], [[1288, 1288], "mapped", [1289]], [[1289, 1289], "valid"], [[1290, 1290], "mapped", [1291]], [[1291, 1291], "valid"], [[1292, 1292], "mapped", [1293]], [[1293, 1293], "valid"], [[1294, 1294], "mapped", [1295]], [[1295, 1295], "valid"], [[1296, 1296], "mapped", [1297]], [[1297, 1297], "valid"], [[1298, 1298], "mapped", [1299]], [[1299, 1299], "valid"], [[1300, 1300], "mapped", [1301]], [[1301, 1301], "valid"], [[1302, 1302], "mapped", [1303]], [[1303, 1303], "valid"], [[1304, 1304], "mapped", [1305]], [[1305, 1305], "valid"], [[1306, 1306], "mapped", [1307]], [[1307, 1307], "valid"], [[1308, 1308], "mapped", [1309]], [[1309, 1309], "valid"], [[1310, 1310], "mapped", [1311]], [[1311, 1311], "valid"], [[1312, 1312], "mapped", [1313]], [[1313, 1313], "valid"], [[1314, 1314], "mapped", [1315]], [[1315, 1315], "valid"], [[1316, 1316], "mapped", [1317]], [[1317, 1317], "valid"], [[1318, 1318], "mapped", [1319]], [[1319, 1319], "valid"], [[1320, 1320], "mapped", [1321]], [[1321, 1321], "valid"], [[1322, 1322], "mapped", [1323]], [[1323, 1323], "valid"], [[1324, 1324], "mapped", [1325]], [[1325, 1325], "valid"], [[1326, 1326], "mapped", [1327]], [[1327, 1327], "valid"], [[1328, 1328], "disallowed"], [[1329, 1329], "mapped", [1377]], [[1330, 1330], "mapped", [1378]], [[1331, 1331], "mapped", [1379]], [[1332, 1332], "mapped", [1380]], [[1333, 1333], "mapped", [1381]], [[1334, 1334], "mapped", [1382]], [[1335, 1335], "mapped", [1383]], [[1336, 1336], "mapped", [1384]], [[1337, 1337], "mapped", [1385]], [[1338, 1338], "mapped", [1386]], [[1339, 1339], "mapped", [1387]], [[1340, 1340], "mapped", [1388]], [[1341, 1341], "mapped", [1389]], [[1342, 1342], "mapped", [1390]], [[1343, 1343], "mapped", [1391]], [[1344, 1344], "mapped", [1392]], [[1345, 1345], "mapped", [1393]], [[1346, 1346], "mapped", [1394]], [[1347, 1347], "mapped", [1395]], [[1348, 1348], "mapped", [1396]], [[1349, 1349], "mapped", [1397]], [[1350, 1350], "mapped", [1398]], [[1351, 1351], "mapped", [1399]], [[1352, 1352], "mapped", [1400]], [[1353, 1353], "mapped", [1401]], [[1354, 1354], "mapped", [1402]], [[1355, 1355], "mapped", [1403]], [[1356, 1356], "mapped", [1404]], [[1357, 1357], "mapped", [1405]], [[1358, 1358], "mapped", [1406]], [[1359, 1359], "mapped", [1407]], [[1360, 1360], "mapped", [1408]], [[1361, 1361], "mapped", [1409]], [[1362, 1362], "mapped", [1410]], [[1363, 1363], "mapped", [1411]], [[1364, 1364], "mapped", [1412]], [[1365, 1365], "mapped", [1413]], [[1366, 1366], "mapped", [1414]], [[1367, 1368], "disallowed"], [[1369, 1369], "valid"], [[1370, 1375], "valid", [], "NV8"], [[1376, 1376], "disallowed"], [[1377, 1414], "valid"], [[1415, 1415], "mapped", [1381, 1410]], [[1416, 1416], "disallowed"], [[1417, 1417], "valid", [], "NV8"], [[1418, 1418], "valid", [], "NV8"], [[1419, 1420], "disallowed"], [[1421, 1422], "valid", [], "NV8"], [[1423, 1423], "valid", [], "NV8"], [[1424, 1424], "disallowed"], [[1425, 1441], "valid"], [[1442, 1442], "valid"], [[1443, 1455], "valid"], [[1456, 1465], "valid"], [[1466, 1466], "valid"], [[1467, 1469], "valid"], [[1470, 1470], "valid", [], "NV8"], [[1471, 1471], "valid"], [[1472, 1472], "valid", [], "NV8"], [[1473, 1474], "valid"], [[1475, 1475], "valid", [], "NV8"], [[1476, 1476], "valid"], [[1477, 1477], "valid"], [[1478, 1478], "valid", [], "NV8"], [[1479, 1479], "valid"], [[1480, 1487], "disallowed"], [[1488, 1514], "valid"], [[1515, 1519], "disallowed"], [[1520, 1524], "valid"], [[1525, 1535], "disallowed"], [[1536, 1539], "disallowed"], [[1540, 1540], "disallowed"], [[1541, 1541], "disallowed"], [[1542, 1546], "valid", [], "NV8"], [[1547, 1547], "valid", [], "NV8"], [[1548, 1548], "valid", [], "NV8"], [[1549, 1551], "valid", [], "NV8"], [[1552, 1557], "valid"], [[1558, 1562], "valid"], [[1563, 1563], "valid", [], "NV8"], [[1564, 1564], "disallowed"], [[1565, 1565], "disallowed"], [[1566, 1566], "valid", [], "NV8"], [[1567, 1567], "valid", [], "NV8"], [[1568, 1568], "valid"], [[1569, 1594], "valid"], [[1595, 1599], "valid"], [[1600, 1600], "valid", [], "NV8"], [[1601, 1618], "valid"], [[1619, 1621], "valid"], [[1622, 1624], "valid"], [[1625, 1630], "valid"], [[1631, 1631], "valid"], [[1632, 1641], "valid"], [[1642, 1645], "valid", [], "NV8"], [[1646, 1647], "valid"], [[1648, 1652], "valid"], [[1653, 1653], "mapped", [1575, 1652]], [[1654, 1654], "mapped", [1608, 1652]], [[1655, 1655], "mapped", [1735, 1652]], [[1656, 1656], "mapped", [1610, 1652]], [[1657, 1719], "valid"], [[1720, 1721], "valid"], [[1722, 1726], "valid"], [[1727, 1727], "valid"], [[1728, 1742], "valid"], [[1743, 1743], "valid"], [[1744, 1747], "valid"], [[1748, 1748], "valid", [], "NV8"], [[1749, 1756], "valid"], [[1757, 1757], "disallowed"], [[1758, 1758], "valid", [], "NV8"], [[1759, 1768], "valid"], [[1769, 1769], "valid", [], "NV8"], [[1770, 1773], "valid"], [[1774, 1775], "valid"], [[1776, 1785], "valid"], [[1786, 1790], "valid"], [[1791, 1791], "valid"], [[1792, 1805], "valid", [], "NV8"], [[1806, 1806], "disallowed"], [[1807, 1807], "disallowed"], [[1808, 1836], "valid"], [[1837, 1839], "valid"], [[1840, 1866], "valid"], [[1867, 1868], "disallowed"], [[1869, 1871], "valid"], [[1872, 1901], "valid"], [[1902, 1919], "valid"], [[1920, 1968], "valid"], [[1969, 1969], "valid"], [[1970, 1983], "disallowed"], [[1984, 2037], "valid"], [[2038, 2042], "valid", [], "NV8"], [[2043, 2047], "disallowed"], [[2048, 2093], "valid"], [[2094, 2095], "disallowed"], [[2096, 2110], "valid", [], "NV8"], [[2111, 2111], "disallowed"], [[2112, 2139], "valid"], [[2140, 2141], "disallowed"], [[2142, 2142], "valid", [], "NV8"], [[2143, 2207], "disallowed"], [[2208, 2208], "valid"], [[2209, 2209], "valid"], [[2210, 2220], "valid"], [[2221, 2226], "valid"], [[2227, 2228], "valid"], [[2229, 2274], "disallowed"], [[2275, 2275], "valid"], [[2276, 2302], "valid"], [[2303, 2303], "valid"], [[2304, 2304], "valid"], [[2305, 2307], "valid"], [[2308, 2308], "valid"], [[2309, 2361], "valid"], [[2362, 2363], "valid"], [[2364, 2381], "valid"], [[2382, 2382], "valid"], [[2383, 2383], "valid"], [[2384, 2388], "valid"], [[2389, 2389], "valid"], [[2390, 2391], "valid"], [[2392, 2392], "mapped", [2325, 2364]], [[2393, 2393], "mapped", [2326, 2364]], [[2394, 2394], "mapped", [2327, 2364]], [[2395, 2395], "mapped", [2332, 2364]], [[2396, 2396], "mapped", [2337, 2364]], [[2397, 2397], "mapped", [2338, 2364]], [[2398, 2398], "mapped", [2347, 2364]], [[2399, 2399], "mapped", [2351, 2364]], [[2400, 2403], "valid"], [[2404, 2405], "valid", [], "NV8"], [[2406, 2415], "valid"], [[2416, 2416], "valid", [], "NV8"], [[2417, 2418], "valid"], [[2419, 2423], "valid"], [[2424, 2424], "valid"], [[2425, 2426], "valid"], [[2427, 2428], "valid"], [[2429, 2429], "valid"], [[2430, 2431], "valid"], [[2432, 2432], "valid"], [[2433, 2435], "valid"], [[2436, 2436], "disallowed"], [[2437, 2444], "valid"], [[2445, 2446], "disallowed"], [[2447, 2448], "valid"], [[2449, 2450], "disallowed"], [[2451, 2472], "valid"], [[2473, 2473], "disallowed"], [[2474, 2480], "valid"], [[2481, 2481], "disallowed"], [[2482, 2482], "valid"], [[2483, 2485], "disallowed"], [[2486, 2489], "valid"], [[2490, 2491], "disallowed"], [[2492, 2492], "valid"], [[2493, 2493], "valid"], [[2494, 2500], "valid"], [[2501, 2502], "disallowed"], [[2503, 2504], "valid"], [[2505, 2506], "disallowed"], [[2507, 2509], "valid"], [[2510, 2510], "valid"], [[2511, 2518], "disallowed"], [[2519, 2519], "valid"], [[2520, 2523], "disallowed"], [[2524, 2524], "mapped", [2465, 2492]], [[2525, 2525], "mapped", [2466, 2492]], [[2526, 2526], "disallowed"], [[2527, 2527], "mapped", [2479, 2492]], [[2528, 2531], "valid"], [[2532, 2533], "disallowed"], [[2534, 2545], "valid"], [[2546, 2554], "valid", [], "NV8"], [[2555, 2555], "valid", [], "NV8"], [[2556, 2560], "disallowed"], [[2561, 2561], "valid"], [[2562, 2562], "valid"], [[2563, 2563], "valid"], [[2564, 2564], "disallowed"], [[2565, 2570], "valid"], [[2571, 2574], "disallowed"], [[2575, 2576], "valid"], [[2577, 2578], "disallowed"], [[2579, 2600], "valid"], [[2601, 2601], "disallowed"], [[2602, 2608], "valid"], [[2609, 2609], "disallowed"], [[2610, 2610], "valid"], [[2611, 2611], "mapped", [2610, 2620]], [[2612, 2612], "disallowed"], [[2613, 2613], "valid"], [[2614, 2614], "mapped", [2616, 2620]], [[2615, 2615], "disallowed"], [[2616, 2617], "valid"], [[2618, 2619], "disallowed"], [[2620, 2620], "valid"], [[2621, 2621], "disallowed"], [[2622, 2626], "valid"], [[2627, 2630], "disallowed"], [[2631, 2632], "valid"], [[2633, 2634], "disallowed"], [[2635, 2637], "valid"], [[2638, 2640], "disallowed"], [[2641, 2641], "valid"], [[2642, 2648], "disallowed"], [[2649, 2649], "mapped", [2582, 2620]], [[2650, 2650], "mapped", [2583, 2620]], [[2651, 2651], "mapped", [2588, 2620]], [[2652, 2652], "valid"], [[2653, 2653], "disallowed"], [[2654, 2654], "mapped", [2603, 2620]], [[2655, 2661], "disallowed"], [[2662, 2676], "valid"], [[2677, 2677], "valid"], [[2678, 2688], "disallowed"], [[2689, 2691], "valid"], [[2692, 2692], "disallowed"], [[2693, 2699], "valid"], [[2700, 2700], "valid"], [[2701, 2701], "valid"], [[2702, 2702], "disallowed"], [[2703, 2705], "valid"], [[2706, 2706], "disallowed"], [[2707, 2728], "valid"], [[2729, 2729], "disallowed"], [[2730, 2736], "valid"], [[2737, 2737], "disallowed"], [[2738, 2739], "valid"], [[2740, 2740], "disallowed"], [[2741, 2745], "valid"], [[2746, 2747], "disallowed"], [[2748, 2757], "valid"], [[2758, 2758], "disallowed"], [[2759, 2761], "valid"], [[2762, 2762], "disallowed"], [[2763, 2765], "valid"], [[2766, 2767], "disallowed"], [[2768, 2768], "valid"], [[2769, 2783], "disallowed"], [[2784, 2784], "valid"], [[2785, 2787], "valid"], [[2788, 2789], "disallowed"], [[2790, 2799], "valid"], [[2800, 2800], "valid", [], "NV8"], [[2801, 2801], "valid", [], "NV8"], [[2802, 2808], "disallowed"], [[2809, 2809], "valid"], [[2810, 2816], "disallowed"], [[2817, 2819], "valid"], [[2820, 2820], "disallowed"], [[2821, 2828], "valid"], [[2829, 2830], "disallowed"], [[2831, 2832], "valid"], [[2833, 2834], "disallowed"], [[2835, 2856], "valid"], [[2857, 2857], "disallowed"], [[2858, 2864], "valid"], [[2865, 2865], "disallowed"], [[2866, 2867], "valid"], [[2868, 2868], "disallowed"], [[2869, 2869], "valid"], [[2870, 2873], "valid"], [[2874, 2875], "disallowed"], [[2876, 2883], "valid"], [[2884, 2884], "valid"], [[2885, 2886], "disallowed"], [[2887, 2888], "valid"], [[2889, 2890], "disallowed"], [[2891, 2893], "valid"], [[2894, 2901], "disallowed"], [[2902, 2903], "valid"], [[2904, 2907], "disallowed"], [[2908, 2908], "mapped", [2849, 2876]], [[2909, 2909], "mapped", [2850, 2876]], [[2910, 2910], "disallowed"], [[2911, 2913], "valid"], [[2914, 2915], "valid"], [[2916, 2917], "disallowed"], [[2918, 2927], "valid"], [[2928, 2928], "valid", [], "NV8"], [[2929, 2929], "valid"], [[2930, 2935], "valid", [], "NV8"], [[2936, 2945], "disallowed"], [[2946, 2947], "valid"], [[2948, 2948], "disallowed"], [[2949, 2954], "valid"], [[2955, 2957], "disallowed"], [[2958, 2960], "valid"], [[2961, 2961], "disallowed"], [[2962, 2965], "valid"], [[2966, 2968], "disallowed"], [[2969, 2970], "valid"], [[2971, 2971], "disallowed"], [[2972, 2972], "valid"], [[2973, 2973], "disallowed"], [[2974, 2975], "valid"], [[2976, 2978], "disallowed"], [[2979, 2980], "valid"], [[2981, 2983], "disallowed"], [[2984, 2986], "valid"], [[2987, 2989], "disallowed"], [[2990, 2997], "valid"], [[2998, 2998], "valid"], [[2999, 3001], "valid"], [[3002, 3005], "disallowed"], [[3006, 3010], "valid"], [[3011, 3013], "disallowed"], [[3014, 3016], "valid"], [[3017, 3017], "disallowed"], [[3018, 3021], "valid"], [[3022, 3023], "disallowed"], [[3024, 3024], "valid"], [[3025, 3030], "disallowed"], [[3031, 3031], "valid"], [[3032, 3045], "disallowed"], [[3046, 3046], "valid"], [[3047, 3055], "valid"], [[3056, 3058], "valid", [], "NV8"], [[3059, 3066], "valid", [], "NV8"], [[3067, 3071], "disallowed"], [[3072, 3072], "valid"], [[3073, 3075], "valid"], [[3076, 3076], "disallowed"], [[3077, 3084], "valid"], [[3085, 3085], "disallowed"], [[3086, 3088], "valid"], [[3089, 3089], "disallowed"], [[3090, 3112], "valid"], [[3113, 3113], "disallowed"], [[3114, 3123], "valid"], [[3124, 3124], "valid"], [[3125, 3129], "valid"], [[3130, 3132], "disallowed"], [[3133, 3133], "valid"], [[3134, 3140], "valid"], [[3141, 3141], "disallowed"], [[3142, 3144], "valid"], [[3145, 3145], "disallowed"], [[3146, 3149], "valid"], [[3150, 3156], "disallowed"], [[3157, 3158], "valid"], [[3159, 3159], "disallowed"], [[3160, 3161], "valid"], [[3162, 3162], "valid"], [[3163, 3167], "disallowed"], [[3168, 3169], "valid"], [[3170, 3171], "valid"], [[3172, 3173], "disallowed"], [[3174, 3183], "valid"], [[3184, 3191], "disallowed"], [[3192, 3199], "valid", [], "NV8"], [[3200, 3200], "disallowed"], [[3201, 3201], "valid"], [[3202, 3203], "valid"], [[3204, 3204], "disallowed"], [[3205, 3212], "valid"], [[3213, 3213], "disallowed"], [[3214, 3216], "valid"], [[3217, 3217], "disallowed"], [[3218, 3240], "valid"], [[3241, 3241], "disallowed"], [[3242, 3251], "valid"], [[3252, 3252], "disallowed"], [[3253, 3257], "valid"], [[3258, 3259], "disallowed"], [[3260, 3261], "valid"], [[3262, 3268], "valid"], [[3269, 3269], "disallowed"], [[3270, 3272], "valid"], [[3273, 3273], "disallowed"], [[3274, 3277], "valid"], [[3278, 3284], "disallowed"], [[3285, 3286], "valid"], [[3287, 3293], "disallowed"], [[3294, 3294], "valid"], [[3295, 3295], "disallowed"], [[3296, 3297], "valid"], [[3298, 3299], "valid"], [[3300, 3301], "disallowed"], [[3302, 3311], "valid"], [[3312, 3312], "disallowed"], [[3313, 3314], "valid"], [[3315, 3328], "disallowed"], [[3329, 3329], "valid"], [[3330, 3331], "valid"], [[3332, 3332], "disallowed"], [[3333, 3340], "valid"], [[3341, 3341], "disallowed"], [[3342, 3344], "valid"], [[3345, 3345], "disallowed"], [[3346, 3368], "valid"], [[3369, 3369], "valid"], [[3370, 3385], "valid"], [[3386, 3386], "valid"], [[3387, 3388], "disallowed"], [[3389, 3389], "valid"], [[3390, 3395], "valid"], [[3396, 3396], "valid"], [[3397, 3397], "disallowed"], [[3398, 3400], "valid"], [[3401, 3401], "disallowed"], [[3402, 3405], "valid"], [[3406, 3406], "valid"], [[3407, 3414], "disallowed"], [[3415, 3415], "valid"], [[3416, 3422], "disallowed"], [[3423, 3423], "valid"], [[3424, 3425], "valid"], [[3426, 3427], "valid"], [[3428, 3429], "disallowed"], [[3430, 3439], "valid"], [[3440, 3445], "valid", [], "NV8"], [[3446, 3448], "disallowed"], [[3449, 3449], "valid", [], "NV8"], [[3450, 3455], "valid"], [[3456, 3457], "disallowed"], [[3458, 3459], "valid"], [[3460, 3460], "disallowed"], [[3461, 3478], "valid"], [[3479, 3481], "disallowed"], [[3482, 3505], "valid"], [[3506, 3506], "disallowed"], [[3507, 3515], "valid"], [[3516, 3516], "disallowed"], [[3517, 3517], "valid"], [[3518, 3519], "disallowed"], [[3520, 3526], "valid"], [[3527, 3529], "disallowed"], [[3530, 3530], "valid"], [[3531, 3534], "disallowed"], [[3535, 3540], "valid"], [[3541, 3541], "disallowed"], [[3542, 3542], "valid"], [[3543, 3543], "disallowed"], [[3544, 3551], "valid"], [[3552, 3557], "disallowed"], [[3558, 3567], "valid"], [[3568, 3569], "disallowed"], [[3570, 3571], "valid"], [[3572, 3572], "valid", [], "NV8"], [[3573, 3584], "disallowed"], [[3585, 3634], "valid"], [[3635, 3635], "mapped", [3661, 3634]], [[3636, 3642], "valid"], [[3643, 3646], "disallowed"], [[3647, 3647], "valid", [], "NV8"], [[3648, 3662], "valid"], [[3663, 3663], "valid", [], "NV8"], [[3664, 3673], "valid"], [[3674, 3675], "valid", [], "NV8"], [[3676, 3712], "disallowed"], [[3713, 3714], "valid"], [[3715, 3715], "disallowed"], [[3716, 3716], "valid"], [[3717, 3718], "disallowed"], [[3719, 3720], "valid"], [[3721, 3721], "disallowed"], [[3722, 3722], "valid"], [[3723, 3724], "disallowed"], [[3725, 3725], "valid"], [[3726, 3731], "disallowed"], [[3732, 3735], "valid"], [[3736, 3736], "disallowed"], [[3737, 3743], "valid"], [[3744, 3744], "disallowed"], [[3745, 3747], "valid"], [[3748, 3748], "disallowed"], [[3749, 3749], "valid"], [[3750, 3750], "disallowed"], [[3751, 3751], "valid"], [[3752, 3753], "disallowed"], [[3754, 3755], "valid"], [[3756, 3756], "disallowed"], [[3757, 3762], "valid"], [[3763, 3763], "mapped", [3789, 3762]], [[3764, 3769], "valid"], [[3770, 3770], "disallowed"], [[3771, 3773], "valid"], [[3774, 3775], "disallowed"], [[3776, 3780], "valid"], [[3781, 3781], "disallowed"], [[3782, 3782], "valid"], [[3783, 3783], "disallowed"], [[3784, 3789], "valid"], [[3790, 3791], "disallowed"], [[3792, 3801], "valid"], [[3802, 3803], "disallowed"], [[3804, 3804], "mapped", [3755, 3737]], [[3805, 3805], "mapped", [3755, 3745]], [[3806, 3807], "valid"], [[3808, 3839], "disallowed"], [[3840, 3840], "valid"], [[3841, 3850], "valid", [], "NV8"], [[3851, 3851], "valid"], [[3852, 3852], "mapped", [3851]], [[3853, 3863], "valid", [], "NV8"], [[3864, 3865], "valid"], [[3866, 3871], "valid", [], "NV8"], [[3872, 3881], "valid"], [[3882, 3892], "valid", [], "NV8"], [[3893, 3893], "valid"], [[3894, 3894], "valid", [], "NV8"], [[3895, 3895], "valid"], [[3896, 3896], "valid", [], "NV8"], [[3897, 3897], "valid"], [[3898, 3901], "valid", [], "NV8"], [[3902, 3906], "valid"], [[3907, 3907], "mapped", [3906, 4023]], [[3908, 3911], "valid"], [[3912, 3912], "disallowed"], [[3913, 3916], "valid"], [[3917, 3917], "mapped", [3916, 4023]], [[3918, 3921], "valid"], [[3922, 3922], "mapped", [3921, 4023]], [[3923, 3926], "valid"], [[3927, 3927], "mapped", [3926, 4023]], [[3928, 3931], "valid"], [[3932, 3932], "mapped", [3931, 4023]], [[3933, 3944], "valid"], [[3945, 3945], "mapped", [3904, 4021]], [[3946, 3946], "valid"], [[3947, 3948], "valid"], [[3949, 3952], "disallowed"], [[3953, 3954], "valid"], [[3955, 3955], "mapped", [3953, 3954]], [[3956, 3956], "valid"], [[3957, 3957], "mapped", [3953, 3956]], [[3958, 3958], "mapped", [4018, 3968]], [[3959, 3959], "mapped", [4018, 3953, 3968]], [[3960, 3960], "mapped", [4019, 3968]], [[3961, 3961], "mapped", [4019, 3953, 3968]], [[3962, 3968], "valid"], [[3969, 3969], "mapped", [3953, 3968]], [[3970, 3972], "valid"], [[3973, 3973], "valid", [], "NV8"], [[3974, 3979], "valid"], [[3980, 3983], "valid"], [[3984, 3986], "valid"], [[3987, 3987], "mapped", [3986, 4023]], [[3988, 3989], "valid"], [[3990, 3990], "valid"], [[3991, 3991], "valid"], [[3992, 3992], "disallowed"], [[3993, 3996], "valid"], [[3997, 3997], "mapped", [3996, 4023]], [[3998, 4001], "valid"], [[4002, 4002], "mapped", [4001, 4023]], [[4003, 4006], "valid"], [[4007, 4007], "mapped", [4006, 4023]], [[4008, 4011], "valid"], [[4012, 4012], "mapped", [4011, 4023]], [[4013, 4013], "valid"], [[4014, 4016], "valid"], [[4017, 4023], "valid"], [[4024, 4024], "valid"], [[4025, 4025], "mapped", [3984, 4021]], [[4026, 4028], "valid"], [[4029, 4029], "disallowed"], [[4030, 4037], "valid", [], "NV8"], [[4038, 4038], "valid"], [[4039, 4044], "valid", [], "NV8"], [[4045, 4045], "disallowed"], [[4046, 4046], "valid", [], "NV8"], [[4047, 4047], "valid", [], "NV8"], [[4048, 4049], "valid", [], "NV8"], [[4050, 4052], "valid", [], "NV8"], [[4053, 4056], "valid", [], "NV8"], [[4057, 4058], "valid", [], "NV8"], [[4059, 4095], "disallowed"], [[4096, 4129], "valid"], [[4130, 4130], "valid"], [[4131, 4135], "valid"], [[4136, 4136], "valid"], [[4137, 4138], "valid"], [[4139, 4139], "valid"], [[4140, 4146], "valid"], [[4147, 4149], "valid"], [[4150, 4153], "valid"], [[4154, 4159], "valid"], [[4160, 4169], "valid"], [[4170, 4175], "valid", [], "NV8"], [[4176, 4185], "valid"], [[4186, 4249], "valid"], [[4250, 4253], "valid"], [[4254, 4255], "valid", [], "NV8"], [[4256, 4293], "disallowed"], [[4294, 4294], "disallowed"], [[4295, 4295], "mapped", [11559]], [[4296, 4300], "disallowed"], [[4301, 4301], "mapped", [11565]], [[4302, 4303], "disallowed"], [[4304, 4342], "valid"], [[4343, 4344], "valid"], [[4345, 4346], "valid"], [[4347, 4347], "valid", [], "NV8"], [[4348, 4348], "mapped", [4316]], [[4349, 4351], "valid"], [[4352, 4441], "valid", [], "NV8"], [[4442, 4446], "valid", [], "NV8"], [[4447, 4448], "disallowed"], [[4449, 4514], "valid", [], "NV8"], [[4515, 4519], "valid", [], "NV8"], [[4520, 4601], "valid", [], "NV8"], [[4602, 4607], "valid", [], "NV8"], [[4608, 4614], "valid"], [[4615, 4615], "valid"], [[4616, 4678], "valid"], [[4679, 4679], "valid"], [[4680, 4680], "valid"], [[4681, 4681], "disallowed"], [[4682, 4685], "valid"], [[4686, 4687], "disallowed"], [[4688, 4694], "valid"], [[4695, 4695], "disallowed"], [[4696, 4696], "valid"], [[4697, 4697], "disallowed"], [[4698, 4701], "valid"], [[4702, 4703], "disallowed"], [[4704, 4742], "valid"], [[4743, 4743], "valid"], [[4744, 4744], "valid"], [[4745, 4745], "disallowed"], [[4746, 4749], "valid"], [[4750, 4751], "disallowed"], [[4752, 4782], "valid"], [[4783, 4783], "valid"], [[4784, 4784], "valid"], [[4785, 4785], "disallowed"], [[4786, 4789], "valid"], [[4790, 4791], "disallowed"], [[4792, 4798], "valid"], [[4799, 4799], "disallowed"], [[4800, 4800], "valid"], [[4801, 4801], "disallowed"], [[4802, 4805], "valid"], [[4806, 4807], "disallowed"], [[4808, 4814], "valid"], [[4815, 4815], "valid"], [[4816, 4822], "valid"], [[4823, 4823], "disallowed"], [[4824, 4846], "valid"], [[4847, 4847], "valid"], [[4848, 4878], "valid"], [[4879, 4879], "valid"], [[4880, 4880], "valid"], [[4881, 4881], "disallowed"], [[4882, 4885], "valid"], [[4886, 4887], "disallowed"], [[4888, 4894], "valid"], [[4895, 4895], "valid"], [[4896, 4934], "valid"], [[4935, 4935], "valid"], [[4936, 4954], "valid"], [[4955, 4956], "disallowed"], [[4957, 4958], "valid"], [[4959, 4959], "valid"], [[4960, 4960], "valid", [], "NV8"], [[4961, 4988], "valid", [], "NV8"], [[4989, 4991], "disallowed"], [[4992, 5007], "valid"], [[5008, 5017], "valid", [], "NV8"], [[5018, 5023], "disallowed"], [[5024, 5108], "valid"], [[5109, 5109], "valid"], [[5110, 5111], "disallowed"], [[5112, 5112], "mapped", [5104]], [[5113, 5113], "mapped", [5105]], [[5114, 5114], "mapped", [5106]], [[5115, 5115], "mapped", [5107]], [[5116, 5116], "mapped", [5108]], [[5117, 5117], "mapped", [5109]], [[5118, 5119], "disallowed"], [[5120, 5120], "valid", [], "NV8"], [[5121, 5740], "valid"], [[5741, 5742], "valid", [], "NV8"], [[5743, 5750], "valid"], [[5751, 5759], "valid"], [[5760, 5760], "disallowed"], [[5761, 5786], "valid"], [[5787, 5788], "valid", [], "NV8"], [[5789, 5791], "disallowed"], [[5792, 5866], "valid"], [[5867, 5872], "valid", [], "NV8"], [[5873, 5880], "valid"], [[5881, 5887], "disallowed"], [[5888, 5900], "valid"], [[5901, 5901], "disallowed"], [[5902, 5908], "valid"], [[5909, 5919], "disallowed"], [[5920, 5940], "valid"], [[5941, 5942], "valid", [], "NV8"], [[5943, 5951], "disallowed"], [[5952, 5971], "valid"], [[5972, 5983], "disallowed"], [[5984, 5996], "valid"], [[5997, 5997], "disallowed"], [[5998, 6e3], "valid"], [[6001, 6001], "disallowed"], [[6002, 6003], "valid"], [[6004, 6015], "disallowed"], [[6016, 6067], "valid"], [[6068, 6069], "disallowed"], [[6070, 6099], "valid"], [[6100, 6102], "valid", [], "NV8"], [[6103, 6103], "valid"], [[6104, 6107], "valid", [], "NV8"], [[6108, 6108], "valid"], [[6109, 6109], "valid"], [[6110, 6111], "disallowed"], [[6112, 6121], "valid"], [[6122, 6127], "disallowed"], [[6128, 6137], "valid", [], "NV8"], [[6138, 6143], "disallowed"], [[6144, 6149], "valid", [], "NV8"], [[6150, 6150], "disallowed"], [[6151, 6154], "valid", [], "NV8"], [[6155, 6157], "ignored"], [[6158, 6158], "disallowed"], [[6159, 6159], "disallowed"], [[6160, 6169], "valid"], [[6170, 6175], "disallowed"], [[6176, 6263], "valid"], [[6264, 6271], "disallowed"], [[6272, 6313], "valid"], [[6314, 6314], "valid"], [[6315, 6319], "disallowed"], [[6320, 6389], "valid"], [[6390, 6399], "disallowed"], [[6400, 6428], "valid"], [[6429, 6430], "valid"], [[6431, 6431], "disallowed"], [[6432, 6443], "valid"], [[6444, 6447], "disallowed"], [[6448, 6459], "valid"], [[6460, 6463], "disallowed"], [[6464, 6464], "valid", [], "NV8"], [[6465, 6467], "disallowed"], [[6468, 6469], "valid", [], "NV8"], [[6470, 6509], "valid"], [[6510, 6511], "disallowed"], [[6512, 6516], "valid"], [[6517, 6527], "disallowed"], [[6528, 6569], "valid"], [[6570, 6571], "valid"], [[6572, 6575], "disallowed"], [[6576, 6601], "valid"], [[6602, 6607], "disallowed"], [[6608, 6617], "valid"], [[6618, 6618], "valid", [], "XV8"], [[6619, 6621], "disallowed"], [[6622, 6623], "valid", [], "NV8"], [[6624, 6655], "valid", [], "NV8"], [[6656, 6683], "valid"], [[6684, 6685], "disallowed"], [[6686, 6687], "valid", [], "NV8"], [[6688, 6750], "valid"], [[6751, 6751], "disallowed"], [[6752, 6780], "valid"], [[6781, 6782], "disallowed"], [[6783, 6793], "valid"], [[6794, 6799], "disallowed"], [[6800, 6809], "valid"], [[6810, 6815], "disallowed"], [[6816, 6822], "valid", [], "NV8"], [[6823, 6823], "valid"], [[6824, 6829], "valid", [], "NV8"], [[6830, 6831], "disallowed"], [[6832, 6845], "valid"], [[6846, 6846], "valid", [], "NV8"], [[6847, 6911], "disallowed"], [[6912, 6987], "valid"], [[6988, 6991], "disallowed"], [[6992, 7001], "valid"], [[7002, 7018], "valid", [], "NV8"], [[7019, 7027], "valid"], [[7028, 7036], "valid", [], "NV8"], [[7037, 7039], "disallowed"], [[7040, 7082], "valid"], [[7083, 7085], "valid"], [[7086, 7097], "valid"], [[7098, 7103], "valid"], [[7104, 7155], "valid"], [[7156, 7163], "disallowed"], [[7164, 7167], "valid", [], "NV8"], [[7168, 7223], "valid"], [[7224, 7226], "disallowed"], [[7227, 7231], "valid", [], "NV8"], [[7232, 7241], "valid"], [[7242, 7244], "disallowed"], [[7245, 7293], "valid"], [[7294, 7295], "valid", [], "NV8"], [[7296, 7359], "disallowed"], [[7360, 7367], "valid", [], "NV8"], [[7368, 7375], "disallowed"], [[7376, 7378], "valid"], [[7379, 7379], "valid", [], "NV8"], [[7380, 7410], "valid"], [[7411, 7414], "valid"], [[7415, 7415], "disallowed"], [[7416, 7417], "valid"], [[7418, 7423], "disallowed"], [[7424, 7467], "valid"], [[7468, 7468], "mapped", [97]], [[7469, 7469], "mapped", [230]], [[7470, 7470], "mapped", [98]], [[7471, 7471], "valid"], [[7472, 7472], "mapped", [100]], [[7473, 7473], "mapped", [101]], [[7474, 7474], "mapped", [477]], [[7475, 7475], "mapped", [103]], [[7476, 7476], "mapped", [104]], [[7477, 7477], "mapped", [105]], [[7478, 7478], "mapped", [106]], [[7479, 7479], "mapped", [107]], [[7480, 7480], "mapped", [108]], [[7481, 7481], "mapped", [109]], [[7482, 7482], "mapped", [110]], [[7483, 7483], "valid"], [[7484, 7484], "mapped", [111]], [[7485, 7485], "mapped", [547]], [[7486, 7486], "mapped", [112]], [[7487, 7487], "mapped", [114]], [[7488, 7488], "mapped", [116]], [[7489, 7489], "mapped", [117]], [[7490, 7490], "mapped", [119]], [[7491, 7491], "mapped", [97]], [[7492, 7492], "mapped", [592]], [[7493, 7493], "mapped", [593]], [[7494, 7494], "mapped", [7426]], [[7495, 7495], "mapped", [98]], [[7496, 7496], "mapped", [100]], [[7497, 7497], "mapped", [101]], [[7498, 7498], "mapped", [601]], [[7499, 7499], "mapped", [603]], [[7500, 7500], "mapped", [604]], [[7501, 7501], "mapped", [103]], [[7502, 7502], "valid"], [[7503, 7503], "mapped", [107]], [[7504, 7504], "mapped", [109]], [[7505, 7505], "mapped", [331]], [[7506, 7506], "mapped", [111]], [[7507, 7507], "mapped", [596]], [[7508, 7508], "mapped", [7446]], [[7509, 7509], "mapped", [7447]], [[7510, 7510], "mapped", [112]], [[7511, 7511], "mapped", [116]], [[7512, 7512], "mapped", [117]], [[7513, 7513], "mapped", [7453]], [[7514, 7514], "mapped", [623]], [[7515, 7515], "mapped", [118]], [[7516, 7516], "mapped", [7461]], [[7517, 7517], "mapped", [946]], [[7518, 7518], "mapped", [947]], [[7519, 7519], "mapped", [948]], [[7520, 7520], "mapped", [966]], [[7521, 7521], "mapped", [967]], [[7522, 7522], "mapped", [105]], [[7523, 7523], "mapped", [114]], [[7524, 7524], "mapped", [117]], [[7525, 7525], "mapped", [118]], [[7526, 7526], "mapped", [946]], [[7527, 7527], "mapped", [947]], [[7528, 7528], "mapped", [961]], [[7529, 7529], "mapped", [966]], [[7530, 7530], "mapped", [967]], [[7531, 7531], "valid"], [[7532, 7543], "valid"], [[7544, 7544], "mapped", [1085]], [[7545, 7578], "valid"], [[7579, 7579], "mapped", [594]], [[7580, 7580], "mapped", [99]], [[7581, 7581], "mapped", [597]], [[7582, 7582], "mapped", [240]], [[7583, 7583], "mapped", [604]], [[7584, 7584], "mapped", [102]], [[7585, 7585], "mapped", [607]], [[7586, 7586], "mapped", [609]], [[7587, 7587], "mapped", [613]], [[7588, 7588], "mapped", [616]], [[7589, 7589], "mapped", [617]], [[7590, 7590], "mapped", [618]], [[7591, 7591], "mapped", [7547]], [[7592, 7592], "mapped", [669]], [[7593, 7593], "mapped", [621]], [[7594, 7594], "mapped", [7557]], [[7595, 7595], "mapped", [671]], [[7596, 7596], "mapped", [625]], [[7597, 7597], "mapped", [624]], [[7598, 7598], "mapped", [626]], [[7599, 7599], "mapped", [627]], [[7600, 7600], "mapped", [628]], [[7601, 7601], "mapped", [629]], [[7602, 7602], "mapped", [632]], [[7603, 7603], "mapped", [642]], [[7604, 7604], "mapped", [643]], [[7605, 7605], "mapped", [427]], [[7606, 7606], "mapped", [649]], [[7607, 7607], "mapped", [650]], [[7608, 7608], "mapped", [7452]], [[7609, 7609], "mapped", [651]], [[7610, 7610], "mapped", [652]], [[7611, 7611], "mapped", [122]], [[7612, 7612], "mapped", [656]], [[7613, 7613], "mapped", [657]], [[7614, 7614], "mapped", [658]], [[7615, 7615], "mapped", [952]], [[7616, 7619], "valid"], [[7620, 7626], "valid"], [[7627, 7654], "valid"], [[7655, 7669], "valid"], [[7670, 7675], "disallowed"], [[7676, 7676], "valid"], [[7677, 7677], "valid"], [[7678, 7679], "valid"], [[7680, 7680], "mapped", [7681]], [[7681, 7681], "valid"], [[7682, 7682], "mapped", [7683]], [[7683, 7683], "valid"], [[7684, 7684], "mapped", [7685]], [[7685, 7685], "valid"], [[7686, 7686], "mapped", [7687]], [[7687, 7687], "valid"], [[7688, 7688], "mapped", [7689]], [[7689, 7689], "valid"], [[7690, 7690], "mapped", [7691]], [[7691, 7691], "valid"], [[7692, 7692], "mapped", [7693]], [[7693, 7693], "valid"], [[7694, 7694], "mapped", [7695]], [[7695, 7695], "valid"], [[7696, 7696], "mapped", [7697]], [[7697, 7697], "valid"], [[7698, 7698], "mapped", [7699]], [[7699, 7699], "valid"], [[7700, 7700], "mapped", [7701]], [[7701, 7701], "valid"], [[7702, 7702], "mapped", [7703]], [[7703, 7703], "valid"], [[7704, 7704], "mapped", [7705]], [[7705, 7705], "valid"], [[7706, 7706], "mapped", [7707]], [[7707, 7707], "valid"], [[7708, 7708], "mapped", [7709]], [[7709, 7709], "valid"], [[7710, 7710], "mapped", [7711]], [[7711, 7711], "valid"], [[7712, 7712], "mapped", [7713]], [[7713, 7713], "valid"], [[7714, 7714], "mapped", [7715]], [[7715, 7715], "valid"], [[7716, 7716], "mapped", [7717]], [[7717, 7717], "valid"], [[7718, 7718], "mapped", [7719]], [[7719, 7719], "valid"], [[7720, 7720], "mapped", [7721]], [[7721, 7721], "valid"], [[7722, 7722], "mapped", [7723]], [[7723, 7723], "valid"], [[7724, 7724], "mapped", [7725]], [[7725, 7725], "valid"], [[7726, 7726], "mapped", [7727]], [[7727, 7727], "valid"], [[7728, 7728], "mapped", [7729]], [[7729, 7729], "valid"], [[7730, 7730], "mapped", [7731]], [[7731, 7731], "valid"], [[7732, 7732], "mapped", [7733]], [[7733, 7733], "valid"], [[7734, 7734], "mapped", [7735]], [[7735, 7735], "valid"], [[7736, 7736], "mapped", [7737]], [[7737, 7737], "valid"], [[7738, 7738], "mapped", [7739]], [[7739, 7739], "valid"], [[7740, 7740], "mapped", [7741]], [[7741, 7741], "valid"], [[7742, 7742], "mapped", [7743]], [[7743, 7743], "valid"], [[7744, 7744], "mapped", [7745]], [[7745, 7745], "valid"], [[7746, 7746], "mapped", [7747]], [[7747, 7747], "valid"], [[7748, 7748], "mapped", [7749]], [[7749, 7749], "valid"], [[7750, 7750], "mapped", [7751]], [[7751, 7751], "valid"], [[7752, 7752], "mapped", [7753]], [[7753, 7753], "valid"], [[7754, 7754], "mapped", [7755]], [[7755, 7755], "valid"], [[7756, 7756], "mapped", [7757]], [[7757, 7757], "valid"], [[7758, 7758], "mapped", [7759]], [[7759, 7759], "valid"], [[7760, 7760], "mapped", [7761]], [[7761, 7761], "valid"], [[7762, 7762], "mapped", [7763]], [[7763, 7763], "valid"], [[7764, 7764], "mapped", [7765]], [[7765, 7765], "valid"], [[7766, 7766], "mapped", [7767]], [[7767, 7767], "valid"], [[7768, 7768], "mapped", [7769]], [[7769, 7769], "valid"], [[7770, 7770], "mapped", [7771]], [[7771, 7771], "valid"], [[7772, 7772], "mapped", [7773]], [[7773, 7773], "valid"], [[7774, 7774], "mapped", [7775]], [[7775, 7775], "valid"], [[7776, 7776], "mapped", [7777]], [[7777, 7777], "valid"], [[7778, 7778], "mapped", [7779]], [[7779, 7779], "valid"], [[7780, 7780], "mapped", [7781]], [[7781, 7781], "valid"], [[7782, 7782], "mapped", [7783]], [[7783, 7783], "valid"], [[7784, 7784], "mapped", [7785]], [[7785, 7785], "valid"], [[7786, 7786], "mapped", [7787]], [[7787, 7787], "valid"], [[7788, 7788], "mapped", [7789]], [[7789, 7789], "valid"], [[7790, 7790], "mapped", [7791]], [[7791, 7791], "valid"], [[7792, 7792], "mapped", [7793]], [[7793, 7793], "valid"], [[7794, 7794], "mapped", [7795]], [[7795, 7795], "valid"], [[7796, 7796], "mapped", [7797]], [[7797, 7797], "valid"], [[7798, 7798], "mapped", [7799]], [[7799, 7799], "valid"], [[7800, 7800], "mapped", [7801]], [[7801, 7801], "valid"], [[7802, 7802], "mapped", [7803]], [[7803, 7803], "valid"], [[7804, 7804], "mapped", [7805]], [[7805, 7805], "valid"], [[7806, 7806], "mapped", [7807]], [[7807, 7807], "valid"], [[7808, 7808], "mapped", [7809]], [[7809, 7809], "valid"], [[7810, 7810], "mapped", [7811]], [[7811, 7811], "valid"], [[7812, 7812], "mapped", [7813]], [[7813, 7813], "valid"], [[7814, 7814], "mapped", [7815]], [[7815, 7815], "valid"], [[7816, 7816], "mapped", [7817]], [[7817, 7817], "valid"], [[7818, 7818], "mapped", [7819]], [[7819, 7819], "valid"], [[7820, 7820], "mapped", [7821]], [[7821, 7821], "valid"], [[7822, 7822], "mapped", [7823]], [[7823, 7823], "valid"], [[7824, 7824], "mapped", [7825]], [[7825, 7825], "valid"], [[7826, 7826], "mapped", [7827]], [[7827, 7827], "valid"], [[7828, 7828], "mapped", [7829]], [[7829, 7833], "valid"], [[7834, 7834], "mapped", [97, 702]], [[7835, 7835], "mapped", [7777]], [[7836, 7837], "valid"], [[7838, 7838], "mapped", [115, 115]], [[7839, 7839], "valid"], [[7840, 7840], "mapped", [7841]], [[7841, 7841], "valid"], [[7842, 7842], "mapped", [7843]], [[7843, 7843], "valid"], [[7844, 7844], "mapped", [7845]], [[7845, 7845], "valid"], [[7846, 7846], "mapped", [7847]], [[7847, 7847], "valid"], [[7848, 7848], "mapped", [7849]], [[7849, 7849], "valid"], [[7850, 7850], "mapped", [7851]], [[7851, 7851], "valid"], [[7852, 7852], "mapped", [7853]], [[7853, 7853], "valid"], [[7854, 7854], "mapped", [7855]], [[7855, 7855], "valid"], [[7856, 7856], "mapped", [7857]], [[7857, 7857], "valid"], [[7858, 7858], "mapped", [7859]], [[7859, 7859], "valid"], [[7860, 7860], "mapped", [7861]], [[7861, 7861], "valid"], [[7862, 7862], "mapped", [7863]], [[7863, 7863], "valid"], [[7864, 7864], "mapped", [7865]], [[7865, 7865], "valid"], [[7866, 7866], "mapped", [7867]], [[7867, 7867], "valid"], [[7868, 7868], "mapped", [7869]], [[7869, 7869], "valid"], [[7870, 7870], "mapped", [7871]], [[7871, 7871], "valid"], [[7872, 7872], "mapped", [7873]], [[7873, 7873], "valid"], [[7874, 7874], "mapped", [7875]], [[7875, 7875], "valid"], [[7876, 7876], "mapped", [7877]], [[7877, 7877], "valid"], [[7878, 7878], "mapped", [7879]], [[7879, 7879], "valid"], [[7880, 7880], "mapped", [7881]], [[7881, 7881], "valid"], [[7882, 7882], "mapped", [7883]], [[7883, 7883], "valid"], [[7884, 7884], "mapped", [7885]], [[7885, 7885], "valid"], [[7886, 7886], "mapped", [7887]], [[7887, 7887], "valid"], [[7888, 7888], "mapped", [7889]], [[7889, 7889], "valid"], [[7890, 7890], "mapped", [7891]], [[7891, 7891], "valid"], [[7892, 7892], "mapped", [7893]], [[7893, 7893], "valid"], [[7894, 7894], "mapped", [7895]], [[7895, 7895], "valid"], [[7896, 7896], "mapped", [7897]], [[7897, 7897], "valid"], [[7898, 7898], "mapped", [7899]], [[7899, 7899], "valid"], [[7900, 7900], "mapped", [7901]], [[7901, 7901], "valid"], [[7902, 7902], "mapped", [7903]], [[7903, 7903], "valid"], [[7904, 7904], "mapped", [7905]], [[7905, 7905], "valid"], [[7906, 7906], "mapped", [7907]], [[7907, 7907], "valid"], [[7908, 7908], "mapped", [7909]], [[7909, 7909], "valid"], [[7910, 7910], "mapped", [7911]], [[7911, 7911], "valid"], [[7912, 7912], "mapped", [7913]], [[7913, 7913], "valid"], [[7914, 7914], "mapped", [7915]], [[7915, 7915], "valid"], [[7916, 7916], "mapped", [7917]], [[7917, 7917], "valid"], [[7918, 7918], "mapped", [7919]], [[7919, 7919], "valid"], [[7920, 7920], "mapped", [7921]], [[7921, 7921], "valid"], [[7922, 7922], "mapped", [7923]], [[7923, 7923], "valid"], [[7924, 7924], "mapped", [7925]], [[7925, 7925], "valid"], [[7926, 7926], "mapped", [7927]], [[7927, 7927], "valid"], [[7928, 7928], "mapped", [7929]], [[7929, 7929], "valid"], [[7930, 7930], "mapped", [7931]], [[7931, 7931], "valid"], [[7932, 7932], "mapped", [7933]], [[7933, 7933], "valid"], [[7934, 7934], "mapped", [7935]], [[7935, 7935], "valid"], [[7936, 7943], "valid"], [[7944, 7944], "mapped", [7936]], [[7945, 7945], "mapped", [7937]], [[7946, 7946], "mapped", [7938]], [[7947, 7947], "mapped", [7939]], [[7948, 7948], "mapped", [7940]], [[7949, 7949], "mapped", [7941]], [[7950, 7950], "mapped", [7942]], [[7951, 7951], "mapped", [7943]], [[7952, 7957], "valid"], [[7958, 7959], "disallowed"], [[7960, 7960], "mapped", [7952]], [[7961, 7961], "mapped", [7953]], [[7962, 7962], "mapped", [7954]], [[7963, 7963], "mapped", [7955]], [[7964, 7964], "mapped", [7956]], [[7965, 7965], "mapped", [7957]], [[7966, 7967], "disallowed"], [[7968, 7975], "valid"], [[7976, 7976], "mapped", [7968]], [[7977, 7977], "mapped", [7969]], [[7978, 7978], "mapped", [7970]], [[7979, 7979], "mapped", [7971]], [[7980, 7980], "mapped", [7972]], [[7981, 7981], "mapped", [7973]], [[7982, 7982], "mapped", [7974]], [[7983, 7983], "mapped", [7975]], [[7984, 7991], "valid"], [[7992, 7992], "mapped", [7984]], [[7993, 7993], "mapped", [7985]], [[7994, 7994], "mapped", [7986]], [[7995, 7995], "mapped", [7987]], [[7996, 7996], "mapped", [7988]], [[7997, 7997], "mapped", [7989]], [[7998, 7998], "mapped", [7990]], [[7999, 7999], "mapped", [7991]], [[8e3, 8005], "valid"], [[8006, 8007], "disallowed"], [[8008, 8008], "mapped", [8e3]], [[8009, 8009], "mapped", [8001]], [[8010, 8010], "mapped", [8002]], [[8011, 8011], "mapped", [8003]], [[8012, 8012], "mapped", [8004]], [[8013, 8013], "mapped", [8005]], [[8014, 8015], "disallowed"], [[8016, 8023], "valid"], [[8024, 8024], "disallowed"], [[8025, 8025], "mapped", [8017]], [[8026, 8026], "disallowed"], [[8027, 8027], "mapped", [8019]], [[8028, 8028], "disallowed"], [[8029, 8029], "mapped", [8021]], [[8030, 8030], "disallowed"], [[8031, 8031], "mapped", [8023]], [[8032, 8039], "valid"], [[8040, 8040], "mapped", [8032]], [[8041, 8041], "mapped", [8033]], [[8042, 8042], "mapped", [8034]], [[8043, 8043], "mapped", [8035]], [[8044, 8044], "mapped", [8036]], [[8045, 8045], "mapped", [8037]], [[8046, 8046], "mapped", [8038]], [[8047, 8047], "mapped", [8039]], [[8048, 8048], "valid"], [[8049, 8049], "mapped", [940]], [[8050, 8050], "valid"], [[8051, 8051], "mapped", [941]], [[8052, 8052], "valid"], [[8053, 8053], "mapped", [942]], [[8054, 8054], "valid"], [[8055, 8055], "mapped", [943]], [[8056, 8056], "valid"], [[8057, 8057], "mapped", [972]], [[8058, 8058], "valid"], [[8059, 8059], "mapped", [973]], [[8060, 8060], "valid"], [[8061, 8061], "mapped", [974]], [[8062, 8063], "disallowed"], [[8064, 8064], "mapped", [7936, 953]], [[8065, 8065], "mapped", [7937, 953]], [[8066, 8066], "mapped", [7938, 953]], [[8067, 8067], "mapped", [7939, 953]], [[8068, 8068], "mapped", [7940, 953]], [[8069, 8069], "mapped", [7941, 953]], [[8070, 8070], "mapped", [7942, 953]], [[8071, 8071], "mapped", [7943, 953]], [[8072, 8072], "mapped", [7936, 953]], [[8073, 8073], "mapped", [7937, 953]], [[8074, 8074], "mapped", [7938, 953]], [[8075, 8075], "mapped", [7939, 953]], [[8076, 8076], "mapped", [7940, 953]], [[8077, 8077], "mapped", [7941, 953]], [[8078, 8078], "mapped", [7942, 953]], [[8079, 8079], "mapped", [7943, 953]], [[8080, 8080], "mapped", [7968, 953]], [[8081, 8081], "mapped", [7969, 953]], [[8082, 8082], "mapped", [7970, 953]], [[8083, 8083], "mapped", [7971, 953]], [[8084, 8084], "mapped", [7972, 953]], [[8085, 8085], "mapped", [7973, 953]], [[8086, 8086], "mapped", [7974, 953]], [[8087, 8087], "mapped", [7975, 953]], [[8088, 8088], "mapped", [7968, 953]], [[8089, 8089], "mapped", [7969, 953]], [[8090, 8090], "mapped", [7970, 953]], [[8091, 8091], "mapped", [7971, 953]], [[8092, 8092], "mapped", [7972, 953]], [[8093, 8093], "mapped", [7973, 953]], [[8094, 8094], "mapped", [7974, 953]], [[8095, 8095], "mapped", [7975, 953]], [[8096, 8096], "mapped", [8032, 953]], [[8097, 8097], "mapped", [8033, 953]], [[8098, 8098], "mapped", [8034, 953]], [[8099, 8099], "mapped", [8035, 953]], [[8100, 8100], "mapped", [8036, 953]], [[8101, 8101], "mapped", [8037, 953]], [[8102, 8102], "mapped", [8038, 953]], [[8103, 8103], "mapped", [8039, 953]], [[8104, 8104], "mapped", [8032, 953]], [[8105, 8105], "mapped", [8033, 953]], [[8106, 8106], "mapped", [8034, 953]], [[8107, 8107], "mapped", [8035, 953]], [[8108, 8108], "mapped", [8036, 953]], [[8109, 8109], "mapped", [8037, 953]], [[8110, 8110], "mapped", [8038, 953]], [[8111, 8111], "mapped", [8039, 953]], [[8112, 8113], "valid"], [[8114, 8114], "mapped", [8048, 953]], [[8115, 8115], "mapped", [945, 953]], [[8116, 8116], "mapped", [940, 953]], [[8117, 8117], "disallowed"], [[8118, 8118], "valid"], [[8119, 8119], "mapped", [8118, 953]], [[8120, 8120], "mapped", [8112]], [[8121, 8121], "mapped", [8113]], [[8122, 8122], "mapped", [8048]], [[8123, 8123], "mapped", [940]], [[8124, 8124], "mapped", [945, 953]], [[8125, 8125], "disallowed_STD3_mapped", [32, 787]], [[8126, 8126], "mapped", [953]], [[8127, 8127], "disallowed_STD3_mapped", [32, 787]], [[8128, 8128], "disallowed_STD3_mapped", [32, 834]], [[8129, 8129], "disallowed_STD3_mapped", [32, 776, 834]], [[8130, 8130], "mapped", [8052, 953]], [[8131, 8131], "mapped", [951, 953]], [[8132, 8132], "mapped", [942, 953]], [[8133, 8133], "disallowed"], [[8134, 8134], "valid"], [[8135, 8135], "mapped", [8134, 953]], [[8136, 8136], "mapped", [8050]], [[8137, 8137], "mapped", [941]], [[8138, 8138], "mapped", [8052]], [[8139, 8139], "mapped", [942]], [[8140, 8140], "mapped", [951, 953]], [[8141, 8141], "disallowed_STD3_mapped", [32, 787, 768]], [[8142, 8142], "disallowed_STD3_mapped", [32, 787, 769]], [[8143, 8143], "disallowed_STD3_mapped", [32, 787, 834]], [[8144, 8146], "valid"], [[8147, 8147], "mapped", [912]], [[8148, 8149], "disallowed"], [[8150, 8151], "valid"], [[8152, 8152], "mapped", [8144]], [[8153, 8153], "mapped", [8145]], [[8154, 8154], "mapped", [8054]], [[8155, 8155], "mapped", [943]], [[8156, 8156], "disallowed"], [[8157, 8157], "disallowed_STD3_mapped", [32, 788, 768]], [[8158, 8158], "disallowed_STD3_mapped", [32, 788, 769]], [[8159, 8159], "disallowed_STD3_mapped", [32, 788, 834]], [[8160, 8162], "valid"], [[8163, 8163], "mapped", [944]], [[8164, 8167], "valid"], [[8168, 8168], "mapped", [8160]], [[8169, 8169], "mapped", [8161]], [[8170, 8170], "mapped", [8058]], [[8171, 8171], "mapped", [973]], [[8172, 8172], "mapped", [8165]], [[8173, 8173], "disallowed_STD3_mapped", [32, 776, 768]], [[8174, 8174], "disallowed_STD3_mapped", [32, 776, 769]], [[8175, 8175], "disallowed_STD3_mapped", [96]], [[8176, 8177], "disallowed"], [[8178, 8178], "mapped", [8060, 953]], [[8179, 8179], "mapped", [969, 953]], [[8180, 8180], "mapped", [974, 953]], [[8181, 8181], "disallowed"], [[8182, 8182], "valid"], [[8183, 8183], "mapped", [8182, 953]], [[8184, 8184], "mapped", [8056]], [[8185, 8185], "mapped", [972]], [[8186, 8186], "mapped", [8060]], [[8187, 8187], "mapped", [974]], [[8188, 8188], "mapped", [969, 953]], [[8189, 8189], "disallowed_STD3_mapped", [32, 769]], [[8190, 8190], "disallowed_STD3_mapped", [32, 788]], [[8191, 8191], "disallowed"], [[8192, 8202], "disallowed_STD3_mapped", [32]], [[8203, 8203], "ignored"], [[8204, 8205], "deviation", []], [[8206, 8207], "disallowed"], [[8208, 8208], "valid", [], "NV8"], [[8209, 8209], "mapped", [8208]], [[8210, 8214], "valid", [], "NV8"], [[8215, 8215], "disallowed_STD3_mapped", [32, 819]], [[8216, 8227], "valid", [], "NV8"], [[8228, 8230], "disallowed"], [[8231, 8231], "valid", [], "NV8"], [[8232, 8238], "disallowed"], [[8239, 8239], "disallowed_STD3_mapped", [32]], [[8240, 8242], "valid", [], "NV8"], [[8243, 8243], "mapped", [8242, 8242]], [[8244, 8244], "mapped", [8242, 8242, 8242]], [[8245, 8245], "valid", [], "NV8"], [[8246, 8246], "mapped", [8245, 8245]], [[8247, 8247], "mapped", [8245, 8245, 8245]], [[8248, 8251], "valid", [], "NV8"], [[8252, 8252], "disallowed_STD3_mapped", [33, 33]], [[8253, 8253], "valid", [], "NV8"], [[8254, 8254], "disallowed_STD3_mapped", [32, 773]], [[8255, 8262], "valid", [], "NV8"], [[8263, 8263], "disallowed_STD3_mapped", [63, 63]], [[8264, 8264], "disallowed_STD3_mapped", [63, 33]], [[8265, 8265], "disallowed_STD3_mapped", [33, 63]], [[8266, 8269], "valid", [], "NV8"], [[8270, 8274], "valid", [], "NV8"], [[8275, 8276], "valid", [], "NV8"], [[8277, 8278], "valid", [], "NV8"], [[8279, 8279], "mapped", [8242, 8242, 8242, 8242]], [[8280, 8286], "valid", [], "NV8"], [[8287, 8287], "disallowed_STD3_mapped", [32]], [[8288, 8288], "ignored"], [[8289, 8291], "disallowed"], [[8292, 8292], "ignored"], [[8293, 8293], "disallowed"], [[8294, 8297], "disallowed"], [[8298, 8303], "disallowed"], [[8304, 8304], "mapped", [48]], [[8305, 8305], "mapped", [105]], [[8306, 8307], "disallowed"], [[8308, 8308], "mapped", [52]], [[8309, 8309], "mapped", [53]], [[8310, 8310], "mapped", [54]], [[8311, 8311], "mapped", [55]], [[8312, 8312], "mapped", [56]], [[8313, 8313], "mapped", [57]], [[8314, 8314], "disallowed_STD3_mapped", [43]], [[8315, 8315], "mapped", [8722]], [[8316, 8316], "disallowed_STD3_mapped", [61]], [[8317, 8317], "disallowed_STD3_mapped", [40]], [[8318, 8318], "disallowed_STD3_mapped", [41]], [[8319, 8319], "mapped", [110]], [[8320, 8320], "mapped", [48]], [[8321, 8321], "mapped", [49]], [[8322, 8322], "mapped", [50]], [[8323, 8323], "mapped", [51]], [[8324, 8324], "mapped", [52]], [[8325, 8325], "mapped", [53]], [[8326, 8326], "mapped", [54]], [[8327, 8327], "mapped", [55]], [[8328, 8328], "mapped", [56]], [[8329, 8329], "mapped", [57]], [[8330, 8330], "disallowed_STD3_mapped", [43]], [[8331, 8331], "mapped", [8722]], [[8332, 8332], "disallowed_STD3_mapped", [61]], [[8333, 8333], "disallowed_STD3_mapped", [40]], [[8334, 8334], "disallowed_STD3_mapped", [41]], [[8335, 8335], "disallowed"], [[8336, 8336], "mapped", [97]], [[8337, 8337], "mapped", [101]], [[8338, 8338], "mapped", [111]], [[8339, 8339], "mapped", [120]], [[8340, 8340], "mapped", [601]], [[8341, 8341], "mapped", [104]], [[8342, 8342], "mapped", [107]], [[8343, 8343], "mapped", [108]], [[8344, 8344], "mapped", [109]], [[8345, 8345], "mapped", [110]], [[8346, 8346], "mapped", [112]], [[8347, 8347], "mapped", [115]], [[8348, 8348], "mapped", [116]], [[8349, 8351], "disallowed"], [[8352, 8359], "valid", [], "NV8"], [[8360, 8360], "mapped", [114, 115]], [[8361, 8362], "valid", [], "NV8"], [[8363, 8363], "valid", [], "NV8"], [[8364, 8364], "valid", [], "NV8"], [[8365, 8367], "valid", [], "NV8"], [[8368, 8369], "valid", [], "NV8"], [[8370, 8373], "valid", [], "NV8"], [[8374, 8376], "valid", [], "NV8"], [[8377, 8377], "valid", [], "NV8"], [[8378, 8378], "valid", [], "NV8"], [[8379, 8381], "valid", [], "NV8"], [[8382, 8382], "valid", [], "NV8"], [[8383, 8399], "disallowed"], [[8400, 8417], "valid", [], "NV8"], [[8418, 8419], "valid", [], "NV8"], [[8420, 8426], "valid", [], "NV8"], [[8427, 8427], "valid", [], "NV8"], [[8428, 8431], "valid", [], "NV8"], [[8432, 8432], "valid", [], "NV8"], [[8433, 8447], "disallowed"], [[8448, 8448], "disallowed_STD3_mapped", [97, 47, 99]], [[8449, 8449], "disallowed_STD3_mapped", [97, 47, 115]], [[8450, 8450], "mapped", [99]], [[8451, 8451], "mapped", [176, 99]], [[8452, 8452], "valid", [], "NV8"], [[8453, 8453], "disallowed_STD3_mapped", [99, 47, 111]], [[8454, 8454], "disallowed_STD3_mapped", [99, 47, 117]], [[8455, 8455], "mapped", [603]], [[8456, 8456], "valid", [], "NV8"], [[8457, 8457], "mapped", [176, 102]], [[8458, 8458], "mapped", [103]], [[8459, 8462], "mapped", [104]], [[8463, 8463], "mapped", [295]], [[8464, 8465], "mapped", [105]], [[8466, 8467], "mapped", [108]], [[8468, 8468], "valid", [], "NV8"], [[8469, 8469], "mapped", [110]], [[8470, 8470], "mapped", [110, 111]], [[8471, 8472], "valid", [], "NV8"], [[8473, 8473], "mapped", [112]], [[8474, 8474], "mapped", [113]], [[8475, 8477], "mapped", [114]], [[8478, 8479], "valid", [], "NV8"], [[8480, 8480], "mapped", [115, 109]], [[8481, 8481], "mapped", [116, 101, 108]], [[8482, 8482], "mapped", [116, 109]], [[8483, 8483], "valid", [], "NV8"], [[8484, 8484], "mapped", [122]], [[8485, 8485], "valid", [], "NV8"], [[8486, 8486], "mapped", [969]], [[8487, 8487], "valid", [], "NV8"], [[8488, 8488], "mapped", [122]], [[8489, 8489], "valid", [], "NV8"], [[8490, 8490], "mapped", [107]], [[8491, 8491], "mapped", [229]], [[8492, 8492], "mapped", [98]], [[8493, 8493], "mapped", [99]], [[8494, 8494], "valid", [], "NV8"], [[8495, 8496], "mapped", [101]], [[8497, 8497], "mapped", [102]], [[8498, 8498], "disallowed"], [[8499, 8499], "mapped", [109]], [[8500, 8500], "mapped", [111]], [[8501, 8501], "mapped", [1488]], [[8502, 8502], "mapped", [1489]], [[8503, 8503], "mapped", [1490]], [[8504, 8504], "mapped", [1491]], [[8505, 8505], "mapped", [105]], [[8506, 8506], "valid", [], "NV8"], [[8507, 8507], "mapped", [102, 97, 120]], [[8508, 8508], "mapped", [960]], [[8509, 8510], "mapped", [947]], [[8511, 8511], "mapped", [960]], [[8512, 8512], "mapped", [8721]], [[8513, 8516], "valid", [], "NV8"], [[8517, 8518], "mapped", [100]], [[8519, 8519], "mapped", [101]], [[8520, 8520], "mapped", [105]], [[8521, 8521], "mapped", [106]], [[8522, 8523], "valid", [], "NV8"], [[8524, 8524], "valid", [], "NV8"], [[8525, 8525], "valid", [], "NV8"], [[8526, 8526], "valid"], [[8527, 8527], "valid", [], "NV8"], [[8528, 8528], "mapped", [49, 8260, 55]], [[8529, 8529], "mapped", [49, 8260, 57]], [[8530, 8530], "mapped", [49, 8260, 49, 48]], [[8531, 8531], "mapped", [49, 8260, 51]], [[8532, 8532], "mapped", [50, 8260, 51]], [[8533, 8533], "mapped", [49, 8260, 53]], [[8534, 8534], "mapped", [50, 8260, 53]], [[8535, 8535], "mapped", [51, 8260, 53]], [[8536, 8536], "mapped", [52, 8260, 53]], [[8537, 8537], "mapped", [49, 8260, 54]], [[8538, 8538], "mapped", [53, 8260, 54]], [[8539, 8539], "mapped", [49, 8260, 56]], [[8540, 8540], "mapped", [51, 8260, 56]], [[8541, 8541], "mapped", [53, 8260, 56]], [[8542, 8542], "mapped", [55, 8260, 56]], [[8543, 8543], "mapped", [49, 8260]], [[8544, 8544], "mapped", [105]], [[8545, 8545], "mapped", [105, 105]], [[8546, 8546], "mapped", [105, 105, 105]], [[8547, 8547], "mapped", [105, 118]], [[8548, 8548], "mapped", [118]], [[8549, 8549], "mapped", [118, 105]], [[8550, 8550], "mapped", [118, 105, 105]], [[8551, 8551], "mapped", [118, 105, 105, 105]], [[8552, 8552], "mapped", [105, 120]], [[8553, 8553], "mapped", [120]], [[8554, 8554], "mapped", [120, 105]], [[8555, 8555], "mapped", [120, 105, 105]], [[8556, 8556], "mapped", [108]], [[8557, 8557], "mapped", [99]], [[8558, 8558], "mapped", [100]], [[8559, 8559], "mapped", [109]], [[8560, 8560], "mapped", [105]], [[8561, 8561], "mapped", [105, 105]], [[8562, 8562], "mapped", [105, 105, 105]], [[8563, 8563], "mapped", [105, 118]], [[8564, 8564], "mapped", [118]], [[8565, 8565], "mapped", [118, 105]], [[8566, 8566], "mapped", [118, 105, 105]], [[8567, 8567], "mapped", [118, 105, 105, 105]], [[8568, 8568], "mapped", [105, 120]], [[8569, 8569], "mapped", [120]], [[8570, 8570], "mapped", [120, 105]], [[8571, 8571], "mapped", [120, 105, 105]], [[8572, 8572], "mapped", [108]], [[8573, 8573], "mapped", [99]], [[8574, 8574], "mapped", [100]], [[8575, 8575], "mapped", [109]], [[8576, 8578], "valid", [], "NV8"], [[8579, 8579], "disallowed"], [[8580, 8580], "valid"], [[8581, 8584], "valid", [], "NV8"], [[8585, 8585], "mapped", [48, 8260, 51]], [[8586, 8587], "valid", [], "NV8"], [[8588, 8591], "disallowed"], [[8592, 8682], "valid", [], "NV8"], [[8683, 8691], "valid", [], "NV8"], [[8692, 8703], "valid", [], "NV8"], [[8704, 8747], "valid", [], "NV8"], [[8748, 8748], "mapped", [8747, 8747]], [[8749, 8749], "mapped", [8747, 8747, 8747]], [[8750, 8750], "valid", [], "NV8"], [[8751, 8751], "mapped", [8750, 8750]], [[8752, 8752], "mapped", [8750, 8750, 8750]], [[8753, 8799], "valid", [], "NV8"], [[8800, 8800], "disallowed_STD3_valid"], [[8801, 8813], "valid", [], "NV8"], [[8814, 8815], "disallowed_STD3_valid"], [[8816, 8945], "valid", [], "NV8"], [[8946, 8959], "valid", [], "NV8"], [[8960, 8960], "valid", [], "NV8"], [[8961, 8961], "valid", [], "NV8"], [[8962, 9e3], "valid", [], "NV8"], [[9001, 9001], "mapped", [12296]], [[9002, 9002], "mapped", [12297]], [[9003, 9082], "valid", [], "NV8"], [[9083, 9083], "valid", [], "NV8"], [[9084, 9084], "valid", [], "NV8"], [[9085, 9114], "valid", [], "NV8"], [[9115, 9166], "valid", [], "NV8"], [[9167, 9168], "valid", [], "NV8"], [[9169, 9179], "valid", [], "NV8"], [[9180, 9191], "valid", [], "NV8"], [[9192, 9192], "valid", [], "NV8"], [[9193, 9203], "valid", [], "NV8"], [[9204, 9210], "valid", [], "NV8"], [[9211, 9215], "disallowed"], [[9216, 9252], "valid", [], "NV8"], [[9253, 9254], "valid", [], "NV8"], [[9255, 9279], "disallowed"], [[9280, 9290], "valid", [], "NV8"], [[9291, 9311], "disallowed"], [[9312, 9312], "mapped", [49]], [[9313, 9313], "mapped", [50]], [[9314, 9314], "mapped", [51]], [[9315, 9315], "mapped", [52]], [[9316, 9316], "mapped", [53]], [[9317, 9317], "mapped", [54]], [[9318, 9318], "mapped", [55]], [[9319, 9319], "mapped", [56]], [[9320, 9320], "mapped", [57]], [[9321, 9321], "mapped", [49, 48]], [[9322, 9322], "mapped", [49, 49]], [[9323, 9323], "mapped", [49, 50]], [[9324, 9324], "mapped", [49, 51]], [[9325, 9325], "mapped", [49, 52]], [[9326, 9326], "mapped", [49, 53]], [[9327, 9327], "mapped", [49, 54]], [[9328, 9328], "mapped", [49, 55]], [[9329, 9329], "mapped", [49, 56]], [[9330, 9330], "mapped", [49, 57]], [[9331, 9331], "mapped", [50, 48]], [[9332, 9332], "disallowed_STD3_mapped", [40, 49, 41]], [[9333, 9333], "disallowed_STD3_mapped", [40, 50, 41]], [[9334, 9334], "disallowed_STD3_mapped", [40, 51, 41]], [[9335, 9335], "disallowed_STD3_mapped", [40, 52, 41]], [[9336, 9336], "disallowed_STD3_mapped", [40, 53, 41]], [[9337, 9337], "disallowed_STD3_mapped", [40, 54, 41]], [[9338, 9338], "disallowed_STD3_mapped", [40, 55, 41]], [[9339, 9339], "disallowed_STD3_mapped", [40, 56, 41]], [[9340, 9340], "disallowed_STD3_mapped", [40, 57, 41]], [[9341, 9341], "disallowed_STD3_mapped", [40, 49, 48, 41]], [[9342, 9342], "disallowed_STD3_mapped", [40, 49, 49, 41]], [[9343, 9343], "disallowed_STD3_mapped", [40, 49, 50, 41]], [[9344, 9344], "disallowed_STD3_mapped", [40, 49, 51, 41]], [[9345, 9345], "disallowed_STD3_mapped", [40, 49, 52, 41]], [[9346, 9346], "disallowed_STD3_mapped", [40, 49, 53, 41]], [[9347, 9347], "disallowed_STD3_mapped", [40, 49, 54, 41]], [[9348, 9348], "disallowed_STD3_mapped", [40, 49, 55, 41]], [[9349, 9349], "disallowed_STD3_mapped", [40, 49, 56, 41]], [[9350, 9350], "disallowed_STD3_mapped", [40, 49, 57, 41]], [[9351, 9351], "disallowed_STD3_mapped", [40, 50, 48, 41]], [[9352, 9371], "disallowed"], [[9372, 9372], "disallowed_STD3_mapped", [40, 97, 41]], [[9373, 9373], "disallowed_STD3_mapped", [40, 98, 41]], [[9374, 9374], "disallowed_STD3_mapped", [40, 99, 41]], [[9375, 9375], "disallowed_STD3_mapped", [40, 100, 41]], [[9376, 9376], "disallowed_STD3_mapped", [40, 101, 41]], [[9377, 9377], "disallowed_STD3_mapped", [40, 102, 41]], [[9378, 9378], "disallowed_STD3_mapped", [40, 103, 41]], [[9379, 9379], "disallowed_STD3_mapped", [40, 104, 41]], [[9380, 9380], "disallowed_STD3_mapped", [40, 105, 41]], [[9381, 9381], "disallowed_STD3_mapped", [40, 106, 41]], [[9382, 9382], "disallowed_STD3_mapped", [40, 107, 41]], [[9383, 9383], "disallowed_STD3_mapped", [40, 108, 41]], [[9384, 9384], "disallowed_STD3_mapped", [40, 109, 41]], [[9385, 9385], "disallowed_STD3_mapped", [40, 110, 41]], [[9386, 9386], "disallowed_STD3_mapped", [40, 111, 41]], [[9387, 9387], "disallowed_STD3_mapped", [40, 112, 41]], [[9388, 9388], "disallowed_STD3_mapped", [40, 113, 41]], [[9389, 9389], "disallowed_STD3_mapped", [40, 114, 41]], [[9390, 9390], "disallowed_STD3_mapped", [40, 115, 41]], [[9391, 9391], "disallowed_STD3_mapped", [40, 116, 41]], [[9392, 9392], "disallowed_STD3_mapped", [40, 117, 41]], [[9393, 9393], "disallowed_STD3_mapped", [40, 118, 41]], [[9394, 9394], "disallowed_STD3_mapped", [40, 119, 41]], [[9395, 9395], "disallowed_STD3_mapped", [40, 120, 41]], [[9396, 9396], "disallowed_STD3_mapped", [40, 121, 41]], [[9397, 9397], "disallowed_STD3_mapped", [40, 122, 41]], [[9398, 9398], "mapped", [97]], [[9399, 9399], "mapped", [98]], [[9400, 9400], "mapped", [99]], [[9401, 9401], "mapped", [100]], [[9402, 9402], "mapped", [101]], [[9403, 9403], "mapped", [102]], [[9404, 9404], "mapped", [103]], [[9405, 9405], "mapped", [104]], [[9406, 9406], "mapped", [105]], [[9407, 9407], "mapped", [106]], [[9408, 9408], "mapped", [107]], [[9409, 9409], "mapped", [108]], [[9410, 9410], "mapped", [109]], [[9411, 9411], "mapped", [110]], [[9412, 9412], "mapped", [111]], [[9413, 9413], "mapped", [112]], [[9414, 9414], "mapped", [113]], [[9415, 9415], "mapped", [114]], [[9416, 9416], "mapped", [115]], [[9417, 9417], "mapped", [116]], [[9418, 9418], "mapped", [117]], [[9419, 9419], "mapped", [118]], [[9420, 9420], "mapped", [119]], [[9421, 9421], "mapped", [120]], [[9422, 9422], "mapped", [121]], [[9423, 9423], "mapped", [122]], [[9424, 9424], "mapped", [97]], [[9425, 9425], "mapped", [98]], [[9426, 9426], "mapped", [99]], [[9427, 9427], "mapped", [100]], [[9428, 9428], "mapped", [101]], [[9429, 9429], "mapped", [102]], [[9430, 9430], "mapped", [103]], [[9431, 9431], "mapped", [104]], [[9432, 9432], "mapped", [105]], [[9433, 9433], "mapped", [106]], [[9434, 9434], "mapped", [107]], [[9435, 9435], "mapped", [108]], [[9436, 9436], "mapped", [109]], [[9437, 9437], "mapped", [110]], [[9438, 9438], "mapped", [111]], [[9439, 9439], "mapped", [112]], [[9440, 9440], "mapped", [113]], [[9441, 9441], "mapped", [114]], [[9442, 9442], "mapped", [115]], [[9443, 9443], "mapped", [116]], [[9444, 9444], "mapped", [117]], [[9445, 9445], "mapped", [118]], [[9446, 9446], "mapped", [119]], [[9447, 9447], "mapped", [120]], [[9448, 9448], "mapped", [121]], [[9449, 9449], "mapped", [122]], [[9450, 9450], "mapped", [48]], [[9451, 9470], "valid", [], "NV8"], [[9471, 9471], "valid", [], "NV8"], [[9472, 9621], "valid", [], "NV8"], [[9622, 9631], "valid", [], "NV8"], [[9632, 9711], "valid", [], "NV8"], [[9712, 9719], "valid", [], "NV8"], [[9720, 9727], "valid", [], "NV8"], [[9728, 9747], "valid", [], "NV8"], [[9748, 9749], "valid", [], "NV8"], [[9750, 9751], "valid", [], "NV8"], [[9752, 9752], "valid", [], "NV8"], [[9753, 9753], "valid", [], "NV8"], [[9754, 9839], "valid", [], "NV8"], [[9840, 9841], "valid", [], "NV8"], [[9842, 9853], "valid", [], "NV8"], [[9854, 9855], "valid", [], "NV8"], [[9856, 9865], "valid", [], "NV8"], [[9866, 9873], "valid", [], "NV8"], [[9874, 9884], "valid", [], "NV8"], [[9885, 9885], "valid", [], "NV8"], [[9886, 9887], "valid", [], "NV8"], [[9888, 9889], "valid", [], "NV8"], [[9890, 9905], "valid", [], "NV8"], [[9906, 9906], "valid", [], "NV8"], [[9907, 9916], "valid", [], "NV8"], [[9917, 9919], "valid", [], "NV8"], [[9920, 9923], "valid", [], "NV8"], [[9924, 9933], "valid", [], "NV8"], [[9934, 9934], "valid", [], "NV8"], [[9935, 9953], "valid", [], "NV8"], [[9954, 9954], "valid", [], "NV8"], [[9955, 9955], "valid", [], "NV8"], [[9956, 9959], "valid", [], "NV8"], [[9960, 9983], "valid", [], "NV8"], [[9984, 9984], "valid", [], "NV8"], [[9985, 9988], "valid", [], "NV8"], [[9989, 9989], "valid", [], "NV8"], [[9990, 9993], "valid", [], "NV8"], [[9994, 9995], "valid", [], "NV8"], [[9996, 10023], "valid", [], "NV8"], [[10024, 10024], "valid", [], "NV8"], [[10025, 10059], "valid", [], "NV8"], [[10060, 10060], "valid", [], "NV8"], [[10061, 10061], "valid", [], "NV8"], [[10062, 10062], "valid", [], "NV8"], [[10063, 10066], "valid", [], "NV8"], [[10067, 10069], "valid", [], "NV8"], [[10070, 10070], "valid", [], "NV8"], [[10071, 10071], "valid", [], "NV8"], [[10072, 10078], "valid", [], "NV8"], [[10079, 10080], "valid", [], "NV8"], [[10081, 10087], "valid", [], "NV8"], [[10088, 10101], "valid", [], "NV8"], [[10102, 10132], "valid", [], "NV8"], [[10133, 10135], "valid", [], "NV8"], [[10136, 10159], "valid", [], "NV8"], [[10160, 10160], "valid", [], "NV8"], [[10161, 10174], "valid", [], "NV8"], [[10175, 10175], "valid", [], "NV8"], [[10176, 10182], "valid", [], "NV8"], [[10183, 10186], "valid", [], "NV8"], [[10187, 10187], "valid", [], "NV8"], [[10188, 10188], "valid", [], "NV8"], [[10189, 10189], "valid", [], "NV8"], [[10190, 10191], "valid", [], "NV8"], [[10192, 10219], "valid", [], "NV8"], [[10220, 10223], "valid", [], "NV8"], [[10224, 10239], "valid", [], "NV8"], [[10240, 10495], "valid", [], "NV8"], [[10496, 10763], "valid", [], "NV8"], [[10764, 10764], "mapped", [8747, 8747, 8747, 8747]], [[10765, 10867], "valid", [], "NV8"], [[10868, 10868], "disallowed_STD3_mapped", [58, 58, 61]], [[10869, 10869], "disallowed_STD3_mapped", [61, 61]], [[10870, 10870], "disallowed_STD3_mapped", [61, 61, 61]], [[10871, 10971], "valid", [], "NV8"], [[10972, 10972], "mapped", [10973, 824]], [[10973, 11007], "valid", [], "NV8"], [[11008, 11021], "valid", [], "NV8"], [[11022, 11027], "valid", [], "NV8"], [[11028, 11034], "valid", [], "NV8"], [[11035, 11039], "valid", [], "NV8"], [[11040, 11043], "valid", [], "NV8"], [[11044, 11084], "valid", [], "NV8"], [[11085, 11087], "valid", [], "NV8"], [[11088, 11092], "valid", [], "NV8"], [[11093, 11097], "valid", [], "NV8"], [[11098, 11123], "valid", [], "NV8"], [[11124, 11125], "disallowed"], [[11126, 11157], "valid", [], "NV8"], [[11158, 11159], "disallowed"], [[11160, 11193], "valid", [], "NV8"], [[11194, 11196], "disallowed"], [[11197, 11208], "valid", [], "NV8"], [[11209, 11209], "disallowed"], [[11210, 11217], "valid", [], "NV8"], [[11218, 11243], "disallowed"], [[11244, 11247], "valid", [], "NV8"], [[11248, 11263], "disallowed"], [[11264, 11264], "mapped", [11312]], [[11265, 11265], "mapped", [11313]], [[11266, 11266], "mapped", [11314]], [[11267, 11267], "mapped", [11315]], [[11268, 11268], "mapped", [11316]], [[11269, 11269], "mapped", [11317]], [[11270, 11270], "mapped", [11318]], [[11271, 11271], "mapped", [11319]], [[11272, 11272], "mapped", [11320]], [[11273, 11273], "mapped", [11321]], [[11274, 11274], "mapped", [11322]], [[11275, 11275], "mapped", [11323]], [[11276, 11276], "mapped", [11324]], [[11277, 11277], "mapped", [11325]], [[11278, 11278], "mapped", [11326]], [[11279, 11279], "mapped", [11327]], [[11280, 11280], "mapped", [11328]], [[11281, 11281], "mapped", [11329]], [[11282, 11282], "mapped", [11330]], [[11283, 11283], "mapped", [11331]], [[11284, 11284], "mapped", [11332]], [[11285, 11285], "mapped", [11333]], [[11286, 11286], "mapped", [11334]], [[11287, 11287], "mapped", [11335]], [[11288, 11288], "mapped", [11336]], [[11289, 11289], "mapped", [11337]], [[11290, 11290], "mapped", [11338]], [[11291, 11291], "mapped", [11339]], [[11292, 11292], "mapped", [11340]], [[11293, 11293], "mapped", [11341]], [[11294, 11294], "mapped", [11342]], [[11295, 11295], "mapped", [11343]], [[11296, 11296], "mapped", [11344]], [[11297, 11297], "mapped", [11345]], [[11298, 11298], "mapped", [11346]], [[11299, 11299], "mapped", [11347]], [[11300, 11300], "mapped", [11348]], [[11301, 11301], "mapped", [11349]], [[11302, 11302], "mapped", [11350]], [[11303, 11303], "mapped", [11351]], [[11304, 11304], "mapped", [11352]], [[11305, 11305], "mapped", [11353]], [[11306, 11306], "mapped", [11354]], [[11307, 11307], "mapped", [11355]], [[11308, 11308], "mapped", [11356]], [[11309, 11309], "mapped", [11357]], [[11310, 11310], "mapped", [11358]], [[11311, 11311], "disallowed"], [[11312, 11358], "valid"], [[11359, 11359], "disallowed"], [[11360, 11360], "mapped", [11361]], [[11361, 11361], "valid"], [[11362, 11362], "mapped", [619]], [[11363, 11363], "mapped", [7549]], [[11364, 11364], "mapped", [637]], [[11365, 11366], "valid"], [[11367, 11367], "mapped", [11368]], [[11368, 11368], "valid"], [[11369, 11369], "mapped", [11370]], [[11370, 11370], "valid"], [[11371, 11371], "mapped", [11372]], [[11372, 11372], "valid"], [[11373, 11373], "mapped", [593]], [[11374, 11374], "mapped", [625]], [[11375, 11375], "mapped", [592]], [[11376, 11376], "mapped", [594]], [[11377, 11377], "valid"], [[11378, 11378], "mapped", [11379]], [[11379, 11379], "valid"], [[11380, 11380], "valid"], [[11381, 11381], "mapped", [11382]], [[11382, 11383], "valid"], [[11384, 11387], "valid"], [[11388, 11388], "mapped", [106]], [[11389, 11389], "mapped", [118]], [[11390, 11390], "mapped", [575]], [[11391, 11391], "mapped", [576]], [[11392, 11392], "mapped", [11393]], [[11393, 11393], "valid"], [[11394, 11394], "mapped", [11395]], [[11395, 11395], "valid"], [[11396, 11396], "mapped", [11397]], [[11397, 11397], "valid"], [[11398, 11398], "mapped", [11399]], [[11399, 11399], "valid"], [[11400, 11400], "mapped", [11401]], [[11401, 11401], "valid"], [[11402, 11402], "mapped", [11403]], [[11403, 11403], "valid"], [[11404, 11404], "mapped", [11405]], [[11405, 11405], "valid"], [[11406, 11406], "mapped", [11407]], [[11407, 11407], "valid"], [[11408, 11408], "mapped", [11409]], [[11409, 11409], "valid"], [[11410, 11410], "mapped", [11411]], [[11411, 11411], "valid"], [[11412, 11412], "mapped", [11413]], [[11413, 11413], "valid"], [[11414, 11414], "mapped", [11415]], [[11415, 11415], "valid"], [[11416, 11416], "mapped", [11417]], [[11417, 11417], "valid"], [[11418, 11418], "mapped", [11419]], [[11419, 11419], "valid"], [[11420, 11420], "mapped", [11421]], [[11421, 11421], "valid"], [[11422, 11422], "mapped", [11423]], [[11423, 11423], "valid"], [[11424, 11424], "mapped", [11425]], [[11425, 11425], "valid"], [[11426, 11426], "mapped", [11427]], [[11427, 11427], "valid"], [[11428, 11428], "mapped", [11429]], [[11429, 11429], "valid"], [[11430, 11430], "mapped", [11431]], [[11431, 11431], "valid"], [[11432, 11432], "mapped", [11433]], [[11433, 11433], "valid"], [[11434, 11434], "mapped", [11435]], [[11435, 11435], "valid"], [[11436, 11436], "mapped", [11437]], [[11437, 11437], "valid"], [[11438, 11438], "mapped", [11439]], [[11439, 11439], "valid"], [[11440, 11440], "mapped", [11441]], [[11441, 11441], "valid"], [[11442, 11442], "mapped", [11443]], [[11443, 11443], "valid"], [[11444, 11444], "mapped", [11445]], [[11445, 11445], "valid"], [[11446, 11446], "mapped", [11447]], [[11447, 11447], "valid"], [[11448, 11448], "mapped", [11449]], [[11449, 11449], "valid"], [[11450, 11450], "mapped", [11451]], [[11451, 11451], "valid"], [[11452, 11452], "mapped", [11453]], [[11453, 11453], "valid"], [[11454, 11454], "mapped", [11455]], [[11455, 11455], "valid"], [[11456, 11456], "mapped", [11457]], [[11457, 11457], "valid"], [[11458, 11458], "mapped", [11459]], [[11459, 11459], "valid"], [[11460, 11460], "mapped", [11461]], [[11461, 11461], "valid"], [[11462, 11462], "mapped", [11463]], [[11463, 11463], "valid"], [[11464, 11464], "mapped", [11465]], [[11465, 11465], "valid"], [[11466, 11466], "mapped", [11467]], [[11467, 11467], "valid"], [[11468, 11468], "mapped", [11469]], [[11469, 11469], "valid"], [[11470, 11470], "mapped", [11471]], [[11471, 11471], "valid"], [[11472, 11472], "mapped", [11473]], [[11473, 11473], "valid"], [[11474, 11474], "mapped", [11475]], [[11475, 11475], "valid"], [[11476, 11476], "mapped", [11477]], [[11477, 11477], "valid"], [[11478, 11478], "mapped", [11479]], [[11479, 11479], "valid"], [[11480, 11480], "mapped", [11481]], [[11481, 11481], "valid"], [[11482, 11482], "mapped", [11483]], [[11483, 11483], "valid"], [[11484, 11484], "mapped", [11485]], [[11485, 11485], "valid"], [[11486, 11486], "mapped", [11487]], [[11487, 11487], "valid"], [[11488, 11488], "mapped", [11489]], [[11489, 11489], "valid"], [[11490, 11490], "mapped", [11491]], [[11491, 11492], "valid"], [[11493, 11498], "valid", [], "NV8"], [[11499, 11499], "mapped", [11500]], [[11500, 11500], "valid"], [[11501, 11501], "mapped", [11502]], [[11502, 11505], "valid"], [[11506, 11506], "mapped", [11507]], [[11507, 11507], "valid"], [[11508, 11512], "disallowed"], [[11513, 11519], "valid", [], "NV8"], [[11520, 11557], "valid"], [[11558, 11558], "disallowed"], [[11559, 11559], "valid"], [[11560, 11564], "disallowed"], [[11565, 11565], "valid"], [[11566, 11567], "disallowed"], [[11568, 11621], "valid"], [[11622, 11623], "valid"], [[11624, 11630], "disallowed"], [[11631, 11631], "mapped", [11617]], [[11632, 11632], "valid", [], "NV8"], [[11633, 11646], "disallowed"], [[11647, 11647], "valid"], [[11648, 11670], "valid"], [[11671, 11679], "disallowed"], [[11680, 11686], "valid"], [[11687, 11687], "disallowed"], [[11688, 11694], "valid"], [[11695, 11695], "disallowed"], [[11696, 11702], "valid"], [[11703, 11703], "disallowed"], [[11704, 11710], "valid"], [[11711, 11711], "disallowed"], [[11712, 11718], "valid"], [[11719, 11719], "disallowed"], [[11720, 11726], "valid"], [[11727, 11727], "disallowed"], [[11728, 11734], "valid"], [[11735, 11735], "disallowed"], [[11736, 11742], "valid"], [[11743, 11743], "disallowed"], [[11744, 11775], "valid"], [[11776, 11799], "valid", [], "NV8"], [[11800, 11803], "valid", [], "NV8"], [[11804, 11805], "valid", [], "NV8"], [[11806, 11822], "valid", [], "NV8"], [[11823, 11823], "valid"], [[11824, 11824], "valid", [], "NV8"], [[11825, 11825], "valid", [], "NV8"], [[11826, 11835], "valid", [], "NV8"], [[11836, 11842], "valid", [], "NV8"], [[11843, 11903], "disallowed"], [[11904, 11929], "valid", [], "NV8"], [[11930, 11930], "disallowed"], [[11931, 11934], "valid", [], "NV8"], [[11935, 11935], "mapped", [27597]], [[11936, 12018], "valid", [], "NV8"], [[12019, 12019], "mapped", [40863]], [[12020, 12031], "disallowed"], [[12032, 12032], "mapped", [19968]], [[12033, 12033], "mapped", [20008]], [[12034, 12034], "mapped", [20022]], [[12035, 12035], "mapped", [20031]], [[12036, 12036], "mapped", [20057]], [[12037, 12037], "mapped", [20101]], [[12038, 12038], "mapped", [20108]], [[12039, 12039], "mapped", [20128]], [[12040, 12040], "mapped", [20154]], [[12041, 12041], "mapped", [20799]], [[12042, 12042], "mapped", [20837]], [[12043, 12043], "mapped", [20843]], [[12044, 12044], "mapped", [20866]], [[12045, 12045], "mapped", [20886]], [[12046, 12046], "mapped", [20907]], [[12047, 12047], "mapped", [20960]], [[12048, 12048], "mapped", [20981]], [[12049, 12049], "mapped", [20992]], [[12050, 12050], "mapped", [21147]], [[12051, 12051], "mapped", [21241]], [[12052, 12052], "mapped", [21269]], [[12053, 12053], "mapped", [21274]], [[12054, 12054], "mapped", [21304]], [[12055, 12055], "mapped", [21313]], [[12056, 12056], "mapped", [21340]], [[12057, 12057], "mapped", [21353]], [[12058, 12058], "mapped", [21378]], [[12059, 12059], "mapped", [21430]], [[12060, 12060], "mapped", [21448]], [[12061, 12061], "mapped", [21475]], [[12062, 12062], "mapped", [22231]], [[12063, 12063], "mapped", [22303]], [[12064, 12064], "mapped", [22763]], [[12065, 12065], "mapped", [22786]], [[12066, 12066], "mapped", [22794]], [[12067, 12067], "mapped", [22805]], [[12068, 12068], "mapped", [22823]], [[12069, 12069], "mapped", [22899]], [[12070, 12070], "mapped", [23376]], [[12071, 12071], "mapped", [23424]], [[12072, 12072], "mapped", [23544]], [[12073, 12073], "mapped", [23567]], [[12074, 12074], "mapped", [23586]], [[12075, 12075], "mapped", [23608]], [[12076, 12076], "mapped", [23662]], [[12077, 12077], "mapped", [23665]], [[12078, 12078], "mapped", [24027]], [[12079, 12079], "mapped", [24037]], [[12080, 12080], "mapped", [24049]], [[12081, 12081], "mapped", [24062]], [[12082, 12082], "mapped", [24178]], [[12083, 12083], "mapped", [24186]], [[12084, 12084], "mapped", [24191]], [[12085, 12085], "mapped", [24308]], [[12086, 12086], "mapped", [24318]], [[12087, 12087], "mapped", [24331]], [[12088, 12088], "mapped", [24339]], [[12089, 12089], "mapped", [24400]], [[12090, 12090], "mapped", [24417]], [[12091, 12091], "mapped", [24435]], [[12092, 12092], "mapped", [24515]], [[12093, 12093], "mapped", [25096]], [[12094, 12094], "mapped", [25142]], [[12095, 12095], "mapped", [25163]], [[12096, 12096], "mapped", [25903]], [[12097, 12097], "mapped", [25908]], [[12098, 12098], "mapped", [25991]], [[12099, 12099], "mapped", [26007]], [[12100, 12100], "mapped", [26020]], [[12101, 12101], "mapped", [26041]], [[12102, 12102], "mapped", [26080]], [[12103, 12103], "mapped", [26085]], [[12104, 12104], "mapped", [26352]], [[12105, 12105], "mapped", [26376]], [[12106, 12106], "mapped", [26408]], [[12107, 12107], "mapped", [27424]], [[12108, 12108], "mapped", [27490]], [[12109, 12109], "mapped", [27513]], [[12110, 12110], "mapped", [27571]], [[12111, 12111], "mapped", [27595]], [[12112, 12112], "mapped", [27604]], [[12113, 12113], "mapped", [27611]], [[12114, 12114], "mapped", [27663]], [[12115, 12115], "mapped", [27668]], [[12116, 12116], "mapped", [27700]], [[12117, 12117], "mapped", [28779]], [[12118, 12118], "mapped", [29226]], [[12119, 12119], "mapped", [29238]], [[12120, 12120], "mapped", [29243]], [[12121, 12121], "mapped", [29247]], [[12122, 12122], "mapped", [29255]], [[12123, 12123], "mapped", [29273]], [[12124, 12124], "mapped", [29275]], [[12125, 12125], "mapped", [29356]], [[12126, 12126], "mapped", [29572]], [[12127, 12127], "mapped", [29577]], [[12128, 12128], "mapped", [29916]], [[12129, 12129], "mapped", [29926]], [[12130, 12130], "mapped", [29976]], [[12131, 12131], "mapped", [29983]], [[12132, 12132], "mapped", [29992]], [[12133, 12133], "mapped", [3e4]], [[12134, 12134], "mapped", [30091]], [[12135, 12135], "mapped", [30098]], [[12136, 12136], "mapped", [30326]], [[12137, 12137], "mapped", [30333]], [[12138, 12138], "mapped", [30382]], [[12139, 12139], "mapped", [30399]], [[12140, 12140], "mapped", [30446]], [[12141, 12141], "mapped", [30683]], [[12142, 12142], "mapped", [30690]], [[12143, 12143], "mapped", [30707]], [[12144, 12144], "mapped", [31034]], [[12145, 12145], "mapped", [31160]], [[12146, 12146], "mapped", [31166]], [[12147, 12147], "mapped", [31348]], [[12148, 12148], "mapped", [31435]], [[12149, 12149], "mapped", [31481]], [[12150, 12150], "mapped", [31859]], [[12151, 12151], "mapped", [31992]], [[12152, 12152], "mapped", [32566]], [[12153, 12153], "mapped", [32593]], [[12154, 12154], "mapped", [32650]], [[12155, 12155], "mapped", [32701]], [[12156, 12156], "mapped", [32769]], [[12157, 12157], "mapped", [32780]], [[12158, 12158], "mapped", [32786]], [[12159, 12159], "mapped", [32819]], [[12160, 12160], "mapped", [32895]], [[12161, 12161], "mapped", [32905]], [[12162, 12162], "mapped", [33251]], [[12163, 12163], "mapped", [33258]], [[12164, 12164], "mapped", [33267]], [[12165, 12165], "mapped", [33276]], [[12166, 12166], "mapped", [33292]], [[12167, 12167], "mapped", [33307]], [[12168, 12168], "mapped", [33311]], [[12169, 12169], "mapped", [33390]], [[12170, 12170], "mapped", [33394]], [[12171, 12171], "mapped", [33400]], [[12172, 12172], "mapped", [34381]], [[12173, 12173], "mapped", [34411]], [[12174, 12174], "mapped", [34880]], [[12175, 12175], "mapped", [34892]], [[12176, 12176], "mapped", [34915]], [[12177, 12177], "mapped", [35198]], [[12178, 12178], "mapped", [35211]], [[12179, 12179], "mapped", [35282]], [[12180, 12180], "mapped", [35328]], [[12181, 12181], "mapped", [35895]], [[12182, 12182], "mapped", [35910]], [[12183, 12183], "mapped", [35925]], [[12184, 12184], "mapped", [35960]], [[12185, 12185], "mapped", [35997]], [[12186, 12186], "mapped", [36196]], [[12187, 12187], "mapped", [36208]], [[12188, 12188], "mapped", [36275]], [[12189, 12189], "mapped", [36523]], [[12190, 12190], "mapped", [36554]], [[12191, 12191], "mapped", [36763]], [[12192, 12192], "mapped", [36784]], [[12193, 12193], "mapped", [36789]], [[12194, 12194], "mapped", [37009]], [[12195, 12195], "mapped", [37193]], [[12196, 12196], "mapped", [37318]], [[12197, 12197], "mapped", [37324]], [[12198, 12198], "mapped", [37329]], [[12199, 12199], "mapped", [38263]], [[12200, 12200], "mapped", [38272]], [[12201, 12201], "mapped", [38428]], [[12202, 12202], "mapped", [38582]], [[12203, 12203], "mapped", [38585]], [[12204, 12204], "mapped", [38632]], [[12205, 12205], "mapped", [38737]], [[12206, 12206], "mapped", [38750]], [[12207, 12207], "mapped", [38754]], [[12208, 12208], "mapped", [38761]], [[12209, 12209], "mapped", [38859]], [[12210, 12210], "mapped", [38893]], [[12211, 12211], "mapped", [38899]], [[12212, 12212], "mapped", [38913]], [[12213, 12213], "mapped", [39080]], [[12214, 12214], "mapped", [39131]], [[12215, 12215], "mapped", [39135]], [[12216, 12216], "mapped", [39318]], [[12217, 12217], "mapped", [39321]], [[12218, 12218], "mapped", [39340]], [[12219, 12219], "mapped", [39592]], [[12220, 12220], "mapped", [39640]], [[12221, 12221], "mapped", [39647]], [[12222, 12222], "mapped", [39717]], [[12223, 12223], "mapped", [39727]], [[12224, 12224], "mapped", [39730]], [[12225, 12225], "mapped", [39740]], [[12226, 12226], "mapped", [39770]], [[12227, 12227], "mapped", [40165]], [[12228, 12228], "mapped", [40565]], [[12229, 12229], "mapped", [40575]], [[12230, 12230], "mapped", [40613]], [[12231, 12231], "mapped", [40635]], [[12232, 12232], "mapped", [40643]], [[12233, 12233], "mapped", [40653]], [[12234, 12234], "mapped", [40657]], [[12235, 12235], "mapped", [40697]], [[12236, 12236], "mapped", [40701]], [[12237, 12237], "mapped", [40718]], [[12238, 12238], "mapped", [40723]], [[12239, 12239], "mapped", [40736]], [[12240, 12240], "mapped", [40763]], [[12241, 12241], "mapped", [40778]], [[12242, 12242], "mapped", [40786]], [[12243, 12243], "mapped", [40845]], [[12244, 12244], "mapped", [40860]], [[12245, 12245], "mapped", [40864]], [[12246, 12271], "disallowed"], [[12272, 12283], "disallowed"], [[12284, 12287], "disallowed"], [[12288, 12288], "disallowed_STD3_mapped", [32]], [[12289, 12289], "valid", [], "NV8"], [[12290, 12290], "mapped", [46]], [[12291, 12292], "valid", [], "NV8"], [[12293, 12295], "valid"], [[12296, 12329], "valid", [], "NV8"], [[12330, 12333], "valid"], [[12334, 12341], "valid", [], "NV8"], [[12342, 12342], "mapped", [12306]], [[12343, 12343], "valid", [], "NV8"], [[12344, 12344], "mapped", [21313]], [[12345, 12345], "mapped", [21316]], [[12346, 12346], "mapped", [21317]], [[12347, 12347], "valid", [], "NV8"], [[12348, 12348], "valid"], [[12349, 12349], "valid", [], "NV8"], [[12350, 12350], "valid", [], "NV8"], [[12351, 12351], "valid", [], "NV8"], [[12352, 12352], "disallowed"], [[12353, 12436], "valid"], [[12437, 12438], "valid"], [[12439, 12440], "disallowed"], [[12441, 12442], "valid"], [[12443, 12443], "disallowed_STD3_mapped", [32, 12441]], [[12444, 12444], "disallowed_STD3_mapped", [32, 12442]], [[12445, 12446], "valid"], [[12447, 12447], "mapped", [12424, 12426]], [[12448, 12448], "valid", [], "NV8"], [[12449, 12542], "valid"], [[12543, 12543], "mapped", [12467, 12488]], [[12544, 12548], "disallowed"], [[12549, 12588], "valid"], [[12589, 12589], "valid"], [[12590, 12592], "disallowed"], [[12593, 12593], "mapped", [4352]], [[12594, 12594], "mapped", [4353]], [[12595, 12595], "mapped", [4522]], [[12596, 12596], "mapped", [4354]], [[12597, 12597], "mapped", [4524]], [[12598, 12598], "mapped", [4525]], [[12599, 12599], "mapped", [4355]], [[12600, 12600], "mapped", [4356]], [[12601, 12601], "mapped", [4357]], [[12602, 12602], "mapped", [4528]], [[12603, 12603], "mapped", [4529]], [[12604, 12604], "mapped", [4530]], [[12605, 12605], "mapped", [4531]], [[12606, 12606], "mapped", [4532]], [[12607, 12607], "mapped", [4533]], [[12608, 12608], "mapped", [4378]], [[12609, 12609], "mapped", [4358]], [[12610, 12610], "mapped", [4359]], [[12611, 12611], "mapped", [4360]], [[12612, 12612], "mapped", [4385]], [[12613, 12613], "mapped", [4361]], [[12614, 12614], "mapped", [4362]], [[12615, 12615], "mapped", [4363]], [[12616, 12616], "mapped", [4364]], [[12617, 12617], "mapped", [4365]], [[12618, 12618], "mapped", [4366]], [[12619, 12619], "mapped", [4367]], [[12620, 12620], "mapped", [4368]], [[12621, 12621], "mapped", [4369]], [[12622, 12622], "mapped", [4370]], [[12623, 12623], "mapped", [4449]], [[12624, 12624], "mapped", [4450]], [[12625, 12625], "mapped", [4451]], [[12626, 12626], "mapped", [4452]], [[12627, 12627], "mapped", [4453]], [[12628, 12628], "mapped", [4454]], [[12629, 12629], "mapped", [4455]], [[12630, 12630], "mapped", [4456]], [[12631, 12631], "mapped", [4457]], [[12632, 12632], "mapped", [4458]], [[12633, 12633], "mapped", [4459]], [[12634, 12634], "mapped", [4460]], [[12635, 12635], "mapped", [4461]], [[12636, 12636], "mapped", [4462]], [[12637, 12637], "mapped", [4463]], [[12638, 12638], "mapped", [4464]], [[12639, 12639], "mapped", [4465]], [[12640, 12640], "mapped", [4466]], [[12641, 12641], "mapped", [4467]], [[12642, 12642], "mapped", [4468]], [[12643, 12643], "mapped", [4469]], [[12644, 12644], "disallowed"], [[12645, 12645], "mapped", [4372]], [[12646, 12646], "mapped", [4373]], [[12647, 12647], "mapped", [4551]], [[12648, 12648], "mapped", [4552]], [[12649, 12649], "mapped", [4556]], [[12650, 12650], "mapped", [4558]], [[12651, 12651], "mapped", [4563]], [[12652, 12652], "mapped", [4567]], [[12653, 12653], "mapped", [4569]], [[12654, 12654], "mapped", [4380]], [[12655, 12655], "mapped", [4573]], [[12656, 12656], "mapped", [4575]], [[12657, 12657], "mapped", [4381]], [[12658, 12658], "mapped", [4382]], [[12659, 12659], "mapped", [4384]], [[12660, 12660], "mapped", [4386]], [[12661, 12661], "mapped", [4387]], [[12662, 12662], "mapped", [4391]], [[12663, 12663], "mapped", [4393]], [[12664, 12664], "mapped", [4395]], [[12665, 12665], "mapped", [4396]], [[12666, 12666], "mapped", [4397]], [[12667, 12667], "mapped", [4398]], [[12668, 12668], "mapped", [4399]], [[12669, 12669], "mapped", [4402]], [[12670, 12670], "mapped", [4406]], [[12671, 12671], "mapped", [4416]], [[12672, 12672], "mapped", [4423]], [[12673, 12673], "mapped", [4428]], [[12674, 12674], "mapped", [4593]], [[12675, 12675], "mapped", [4594]], [[12676, 12676], "mapped", [4439]], [[12677, 12677], "mapped", [4440]], [[12678, 12678], "mapped", [4441]], [[12679, 12679], "mapped", [4484]], [[12680, 12680], "mapped", [4485]], [[12681, 12681], "mapped", [4488]], [[12682, 12682], "mapped", [4497]], [[12683, 12683], "mapped", [4498]], [[12684, 12684], "mapped", [4500]], [[12685, 12685], "mapped", [4510]], [[12686, 12686], "mapped", [4513]], [[12687, 12687], "disallowed"], [[12688, 12689], "valid", [], "NV8"], [[12690, 12690], "mapped", [19968]], [[12691, 12691], "mapped", [20108]], [[12692, 12692], "mapped", [19977]], [[12693, 12693], "mapped", [22235]], [[12694, 12694], "mapped", [19978]], [[12695, 12695], "mapped", [20013]], [[12696, 12696], "mapped", [19979]], [[12697, 12697], "mapped", [30002]], [[12698, 12698], "mapped", [20057]], [[12699, 12699], "mapped", [19993]], [[12700, 12700], "mapped", [19969]], [[12701, 12701], "mapped", [22825]], [[12702, 12702], "mapped", [22320]], [[12703, 12703], "mapped", [20154]], [[12704, 12727], "valid"], [[12728, 12730], "valid"], [[12731, 12735], "disallowed"], [[12736, 12751], "valid", [], "NV8"], [[12752, 12771], "valid", [], "NV8"], [[12772, 12783], "disallowed"], [[12784, 12799], "valid"], [[12800, 12800], "disallowed_STD3_mapped", [40, 4352, 41]], [[12801, 12801], "disallowed_STD3_mapped", [40, 4354, 41]], [[12802, 12802], "disallowed_STD3_mapped", [40, 4355, 41]], [[12803, 12803], "disallowed_STD3_mapped", [40, 4357, 41]], [[12804, 12804], "disallowed_STD3_mapped", [40, 4358, 41]], [[12805, 12805], "disallowed_STD3_mapped", [40, 4359, 41]], [[12806, 12806], "disallowed_STD3_mapped", [40, 4361, 41]], [[12807, 12807], "disallowed_STD3_mapped", [40, 4363, 41]], [[12808, 12808], "disallowed_STD3_mapped", [40, 4364, 41]], [[12809, 12809], "disallowed_STD3_mapped", [40, 4366, 41]], [[12810, 12810], "disallowed_STD3_mapped", [40, 4367, 41]], [[12811, 12811], "disallowed_STD3_mapped", [40, 4368, 41]], [[12812, 12812], "disallowed_STD3_mapped", [40, 4369, 41]], [[12813, 12813], "disallowed_STD3_mapped", [40, 4370, 41]], [[12814, 12814], "disallowed_STD3_mapped", [40, 44032, 41]], [[12815, 12815], "disallowed_STD3_mapped", [40, 45208, 41]], [[12816, 12816], "disallowed_STD3_mapped", [40, 45796, 41]], [[12817, 12817], "disallowed_STD3_mapped", [40, 46972, 41]], [[12818, 12818], "disallowed_STD3_mapped", [40, 47560, 41]], [[12819, 12819], "disallowed_STD3_mapped", [40, 48148, 41]], [[12820, 12820], "disallowed_STD3_mapped", [40, 49324, 41]], [[12821, 12821], "disallowed_STD3_mapped", [40, 50500, 41]], [[12822, 12822], "disallowed_STD3_mapped", [40, 51088, 41]], [[12823, 12823], "disallowed_STD3_mapped", [40, 52264, 41]], [[12824, 12824], "disallowed_STD3_mapped", [40, 52852, 41]], [[12825, 12825], "disallowed_STD3_mapped", [40, 53440, 41]], [[12826, 12826], "disallowed_STD3_mapped", [40, 54028, 41]], [[12827, 12827], "disallowed_STD3_mapped", [40, 54616, 41]], [[12828, 12828], "disallowed_STD3_mapped", [40, 51452, 41]], [[12829, 12829], "disallowed_STD3_mapped", [40, 50724, 51204, 41]], [[12830, 12830], "disallowed_STD3_mapped", [40, 50724, 54980, 41]], [[12831, 12831], "disallowed"], [[12832, 12832], "disallowed_STD3_mapped", [40, 19968, 41]], [[12833, 12833], "disallowed_STD3_mapped", [40, 20108, 41]], [[12834, 12834], "disallowed_STD3_mapped", [40, 19977, 41]], [[12835, 12835], "disallowed_STD3_mapped", [40, 22235, 41]], [[12836, 12836], "disallowed_STD3_mapped", [40, 20116, 41]], [[12837, 12837], "disallowed_STD3_mapped", [40, 20845, 41]], [[12838, 12838], "disallowed_STD3_mapped", [40, 19971, 41]], [[12839, 12839], "disallowed_STD3_mapped", [40, 20843, 41]], [[12840, 12840], "disallowed_STD3_mapped", [40, 20061, 41]], [[12841, 12841], "disallowed_STD3_mapped", [40, 21313, 41]], [[12842, 12842], "disallowed_STD3_mapped", [40, 26376, 41]], [[12843, 12843], "disallowed_STD3_mapped", [40, 28779, 41]], [[12844, 12844], "disallowed_STD3_mapped", [40, 27700, 41]], [[12845, 12845], "disallowed_STD3_mapped", [40, 26408, 41]], [[12846, 12846], "disallowed_STD3_mapped", [40, 37329, 41]], [[12847, 12847], "disallowed_STD3_mapped", [40, 22303, 41]], [[12848, 12848], "disallowed_STD3_mapped", [40, 26085, 41]], [[12849, 12849], "disallowed_STD3_mapped", [40, 26666, 41]], [[12850, 12850], "disallowed_STD3_mapped", [40, 26377, 41]], [[12851, 12851], "disallowed_STD3_mapped", [40, 31038, 41]], [[12852, 12852], "disallowed_STD3_mapped", [40, 21517, 41]], [[12853, 12853], "disallowed_STD3_mapped", [40, 29305, 41]], [[12854, 12854], "disallowed_STD3_mapped", [40, 36001, 41]], [[12855, 12855], "disallowed_STD3_mapped", [40, 31069, 41]], [[12856, 12856], "disallowed_STD3_mapped", [40, 21172, 41]], [[12857, 12857], "disallowed_STD3_mapped", [40, 20195, 41]], [[12858, 12858], "disallowed_STD3_mapped", [40, 21628, 41]], [[12859, 12859], "disallowed_STD3_mapped", [40, 23398, 41]], [[12860, 12860], "disallowed_STD3_mapped", [40, 30435, 41]], [[12861, 12861], "disallowed_STD3_mapped", [40, 20225, 41]], [[12862, 12862], "disallowed_STD3_mapped", [40, 36039, 41]], [[12863, 12863], "disallowed_STD3_mapped", [40, 21332, 41]], [[12864, 12864], "disallowed_STD3_mapped", [40, 31085, 41]], [[12865, 12865], "disallowed_STD3_mapped", [40, 20241, 41]], [[12866, 12866], "disallowed_STD3_mapped", [40, 33258, 41]], [[12867, 12867], "disallowed_STD3_mapped", [40, 33267, 41]], [[12868, 12868], "mapped", [21839]], [[12869, 12869], "mapped", [24188]], [[12870, 12870], "mapped", [25991]], [[12871, 12871], "mapped", [31631]], [[12872, 12879], "valid", [], "NV8"], [[12880, 12880], "mapped", [112, 116, 101]], [[12881, 12881], "mapped", [50, 49]], [[12882, 12882], "mapped", [50, 50]], [[12883, 12883], "mapped", [50, 51]], [[12884, 12884], "mapped", [50, 52]], [[12885, 12885], "mapped", [50, 53]], [[12886, 12886], "mapped", [50, 54]], [[12887, 12887], "mapped", [50, 55]], [[12888, 12888], "mapped", [50, 56]], [[12889, 12889], "mapped", [50, 57]], [[12890, 12890], "mapped", [51, 48]], [[12891, 12891], "mapped", [51, 49]], [[12892, 12892], "mapped", [51, 50]], [[12893, 12893], "mapped", [51, 51]], [[12894, 12894], "mapped", [51, 52]], [[12895, 12895], "mapped", [51, 53]], [[12896, 12896], "mapped", [4352]], [[12897, 12897], "mapped", [4354]], [[12898, 12898], "mapped", [4355]], [[12899, 12899], "mapped", [4357]], [[12900, 12900], "mapped", [4358]], [[12901, 12901], "mapped", [4359]], [[12902, 12902], "mapped", [4361]], [[12903, 12903], "mapped", [4363]], [[12904, 12904], "mapped", [4364]], [[12905, 12905], "mapped", [4366]], [[12906, 12906], "mapped", [4367]], [[12907, 12907], "mapped", [4368]], [[12908, 12908], "mapped", [4369]], [[12909, 12909], "mapped", [4370]], [[12910, 12910], "mapped", [44032]], [[12911, 12911], "mapped", [45208]], [[12912, 12912], "mapped", [45796]], [[12913, 12913], "mapped", [46972]], [[12914, 12914], "mapped", [47560]], [[12915, 12915], "mapped", [48148]], [[12916, 12916], "mapped", [49324]], [[12917, 12917], "mapped", [50500]], [[12918, 12918], "mapped", [51088]], [[12919, 12919], "mapped", [52264]], [[12920, 12920], "mapped", [52852]], [[12921, 12921], "mapped", [53440]], [[12922, 12922], "mapped", [54028]], [[12923, 12923], "mapped", [54616]], [[12924, 12924], "mapped", [52280, 44256]], [[12925, 12925], "mapped", [51452, 51032]], [[12926, 12926], "mapped", [50864]], [[12927, 12927], "valid", [], "NV8"], [[12928, 12928], "mapped", [19968]], [[12929, 12929], "mapped", [20108]], [[12930, 12930], "mapped", [19977]], [[12931, 12931], "mapped", [22235]], [[12932, 12932], "mapped", [20116]], [[12933, 12933], "mapped", [20845]], [[12934, 12934], "mapped", [19971]], [[12935, 12935], "mapped", [20843]], [[12936, 12936], "mapped", [20061]], [[12937, 12937], "mapped", [21313]], [[12938, 12938], "mapped", [26376]], [[12939, 12939], "mapped", [28779]], [[12940, 12940], "mapped", [27700]], [[12941, 12941], "mapped", [26408]], [[12942, 12942], "mapped", [37329]], [[12943, 12943], "mapped", [22303]], [[12944, 12944], "mapped", [26085]], [[12945, 12945], "mapped", [26666]], [[12946, 12946], "mapped", [26377]], [[12947, 12947], "mapped", [31038]], [[12948, 12948], "mapped", [21517]], [[12949, 12949], "mapped", [29305]], [[12950, 12950], "mapped", [36001]], [[12951, 12951], "mapped", [31069]], [[12952, 12952], "mapped", [21172]], [[12953, 12953], "mapped", [31192]], [[12954, 12954], "mapped", [30007]], [[12955, 12955], "mapped", [22899]], [[12956, 12956], "mapped", [36969]], [[12957, 12957], "mapped", [20778]], [[12958, 12958], "mapped", [21360]], [[12959, 12959], "mapped", [27880]], [[12960, 12960], "mapped", [38917]], [[12961, 12961], "mapped", [20241]], [[12962, 12962], "mapped", [20889]], [[12963, 12963], "mapped", [27491]], [[12964, 12964], "mapped", [19978]], [[12965, 12965], "mapped", [20013]], [[12966, 12966], "mapped", [19979]], [[12967, 12967], "mapped", [24038]], [[12968, 12968], "mapped", [21491]], [[12969, 12969], "mapped", [21307]], [[12970, 12970], "mapped", [23447]], [[12971, 12971], "mapped", [23398]], [[12972, 12972], "mapped", [30435]], [[12973, 12973], "mapped", [20225]], [[12974, 12974], "mapped", [36039]], [[12975, 12975], "mapped", [21332]], [[12976, 12976], "mapped", [22812]], [[12977, 12977], "mapped", [51, 54]], [[12978, 12978], "mapped", [51, 55]], [[12979, 12979], "mapped", [51, 56]], [[12980, 12980], "mapped", [51, 57]], [[12981, 12981], "mapped", [52, 48]], [[12982, 12982], "mapped", [52, 49]], [[12983, 12983], "mapped", [52, 50]], [[12984, 12984], "mapped", [52, 51]], [[12985, 12985], "mapped", [52, 52]], [[12986, 12986], "mapped", [52, 53]], [[12987, 12987], "mapped", [52, 54]], [[12988, 12988], "mapped", [52, 55]], [[12989, 12989], "mapped", [52, 56]], [[12990, 12990], "mapped", [52, 57]], [[12991, 12991], "mapped", [53, 48]], [[12992, 12992], "mapped", [49, 26376]], [[12993, 12993], "mapped", [50, 26376]], [[12994, 12994], "mapped", [51, 26376]], [[12995, 12995], "mapped", [52, 26376]], [[12996, 12996], "mapped", [53, 26376]], [[12997, 12997], "mapped", [54, 26376]], [[12998, 12998], "mapped", [55, 26376]], [[12999, 12999], "mapped", [56, 26376]], [[13e3, 13e3], "mapped", [57, 26376]], [[13001, 13001], "mapped", [49, 48, 26376]], [[13002, 13002], "mapped", [49, 49, 26376]], [[13003, 13003], "mapped", [49, 50, 26376]], [[13004, 13004], "mapped", [104, 103]], [[13005, 13005], "mapped", [101, 114, 103]], [[13006, 13006], "mapped", [101, 118]], [[13007, 13007], "mapped", [108, 116, 100]], [[13008, 13008], "mapped", [12450]], [[13009, 13009], "mapped", [12452]], [[13010, 13010], "mapped", [12454]], [[13011, 13011], "mapped", [12456]], [[13012, 13012], "mapped", [12458]], [[13013, 13013], "mapped", [12459]], [[13014, 13014], "mapped", [12461]], [[13015, 13015], "mapped", [12463]], [[13016, 13016], "mapped", [12465]], [[13017, 13017], "mapped", [12467]], [[13018, 13018], "mapped", [12469]], [[13019, 13019], "mapped", [12471]], [[13020, 13020], "mapped", [12473]], [[13021, 13021], "mapped", [12475]], [[13022, 13022], "mapped", [12477]], [[13023, 13023], "mapped", [12479]], [[13024, 13024], "mapped", [12481]], [[13025, 13025], "mapped", [12484]], [[13026, 13026], "mapped", [12486]], [[13027, 13027], "mapped", [12488]], [[13028, 13028], "mapped", [12490]], [[13029, 13029], "mapped", [12491]], [[13030, 13030], "mapped", [12492]], [[13031, 13031], "mapped", [12493]], [[13032, 13032], "mapped", [12494]], [[13033, 13033], "mapped", [12495]], [[13034, 13034], "mapped", [12498]], [[13035, 13035], "mapped", [12501]], [[13036, 13036], "mapped", [12504]], [[13037, 13037], "mapped", [12507]], [[13038, 13038], "mapped", [12510]], [[13039, 13039], "mapped", [12511]], [[13040, 13040], "mapped", [12512]], [[13041, 13041], "mapped", [12513]], [[13042, 13042], "mapped", [12514]], [[13043, 13043], "mapped", [12516]], [[13044, 13044], "mapped", [12518]], [[13045, 13045], "mapped", [12520]], [[13046, 13046], "mapped", [12521]], [[13047, 13047], "mapped", [12522]], [[13048, 13048], "mapped", [12523]], [[13049, 13049], "mapped", [12524]], [[13050, 13050], "mapped", [12525]], [[13051, 13051], "mapped", [12527]], [[13052, 13052], "mapped", [12528]], [[13053, 13053], "mapped", [12529]], [[13054, 13054], "mapped", [12530]], [[13055, 13055], "disallowed"], [[13056, 13056], "mapped", [12450, 12497, 12540, 12488]], [[13057, 13057], "mapped", [12450, 12523, 12501, 12449]], [[13058, 13058], "mapped", [12450, 12531, 12506, 12450]], [[13059, 13059], "mapped", [12450, 12540, 12523]], [[13060, 13060], "mapped", [12452, 12491, 12531, 12464]], [[13061, 13061], "mapped", [12452, 12531, 12481]], [[13062, 13062], "mapped", [12454, 12457, 12531]], [[13063, 13063], "mapped", [12456, 12473, 12463, 12540, 12489]], [[13064, 13064], "mapped", [12456, 12540, 12459, 12540]], [[13065, 13065], "mapped", [12458, 12531, 12473]], [[13066, 13066], "mapped", [12458, 12540, 12512]], [[13067, 13067], "mapped", [12459, 12452, 12522]], [[13068, 13068], "mapped", [12459, 12521, 12483, 12488]], [[13069, 13069], "mapped", [12459, 12525, 12522, 12540]], [[13070, 13070], "mapped", [12460, 12525, 12531]], [[13071, 13071], "mapped", [12460, 12531, 12510]], [[13072, 13072], "mapped", [12462, 12460]], [[13073, 13073], "mapped", [12462, 12491, 12540]], [[13074, 13074], "mapped", [12461, 12517, 12522, 12540]], [[13075, 13075], "mapped", [12462, 12523, 12480, 12540]], [[13076, 13076], "mapped", [12461, 12525]], [[13077, 13077], "mapped", [12461, 12525, 12464, 12521, 12512]], [[13078, 13078], "mapped", [12461, 12525, 12513, 12540, 12488, 12523]], [[13079, 13079], "mapped", [12461, 12525, 12527, 12483, 12488]], [[13080, 13080], "mapped", [12464, 12521, 12512]], [[13081, 13081], "mapped", [12464, 12521, 12512, 12488, 12531]], [[13082, 13082], "mapped", [12463, 12523, 12476, 12452, 12525]], [[13083, 13083], "mapped", [12463, 12525, 12540, 12493]], [[13084, 13084], "mapped", [12465, 12540, 12473]], [[13085, 13085], "mapped", [12467, 12523, 12490]], [[13086, 13086], "mapped", [12467, 12540, 12509]], [[13087, 13087], "mapped", [12469, 12452, 12463, 12523]], [[13088, 13088], "mapped", [12469, 12531, 12481, 12540, 12512]], [[13089, 13089], "mapped", [12471, 12522, 12531, 12464]], [[13090, 13090], "mapped", [12475, 12531, 12481]], [[13091, 13091], "mapped", [12475, 12531, 12488]], [[13092, 13092], "mapped", [12480, 12540, 12473]], [[13093, 13093], "mapped", [12487, 12471]], [[13094, 13094], "mapped", [12489, 12523]], [[13095, 13095], "mapped", [12488, 12531]], [[13096, 13096], "mapped", [12490, 12494]], [[13097, 13097], "mapped", [12494, 12483, 12488]], [[13098, 13098], "mapped", [12495, 12452, 12484]], [[13099, 13099], "mapped", [12497, 12540, 12475, 12531, 12488]], [[13100, 13100], "mapped", [12497, 12540, 12484]], [[13101, 13101], "mapped", [12496, 12540, 12524, 12523]], [[13102, 13102], "mapped", [12500, 12450, 12473, 12488, 12523]], [[13103, 13103], "mapped", [12500, 12463, 12523]], [[13104, 13104], "mapped", [12500, 12467]], [[13105, 13105], "mapped", [12499, 12523]], [[13106, 13106], "mapped", [12501, 12449, 12521, 12483, 12489]], [[13107, 13107], "mapped", [12501, 12451, 12540, 12488]], [[13108, 13108], "mapped", [12502, 12483, 12471, 12455, 12523]], [[13109, 13109], "mapped", [12501, 12521, 12531]], [[13110, 13110], "mapped", [12504, 12463, 12479, 12540, 12523]], [[13111, 13111], "mapped", [12506, 12477]], [[13112, 13112], "mapped", [12506, 12491, 12498]], [[13113, 13113], "mapped", [12504, 12523, 12484]], [[13114, 13114], "mapped", [12506, 12531, 12473]], [[13115, 13115], "mapped", [12506, 12540, 12472]], [[13116, 13116], "mapped", [12505, 12540, 12479]], [[13117, 13117], "mapped", [12509, 12452, 12531, 12488]], [[13118, 13118], "mapped", [12508, 12523, 12488]], [[13119, 13119], "mapped", [12507, 12531]], [[13120, 13120], "mapped", [12509, 12531, 12489]], [[13121, 13121], "mapped", [12507, 12540, 12523]], [[13122, 13122], "mapped", [12507, 12540, 12531]], [[13123, 13123], "mapped", [12510, 12452, 12463, 12525]], [[13124, 13124], "mapped", [12510, 12452, 12523]], [[13125, 13125], "mapped", [12510, 12483, 12495]], [[13126, 13126], "mapped", [12510, 12523, 12463]], [[13127, 13127], "mapped", [12510, 12531, 12471, 12519, 12531]], [[13128, 13128], "mapped", [12511, 12463, 12525, 12531]], [[13129, 13129], "mapped", [12511, 12522]], [[13130, 13130], "mapped", [12511, 12522, 12496, 12540, 12523]], [[13131, 13131], "mapped", [12513, 12460]], [[13132, 13132], "mapped", [12513, 12460, 12488, 12531]], [[13133, 13133], "mapped", [12513, 12540, 12488, 12523]], [[13134, 13134], "mapped", [12516, 12540, 12489]], [[13135, 13135], "mapped", [12516, 12540, 12523]], [[13136, 13136], "mapped", [12518, 12450, 12531]], [[13137, 13137], "mapped", [12522, 12483, 12488, 12523]], [[13138, 13138], "mapped", [12522, 12521]], [[13139, 13139], "mapped", [12523, 12500, 12540]], [[13140, 13140], "mapped", [12523, 12540, 12502, 12523]], [[13141, 13141], "mapped", [12524, 12512]], [[13142, 13142], "mapped", [12524, 12531, 12488, 12466, 12531]], [[13143, 13143], "mapped", [12527, 12483, 12488]], [[13144, 13144], "mapped", [48, 28857]], [[13145, 13145], "mapped", [49, 28857]], [[13146, 13146], "mapped", [50, 28857]], [[13147, 13147], "mapped", [51, 28857]], [[13148, 13148], "mapped", [52, 28857]], [[13149, 13149], "mapped", [53, 28857]], [[13150, 13150], "mapped", [54, 28857]], [[13151, 13151], "mapped", [55, 28857]], [[13152, 13152], "mapped", [56, 28857]], [[13153, 13153], "mapped", [57, 28857]], [[13154, 13154], "mapped", [49, 48, 28857]], [[13155, 13155], "mapped", [49, 49, 28857]], [[13156, 13156], "mapped", [49, 50, 28857]], [[13157, 13157], "mapped", [49, 51, 28857]], [[13158, 13158], "mapped", [49, 52, 28857]], [[13159, 13159], "mapped", [49, 53, 28857]], [[13160, 13160], "mapped", [49, 54, 28857]], [[13161, 13161], "mapped", [49, 55, 28857]], [[13162, 13162], "mapped", [49, 56, 28857]], [[13163, 13163], "mapped", [49, 57, 28857]], [[13164, 13164], "mapped", [50, 48, 28857]], [[13165, 13165], "mapped", [50, 49, 28857]], [[13166, 13166], "mapped", [50, 50, 28857]], [[13167, 13167], "mapped", [50, 51, 28857]], [[13168, 13168], "mapped", [50, 52, 28857]], [[13169, 13169], "mapped", [104, 112, 97]], [[13170, 13170], "mapped", [100, 97]], [[13171, 13171], "mapped", [97, 117]], [[13172, 13172], "mapped", [98, 97, 114]], [[13173, 13173], "mapped", [111, 118]], [[13174, 13174], "mapped", [112, 99]], [[13175, 13175], "mapped", [100, 109]], [[13176, 13176], "mapped", [100, 109, 50]], [[13177, 13177], "mapped", [100, 109, 51]], [[13178, 13178], "mapped", [105, 117]], [[13179, 13179], "mapped", [24179, 25104]], [[13180, 13180], "mapped", [26157, 21644]], [[13181, 13181], "mapped", [22823, 27491]], [[13182, 13182], "mapped", [26126, 27835]], [[13183, 13183], "mapped", [26666, 24335, 20250, 31038]], [[13184, 13184], "mapped", [112, 97]], [[13185, 13185], "mapped", [110, 97]], [[13186, 13186], "mapped", [956, 97]], [[13187, 13187], "mapped", [109, 97]], [[13188, 13188], "mapped", [107, 97]], [[13189, 13189], "mapped", [107, 98]], [[13190, 13190], "mapped", [109, 98]], [[13191, 13191], "mapped", [103, 98]], [[13192, 13192], "mapped", [99, 97, 108]], [[13193, 13193], "mapped", [107, 99, 97, 108]], [[13194, 13194], "mapped", [112, 102]], [[13195, 13195], "mapped", [110, 102]], [[13196, 13196], "mapped", [956, 102]], [[13197, 13197], "mapped", [956, 103]], [[13198, 13198], "mapped", [109, 103]], [[13199, 13199], "mapped", [107, 103]], [[13200, 13200], "mapped", [104, 122]], [[13201, 13201], "mapped", [107, 104, 122]], [[13202, 13202], "mapped", [109, 104, 122]], [[13203, 13203], "mapped", [103, 104, 122]], [[13204, 13204], "mapped", [116, 104, 122]], [[13205, 13205], "mapped", [956, 108]], [[13206, 13206], "mapped", [109, 108]], [[13207, 13207], "mapped", [100, 108]], [[13208, 13208], "mapped", [107, 108]], [[13209, 13209], "mapped", [102, 109]], [[13210, 13210], "mapped", [110, 109]], [[13211, 13211], "mapped", [956, 109]], [[13212, 13212], "mapped", [109, 109]], [[13213, 13213], "mapped", [99, 109]], [[13214, 13214], "mapped", [107, 109]], [[13215, 13215], "mapped", [109, 109, 50]], [[13216, 13216], "mapped", [99, 109, 50]], [[13217, 13217], "mapped", [109, 50]], [[13218, 13218], "mapped", [107, 109, 50]], [[13219, 13219], "mapped", [109, 109, 51]], [[13220, 13220], "mapped", [99, 109, 51]], [[13221, 13221], "mapped", [109, 51]], [[13222, 13222], "mapped", [107, 109, 51]], [[13223, 13223], "mapped", [109, 8725, 115]], [[13224, 13224], "mapped", [109, 8725, 115, 50]], [[13225, 13225], "mapped", [112, 97]], [[13226, 13226], "mapped", [107, 112, 97]], [[13227, 13227], "mapped", [109, 112, 97]], [[13228, 13228], "mapped", [103, 112, 97]], [[13229, 13229], "mapped", [114, 97, 100]], [[13230, 13230], "mapped", [114, 97, 100, 8725, 115]], [[13231, 13231], "mapped", [114, 97, 100, 8725, 115, 50]], [[13232, 13232], "mapped", [112, 115]], [[13233, 13233], "mapped", [110, 115]], [[13234, 13234], "mapped", [956, 115]], [[13235, 13235], "mapped", [109, 115]], [[13236, 13236], "mapped", [112, 118]], [[13237, 13237], "mapped", [110, 118]], [[13238, 13238], "mapped", [956, 118]], [[13239, 13239], "mapped", [109, 118]], [[13240, 13240], "mapped", [107, 118]], [[13241, 13241], "mapped", [109, 118]], [[13242, 13242], "mapped", [112, 119]], [[13243, 13243], "mapped", [110, 119]], [[13244, 13244], "mapped", [956, 119]], [[13245, 13245], "mapped", [109, 119]], [[13246, 13246], "mapped", [107, 119]], [[13247, 13247], "mapped", [109, 119]], [[13248, 13248], "mapped", [107, 969]], [[13249, 13249], "mapped", [109, 969]], [[13250, 13250], "disallowed"], [[13251, 13251], "mapped", [98, 113]], [[13252, 13252], "mapped", [99, 99]], [[13253, 13253], "mapped", [99, 100]], [[13254, 13254], "mapped", [99, 8725, 107, 103]], [[13255, 13255], "disallowed"], [[13256, 13256], "mapped", [100, 98]], [[13257, 13257], "mapped", [103, 121]], [[13258, 13258], "mapped", [104, 97]], [[13259, 13259], "mapped", [104, 112]], [[13260, 13260], "mapped", [105, 110]], [[13261, 13261], "mapped", [107, 107]], [[13262, 13262], "mapped", [107, 109]], [[13263, 13263], "mapped", [107, 116]], [[13264, 13264], "mapped", [108, 109]], [[13265, 13265], "mapped", [108, 110]], [[13266, 13266], "mapped", [108, 111, 103]], [[13267, 13267], "mapped", [108, 120]], [[13268, 13268], "mapped", [109, 98]], [[13269, 13269], "mapped", [109, 105, 108]], [[13270, 13270], "mapped", [109, 111, 108]], [[13271, 13271], "mapped", [112, 104]], [[13272, 13272], "disallowed"], [[13273, 13273], "mapped", [112, 112, 109]], [[13274, 13274], "mapped", [112, 114]], [[13275, 13275], "mapped", [115, 114]], [[13276, 13276], "mapped", [115, 118]], [[13277, 13277], "mapped", [119, 98]], [[13278, 13278], "mapped", [118, 8725, 109]], [[13279, 13279], "mapped", [97, 8725, 109]], [[13280, 13280], "mapped", [49, 26085]], [[13281, 13281], "mapped", [50, 26085]], [[13282, 13282], "mapped", [51, 26085]], [[13283, 13283], "mapped", [52, 26085]], [[13284, 13284], "mapped", [53, 26085]], [[13285, 13285], "mapped", [54, 26085]], [[13286, 13286], "mapped", [55, 26085]], [[13287, 13287], "mapped", [56, 26085]], [[13288, 13288], "mapped", [57, 26085]], [[13289, 13289], "mapped", [49, 48, 26085]], [[13290, 13290], "mapped", [49, 49, 26085]], [[13291, 13291], "mapped", [49, 50, 26085]], [[13292, 13292], "mapped", [49, 51, 26085]], [[13293, 13293], "mapped", [49, 52, 26085]], [[13294, 13294], "mapped", [49, 53, 26085]], [[13295, 13295], "mapped", [49, 54, 26085]], [[13296, 13296], "mapped", [49, 55, 26085]], [[13297, 13297], "mapped", [49, 56, 26085]], [[13298, 13298], "mapped", [49, 57, 26085]], [[13299, 13299], "mapped", [50, 48, 26085]], [[13300, 13300], "mapped", [50, 49, 26085]], [[13301, 13301], "mapped", [50, 50, 26085]], [[13302, 13302], "mapped", [50, 51, 26085]], [[13303, 13303], "mapped", [50, 52, 26085]], [[13304, 13304], "mapped", [50, 53, 26085]], [[13305, 13305], "mapped", [50, 54, 26085]], [[13306, 13306], "mapped", [50, 55, 26085]], [[13307, 13307], "mapped", [50, 56, 26085]], [[13308, 13308], "mapped", [50, 57, 26085]], [[13309, 13309], "mapped", [51, 48, 26085]], [[13310, 13310], "mapped", [51, 49, 26085]], [[13311, 13311], "mapped", [103, 97, 108]], [[13312, 19893], "valid"], [[19894, 19903], "disallowed"], [[19904, 19967], "valid", [], "NV8"], [[19968, 40869], "valid"], [[40870, 40891], "valid"], [[40892, 40899], "valid"], [[40900, 40907], "valid"], [[40908, 40908], "valid"], [[40909, 40917], "valid"], [[40918, 40959], "disallowed"], [[40960, 42124], "valid"], [[42125, 42127], "disallowed"], [[42128, 42145], "valid", [], "NV8"], [[42146, 42147], "valid", [], "NV8"], [[42148, 42163], "valid", [], "NV8"], [[42164, 42164], "valid", [], "NV8"], [[42165, 42176], "valid", [], "NV8"], [[42177, 42177], "valid", [], "NV8"], [[42178, 42180], "valid", [], "NV8"], [[42181, 42181], "valid", [], "NV8"], [[42182, 42182], "valid", [], "NV8"], [[42183, 42191], "disallowed"], [[42192, 42237], "valid"], [[42238, 42239], "valid", [], "NV8"], [[42240, 42508], "valid"], [[42509, 42511], "valid", [], "NV8"], [[42512, 42539], "valid"], [[42540, 42559], "disallowed"], [[42560, 42560], "mapped", [42561]], [[42561, 42561], "valid"], [[42562, 42562], "mapped", [42563]], [[42563, 42563], "valid"], [[42564, 42564], "mapped", [42565]], [[42565, 42565], "valid"], [[42566, 42566], "mapped", [42567]], [[42567, 42567], "valid"], [[42568, 42568], "mapped", [42569]], [[42569, 42569], "valid"], [[42570, 42570], "mapped", [42571]], [[42571, 42571], "valid"], [[42572, 42572], "mapped", [42573]], [[42573, 42573], "valid"], [[42574, 42574], "mapped", [42575]], [[42575, 42575], "valid"], [[42576, 42576], "mapped", [42577]], [[42577, 42577], "valid"], [[42578, 42578], "mapped", [42579]], [[42579, 42579], "valid"], [[42580, 42580], "mapped", [42581]], [[42581, 42581], "valid"], [[42582, 42582], "mapped", [42583]], [[42583, 42583], "valid"], [[42584, 42584], "mapped", [42585]], [[42585, 42585], "valid"], [[42586, 42586], "mapped", [42587]], [[42587, 42587], "valid"], [[42588, 42588], "mapped", [42589]], [[42589, 42589], "valid"], [[42590, 42590], "mapped", [42591]], [[42591, 42591], "valid"], [[42592, 42592], "mapped", [42593]], [[42593, 42593], "valid"], [[42594, 42594], "mapped", [42595]], [[42595, 42595], "valid"], [[42596, 42596], "mapped", [42597]], [[42597, 42597], "valid"], [[42598, 42598], "mapped", [42599]], [[42599, 42599], "valid"], [[42600, 42600], "mapped", [42601]], [[42601, 42601], "valid"], [[42602, 42602], "mapped", [42603]], [[42603, 42603], "valid"], [[42604, 42604], "mapped", [42605]], [[42605, 42607], "valid"], [[42608, 42611], "valid", [], "NV8"], [[42612, 42619], "valid"], [[42620, 42621], "valid"], [[42622, 42622], "valid", [], "NV8"], [[42623, 42623], "valid"], [[42624, 42624], "mapped", [42625]], [[42625, 42625], "valid"], [[42626, 42626], "mapped", [42627]], [[42627, 42627], "valid"], [[42628, 42628], "mapped", [42629]], [[42629, 42629], "valid"], [[42630, 42630], "mapped", [42631]], [[42631, 42631], "valid"], [[42632, 42632], "mapped", [42633]], [[42633, 42633], "valid"], [[42634, 42634], "mapped", [42635]], [[42635, 42635], "valid"], [[42636, 42636], "mapped", [42637]], [[42637, 42637], "valid"], [[42638, 42638], "mapped", [42639]], [[42639, 42639], "valid"], [[42640, 42640], "mapped", [42641]], [[42641, 42641], "valid"], [[42642, 42642], "mapped", [42643]], [[42643, 42643], "valid"], [[42644, 42644], "mapped", [42645]], [[42645, 42645], "valid"], [[42646, 42646], "mapped", [42647]], [[42647, 42647], "valid"], [[42648, 42648], "mapped", [42649]], [[42649, 42649], "valid"], [[42650, 42650], "mapped", [42651]], [[42651, 42651], "valid"], [[42652, 42652], "mapped", [1098]], [[42653, 42653], "mapped", [1100]], [[42654, 42654], "valid"], [[42655, 42655], "valid"], [[42656, 42725], "valid"], [[42726, 42735], "valid", [], "NV8"], [[42736, 42737], "valid"], [[42738, 42743], "valid", [], "NV8"], [[42744, 42751], "disallowed"], [[42752, 42774], "valid", [], "NV8"], [[42775, 42778], "valid"], [[42779, 42783], "valid"], [[42784, 42785], "valid", [], "NV8"], [[42786, 42786], "mapped", [42787]], [[42787, 42787], "valid"], [[42788, 42788], "mapped", [42789]], [[42789, 42789], "valid"], [[42790, 42790], "mapped", [42791]], [[42791, 42791], "valid"], [[42792, 42792], "mapped", [42793]], [[42793, 42793], "valid"], [[42794, 42794], "mapped", [42795]], [[42795, 42795], "valid"], [[42796, 42796], "mapped", [42797]], [[42797, 42797], "valid"], [[42798, 42798], "mapped", [42799]], [[42799, 42801], "valid"], [[42802, 42802], "mapped", [42803]], [[42803, 42803], "valid"], [[42804, 42804], "mapped", [42805]], [[42805, 42805], "valid"], [[42806, 42806], "mapped", [42807]], [[42807, 42807], "valid"], [[42808, 42808], "mapped", [42809]], [[42809, 42809], "valid"], [[42810, 42810], "mapped", [42811]], [[42811, 42811], "valid"], [[42812, 42812], "mapped", [42813]], [[42813, 42813], "valid"], [[42814, 42814], "mapped", [42815]], [[42815, 42815], "valid"], [[42816, 42816], "mapped", [42817]], [[42817, 42817], "valid"], [[42818, 42818], "mapped", [42819]], [[42819, 42819], "valid"], [[42820, 42820], "mapped", [42821]], [[42821, 42821], "valid"], [[42822, 42822], "mapped", [42823]], [[42823, 42823], "valid"], [[42824, 42824], "mapped", [42825]], [[42825, 42825], "valid"], [[42826, 42826], "mapped", [42827]], [[42827, 42827], "valid"], [[42828, 42828], "mapped", [42829]], [[42829, 42829], "valid"], [[42830, 42830], "mapped", [42831]], [[42831, 42831], "valid"], [[42832, 42832], "mapped", [42833]], [[42833, 42833], "valid"], [[42834, 42834], "mapped", [42835]], [[42835, 42835], "valid"], [[42836, 42836], "mapped", [42837]], [[42837, 42837], "valid"], [[42838, 42838], "mapped", [42839]], [[42839, 42839], "valid"], [[42840, 42840], "mapped", [42841]], [[42841, 42841], "valid"], [[42842, 42842], "mapped", [42843]], [[42843, 42843], "valid"], [[42844, 42844], "mapped", [42845]], [[42845, 42845], "valid"], [[42846, 42846], "mapped", [42847]], [[42847, 42847], "valid"], [[42848, 42848], "mapped", [42849]], [[42849, 42849], "valid"], [[42850, 42850], "mapped", [42851]], [[42851, 42851], "valid"], [[42852, 42852], "mapped", [42853]], [[42853, 42853], "valid"], [[42854, 42854], "mapped", [42855]], [[42855, 42855], "valid"], [[42856, 42856], "mapped", [42857]], [[42857, 42857], "valid"], [[42858, 42858], "mapped", [42859]], [[42859, 42859], "valid"], [[42860, 42860], "mapped", [42861]], [[42861, 42861], "valid"], [[42862, 42862], "mapped", [42863]], [[42863, 42863], "valid"], [[42864, 42864], "mapped", [42863]], [[42865, 42872], "valid"], [[42873, 42873], "mapped", [42874]], [[42874, 42874], "valid"], [[42875, 42875], "mapped", [42876]], [[42876, 42876], "valid"], [[42877, 42877], "mapped", [7545]], [[42878, 42878], "mapped", [42879]], [[42879, 42879], "valid"], [[42880, 42880], "mapped", [42881]], [[42881, 42881], "valid"], [[42882, 42882], "mapped", [42883]], [[42883, 42883], "valid"], [[42884, 42884], "mapped", [42885]], [[42885, 42885], "valid"], [[42886, 42886], "mapped", [42887]], [[42887, 42888], "valid"], [[42889, 42890], "valid", [], "NV8"], [[42891, 42891], "mapped", [42892]], [[42892, 42892], "valid"], [[42893, 42893], "mapped", [613]], [[42894, 42894], "valid"], [[42895, 42895], "valid"], [[42896, 42896], "mapped", [42897]], [[42897, 42897], "valid"], [[42898, 42898], "mapped", [42899]], [[42899, 42899], "valid"], [[42900, 42901], "valid"], [[42902, 42902], "mapped", [42903]], [[42903, 42903], "valid"], [[42904, 42904], "mapped", [42905]], [[42905, 42905], "valid"], [[42906, 42906], "mapped", [42907]], [[42907, 42907], "valid"], [[42908, 42908], "mapped", [42909]], [[42909, 42909], "valid"], [[42910, 42910], "mapped", [42911]], [[42911, 42911], "valid"], [[42912, 42912], "mapped", [42913]], [[42913, 42913], "valid"], [[42914, 42914], "mapped", [42915]], [[42915, 42915], "valid"], [[42916, 42916], "mapped", [42917]], [[42917, 42917], "valid"], [[42918, 42918], "mapped", [42919]], [[42919, 42919], "valid"], [[42920, 42920], "mapped", [42921]], [[42921, 42921], "valid"], [[42922, 42922], "mapped", [614]], [[42923, 42923], "mapped", [604]], [[42924, 42924], "mapped", [609]], [[42925, 42925], "mapped", [620]], [[42926, 42927], "disallowed"], [[42928, 42928], "mapped", [670]], [[42929, 42929], "mapped", [647]], [[42930, 42930], "mapped", [669]], [[42931, 42931], "mapped", [43859]], [[42932, 42932], "mapped", [42933]], [[42933, 42933], "valid"], [[42934, 42934], "mapped", [42935]], [[42935, 42935], "valid"], [[42936, 42998], "disallowed"], [[42999, 42999], "valid"], [[43e3, 43e3], "mapped", [295]], [[43001, 43001], "mapped", [339]], [[43002, 43002], "valid"], [[43003, 43007], "valid"], [[43008, 43047], "valid"], [[43048, 43051], "valid", [], "NV8"], [[43052, 43055], "disallowed"], [[43056, 43065], "valid", [], "NV8"], [[43066, 43071], "disallowed"], [[43072, 43123], "valid"], [[43124, 43127], "valid", [], "NV8"], [[43128, 43135], "disallowed"], [[43136, 43204], "valid"], [[43205, 43213], "disallowed"], [[43214, 43215], "valid", [], "NV8"], [[43216, 43225], "valid"], [[43226, 43231], "disallowed"], [[43232, 43255], "valid"], [[43256, 43258], "valid", [], "NV8"], [[43259, 43259], "valid"], [[43260, 43260], "valid", [], "NV8"], [[43261, 43261], "valid"], [[43262, 43263], "disallowed"], [[43264, 43309], "valid"], [[43310, 43311], "valid", [], "NV8"], [[43312, 43347], "valid"], [[43348, 43358], "disallowed"], [[43359, 43359], "valid", [], "NV8"], [[43360, 43388], "valid", [], "NV8"], [[43389, 43391], "disallowed"], [[43392, 43456], "valid"], [[43457, 43469], "valid", [], "NV8"], [[43470, 43470], "disallowed"], [[43471, 43481], "valid"], [[43482, 43485], "disallowed"], [[43486, 43487], "valid", [], "NV8"], [[43488, 43518], "valid"], [[43519, 43519], "disallowed"], [[43520, 43574], "valid"], [[43575, 43583], "disallowed"], [[43584, 43597], "valid"], [[43598, 43599], "disallowed"], [[43600, 43609], "valid"], [[43610, 43611], "disallowed"], [[43612, 43615], "valid", [], "NV8"], [[43616, 43638], "valid"], [[43639, 43641], "valid", [], "NV8"], [[43642, 43643], "valid"], [[43644, 43647], "valid"], [[43648, 43714], "valid"], [[43715, 43738], "disallowed"], [[43739, 43741], "valid"], [[43742, 43743], "valid", [], "NV8"], [[43744, 43759], "valid"], [[43760, 43761], "valid", [], "NV8"], [[43762, 43766], "valid"], [[43767, 43776], "disallowed"], [[43777, 43782], "valid"], [[43783, 43784], "disallowed"], [[43785, 43790], "valid"], [[43791, 43792], "disallowed"], [[43793, 43798], "valid"], [[43799, 43807], "disallowed"], [[43808, 43814], "valid"], [[43815, 43815], "disallowed"], [[43816, 43822], "valid"], [[43823, 43823], "disallowed"], [[43824, 43866], "valid"], [[43867, 43867], "valid", [], "NV8"], [[43868, 43868], "mapped", [42791]], [[43869, 43869], "mapped", [43831]], [[43870, 43870], "mapped", [619]], [[43871, 43871], "mapped", [43858]], [[43872, 43875], "valid"], [[43876, 43877], "valid"], [[43878, 43887], "disallowed"], [[43888, 43888], "mapped", [5024]], [[43889, 43889], "mapped", [5025]], [[43890, 43890], "mapped", [5026]], [[43891, 43891], "mapped", [5027]], [[43892, 43892], "mapped", [5028]], [[43893, 43893], "mapped", [5029]], [[43894, 43894], "mapped", [5030]], [[43895, 43895], "mapped", [5031]], [[43896, 43896], "mapped", [5032]], [[43897, 43897], "mapped", [5033]], [[43898, 43898], "mapped", [5034]], [[43899, 43899], "mapped", [5035]], [[43900, 43900], "mapped", [5036]], [[43901, 43901], "mapped", [5037]], [[43902, 43902], "mapped", [5038]], [[43903, 43903], "mapped", [5039]], [[43904, 43904], "mapped", [5040]], [[43905, 43905], "mapped", [5041]], [[43906, 43906], "mapped", [5042]], [[43907, 43907], "mapped", [5043]], [[43908, 43908], "mapped", [5044]], [[43909, 43909], "mapped", [5045]], [[43910, 43910], "mapped", [5046]], [[43911, 43911], "mapped", [5047]], [[43912, 43912], "mapped", [5048]], [[43913, 43913], "mapped", [5049]], [[43914, 43914], "mapped", [5050]], [[43915, 43915], "mapped", [5051]], [[43916, 43916], "mapped", [5052]], [[43917, 43917], "mapped", [5053]], [[43918, 43918], "mapped", [5054]], [[43919, 43919], "mapped", [5055]], [[43920, 43920], "mapped", [5056]], [[43921, 43921], "mapped", [5057]], [[43922, 43922], "mapped", [5058]], [[43923, 43923], "mapped", [5059]], [[43924, 43924], "mapped", [5060]], [[43925, 43925], "mapped", [5061]], [[43926, 43926], "mapped", [5062]], [[43927, 43927], "mapped", [5063]], [[43928, 43928], "mapped", [5064]], [[43929, 43929], "mapped", [5065]], [[43930, 43930], "mapped", [5066]], [[43931, 43931], "mapped", [5067]], [[43932, 43932], "mapped", [5068]], [[43933, 43933], "mapped", [5069]], [[43934, 43934], "mapped", [5070]], [[43935, 43935], "mapped", [5071]], [[43936, 43936], "mapped", [5072]], [[43937, 43937], "mapped", [5073]], [[43938, 43938], "mapped", [5074]], [[43939, 43939], "mapped", [5075]], [[43940, 43940], "mapped", [5076]], [[43941, 43941], "mapped", [5077]], [[43942, 43942], "mapped", [5078]], [[43943, 43943], "mapped", [5079]], [[43944, 43944], "mapped", [5080]], [[43945, 43945], "mapped", [5081]], [[43946, 43946], "mapped", [5082]], [[43947, 43947], "mapped", [5083]], [[43948, 43948], "mapped", [5084]], [[43949, 43949], "mapped", [5085]], [[43950, 43950], "mapped", [5086]], [[43951, 43951], "mapped", [5087]], [[43952, 43952], "mapped", [5088]], [[43953, 43953], "mapped", [5089]], [[43954, 43954], "mapped", [5090]], [[43955, 43955], "mapped", [5091]], [[43956, 43956], "mapped", [5092]], [[43957, 43957], "mapped", [5093]], [[43958, 43958], "mapped", [5094]], [[43959, 43959], "mapped", [5095]], [[43960, 43960], "mapped", [5096]], [[43961, 43961], "mapped", [5097]], [[43962, 43962], "mapped", [5098]], [[43963, 43963], "mapped", [5099]], [[43964, 43964], "mapped", [5100]], [[43965, 43965], "mapped", [5101]], [[43966, 43966], "mapped", [5102]], [[43967, 43967], "mapped", [5103]], [[43968, 44010], "valid"], [[44011, 44011], "valid", [], "NV8"], [[44012, 44013], "valid"], [[44014, 44015], "disallowed"], [[44016, 44025], "valid"], [[44026, 44031], "disallowed"], [[44032, 55203], "valid"], [[55204, 55215], "disallowed"], [[55216, 55238], "valid", [], "NV8"], [[55239, 55242], "disallowed"], [[55243, 55291], "valid", [], "NV8"], [[55292, 55295], "disallowed"], [[55296, 57343], "disallowed"], [[57344, 63743], "disallowed"], [[63744, 63744], "mapped", [35912]], [[63745, 63745], "mapped", [26356]], [[63746, 63746], "mapped", [36554]], [[63747, 63747], "mapped", [36040]], [[63748, 63748], "mapped", [28369]], [[63749, 63749], "mapped", [20018]], [[63750, 63750], "mapped", [21477]], [[63751, 63752], "mapped", [40860]], [[63753, 63753], "mapped", [22865]], [[63754, 63754], "mapped", [37329]], [[63755, 63755], "mapped", [21895]], [[63756, 63756], "mapped", [22856]], [[63757, 63757], "mapped", [25078]], [[63758, 63758], "mapped", [30313]], [[63759, 63759], "mapped", [32645]], [[63760, 63760], "mapped", [34367]], [[63761, 63761], "mapped", [34746]], [[63762, 63762], "mapped", [35064]], [[63763, 63763], "mapped", [37007]], [[63764, 63764], "mapped", [27138]], [[63765, 63765], "mapped", [27931]], [[63766, 63766], "mapped", [28889]], [[63767, 63767], "mapped", [29662]], [[63768, 63768], "mapped", [33853]], [[63769, 63769], "mapped", [37226]], [[63770, 63770], "mapped", [39409]], [[63771, 63771], "mapped", [20098]], [[63772, 63772], "mapped", [21365]], [[63773, 63773], "mapped", [27396]], [[63774, 63774], "mapped", [29211]], [[63775, 63775], "mapped", [34349]], [[63776, 63776], "mapped", [40478]], [[63777, 63777], "mapped", [23888]], [[63778, 63778], "mapped", [28651]], [[63779, 63779], "mapped", [34253]], [[63780, 63780], "mapped", [35172]], [[63781, 63781], "mapped", [25289]], [[63782, 63782], "mapped", [33240]], [[63783, 63783], "mapped", [34847]], [[63784, 63784], "mapped", [24266]], [[63785, 63785], "mapped", [26391]], [[63786, 63786], "mapped", [28010]], [[63787, 63787], "mapped", [29436]], [[63788, 63788], "mapped", [37070]], [[63789, 63789], "mapped", [20358]], [[63790, 63790], "mapped", [20919]], [[63791, 63791], "mapped", [21214]], [[63792, 63792], "mapped", [25796]], [[63793, 63793], "mapped", [27347]], [[63794, 63794], "mapped", [29200]], [[63795, 63795], "mapped", [30439]], [[63796, 63796], "mapped", [32769]], [[63797, 63797], "mapped", [34310]], [[63798, 63798], "mapped", [34396]], [[63799, 63799], "mapped", [36335]], [[63800, 63800], "mapped", [38706]], [[63801, 63801], "mapped", [39791]], [[63802, 63802], "mapped", [40442]], [[63803, 63803], "mapped", [30860]], [[63804, 63804], "mapped", [31103]], [[63805, 63805], "mapped", [32160]], [[63806, 63806], "mapped", [33737]], [[63807, 63807], "mapped", [37636]], [[63808, 63808], "mapped", [40575]], [[63809, 63809], "mapped", [35542]], [[63810, 63810], "mapped", [22751]], [[63811, 63811], "mapped", [24324]], [[63812, 63812], "mapped", [31840]], [[63813, 63813], "mapped", [32894]], [[63814, 63814], "mapped", [29282]], [[63815, 63815], "mapped", [30922]], [[63816, 63816], "mapped", [36034]], [[63817, 63817], "mapped", [38647]], [[63818, 63818], "mapped", [22744]], [[63819, 63819], "mapped", [23650]], [[63820, 63820], "mapped", [27155]], [[63821, 63821], "mapped", [28122]], [[63822, 63822], "mapped", [28431]], [[63823, 63823], "mapped", [32047]], [[63824, 63824], "mapped", [32311]], [[63825, 63825], "mapped", [38475]], [[63826, 63826], "mapped", [21202]], [[63827, 63827], "mapped", [32907]], [[63828, 63828], "mapped", [20956]], [[63829, 63829], "mapped", [20940]], [[63830, 63830], "mapped", [31260]], [[63831, 63831], "mapped", [32190]], [[63832, 63832], "mapped", [33777]], [[63833, 63833], "mapped", [38517]], [[63834, 63834], "mapped", [35712]], [[63835, 63835], "mapped", [25295]], [[63836, 63836], "mapped", [27138]], [[63837, 63837], "mapped", [35582]], [[63838, 63838], "mapped", [20025]], [[63839, 63839], "mapped", [23527]], [[63840, 63840], "mapped", [24594]], [[63841, 63841], "mapped", [29575]], [[63842, 63842], "mapped", [30064]], [[63843, 63843], "mapped", [21271]], [[63844, 63844], "mapped", [30971]], [[63845, 63845], "mapped", [20415]], [[63846, 63846], "mapped", [24489]], [[63847, 63847], "mapped", [19981]], [[63848, 63848], "mapped", [27852]], [[63849, 63849], "mapped", [25976]], [[63850, 63850], "mapped", [32034]], [[63851, 63851], "mapped", [21443]], [[63852, 63852], "mapped", [22622]], [[63853, 63853], "mapped", [30465]], [[63854, 63854], "mapped", [33865]], [[63855, 63855], "mapped", [35498]], [[63856, 63856], "mapped", [27578]], [[63857, 63857], "mapped", [36784]], [[63858, 63858], "mapped", [27784]], [[63859, 63859], "mapped", [25342]], [[63860, 63860], "mapped", [33509]], [[63861, 63861], "mapped", [25504]], [[63862, 63862], "mapped", [30053]], [[63863, 63863], "mapped", [20142]], [[63864, 63864], "mapped", [20841]], [[63865, 63865], "mapped", [20937]], [[63866, 63866], "mapped", [26753]], [[63867, 63867], "mapped", [31975]], [[63868, 63868], "mapped", [33391]], [[63869, 63869], "mapped", [35538]], [[63870, 63870], "mapped", [37327]], [[63871, 63871], "mapped", [21237]], [[63872, 63872], "mapped", [21570]], [[63873, 63873], "mapped", [22899]], [[63874, 63874], "mapped", [24300]], [[63875, 63875], "mapped", [26053]], [[63876, 63876], "mapped", [28670]], [[63877, 63877], "mapped", [31018]], [[63878, 63878], "mapped", [38317]], [[63879, 63879], "mapped", [39530]], [[63880, 63880], "mapped", [40599]], [[63881, 63881], "mapped", [40654]], [[63882, 63882], "mapped", [21147]], [[63883, 63883], "mapped", [26310]], [[63884, 63884], "mapped", [27511]], [[63885, 63885], "mapped", [36706]], [[63886, 63886], "mapped", [24180]], [[63887, 63887], "mapped", [24976]], [[63888, 63888], "mapped", [25088]], [[63889, 63889], "mapped", [25754]], [[63890, 63890], "mapped", [28451]], [[63891, 63891], "mapped", [29001]], [[63892, 63892], "mapped", [29833]], [[63893, 63893], "mapped", [31178]], [[63894, 63894], "mapped", [32244]], [[63895, 63895], "mapped", [32879]], [[63896, 63896], "mapped", [36646]], [[63897, 63897], "mapped", [34030]], [[63898, 63898], "mapped", [36899]], [[63899, 63899], "mapped", [37706]], [[63900, 63900], "mapped", [21015]], [[63901, 63901], "mapped", [21155]], [[63902, 63902], "mapped", [21693]], [[63903, 63903], "mapped", [28872]], [[63904, 63904], "mapped", [35010]], [[63905, 63905], "mapped", [35498]], [[63906, 63906], "mapped", [24265]], [[63907, 63907], "mapped", [24565]], [[63908, 63908], "mapped", [25467]], [[63909, 63909], "mapped", [27566]], [[63910, 63910], "mapped", [31806]], [[63911, 63911], "mapped", [29557]], [[63912, 63912], "mapped", [20196]], [[63913, 63913], "mapped", [22265]], [[63914, 63914], "mapped", [23527]], [[63915, 63915], "mapped", [23994]], [[63916, 63916], "mapped", [24604]], [[63917, 63917], "mapped", [29618]], [[63918, 63918], "mapped", [29801]], [[63919, 63919], "mapped", [32666]], [[63920, 63920], "mapped", [32838]], [[63921, 63921], "mapped", [37428]], [[63922, 63922], "mapped", [38646]], [[63923, 63923], "mapped", [38728]], [[63924, 63924], "mapped", [38936]], [[63925, 63925], "mapped", [20363]], [[63926, 63926], "mapped", [31150]], [[63927, 63927], "mapped", [37300]], [[63928, 63928], "mapped", [38584]], [[63929, 63929], "mapped", [24801]], [[63930, 63930], "mapped", [20102]], [[63931, 63931], "mapped", [20698]], [[63932, 63932], "mapped", [23534]], [[63933, 63933], "mapped", [23615]], [[63934, 63934], "mapped", [26009]], [[63935, 63935], "mapped", [27138]], [[63936, 63936], "mapped", [29134]], [[63937, 63937], "mapped", [30274]], [[63938, 63938], "mapped", [34044]], [[63939, 63939], "mapped", [36988]], [[63940, 63940], "mapped", [40845]], [[63941, 63941], "mapped", [26248]], [[63942, 63942], "mapped", [38446]], [[63943, 63943], "mapped", [21129]], [[63944, 63944], "mapped", [26491]], [[63945, 63945], "mapped", [26611]], [[63946, 63946], "mapped", [27969]], [[63947, 63947], "mapped", [28316]], [[63948, 63948], "mapped", [29705]], [[63949, 63949], "mapped", [30041]], [[63950, 63950], "mapped", [30827]], [[63951, 63951], "mapped", [32016]], [[63952, 63952], "mapped", [39006]], [[63953, 63953], "mapped", [20845]], [[63954, 63954], "mapped", [25134]], [[63955, 63955], "mapped", [38520]], [[63956, 63956], "mapped", [20523]], [[63957, 63957], "mapped", [23833]], [[63958, 63958], "mapped", [28138]], [[63959, 63959], "mapped", [36650]], [[63960, 63960], "mapped", [24459]], [[63961, 63961], "mapped", [24900]], [[63962, 63962], "mapped", [26647]], [[63963, 63963], "mapped", [29575]], [[63964, 63964], "mapped", [38534]], [[63965, 63965], "mapped", [21033]], [[63966, 63966], "mapped", [21519]], [[63967, 63967], "mapped", [23653]], [[63968, 63968], "mapped", [26131]], [[63969, 63969], "mapped", [26446]], [[63970, 63970], "mapped", [26792]], [[63971, 63971], "mapped", [27877]], [[63972, 63972], "mapped", [29702]], [[63973, 63973], "mapped", [30178]], [[63974, 63974], "mapped", [32633]], [[63975, 63975], "mapped", [35023]], [[63976, 63976], "mapped", [35041]], [[63977, 63977], "mapped", [37324]], [[63978, 63978], "mapped", [38626]], [[63979, 63979], "mapped", [21311]], [[63980, 63980], "mapped", [28346]], [[63981, 63981], "mapped", [21533]], [[63982, 63982], "mapped", [29136]], [[63983, 63983], "mapped", [29848]], [[63984, 63984], "mapped", [34298]], [[63985, 63985], "mapped", [38563]], [[63986, 63986], "mapped", [40023]], [[63987, 63987], "mapped", [40607]], [[63988, 63988], "mapped", [26519]], [[63989, 63989], "mapped", [28107]], [[63990, 63990], "mapped", [33256]], [[63991, 63991], "mapped", [31435]], [[63992, 63992], "mapped", [31520]], [[63993, 63993], "mapped", [31890]], [[63994, 63994], "mapped", [29376]], [[63995, 63995], "mapped", [28825]], [[63996, 63996], "mapped", [35672]], [[63997, 63997], "mapped", [20160]], [[63998, 63998], "mapped", [33590]], [[63999, 63999], "mapped", [21050]], [[64e3, 64e3], "mapped", [20999]], [[64001, 64001], "mapped", [24230]], [[64002, 64002], "mapped", [25299]], [[64003, 64003], "mapped", [31958]], [[64004, 64004], "mapped", [23429]], [[64005, 64005], "mapped", [27934]], [[64006, 64006], "mapped", [26292]], [[64007, 64007], "mapped", [36667]], [[64008, 64008], "mapped", [34892]], [[64009, 64009], "mapped", [38477]], [[64010, 64010], "mapped", [35211]], [[64011, 64011], "mapped", [24275]], [[64012, 64012], "mapped", [20800]], [[64013, 64013], "mapped", [21952]], [[64014, 64015], "valid"], [[64016, 64016], "mapped", [22618]], [[64017, 64017], "valid"], [[64018, 64018], "mapped", [26228]], [[64019, 64020], "valid"], [[64021, 64021], "mapped", [20958]], [[64022, 64022], "mapped", [29482]], [[64023, 64023], "mapped", [30410]], [[64024, 64024], "mapped", [31036]], [[64025, 64025], "mapped", [31070]], [[64026, 64026], "mapped", [31077]], [[64027, 64027], "mapped", [31119]], [[64028, 64028], "mapped", [38742]], [[64029, 64029], "mapped", [31934]], [[64030, 64030], "mapped", [32701]], [[64031, 64031], "valid"], [[64032, 64032], "mapped", [34322]], [[64033, 64033], "valid"], [[64034, 64034], "mapped", [35576]], [[64035, 64036], "valid"], [[64037, 64037], "mapped", [36920]], [[64038, 64038], "mapped", [37117]], [[64039, 64041], "valid"], [[64042, 64042], "mapped", [39151]], [[64043, 64043], "mapped", [39164]], [[64044, 64044], "mapped", [39208]], [[64045, 64045], "mapped", [40372]], [[64046, 64046], "mapped", [37086]], [[64047, 64047], "mapped", [38583]], [[64048, 64048], "mapped", [20398]], [[64049, 64049], "mapped", [20711]], [[64050, 64050], "mapped", [20813]], [[64051, 64051], "mapped", [21193]], [[64052, 64052], "mapped", [21220]], [[64053, 64053], "mapped", [21329]], [[64054, 64054], "mapped", [21917]], [[64055, 64055], "mapped", [22022]], [[64056, 64056], "mapped", [22120]], [[64057, 64057], "mapped", [22592]], [[64058, 64058], "mapped", [22696]], [[64059, 64059], "mapped", [23652]], [[64060, 64060], "mapped", [23662]], [[64061, 64061], "mapped", [24724]], [[64062, 64062], "mapped", [24936]], [[64063, 64063], "mapped", [24974]], [[64064, 64064], "mapped", [25074]], [[64065, 64065], "mapped", [25935]], [[64066, 64066], "mapped", [26082]], [[64067, 64067], "mapped", [26257]], [[64068, 64068], "mapped", [26757]], [[64069, 64069], "mapped", [28023]], [[64070, 64070], "mapped", [28186]], [[64071, 64071], "mapped", [28450]], [[64072, 64072], "mapped", [29038]], [[64073, 64073], "mapped", [29227]], [[64074, 64074], "mapped", [29730]], [[64075, 64075], "mapped", [30865]], [[64076, 64076], "mapped", [31038]], [[64077, 64077], "mapped", [31049]], [[64078, 64078], "mapped", [31048]], [[64079, 64079], "mapped", [31056]], [[64080, 64080], "mapped", [31062]], [[64081, 64081], "mapped", [31069]], [[64082, 64082], "mapped", [31117]], [[64083, 64083], "mapped", [31118]], [[64084, 64084], "mapped", [31296]], [[64085, 64085], "mapped", [31361]], [[64086, 64086], "mapped", [31680]], [[64087, 64087], "mapped", [32244]], [[64088, 64088], "mapped", [32265]], [[64089, 64089], "mapped", [32321]], [[64090, 64090], "mapped", [32626]], [[64091, 64091], "mapped", [32773]], [[64092, 64092], "mapped", [33261]], [[64093, 64094], "mapped", [33401]], [[64095, 64095], "mapped", [33879]], [[64096, 64096], "mapped", [35088]], [[64097, 64097], "mapped", [35222]], [[64098, 64098], "mapped", [35585]], [[64099, 64099], "mapped", [35641]], [[64100, 64100], "mapped", [36051]], [[64101, 64101], "mapped", [36104]], [[64102, 64102], "mapped", [36790]], [[64103, 64103], "mapped", [36920]], [[64104, 64104], "mapped", [38627]], [[64105, 64105], "mapped", [38911]], [[64106, 64106], "mapped", [38971]], [[64107, 64107], "mapped", [24693]], [[64108, 64108], "mapped", [148206]], [[64109, 64109], "mapped", [33304]], [[64110, 64111], "disallowed"], [[64112, 64112], "mapped", [20006]], [[64113, 64113], "mapped", [20917]], [[64114, 64114], "mapped", [20840]], [[64115, 64115], "mapped", [20352]], [[64116, 64116], "mapped", [20805]], [[64117, 64117], "mapped", [20864]], [[64118, 64118], "mapped", [21191]], [[64119, 64119], "mapped", [21242]], [[64120, 64120], "mapped", [21917]], [[64121, 64121], "mapped", [21845]], [[64122, 64122], "mapped", [21913]], [[64123, 64123], "mapped", [21986]], [[64124, 64124], "mapped", [22618]], [[64125, 64125], "mapped", [22707]], [[64126, 64126], "mapped", [22852]], [[64127, 64127], "mapped", [22868]], [[64128, 64128], "mapped", [23138]], [[64129, 64129], "mapped", [23336]], [[64130, 64130], "mapped", [24274]], [[64131, 64131], "mapped", [24281]], [[64132, 64132], "mapped", [24425]], [[64133, 64133], "mapped", [24493]], [[64134, 64134], "mapped", [24792]], [[64135, 64135], "mapped", [24910]], [[64136, 64136], "mapped", [24840]], [[64137, 64137], "mapped", [24974]], [[64138, 64138], "mapped", [24928]], [[64139, 64139], "mapped", [25074]], [[64140, 64140], "mapped", [25140]], [[64141, 64141], "mapped", [25540]], [[64142, 64142], "mapped", [25628]], [[64143, 64143], "mapped", [25682]], [[64144, 64144], "mapped", [25942]], [[64145, 64145], "mapped", [26228]], [[64146, 64146], "mapped", [26391]], [[64147, 64147], "mapped", [26395]], [[64148, 64148], "mapped", [26454]], [[64149, 64149], "mapped", [27513]], [[64150, 64150], "mapped", [27578]], [[64151, 64151], "mapped", [27969]], [[64152, 64152], "mapped", [28379]], [[64153, 64153], "mapped", [28363]], [[64154, 64154], "mapped", [28450]], [[64155, 64155], "mapped", [28702]], [[64156, 64156], "mapped", [29038]], [[64157, 64157], "mapped", [30631]], [[64158, 64158], "mapped", [29237]], [[64159, 64159], "mapped", [29359]], [[64160, 64160], "mapped", [29482]], [[64161, 64161], "mapped", [29809]], [[64162, 64162], "mapped", [29958]], [[64163, 64163], "mapped", [30011]], [[64164, 64164], "mapped", [30237]], [[64165, 64165], "mapped", [30239]], [[64166, 64166], "mapped", [30410]], [[64167, 64167], "mapped", [30427]], [[64168, 64168], "mapped", [30452]], [[64169, 64169], "mapped", [30538]], [[64170, 64170], "mapped", [30528]], [[64171, 64171], "mapped", [30924]], [[64172, 64172], "mapped", [31409]], [[64173, 64173], "mapped", [31680]], [[64174, 64174], "mapped", [31867]], [[64175, 64175], "mapped", [32091]], [[64176, 64176], "mapped", [32244]], [[64177, 64177], "mapped", [32574]], [[64178, 64178], "mapped", [32773]], [[64179, 64179], "mapped", [33618]], [[64180, 64180], "mapped", [33775]], [[64181, 64181], "mapped", [34681]], [[64182, 64182], "mapped", [35137]], [[64183, 64183], "mapped", [35206]], [[64184, 64184], "mapped", [35222]], [[64185, 64185], "mapped", [35519]], [[64186, 64186], "mapped", [35576]], [[64187, 64187], "mapped", [35531]], [[64188, 64188], "mapped", [35585]], [[64189, 64189], "mapped", [35582]], [[64190, 64190], "mapped", [35565]], [[64191, 64191], "mapped", [35641]], [[64192, 64192], "mapped", [35722]], [[64193, 64193], "mapped", [36104]], [[64194, 64194], "mapped", [36664]], [[64195, 64195], "mapped", [36978]], [[64196, 64196], "mapped", [37273]], [[64197, 64197], "mapped", [37494]], [[64198, 64198], "mapped", [38524]], [[64199, 64199], "mapped", [38627]], [[64200, 64200], "mapped", [38742]], [[64201, 64201], "mapped", [38875]], [[64202, 64202], "mapped", [38911]], [[64203, 64203], "mapped", [38923]], [[64204, 64204], "mapped", [38971]], [[64205, 64205], "mapped", [39698]], [[64206, 64206], "mapped", [40860]], [[64207, 64207], "mapped", [141386]], [[64208, 64208], "mapped", [141380]], [[64209, 64209], "mapped", [144341]], [[64210, 64210], "mapped", [15261]], [[64211, 64211], "mapped", [16408]], [[64212, 64212], "mapped", [16441]], [[64213, 64213], "mapped", [152137]], [[64214, 64214], "mapped", [154832]], [[64215, 64215], "mapped", [163539]], [[64216, 64216], "mapped", [40771]], [[64217, 64217], "mapped", [40846]], [[64218, 64255], "disallowed"], [[64256, 64256], "mapped", [102, 102]], [[64257, 64257], "mapped", [102, 105]], [[64258, 64258], "mapped", [102, 108]], [[64259, 64259], "mapped", [102, 102, 105]], [[64260, 64260], "mapped", [102, 102, 108]], [[64261, 64262], "mapped", [115, 116]], [[64263, 64274], "disallowed"], [[64275, 64275], "mapped", [1396, 1398]], [[64276, 64276], "mapped", [1396, 1381]], [[64277, 64277], "mapped", [1396, 1387]], [[64278, 64278], "mapped", [1406, 1398]], [[64279, 64279], "mapped", [1396, 1389]], [[64280, 64284], "disallowed"], [[64285, 64285], "mapped", [1497, 1460]], [[64286, 64286], "valid"], [[64287, 64287], "mapped", [1522, 1463]], [[64288, 64288], "mapped", [1506]], [[64289, 64289], "mapped", [1488]], [[64290, 64290], "mapped", [1491]], [[64291, 64291], "mapped", [1492]], [[64292, 64292], "mapped", [1499]], [[64293, 64293], "mapped", [1500]], [[64294, 64294], "mapped", [1501]], [[64295, 64295], "mapped", [1512]], [[64296, 64296], "mapped", [1514]], [[64297, 64297], "disallowed_STD3_mapped", [43]], [[64298, 64298], "mapped", [1513, 1473]], [[64299, 64299], "mapped", [1513, 1474]], [[64300, 64300], "mapped", [1513, 1468, 1473]], [[64301, 64301], "mapped", [1513, 1468, 1474]], [[64302, 64302], "mapped", [1488, 1463]], [[64303, 64303], "mapped", [1488, 1464]], [[64304, 64304], "mapped", [1488, 1468]], [[64305, 64305], "mapped", [1489, 1468]], [[64306, 64306], "mapped", [1490, 1468]], [[64307, 64307], "mapped", [1491, 1468]], [[64308, 64308], "mapped", [1492, 1468]], [[64309, 64309], "mapped", [1493, 1468]], [[64310, 64310], "mapped", [1494, 1468]], [[64311, 64311], "disallowed"], [[64312, 64312], "mapped", [1496, 1468]], [[64313, 64313], "mapped", [1497, 1468]], [[64314, 64314], "mapped", [1498, 1468]], [[64315, 64315], "mapped", [1499, 1468]], [[64316, 64316], "mapped", [1500, 1468]], [[64317, 64317], "disallowed"], [[64318, 64318], "mapped", [1502, 1468]], [[64319, 64319], "disallowed"], [[64320, 64320], "mapped", [1504, 1468]], [[64321, 64321], "mapped", [1505, 1468]], [[64322, 64322], "disallowed"], [[64323, 64323], "mapped", [1507, 1468]], [[64324, 64324], "mapped", [1508, 1468]], [[64325, 64325], "disallowed"], [[64326, 64326], "mapped", [1510, 1468]], [[64327, 64327], "mapped", [1511, 1468]], [[64328, 64328], "mapped", [1512, 1468]], [[64329, 64329], "mapped", [1513, 1468]], [[64330, 64330], "mapped", [1514, 1468]], [[64331, 64331], "mapped", [1493, 1465]], [[64332, 64332], "mapped", [1489, 1471]], [[64333, 64333], "mapped", [1499, 1471]], [[64334, 64334], "mapped", [1508, 1471]], [[64335, 64335], "mapped", [1488, 1500]], [[64336, 64337], "mapped", [1649]], [[64338, 64341], "mapped", [1659]], [[64342, 64345], "mapped", [1662]], [[64346, 64349], "mapped", [1664]], [[64350, 64353], "mapped", [1658]], [[64354, 64357], "mapped", [1663]], [[64358, 64361], "mapped", [1657]], [[64362, 64365], "mapped", [1700]], [[64366, 64369], "mapped", [1702]], [[64370, 64373], "mapped", [1668]], [[64374, 64377], "mapped", [1667]], [[64378, 64381], "mapped", [1670]], [[64382, 64385], "mapped", [1671]], [[64386, 64387], "mapped", [1677]], [[64388, 64389], "mapped", [1676]], [[64390, 64391], "mapped", [1678]], [[64392, 64393], "mapped", [1672]], [[64394, 64395], "mapped", [1688]], [[64396, 64397], "mapped", [1681]], [[64398, 64401], "mapped", [1705]], [[64402, 64405], "mapped", [1711]], [[64406, 64409], "mapped", [1715]], [[64410, 64413], "mapped", [1713]], [[64414, 64415], "mapped", [1722]], [[64416, 64419], "mapped", [1723]], [[64420, 64421], "mapped", [1728]], [[64422, 64425], "mapped", [1729]], [[64426, 64429], "mapped", [1726]], [[64430, 64431], "mapped", [1746]], [[64432, 64433], "mapped", [1747]], [[64434, 64449], "valid", [], "NV8"], [[64450, 64466], "disallowed"], [[64467, 64470], "mapped", [1709]], [[64471, 64472], "mapped", [1735]], [[64473, 64474], "mapped", [1734]], [[64475, 64476], "mapped", [1736]], [[64477, 64477], "mapped", [1735, 1652]], [[64478, 64479], "mapped", [1739]], [[64480, 64481], "mapped", [1733]], [[64482, 64483], "mapped", [1737]], [[64484, 64487], "mapped", [1744]], [[64488, 64489], "mapped", [1609]], [[64490, 64491], "mapped", [1574, 1575]], [[64492, 64493], "mapped", [1574, 1749]], [[64494, 64495], "mapped", [1574, 1608]], [[64496, 64497], "mapped", [1574, 1735]], [[64498, 64499], "mapped", [1574, 1734]], [[64500, 64501], "mapped", [1574, 1736]], [[64502, 64504], "mapped", [1574, 1744]], [[64505, 64507], "mapped", [1574, 1609]], [[64508, 64511], "mapped", [1740]], [[64512, 64512], "mapped", [1574, 1580]], [[64513, 64513], "mapped", [1574, 1581]], [[64514, 64514], "mapped", [1574, 1605]], [[64515, 64515], "mapped", [1574, 1609]], [[64516, 64516], "mapped", [1574, 1610]], [[64517, 64517], "mapped", [1576, 1580]], [[64518, 64518], "mapped", [1576, 1581]], [[64519, 64519], "mapped", [1576, 1582]], [[64520, 64520], "mapped", [1576, 1605]], [[64521, 64521], "mapped", [1576, 1609]], [[64522, 64522], "mapped", [1576, 1610]], [[64523, 64523], "mapped", [1578, 1580]], [[64524, 64524], "mapped", [1578, 1581]], [[64525, 64525], "mapped", [1578, 1582]], [[64526, 64526], "mapped", [1578, 1605]], [[64527, 64527], "mapped", [1578, 1609]], [[64528, 64528], "mapped", [1578, 1610]], [[64529, 64529], "mapped", [1579, 1580]], [[64530, 64530], "mapped", [1579, 1605]], [[64531, 64531], "mapped", [1579, 1609]], [[64532, 64532], "mapped", [1579, 1610]], [[64533, 64533], "mapped", [1580, 1581]], [[64534, 64534], "mapped", [1580, 1605]], [[64535, 64535], "mapped", [1581, 1580]], [[64536, 64536], "mapped", [1581, 1605]], [[64537, 64537], "mapped", [1582, 1580]], [[64538, 64538], "mapped", [1582, 1581]], [[64539, 64539], "mapped", [1582, 1605]], [[64540, 64540], "mapped", [1587, 1580]], [[64541, 64541], "mapped", [1587, 1581]], [[64542, 64542], "mapped", [1587, 1582]], [[64543, 64543], "mapped", [1587, 1605]], [[64544, 64544], "mapped", [1589, 1581]], [[64545, 64545], "mapped", [1589, 1605]], [[64546, 64546], "mapped", [1590, 1580]], [[64547, 64547], "mapped", [1590, 1581]], [[64548, 64548], "mapped", [1590, 1582]], [[64549, 64549], "mapped", [1590, 1605]], [[64550, 64550], "mapped", [1591, 1581]], [[64551, 64551], "mapped", [1591, 1605]], [[64552, 64552], "mapped", [1592, 1605]], [[64553, 64553], "mapped", [1593, 1580]], [[64554, 64554], "mapped", [1593, 1605]], [[64555, 64555], "mapped", [1594, 1580]], [[64556, 64556], "mapped", [1594, 1605]], [[64557, 64557], "mapped", [1601, 1580]], [[64558, 64558], "mapped", [1601, 1581]], [[64559, 64559], "mapped", [1601, 1582]], [[64560, 64560], "mapped", [1601, 1605]], [[64561, 64561], "mapped", [1601, 1609]], [[64562, 64562], "mapped", [1601, 1610]], [[64563, 64563], "mapped", [1602, 1581]], [[64564, 64564], "mapped", [1602, 1605]], [[64565, 64565], "mapped", [1602, 1609]], [[64566, 64566], "mapped", [1602, 1610]], [[64567, 64567], "mapped", [1603, 1575]], [[64568, 64568], "mapped", [1603, 1580]], [[64569, 64569], "mapped", [1603, 1581]], [[64570, 64570], "mapped", [1603, 1582]], [[64571, 64571], "mapped", [1603, 1604]], [[64572, 64572], "mapped", [1603, 1605]], [[64573, 64573], "mapped", [1603, 1609]], [[64574, 64574], "mapped", [1603, 1610]], [[64575, 64575], "mapped", [1604, 1580]], [[64576, 64576], "mapped", [1604, 1581]], [[64577, 64577], "mapped", [1604, 1582]], [[64578, 64578], "mapped", [1604, 1605]], [[64579, 64579], "mapped", [1604, 1609]], [[64580, 64580], "mapped", [1604, 1610]], [[64581, 64581], "mapped", [1605, 1580]], [[64582, 64582], "mapped", [1605, 1581]], [[64583, 64583], "mapped", [1605, 1582]], [[64584, 64584], "mapped", [1605, 1605]], [[64585, 64585], "mapped", [1605, 1609]], [[64586, 64586], "mapped", [1605, 1610]], [[64587, 64587], "mapped", [1606, 1580]], [[64588, 64588], "mapped", [1606, 1581]], [[64589, 64589], "mapped", [1606, 1582]], [[64590, 64590], "mapped", [1606, 1605]], [[64591, 64591], "mapped", [1606, 1609]], [[64592, 64592], "mapped", [1606, 1610]], [[64593, 64593], "mapped", [1607, 1580]], [[64594, 64594], "mapped", [1607, 1605]], [[64595, 64595], "mapped", [1607, 1609]], [[64596, 64596], "mapped", [1607, 1610]], [[64597, 64597], "mapped", [1610, 1580]], [[64598, 64598], "mapped", [1610, 1581]], [[64599, 64599], "mapped", [1610, 1582]], [[64600, 64600], "mapped", [1610, 1605]], [[64601, 64601], "mapped", [1610, 1609]], [[64602, 64602], "mapped", [1610, 1610]], [[64603, 64603], "mapped", [1584, 1648]], [[64604, 64604], "mapped", [1585, 1648]], [[64605, 64605], "mapped", [1609, 1648]], [[64606, 64606], "disallowed_STD3_mapped", [32, 1612, 1617]], [[64607, 64607], "disallowed_STD3_mapped", [32, 1613, 1617]], [[64608, 64608], "disallowed_STD3_mapped", [32, 1614, 1617]], [[64609, 64609], "disallowed_STD3_mapped", [32, 1615, 1617]], [[64610, 64610], "disallowed_STD3_mapped", [32, 1616, 1617]], [[64611, 64611], "disallowed_STD3_mapped", [32, 1617, 1648]], [[64612, 64612], "mapped", [1574, 1585]], [[64613, 64613], "mapped", [1574, 1586]], [[64614, 64614], "mapped", [1574, 1605]], [[64615, 64615], "mapped", [1574, 1606]], [[64616, 64616], "mapped", [1574, 1609]], [[64617, 64617], "mapped", [1574, 1610]], [[64618, 64618], "mapped", [1576, 1585]], [[64619, 64619], "mapped", [1576, 1586]], [[64620, 64620], "mapped", [1576, 1605]], [[64621, 64621], "mapped", [1576, 1606]], [[64622, 64622], "mapped", [1576, 1609]], [[64623, 64623], "mapped", [1576, 1610]], [[64624, 64624], "mapped", [1578, 1585]], [[64625, 64625], "mapped", [1578, 1586]], [[64626, 64626], "mapped", [1578, 1605]], [[64627, 64627], "mapped", [1578, 1606]], [[64628, 64628], "mapped", [1578, 1609]], [[64629, 64629], "mapped", [1578, 1610]], [[64630, 64630], "mapped", [1579, 1585]], [[64631, 64631], "mapped", [1579, 1586]], [[64632, 64632], "mapped", [1579, 1605]], [[64633, 64633], "mapped", [1579, 1606]], [[64634, 64634], "mapped", [1579, 1609]], [[64635, 64635], "mapped", [1579, 1610]], [[64636, 64636], "mapped", [1601, 1609]], [[64637, 64637], "mapped", [1601, 1610]], [[64638, 64638], "mapped", [1602, 1609]], [[64639, 64639], "mapped", [1602, 1610]], [[64640, 64640], "mapped", [1603, 1575]], [[64641, 64641], "mapped", [1603, 1604]], [[64642, 64642], "mapped", [1603, 1605]], [[64643, 64643], "mapped", [1603, 1609]], [[64644, 64644], "mapped", [1603, 1610]], [[64645, 64645], "mapped", [1604, 1605]], [[64646, 64646], "mapped", [1604, 1609]], [[64647, 64647], "mapped", [1604, 1610]], [[64648, 64648], "mapped", [1605, 1575]], [[64649, 64649], "mapped", [1605, 1605]], [[64650, 64650], "mapped", [1606, 1585]], [[64651, 64651], "mapped", [1606, 1586]], [[64652, 64652], "mapped", [1606, 1605]], [[64653, 64653], "mapped", [1606, 1606]], [[64654, 64654], "mapped", [1606, 1609]], [[64655, 64655], "mapped", [1606, 1610]], [[64656, 64656], "mapped", [1609, 1648]], [[64657, 64657], "mapped", [1610, 1585]], [[64658, 64658], "mapped", [1610, 1586]], [[64659, 64659], "mapped", [1610, 1605]], [[64660, 64660], "mapped", [1610, 1606]], [[64661, 64661], "mapped", [1610, 1609]], [[64662, 64662], "mapped", [1610, 1610]], [[64663, 64663], "mapped", [1574, 1580]], [[64664, 64664], "mapped", [1574, 1581]], [[64665, 64665], "mapped", [1574, 1582]], [[64666, 64666], "mapped", [1574, 1605]], [[64667, 64667], "mapped", [1574, 1607]], [[64668, 64668], "mapped", [1576, 1580]], [[64669, 64669], "mapped", [1576, 1581]], [[64670, 64670], "mapped", [1576, 1582]], [[64671, 64671], "mapped", [1576, 1605]], [[64672, 64672], "mapped", [1576, 1607]], [[64673, 64673], "mapped", [1578, 1580]], [[64674, 64674], "mapped", [1578, 1581]], [[64675, 64675], "mapped", [1578, 1582]], [[64676, 64676], "mapped", [1578, 1605]], [[64677, 64677], "mapped", [1578, 1607]], [[64678, 64678], "mapped", [1579, 1605]], [[64679, 64679], "mapped", [1580, 1581]], [[64680, 64680], "mapped", [1580, 1605]], [[64681, 64681], "mapped", [1581, 1580]], [[64682, 64682], "mapped", [1581, 1605]], [[64683, 64683], "mapped", [1582, 1580]], [[64684, 64684], "mapped", [1582, 1605]], [[64685, 64685], "mapped", [1587, 1580]], [[64686, 64686], "mapped", [1587, 1581]], [[64687, 64687], "mapped", [1587, 1582]], [[64688, 64688], "mapped", [1587, 1605]], [[64689, 64689], "mapped", [1589, 1581]], [[64690, 64690], "mapped", [1589, 1582]], [[64691, 64691], "mapped", [1589, 1605]], [[64692, 64692], "mapped", [1590, 1580]], [[64693, 64693], "mapped", [1590, 1581]], [[64694, 64694], "mapped", [1590, 1582]], [[64695, 64695], "mapped", [1590, 1605]], [[64696, 64696], "mapped", [1591, 1581]], [[64697, 64697], "mapped", [1592, 1605]], [[64698, 64698], "mapped", [1593, 1580]], [[64699, 64699], "mapped", [1593, 1605]], [[64700, 64700], "mapped", [1594, 1580]], [[64701, 64701], "mapped", [1594, 1605]], [[64702, 64702], "mapped", [1601, 1580]], [[64703, 64703], "mapped", [1601, 1581]], [[64704, 64704], "mapped", [1601, 1582]], [[64705, 64705], "mapped", [1601, 1605]], [[64706, 64706], "mapped", [1602, 1581]], [[64707, 64707], "mapped", [1602, 1605]], [[64708, 64708], "mapped", [1603, 1580]], [[64709, 64709], "mapped", [1603, 1581]], [[64710, 64710], "mapped", [1603, 1582]], [[64711, 64711], "mapped", [1603, 1604]], [[64712, 64712], "mapped", [1603, 1605]], [[64713, 64713], "mapped", [1604, 1580]], [[64714, 64714], "mapped", [1604, 1581]], [[64715, 64715], "mapped", [1604, 1582]], [[64716, 64716], "mapped", [1604, 1605]], [[64717, 64717], "mapped", [1604, 1607]], [[64718, 64718], "mapped", [1605, 1580]], [[64719, 64719], "mapped", [1605, 1581]], [[64720, 64720], "mapped", [1605, 1582]], [[64721, 64721], "mapped", [1605, 1605]], [[64722, 64722], "mapped", [1606, 1580]], [[64723, 64723], "mapped", [1606, 1581]], [[64724, 64724], "mapped", [1606, 1582]], [[64725, 64725], "mapped", [1606, 1605]], [[64726, 64726], "mapped", [1606, 1607]], [[64727, 64727], "mapped", [1607, 1580]], [[64728, 64728], "mapped", [1607, 1605]], [[64729, 64729], "mapped", [1607, 1648]], [[64730, 64730], "mapped", [1610, 1580]], [[64731, 64731], "mapped", [1610, 1581]], [[64732, 64732], "mapped", [1610, 1582]], [[64733, 64733], "mapped", [1610, 1605]], [[64734, 64734], "mapped", [1610, 1607]], [[64735, 64735], "mapped", [1574, 1605]], [[64736, 64736], "mapped", [1574, 1607]], [[64737, 64737], "mapped", [1576, 1605]], [[64738, 64738], "mapped", [1576, 1607]], [[64739, 64739], "mapped", [1578, 1605]], [[64740, 64740], "mapped", [1578, 1607]], [[64741, 64741], "mapped", [1579, 1605]], [[64742, 64742], "mapped", [1579, 1607]], [[64743, 64743], "mapped", [1587, 1605]], [[64744, 64744], "mapped", [1587, 1607]], [[64745, 64745], "mapped", [1588, 1605]], [[64746, 64746], "mapped", [1588, 1607]], [[64747, 64747], "mapped", [1603, 1604]], [[64748, 64748], "mapped", [1603, 1605]], [[64749, 64749], "mapped", [1604, 1605]], [[64750, 64750], "mapped", [1606, 1605]], [[64751, 64751], "mapped", [1606, 1607]], [[64752, 64752], "mapped", [1610, 1605]], [[64753, 64753], "mapped", [1610, 1607]], [[64754, 64754], "mapped", [1600, 1614, 1617]], [[64755, 64755], "mapped", [1600, 1615, 1617]], [[64756, 64756], "mapped", [1600, 1616, 1617]], [[64757, 64757], "mapped", [1591, 1609]], [[64758, 64758], "mapped", [1591, 1610]], [[64759, 64759], "mapped", [1593, 1609]], [[64760, 64760], "mapped", [1593, 1610]], [[64761, 64761], "mapped", [1594, 1609]], [[64762, 64762], "mapped", [1594, 1610]], [[64763, 64763], "mapped", [1587, 1609]], [[64764, 64764], "mapped", [1587, 1610]], [[64765, 64765], "mapped", [1588, 1609]], [[64766, 64766], "mapped", [1588, 1610]], [[64767, 64767], "mapped", [1581, 1609]], [[64768, 64768], "mapped", [1581, 1610]], [[64769, 64769], "mapped", [1580, 1609]], [[64770, 64770], "mapped", [1580, 1610]], [[64771, 64771], "mapped", [1582, 1609]], [[64772, 64772], "mapped", [1582, 1610]], [[64773, 64773], "mapped", [1589, 1609]], [[64774, 64774], "mapped", [1589, 1610]], [[64775, 64775], "mapped", [1590, 1609]], [[64776, 64776], "mapped", [1590, 1610]], [[64777, 64777], "mapped", [1588, 1580]], [[64778, 64778], "mapped", [1588, 1581]], [[64779, 64779], "mapped", [1588, 1582]], [[64780, 64780], "mapped", [1588, 1605]], [[64781, 64781], "mapped", [1588, 1585]], [[64782, 64782], "mapped", [1587, 1585]], [[64783, 64783], "mapped", [1589, 1585]], [[64784, 64784], "mapped", [1590, 1585]], [[64785, 64785], "mapped", [1591, 1609]], [[64786, 64786], "mapped", [1591, 1610]], [[64787, 64787], "mapped", [1593, 1609]], [[64788, 64788], "mapped", [1593, 1610]], [[64789, 64789], "mapped", [1594, 1609]], [[64790, 64790], "mapped", [1594, 1610]], [[64791, 64791], "mapped", [1587, 1609]], [[64792, 64792], "mapped", [1587, 1610]], [[64793, 64793], "mapped", [1588, 1609]], [[64794, 64794], "mapped", [1588, 1610]], [[64795, 64795], "mapped", [1581, 1609]], [[64796, 64796], "mapped", [1581, 1610]], [[64797, 64797], "mapped", [1580, 1609]], [[64798, 64798], "mapped", [1580, 1610]], [[64799, 64799], "mapped", [1582, 1609]], [[64800, 64800], "mapped", [1582, 1610]], [[64801, 64801], "mapped", [1589, 1609]], [[64802, 64802], "mapped", [1589, 1610]], [[64803, 64803], "mapped", [1590, 1609]], [[64804, 64804], "mapped", [1590, 1610]], [[64805, 64805], "mapped", [1588, 1580]], [[64806, 64806], "mapped", [1588, 1581]], [[64807, 64807], "mapped", [1588, 1582]], [[64808, 64808], "mapped", [1588, 1605]], [[64809, 64809], "mapped", [1588, 1585]], [[64810, 64810], "mapped", [1587, 1585]], [[64811, 64811], "mapped", [1589, 1585]], [[64812, 64812], "mapped", [1590, 1585]], [[64813, 64813], "mapped", [1588, 1580]], [[64814, 64814], "mapped", [1588, 1581]], [[64815, 64815], "mapped", [1588, 1582]], [[64816, 64816], "mapped", [1588, 1605]], [[64817, 64817], "mapped", [1587, 1607]], [[64818, 64818], "mapped", [1588, 1607]], [[64819, 64819], "mapped", [1591, 1605]], [[64820, 64820], "mapped", [1587, 1580]], [[64821, 64821], "mapped", [1587, 1581]], [[64822, 64822], "mapped", [1587, 1582]], [[64823, 64823], "mapped", [1588, 1580]], [[64824, 64824], "mapped", [1588, 1581]], [[64825, 64825], "mapped", [1588, 1582]], [[64826, 64826], "mapped", [1591, 1605]], [[64827, 64827], "mapped", [1592, 1605]], [[64828, 64829], "mapped", [1575, 1611]], [[64830, 64831], "valid", [], "NV8"], [[64832, 64847], "disallowed"], [[64848, 64848], "mapped", [1578, 1580, 1605]], [[64849, 64850], "mapped", [1578, 1581, 1580]], [[64851, 64851], "mapped", [1578, 1581, 1605]], [[64852, 64852], "mapped", [1578, 1582, 1605]], [[64853, 64853], "mapped", [1578, 1605, 1580]], [[64854, 64854], "mapped", [1578, 1605, 1581]], [[64855, 64855], "mapped", [1578, 1605, 1582]], [[64856, 64857], "mapped", [1580, 1605, 1581]], [[64858, 64858], "mapped", [1581, 1605, 1610]], [[64859, 64859], "mapped", [1581, 1605, 1609]], [[64860, 64860], "mapped", [1587, 1581, 1580]], [[64861, 64861], "mapped", [1587, 1580, 1581]], [[64862, 64862], "mapped", [1587, 1580, 1609]], [[64863, 64864], "mapped", [1587, 1605, 1581]], [[64865, 64865], "mapped", [1587, 1605, 1580]], [[64866, 64867], "mapped", [1587, 1605, 1605]], [[64868, 64869], "mapped", [1589, 1581, 1581]], [[64870, 64870], "mapped", [1589, 1605, 1605]], [[64871, 64872], "mapped", [1588, 1581, 1605]], [[64873, 64873], "mapped", [1588, 1580, 1610]], [[64874, 64875], "mapped", [1588, 1605, 1582]], [[64876, 64877], "mapped", [1588, 1605, 1605]], [[64878, 64878], "mapped", [1590, 1581, 1609]], [[64879, 64880], "mapped", [1590, 1582, 1605]], [[64881, 64882], "mapped", [1591, 1605, 1581]], [[64883, 64883], "mapped", [1591, 1605, 1605]], [[64884, 64884], "mapped", [1591, 1605, 1610]], [[64885, 64885], "mapped", [1593, 1580, 1605]], [[64886, 64887], "mapped", [1593, 1605, 1605]], [[64888, 64888], "mapped", [1593, 1605, 1609]], [[64889, 64889], "mapped", [1594, 1605, 1605]], [[64890, 64890], "mapped", [1594, 1605, 1610]], [[64891, 64891], "mapped", [1594, 1605, 1609]], [[64892, 64893], "mapped", [1601, 1582, 1605]], [[64894, 64894], "mapped", [1602, 1605, 1581]], [[64895, 64895], "mapped", [1602, 1605, 1605]], [[64896, 64896], "mapped", [1604, 1581, 1605]], [[64897, 64897], "mapped", [1604, 1581, 1610]], [[64898, 64898], "mapped", [1604, 1581, 1609]], [[64899, 64900], "mapped", [1604, 1580, 1580]], [[64901, 64902], "mapped", [1604, 1582, 1605]], [[64903, 64904], "mapped", [1604, 1605, 1581]], [[64905, 64905], "mapped", [1605, 1581, 1580]], [[64906, 64906], "mapped", [1605, 1581, 1605]], [[64907, 64907], "mapped", [1605, 1581, 1610]], [[64908, 64908], "mapped", [1605, 1580, 1581]], [[64909, 64909], "mapped", [1605, 1580, 1605]], [[64910, 64910], "mapped", [1605, 1582, 1580]], [[64911, 64911], "mapped", [1605, 1582, 1605]], [[64912, 64913], "disallowed"], [[64914, 64914], "mapped", [1605, 1580, 1582]], [[64915, 64915], "mapped", [1607, 1605, 1580]], [[64916, 64916], "mapped", [1607, 1605, 1605]], [[64917, 64917], "mapped", [1606, 1581, 1605]], [[64918, 64918], "mapped", [1606, 1581, 1609]], [[64919, 64920], "mapped", [1606, 1580, 1605]], [[64921, 64921], "mapped", [1606, 1580, 1609]], [[64922, 64922], "mapped", [1606, 1605, 1610]], [[64923, 64923], "mapped", [1606, 1605, 1609]], [[64924, 64925], "mapped", [1610, 1605, 1605]], [[64926, 64926], "mapped", [1576, 1582, 1610]], [[64927, 64927], "mapped", [1578, 1580, 1610]], [[64928, 64928], "mapped", [1578, 1580, 1609]], [[64929, 64929], "mapped", [1578, 1582, 1610]], [[64930, 64930], "mapped", [1578, 1582, 1609]], [[64931, 64931], "mapped", [1578, 1605, 1610]], [[64932, 64932], "mapped", [1578, 1605, 1609]], [[64933, 64933], "mapped", [1580, 1605, 1610]], [[64934, 64934], "mapped", [1580, 1581, 1609]], [[64935, 64935], "mapped", [1580, 1605, 1609]], [[64936, 64936], "mapped", [1587, 1582, 1609]], [[64937, 64937], "mapped", [1589, 1581, 1610]], [[64938, 64938], "mapped", [1588, 1581, 1610]], [[64939, 64939], "mapped", [1590, 1581, 1610]], [[64940, 64940], "mapped", [1604, 1580, 1610]], [[64941, 64941], "mapped", [1604, 1605, 1610]], [[64942, 64942], "mapped", [1610, 1581, 1610]], [[64943, 64943], "mapped", [1610, 1580, 1610]], [[64944, 64944], "mapped", [1610, 1605, 1610]], [[64945, 64945], "mapped", [1605, 1605, 1610]], [[64946, 64946], "mapped", [1602, 1605, 1610]], [[64947, 64947], "mapped", [1606, 1581, 1610]], [[64948, 64948], "mapped", [1602, 1605, 1581]], [[64949, 64949], "mapped", [1604, 1581, 1605]], [[64950, 64950], "mapped", [1593, 1605, 1610]], [[64951, 64951], "mapped", [1603, 1605, 1610]], [[64952, 64952], "mapped", [1606, 1580, 1581]], [[64953, 64953], "mapped", [1605, 1582, 1610]], [[64954, 64954], "mapped", [1604, 1580, 1605]], [[64955, 64955], "mapped", [1603, 1605, 1605]], [[64956, 64956], "mapped", [1604, 1580, 1605]], [[64957, 64957], "mapped", [1606, 1580, 1581]], [[64958, 64958], "mapped", [1580, 1581, 1610]], [[64959, 64959], "mapped", [1581, 1580, 1610]], [[64960, 64960], "mapped", [1605, 1580, 1610]], [[64961, 64961], "mapped", [1601, 1605, 1610]], [[64962, 64962], "mapped", [1576, 1581, 1610]], [[64963, 64963], "mapped", [1603, 1605, 1605]], [[64964, 64964], "mapped", [1593, 1580, 1605]], [[64965, 64965], "mapped", [1589, 1605, 1605]], [[64966, 64966], "mapped", [1587, 1582, 1610]], [[64967, 64967], "mapped", [1606, 1580, 1610]], [[64968, 64975], "disallowed"], [[64976, 65007], "disallowed"], [[65008, 65008], "mapped", [1589, 1604, 1746]], [[65009, 65009], "mapped", [1602, 1604, 1746]], [[65010, 65010], "mapped", [1575, 1604, 1604, 1607]], [[65011, 65011], "mapped", [1575, 1603, 1576, 1585]], [[65012, 65012], "mapped", [1605, 1581, 1605, 1583]], [[65013, 65013], "mapped", [1589, 1604, 1593, 1605]], [[65014, 65014], "mapped", [1585, 1587, 1608, 1604]], [[65015, 65015], "mapped", [1593, 1604, 1610, 1607]], [[65016, 65016], "mapped", [1608, 1587, 1604, 1605]], [[65017, 65017], "mapped", [1589, 1604, 1609]], [[65018, 65018], "disallowed_STD3_mapped", [1589, 1604, 1609, 32, 1575, 1604, 1604, 1607, 32, 1593, 1604, 1610, 1607, 32, 1608, 1587, 1604, 1605]], [[65019, 65019], "disallowed_STD3_mapped", [1580, 1604, 32, 1580, 1604, 1575, 1604, 1607]], [[65020, 65020], "mapped", [1585, 1740, 1575, 1604]], [[65021, 65021], "valid", [], "NV8"], [[65022, 65023], "disallowed"], [[65024, 65039], "ignored"], [[65040, 65040], "disallowed_STD3_mapped", [44]], [[65041, 65041], "mapped", [12289]], [[65042, 65042], "disallowed"], [[65043, 65043], "disallowed_STD3_mapped", [58]], [[65044, 65044], "disallowed_STD3_mapped", [59]], [[65045, 65045], "disallowed_STD3_mapped", [33]], [[65046, 65046], "disallowed_STD3_mapped", [63]], [[65047, 65047], "mapped", [12310]], [[65048, 65048], "mapped", [12311]], [[65049, 65049], "disallowed"], [[65050, 65055], "disallowed"], [[65056, 65059], "valid"], [[65060, 65062], "valid"], [[65063, 65069], "valid"], [[65070, 65071], "valid"], [[65072, 65072], "disallowed"], [[65073, 65073], "mapped", [8212]], [[65074, 65074], "mapped", [8211]], [[65075, 65076], "disallowed_STD3_mapped", [95]], [[65077, 65077], "disallowed_STD3_mapped", [40]], [[65078, 65078], "disallowed_STD3_mapped", [41]], [[65079, 65079], "disallowed_STD3_mapped", [123]], [[65080, 65080], "disallowed_STD3_mapped", [125]], [[65081, 65081], "mapped", [12308]], [[65082, 65082], "mapped", [12309]], [[65083, 65083], "mapped", [12304]], [[65084, 65084], "mapped", [12305]], [[65085, 65085], "mapped", [12298]], [[65086, 65086], "mapped", [12299]], [[65087, 65087], "mapped", [12296]], [[65088, 65088], "mapped", [12297]], [[65089, 65089], "mapped", [12300]], [[65090, 65090], "mapped", [12301]], [[65091, 65091], "mapped", [12302]], [[65092, 65092], "mapped", [12303]], [[65093, 65094], "valid", [], "NV8"], [[65095, 65095], "disallowed_STD3_mapped", [91]], [[65096, 65096], "disallowed_STD3_mapped", [93]], [[65097, 65100], "disallowed_STD3_mapped", [32, 773]], [[65101, 65103], "disallowed_STD3_mapped", [95]], [[65104, 65104], "disallowed_STD3_mapped", [44]], [[65105, 65105], "mapped", [12289]], [[65106, 65106], "disallowed"], [[65107, 65107], "disallowed"], [[65108, 65108], "disallowed_STD3_mapped", [59]], [[65109, 65109], "disallowed_STD3_mapped", [58]], [[65110, 65110], "disallowed_STD3_mapped", [63]], [[65111, 65111], "disallowed_STD3_mapped", [33]], [[65112, 65112], "mapped", [8212]], [[65113, 65113], "disallowed_STD3_mapped", [40]], [[65114, 65114], "disallowed_STD3_mapped", [41]], [[65115, 65115], "disallowed_STD3_mapped", [123]], [[65116, 65116], "disallowed_STD3_mapped", [125]], [[65117, 65117], "mapped", [12308]], [[65118, 65118], "mapped", [12309]], [[65119, 65119], "disallowed_STD3_mapped", [35]], [[65120, 65120], "disallowed_STD3_mapped", [38]], [[65121, 65121], "disallowed_STD3_mapped", [42]], [[65122, 65122], "disallowed_STD3_mapped", [43]], [[65123, 65123], "mapped", [45]], [[65124, 65124], "disallowed_STD3_mapped", [60]], [[65125, 65125], "disallowed_STD3_mapped", [62]], [[65126, 65126], "disallowed_STD3_mapped", [61]], [[65127, 65127], "disallowed"], [[65128, 65128], "disallowed_STD3_mapped", [92]], [[65129, 65129], "disallowed_STD3_mapped", [36]], [[65130, 65130], "disallowed_STD3_mapped", [37]], [[65131, 65131], "disallowed_STD3_mapped", [64]], [[65132, 65135], "disallowed"], [[65136, 65136], "disallowed_STD3_mapped", [32, 1611]], [[65137, 65137], "mapped", [1600, 1611]], [[65138, 65138], "disallowed_STD3_mapped", [32, 1612]], [[65139, 65139], "valid"], [[65140, 65140], "disallowed_STD3_mapped", [32, 1613]], [[65141, 65141], "disallowed"], [[65142, 65142], "disallowed_STD3_mapped", [32, 1614]], [[65143, 65143], "mapped", [1600, 1614]], [[65144, 65144], "disallowed_STD3_mapped", [32, 1615]], [[65145, 65145], "mapped", [1600, 1615]], [[65146, 65146], "disallowed_STD3_mapped", [32, 1616]], [[65147, 65147], "mapped", [1600, 1616]], [[65148, 65148], "disallowed_STD3_mapped", [32, 1617]], [[65149, 65149], "mapped", [1600, 1617]], [[65150, 65150], "disallowed_STD3_mapped", [32, 1618]], [[65151, 65151], "mapped", [1600, 1618]], [[65152, 65152], "mapped", [1569]], [[65153, 65154], "mapped", [1570]], [[65155, 65156], "mapped", [1571]], [[65157, 65158], "mapped", [1572]], [[65159, 65160], "mapped", [1573]], [[65161, 65164], "mapped", [1574]], [[65165, 65166], "mapped", [1575]], [[65167, 65170], "mapped", [1576]], [[65171, 65172], "mapped", [1577]], [[65173, 65176], "mapped", [1578]], [[65177, 65180], "mapped", [1579]], [[65181, 65184], "mapped", [1580]], [[65185, 65188], "mapped", [1581]], [[65189, 65192], "mapped", [1582]], [[65193, 65194], "mapped", [1583]], [[65195, 65196], "mapped", [1584]], [[65197, 65198], "mapped", [1585]], [[65199, 65200], "mapped", [1586]], [[65201, 65204], "mapped", [1587]], [[65205, 65208], "mapped", [1588]], [[65209, 65212], "mapped", [1589]], [[65213, 65216], "mapped", [1590]], [[65217, 65220], "mapped", [1591]], [[65221, 65224], "mapped", [1592]], [[65225, 65228], "mapped", [1593]], [[65229, 65232], "mapped", [1594]], [[65233, 65236], "mapped", [1601]], [[65237, 65240], "mapped", [1602]], [[65241, 65244], "mapped", [1603]], [[65245, 65248], "mapped", [1604]], [[65249, 65252], "mapped", [1605]], [[65253, 65256], "mapped", [1606]], [[65257, 65260], "mapped", [1607]], [[65261, 65262], "mapped", [1608]], [[65263, 65264], "mapped", [1609]], [[65265, 65268], "mapped", [1610]], [[65269, 65270], "mapped", [1604, 1570]], [[65271, 65272], "mapped", [1604, 1571]], [[65273, 65274], "mapped", [1604, 1573]], [[65275, 65276], "mapped", [1604, 1575]], [[65277, 65278], "disallowed"], [[65279, 65279], "ignored"], [[65280, 65280], "disallowed"], [[65281, 65281], "disallowed_STD3_mapped", [33]], [[65282, 65282], "disallowed_STD3_mapped", [34]], [[65283, 65283], "disallowed_STD3_mapped", [35]], [[65284, 65284], "disallowed_STD3_mapped", [36]], [[65285, 65285], "disallowed_STD3_mapped", [37]], [[65286, 65286], "disallowed_STD3_mapped", [38]], [[65287, 65287], "disallowed_STD3_mapped", [39]], [[65288, 65288], "disallowed_STD3_mapped", [40]], [[65289, 65289], "disallowed_STD3_mapped", [41]], [[65290, 65290], "disallowed_STD3_mapped", [42]], [[65291, 65291], "disallowed_STD3_mapped", [43]], [[65292, 65292], "disallowed_STD3_mapped", [44]], [[65293, 65293], "mapped", [45]], [[65294, 65294], "mapped", [46]], [[65295, 65295], "disallowed_STD3_mapped", [47]], [[65296, 65296], "mapped", [48]], [[65297, 65297], "mapped", [49]], [[65298, 65298], "mapped", [50]], [[65299, 65299], "mapped", [51]], [[65300, 65300], "mapped", [52]], [[65301, 65301], "mapped", [53]], [[65302, 65302], "mapped", [54]], [[65303, 65303], "mapped", [55]], [[65304, 65304], "mapped", [56]], [[65305, 65305], "mapped", [57]], [[65306, 65306], "disallowed_STD3_mapped", [58]], [[65307, 65307], "disallowed_STD3_mapped", [59]], [[65308, 65308], "disallowed_STD3_mapped", [60]], [[65309, 65309], "disallowed_STD3_mapped", [61]], [[65310, 65310], "disallowed_STD3_mapped", [62]], [[65311, 65311], "disallowed_STD3_mapped", [63]], [[65312, 65312], "disallowed_STD3_mapped", [64]], [[65313, 65313], "mapped", [97]], [[65314, 65314], "mapped", [98]], [[65315, 65315], "mapped", [99]], [[65316, 65316], "mapped", [100]], [[65317, 65317], "mapped", [101]], [[65318, 65318], "mapped", [102]], [[65319, 65319], "mapped", [103]], [[65320, 65320], "mapped", [104]], [[65321, 65321], "mapped", [105]], [[65322, 65322], "mapped", [106]], [[65323, 65323], "mapped", [107]], [[65324, 65324], "mapped", [108]], [[65325, 65325], "mapped", [109]], [[65326, 65326], "mapped", [110]], [[65327, 65327], "mapped", [111]], [[65328, 65328], "mapped", [112]], [[65329, 65329], "mapped", [113]], [[65330, 65330], "mapped", [114]], [[65331, 65331], "mapped", [115]], [[65332, 65332], "mapped", [116]], [[65333, 65333], "mapped", [117]], [[65334, 65334], "mapped", [118]], [[65335, 65335], "mapped", [119]], [[65336, 65336], "mapped", [120]], [[65337, 65337], "mapped", [121]], [[65338, 65338], "mapped", [122]], [[65339, 65339], "disallowed_STD3_mapped", [91]], [[65340, 65340], "disallowed_STD3_mapped", [92]], [[65341, 65341], "disallowed_STD3_mapped", [93]], [[65342, 65342], "disallowed_STD3_mapped", [94]], [[65343, 65343], "disallowed_STD3_mapped", [95]], [[65344, 65344], "disallowed_STD3_mapped", [96]], [[65345, 65345], "mapped", [97]], [[65346, 65346], "mapped", [98]], [[65347, 65347], "mapped", [99]], [[65348, 65348], "mapped", [100]], [[65349, 65349], "mapped", [101]], [[65350, 65350], "mapped", [102]], [[65351, 65351], "mapped", [103]], [[65352, 65352], "mapped", [104]], [[65353, 65353], "mapped", [105]], [[65354, 65354], "mapped", [106]], [[65355, 65355], "mapped", [107]], [[65356, 65356], "mapped", [108]], [[65357, 65357], "mapped", [109]], [[65358, 65358], "mapped", [110]], [[65359, 65359], "mapped", [111]], [[65360, 65360], "mapped", [112]], [[65361, 65361], "mapped", [113]], [[65362, 65362], "mapped", [114]], [[65363, 65363], "mapped", [115]], [[65364, 65364], "mapped", [116]], [[65365, 65365], "mapped", [117]], [[65366, 65366], "mapped", [118]], [[65367, 65367], "mapped", [119]], [[65368, 65368], "mapped", [120]], [[65369, 65369], "mapped", [121]], [[65370, 65370], "mapped", [122]], [[65371, 65371], "disallowed_STD3_mapped", [123]], [[65372, 65372], "disallowed_STD3_mapped", [124]], [[65373, 65373], "disallowed_STD3_mapped", [125]], [[65374, 65374], "disallowed_STD3_mapped", [126]], [[65375, 65375], "mapped", [10629]], [[65376, 65376], "mapped", [10630]], [[65377, 65377], "mapped", [46]], [[65378, 65378], "mapped", [12300]], [[65379, 65379], "mapped", [12301]], [[65380, 65380], "mapped", [12289]], [[65381, 65381], "mapped", [12539]], [[65382, 65382], "mapped", [12530]], [[65383, 65383], "mapped", [12449]], [[65384, 65384], "mapped", [12451]], [[65385, 65385], "mapped", [12453]], [[65386, 65386], "mapped", [12455]], [[65387, 65387], "mapped", [12457]], [[65388, 65388], "mapped", [12515]], [[65389, 65389], "mapped", [12517]], [[65390, 65390], "mapped", [12519]], [[65391, 65391], "mapped", [12483]], [[65392, 65392], "mapped", [12540]], [[65393, 65393], "mapped", [12450]], [[65394, 65394], "mapped", [12452]], [[65395, 65395], "mapped", [12454]], [[65396, 65396], "mapped", [12456]], [[65397, 65397], "mapped", [12458]], [[65398, 65398], "mapped", [12459]], [[65399, 65399], "mapped", [12461]], [[65400, 65400], "mapped", [12463]], [[65401, 65401], "mapped", [12465]], [[65402, 65402], "mapped", [12467]], [[65403, 65403], "mapped", [12469]], [[65404, 65404], "mapped", [12471]], [[65405, 65405], "mapped", [12473]], [[65406, 65406], "mapped", [12475]], [[65407, 65407], "mapped", [12477]], [[65408, 65408], "mapped", [12479]], [[65409, 65409], "mapped", [12481]], [[65410, 65410], "mapped", [12484]], [[65411, 65411], "mapped", [12486]], [[65412, 65412], "mapped", [12488]], [[65413, 65413], "mapped", [12490]], [[65414, 65414], "mapped", [12491]], [[65415, 65415], "mapped", [12492]], [[65416, 65416], "mapped", [12493]], [[65417, 65417], "mapped", [12494]], [[65418, 65418], "mapped", [12495]], [[65419, 65419], "mapped", [12498]], [[65420, 65420], "mapped", [12501]], [[65421, 65421], "mapped", [12504]], [[65422, 65422], "mapped", [12507]], [[65423, 65423], "mapped", [12510]], [[65424, 65424], "mapped", [12511]], [[65425, 65425], "mapped", [12512]], [[65426, 65426], "mapped", [12513]], [[65427, 65427], "mapped", [12514]], [[65428, 65428], "mapped", [12516]], [[65429, 65429], "mapped", [12518]], [[65430, 65430], "mapped", [12520]], [[65431, 65431], "mapped", [12521]], [[65432, 65432], "mapped", [12522]], [[65433, 65433], "mapped", [12523]], [[65434, 65434], "mapped", [12524]], [[65435, 65435], "mapped", [12525]], [[65436, 65436], "mapped", [12527]], [[65437, 65437], "mapped", [12531]], [[65438, 65438], "mapped", [12441]], [[65439, 65439], "mapped", [12442]], [[65440, 65440], "disallowed"], [[65441, 65441], "mapped", [4352]], [[65442, 65442], "mapped", [4353]], [[65443, 65443], "mapped", [4522]], [[65444, 65444], "mapped", [4354]], [[65445, 65445], "mapped", [4524]], [[65446, 65446], "mapped", [4525]], [[65447, 65447], "mapped", [4355]], [[65448, 65448], "mapped", [4356]], [[65449, 65449], "mapped", [4357]], [[65450, 65450], "mapped", [4528]], [[65451, 65451], "mapped", [4529]], [[65452, 65452], "mapped", [4530]], [[65453, 65453], "mapped", [4531]], [[65454, 65454], "mapped", [4532]], [[65455, 65455], "mapped", [4533]], [[65456, 65456], "mapped", [4378]], [[65457, 65457], "mapped", [4358]], [[65458, 65458], "mapped", [4359]], [[65459, 65459], "mapped", [4360]], [[65460, 65460], "mapped", [4385]], [[65461, 65461], "mapped", [4361]], [[65462, 65462], "mapped", [4362]], [[65463, 65463], "mapped", [4363]], [[65464, 65464], "mapped", [4364]], [[65465, 65465], "mapped", [4365]], [[65466, 65466], "mapped", [4366]], [[65467, 65467], "mapped", [4367]], [[65468, 65468], "mapped", [4368]], [[65469, 65469], "mapped", [4369]], [[65470, 65470], "mapped", [4370]], [[65471, 65473], "disallowed"], [[65474, 65474], "mapped", [4449]], [[65475, 65475], "mapped", [4450]], [[65476, 65476], "mapped", [4451]], [[65477, 65477], "mapped", [4452]], [[65478, 65478], "mapped", [4453]], [[65479, 65479], "mapped", [4454]], [[65480, 65481], "disallowed"], [[65482, 65482], "mapped", [4455]], [[65483, 65483], "mapped", [4456]], [[65484, 65484], "mapped", [4457]], [[65485, 65485], "mapped", [4458]], [[65486, 65486], "mapped", [4459]], [[65487, 65487], "mapped", [4460]], [[65488, 65489], "disallowed"], [[65490, 65490], "mapped", [4461]], [[65491, 65491], "mapped", [4462]], [[65492, 65492], "mapped", [4463]], [[65493, 65493], "mapped", [4464]], [[65494, 65494], "mapped", [4465]], [[65495, 65495], "mapped", [4466]], [[65496, 65497], "disallowed"], [[65498, 65498], "mapped", [4467]], [[65499, 65499], "mapped", [4468]], [[65500, 65500], "mapped", [4469]], [[65501, 65503], "disallowed"], [[65504, 65504], "mapped", [162]], [[65505, 65505], "mapped", [163]], [[65506, 65506], "mapped", [172]], [[65507, 65507], "disallowed_STD3_mapped", [32, 772]], [[65508, 65508], "mapped", [166]], [[65509, 65509], "mapped", [165]], [[65510, 65510], "mapped", [8361]], [[65511, 65511], "disallowed"], [[65512, 65512], "mapped", [9474]], [[65513, 65513], "mapped", [8592]], [[65514, 65514], "mapped", [8593]], [[65515, 65515], "mapped", [8594]], [[65516, 65516], "mapped", [8595]], [[65517, 65517], "mapped", [9632]], [[65518, 65518], "mapped", [9675]], [[65519, 65528], "disallowed"], [[65529, 65531], "disallowed"], [[65532, 65532], "disallowed"], [[65533, 65533], "disallowed"], [[65534, 65535], "disallowed"], [[65536, 65547], "valid"], [[65548, 65548], "disallowed"], [[65549, 65574], "valid"], [[65575, 65575], "disallowed"], [[65576, 65594], "valid"], [[65595, 65595], "disallowed"], [[65596, 65597], "valid"], [[65598, 65598], "disallowed"], [[65599, 65613], "valid"], [[65614, 65615], "disallowed"], [[65616, 65629], "valid"], [[65630, 65663], "disallowed"], [[65664, 65786], "valid"], [[65787, 65791], "disallowed"], [[65792, 65794], "valid", [], "NV8"], [[65795, 65798], "disallowed"], [[65799, 65843], "valid", [], "NV8"], [[65844, 65846], "disallowed"], [[65847, 65855], "valid", [], "NV8"], [[65856, 65930], "valid", [], "NV8"], [[65931, 65932], "valid", [], "NV8"], [[65933, 65935], "disallowed"], [[65936, 65947], "valid", [], "NV8"], [[65948, 65951], "disallowed"], [[65952, 65952], "valid", [], "NV8"], [[65953, 65999], "disallowed"], [[66e3, 66044], "valid", [], "NV8"], [[66045, 66045], "valid"], [[66046, 66175], "disallowed"], [[66176, 66204], "valid"], [[66205, 66207], "disallowed"], [[66208, 66256], "valid"], [[66257, 66271], "disallowed"], [[66272, 66272], "valid"], [[66273, 66299], "valid", [], "NV8"], [[66300, 66303], "disallowed"], [[66304, 66334], "valid"], [[66335, 66335], "valid"], [[66336, 66339], "valid", [], "NV8"], [[66340, 66351], "disallowed"], [[66352, 66368], "valid"], [[66369, 66369], "valid", [], "NV8"], [[66370, 66377], "valid"], [[66378, 66378], "valid", [], "NV8"], [[66379, 66383], "disallowed"], [[66384, 66426], "valid"], [[66427, 66431], "disallowed"], [[66432, 66461], "valid"], [[66462, 66462], "disallowed"], [[66463, 66463], "valid", [], "NV8"], [[66464, 66499], "valid"], [[66500, 66503], "disallowed"], [[66504, 66511], "valid"], [[66512, 66517], "valid", [], "NV8"], [[66518, 66559], "disallowed"], [[66560, 66560], "mapped", [66600]], [[66561, 66561], "mapped", [66601]], [[66562, 66562], "mapped", [66602]], [[66563, 66563], "mapped", [66603]], [[66564, 66564], "mapped", [66604]], [[66565, 66565], "mapped", [66605]], [[66566, 66566], "mapped", [66606]], [[66567, 66567], "mapped", [66607]], [[66568, 66568], "mapped", [66608]], [[66569, 66569], "mapped", [66609]], [[66570, 66570], "mapped", [66610]], [[66571, 66571], "mapped", [66611]], [[66572, 66572], "mapped", [66612]], [[66573, 66573], "mapped", [66613]], [[66574, 66574], "mapped", [66614]], [[66575, 66575], "mapped", [66615]], [[66576, 66576], "mapped", [66616]], [[66577, 66577], "mapped", [66617]], [[66578, 66578], "mapped", [66618]], [[66579, 66579], "mapped", [66619]], [[66580, 66580], "mapped", [66620]], [[66581, 66581], "mapped", [66621]], [[66582, 66582], "mapped", [66622]], [[66583, 66583], "mapped", [66623]], [[66584, 66584], "mapped", [66624]], [[66585, 66585], "mapped", [66625]], [[66586, 66586], "mapped", [66626]], [[66587, 66587], "mapped", [66627]], [[66588, 66588], "mapped", [66628]], [[66589, 66589], "mapped", [66629]], [[66590, 66590], "mapped", [66630]], [[66591, 66591], "mapped", [66631]], [[66592, 66592], "mapped", [66632]], [[66593, 66593], "mapped", [66633]], [[66594, 66594], "mapped", [66634]], [[66595, 66595], "mapped", [66635]], [[66596, 66596], "mapped", [66636]], [[66597, 66597], "mapped", [66637]], [[66598, 66598], "mapped", [66638]], [[66599, 66599], "mapped", [66639]], [[66600, 66637], "valid"], [[66638, 66717], "valid"], [[66718, 66719], "disallowed"], [[66720, 66729], "valid"], [[66730, 66815], "disallowed"], [[66816, 66855], "valid"], [[66856, 66863], "disallowed"], [[66864, 66915], "valid"], [[66916, 66926], "disallowed"], [[66927, 66927], "valid", [], "NV8"], [[66928, 67071], "disallowed"], [[67072, 67382], "valid"], [[67383, 67391], "disallowed"], [[67392, 67413], "valid"], [[67414, 67423], "disallowed"], [[67424, 67431], "valid"], [[67432, 67583], "disallowed"], [[67584, 67589], "valid"], [[67590, 67591], "disallowed"], [[67592, 67592], "valid"], [[67593, 67593], "disallowed"], [[67594, 67637], "valid"], [[67638, 67638], "disallowed"], [[67639, 67640], "valid"], [[67641, 67643], "disallowed"], [[67644, 67644], "valid"], [[67645, 67646], "disallowed"], [[67647, 67647], "valid"], [[67648, 67669], "valid"], [[67670, 67670], "disallowed"], [[67671, 67679], "valid", [], "NV8"], [[67680, 67702], "valid"], [[67703, 67711], "valid", [], "NV8"], [[67712, 67742], "valid"], [[67743, 67750], "disallowed"], [[67751, 67759], "valid", [], "NV8"], [[67760, 67807], "disallowed"], [[67808, 67826], "valid"], [[67827, 67827], "disallowed"], [[67828, 67829], "valid"], [[67830, 67834], "disallowed"], [[67835, 67839], "valid", [], "NV8"], [[67840, 67861], "valid"], [[67862, 67865], "valid", [], "NV8"], [[67866, 67867], "valid", [], "NV8"], [[67868, 67870], "disallowed"], [[67871, 67871], "valid", [], "NV8"], [[67872, 67897], "valid"], [[67898, 67902], "disallowed"], [[67903, 67903], "valid", [], "NV8"], [[67904, 67967], "disallowed"], [[67968, 68023], "valid"], [[68024, 68027], "disallowed"], [[68028, 68029], "valid", [], "NV8"], [[68030, 68031], "valid"], [[68032, 68047], "valid", [], "NV8"], [[68048, 68049], "disallowed"], [[68050, 68095], "valid", [], "NV8"], [[68096, 68099], "valid"], [[68100, 68100], "disallowed"], [[68101, 68102], "valid"], [[68103, 68107], "disallowed"], [[68108, 68115], "valid"], [[68116, 68116], "disallowed"], [[68117, 68119], "valid"], [[68120, 68120], "disallowed"], [[68121, 68147], "valid"], [[68148, 68151], "disallowed"], [[68152, 68154], "valid"], [[68155, 68158], "disallowed"], [[68159, 68159], "valid"], [[68160, 68167], "valid", [], "NV8"], [[68168, 68175], "disallowed"], [[68176, 68184], "valid", [], "NV8"], [[68185, 68191], "disallowed"], [[68192, 68220], "valid"], [[68221, 68223], "valid", [], "NV8"], [[68224, 68252], "valid"], [[68253, 68255], "valid", [], "NV8"], [[68256, 68287], "disallowed"], [[68288, 68295], "valid"], [[68296, 68296], "valid", [], "NV8"], [[68297, 68326], "valid"], [[68327, 68330], "disallowed"], [[68331, 68342], "valid", [], "NV8"], [[68343, 68351], "disallowed"], [[68352, 68405], "valid"], [[68406, 68408], "disallowed"], [[68409, 68415], "valid", [], "NV8"], [[68416, 68437], "valid"], [[68438, 68439], "disallowed"], [[68440, 68447], "valid", [], "NV8"], [[68448, 68466], "valid"], [[68467, 68471], "disallowed"], [[68472, 68479], "valid", [], "NV8"], [[68480, 68497], "valid"], [[68498, 68504], "disallowed"], [[68505, 68508], "valid", [], "NV8"], [[68509, 68520], "disallowed"], [[68521, 68527], "valid", [], "NV8"], [[68528, 68607], "disallowed"], [[68608, 68680], "valid"], [[68681, 68735], "disallowed"], [[68736, 68736], "mapped", [68800]], [[68737, 68737], "mapped", [68801]], [[68738, 68738], "mapped", [68802]], [[68739, 68739], "mapped", [68803]], [[68740, 68740], "mapped", [68804]], [[68741, 68741], "mapped", [68805]], [[68742, 68742], "mapped", [68806]], [[68743, 68743], "mapped", [68807]], [[68744, 68744], "mapped", [68808]], [[68745, 68745], "mapped", [68809]], [[68746, 68746], "mapped", [68810]], [[68747, 68747], "mapped", [68811]], [[68748, 68748], "mapped", [68812]], [[68749, 68749], "mapped", [68813]], [[68750, 68750], "mapped", [68814]], [[68751, 68751], "mapped", [68815]], [[68752, 68752], "mapped", [68816]], [[68753, 68753], "mapped", [68817]], [[68754, 68754], "mapped", [68818]], [[68755, 68755], "mapped", [68819]], [[68756, 68756], "mapped", [68820]], [[68757, 68757], "mapped", [68821]], [[68758, 68758], "mapped", [68822]], [[68759, 68759], "mapped", [68823]], [[68760, 68760], "mapped", [68824]], [[68761, 68761], "mapped", [68825]], [[68762, 68762], "mapped", [68826]], [[68763, 68763], "mapped", [68827]], [[68764, 68764], "mapped", [68828]], [[68765, 68765], "mapped", [68829]], [[68766, 68766], "mapped", [68830]], [[68767, 68767], "mapped", [68831]], [[68768, 68768], "mapped", [68832]], [[68769, 68769], "mapped", [68833]], [[68770, 68770], "mapped", [68834]], [[68771, 68771], "mapped", [68835]], [[68772, 68772], "mapped", [68836]], [[68773, 68773], "mapped", [68837]], [[68774, 68774], "mapped", [68838]], [[68775, 68775], "mapped", [68839]], [[68776, 68776], "mapped", [68840]], [[68777, 68777], "mapped", [68841]], [[68778, 68778], "mapped", [68842]], [[68779, 68779], "mapped", [68843]], [[68780, 68780], "mapped", [68844]], [[68781, 68781], "mapped", [68845]], [[68782, 68782], "mapped", [68846]], [[68783, 68783], "mapped", [68847]], [[68784, 68784], "mapped", [68848]], [[68785, 68785], "mapped", [68849]], [[68786, 68786], "mapped", [68850]], [[68787, 68799], "disallowed"], [[68800, 68850], "valid"], [[68851, 68857], "disallowed"], [[68858, 68863], "valid", [], "NV8"], [[68864, 69215], "disallowed"], [[69216, 69246], "valid", [], "NV8"], [[69247, 69631], "disallowed"], [[69632, 69702], "valid"], [[69703, 69709], "valid", [], "NV8"], [[69710, 69713], "disallowed"], [[69714, 69733], "valid", [], "NV8"], [[69734, 69743], "valid"], [[69744, 69758], "disallowed"], [[69759, 69759], "valid"], [[69760, 69818], "valid"], [[69819, 69820], "valid", [], "NV8"], [[69821, 69821], "disallowed"], [[69822, 69825], "valid", [], "NV8"], [[69826, 69839], "disallowed"], [[69840, 69864], "valid"], [[69865, 69871], "disallowed"], [[69872, 69881], "valid"], [[69882, 69887], "disallowed"], [[69888, 69940], "valid"], [[69941, 69941], "disallowed"], [[69942, 69951], "valid"], [[69952, 69955], "valid", [], "NV8"], [[69956, 69967], "disallowed"], [[69968, 70003], "valid"], [[70004, 70005], "valid", [], "NV8"], [[70006, 70006], "valid"], [[70007, 70015], "disallowed"], [[70016, 70084], "valid"], [[70085, 70088], "valid", [], "NV8"], [[70089, 70089], "valid", [], "NV8"], [[70090, 70092], "valid"], [[70093, 70093], "valid", [], "NV8"], [[70094, 70095], "disallowed"], [[70096, 70105], "valid"], [[70106, 70106], "valid"], [[70107, 70107], "valid", [], "NV8"], [[70108, 70108], "valid"], [[70109, 70111], "valid", [], "NV8"], [[70112, 70112], "disallowed"], [[70113, 70132], "valid", [], "NV8"], [[70133, 70143], "disallowed"], [[70144, 70161], "valid"], [[70162, 70162], "disallowed"], [[70163, 70199], "valid"], [[70200, 70205], "valid", [], "NV8"], [[70206, 70271], "disallowed"], [[70272, 70278], "valid"], [[70279, 70279], "disallowed"], [[70280, 70280], "valid"], [[70281, 70281], "disallowed"], [[70282, 70285], "valid"], [[70286, 70286], "disallowed"], [[70287, 70301], "valid"], [[70302, 70302], "disallowed"], [[70303, 70312], "valid"], [[70313, 70313], "valid", [], "NV8"], [[70314, 70319], "disallowed"], [[70320, 70378], "valid"], [[70379, 70383], "disallowed"], [[70384, 70393], "valid"], [[70394, 70399], "disallowed"], [[70400, 70400], "valid"], [[70401, 70403], "valid"], [[70404, 70404], "disallowed"], [[70405, 70412], "valid"], [[70413, 70414], "disallowed"], [[70415, 70416], "valid"], [[70417, 70418], "disallowed"], [[70419, 70440], "valid"], [[70441, 70441], "disallowed"], [[70442, 70448], "valid"], [[70449, 70449], "disallowed"], [[70450, 70451], "valid"], [[70452, 70452], "disallowed"], [[70453, 70457], "valid"], [[70458, 70459], "disallowed"], [[70460, 70468], "valid"], [[70469, 70470], "disallowed"], [[70471, 70472], "valid"], [[70473, 70474], "disallowed"], [[70475, 70477], "valid"], [[70478, 70479], "disallowed"], [[70480, 70480], "valid"], [[70481, 70486], "disallowed"], [[70487, 70487], "valid"], [[70488, 70492], "disallowed"], [[70493, 70499], "valid"], [[70500, 70501], "disallowed"], [[70502, 70508], "valid"], [[70509, 70511], "disallowed"], [[70512, 70516], "valid"], [[70517, 70783], "disallowed"], [[70784, 70853], "valid"], [[70854, 70854], "valid", [], "NV8"], [[70855, 70855], "valid"], [[70856, 70863], "disallowed"], [[70864, 70873], "valid"], [[70874, 71039], "disallowed"], [[71040, 71093], "valid"], [[71094, 71095], "disallowed"], [[71096, 71104], "valid"], [[71105, 71113], "valid", [], "NV8"], [[71114, 71127], "valid", [], "NV8"], [[71128, 71133], "valid"], [[71134, 71167], "disallowed"], [[71168, 71232], "valid"], [[71233, 71235], "valid", [], "NV8"], [[71236, 71236], "valid"], [[71237, 71247], "disallowed"], [[71248, 71257], "valid"], [[71258, 71295], "disallowed"], [[71296, 71351], "valid"], [[71352, 71359], "disallowed"], [[71360, 71369], "valid"], [[71370, 71423], "disallowed"], [[71424, 71449], "valid"], [[71450, 71452], "disallowed"], [[71453, 71467], "valid"], [[71468, 71471], "disallowed"], [[71472, 71481], "valid"], [[71482, 71487], "valid", [], "NV8"], [[71488, 71839], "disallowed"], [[71840, 71840], "mapped", [71872]], [[71841, 71841], "mapped", [71873]], [[71842, 71842], "mapped", [71874]], [[71843, 71843], "mapped", [71875]], [[71844, 71844], "mapped", [71876]], [[71845, 71845], "mapped", [71877]], [[71846, 71846], "mapped", [71878]], [[71847, 71847], "mapped", [71879]], [[71848, 71848], "mapped", [71880]], [[71849, 71849], "mapped", [71881]], [[71850, 71850], "mapped", [71882]], [[71851, 71851], "mapped", [71883]], [[71852, 71852], "mapped", [71884]], [[71853, 71853], "mapped", [71885]], [[71854, 71854], "mapped", [71886]], [[71855, 71855], "mapped", [71887]], [[71856, 71856], "mapped", [71888]], [[71857, 71857], "mapped", [71889]], [[71858, 71858], "mapped", [71890]], [[71859, 71859], "mapped", [71891]], [[71860, 71860], "mapped", [71892]], [[71861, 71861], "mapped", [71893]], [[71862, 71862], "mapped", [71894]], [[71863, 71863], "mapped", [71895]], [[71864, 71864], "mapped", [71896]], [[71865, 71865], "mapped", [71897]], [[71866, 71866], "mapped", [71898]], [[71867, 71867], "mapped", [71899]], [[71868, 71868], "mapped", [71900]], [[71869, 71869], "mapped", [71901]], [[71870, 71870], "mapped", [71902]], [[71871, 71871], "mapped", [71903]], [[71872, 71913], "valid"], [[71914, 71922], "valid", [], "NV8"], [[71923, 71934], "disallowed"], [[71935, 71935], "valid"], [[71936, 72383], "disallowed"], [[72384, 72440], "valid"], [[72441, 73727], "disallowed"], [[73728, 74606], "valid"], [[74607, 74648], "valid"], [[74649, 74649], "valid"], [[74650, 74751], "disallowed"], [[74752, 74850], "valid", [], "NV8"], [[74851, 74862], "valid", [], "NV8"], [[74863, 74863], "disallowed"], [[74864, 74867], "valid", [], "NV8"], [[74868, 74868], "valid", [], "NV8"], [[74869, 74879], "disallowed"], [[74880, 75075], "valid"], [[75076, 77823], "disallowed"], [[77824, 78894], "valid"], [[78895, 82943], "disallowed"], [[82944, 83526], "valid"], [[83527, 92159], "disallowed"], [[92160, 92728], "valid"], [[92729, 92735], "disallowed"], [[92736, 92766], "valid"], [[92767, 92767], "disallowed"], [[92768, 92777], "valid"], [[92778, 92781], "disallowed"], [[92782, 92783], "valid", [], "NV8"], [[92784, 92879], "disallowed"], [[92880, 92909], "valid"], [[92910, 92911], "disallowed"], [[92912, 92916], "valid"], [[92917, 92917], "valid", [], "NV8"], [[92918, 92927], "disallowed"], [[92928, 92982], "valid"], [[92983, 92991], "valid", [], "NV8"], [[92992, 92995], "valid"], [[92996, 92997], "valid", [], "NV8"], [[92998, 93007], "disallowed"], [[93008, 93017], "valid"], [[93018, 93018], "disallowed"], [[93019, 93025], "valid", [], "NV8"], [[93026, 93026], "disallowed"], [[93027, 93047], "valid"], [[93048, 93052], "disallowed"], [[93053, 93071], "valid"], [[93072, 93951], "disallowed"], [[93952, 94020], "valid"], [[94021, 94031], "disallowed"], [[94032, 94078], "valid"], [[94079, 94094], "disallowed"], [[94095, 94111], "valid"], [[94112, 110591], "disallowed"], [[110592, 110593], "valid"], [[110594, 113663], "disallowed"], [[113664, 113770], "valid"], [[113771, 113775], "disallowed"], [[113776, 113788], "valid"], [[113789, 113791], "disallowed"], [[113792, 113800], "valid"], [[113801, 113807], "disallowed"], [[113808, 113817], "valid"], [[113818, 113819], "disallowed"], [[113820, 113820], "valid", [], "NV8"], [[113821, 113822], "valid"], [[113823, 113823], "valid", [], "NV8"], [[113824, 113827], "ignored"], [[113828, 118783], "disallowed"], [[118784, 119029], "valid", [], "NV8"], [[119030, 119039], "disallowed"], [[119040, 119078], "valid", [], "NV8"], [[119079, 119080], "disallowed"], [[119081, 119081], "valid", [], "NV8"], [[119082, 119133], "valid", [], "NV8"], [[119134, 119134], "mapped", [119127, 119141]], [[119135, 119135], "mapped", [119128, 119141]], [[119136, 119136], "mapped", [119128, 119141, 119150]], [[119137, 119137], "mapped", [119128, 119141, 119151]], [[119138, 119138], "mapped", [119128, 119141, 119152]], [[119139, 119139], "mapped", [119128, 119141, 119153]], [[119140, 119140], "mapped", [119128, 119141, 119154]], [[119141, 119154], "valid", [], "NV8"], [[119155, 119162], "disallowed"], [[119163, 119226], "valid", [], "NV8"], [[119227, 119227], "mapped", [119225, 119141]], [[119228, 119228], "mapped", [119226, 119141]], [[119229, 119229], "mapped", [119225, 119141, 119150]], [[119230, 119230], "mapped", [119226, 119141, 119150]], [[119231, 119231], "mapped", [119225, 119141, 119151]], [[119232, 119232], "mapped", [119226, 119141, 119151]], [[119233, 119261], "valid", [], "NV8"], [[119262, 119272], "valid", [], "NV8"], [[119273, 119295], "disallowed"], [[119296, 119365], "valid", [], "NV8"], [[119366, 119551], "disallowed"], [[119552, 119638], "valid", [], "NV8"], [[119639, 119647], "disallowed"], [[119648, 119665], "valid", [], "NV8"], [[119666, 119807], "disallowed"], [[119808, 119808], "mapped", [97]], [[119809, 119809], "mapped", [98]], [[119810, 119810], "mapped", [99]], [[119811, 119811], "mapped", [100]], [[119812, 119812], "mapped", [101]], [[119813, 119813], "mapped", [102]], [[119814, 119814], "mapped", [103]], [[119815, 119815], "mapped", [104]], [[119816, 119816], "mapped", [105]], [[119817, 119817], "mapped", [106]], [[119818, 119818], "mapped", [107]], [[119819, 119819], "mapped", [108]], [[119820, 119820], "mapped", [109]], [[119821, 119821], "mapped", [110]], [[119822, 119822], "mapped", [111]], [[119823, 119823], "mapped", [112]], [[119824, 119824], "mapped", [113]], [[119825, 119825], "mapped", [114]], [[119826, 119826], "mapped", [115]], [[119827, 119827], "mapped", [116]], [[119828, 119828], "mapped", [117]], [[119829, 119829], "mapped", [118]], [[119830, 119830], "mapped", [119]], [[119831, 119831], "mapped", [120]], [[119832, 119832], "mapped", [121]], [[119833, 119833], "mapped", [122]], [[119834, 119834], "mapped", [97]], [[119835, 119835], "mapped", [98]], [[119836, 119836], "mapped", [99]], [[119837, 119837], "mapped", [100]], [[119838, 119838], "mapped", [101]], [[119839, 119839], "mapped", [102]], [[119840, 119840], "mapped", [103]], [[119841, 119841], "mapped", [104]], [[119842, 119842], "mapped", [105]], [[119843, 119843], "mapped", [106]], [[119844, 119844], "mapped", [107]], [[119845, 119845], "mapped", [108]], [[119846, 119846], "mapped", [109]], [[119847, 119847], "mapped", [110]], [[119848, 119848], "mapped", [111]], [[119849, 119849], "mapped", [112]], [[119850, 119850], "mapped", [113]], [[119851, 119851], "mapped", [114]], [[119852, 119852], "mapped", [115]], [[119853, 119853], "mapped", [116]], [[119854, 119854], "mapped", [117]], [[119855, 119855], "mapped", [118]], [[119856, 119856], "mapped", [119]], [[119857, 119857], "mapped", [120]], [[119858, 119858], "mapped", [121]], [[119859, 119859], "mapped", [122]], [[119860, 119860], "mapped", [97]], [[119861, 119861], "mapped", [98]], [[119862, 119862], "mapped", [99]], [[119863, 119863], "mapped", [100]], [[119864, 119864], "mapped", [101]], [[119865, 119865], "mapped", [102]], [[119866, 119866], "mapped", [103]], [[119867, 119867], "mapped", [104]], [[119868, 119868], "mapped", [105]], [[119869, 119869], "mapped", [106]], [[119870, 119870], "mapped", [107]], [[119871, 119871], "mapped", [108]], [[119872, 119872], "mapped", [109]], [[119873, 119873], "mapped", [110]], [[119874, 119874], "mapped", [111]], [[119875, 119875], "mapped", [112]], [[119876, 119876], "mapped", [113]], [[119877, 119877], "mapped", [114]], [[119878, 119878], "mapped", [115]], [[119879, 119879], "mapped", [116]], [[119880, 119880], "mapped", [117]], [[119881, 119881], "mapped", [118]], [[119882, 119882], "mapped", [119]], [[119883, 119883], "mapped", [120]], [[119884, 119884], "mapped", [121]], [[119885, 119885], "mapped", [122]], [[119886, 119886], "mapped", [97]], [[119887, 119887], "mapped", [98]], [[119888, 119888], "mapped", [99]], [[119889, 119889], "mapped", [100]], [[119890, 119890], "mapped", [101]], [[119891, 119891], "mapped", [102]], [[119892, 119892], "mapped", [103]], [[119893, 119893], "disallowed"], [[119894, 119894], "mapped", [105]], [[119895, 119895], "mapped", [106]], [[119896, 119896], "mapped", [107]], [[119897, 119897], "mapped", [108]], [[119898, 119898], "mapped", [109]], [[119899, 119899], "mapped", [110]], [[119900, 119900], "mapped", [111]], [[119901, 119901], "mapped", [112]], [[119902, 119902], "mapped", [113]], [[119903, 119903], "mapped", [114]], [[119904, 119904], "mapped", [115]], [[119905, 119905], "mapped", [116]], [[119906, 119906], "mapped", [117]], [[119907, 119907], "mapped", [118]], [[119908, 119908], "mapped", [119]], [[119909, 119909], "mapped", [120]], [[119910, 119910], "mapped", [121]], [[119911, 119911], "mapped", [122]], [[119912, 119912], "mapped", [97]], [[119913, 119913], "mapped", [98]], [[119914, 119914], "mapped", [99]], [[119915, 119915], "mapped", [100]], [[119916, 119916], "mapped", [101]], [[119917, 119917], "mapped", [102]], [[119918, 119918], "mapped", [103]], [[119919, 119919], "mapped", [104]], [[119920, 119920], "mapped", [105]], [[119921, 119921], "mapped", [106]], [[119922, 119922], "mapped", [107]], [[119923, 119923], "mapped", [108]], [[119924, 119924], "mapped", [109]], [[119925, 119925], "mapped", [110]], [[119926, 119926], "mapped", [111]], [[119927, 119927], "mapped", [112]], [[119928, 119928], "mapped", [113]], [[119929, 119929], "mapped", [114]], [[119930, 119930], "mapped", [115]], [[119931, 119931], "mapped", [116]], [[119932, 119932], "mapped", [117]], [[119933, 119933], "mapped", [118]], [[119934, 119934], "mapped", [119]], [[119935, 119935], "mapped", [120]], [[119936, 119936], "mapped", [121]], [[119937, 119937], "mapped", [122]], [[119938, 119938], "mapped", [97]], [[119939, 119939], "mapped", [98]], [[119940, 119940], "mapped", [99]], [[119941, 119941], "mapped", [100]], [[119942, 119942], "mapped", [101]], [[119943, 119943], "mapped", [102]], [[119944, 119944], "mapped", [103]], [[119945, 119945], "mapped", [104]], [[119946, 119946], "mapped", [105]], [[119947, 119947], "mapped", [106]], [[119948, 119948], "mapped", [107]], [[119949, 119949], "mapped", [108]], [[119950, 119950], "mapped", [109]], [[119951, 119951], "mapped", [110]], [[119952, 119952], "mapped", [111]], [[119953, 119953], "mapped", [112]], [[119954, 119954], "mapped", [113]], [[119955, 119955], "mapped", [114]], [[119956, 119956], "mapped", [115]], [[119957, 119957], "mapped", [116]], [[119958, 119958], "mapped", [117]], [[119959, 119959], "mapped", [118]], [[119960, 119960], "mapped", [119]], [[119961, 119961], "mapped", [120]], [[119962, 119962], "mapped", [121]], [[119963, 119963], "mapped", [122]], [[119964, 119964], "mapped", [97]], [[119965, 119965], "disallowed"], [[119966, 119966], "mapped", [99]], [[119967, 119967], "mapped", [100]], [[119968, 119969], "disallowed"], [[119970, 119970], "mapped", [103]], [[119971, 119972], "disallowed"], [[119973, 119973], "mapped", [106]], [[119974, 119974], "mapped", [107]], [[119975, 119976], "disallowed"], [[119977, 119977], "mapped", [110]], [[119978, 119978], "mapped", [111]], [[119979, 119979], "mapped", [112]], [[119980, 119980], "mapped", [113]], [[119981, 119981], "disallowed"], [[119982, 119982], "mapped", [115]], [[119983, 119983], "mapped", [116]], [[119984, 119984], "mapped", [117]], [[119985, 119985], "mapped", [118]], [[119986, 119986], "mapped", [119]], [[119987, 119987], "mapped", [120]], [[119988, 119988], "mapped", [121]], [[119989, 119989], "mapped", [122]], [[119990, 119990], "mapped", [97]], [[119991, 119991], "mapped", [98]], [[119992, 119992], "mapped", [99]], [[119993, 119993], "mapped", [100]], [[119994, 119994], "disallowed"], [[119995, 119995], "mapped", [102]], [[119996, 119996], "disallowed"], [[119997, 119997], "mapped", [104]], [[119998, 119998], "mapped", [105]], [[119999, 119999], "mapped", [106]], [[12e4, 12e4], "mapped", [107]], [[120001, 120001], "mapped", [108]], [[120002, 120002], "mapped", [109]], [[120003, 120003], "mapped", [110]], [[120004, 120004], "disallowed"], [[120005, 120005], "mapped", [112]], [[120006, 120006], "mapped", [113]], [[120007, 120007], "mapped", [114]], [[120008, 120008], "mapped", [115]], [[120009, 120009], "mapped", [116]], [[120010, 120010], "mapped", [117]], [[120011, 120011], "mapped", [118]], [[120012, 120012], "mapped", [119]], [[120013, 120013], "mapped", [120]], [[120014, 120014], "mapped", [121]], [[120015, 120015], "mapped", [122]], [[120016, 120016], "mapped", [97]], [[120017, 120017], "mapped", [98]], [[120018, 120018], "mapped", [99]], [[120019, 120019], "mapped", [100]], [[120020, 120020], "mapped", [101]], [[120021, 120021], "mapped", [102]], [[120022, 120022], "mapped", [103]], [[120023, 120023], "mapped", [104]], [[120024, 120024], "mapped", [105]], [[120025, 120025], "mapped", [106]], [[120026, 120026], "mapped", [107]], [[120027, 120027], "mapped", [108]], [[120028, 120028], "mapped", [109]], [[120029, 120029], "mapped", [110]], [[120030, 120030], "mapped", [111]], [[120031, 120031], "mapped", [112]], [[120032, 120032], "mapped", [113]], [[120033, 120033], "mapped", [114]], [[120034, 120034], "mapped", [115]], [[120035, 120035], "mapped", [116]], [[120036, 120036], "mapped", [117]], [[120037, 120037], "mapped", [118]], [[120038, 120038], "mapped", [119]], [[120039, 120039], "mapped", [120]], [[120040, 120040], "mapped", [121]], [[120041, 120041], "mapped", [122]], [[120042, 120042], "mapped", [97]], [[120043, 120043], "mapped", [98]], [[120044, 120044], "mapped", [99]], [[120045, 120045], "mapped", [100]], [[120046, 120046], "mapped", [101]], [[120047, 120047], "mapped", [102]], [[120048, 120048], "mapped", [103]], [[120049, 120049], "mapped", [104]], [[120050, 120050], "mapped", [105]], [[120051, 120051], "mapped", [106]], [[120052, 120052], "mapped", [107]], [[120053, 120053], "mapped", [108]], [[120054, 120054], "mapped", [109]], [[120055, 120055], "mapped", [110]], [[120056, 120056], "mapped", [111]], [[120057, 120057], "mapped", [112]], [[120058, 120058], "mapped", [113]], [[120059, 120059], "mapped", [114]], [[120060, 120060], "mapped", [115]], [[120061, 120061], "mapped", [116]], [[120062, 120062], "mapped", [117]], [[120063, 120063], "mapped", [118]], [[120064, 120064], "mapped", [119]], [[120065, 120065], "mapped", [120]], [[120066, 120066], "mapped", [121]], [[120067, 120067], "mapped", [122]], [[120068, 120068], "mapped", [97]], [[120069, 120069], "mapped", [98]], [[120070, 120070], "disallowed"], [[120071, 120071], "mapped", [100]], [[120072, 120072], "mapped", [101]], [[120073, 120073], "mapped", [102]], [[120074, 120074], "mapped", [103]], [[120075, 120076], "disallowed"], [[120077, 120077], "mapped", [106]], [[120078, 120078], "mapped", [107]], [[120079, 120079], "mapped", [108]], [[120080, 120080], "mapped", [109]], [[120081, 120081], "mapped", [110]], [[120082, 120082], "mapped", [111]], [[120083, 120083], "mapped", [112]], [[120084, 120084], "mapped", [113]], [[120085, 120085], "disallowed"], [[120086, 120086], "mapped", [115]], [[120087, 120087], "mapped", [116]], [[120088, 120088], "mapped", [117]], [[120089, 120089], "mapped", [118]], [[120090, 120090], "mapped", [119]], [[120091, 120091], "mapped", [120]], [[120092, 120092], "mapped", [121]], [[120093, 120093], "disallowed"], [[120094, 120094], "mapped", [97]], [[120095, 120095], "mapped", [98]], [[120096, 120096], "mapped", [99]], [[120097, 120097], "mapped", [100]], [[120098, 120098], "mapped", [101]], [[120099, 120099], "mapped", [102]], [[120100, 120100], "mapped", [103]], [[120101, 120101], "mapped", [104]], [[120102, 120102], "mapped", [105]], [[120103, 120103], "mapped", [106]], [[120104, 120104], "mapped", [107]], [[120105, 120105], "mapped", [108]], [[120106, 120106], "mapped", [109]], [[120107, 120107], "mapped", [110]], [[120108, 120108], "mapped", [111]], [[120109, 120109], "mapped", [112]], [[120110, 120110], "mapped", [113]], [[120111, 120111], "mapped", [114]], [[120112, 120112], "mapped", [115]], [[120113, 120113], "mapped", [116]], [[120114, 120114], "mapped", [117]], [[120115, 120115], "mapped", [118]], [[120116, 120116], "mapped", [119]], [[120117, 120117], "mapped", [120]], [[120118, 120118], "mapped", [121]], [[120119, 120119], "mapped", [122]], [[120120, 120120], "mapped", [97]], [[120121, 120121], "mapped", [98]], [[120122, 120122], "disallowed"], [[120123, 120123], "mapped", [100]], [[120124, 120124], "mapped", [101]], [[120125, 120125], "mapped", [102]], [[120126, 120126], "mapped", [103]], [[120127, 120127], "disallowed"], [[120128, 120128], "mapped", [105]], [[120129, 120129], "mapped", [106]], [[120130, 120130], "mapped", [107]], [[120131, 120131], "mapped", [108]], [[120132, 120132], "mapped", [109]], [[120133, 120133], "disallowed"], [[120134, 120134], "mapped", [111]], [[120135, 120137], "disallowed"], [[120138, 120138], "mapped", [115]], [[120139, 120139], "mapped", [116]], [[120140, 120140], "mapped", [117]], [[120141, 120141], "mapped", [118]], [[120142, 120142], "mapped", [119]], [[120143, 120143], "mapped", [120]], [[120144, 120144], "mapped", [121]], [[120145, 120145], "disallowed"], [[120146, 120146], "mapped", [97]], [[120147, 120147], "mapped", [98]], [[120148, 120148], "mapped", [99]], [[120149, 120149], "mapped", [100]], [[120150, 120150], "mapped", [101]], [[120151, 120151], "mapped", [102]], [[120152, 120152], "mapped", [103]], [[120153, 120153], "mapped", [104]], [[120154, 120154], "mapped", [105]], [[120155, 120155], "mapped", [106]], [[120156, 120156], "mapped", [107]], [[120157, 120157], "mapped", [108]], [[120158, 120158], "mapped", [109]], [[120159, 120159], "mapped", [110]], [[120160, 120160], "mapped", [111]], [[120161, 120161], "mapped", [112]], [[120162, 120162], "mapped", [113]], [[120163, 120163], "mapped", [114]], [[120164, 120164], "mapped", [115]], [[120165, 120165], "mapped", [116]], [[120166, 120166], "mapped", [117]], [[120167, 120167], "mapped", [118]], [[120168, 120168], "mapped", [119]], [[120169, 120169], "mapped", [120]], [[120170, 120170], "mapped", [121]], [[120171, 120171], "mapped", [122]], [[120172, 120172], "mapped", [97]], [[120173, 120173], "mapped", [98]], [[120174, 120174], "mapped", [99]], [[120175, 120175], "mapped", [100]], [[120176, 120176], "mapped", [101]], [[120177, 120177], "mapped", [102]], [[120178, 120178], "mapped", [103]], [[120179, 120179], "mapped", [104]], [[120180, 120180], "mapped", [105]], [[120181, 120181], "mapped", [106]], [[120182, 120182], "mapped", [107]], [[120183, 120183], "mapped", [108]], [[120184, 120184], "mapped", [109]], [[120185, 120185], "mapped", [110]], [[120186, 120186], "mapped", [111]], [[120187, 120187], "mapped", [112]], [[120188, 120188], "mapped", [113]], [[120189, 120189], "mapped", [114]], [[120190, 120190], "mapped", [115]], [[120191, 120191], "mapped", [116]], [[120192, 120192], "mapped", [117]], [[120193, 120193], "mapped", [118]], [[120194, 120194], "mapped", [119]], [[120195, 120195], "mapped", [120]], [[120196, 120196], "mapped", [121]], [[120197, 120197], "mapped", [122]], [[120198, 120198], "mapped", [97]], [[120199, 120199], "mapped", [98]], [[120200, 120200], "mapped", [99]], [[120201, 120201], "mapped", [100]], [[120202, 120202], "mapped", [101]], [[120203, 120203], "mapped", [102]], [[120204, 120204], "mapped", [103]], [[120205, 120205], "mapped", [104]], [[120206, 120206], "mapped", [105]], [[120207, 120207], "mapped", [106]], [[120208, 120208], "mapped", [107]], [[120209, 120209], "mapped", [108]], [[120210, 120210], "mapped", [109]], [[120211, 120211], "mapped", [110]], [[120212, 120212], "mapped", [111]], [[120213, 120213], "mapped", [112]], [[120214, 120214], "mapped", [113]], [[120215, 120215], "mapped", [114]], [[120216, 120216], "mapped", [115]], [[120217, 120217], "mapped", [116]], [[120218, 120218], "mapped", [117]], [[120219, 120219], "mapped", [118]], [[120220, 120220], "mapped", [119]], [[120221, 120221], "mapped", [120]], [[120222, 120222], "mapped", [121]], [[120223, 120223], "mapped", [122]], [[120224, 120224], "mapped", [97]], [[120225, 120225], "mapped", [98]], [[120226, 120226], "mapped", [99]], [[120227, 120227], "mapped", [100]], [[120228, 120228], "mapped", [101]], [[120229, 120229], "mapped", [102]], [[120230, 120230], "mapped", [103]], [[120231, 120231], "mapped", [104]], [[120232, 120232], "mapped", [105]], [[120233, 120233], "mapped", [106]], [[120234, 120234], "mapped", [107]], [[120235, 120235], "mapped", [108]], [[120236, 120236], "mapped", [109]], [[120237, 120237], "mapped", [110]], [[120238, 120238], "mapped", [111]], [[120239, 120239], "mapped", [112]], [[120240, 120240], "mapped", [113]], [[120241, 120241], "mapped", [114]], [[120242, 120242], "mapped", [115]], [[120243, 120243], "mapped", [116]], [[120244, 120244], "mapped", [117]], [[120245, 120245], "mapped", [118]], [[120246, 120246], "mapped", [119]], [[120247, 120247], "mapped", [120]], [[120248, 120248], "mapped", [121]], [[120249, 120249], "mapped", [122]], [[120250, 120250], "mapped", [97]], [[120251, 120251], "mapped", [98]], [[120252, 120252], "mapped", [99]], [[120253, 120253], "mapped", [100]], [[120254, 120254], "mapped", [101]], [[120255, 120255], "mapped", [102]], [[120256, 120256], "mapped", [103]], [[120257, 120257], "mapped", [104]], [[120258, 120258], "mapped", [105]], [[120259, 120259], "mapped", [106]], [[120260, 120260], "mapped", [107]], [[120261, 120261], "mapped", [108]], [[120262, 120262], "mapped", [109]], [[120263, 120263], "mapped", [110]], [[120264, 120264], "mapped", [111]], [[120265, 120265], "mapped", [112]], [[120266, 120266], "mapped", [113]], [[120267, 120267], "mapped", [114]], [[120268, 120268], "mapped", [115]], [[120269, 120269], "mapped", [116]], [[120270, 120270], "mapped", [117]], [[120271, 120271], "mapped", [118]], [[120272, 120272], "mapped", [119]], [[120273, 120273], "mapped", [120]], [[120274, 120274], "mapped", [121]], [[120275, 120275], "mapped", [122]], [[120276, 120276], "mapped", [97]], [[120277, 120277], "mapped", [98]], [[120278, 120278], "mapped", [99]], [[120279, 120279], "mapped", [100]], [[120280, 120280], "mapped", [101]], [[120281, 120281], "mapped", [102]], [[120282, 120282], "mapped", [103]], [[120283, 120283], "mapped", [104]], [[120284, 120284], "mapped", [105]], [[120285, 120285], "mapped", [106]], [[120286, 120286], "mapped", [107]], [[120287, 120287], "mapped", [108]], [[120288, 120288], "mapped", [109]], [[120289, 120289], "mapped", [110]], [[120290, 120290], "mapped", [111]], [[120291, 120291], "mapped", [112]], [[120292, 120292], "mapped", [113]], [[120293, 120293], "mapped", [114]], [[120294, 120294], "mapped", [115]], [[120295, 120295], "mapped", [116]], [[120296, 120296], "mapped", [117]], [[120297, 120297], "mapped", [118]], [[120298, 120298], "mapped", [119]], [[120299, 120299], "mapped", [120]], [[120300, 120300], "mapped", [121]], [[120301, 120301], "mapped", [122]], [[120302, 120302], "mapped", [97]], [[120303, 120303], "mapped", [98]], [[120304, 120304], "mapped", [99]], [[120305, 120305], "mapped", [100]], [[120306, 120306], "mapped", [101]], [[120307, 120307], "mapped", [102]], [[120308, 120308], "mapped", [103]], [[120309, 120309], "mapped", [104]], [[120310, 120310], "mapped", [105]], [[120311, 120311], "mapped", [106]], [[120312, 120312], "mapped", [107]], [[120313, 120313], "mapped", [108]], [[120314, 120314], "mapped", [109]], [[120315, 120315], "mapped", [110]], [[120316, 120316], "mapped", [111]], [[120317, 120317], "mapped", [112]], [[120318, 120318], "mapped", [113]], [[120319, 120319], "mapped", [114]], [[120320, 120320], "mapped", [115]], [[120321, 120321], "mapped", [116]], [[120322, 120322], "mapped", [117]], [[120323, 120323], "mapped", [118]], [[120324, 120324], "mapped", [119]], [[120325, 120325], "mapped", [120]], [[120326, 120326], "mapped", [121]], [[120327, 120327], "mapped", [122]], [[120328, 120328], "mapped", [97]], [[120329, 120329], "mapped", [98]], [[120330, 120330], "mapped", [99]], [[120331, 120331], "mapped", [100]], [[120332, 120332], "mapped", [101]], [[120333, 120333], "mapped", [102]], [[120334, 120334], "mapped", [103]], [[120335, 120335], "mapped", [104]], [[120336, 120336], "mapped", [105]], [[120337, 120337], "mapped", [106]], [[120338, 120338], "mapped", [107]], [[120339, 120339], "mapped", [108]], [[120340, 120340], "mapped", [109]], [[120341, 120341], "mapped", [110]], [[120342, 120342], "mapped", [111]], [[120343, 120343], "mapped", [112]], [[120344, 120344], "mapped", [113]], [[120345, 120345], "mapped", [114]], [[120346, 120346], "mapped", [115]], [[120347, 120347], "mapped", [116]], [[120348, 120348], "mapped", [117]], [[120349, 120349], "mapped", [118]], [[120350, 120350], "mapped", [119]], [[120351, 120351], "mapped", [120]], [[120352, 120352], "mapped", [121]], [[120353, 120353], "mapped", [122]], [[120354, 120354], "mapped", [97]], [[120355, 120355], "mapped", [98]], [[120356, 120356], "mapped", [99]], [[120357, 120357], "mapped", [100]], [[120358, 120358], "mapped", [101]], [[120359, 120359], "mapped", [102]], [[120360, 120360], "mapped", [103]], [[120361, 120361], "mapped", [104]], [[120362, 120362], "mapped", [105]], [[120363, 120363], "mapped", [106]], [[120364, 120364], "mapped", [107]], [[120365, 120365], "mapped", [108]], [[120366, 120366], "mapped", [109]], [[120367, 120367], "mapped", [110]], [[120368, 120368], "mapped", [111]], [[120369, 120369], "mapped", [112]], [[120370, 120370], "mapped", [113]], [[120371, 120371], "mapped", [114]], [[120372, 120372], "mapped", [115]], [[120373, 120373], "mapped", [116]], [[120374, 120374], "mapped", [117]], [[120375, 120375], "mapped", [118]], [[120376, 120376], "mapped", [119]], [[120377, 120377], "mapped", [120]], [[120378, 120378], "mapped", [121]], [[120379, 120379], "mapped", [122]], [[120380, 120380], "mapped", [97]], [[120381, 120381], "mapped", [98]], [[120382, 120382], "mapped", [99]], [[120383, 120383], "mapped", [100]], [[120384, 120384], "mapped", [101]], [[120385, 120385], "mapped", [102]], [[120386, 120386], "mapped", [103]], [[120387, 120387], "mapped", [104]], [[120388, 120388], "mapped", [105]], [[120389, 120389], "mapped", [106]], [[120390, 120390], "mapped", [107]], [[120391, 120391], "mapped", [108]], [[120392, 120392], "mapped", [109]], [[120393, 120393], "mapped", [110]], [[120394, 120394], "mapped", [111]], [[120395, 120395], "mapped", [112]], [[120396, 120396], "mapped", [113]], [[120397, 120397], "mapped", [114]], [[120398, 120398], "mapped", [115]], [[120399, 120399], "mapped", [116]], [[120400, 120400], "mapped", [117]], [[120401, 120401], "mapped", [118]], [[120402, 120402], "mapped", [119]], [[120403, 120403], "mapped", [120]], [[120404, 120404], "mapped", [121]], [[120405, 120405], "mapped", [122]], [[120406, 120406], "mapped", [97]], [[120407, 120407], "mapped", [98]], [[120408, 120408], "mapped", [99]], [[120409, 120409], "mapped", [100]], [[120410, 120410], "mapped", [101]], [[120411, 120411], "mapped", [102]], [[120412, 120412], "mapped", [103]], [[120413, 120413], "mapped", [104]], [[120414, 120414], "mapped", [105]], [[120415, 120415], "mapped", [106]], [[120416, 120416], "mapped", [107]], [[120417, 120417], "mapped", [108]], [[120418, 120418], "mapped", [109]], [[120419, 120419], "mapped", [110]], [[120420, 120420], "mapped", [111]], [[120421, 120421], "mapped", [112]], [[120422, 120422], "mapped", [113]], [[120423, 120423], "mapped", [114]], [[120424, 120424], "mapped", [115]], [[120425, 120425], "mapped", [116]], [[120426, 120426], "mapped", [117]], [[120427, 120427], "mapped", [118]], [[120428, 120428], "mapped", [119]], [[120429, 120429], "mapped", [120]], [[120430, 120430], "mapped", [121]], [[120431, 120431], "mapped", [122]], [[120432, 120432], "mapped", [97]], [[120433, 120433], "mapped", [98]], [[120434, 120434], "mapped", [99]], [[120435, 120435], "mapped", [100]], [[120436, 120436], "mapped", [101]], [[120437, 120437], "mapped", [102]], [[120438, 120438], "mapped", [103]], [[120439, 120439], "mapped", [104]], [[120440, 120440], "mapped", [105]], [[120441, 120441], "mapped", [106]], [[120442, 120442], "mapped", [107]], [[120443, 120443], "mapped", [108]], [[120444, 120444], "mapped", [109]], [[120445, 120445], "mapped", [110]], [[120446, 120446], "mapped", [111]], [[120447, 120447], "mapped", [112]], [[120448, 120448], "mapped", [113]], [[120449, 120449], "mapped", [114]], [[120450, 120450], "mapped", [115]], [[120451, 120451], "mapped", [116]], [[120452, 120452], "mapped", [117]], [[120453, 120453], "mapped", [118]], [[120454, 120454], "mapped", [119]], [[120455, 120455], "mapped", [120]], [[120456, 120456], "mapped", [121]], [[120457, 120457], "mapped", [122]], [[120458, 120458], "mapped", [97]], [[120459, 120459], "mapped", [98]], [[120460, 120460], "mapped", [99]], [[120461, 120461], "mapped", [100]], [[120462, 120462], "mapped", [101]], [[120463, 120463], "mapped", [102]], [[120464, 120464], "mapped", [103]], [[120465, 120465], "mapped", [104]], [[120466, 120466], "mapped", [105]], [[120467, 120467], "mapped", [106]], [[120468, 120468], "mapped", [107]], [[120469, 120469], "mapped", [108]], [[120470, 120470], "mapped", [109]], [[120471, 120471], "mapped", [110]], [[120472, 120472], "mapped", [111]], [[120473, 120473], "mapped", [112]], [[120474, 120474], "mapped", [113]], [[120475, 120475], "mapped", [114]], [[120476, 120476], "mapped", [115]], [[120477, 120477], "mapped", [116]], [[120478, 120478], "mapped", [117]], [[120479, 120479], "mapped", [118]], [[120480, 120480], "mapped", [119]], [[120481, 120481], "mapped", [120]], [[120482, 120482], "mapped", [121]], [[120483, 120483], "mapped", [122]], [[120484, 120484], "mapped", [305]], [[120485, 120485], "mapped", [567]], [[120486, 120487], "disallowed"], [[120488, 120488], "mapped", [945]], [[120489, 120489], "mapped", [946]], [[120490, 120490], "mapped", [947]], [[120491, 120491], "mapped", [948]], [[120492, 120492], "mapped", [949]], [[120493, 120493], "mapped", [950]], [[120494, 120494], "mapped", [951]], [[120495, 120495], "mapped", [952]], [[120496, 120496], "mapped", [953]], [[120497, 120497], "mapped", [954]], [[120498, 120498], "mapped", [955]], [[120499, 120499], "mapped", [956]], [[120500, 120500], "mapped", [957]], [[120501, 120501], "mapped", [958]], [[120502, 120502], "mapped", [959]], [[120503, 120503], "mapped", [960]], [[120504, 120504], "mapped", [961]], [[120505, 120505], "mapped", [952]], [[120506, 120506], "mapped", [963]], [[120507, 120507], "mapped", [964]], [[120508, 120508], "mapped", [965]], [[120509, 120509], "mapped", [966]], [[120510, 120510], "mapped", [967]], [[120511, 120511], "mapped", [968]], [[120512, 120512], "mapped", [969]], [[120513, 120513], "mapped", [8711]], [[120514, 120514], "mapped", [945]], [[120515, 120515], "mapped", [946]], [[120516, 120516], "mapped", [947]], [[120517, 120517], "mapped", [948]], [[120518, 120518], "mapped", [949]], [[120519, 120519], "mapped", [950]], [[120520, 120520], "mapped", [951]], [[120521, 120521], "mapped", [952]], [[120522, 120522], "mapped", [953]], [[120523, 120523], "mapped", [954]], [[120524, 120524], "mapped", [955]], [[120525, 120525], "mapped", [956]], [[120526, 120526], "mapped", [957]], [[120527, 120527], "mapped", [958]], [[120528, 120528], "mapped", [959]], [[120529, 120529], "mapped", [960]], [[120530, 120530], "mapped", [961]], [[120531, 120532], "mapped", [963]], [[120533, 120533], "mapped", [964]], [[120534, 120534], "mapped", [965]], [[120535, 120535], "mapped", [966]], [[120536, 120536], "mapped", [967]], [[120537, 120537], "mapped", [968]], [[120538, 120538], "mapped", [969]], [[120539, 120539], "mapped", [8706]], [[120540, 120540], "mapped", [949]], [[120541, 120541], "mapped", [952]], [[120542, 120542], "mapped", [954]], [[120543, 120543], "mapped", [966]], [[120544, 120544], "mapped", [961]], [[120545, 120545], "mapped", [960]], [[120546, 120546], "mapped", [945]], [[120547, 120547], "mapped", [946]], [[120548, 120548], "mapped", [947]], [[120549, 120549], "mapped", [948]], [[120550, 120550], "mapped", [949]], [[120551, 120551], "mapped", [950]], [[120552, 120552], "mapped", [951]], [[120553, 120553], "mapped", [952]], [[120554, 120554], "mapped", [953]], [[120555, 120555], "mapped", [954]], [[120556, 120556], "mapped", [955]], [[120557, 120557], "mapped", [956]], [[120558, 120558], "mapped", [957]], [[120559, 120559], "mapped", [958]], [[120560, 120560], "mapped", [959]], [[120561, 120561], "mapped", [960]], [[120562, 120562], "mapped", [961]], [[120563, 120563], "mapped", [952]], [[120564, 120564], "mapped", [963]], [[120565, 120565], "mapped", [964]], [[120566, 120566], "mapped", [965]], [[120567, 120567], "mapped", [966]], [[120568, 120568], "mapped", [967]], [[120569, 120569], "mapped", [968]], [[120570, 120570], "mapped", [969]], [[120571, 120571], "mapped", [8711]], [[120572, 120572], "mapped", [945]], [[120573, 120573], "mapped", [946]], [[120574, 120574], "mapped", [947]], [[120575, 120575], "mapped", [948]], [[120576, 120576], "mapped", [949]], [[120577, 120577], "mapped", [950]], [[120578, 120578], "mapped", [951]], [[120579, 120579], "mapped", [952]], [[120580, 120580], "mapped", [953]], [[120581, 120581], "mapped", [954]], [[120582, 120582], "mapped", [955]], [[120583, 120583], "mapped", [956]], [[120584, 120584], "mapped", [957]], [[120585, 120585], "mapped", [958]], [[120586, 120586], "mapped", [959]], [[120587, 120587], "mapped", [960]], [[120588, 120588], "mapped", [961]], [[120589, 120590], "mapped", [963]], [[120591, 120591], "mapped", [964]], [[120592, 120592], "mapped", [965]], [[120593, 120593], "mapped", [966]], [[120594, 120594], "mapped", [967]], [[120595, 120595], "mapped", [968]], [[120596, 120596], "mapped", [969]], [[120597, 120597], "mapped", [8706]], [[120598, 120598], "mapped", [949]], [[120599, 120599], "mapped", [952]], [[120600, 120600], "mapped", [954]], [[120601, 120601], "mapped", [966]], [[120602, 120602], "mapped", [961]], [[120603, 120603], "mapped", [960]], [[120604, 120604], "mapped", [945]], [[120605, 120605], "mapped", [946]], [[120606, 120606], "mapped", [947]], [[120607, 120607], "mapped", [948]], [[120608, 120608], "mapped", [949]], [[120609, 120609], "mapped", [950]], [[120610, 120610], "mapped", [951]], [[120611, 120611], "mapped", [952]], [[120612, 120612], "mapped", [953]], [[120613, 120613], "mapped", [954]], [[120614, 120614], "mapped", [955]], [[120615, 120615], "mapped", [956]], [[120616, 120616], "mapped", [957]], [[120617, 120617], "mapped", [958]], [[120618, 120618], "mapped", [959]], [[120619, 120619], "mapped", [960]], [[120620, 120620], "mapped", [961]], [[120621, 120621], "mapped", [952]], [[120622, 120622], "mapped", [963]], [[120623, 120623], "mapped", [964]], [[120624, 120624], "mapped", [965]], [[120625, 120625], "mapped", [966]], [[120626, 120626], "mapped", [967]], [[120627, 120627], "mapped", [968]], [[120628, 120628], "mapped", [969]], [[120629, 120629], "mapped", [8711]], [[120630, 120630], "mapped", [945]], [[120631, 120631], "mapped", [946]], [[120632, 120632], "mapped", [947]], [[120633, 120633], "mapped", [948]], [[120634, 120634], "mapped", [949]], [[120635, 120635], "mapped", [950]], [[120636, 120636], "mapped", [951]], [[120637, 120637], "mapped", [952]], [[120638, 120638], "mapped", [953]], [[120639, 120639], "mapped", [954]], [[120640, 120640], "mapped", [955]], [[120641, 120641], "mapped", [956]], [[120642, 120642], "mapped", [957]], [[120643, 120643], "mapped", [958]], [[120644, 120644], "mapped", [959]], [[120645, 120645], "mapped", [960]], [[120646, 120646], "mapped", [961]], [[120647, 120648], "mapped", [963]], [[120649, 120649], "mapped", [964]], [[120650, 120650], "mapped", [965]], [[120651, 120651], "mapped", [966]], [[120652, 120652], "mapped", [967]], [[120653, 120653], "mapped", [968]], [[120654, 120654], "mapped", [969]], [[120655, 120655], "mapped", [8706]], [[120656, 120656], "mapped", [949]], [[120657, 120657], "mapped", [952]], [[120658, 120658], "mapped", [954]], [[120659, 120659], "mapped", [966]], [[120660, 120660], "mapped", [961]], [[120661, 120661], "mapped", [960]], [[120662, 120662], "mapped", [945]], [[120663, 120663], "mapped", [946]], [[120664, 120664], "mapped", [947]], [[120665, 120665], "mapped", [948]], [[120666, 120666], "mapped", [949]], [[120667, 120667], "mapped", [950]], [[120668, 120668], "mapped", [951]], [[120669, 120669], "mapped", [952]], [[120670, 120670], "mapped", [953]], [[120671, 120671], "mapped", [954]], [[120672, 120672], "mapped", [955]], [[120673, 120673], "mapped", [956]], [[120674, 120674], "mapped", [957]], [[120675, 120675], "mapped", [958]], [[120676, 120676], "mapped", [959]], [[120677, 120677], "mapped", [960]], [[120678, 120678], "mapped", [961]], [[120679, 120679], "mapped", [952]], [[120680, 120680], "mapped", [963]], [[120681, 120681], "mapped", [964]], [[120682, 120682], "mapped", [965]], [[120683, 120683], "mapped", [966]], [[120684, 120684], "mapped", [967]], [[120685, 120685], "mapped", [968]], [[120686, 120686], "mapped", [969]], [[120687, 120687], "mapped", [8711]], [[120688, 120688], "mapped", [945]], [[120689, 120689], "mapped", [946]], [[120690, 120690], "mapped", [947]], [[120691, 120691], "mapped", [948]], [[120692, 120692], "mapped", [949]], [[120693, 120693], "mapped", [950]], [[120694, 120694], "mapped", [951]], [[120695, 120695], "mapped", [952]], [[120696, 120696], "mapped", [953]], [[120697, 120697], "mapped", [954]], [[120698, 120698], "mapped", [955]], [[120699, 120699], "mapped", [956]], [[120700, 120700], "mapped", [957]], [[120701, 120701], "mapped", [958]], [[120702, 120702], "mapped", [959]], [[120703, 120703], "mapped", [960]], [[120704, 120704], "mapped", [961]], [[120705, 120706], "mapped", [963]], [[120707, 120707], "mapped", [964]], [[120708, 120708], "mapped", [965]], [[120709, 120709], "mapped", [966]], [[120710, 120710], "mapped", [967]], [[120711, 120711], "mapped", [968]], [[120712, 120712], "mapped", [969]], [[120713, 120713], "mapped", [8706]], [[120714, 120714], "mapped", [949]], [[120715, 120715], "mapped", [952]], [[120716, 120716], "mapped", [954]], [[120717, 120717], "mapped", [966]], [[120718, 120718], "mapped", [961]], [[120719, 120719], "mapped", [960]], [[120720, 120720], "mapped", [945]], [[120721, 120721], "mapped", [946]], [[120722, 120722], "mapped", [947]], [[120723, 120723], "mapped", [948]], [[120724, 120724], "mapped", [949]], [[120725, 120725], "mapped", [950]], [[120726, 120726], "mapped", [951]], [[120727, 120727], "mapped", [952]], [[120728, 120728], "mapped", [953]], [[120729, 120729], "mapped", [954]], [[120730, 120730], "mapped", [955]], [[120731, 120731], "mapped", [956]], [[120732, 120732], "mapped", [957]], [[120733, 120733], "mapped", [958]], [[120734, 120734], "mapped", [959]], [[120735, 120735], "mapped", [960]], [[120736, 120736], "mapped", [961]], [[120737, 120737], "mapped", [952]], [[120738, 120738], "mapped", [963]], [[120739, 120739], "mapped", [964]], [[120740, 120740], "mapped", [965]], [[120741, 120741], "mapped", [966]], [[120742, 120742], "mapped", [967]], [[120743, 120743], "mapped", [968]], [[120744, 120744], "mapped", [969]], [[120745, 120745], "mapped", [8711]], [[120746, 120746], "mapped", [945]], [[120747, 120747], "mapped", [946]], [[120748, 120748], "mapped", [947]], [[120749, 120749], "mapped", [948]], [[120750, 120750], "mapped", [949]], [[120751, 120751], "mapped", [950]], [[120752, 120752], "mapped", [951]], [[120753, 120753], "mapped", [952]], [[120754, 120754], "mapped", [953]], [[120755, 120755], "mapped", [954]], [[120756, 120756], "mapped", [955]], [[120757, 120757], "mapped", [956]], [[120758, 120758], "mapped", [957]], [[120759, 120759], "mapped", [958]], [[120760, 120760], "mapped", [959]], [[120761, 120761], "mapped", [960]], [[120762, 120762], "mapped", [961]], [[120763, 120764], "mapped", [963]], [[120765, 120765], "mapped", [964]], [[120766, 120766], "mapped", [965]], [[120767, 120767], "mapped", [966]], [[120768, 120768], "mapped", [967]], [[120769, 120769], "mapped", [968]], [[120770, 120770], "mapped", [969]], [[120771, 120771], "mapped", [8706]], [[120772, 120772], "mapped", [949]], [[120773, 120773], "mapped", [952]], [[120774, 120774], "mapped", [954]], [[120775, 120775], "mapped", [966]], [[120776, 120776], "mapped", [961]], [[120777, 120777], "mapped", [960]], [[120778, 120779], "mapped", [989]], [[120780, 120781], "disallowed"], [[120782, 120782], "mapped", [48]], [[120783, 120783], "mapped", [49]], [[120784, 120784], "mapped", [50]], [[120785, 120785], "mapped", [51]], [[120786, 120786], "mapped", [52]], [[120787, 120787], "mapped", [53]], [[120788, 120788], "mapped", [54]], [[120789, 120789], "mapped", [55]], [[120790, 120790], "mapped", [56]], [[120791, 120791], "mapped", [57]], [[120792, 120792], "mapped", [48]], [[120793, 120793], "mapped", [49]], [[120794, 120794], "mapped", [50]], [[120795, 120795], "mapped", [51]], [[120796, 120796], "mapped", [52]], [[120797, 120797], "mapped", [53]], [[120798, 120798], "mapped", [54]], [[120799, 120799], "mapped", [55]], [[120800, 120800], "mapped", [56]], [[120801, 120801], "mapped", [57]], [[120802, 120802], "mapped", [48]], [[120803, 120803], "mapped", [49]], [[120804, 120804], "mapped", [50]], [[120805, 120805], "mapped", [51]], [[120806, 120806], "mapped", [52]], [[120807, 120807], "mapped", [53]], [[120808, 120808], "mapped", [54]], [[120809, 120809], "mapped", [55]], [[120810, 120810], "mapped", [56]], [[120811, 120811], "mapped", [57]], [[120812, 120812], "mapped", [48]], [[120813, 120813], "mapped", [49]], [[120814, 120814], "mapped", [50]], [[120815, 120815], "mapped", [51]], [[120816, 120816], "mapped", [52]], [[120817, 120817], "mapped", [53]], [[120818, 120818], "mapped", [54]], [[120819, 120819], "mapped", [55]], [[120820, 120820], "mapped", [56]], [[120821, 120821], "mapped", [57]], [[120822, 120822], "mapped", [48]], [[120823, 120823], "mapped", [49]], [[120824, 120824], "mapped", [50]], [[120825, 120825], "mapped", [51]], [[120826, 120826], "mapped", [52]], [[120827, 120827], "mapped", [53]], [[120828, 120828], "mapped", [54]], [[120829, 120829], "mapped", [55]], [[120830, 120830], "mapped", [56]], [[120831, 120831], "mapped", [57]], [[120832, 121343], "valid", [], "NV8"], [[121344, 121398], "valid"], [[121399, 121402], "valid", [], "NV8"], [[121403, 121452], "valid"], [[121453, 121460], "valid", [], "NV8"], [[121461, 121461], "valid"], [[121462, 121475], "valid", [], "NV8"], [[121476, 121476], "valid"], [[121477, 121483], "valid", [], "NV8"], [[121484, 121498], "disallowed"], [[121499, 121503], "valid"], [[121504, 121504], "disallowed"], [[121505, 121519], "valid"], [[121520, 124927], "disallowed"], [[124928, 125124], "valid"], [[125125, 125126], "disallowed"], [[125127, 125135], "valid", [], "NV8"], [[125136, 125142], "valid"], [[125143, 126463], "disallowed"], [[126464, 126464], "mapped", [1575]], [[126465, 126465], "mapped", [1576]], [[126466, 126466], "mapped", [1580]], [[126467, 126467], "mapped", [1583]], [[126468, 126468], "disallowed"], [[126469, 126469], "mapped", [1608]], [[126470, 126470], "mapped", [1586]], [[126471, 126471], "mapped", [1581]], [[126472, 126472], "mapped", [1591]], [[126473, 126473], "mapped", [1610]], [[126474, 126474], "mapped", [1603]], [[126475, 126475], "mapped", [1604]], [[126476, 126476], "mapped", [1605]], [[126477, 126477], "mapped", [1606]], [[126478, 126478], "mapped", [1587]], [[126479, 126479], "mapped", [1593]], [[126480, 126480], "mapped", [1601]], [[126481, 126481], "mapped", [1589]], [[126482, 126482], "mapped", [1602]], [[126483, 126483], "mapped", [1585]], [[126484, 126484], "mapped", [1588]], [[126485, 126485], "mapped", [1578]], [[126486, 126486], "mapped", [1579]], [[126487, 126487], "mapped", [1582]], [[126488, 126488], "mapped", [1584]], [[126489, 126489], "mapped", [1590]], [[126490, 126490], "mapped", [1592]], [[126491, 126491], "mapped", [1594]], [[126492, 126492], "mapped", [1646]], [[126493, 126493], "mapped", [1722]], [[126494, 126494], "mapped", [1697]], [[126495, 126495], "mapped", [1647]], [[126496, 126496], "disallowed"], [[126497, 126497], "mapped", [1576]], [[126498, 126498], "mapped", [1580]], [[126499, 126499], "disallowed"], [[126500, 126500], "mapped", [1607]], [[126501, 126502], "disallowed"], [[126503, 126503], "mapped", [1581]], [[126504, 126504], "disallowed"], [[126505, 126505], "mapped", [1610]], [[126506, 126506], "mapped", [1603]], [[126507, 126507], "mapped", [1604]], [[126508, 126508], "mapped", [1605]], [[126509, 126509], "mapped", [1606]], [[126510, 126510], "mapped", [1587]], [[126511, 126511], "mapped", [1593]], [[126512, 126512], "mapped", [1601]], [[126513, 126513], "mapped", [1589]], [[126514, 126514], "mapped", [1602]], [[126515, 126515], "disallowed"], [[126516, 126516], "mapped", [1588]], [[126517, 126517], "mapped", [1578]], [[126518, 126518], "mapped", [1579]], [[126519, 126519], "mapped", [1582]], [[126520, 126520], "disallowed"], [[126521, 126521], "mapped", [1590]], [[126522, 126522], "disallowed"], [[126523, 126523], "mapped", [1594]], [[126524, 126529], "disallowed"], [[126530, 126530], "mapped", [1580]], [[126531, 126534], "disallowed"], [[126535, 126535], "mapped", [1581]], [[126536, 126536], "disallowed"], [[126537, 126537], "mapped", [1610]], [[126538, 126538], "disallowed"], [[126539, 126539], "mapped", [1604]], [[126540, 126540], "disallowed"], [[126541, 126541], "mapped", [1606]], [[126542, 126542], "mapped", [1587]], [[126543, 126543], "mapped", [1593]], [[126544, 126544], "disallowed"], [[126545, 126545], "mapped", [1589]], [[126546, 126546], "mapped", [1602]], [[126547, 126547], "disallowed"], [[126548, 126548], "mapped", [1588]], [[126549, 126550], "disallowed"], [[126551, 126551], "mapped", [1582]], [[126552, 126552], "disallowed"], [[126553, 126553], "mapped", [1590]], [[126554, 126554], "disallowed"], [[126555, 126555], "mapped", [1594]], [[126556, 126556], "disallowed"], [[126557, 126557], "mapped", [1722]], [[126558, 126558], "disallowed"], [[126559, 126559], "mapped", [1647]], [[126560, 126560], "disallowed"], [[126561, 126561], "mapped", [1576]], [[126562, 126562], "mapped", [1580]], [[126563, 126563], "disallowed"], [[126564, 126564], "mapped", [1607]], [[126565, 126566], "disallowed"], [[126567, 126567], "mapped", [1581]], [[126568, 126568], "mapped", [1591]], [[126569, 126569], "mapped", [1610]], [[126570, 126570], "mapped", [1603]], [[126571, 126571], "disallowed"], [[126572, 126572], "mapped", [1605]], [[126573, 126573], "mapped", [1606]], [[126574, 126574], "mapped", [1587]], [[126575, 126575], "mapped", [1593]], [[126576, 126576], "mapped", [1601]], [[126577, 126577], "mapped", [1589]], [[126578, 126578], "mapped", [1602]], [[126579, 126579], "disallowed"], [[126580, 126580], "mapped", [1588]], [[126581, 126581], "mapped", [1578]], [[126582, 126582], "mapped", [1579]], [[126583, 126583], "mapped", [1582]], [[126584, 126584], "disallowed"], [[126585, 126585], "mapped", [1590]], [[126586, 126586], "mapped", [1592]], [[126587, 126587], "mapped", [1594]], [[126588, 126588], "mapped", [1646]], [[126589, 126589], "disallowed"], [[126590, 126590], "mapped", [1697]], [[126591, 126591], "disallowed"], [[126592, 126592], "mapped", [1575]], [[126593, 126593], "mapped", [1576]], [[126594, 126594], "mapped", [1580]], [[126595, 126595], "mapped", [1583]], [[126596, 126596], "mapped", [1607]], [[126597, 126597], "mapped", [1608]], [[126598, 126598], "mapped", [1586]], [[126599, 126599], "mapped", [1581]], [[126600, 126600], "mapped", [1591]], [[126601, 126601], "mapped", [1610]], [[126602, 126602], "disallowed"], [[126603, 126603], "mapped", [1604]], [[126604, 126604], "mapped", [1605]], [[126605, 126605], "mapped", [1606]], [[126606, 126606], "mapped", [1587]], [[126607, 126607], "mapped", [1593]], [[126608, 126608], "mapped", [1601]], [[126609, 126609], "mapped", [1589]], [[126610, 126610], "mapped", [1602]], [[126611, 126611], "mapped", [1585]], [[126612, 126612], "mapped", [1588]], [[126613, 126613], "mapped", [1578]], [[126614, 126614], "mapped", [1579]], [[126615, 126615], "mapped", [1582]], [[126616, 126616], "mapped", [1584]], [[126617, 126617], "mapped", [1590]], [[126618, 126618], "mapped", [1592]], [[126619, 126619], "mapped", [1594]], [[126620, 126624], "disallowed"], [[126625, 126625], "mapped", [1576]], [[126626, 126626], "mapped", [1580]], [[126627, 126627], "mapped", [1583]], [[126628, 126628], "disallowed"], [[126629, 126629], "mapped", [1608]], [[126630, 126630], "mapped", [1586]], [[126631, 126631], "mapped", [1581]], [[126632, 126632], "mapped", [1591]], [[126633, 126633], "mapped", [1610]], [[126634, 126634], "disallowed"], [[126635, 126635], "mapped", [1604]], [[126636, 126636], "mapped", [1605]], [[126637, 126637], "mapped", [1606]], [[126638, 126638], "mapped", [1587]], [[126639, 126639], "mapped", [1593]], [[126640, 126640], "mapped", [1601]], [[126641, 126641], "mapped", [1589]], [[126642, 126642], "mapped", [1602]], [[126643, 126643], "mapped", [1585]], [[126644, 126644], "mapped", [1588]], [[126645, 126645], "mapped", [1578]], [[126646, 126646], "mapped", [1579]], [[126647, 126647], "mapped", [1582]], [[126648, 126648], "mapped", [1584]], [[126649, 126649], "mapped", [1590]], [[126650, 126650], "mapped", [1592]], [[126651, 126651], "mapped", [1594]], [[126652, 126703], "disallowed"], [[126704, 126705], "valid", [], "NV8"], [[126706, 126975], "disallowed"], [[126976, 127019], "valid", [], "NV8"], [[127020, 127023], "disallowed"], [[127024, 127123], "valid", [], "NV8"], [[127124, 127135], "disallowed"], [[127136, 127150], "valid", [], "NV8"], [[127151, 127152], "disallowed"], [[127153, 127166], "valid", [], "NV8"], [[127167, 127167], "valid", [], "NV8"], [[127168, 127168], "disallowed"], [[127169, 127183], "valid", [], "NV8"], [[127184, 127184], "disallowed"], [[127185, 127199], "valid", [], "NV8"], [[127200, 127221], "valid", [], "NV8"], [[127222, 127231], "disallowed"], [[127232, 127232], "disallowed"], [[127233, 127233], "disallowed_STD3_mapped", [48, 44]], [[127234, 127234], "disallowed_STD3_mapped", [49, 44]], [[127235, 127235], "disallowed_STD3_mapped", [50, 44]], [[127236, 127236], "disallowed_STD3_mapped", [51, 44]], [[127237, 127237], "disallowed_STD3_mapped", [52, 44]], [[127238, 127238], "disallowed_STD3_mapped", [53, 44]], [[127239, 127239], "disallowed_STD3_mapped", [54, 44]], [[127240, 127240], "disallowed_STD3_mapped", [55, 44]], [[127241, 127241], "disallowed_STD3_mapped", [56, 44]], [[127242, 127242], "disallowed_STD3_mapped", [57, 44]], [[127243, 127244], "valid", [], "NV8"], [[127245, 127247], "disallowed"], [[127248, 127248], "disallowed_STD3_mapped", [40, 97, 41]], [[127249, 127249], "disallowed_STD3_mapped", [40, 98, 41]], [[127250, 127250], "disallowed_STD3_mapped", [40, 99, 41]], [[127251, 127251], "disallowed_STD3_mapped", [40, 100, 41]], [[127252, 127252], "disallowed_STD3_mapped", [40, 101, 41]], [[127253, 127253], "disallowed_STD3_mapped", [40, 102, 41]], [[127254, 127254], "disallowed_STD3_mapped", [40, 103, 41]], [[127255, 127255], "disallowed_STD3_mapped", [40, 104, 41]], [[127256, 127256], "disallowed_STD3_mapped", [40, 105, 41]], [[127257, 127257], "disallowed_STD3_mapped", [40, 106, 41]], [[127258, 127258], "disallowed_STD3_mapped", [40, 107, 41]], [[127259, 127259], "disallowed_STD3_mapped", [40, 108, 41]], [[127260, 127260], "disallowed_STD3_mapped", [40, 109, 41]], [[127261, 127261], "disallowed_STD3_mapped", [40, 110, 41]], [[127262, 127262], "disallowed_STD3_mapped", [40, 111, 41]], [[127263, 127263], "disallowed_STD3_mapped", [40, 112, 41]], [[127264, 127264], "disallowed_STD3_mapped", [40, 113, 41]], [[127265, 127265], "disallowed_STD3_mapped", [40, 114, 41]], [[127266, 127266], "disallowed_STD3_mapped", [40, 115, 41]], [[127267, 127267], "disallowed_STD3_mapped", [40, 116, 41]], [[127268, 127268], "disallowed_STD3_mapped", [40, 117, 41]], [[127269, 127269], "disallowed_STD3_mapped", [40, 118, 41]], [[127270, 127270], "disallowed_STD3_mapped", [40, 119, 41]], [[127271, 127271], "disallowed_STD3_mapped", [40, 120, 41]], [[127272, 127272], "disallowed_STD3_mapped", [40, 121, 41]], [[127273, 127273], "disallowed_STD3_mapped", [40, 122, 41]], [[127274, 127274], "mapped", [12308, 115, 12309]], [[127275, 127275], "mapped", [99]], [[127276, 127276], "mapped", [114]], [[127277, 127277], "mapped", [99, 100]], [[127278, 127278], "mapped", [119, 122]], [[127279, 127279], "disallowed"], [[127280, 127280], "mapped", [97]], [[127281, 127281], "mapped", [98]], [[127282, 127282], "mapped", [99]], [[127283, 127283], "mapped", [100]], [[127284, 127284], "mapped", [101]], [[127285, 127285], "mapped", [102]], [[127286, 127286], "mapped", [103]], [[127287, 127287], "mapped", [104]], [[127288, 127288], "mapped", [105]], [[127289, 127289], "mapped", [106]], [[127290, 127290], "mapped", [107]], [[127291, 127291], "mapped", [108]], [[127292, 127292], "mapped", [109]], [[127293, 127293], "mapped", [110]], [[127294, 127294], "mapped", [111]], [[127295, 127295], "mapped", [112]], [[127296, 127296], "mapped", [113]], [[127297, 127297], "mapped", [114]], [[127298, 127298], "mapped", [115]], [[127299, 127299], "mapped", [116]], [[127300, 127300], "mapped", [117]], [[127301, 127301], "mapped", [118]], [[127302, 127302], "mapped", [119]], [[127303, 127303], "mapped", [120]], [[127304, 127304], "mapped", [121]], [[127305, 127305], "mapped", [122]], [[127306, 127306], "mapped", [104, 118]], [[127307, 127307], "mapped", [109, 118]], [[127308, 127308], "mapped", [115, 100]], [[127309, 127309], "mapped", [115, 115]], [[127310, 127310], "mapped", [112, 112, 118]], [[127311, 127311], "mapped", [119, 99]], [[127312, 127318], "valid", [], "NV8"], [[127319, 127319], "valid", [], "NV8"], [[127320, 127326], "valid", [], "NV8"], [[127327, 127327], "valid", [], "NV8"], [[127328, 127337], "valid", [], "NV8"], [[127338, 127338], "mapped", [109, 99]], [[127339, 127339], "mapped", [109, 100]], [[127340, 127343], "disallowed"], [[127344, 127352], "valid", [], "NV8"], [[127353, 127353], "valid", [], "NV8"], [[127354, 127354], "valid", [], "NV8"], [[127355, 127356], "valid", [], "NV8"], [[127357, 127358], "valid", [], "NV8"], [[127359, 127359], "valid", [], "NV8"], [[127360, 127369], "valid", [], "NV8"], [[127370, 127373], "valid", [], "NV8"], [[127374, 127375], "valid", [], "NV8"], [[127376, 127376], "mapped", [100, 106]], [[127377, 127386], "valid", [], "NV8"], [[127387, 127461], "disallowed"], [[127462, 127487], "valid", [], "NV8"], [[127488, 127488], "mapped", [12411, 12363]], [[127489, 127489], "mapped", [12467, 12467]], [[127490, 127490], "mapped", [12469]], [[127491, 127503], "disallowed"], [[127504, 127504], "mapped", [25163]], [[127505, 127505], "mapped", [23383]], [[127506, 127506], "mapped", [21452]], [[127507, 127507], "mapped", [12487]], [[127508, 127508], "mapped", [20108]], [[127509, 127509], "mapped", [22810]], [[127510, 127510], "mapped", [35299]], [[127511, 127511], "mapped", [22825]], [[127512, 127512], "mapped", [20132]], [[127513, 127513], "mapped", [26144]], [[127514, 127514], "mapped", [28961]], [[127515, 127515], "mapped", [26009]], [[127516, 127516], "mapped", [21069]], [[127517, 127517], "mapped", [24460]], [[127518, 127518], "mapped", [20877]], [[127519, 127519], "mapped", [26032]], [[127520, 127520], "mapped", [21021]], [[127521, 127521], "mapped", [32066]], [[127522, 127522], "mapped", [29983]], [[127523, 127523], "mapped", [36009]], [[127524, 127524], "mapped", [22768]], [[127525, 127525], "mapped", [21561]], [[127526, 127526], "mapped", [28436]], [[127527, 127527], "mapped", [25237]], [[127528, 127528], "mapped", [25429]], [[127529, 127529], "mapped", [19968]], [[127530, 127530], "mapped", [19977]], [[127531, 127531], "mapped", [36938]], [[127532, 127532], "mapped", [24038]], [[127533, 127533], "mapped", [20013]], [[127534, 127534], "mapped", [21491]], [[127535, 127535], "mapped", [25351]], [[127536, 127536], "mapped", [36208]], [[127537, 127537], "mapped", [25171]], [[127538, 127538], "mapped", [31105]], [[127539, 127539], "mapped", [31354]], [[127540, 127540], "mapped", [21512]], [[127541, 127541], "mapped", [28288]], [[127542, 127542], "mapped", [26377]], [[127543, 127543], "mapped", [26376]], [[127544, 127544], "mapped", [30003]], [[127545, 127545], "mapped", [21106]], [[127546, 127546], "mapped", [21942]], [[127547, 127551], "disallowed"], [[127552, 127552], "mapped", [12308, 26412, 12309]], [[127553, 127553], "mapped", [12308, 19977, 12309]], [[127554, 127554], "mapped", [12308, 20108, 12309]], [[127555, 127555], "mapped", [12308, 23433, 12309]], [[127556, 127556], "mapped", [12308, 28857, 12309]], [[127557, 127557], "mapped", [12308, 25171, 12309]], [[127558, 127558], "mapped", [12308, 30423, 12309]], [[127559, 127559], "mapped", [12308, 21213, 12309]], [[127560, 127560], "mapped", [12308, 25943, 12309]], [[127561, 127567], "disallowed"], [[127568, 127568], "mapped", [24471]], [[127569, 127569], "mapped", [21487]], [[127570, 127743], "disallowed"], [[127744, 127776], "valid", [], "NV8"], [[127777, 127788], "valid", [], "NV8"], [[127789, 127791], "valid", [], "NV8"], [[127792, 127797], "valid", [], "NV8"], [[127798, 127798], "valid", [], "NV8"], [[127799, 127868], "valid", [], "NV8"], [[127869, 127869], "valid", [], "NV8"], [[127870, 127871], "valid", [], "NV8"], [[127872, 127891], "valid", [], "NV8"], [[127892, 127903], "valid", [], "NV8"], [[127904, 127940], "valid", [], "NV8"], [[127941, 127941], "valid", [], "NV8"], [[127942, 127946], "valid", [], "NV8"], [[127947, 127950], "valid", [], "NV8"], [[127951, 127955], "valid", [], "NV8"], [[127956, 127967], "valid", [], "NV8"], [[127968, 127984], "valid", [], "NV8"], [[127985, 127991], "valid", [], "NV8"], [[127992, 127999], "valid", [], "NV8"], [[128e3, 128062], "valid", [], "NV8"], [[128063, 128063], "valid", [], "NV8"], [[128064, 128064], "valid", [], "NV8"], [[128065, 128065], "valid", [], "NV8"], [[128066, 128247], "valid", [], "NV8"], [[128248, 128248], "valid", [], "NV8"], [[128249, 128252], "valid", [], "NV8"], [[128253, 128254], "valid", [], "NV8"], [[128255, 128255], "valid", [], "NV8"], [[128256, 128317], "valid", [], "NV8"], [[128318, 128319], "valid", [], "NV8"], [[128320, 128323], "valid", [], "NV8"], [[128324, 128330], "valid", [], "NV8"], [[128331, 128335], "valid", [], "NV8"], [[128336, 128359], "valid", [], "NV8"], [[128360, 128377], "valid", [], "NV8"], [[128378, 128378], "disallowed"], [[128379, 128419], "valid", [], "NV8"], [[128420, 128420], "disallowed"], [[128421, 128506], "valid", [], "NV8"], [[128507, 128511], "valid", [], "NV8"], [[128512, 128512], "valid", [], "NV8"], [[128513, 128528], "valid", [], "NV8"], [[128529, 128529], "valid", [], "NV8"], [[128530, 128532], "valid", [], "NV8"], [[128533, 128533], "valid", [], "NV8"], [[128534, 128534], "valid", [], "NV8"], [[128535, 128535], "valid", [], "NV8"], [[128536, 128536], "valid", [], "NV8"], [[128537, 128537], "valid", [], "NV8"], [[128538, 128538], "valid", [], "NV8"], [[128539, 128539], "valid", [], "NV8"], [[128540, 128542], "valid", [], "NV8"], [[128543, 128543], "valid", [], "NV8"], [[128544, 128549], "valid", [], "NV8"], [[128550, 128551], "valid", [], "NV8"], [[128552, 128555], "valid", [], "NV8"], [[128556, 128556], "valid", [], "NV8"], [[128557, 128557], "valid", [], "NV8"], [[128558, 128559], "valid", [], "NV8"], [[128560, 128563], "valid", [], "NV8"], [[128564, 128564], "valid", [], "NV8"], [[128565, 128576], "valid", [], "NV8"], [[128577, 128578], "valid", [], "NV8"], [[128579, 128580], "valid", [], "NV8"], [[128581, 128591], "valid", [], "NV8"], [[128592, 128639], "valid", [], "NV8"], [[128640, 128709], "valid", [], "NV8"], [[128710, 128719], "valid", [], "NV8"], [[128720, 128720], "valid", [], "NV8"], [[128721, 128735], "disallowed"], [[128736, 128748], "valid", [], "NV8"], [[128749, 128751], "disallowed"], [[128752, 128755], "valid", [], "NV8"], [[128756, 128767], "disallowed"], [[128768, 128883], "valid", [], "NV8"], [[128884, 128895], "disallowed"], [[128896, 128980], "valid", [], "NV8"], [[128981, 129023], "disallowed"], [[129024, 129035], "valid", [], "NV8"], [[129036, 129039], "disallowed"], [[129040, 129095], "valid", [], "NV8"], [[129096, 129103], "disallowed"], [[129104, 129113], "valid", [], "NV8"], [[129114, 129119], "disallowed"], [[129120, 129159], "valid", [], "NV8"], [[129160, 129167], "disallowed"], [[129168, 129197], "valid", [], "NV8"], [[129198, 129295], "disallowed"], [[129296, 129304], "valid", [], "NV8"], [[129305, 129407], "disallowed"], [[129408, 129412], "valid", [], "NV8"], [[129413, 129471], "disallowed"], [[129472, 129472], "valid", [], "NV8"], [[129473, 131069], "disallowed"], [[131070, 131071], "disallowed"], [[131072, 173782], "valid"], [[173783, 173823], "disallowed"], [[173824, 177972], "valid"], [[177973, 177983], "disallowed"], [[177984, 178205], "valid"], [[178206, 178207], "disallowed"], [[178208, 183969], "valid"], [[183970, 194559], "disallowed"], [[194560, 194560], "mapped", [20029]], [[194561, 194561], "mapped", [20024]], [[194562, 194562], "mapped", [20033]], [[194563, 194563], "mapped", [131362]], [[194564, 194564], "mapped", [20320]], [[194565, 194565], "mapped", [20398]], [[194566, 194566], "mapped", [20411]], [[194567, 194567], "mapped", [20482]], [[194568, 194568], "mapped", [20602]], [[194569, 194569], "mapped", [20633]], [[194570, 194570], "mapped", [20711]], [[194571, 194571], "mapped", [20687]], [[194572, 194572], "mapped", [13470]], [[194573, 194573], "mapped", [132666]], [[194574, 194574], "mapped", [20813]], [[194575, 194575], "mapped", [20820]], [[194576, 194576], "mapped", [20836]], [[194577, 194577], "mapped", [20855]], [[194578, 194578], "mapped", [132380]], [[194579, 194579], "mapped", [13497]], [[194580, 194580], "mapped", [20839]], [[194581, 194581], "mapped", [20877]], [[194582, 194582], "mapped", [132427]], [[194583, 194583], "mapped", [20887]], [[194584, 194584], "mapped", [20900]], [[194585, 194585], "mapped", [20172]], [[194586, 194586], "mapped", [20908]], [[194587, 194587], "mapped", [20917]], [[194588, 194588], "mapped", [168415]], [[194589, 194589], "mapped", [20981]], [[194590, 194590], "mapped", [20995]], [[194591, 194591], "mapped", [13535]], [[194592, 194592], "mapped", [21051]], [[194593, 194593], "mapped", [21062]], [[194594, 194594], "mapped", [21106]], [[194595, 194595], "mapped", [21111]], [[194596, 194596], "mapped", [13589]], [[194597, 194597], "mapped", [21191]], [[194598, 194598], "mapped", [21193]], [[194599, 194599], "mapped", [21220]], [[194600, 194600], "mapped", [21242]], [[194601, 194601], "mapped", [21253]], [[194602, 194602], "mapped", [21254]], [[194603, 194603], "mapped", [21271]], [[194604, 194604], "mapped", [21321]], [[194605, 194605], "mapped", [21329]], [[194606, 194606], "mapped", [21338]], [[194607, 194607], "mapped", [21363]], [[194608, 194608], "mapped", [21373]], [[194609, 194611], "mapped", [21375]], [[194612, 194612], "mapped", [133676]], [[194613, 194613], "mapped", [28784]], [[194614, 194614], "mapped", [21450]], [[194615, 194615], "mapped", [21471]], [[194616, 194616], "mapped", [133987]], [[194617, 194617], "mapped", [21483]], [[194618, 194618], "mapped", [21489]], [[194619, 194619], "mapped", [21510]], [[194620, 194620], "mapped", [21662]], [[194621, 194621], "mapped", [21560]], [[194622, 194622], "mapped", [21576]], [[194623, 194623], "mapped", [21608]], [[194624, 194624], "mapped", [21666]], [[194625, 194625], "mapped", [21750]], [[194626, 194626], "mapped", [21776]], [[194627, 194627], "mapped", [21843]], [[194628, 194628], "mapped", [21859]], [[194629, 194630], "mapped", [21892]], [[194631, 194631], "mapped", [21913]], [[194632, 194632], "mapped", [21931]], [[194633, 194633], "mapped", [21939]], [[194634, 194634], "mapped", [21954]], [[194635, 194635], "mapped", [22294]], [[194636, 194636], "mapped", [22022]], [[194637, 194637], "mapped", [22295]], [[194638, 194638], "mapped", [22097]], [[194639, 194639], "mapped", [22132]], [[194640, 194640], "mapped", [20999]], [[194641, 194641], "mapped", [22766]], [[194642, 194642], "mapped", [22478]], [[194643, 194643], "mapped", [22516]], [[194644, 194644], "mapped", [22541]], [[194645, 194645], "mapped", [22411]], [[194646, 194646], "mapped", [22578]], [[194647, 194647], "mapped", [22577]], [[194648, 194648], "mapped", [22700]], [[194649, 194649], "mapped", [136420]], [[194650, 194650], "mapped", [22770]], [[194651, 194651], "mapped", [22775]], [[194652, 194652], "mapped", [22790]], [[194653, 194653], "mapped", [22810]], [[194654, 194654], "mapped", [22818]], [[194655, 194655], "mapped", [22882]], [[194656, 194656], "mapped", [136872]], [[194657, 194657], "mapped", [136938]], [[194658, 194658], "mapped", [23020]], [[194659, 194659], "mapped", [23067]], [[194660, 194660], "mapped", [23079]], [[194661, 194661], "mapped", [23e3]], [[194662, 194662], "mapped", [23142]], [[194663, 194663], "mapped", [14062]], [[194664, 194664], "disallowed"], [[194665, 194665], "mapped", [23304]], [[194666, 194667], "mapped", [23358]], [[194668, 194668], "mapped", [137672]], [[194669, 194669], "mapped", [23491]], [[194670, 194670], "mapped", [23512]], [[194671, 194671], "mapped", [23527]], [[194672, 194672], "mapped", [23539]], [[194673, 194673], "mapped", [138008]], [[194674, 194674], "mapped", [23551]], [[194675, 194675], "mapped", [23558]], [[194676, 194676], "disallowed"], [[194677, 194677], "mapped", [23586]], [[194678, 194678], "mapped", [14209]], [[194679, 194679], "mapped", [23648]], [[194680, 194680], "mapped", [23662]], [[194681, 194681], "mapped", [23744]], [[194682, 194682], "mapped", [23693]], [[194683, 194683], "mapped", [138724]], [[194684, 194684], "mapped", [23875]], [[194685, 194685], "mapped", [138726]], [[194686, 194686], "mapped", [23918]], [[194687, 194687], "mapped", [23915]], [[194688, 194688], "mapped", [23932]], [[194689, 194689], "mapped", [24033]], [[194690, 194690], "mapped", [24034]], [[194691, 194691], "mapped", [14383]], [[194692, 194692], "mapped", [24061]], [[194693, 194693], "mapped", [24104]], [[194694, 194694], "mapped", [24125]], [[194695, 194695], "mapped", [24169]], [[194696, 194696], "mapped", [14434]], [[194697, 194697], "mapped", [139651]], [[194698, 194698], "mapped", [14460]], [[194699, 194699], "mapped", [24240]], [[194700, 194700], "mapped", [24243]], [[194701, 194701], "mapped", [24246]], [[194702, 194702], "mapped", [24266]], [[194703, 194703], "mapped", [172946]], [[194704, 194704], "mapped", [24318]], [[194705, 194706], "mapped", [140081]], [[194707, 194707], "mapped", [33281]], [[194708, 194709], "mapped", [24354]], [[194710, 194710], "mapped", [14535]], [[194711, 194711], "mapped", [144056]], [[194712, 194712], "mapped", [156122]], [[194713, 194713], "mapped", [24418]], [[194714, 194714], "mapped", [24427]], [[194715, 194715], "mapped", [14563]], [[194716, 194716], "mapped", [24474]], [[194717, 194717], "mapped", [24525]], [[194718, 194718], "mapped", [24535]], [[194719, 194719], "mapped", [24569]], [[194720, 194720], "mapped", [24705]], [[194721, 194721], "mapped", [14650]], [[194722, 194722], "mapped", [14620]], [[194723, 194723], "mapped", [24724]], [[194724, 194724], "mapped", [141012]], [[194725, 194725], "mapped", [24775]], [[194726, 194726], "mapped", [24904]], [[194727, 194727], "mapped", [24908]], [[194728, 194728], "mapped", [24910]], [[194729, 194729], "mapped", [24908]], [[194730, 194730], "mapped", [24954]], [[194731, 194731], "mapped", [24974]], [[194732, 194732], "mapped", [25010]], [[194733, 194733], "mapped", [24996]], [[194734, 194734], "mapped", [25007]], [[194735, 194735], "mapped", [25054]], [[194736, 194736], "mapped", [25074]], [[194737, 194737], "mapped", [25078]], [[194738, 194738], "mapped", [25104]], [[194739, 194739], "mapped", [25115]], [[194740, 194740], "mapped", [25181]], [[194741, 194741], "mapped", [25265]], [[194742, 194742], "mapped", [25300]], [[194743, 194743], "mapped", [25424]], [[194744, 194744], "mapped", [142092]], [[194745, 194745], "mapped", [25405]], [[194746, 194746], "mapped", [25340]], [[194747, 194747], "mapped", [25448]], [[194748, 194748], "mapped", [25475]], [[194749, 194749], "mapped", [25572]], [[194750, 194750], "mapped", [142321]], [[194751, 194751], "mapped", [25634]], [[194752, 194752], "mapped", [25541]], [[194753, 194753], "mapped", [25513]], [[194754, 194754], "mapped", [14894]], [[194755, 194755], "mapped", [25705]], [[194756, 194756], "mapped", [25726]], [[194757, 194757], "mapped", [25757]], [[194758, 194758], "mapped", [25719]], [[194759, 194759], "mapped", [14956]], [[194760, 194760], "mapped", [25935]], [[194761, 194761], "mapped", [25964]], [[194762, 194762], "mapped", [143370]], [[194763, 194763], "mapped", [26083]], [[194764, 194764], "mapped", [26360]], [[194765, 194765], "mapped", [26185]], [[194766, 194766], "mapped", [15129]], [[194767, 194767], "mapped", [26257]], [[194768, 194768], "mapped", [15112]], [[194769, 194769], "mapped", [15076]], [[194770, 194770], "mapped", [20882]], [[194771, 194771], "mapped", [20885]], [[194772, 194772], "mapped", [26368]], [[194773, 194773], "mapped", [26268]], [[194774, 194774], "mapped", [32941]], [[194775, 194775], "mapped", [17369]], [[194776, 194776], "mapped", [26391]], [[194777, 194777], "mapped", [26395]], [[194778, 194778], "mapped", [26401]], [[194779, 194779], "mapped", [26462]], [[194780, 194780], "mapped", [26451]], [[194781, 194781], "mapped", [144323]], [[194782, 194782], "mapped", [15177]], [[194783, 194783], "mapped", [26618]], [[194784, 194784], "mapped", [26501]], [[194785, 194785], "mapped", [26706]], [[194786, 194786], "mapped", [26757]], [[194787, 194787], "mapped", [144493]], [[194788, 194788], "mapped", [26766]], [[194789, 194789], "mapped", [26655]], [[194790, 194790], "mapped", [26900]], [[194791, 194791], "mapped", [15261]], [[194792, 194792], "mapped", [26946]], [[194793, 194793], "mapped", [27043]], [[194794, 194794], "mapped", [27114]], [[194795, 194795], "mapped", [27304]], [[194796, 194796], "mapped", [145059]], [[194797, 194797], "mapped", [27355]], [[194798, 194798], "mapped", [15384]], [[194799, 194799], "mapped", [27425]], [[194800, 194800], "mapped", [145575]], [[194801, 194801], "mapped", [27476]], [[194802, 194802], "mapped", [15438]], [[194803, 194803], "mapped", [27506]], [[194804, 194804], "mapped", [27551]], [[194805, 194805], "mapped", [27578]], [[194806, 194806], "mapped", [27579]], [[194807, 194807], "mapped", [146061]], [[194808, 194808], "mapped", [138507]], [[194809, 194809], "mapped", [146170]], [[194810, 194810], "mapped", [27726]], [[194811, 194811], "mapped", [146620]], [[194812, 194812], "mapped", [27839]], [[194813, 194813], "mapped", [27853]], [[194814, 194814], "mapped", [27751]], [[194815, 194815], "mapped", [27926]], [[194816, 194816], "mapped", [27966]], [[194817, 194817], "mapped", [28023]], [[194818, 194818], "mapped", [27969]], [[194819, 194819], "mapped", [28009]], [[194820, 194820], "mapped", [28024]], [[194821, 194821], "mapped", [28037]], [[194822, 194822], "mapped", [146718]], [[194823, 194823], "mapped", [27956]], [[194824, 194824], "mapped", [28207]], [[194825, 194825], "mapped", [28270]], [[194826, 194826], "mapped", [15667]], [[194827, 194827], "mapped", [28363]], [[194828, 194828], "mapped", [28359]], [[194829, 194829], "mapped", [147153]], [[194830, 194830], "mapped", [28153]], [[194831, 194831], "mapped", [28526]], [[194832, 194832], "mapped", [147294]], [[194833, 194833], "mapped", [147342]], [[194834, 194834], "mapped", [28614]], [[194835, 194835], "mapped", [28729]], [[194836, 194836], "mapped", [28702]], [[194837, 194837], "mapped", [28699]], [[194838, 194838], "mapped", [15766]], [[194839, 194839], "mapped", [28746]], [[194840, 194840], "mapped", [28797]], [[194841, 194841], "mapped", [28791]], [[194842, 194842], "mapped", [28845]], [[194843, 194843], "mapped", [132389]], [[194844, 194844], "mapped", [28997]], [[194845, 194845], "mapped", [148067]], [[194846, 194846], "mapped", [29084]], [[194847, 194847], "disallowed"], [[194848, 194848], "mapped", [29224]], [[194849, 194849], "mapped", [29237]], [[194850, 194850], "mapped", [29264]], [[194851, 194851], "mapped", [149e3]], [[194852, 194852], "mapped", [29312]], [[194853, 194853], "mapped", [29333]], [[194854, 194854], "mapped", [149301]], [[194855, 194855], "mapped", [149524]], [[194856, 194856], "mapped", [29562]], [[194857, 194857], "mapped", [29579]], [[194858, 194858], "mapped", [16044]], [[194859, 194859], "mapped", [29605]], [[194860, 194861], "mapped", [16056]], [[194862, 194862], "mapped", [29767]], [[194863, 194863], "mapped", [29788]], [[194864, 194864], "mapped", [29809]], [[194865, 194865], "mapped", [29829]], [[194866, 194866], "mapped", [29898]], [[194867, 194867], "mapped", [16155]], [[194868, 194868], "mapped", [29988]], [[194869, 194869], "mapped", [150582]], [[194870, 194870], "mapped", [30014]], [[194871, 194871], "mapped", [150674]], [[194872, 194872], "mapped", [30064]], [[194873, 194873], "mapped", [139679]], [[194874, 194874], "mapped", [30224]], [[194875, 194875], "mapped", [151457]], [[194876, 194876], "mapped", [151480]], [[194877, 194877], "mapped", [151620]], [[194878, 194878], "mapped", [16380]], [[194879, 194879], "mapped", [16392]], [[194880, 194880], "mapped", [30452]], [[194881, 194881], "mapped", [151795]], [[194882, 194882], "mapped", [151794]], [[194883, 194883], "mapped", [151833]], [[194884, 194884], "mapped", [151859]], [[194885, 194885], "mapped", [30494]], [[194886, 194887], "mapped", [30495]], [[194888, 194888], "mapped", [30538]], [[194889, 194889], "mapped", [16441]], [[194890, 194890], "mapped", [30603]], [[194891, 194891], "mapped", [16454]], [[194892, 194892], "mapped", [16534]], [[194893, 194893], "mapped", [152605]], [[194894, 194894], "mapped", [30798]], [[194895, 194895], "mapped", [30860]], [[194896, 194896], "mapped", [30924]], [[194897, 194897], "mapped", [16611]], [[194898, 194898], "mapped", [153126]], [[194899, 194899], "mapped", [31062]], [[194900, 194900], "mapped", [153242]], [[194901, 194901], "mapped", [153285]], [[194902, 194902], "mapped", [31119]], [[194903, 194903], "mapped", [31211]], [[194904, 194904], "mapped", [16687]], [[194905, 194905], "mapped", [31296]], [[194906, 194906], "mapped", [31306]], [[194907, 194907], "mapped", [31311]], [[194908, 194908], "mapped", [153980]], [[194909, 194910], "mapped", [154279]], [[194911, 194911], "disallowed"], [[194912, 194912], "mapped", [16898]], [[194913, 194913], "mapped", [154539]], [[194914, 194914], "mapped", [31686]], [[194915, 194915], "mapped", [31689]], [[194916, 194916], "mapped", [16935]], [[194917, 194917], "mapped", [154752]], [[194918, 194918], "mapped", [31954]], [[194919, 194919], "mapped", [17056]], [[194920, 194920], "mapped", [31976]], [[194921, 194921], "mapped", [31971]], [[194922, 194922], "mapped", [32e3]], [[194923, 194923], "mapped", [155526]], [[194924, 194924], "mapped", [32099]], [[194925, 194925], "mapped", [17153]], [[194926, 194926], "mapped", [32199]], [[194927, 194927], "mapped", [32258]], [[194928, 194928], "mapped", [32325]], [[194929, 194929], "mapped", [17204]], [[194930, 194930], "mapped", [156200]], [[194931, 194931], "mapped", [156231]], [[194932, 194932], "mapped", [17241]], [[194933, 194933], "mapped", [156377]], [[194934, 194934], "mapped", [32634]], [[194935, 194935], "mapped", [156478]], [[194936, 194936], "mapped", [32661]], [[194937, 194937], "mapped", [32762]], [[194938, 194938], "mapped", [32773]], [[194939, 194939], "mapped", [156890]], [[194940, 194940], "mapped", [156963]], [[194941, 194941], "mapped", [32864]], [[194942, 194942], "mapped", [157096]], [[194943, 194943], "mapped", [32880]], [[194944, 194944], "mapped", [144223]], [[194945, 194945], "mapped", [17365]], [[194946, 194946], "mapped", [32946]], [[194947, 194947], "mapped", [33027]], [[194948, 194948], "mapped", [17419]], [[194949, 194949], "mapped", [33086]], [[194950, 194950], "mapped", [23221]], [[194951, 194951], "mapped", [157607]], [[194952, 194952], "mapped", [157621]], [[194953, 194953], "mapped", [144275]], [[194954, 194954], "mapped", [144284]], [[194955, 194955], "mapped", [33281]], [[194956, 194956], "mapped", [33284]], [[194957, 194957], "mapped", [36766]], [[194958, 194958], "mapped", [17515]], [[194959, 194959], "mapped", [33425]], [[194960, 194960], "mapped", [33419]], [[194961, 194961], "mapped", [33437]], [[194962, 194962], "mapped", [21171]], [[194963, 194963], "mapped", [33457]], [[194964, 194964], "mapped", [33459]], [[194965, 194965], "mapped", [33469]], [[194966, 194966], "mapped", [33510]], [[194967, 194967], "mapped", [158524]], [[194968, 194968], "mapped", [33509]], [[194969, 194969], "mapped", [33565]], [[194970, 194970], "mapped", [33635]], [[194971, 194971], "mapped", [33709]], [[194972, 194972], "mapped", [33571]], [[194973, 194973], "mapped", [33725]], [[194974, 194974], "mapped", [33767]], [[194975, 194975], "mapped", [33879]], [[194976, 194976], "mapped", [33619]], [[194977, 194977], "mapped", [33738]], [[194978, 194978], "mapped", [33740]], [[194979, 194979], "mapped", [33756]], [[194980, 194980], "mapped", [158774]], [[194981, 194981], "mapped", [159083]], [[194982, 194982], "mapped", [158933]], [[194983, 194983], "mapped", [17707]], [[194984, 194984], "mapped", [34033]], [[194985, 194985], "mapped", [34035]], [[194986, 194986], "mapped", [34070]], [[194987, 194987], "mapped", [160714]], [[194988, 194988], "mapped", [34148]], [[194989, 194989], "mapped", [159532]], [[194990, 194990], "mapped", [17757]], [[194991, 194991], "mapped", [17761]], [[194992, 194992], "mapped", [159665]], [[194993, 194993], "mapped", [159954]], [[194994, 194994], "mapped", [17771]], [[194995, 194995], "mapped", [34384]], [[194996, 194996], "mapped", [34396]], [[194997, 194997], "mapped", [34407]], [[194998, 194998], "mapped", [34409]], [[194999, 194999], "mapped", [34473]], [[195e3, 195e3], "mapped", [34440]], [[195001, 195001], "mapped", [34574]], [[195002, 195002], "mapped", [34530]], [[195003, 195003], "mapped", [34681]], [[195004, 195004], "mapped", [34600]], [[195005, 195005], "mapped", [34667]], [[195006, 195006], "mapped", [34694]], [[195007, 195007], "disallowed"], [[195008, 195008], "mapped", [34785]], [[195009, 195009], "mapped", [34817]], [[195010, 195010], "mapped", [17913]], [[195011, 195011], "mapped", [34912]], [[195012, 195012], "mapped", [34915]], [[195013, 195013], "mapped", [161383]], [[195014, 195014], "mapped", [35031]], [[195015, 195015], "mapped", [35038]], [[195016, 195016], "mapped", [17973]], [[195017, 195017], "mapped", [35066]], [[195018, 195018], "mapped", [13499]], [[195019, 195019], "mapped", [161966]], [[195020, 195020], "mapped", [162150]], [[195021, 195021], "mapped", [18110]], [[195022, 195022], "mapped", [18119]], [[195023, 195023], "mapped", [35488]], [[195024, 195024], "mapped", [35565]], [[195025, 195025], "mapped", [35722]], [[195026, 195026], "mapped", [35925]], [[195027, 195027], "mapped", [162984]], [[195028, 195028], "mapped", [36011]], [[195029, 195029], "mapped", [36033]], [[195030, 195030], "mapped", [36123]], [[195031, 195031], "mapped", [36215]], [[195032, 195032], "mapped", [163631]], [[195033, 195033], "mapped", [133124]], [[195034, 195034], "mapped", [36299]], [[195035, 195035], "mapped", [36284]], [[195036, 195036], "mapped", [36336]], [[195037, 195037], "mapped", [133342]], [[195038, 195038], "mapped", [36564]], [[195039, 195039], "mapped", [36664]], [[195040, 195040], "mapped", [165330]], [[195041, 195041], "mapped", [165357]], [[195042, 195042], "mapped", [37012]], [[195043, 195043], "mapped", [37105]], [[195044, 195044], "mapped", [37137]], [[195045, 195045], "mapped", [165678]], [[195046, 195046], "mapped", [37147]], [[195047, 195047], "mapped", [37432]], [[195048, 195048], "mapped", [37591]], [[195049, 195049], "mapped", [37592]], [[195050, 195050], "mapped", [37500]], [[195051, 195051], "mapped", [37881]], [[195052, 195052], "mapped", [37909]], [[195053, 195053], "mapped", [166906]], [[195054, 195054], "mapped", [38283]], [[195055, 195055], "mapped", [18837]], [[195056, 195056], "mapped", [38327]], [[195057, 195057], "mapped", [167287]], [[195058, 195058], "mapped", [18918]], [[195059, 195059], "mapped", [38595]], [[195060, 195060], "mapped", [23986]], [[195061, 195061], "mapped", [38691]], [[195062, 195062], "mapped", [168261]], [[195063, 195063], "mapped", [168474]], [[195064, 195064], "mapped", [19054]], [[195065, 195065], "mapped", [19062]], [[195066, 195066], "mapped", [38880]], [[195067, 195067], "mapped", [168970]], [[195068, 195068], "mapped", [19122]], [[195069, 195069], "mapped", [169110]], [[195070, 195071], "mapped", [38923]], [[195072, 195072], "mapped", [38953]], [[195073, 195073], "mapped", [169398]], [[195074, 195074], "mapped", [39138]], [[195075, 195075], "mapped", [19251]], [[195076, 195076], "mapped", [39209]], [[195077, 195077], "mapped", [39335]], [[195078, 195078], "mapped", [39362]], [[195079, 195079], "mapped", [39422]], [[195080, 195080], "mapped", [19406]], [[195081, 195081], "mapped", [170800]], [[195082, 195082], "mapped", [39698]], [[195083, 195083], "mapped", [4e4]], [[195084, 195084], "mapped", [40189]], [[195085, 195085], "mapped", [19662]], [[195086, 195086], "mapped", [19693]], [[195087, 195087], "mapped", [40295]], [[195088, 195088], "mapped", [172238]], [[195089, 195089], "mapped", [19704]], [[195090, 195090], "mapped", [172293]], [[195091, 195091], "mapped", [172558]], [[195092, 195092], "mapped", [172689]], [[195093, 195093], "mapped", [40635]], [[195094, 195094], "mapped", [19798]], [[195095, 195095], "mapped", [40697]], [[195096, 195096], "mapped", [40702]], [[195097, 195097], "mapped", [40709]], [[195098, 195098], "mapped", [40719]], [[195099, 195099], "mapped", [40726]], [[195100, 195100], "mapped", [40763]], [[195101, 195101], "mapped", [173568]], [[195102, 196605], "disallowed"], [[196606, 196607], "disallowed"], [[196608, 262141], "disallowed"], [[262142, 262143], "disallowed"], [[262144, 327677], "disallowed"], [[327678, 327679], "disallowed"], [[327680, 393213], "disallowed"], [[393214, 393215], "disallowed"], [[393216, 458749], "disallowed"], [[458750, 458751], "disallowed"], [[458752, 524285], "disallowed"], [[524286, 524287], "disallowed"], [[524288, 589821], "disallowed"], [[589822, 589823], "disallowed"], [[589824, 655357], "disallowed"], [[655358, 655359], "disallowed"], [[655360, 720893], "disallowed"], [[720894, 720895], "disallowed"], [[720896, 786429], "disallowed"], [[786430, 786431], "disallowed"], [[786432, 851965], "disallowed"], [[851966, 851967], "disallowed"], [[851968, 917501], "disallowed"], [[917502, 917503], "disallowed"], [[917504, 917504], "disallowed"], [[917505, 917505], "disallowed"], [[917506, 917535], "disallowed"], [[917536, 917631], "disallowed"], [[917632, 917759], "disallowed"], [[917760, 917999], "ignored"], [[918e3, 983037], "disallowed"], [[983038, 983039], "disallowed"], [[983040, 1048573], "disallowed"], [[1048574, 1048575], "disallowed"], [[1048576, 1114109], "disallowed"], [[1114110, 1114111], "disallowed"]]; - } -}); - -// ../node_modules/.pnpm/tr46@0.0.3/node_modules/tr46/index.js -var require_tr46 = __commonJS({ - "../node_modules/.pnpm/tr46@0.0.3/node_modules/tr46/index.js"(exports2, module2) { - "use strict"; - var punycode = require("punycode"); - var mappingTable = require_mappingTable(); - var PROCESSING_OPTIONS = { - TRANSITIONAL: 0, - NONTRANSITIONAL: 1 - }; - function normalize5(str) { - return str.split("\0").map(function(s) { - return s.normalize("NFC"); - }).join("\0"); - } - function findStatus(val2) { - var start4 = 0; - var end = mappingTable.length - 1; - while (start4 <= end) { - var mid = Math.floor((start4 + end) / 2); - var target = mappingTable[mid]; - if (target[0][0] <= val2 && target[0][1] >= val2) { - return target; - } else if (target[0][0] > val2) { - end = mid - 1; - } else { - start4 = mid + 1; - } - } - return null; - } - var regexAstralSymbols = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g; - function countSymbols(string) { - return string.replace(regexAstralSymbols, "_").length; - } - function mapChars(domain_name, useSTD3, processing_option) { - var hasError = false; - var processed = ""; - var len = countSymbols(domain_name); - for (var i = 0; i < len; ++i) { - var codePoint = domain_name.codePointAt(i); - var status = findStatus(codePoint); - switch (status[1]) { - case "disallowed": - hasError = true; - processed += String.fromCodePoint(codePoint); - break; - case "ignored": - break; - case "mapped": - processed += String.fromCodePoint.apply(String, status[2]); - break; - case "deviation": - if (processing_option === PROCESSING_OPTIONS.TRANSITIONAL) { - processed += String.fromCodePoint.apply(String, status[2]); - } else { - processed += String.fromCodePoint(codePoint); - } - break; - case "valid": - processed += String.fromCodePoint(codePoint); - break; - case "disallowed_STD3_mapped": - if (useSTD3) { - hasError = true; - processed += String.fromCodePoint(codePoint); - } else { - processed += String.fromCodePoint.apply(String, status[2]); - } - break; - case "disallowed_STD3_valid": - if (useSTD3) { - hasError = true; - } - processed += String.fromCodePoint(codePoint); - break; - } - } - return { - string: processed, - error: hasError - }; - } - var combiningMarksRegex = /[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2D]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDE2C-\uDE37\uDEDF-\uDEEA\uDF01-\uDF03\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDE30-\uDE40\uDEAB-\uDEB7]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD83A[\uDCD0-\uDCD6]|\uDB40[\uDD00-\uDDEF]/; - function validateLabel(label, processing_option) { - if (label.substr(0, 4) === "xn--") { - label = punycode.toUnicode(label); - processing_option = PROCESSING_OPTIONS.NONTRANSITIONAL; - } - var error = false; - if (normalize5(label) !== label || label[3] === "-" && label[4] === "-" || label[0] === "-" || label[label.length - 1] === "-" || label.indexOf(".") !== -1 || label.search(combiningMarksRegex) === 0) { - error = true; - } - var len = countSymbols(label); - for (var i = 0; i < len; ++i) { - var status = findStatus(label.codePointAt(i)); - if (processing === PROCESSING_OPTIONS.TRANSITIONAL && status[1] !== "valid" || processing === PROCESSING_OPTIONS.NONTRANSITIONAL && status[1] !== "valid" && status[1] !== "deviation") { - error = true; - break; - } - } - return { - label, - error - }; - } - function processing(domain_name, useSTD3, processing_option) { - var result = mapChars(domain_name, useSTD3, processing_option); - result.string = normalize5(result.string); - var labels = result.string.split("."); - for (var i = 0; i < labels.length; ++i) { - try { - var validation = validateLabel(labels[i]); - labels[i] = validation.label; - result.error = result.error || validation.error; - } catch (e) { - result.error = true; - } - } - return { - string: labels.join("."), - error: result.error - }; - } - module2.exports.toASCII = function(domain_name, useSTD3, processing_option, verifyDnsLength) { - var result = processing(domain_name, useSTD3, processing_option); - var labels = result.string.split("."); - labels = labels.map(function(l2) { - try { - return punycode.toASCII(l2); - } catch (e) { - result.error = true; - return l2; - } - }); - if (verifyDnsLength) { - var total = labels.slice(0, labels.length - 1).join(".").length; - if (total.length > 253 || total.length === 0) { - result.error = true; - } - for (var i = 0; i < labels.length; ++i) { - if (labels.length > 63 || labels.length === 0) { - result.error = true; - break; - } - } - } - if (result.error) - return null; - return labels.join("."); - }; - module2.exports.toUnicode = function(domain_name, useSTD3) { - var result = processing(domain_name, useSTD3, PROCESSING_OPTIONS.NONTRANSITIONAL); - return { - domain: result.string, - error: result.error - }; - }; - module2.exports.PROCESSING_OPTIONS = PROCESSING_OPTIONS; - } -}); - -// ../node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/url-state-machine.js -var require_url_state_machine = __commonJS({ - "../node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/url-state-machine.js"(exports2, module2) { - "use strict"; - var punycode = require("punycode"); - var tr46 = require_tr46(); - var specialSchemes = { - ftp: 21, - file: null, - gopher: 70, - http: 80, - https: 443, - ws: 80, - wss: 443 - }; - var failure = Symbol("failure"); - function countSymbols(str) { - return punycode.ucs2.decode(str).length; - } - function at(input, idx) { - const c = input[idx]; - return isNaN(c) ? void 0 : String.fromCodePoint(c); - } - function isASCIIDigit(c) { - return c >= 48 && c <= 57; - } - function isASCIIAlpha(c) { - return c >= 65 && c <= 90 || c >= 97 && c <= 122; - } - function isASCIIAlphanumeric(c) { - return isASCIIAlpha(c) || isASCIIDigit(c); - } - function isASCIIHex(c) { - return isASCIIDigit(c) || c >= 65 && c <= 70 || c >= 97 && c <= 102; - } - function isSingleDot(buffer) { - return buffer === "." || buffer.toLowerCase() === "%2e"; - } - function isDoubleDot(buffer) { - buffer = buffer.toLowerCase(); - return buffer === ".." || buffer === "%2e." || buffer === ".%2e" || buffer === "%2e%2e"; - } - function isWindowsDriveLetterCodePoints(cp1, cp2) { - return isASCIIAlpha(cp1) && (cp2 === 58 || cp2 === 124); - } - function isWindowsDriveLetterString(string) { - return string.length === 2 && isASCIIAlpha(string.codePointAt(0)) && (string[1] === ":" || string[1] === "|"); - } - function isNormalizedWindowsDriveLetterString(string) { - return string.length === 2 && isASCIIAlpha(string.codePointAt(0)) && string[1] === ":"; - } - function containsForbiddenHostCodePoint(string) { - return string.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/) !== -1; - } - function containsForbiddenHostCodePointExcludingPercent(string) { - return string.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/) !== -1; - } - function isSpecialScheme(scheme) { - return specialSchemes[scheme] !== void 0; - } - function isSpecial(url2) { - return isSpecialScheme(url2.scheme); - } - function defaultPort(scheme) { - return specialSchemes[scheme]; - } - function percentEncode(c) { - let hex = c.toString(16).toUpperCase(); - if (hex.length === 1) { - hex = "0" + hex; - } - return "%" + hex; - } - function utf8PercentEncode(c) { - const buf = new Buffer(c); - let str = ""; - for (let i = 0; i < buf.length; ++i) { - str += percentEncode(buf[i]); - } - return str; - } - function utf8PercentDecode(str) { - const input = new Buffer(str); - const output = []; - for (let i = 0; i < input.length; ++i) { - if (input[i] !== 37) { - output.push(input[i]); - } else if (input[i] === 37 && isASCIIHex(input[i + 1]) && isASCIIHex(input[i + 2])) { - output.push(parseInt(input.slice(i + 1, i + 3).toString(), 16)); - i += 2; - } else { - output.push(input[i]); - } - } - return new Buffer(output).toString(); - } - function isC0ControlPercentEncode(c) { - return c <= 31 || c > 126; - } - var extraPathPercentEncodeSet = /* @__PURE__ */ new Set([32, 34, 35, 60, 62, 63, 96, 123, 125]); - function isPathPercentEncode(c) { - return isC0ControlPercentEncode(c) || extraPathPercentEncodeSet.has(c); - } - var extraUserinfoPercentEncodeSet = /* @__PURE__ */ new Set([47, 58, 59, 61, 64, 91, 92, 93, 94, 124]); - function isUserinfoPercentEncode(c) { - return isPathPercentEncode(c) || extraUserinfoPercentEncodeSet.has(c); - } - function percentEncodeChar(c, encodeSetPredicate) { - const cStr = String.fromCodePoint(c); - if (encodeSetPredicate(c)) { - return utf8PercentEncode(cStr); - } - return cStr; - } - function parseIPv4Number(input) { - let R = 10; - if (input.length >= 2 && input.charAt(0) === "0" && input.charAt(1).toLowerCase() === "x") { - input = input.substring(2); - R = 16; - } else if (input.length >= 2 && input.charAt(0) === "0") { - input = input.substring(1); - R = 8; - } - if (input === "") { - return 0; - } - const regex = R === 10 ? /[^0-9]/ : R === 16 ? /[^0-9A-Fa-f]/ : /[^0-7]/; - if (regex.test(input)) { - return failure; - } - return parseInt(input, R); - } - function parseIPv4(input) { - const parts = input.split("."); - if (parts[parts.length - 1] === "") { - if (parts.length > 1) { - parts.pop(); - } - } - if (parts.length > 4) { - return input; - } - const numbers = []; - for (const part of parts) { - if (part === "") { - return input; - } - const n = parseIPv4Number(part); - if (n === failure) { - return input; - } - numbers.push(n); - } - for (let i = 0; i < numbers.length - 1; ++i) { - if (numbers[i] > 255) { - return failure; - } - } - if (numbers[numbers.length - 1] >= Math.pow(256, 5 - numbers.length)) { - return failure; - } - let ipv4 = numbers.pop(); - let counter = 0; - for (const n of numbers) { - ipv4 += n * Math.pow(256, 3 - counter); - ++counter; - } - return ipv4; - } - function serializeIPv4(address) { - let output = ""; - let n = address; - for (let i = 1; i <= 4; ++i) { - output = String(n % 256) + output; - if (i !== 4) { - output = "." + output; - } - n = Math.floor(n / 256); - } - return output; - } - function parseIPv6(input) { - const address = [0, 0, 0, 0, 0, 0, 0, 0]; - let pieceIndex = 0; - let compress = null; - let pointer = 0; - input = punycode.ucs2.decode(input); - if (input[pointer] === 58) { - if (input[pointer + 1] !== 58) { - return failure; - } - pointer += 2; - ++pieceIndex; - compress = pieceIndex; - } - while (pointer < input.length) { - if (pieceIndex === 8) { - return failure; - } - if (input[pointer] === 58) { - if (compress !== null) { - return failure; - } - ++pointer; - ++pieceIndex; - compress = pieceIndex; - continue; - } - let value = 0; - let length = 0; - while (length < 4 && isASCIIHex(input[pointer])) { - value = value * 16 + parseInt(at(input, pointer), 16); - ++pointer; - ++length; - } - if (input[pointer] === 46) { - if (length === 0) { - return failure; - } - pointer -= length; - if (pieceIndex > 6) { - return failure; - } - let numbersSeen = 0; - while (input[pointer] !== void 0) { - let ipv4Piece = null; - if (numbersSeen > 0) { - if (input[pointer] === 46 && numbersSeen < 4) { - ++pointer; - } else { - return failure; - } - } - if (!isASCIIDigit(input[pointer])) { - return failure; - } - while (isASCIIDigit(input[pointer])) { - const number = parseInt(at(input, pointer)); - if (ipv4Piece === null) { - ipv4Piece = number; - } else if (ipv4Piece === 0) { - return failure; - } else { - ipv4Piece = ipv4Piece * 10 + number; - } - if (ipv4Piece > 255) { - return failure; - } - ++pointer; - } - address[pieceIndex] = address[pieceIndex] * 256 + ipv4Piece; - ++numbersSeen; - if (numbersSeen === 2 || numbersSeen === 4) { - ++pieceIndex; - } - } - if (numbersSeen !== 4) { - return failure; - } - break; - } else if (input[pointer] === 58) { - ++pointer; - if (input[pointer] === void 0) { - return failure; - } - } else if (input[pointer] !== void 0) { - return failure; - } - address[pieceIndex] = value; - ++pieceIndex; - } - if (compress !== null) { - let swaps = pieceIndex - compress; - pieceIndex = 7; - while (pieceIndex !== 0 && swaps > 0) { - const temp = address[compress + swaps - 1]; - address[compress + swaps - 1] = address[pieceIndex]; - address[pieceIndex] = temp; - --pieceIndex; - --swaps; - } - } else if (compress === null && pieceIndex !== 8) { - return failure; - } - return address; - } - function serializeIPv6(address) { - let output = ""; - const seqResult = findLongestZeroSequence(address); - const compress = seqResult.idx; - let ignore0 = false; - for (let pieceIndex = 0; pieceIndex <= 7; ++pieceIndex) { - if (ignore0 && address[pieceIndex] === 0) { - continue; - } else if (ignore0) { - ignore0 = false; - } - if (compress === pieceIndex) { - const separator = pieceIndex === 0 ? "::" : ":"; - output += separator; - ignore0 = true; - continue; - } - output += address[pieceIndex].toString(16); - if (pieceIndex !== 7) { - output += ":"; - } - } - return output; - } - function parseHost(input, isSpecialArg) { - if (input[0] === "[") { - if (input[input.length - 1] !== "]") { - return failure; - } - return parseIPv6(input.substring(1, input.length - 1)); - } - if (!isSpecialArg) { - return parseOpaqueHost(input); - } - const domain2 = utf8PercentDecode(input); - const asciiDomain = tr46.toASCII(domain2, false, tr46.PROCESSING_OPTIONS.NONTRANSITIONAL, false); - if (asciiDomain === null) { - return failure; - } - if (containsForbiddenHostCodePoint(asciiDomain)) { - return failure; - } - const ipv4Host = parseIPv4(asciiDomain); - if (typeof ipv4Host === "number" || ipv4Host === failure) { - return ipv4Host; - } - return asciiDomain; - } - function parseOpaqueHost(input) { - if (containsForbiddenHostCodePointExcludingPercent(input)) { - return failure; - } - let output = ""; - const decoded = punycode.ucs2.decode(input); - for (let i = 0; i < decoded.length; ++i) { - output += percentEncodeChar(decoded[i], isC0ControlPercentEncode); - } - return output; - } - function findLongestZeroSequence(arr) { - let maxIdx = null; - let maxLen = 1; - let currStart = null; - let currLen = 0; - for (let i = 0; i < arr.length; ++i) { - if (arr[i] !== 0) { - if (currLen > maxLen) { - maxIdx = currStart; - maxLen = currLen; - } - currStart = null; - currLen = 0; - } else { - if (currStart === null) { - currStart = i; - } - ++currLen; - } - } - if (currLen > maxLen) { - maxIdx = currStart; - maxLen = currLen; - } - return { - idx: maxIdx, - len: maxLen - }; - } - function serializeHost(host) { - if (typeof host === "number") { - return serializeIPv4(host); - } - if (host instanceof Array) { - return "[" + serializeIPv6(host) + "]"; - } - return host; - } - function trimControlChars(url2) { - return url2.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g, ""); - } - function trimTabAndNewline(url2) { - return url2.replace(/\u0009|\u000A|\u000D/g, ""); - } - function shortenPath(url2) { - const path20 = url2.path; - if (path20.length === 0) { - return; - } - if (url2.scheme === "file" && path20.length === 1 && isNormalizedWindowsDriveLetter(path20[0])) { - return; - } - path20.pop(); - } - function includesCredentials(url2) { - return url2.username !== "" || url2.password !== ""; - } - function cannotHaveAUsernamePasswordPort(url2) { - return url2.host === null || url2.host === "" || url2.cannotBeABaseURL || url2.scheme === "file"; - } - function isNormalizedWindowsDriveLetter(string) { - return /^[A-Za-z]:$/.test(string); - } - function URLStateMachine(input, base, encodingOverride, url2, stateOverride) { - this.pointer = 0; - this.input = input; - this.base = base || null; - this.encodingOverride = encodingOverride || "utf-8"; - this.stateOverride = stateOverride; - this.url = url2; - this.failure = false; - this.parseError = false; - if (!this.url) { - this.url = { - scheme: "", - username: "", - password: "", - host: null, - port: null, - path: [], - query: null, - fragment: null, - cannotBeABaseURL: false - }; - const res2 = trimControlChars(this.input); - if (res2 !== this.input) { - this.parseError = true; - } - this.input = res2; - } - const res = trimTabAndNewline(this.input); - if (res !== this.input) { - this.parseError = true; - } - this.input = res; - this.state = stateOverride || "scheme start"; - this.buffer = ""; - this.atFlag = false; - this.arrFlag = false; - this.passwordTokenSeenFlag = false; - this.input = punycode.ucs2.decode(this.input); - for (; this.pointer <= this.input.length; ++this.pointer) { - const c = this.input[this.pointer]; - const cStr = isNaN(c) ? void 0 : String.fromCodePoint(c); - const ret2 = this["parse " + this.state](c, cStr); - if (!ret2) { - break; - } else if (ret2 === failure) { - this.failure = true; - break; - } - } - } - URLStateMachine.prototype["parse scheme start"] = function parseSchemeStart(c, cStr) { - if (isASCIIAlpha(c)) { - this.buffer += cStr.toLowerCase(); - this.state = "scheme"; - } else if (!this.stateOverride) { - this.state = "no scheme"; - --this.pointer; - } else { - this.parseError = true; - return failure; - } - return true; - }; - URLStateMachine.prototype["parse scheme"] = function parseScheme(c, cStr) { - if (isASCIIAlphanumeric(c) || c === 43 || c === 45 || c === 46) { - this.buffer += cStr.toLowerCase(); - } else if (c === 58) { - if (this.stateOverride) { - if (isSpecial(this.url) && !isSpecialScheme(this.buffer)) { - return false; - } - if (!isSpecial(this.url) && isSpecialScheme(this.buffer)) { - return false; - } - if ((includesCredentials(this.url) || this.url.port !== null) && this.buffer === "file") { - return false; - } - if (this.url.scheme === "file" && (this.url.host === "" || this.url.host === null)) { - return false; - } - } - this.url.scheme = this.buffer; - this.buffer = ""; - if (this.stateOverride) { - return false; - } - if (this.url.scheme === "file") { - if (this.input[this.pointer + 1] !== 47 || this.input[this.pointer + 2] !== 47) { - this.parseError = true; - } - this.state = "file"; - } else if (isSpecial(this.url) && this.base !== null && this.base.scheme === this.url.scheme) { - this.state = "special relative or authority"; - } else if (isSpecial(this.url)) { - this.state = "special authority slashes"; - } else if (this.input[this.pointer + 1] === 47) { - this.state = "path or authority"; - ++this.pointer; - } else { - this.url.cannotBeABaseURL = true; - this.url.path.push(""); - this.state = "cannot-be-a-base-URL path"; - } - } else if (!this.stateOverride) { - this.buffer = ""; - this.state = "no scheme"; - this.pointer = -1; - } else { - this.parseError = true; - return failure; - } - return true; - }; - URLStateMachine.prototype["parse no scheme"] = function parseNoScheme(c) { - if (this.base === null || this.base.cannotBeABaseURL && c !== 35) { - return failure; - } else if (this.base.cannotBeABaseURL && c === 35) { - this.url.scheme = this.base.scheme; - this.url.path = this.base.path.slice(); - this.url.query = this.base.query; - this.url.fragment = ""; - this.url.cannotBeABaseURL = true; - this.state = "fragment"; - } else if (this.base.scheme === "file") { - this.state = "file"; - --this.pointer; - } else { - this.state = "relative"; - --this.pointer; - } - return true; - }; - URLStateMachine.prototype["parse special relative or authority"] = function parseSpecialRelativeOrAuthority(c) { - if (c === 47 && this.input[this.pointer + 1] === 47) { - this.state = "special authority ignore slashes"; - ++this.pointer; - } else { - this.parseError = true; - this.state = "relative"; - --this.pointer; - } - return true; - }; - URLStateMachine.prototype["parse path or authority"] = function parsePathOrAuthority(c) { - if (c === 47) { - this.state = "authority"; - } else { - this.state = "path"; - --this.pointer; - } - return true; - }; - URLStateMachine.prototype["parse relative"] = function parseRelative(c) { - this.url.scheme = this.base.scheme; - if (isNaN(c)) { - this.url.username = this.base.username; - this.url.password = this.base.password; - this.url.host = this.base.host; - this.url.port = this.base.port; - this.url.path = this.base.path.slice(); - this.url.query = this.base.query; - } else if (c === 47) { - this.state = "relative slash"; - } else if (c === 63) { - this.url.username = this.base.username; - this.url.password = this.base.password; - this.url.host = this.base.host; - this.url.port = this.base.port; - this.url.path = this.base.path.slice(); - this.url.query = ""; - this.state = "query"; - } else if (c === 35) { - this.url.username = this.base.username; - this.url.password = this.base.password; - this.url.host = this.base.host; - this.url.port = this.base.port; - this.url.path = this.base.path.slice(); - this.url.query = this.base.query; - this.url.fragment = ""; - this.state = "fragment"; - } else if (isSpecial(this.url) && c === 92) { - this.parseError = true; - this.state = "relative slash"; - } else { - this.url.username = this.base.username; - this.url.password = this.base.password; - this.url.host = this.base.host; - this.url.port = this.base.port; - this.url.path = this.base.path.slice(0, this.base.path.length - 1); - this.state = "path"; - --this.pointer; - } - return true; - }; - URLStateMachine.prototype["parse relative slash"] = function parseRelativeSlash(c) { - if (isSpecial(this.url) && (c === 47 || c === 92)) { - if (c === 92) { - this.parseError = true; - } - this.state = "special authority ignore slashes"; - } else if (c === 47) { - this.state = "authority"; - } else { - this.url.username = this.base.username; - this.url.password = this.base.password; - this.url.host = this.base.host; - this.url.port = this.base.port; - this.state = "path"; - --this.pointer; - } - return true; - }; - URLStateMachine.prototype["parse special authority slashes"] = function parseSpecialAuthoritySlashes(c) { - if (c === 47 && this.input[this.pointer + 1] === 47) { - this.state = "special authority ignore slashes"; - ++this.pointer; - } else { - this.parseError = true; - this.state = "special authority ignore slashes"; - --this.pointer; - } - return true; - }; - URLStateMachine.prototype["parse special authority ignore slashes"] = function parseSpecialAuthorityIgnoreSlashes(c) { - if (c !== 47 && c !== 92) { - this.state = "authority"; - --this.pointer; - } else { - this.parseError = true; - } - return true; - }; - URLStateMachine.prototype["parse authority"] = function parseAuthority(c, cStr) { - if (c === 64) { - this.parseError = true; - if (this.atFlag) { - this.buffer = "%40" + this.buffer; - } - this.atFlag = true; - const len = countSymbols(this.buffer); - for (let pointer = 0; pointer < len; ++pointer) { - const codePoint = this.buffer.codePointAt(pointer); - if (codePoint === 58 && !this.passwordTokenSeenFlag) { - this.passwordTokenSeenFlag = true; - continue; - } - const encodedCodePoints = percentEncodeChar(codePoint, isUserinfoPercentEncode); - if (this.passwordTokenSeenFlag) { - this.url.password += encodedCodePoints; - } else { - this.url.username += encodedCodePoints; - } - } - this.buffer = ""; - } else if (isNaN(c) || c === 47 || c === 63 || c === 35 || isSpecial(this.url) && c === 92) { - if (this.atFlag && this.buffer === "") { - this.parseError = true; - return failure; - } - this.pointer -= countSymbols(this.buffer) + 1; - this.buffer = ""; - this.state = "host"; - } else { - this.buffer += cStr; - } - return true; - }; - URLStateMachine.prototype["parse hostname"] = URLStateMachine.prototype["parse host"] = function parseHostName(c, cStr) { - if (this.stateOverride && this.url.scheme === "file") { - --this.pointer; - this.state = "file host"; - } else if (c === 58 && !this.arrFlag) { - if (this.buffer === "") { - this.parseError = true; - return failure; - } - const host = parseHost(this.buffer, isSpecial(this.url)); - if (host === failure) { - return failure; - } - this.url.host = host; - this.buffer = ""; - this.state = "port"; - if (this.stateOverride === "hostname") { - return false; - } - } else if (isNaN(c) || c === 47 || c === 63 || c === 35 || isSpecial(this.url) && c === 92) { - --this.pointer; - if (isSpecial(this.url) && this.buffer === "") { - this.parseError = true; - return failure; - } else if (this.stateOverride && this.buffer === "" && (includesCredentials(this.url) || this.url.port !== null)) { - this.parseError = true; - return false; - } - const host = parseHost(this.buffer, isSpecial(this.url)); - if (host === failure) { - return failure; - } - this.url.host = host; - this.buffer = ""; - this.state = "path start"; - if (this.stateOverride) { - return false; - } - } else { - if (c === 91) { - this.arrFlag = true; - } else if (c === 93) { - this.arrFlag = false; - } - this.buffer += cStr; - } - return true; - }; - URLStateMachine.prototype["parse port"] = function parsePort(c, cStr) { - if (isASCIIDigit(c)) { - this.buffer += cStr; - } else if (isNaN(c) || c === 47 || c === 63 || c === 35 || isSpecial(this.url) && c === 92 || this.stateOverride) { - if (this.buffer !== "") { - const port = parseInt(this.buffer); - if (port > Math.pow(2, 16) - 1) { - this.parseError = true; - return failure; - } - this.url.port = port === defaultPort(this.url.scheme) ? null : port; - this.buffer = ""; - } - if (this.stateOverride) { - return false; - } - this.state = "path start"; - --this.pointer; - } else { - this.parseError = true; - return failure; - } - return true; - }; - var fileOtherwiseCodePoints = /* @__PURE__ */ new Set([47, 92, 63, 35]); - URLStateMachine.prototype["parse file"] = function parseFile(c) { - this.url.scheme = "file"; - if (c === 47 || c === 92) { - if (c === 92) { - this.parseError = true; - } - this.state = "file slash"; - } else if (this.base !== null && this.base.scheme === "file") { - if (isNaN(c)) { - this.url.host = this.base.host; - this.url.path = this.base.path.slice(); - this.url.query = this.base.query; - } else if (c === 63) { - this.url.host = this.base.host; - this.url.path = this.base.path.slice(); - this.url.query = ""; - this.state = "query"; - } else if (c === 35) { - this.url.host = this.base.host; - this.url.path = this.base.path.slice(); - this.url.query = this.base.query; - this.url.fragment = ""; - this.state = "fragment"; - } else { - if (this.input.length - this.pointer - 1 === 0 || // remaining consists of 0 code points - !isWindowsDriveLetterCodePoints(c, this.input[this.pointer + 1]) || this.input.length - this.pointer - 1 >= 2 && // remaining has at least 2 code points - !fileOtherwiseCodePoints.has(this.input[this.pointer + 2])) { - this.url.host = this.base.host; - this.url.path = this.base.path.slice(); - shortenPath(this.url); - } else { - this.parseError = true; - } - this.state = "path"; - --this.pointer; - } - } else { - this.state = "path"; - --this.pointer; - } - return true; - }; - URLStateMachine.prototype["parse file slash"] = function parseFileSlash(c) { - if (c === 47 || c === 92) { - if (c === 92) { - this.parseError = true; - } - this.state = "file host"; - } else { - if (this.base !== null && this.base.scheme === "file") { - if (isNormalizedWindowsDriveLetterString(this.base.path[0])) { - this.url.path.push(this.base.path[0]); - } else { - this.url.host = this.base.host; - } - } - this.state = "path"; - --this.pointer; - } - return true; - }; - URLStateMachine.prototype["parse file host"] = function parseFileHost(c, cStr) { - if (isNaN(c) || c === 47 || c === 92 || c === 63 || c === 35) { - --this.pointer; - if (!this.stateOverride && isWindowsDriveLetterString(this.buffer)) { - this.parseError = true; - this.state = "path"; - } else if (this.buffer === "") { - this.url.host = ""; - if (this.stateOverride) { - return false; - } - this.state = "path start"; - } else { - let host = parseHost(this.buffer, isSpecial(this.url)); - if (host === failure) { - return failure; - } - if (host === "localhost") { - host = ""; - } - this.url.host = host; - if (this.stateOverride) { - return false; - } - this.buffer = ""; - this.state = "path start"; - } - } else { - this.buffer += cStr; - } - return true; - }; - URLStateMachine.prototype["parse path start"] = function parsePathStart(c) { - if (isSpecial(this.url)) { - if (c === 92) { - this.parseError = true; - } - this.state = "path"; - if (c !== 47 && c !== 92) { - --this.pointer; - } - } else if (!this.stateOverride && c === 63) { - this.url.query = ""; - this.state = "query"; - } else if (!this.stateOverride && c === 35) { - this.url.fragment = ""; - this.state = "fragment"; - } else if (c !== void 0) { - this.state = "path"; - if (c !== 47) { - --this.pointer; - } - } - return true; - }; - URLStateMachine.prototype["parse path"] = function parsePath(c) { - if (isNaN(c) || c === 47 || isSpecial(this.url) && c === 92 || !this.stateOverride && (c === 63 || c === 35)) { - if (isSpecial(this.url) && c === 92) { - this.parseError = true; - } - if (isDoubleDot(this.buffer)) { - shortenPath(this.url); - if (c !== 47 && !(isSpecial(this.url) && c === 92)) { - this.url.path.push(""); - } - } else if (isSingleDot(this.buffer) && c !== 47 && !(isSpecial(this.url) && c === 92)) { - this.url.path.push(""); - } else if (!isSingleDot(this.buffer)) { - if (this.url.scheme === "file" && this.url.path.length === 0 && isWindowsDriveLetterString(this.buffer)) { - if (this.url.host !== "" && this.url.host !== null) { - this.parseError = true; - this.url.host = ""; - } - this.buffer = this.buffer[0] + ":"; - } - this.url.path.push(this.buffer); - } - this.buffer = ""; - if (this.url.scheme === "file" && (c === void 0 || c === 63 || c === 35)) { - while (this.url.path.length > 1 && this.url.path[0] === "") { - this.parseError = true; - this.url.path.shift(); - } - } - if (c === 63) { - this.url.query = ""; - this.state = "query"; - } - if (c === 35) { - this.url.fragment = ""; - this.state = "fragment"; - } - } else { - if (c === 37 && (!isASCIIHex(this.input[this.pointer + 1]) || !isASCIIHex(this.input[this.pointer + 2]))) { - this.parseError = true; - } - this.buffer += percentEncodeChar(c, isPathPercentEncode); - } - return true; - }; - URLStateMachine.prototype["parse cannot-be-a-base-URL path"] = function parseCannotBeABaseURLPath(c) { - if (c === 63) { - this.url.query = ""; - this.state = "query"; - } else if (c === 35) { - this.url.fragment = ""; - this.state = "fragment"; - } else { - if (!isNaN(c) && c !== 37) { - this.parseError = true; - } - if (c === 37 && (!isASCIIHex(this.input[this.pointer + 1]) || !isASCIIHex(this.input[this.pointer + 2]))) { - this.parseError = true; - } - if (!isNaN(c)) { - this.url.path[0] = this.url.path[0] + percentEncodeChar(c, isC0ControlPercentEncode); - } - } - return true; - }; - URLStateMachine.prototype["parse query"] = function parseQuery(c, cStr) { - if (isNaN(c) || !this.stateOverride && c === 35) { - if (!isSpecial(this.url) || this.url.scheme === "ws" || this.url.scheme === "wss") { - this.encodingOverride = "utf-8"; - } - const buffer = new Buffer(this.buffer); - for (let i = 0; i < buffer.length; ++i) { - if (buffer[i] < 33 || buffer[i] > 126 || buffer[i] === 34 || buffer[i] === 35 || buffer[i] === 60 || buffer[i] === 62) { - this.url.query += percentEncode(buffer[i]); - } else { - this.url.query += String.fromCodePoint(buffer[i]); - } - } - this.buffer = ""; - if (c === 35) { - this.url.fragment = ""; - this.state = "fragment"; - } - } else { - if (c === 37 && (!isASCIIHex(this.input[this.pointer + 1]) || !isASCIIHex(this.input[this.pointer + 2]))) { - this.parseError = true; - } - this.buffer += cStr; - } - return true; - }; - URLStateMachine.prototype["parse fragment"] = function parseFragment(c) { - if (isNaN(c)) { - } else if (c === 0) { - this.parseError = true; - } else { - if (c === 37 && (!isASCIIHex(this.input[this.pointer + 1]) || !isASCIIHex(this.input[this.pointer + 2]))) { - this.parseError = true; - } - this.url.fragment += percentEncodeChar(c, isC0ControlPercentEncode); - } - return true; - }; - function serializeURL(url2, excludeFragment) { - let output = url2.scheme + ":"; - if (url2.host !== null) { - output += "//"; - if (url2.username !== "" || url2.password !== "") { - output += url2.username; - if (url2.password !== "") { - output += ":" + url2.password; - } - output += "@"; - } - output += serializeHost(url2.host); - if (url2.port !== null) { - output += ":" + url2.port; - } - } else if (url2.host === null && url2.scheme === "file") { - output += "//"; - } - if (url2.cannotBeABaseURL) { - output += url2.path[0]; - } else { - for (const string of url2.path) { - output += "/" + string; - } - } - if (url2.query !== null) { - output += "?" + url2.query; - } - if (!excludeFragment && url2.fragment !== null) { - output += "#" + url2.fragment; - } - return output; - } - function serializeOrigin(tuple) { - let result = tuple.scheme + "://"; - result += serializeHost(tuple.host); - if (tuple.port !== null) { - result += ":" + tuple.port; - } - return result; - } - module2.exports.serializeURL = serializeURL; - module2.exports.serializeURLOrigin = function(url2) { - switch (url2.scheme) { - case "blob": - try { - return module2.exports.serializeURLOrigin(module2.exports.parseURL(url2.path[0])); - } catch (e) { - return "null"; - } - case "ftp": - case "gopher": - case "http": - case "https": - case "ws": - case "wss": - return serializeOrigin({ - scheme: url2.scheme, - host: url2.host, - port: url2.port - }); - case "file": - return "file://"; - default: - return "null"; - } - }; - module2.exports.basicURLParse = function(input, options2) { - if (options2 === void 0) { - options2 = {}; - } - const usm = new URLStateMachine(input, options2.baseURL, options2.encodingOverride, options2.url, options2.stateOverride); - if (usm.failure) { - return "failure"; - } - return usm.url; - }; - module2.exports.setTheUsername = function(url2, username) { - url2.username = ""; - const decoded = punycode.ucs2.decode(username); - for (let i = 0; i < decoded.length; ++i) { - url2.username += percentEncodeChar(decoded[i], isUserinfoPercentEncode); - } - }; - module2.exports.setThePassword = function(url2, password) { - url2.password = ""; - const decoded = punycode.ucs2.decode(password); - for (let i = 0; i < decoded.length; ++i) { - url2.password += percentEncodeChar(decoded[i], isUserinfoPercentEncode); - } - }; - module2.exports.serializeHost = serializeHost; - module2.exports.cannotHaveAUsernamePasswordPort = cannotHaveAUsernamePasswordPort; - module2.exports.serializeInteger = function(integer) { - return String(integer); - }; - module2.exports.parseURL = function(input, options2) { - if (options2 === void 0) { - options2 = {}; - } - return module2.exports.basicURLParse(input, { baseURL: options2.baseURL, encodingOverride: options2.encodingOverride }); - }; - } -}); - -// ../node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/URL-impl.js -var require_URL_impl = __commonJS({ - "../node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/URL-impl.js"(exports2) { - "use strict"; - var usm = require_url_state_machine(); - exports2.implementation = class URLImpl { - constructor(constructorArgs) { - const url2 = constructorArgs[0]; - const base = constructorArgs[1]; - let parsedBase = null; - if (base !== void 0) { - parsedBase = usm.basicURLParse(base); - if (parsedBase === "failure") { - throw new TypeError("Invalid base URL"); - } - } - const parsedURL = usm.basicURLParse(url2, { baseURL: parsedBase }); - if (parsedURL === "failure") { - throw new TypeError("Invalid URL"); - } - this._url = parsedURL; - } - get href() { - return usm.serializeURL(this._url); - } - set href(v) { - const parsedURL = usm.basicURLParse(v); - if (parsedURL === "failure") { - throw new TypeError("Invalid URL"); - } - this._url = parsedURL; - } - get origin() { - return usm.serializeURLOrigin(this._url); - } - get protocol() { - return this._url.scheme + ":"; - } - set protocol(v) { - usm.basicURLParse(v + ":", { url: this._url, stateOverride: "scheme start" }); - } - get username() { - return this._url.username; - } - set username(v) { - if (usm.cannotHaveAUsernamePasswordPort(this._url)) { - return; - } - usm.setTheUsername(this._url, v); - } - get password() { - return this._url.password; - } - set password(v) { - if (usm.cannotHaveAUsernamePasswordPort(this._url)) { - return; - } - usm.setThePassword(this._url, v); - } - get host() { - const url2 = this._url; - if (url2.host === null) { - return ""; - } - if (url2.port === null) { - return usm.serializeHost(url2.host); - } - return usm.serializeHost(url2.host) + ":" + usm.serializeInteger(url2.port); - } - set host(v) { - if (this._url.cannotBeABaseURL) { - return; - } - usm.basicURLParse(v, { url: this._url, stateOverride: "host" }); - } - get hostname() { - if (this._url.host === null) { - return ""; - } - return usm.serializeHost(this._url.host); - } - set hostname(v) { - if (this._url.cannotBeABaseURL) { - return; - } - usm.basicURLParse(v, { url: this._url, stateOverride: "hostname" }); - } - get port() { - if (this._url.port === null) { - return ""; - } - return usm.serializeInteger(this._url.port); - } - set port(v) { - if (usm.cannotHaveAUsernamePasswordPort(this._url)) { - return; - } - if (v === "") { - this._url.port = null; - } else { - usm.basicURLParse(v, { url: this._url, stateOverride: "port" }); - } - } - get pathname() { - if (this._url.cannotBeABaseURL) { - return this._url.path[0]; - } - if (this._url.path.length === 0) { - return ""; - } - return "/" + this._url.path.join("/"); - } - set pathname(v) { - if (this._url.cannotBeABaseURL) { - return; - } - this._url.path = []; - usm.basicURLParse(v, { url: this._url, stateOverride: "path start" }); - } - get search() { - if (this._url.query === null || this._url.query === "") { - return ""; - } - return "?" + this._url.query; - } - set search(v) { - const url2 = this._url; - if (v === "") { - url2.query = null; - return; - } - const input = v[0] === "?" ? v.substring(1) : v; - url2.query = ""; - usm.basicURLParse(input, { url: url2, stateOverride: "query" }); - } - get hash() { - if (this._url.fragment === null || this._url.fragment === "") { - return ""; - } - return "#" + this._url.fragment; - } - set hash(v) { - if (v === "") { - this._url.fragment = null; - return; - } - const input = v[0] === "#" ? v.substring(1) : v; - this._url.fragment = ""; - usm.basicURLParse(input, { url: this._url, stateOverride: "fragment" }); - } - toJSON() { - return this.href; - } - }; - } -}); - -// ../node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/URL.js -var require_URL = __commonJS({ - "../node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/URL.js"(exports2, module2) { - "use strict"; - var conversions = require_lib(); - var utils = require_utils2(); - var Impl = require_URL_impl(); - var impl = utils.implSymbol; - function URL2(url2) { - if (!this || this[impl] || !(this instanceof URL2)) { - throw new TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'URL': 1 argument required, but only " + arguments.length + " present."); - } - const args3 = []; - for (let i = 0; i < arguments.length && i < 2; ++i) { - args3[i] = arguments[i]; - } - args3[0] = conversions["USVString"](args3[0]); - if (args3[1] !== void 0) { - args3[1] = conversions["USVString"](args3[1]); - } - module2.exports.setup(this, args3); - } - URL2.prototype.toJSON = function toJSON2() { - if (!this || !module2.exports.is(this)) { - throw new TypeError("Illegal invocation"); - } - const args3 = []; - for (let i = 0; i < arguments.length && i < 0; ++i) { - args3[i] = arguments[i]; - } - return this[impl].toJSON.apply(this[impl], args3); - }; - Object.defineProperty(URL2.prototype, "href", { - get() { - return this[impl].href; - }, - set(V) { - V = conversions["USVString"](V); - this[impl].href = V; - }, - enumerable: true, - configurable: true - }); - URL2.prototype.toString = function() { - if (!this || !module2.exports.is(this)) { - throw new TypeError("Illegal invocation"); - } - return this.href; - }; - Object.defineProperty(URL2.prototype, "origin", { - get() { - return this[impl].origin; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(URL2.prototype, "protocol", { - get() { - return this[impl].protocol; - }, - set(V) { - V = conversions["USVString"](V); - this[impl].protocol = V; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(URL2.prototype, "username", { - get() { - return this[impl].username; - }, - set(V) { - V = conversions["USVString"](V); - this[impl].username = V; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(URL2.prototype, "password", { - get() { - return this[impl].password; - }, - set(V) { - V = conversions["USVString"](V); - this[impl].password = V; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(URL2.prototype, "host", { - get() { - return this[impl].host; - }, - set(V) { - V = conversions["USVString"](V); - this[impl].host = V; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(URL2.prototype, "hostname", { - get() { - return this[impl].hostname; - }, - set(V) { - V = conversions["USVString"](V); - this[impl].hostname = V; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(URL2.prototype, "port", { - get() { - return this[impl].port; - }, - set(V) { - V = conversions["USVString"](V); - this[impl].port = V; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(URL2.prototype, "pathname", { - get() { - return this[impl].pathname; - }, - set(V) { - V = conversions["USVString"](V); - this[impl].pathname = V; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(URL2.prototype, "search", { - get() { - return this[impl].search; - }, - set(V) { - V = conversions["USVString"](V); - this[impl].search = V; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(URL2.prototype, "hash", { - get() { - return this[impl].hash; - }, - set(V) { - V = conversions["USVString"](V); - this[impl].hash = V; - }, - enumerable: true, - configurable: true - }); - module2.exports = { - is(obj2) { - return !!obj2 && obj2[impl] instanceof Impl.implementation; - }, - create(constructorArgs, privateData) { - let obj2 = Object.create(URL2.prototype); - this.setup(obj2, constructorArgs, privateData); - return obj2; - }, - setup(obj2, constructorArgs, privateData) { - if (!privateData) - privateData = {}; - privateData.wrapper = obj2; - obj2[impl] = new Impl.implementation(constructorArgs, privateData); - obj2[impl][utils.wrapperSymbol] = obj2; - }, - interface: URL2, - expose: { - Window: { URL: URL2 }, - Worker: { URL: URL2 } - } - }; - } -}); - -// ../node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/public-api.js -var require_public_api = __commonJS({ - "../node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/public-api.js"(exports2) { - "use strict"; - exports2.URL = require_URL().interface; - exports2.serializeURL = require_url_state_machine().serializeURL; - exports2.serializeURLOrigin = require_url_state_machine().serializeURLOrigin; - exports2.basicURLParse = require_url_state_machine().basicURLParse; - exports2.setTheUsername = require_url_state_machine().setTheUsername; - exports2.setThePassword = require_url_state_machine().setThePassword; - exports2.serializeHost = require_url_state_machine().serializeHost; - exports2.serializeInteger = require_url_state_machine().serializeInteger; - exports2.parseURL = require_url_state_machine().parseURL; - } -}); - -// ../node_modules/.pnpm/node-fetch@2.6.11/node_modules/node-fetch/lib/index.js -var require_lib2 = __commonJS({ - "../node_modules/.pnpm/node-fetch@2.6.11/node_modules/node-fetch/lib/index.js"(exports2, module2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - function _interopDefault(ex) { - return ex && typeof ex === "object" && "default" in ex ? ex["default"] : ex; - } - var Stream2 = _interopDefault(require("stream")); - var http6 = _interopDefault(require("http")); - var Url = _interopDefault(require("url")); - var whatwgUrl = _interopDefault(require_public_api()); - var https4 = _interopDefault(require("https")); - var zlib2 = _interopDefault(require("zlib")); - var Readable3 = Stream2.Readable; - var BUFFER2 = Symbol("buffer"); - var TYPE4 = Symbol("type"); - var Blob2 = class _Blob { - constructor() { - this[TYPE4] = ""; - const blobParts = arguments[0]; - const options2 = arguments[1]; - const buffers = []; - let size = 0; - if (blobParts) { - const a = blobParts; - const length = Number(a.length); - for (let i = 0; i < length; i++) { - const element = a[i]; - let buffer; - if (element instanceof Buffer) { - buffer = element; - } else if (ArrayBuffer.isView(element)) { - buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength); - } else if (element instanceof ArrayBuffer) { - buffer = Buffer.from(element); - } else if (element instanceof _Blob) { - buffer = element[BUFFER2]; - } else { - buffer = Buffer.from(typeof element === "string" ? element : String(element)); - } - size += buffer.length; - buffers.push(buffer); - } - } - this[BUFFER2] = Buffer.concat(buffers); - let type = options2 && options2.type !== void 0 && String(options2.type).toLowerCase(); - if (type && !/[^\u0020-\u007E]/.test(type)) { - this[TYPE4] = type; - } - } - get size() { - return this[BUFFER2].length; - } - get type() { - return this[TYPE4]; - } - text() { - return Promise.resolve(this[BUFFER2].toString()); - } - arrayBuffer() { - const buf = this[BUFFER2]; - const ab = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); - return Promise.resolve(ab); - } - stream() { - const readable = new Readable3(); - readable._read = function() { - }; - readable.push(this[BUFFER2]); - readable.push(null); - return readable; - } - toString() { - return "[object Blob]"; - } - slice() { - const size = this.size; - const start4 = arguments[0]; - const end = arguments[1]; - let relativeStart, relativeEnd; - if (start4 === void 0) { - relativeStart = 0; - } else if (start4 < 0) { - relativeStart = Math.max(size + start4, 0); - } else { - relativeStart = Math.min(start4, size); - } - if (end === void 0) { - relativeEnd = size; - } else if (end < 0) { - relativeEnd = Math.max(size + end, 0); - } else { - relativeEnd = Math.min(end, size); - } - const span = Math.max(relativeEnd - relativeStart, 0); - const buffer = this[BUFFER2]; - const slicedBuffer = buffer.slice(relativeStart, relativeStart + span); - const blob = new _Blob([], { type: arguments[2] }); - blob[BUFFER2] = slicedBuffer; - return blob; - } - }; - Object.defineProperties(Blob2.prototype, { - size: { enumerable: true }, - type: { enumerable: true }, - slice: { enumerable: true } - }); - Object.defineProperty(Blob2.prototype, Symbol.toStringTag, { - value: "Blob", - writable: false, - enumerable: false, - configurable: true - }); - function FetchError(message, type, systemError) { - Error.call(this, message); - this.message = message; - this.type = type; - if (systemError) { - this.code = this.errno = systemError.code; - } - Error.captureStackTrace(this, this.constructor); - } - FetchError.prototype = Object.create(Error.prototype); - FetchError.prototype.constructor = FetchError; - FetchError.prototype.name = "FetchError"; - var convert; - try { - convert = require("encoding").convert; - } catch (e) { - } - var INTERNALS = Symbol("Body internals"); - var PassThrough = Stream2.PassThrough; - function Body(body2) { - var _this = this; - var _ref = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, _ref$size = _ref.size; - let size = _ref$size === void 0 ? 0 : _ref$size; - var _ref$timeout = _ref.timeout; - let timeout = _ref$timeout === void 0 ? 0 : _ref$timeout; - if (body2 == null) { - body2 = null; - } else if (isURLSearchParams2(body2)) { - body2 = Buffer.from(body2.toString()); - } else if (isBlob2(body2)) - ; - else if (Buffer.isBuffer(body2)) - ; - else if (Object.prototype.toString.call(body2) === "[object ArrayBuffer]") { - body2 = Buffer.from(body2); - } else if (ArrayBuffer.isView(body2)) { - body2 = Buffer.from(body2.buffer, body2.byteOffset, body2.byteLength); - } else if (body2 instanceof Stream2) - ; - else { - body2 = Buffer.from(String(body2)); - } - this[INTERNALS] = { - body: body2, - disturbed: false, - error: null - }; - this.size = size; - this.timeout = timeout; - if (body2 instanceof Stream2) { - body2.on("error", function(err3) { - const error = err3.name === "AbortError" ? err3 : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err3.message}`, "system", err3); - _this[INTERNALS].error = error; - }); - } - } - Body.prototype = { - get body() { - return this[INTERNALS].body; - }, - get bodyUsed() { - return this[INTERNALS].disturbed; - }, - /** - * Decode response as ArrayBuffer - * - * @return Promise - */ - arrayBuffer() { - return consumeBody.call(this).then(function(buf) { - return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); - }); - }, - /** - * Return raw response as Blob - * - * @return Promise - */ - blob() { - let ct = this.headers && this.headers.get("content-type") || ""; - return consumeBody.call(this).then(function(buf) { - return Object.assign( - // Prevent copying - new Blob2([], { - type: ct.toLowerCase() - }), - { - [BUFFER2]: buf - } - ); - }); - }, - /** - * Decode response as json - * - * @return Promise - */ - json() { - var _this2 = this; - return consumeBody.call(this).then(function(buffer) { - try { - return JSON.parse(buffer.toString()); - } catch (err3) { - return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err3.message}`, "invalid-json")); - } - }); - }, - /** - * Decode response as text - * - * @return Promise - */ - text() { - return consumeBody.call(this).then(function(buffer) { - return buffer.toString(); - }); - }, - /** - * Decode response as buffer (non-spec api) - * - * @return Promise - */ - buffer() { - return consumeBody.call(this); - }, - /** - * Decode response as text, while automatically detecting the encoding and - * trying to decode to UTF-8 (non-spec api) - * - * @return Promise - */ - textConverted() { - var _this3 = this; - return consumeBody.call(this).then(function(buffer) { - return convertBody(buffer, _this3.headers); - }); - } - }; - Object.defineProperties(Body.prototype, { - body: { enumerable: true }, - bodyUsed: { enumerable: true }, - arrayBuffer: { enumerable: true }, - blob: { enumerable: true }, - json: { enumerable: true }, - text: { enumerable: true } - }); - Body.mixIn = function(proto) { - for (const name of Object.getOwnPropertyNames(Body.prototype)) { - if (!(name in proto)) { - const desc = Object.getOwnPropertyDescriptor(Body.prototype, name); - Object.defineProperty(proto, name, desc); - } - } - }; - function consumeBody() { - var _this4 = this; - if (this[INTERNALS].disturbed) { - return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`)); - } - this[INTERNALS].disturbed = true; - if (this[INTERNALS].error) { - return Body.Promise.reject(this[INTERNALS].error); - } - let body2 = this.body; - if (body2 === null) { - return Body.Promise.resolve(Buffer.alloc(0)); - } - if (isBlob2(body2)) { - body2 = body2.stream(); - } - if (Buffer.isBuffer(body2)) { - return Body.Promise.resolve(body2); - } - if (!(body2 instanceof Stream2)) { - return Body.Promise.resolve(Buffer.alloc(0)); - } - let accum = []; - let accumBytes = 0; - let abort2 = false; - return new Body.Promise(function(resolve8, reject) { - let resTimeout; - if (_this4.timeout) { - resTimeout = setTimeout(function() { - abort2 = true; - reject(new FetchError(`Response timeout while trying to fetch ${_this4.url} (over ${_this4.timeout}ms)`, "body-timeout")); - }, _this4.timeout); - } - body2.on("error", function(err3) { - if (err3.name === "AbortError") { - abort2 = true; - reject(err3); - } else { - reject(new FetchError(`Invalid response body while trying to fetch ${_this4.url}: ${err3.message}`, "system", err3)); - } - }); - body2.on("data", function(chunk) { - if (abort2 || chunk === null) { - return; - } - if (_this4.size && accumBytes + chunk.length > _this4.size) { - abort2 = true; - reject(new FetchError(`content size at ${_this4.url} over limit: ${_this4.size}`, "max-size")); - return; - } - accumBytes += chunk.length; - accum.push(chunk); - }); - body2.on("end", function() { - if (abort2) { - return; - } - clearTimeout(resTimeout); - try { - resolve8(Buffer.concat(accum, accumBytes)); - } catch (err3) { - reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err3.message}`, "system", err3)); - } - }); - }); - } - function convertBody(buffer, headers) { - if (typeof convert !== "function") { - throw new Error("The package `encoding` must be installed to use the textConverted() function"); - } - const ct = headers.get("content-type"); - let charset = "utf-8"; - let res, str; - if (ct) { - res = /charset=([^;]*)/i.exec(ct); - } - str = buffer.slice(0, 1024).toString(); - if (!res && str) { - res = / 0 && arguments[0] !== void 0 ? arguments[0] : void 0; - this[MAP] = /* @__PURE__ */ Object.create(null); - if (init3 instanceof _Headers) { - const rawHeaders = init3.raw(); - const headerNames = Object.keys(rawHeaders); - for (const headerName of headerNames) { - for (const value of rawHeaders[headerName]) { - this.append(headerName, value); - } - } - return; - } - if (init3 == null) - ; - else if (typeof init3 === "object") { - const method = init3[Symbol.iterator]; - if (method != null) { - if (typeof method !== "function") { - throw new TypeError("Header pairs must be iterable"); - } - const pairs = []; - for (const pair of init3) { - if (typeof pair !== "object" || typeof pair[Symbol.iterator] !== "function") { - throw new TypeError("Each header pair must be iterable"); - } - pairs.push(Array.from(pair)); - } - for (const pair of pairs) { - if (pair.length !== 2) { - throw new TypeError("Each header pair must be a name/value tuple"); - } - this.append(pair[0], pair[1]); - } - } else { - for (const key of Object.keys(init3)) { - const value = init3[key]; - this.append(key, value); - } - } - } else { - throw new TypeError("Provided initializer must be an object"); - } - } - /** - * Return combined header value given name - * - * @param String name Header name - * @return Mixed - */ - get(name) { - name = `${name}`; - validateName(name); - const key = find(this[MAP], name); - if (key === void 0) { - return null; - } - return this[MAP][key].join(", "); - } - /** - * Iterate over all headers - * - * @param Function callback Executed for each item with parameters (value, name, thisArg) - * @param Boolean thisArg `this` context for callback function - * @return Void - */ - forEach(callback) { - let thisArg = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : void 0; - let pairs = getHeaders(this); - let i = 0; - while (i < pairs.length) { - var _pairs$i = pairs[i]; - const name = _pairs$i[0], value = _pairs$i[1]; - callback.call(thisArg, value, name, this); - pairs = getHeaders(this); - i++; - } - } - /** - * Overwrite header values given name - * - * @param String name Header name - * @param String value Header value - * @return Void - */ - set(name, value) { - name = `${name}`; - value = `${value}`; - validateName(name); - validateValue(value); - const key = find(this[MAP], name); - this[MAP][key !== void 0 ? key : name] = [value]; - } - /** - * Append a value onto existing header - * - * @param String name Header name - * @param String value Header value - * @return Void - */ - append(name, value) { - name = `${name}`; - value = `${value}`; - validateName(name); - validateValue(value); - const key = find(this[MAP], name); - if (key !== void 0) { - this[MAP][key].push(value); - } else { - this[MAP][name] = [value]; - } - } - /** - * Check for header name existence - * - * @param String name Header name - * @return Boolean - */ - has(name) { - name = `${name}`; - validateName(name); - return find(this[MAP], name) !== void 0; - } - /** - * Delete all header values given name - * - * @param String name Header name - * @return Void - */ - delete(name) { - name = `${name}`; - validateName(name); - const key = find(this[MAP], name); - if (key !== void 0) { - delete this[MAP][key]; - } - } - /** - * Return raw headers (non-spec api) - * - * @return Object - */ - raw() { - return this[MAP]; - } - /** - * Get an iterator on keys. - * - * @return Iterator - */ - keys() { - return createHeadersIterator(this, "key"); - } - /** - * Get an iterator on values. - * - * @return Iterator - */ - values() { - return createHeadersIterator(this, "value"); - } - /** - * Get an iterator on entries. - * - * This is the default iterator of the Headers object. - * - * @return Iterator - */ - [Symbol.iterator]() { - return createHeadersIterator(this, "key+value"); - } - }; - Headers2.prototype.entries = Headers2.prototype[Symbol.iterator]; - Object.defineProperty(Headers2.prototype, Symbol.toStringTag, { - value: "Headers", - writable: false, - enumerable: false, - configurable: true - }); - Object.defineProperties(Headers2.prototype, { - get: { enumerable: true }, - forEach: { enumerable: true }, - set: { enumerable: true }, - append: { enumerable: true }, - has: { enumerable: true }, - delete: { enumerable: true }, - keys: { enumerable: true }, - values: { enumerable: true }, - entries: { enumerable: true } - }); - function getHeaders(headers) { - let kind = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "key+value"; - const keys = Object.keys(headers[MAP]).sort(); - return keys.map(kind === "key" ? function(k) { - return k.toLowerCase(); - } : kind === "value" ? function(k) { - return headers[MAP][k].join(", "); - } : function(k) { - return [k.toLowerCase(), headers[MAP][k].join(", ")]; - }); - } - var INTERNAL2 = Symbol("internal"); - function createHeadersIterator(target, kind) { - const iterator = Object.create(HeadersIteratorPrototype); - iterator[INTERNAL2] = { - target, - kind, - index: 0 - }; - return iterator; - } - var HeadersIteratorPrototype = Object.setPrototypeOf({ - next() { - if (!this || Object.getPrototypeOf(this) !== HeadersIteratorPrototype) { - throw new TypeError("Value of `this` is not a HeadersIterator"); - } - var _INTERNAL = this[INTERNAL2]; - const target = _INTERNAL.target, kind = _INTERNAL.kind, index = _INTERNAL.index; - const values = getHeaders(target, kind); - const len = values.length; - if (index >= len) { - return { - value: void 0, - done: true - }; - } - this[INTERNAL2].index = index + 1; - return { - value: values[index], - done: false - }; - } - }, Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()))); - Object.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, { - value: "HeadersIterator", - writable: false, - enumerable: false, - configurable: true - }); - function exportNodeCompatibleHeaders(headers) { - const obj2 = Object.assign({ __proto__: null }, headers[MAP]); - const hostHeaderKey = find(headers[MAP], "Host"); - if (hostHeaderKey !== void 0) { - obj2[hostHeaderKey] = obj2[hostHeaderKey][0]; - } - return obj2; - } - function createHeadersLenient(obj2) { - const headers = new Headers2(); - for (const name of Object.keys(obj2)) { - if (invalidTokenRegex.test(name)) { - continue; - } - if (Array.isArray(obj2[name])) { - for (const val2 of obj2[name]) { - if (invalidHeaderCharRegex.test(val2)) { - continue; - } - if (headers[MAP][name] === void 0) { - headers[MAP][name] = [val2]; - } else { - headers[MAP][name].push(val2); - } - } - } else if (!invalidHeaderCharRegex.test(obj2[name])) { - headers[MAP][name] = [obj2[name]]; - } - } - return headers; - } - var INTERNALS$1 = Symbol("Response internals"); - var STATUS_CODES = http6.STATUS_CODES; - var Response2 = class _Response { - constructor() { - let body2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null; - let opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; - Body.call(this, body2, opts); - const status = opts.status || 200; - const headers = new Headers2(opts.headers); - if (body2 != null && !headers.has("Content-Type")) { - const contentType = extractContentType(body2); - if (contentType) { - headers.append("Content-Type", contentType); - } - } - this[INTERNALS$1] = { - url: opts.url, - status, - statusText: opts.statusText || STATUS_CODES[status], - headers, - counter: opts.counter - }; - } - get url() { - return this[INTERNALS$1].url || ""; - } - get status() { - return this[INTERNALS$1].status; - } - /** - * Convenience property representing if the request ended normally - */ - get ok() { - return this[INTERNALS$1].status >= 200 && this[INTERNALS$1].status < 300; - } - get redirected() { - return this[INTERNALS$1].counter > 0; - } - get statusText() { - return this[INTERNALS$1].statusText; - } - get headers() { - return this[INTERNALS$1].headers; - } - /** - * Clone this response - * - * @return Response - */ - clone() { - return new _Response(clone(this), { - url: this.url, - status: this.status, - statusText: this.statusText, - headers: this.headers, - ok: this.ok, - redirected: this.redirected - }); - } - }; - Body.mixIn(Response2.prototype); - Object.defineProperties(Response2.prototype, { - url: { enumerable: true }, - status: { enumerable: true }, - ok: { enumerable: true }, - redirected: { enumerable: true }, - statusText: { enumerable: true }, - headers: { enumerable: true }, - clone: { enumerable: true } - }); - Object.defineProperty(Response2.prototype, Symbol.toStringTag, { - value: "Response", - writable: false, - enumerable: false, - configurable: true - }); - var INTERNALS$2 = Symbol("Request internals"); - var URL2 = Url.URL || whatwgUrl.URL; - var parse_url = Url.parse; - var format_url = Url.format; - function parseURL(urlStr) { - if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(urlStr)) { - urlStr = new URL2(urlStr).toString(); - } - return parse_url(urlStr); - } - var streamDestructionSupported = "destroy" in Stream2.Readable.prototype; - function isRequest(input) { - return typeof input === "object" && typeof input[INTERNALS$2] === "object"; - } - function isAbortSignal(signal) { - const proto = signal && typeof signal === "object" && Object.getPrototypeOf(signal); - return !!(proto && proto.constructor.name === "AbortSignal"); - } - var Request2 = class _Request { - constructor(input) { - let init3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; - let parsedURL; - if (!isRequest(input)) { - if (input && input.href) { - parsedURL = parseURL(input.href); - } else { - parsedURL = parseURL(`${input}`); - } - input = {}; - } else { - parsedURL = parseURL(input.url); - } - let method = init3.method || input.method || "GET"; - method = method.toUpperCase(); - if ((init3.body != null || isRequest(input) && input.body !== null) && (method === "GET" || method === "HEAD")) { - throw new TypeError("Request with GET/HEAD method cannot have body"); - } - let inputBody = init3.body != null ? init3.body : isRequest(input) && input.body !== null ? clone(input) : null; - Body.call(this, inputBody, { - timeout: init3.timeout || input.timeout || 0, - size: init3.size || input.size || 0 - }); - const headers = new Headers2(init3.headers || input.headers || {}); - if (inputBody != null && !headers.has("Content-Type")) { - const contentType = extractContentType(inputBody); - if (contentType) { - headers.append("Content-Type", contentType); - } - } - let signal = isRequest(input) ? input.signal : null; - if ("signal" in init3) - signal = init3.signal; - if (signal != null && !isAbortSignal(signal)) { - throw new TypeError("Expected signal to be an instanceof AbortSignal"); - } - this[INTERNALS$2] = { - method, - redirect: init3.redirect || input.redirect || "follow", - headers, - parsedURL, - signal - }; - this.follow = init3.follow !== void 0 ? init3.follow : input.follow !== void 0 ? input.follow : 20; - this.compress = init3.compress !== void 0 ? init3.compress : input.compress !== void 0 ? input.compress : true; - this.counter = init3.counter || input.counter || 0; - this.agent = init3.agent || input.agent; - } - get method() { - return this[INTERNALS$2].method; - } - get url() { - return format_url(this[INTERNALS$2].parsedURL); - } - get headers() { - return this[INTERNALS$2].headers; - } - get redirect() { - return this[INTERNALS$2].redirect; - } - get signal() { - return this[INTERNALS$2].signal; - } - /** - * Clone this request - * - * @return Request - */ - clone() { - return new _Request(this); - } - }; - Body.mixIn(Request2.prototype); - Object.defineProperty(Request2.prototype, Symbol.toStringTag, { - value: "Request", - writable: false, - enumerable: false, - configurable: true - }); - Object.defineProperties(Request2.prototype, { - method: { enumerable: true }, - url: { enumerable: true }, - headers: { enumerable: true }, - redirect: { enumerable: true }, - clone: { enumerable: true }, - signal: { enumerable: true } - }); - function getNodeRequestOptions(request) { - const parsedURL = request[INTERNALS$2].parsedURL; - const headers = new Headers2(request[INTERNALS$2].headers); - if (!headers.has("Accept")) { - headers.set("Accept", "*/*"); - } - if (!parsedURL.protocol || !parsedURL.hostname) { - throw new TypeError("Only absolute URLs are supported"); - } - if (!/^https?:$/.test(parsedURL.protocol)) { - throw new TypeError("Only HTTP(S) protocols are supported"); - } - if (request.signal && request.body instanceof Stream2.Readable && !streamDestructionSupported) { - throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8"); - } - let contentLengthValue = null; - if (request.body == null && /^(POST|PUT)$/i.test(request.method)) { - contentLengthValue = "0"; - } - if (request.body != null) { - const totalBytes = getTotalBytes(request); - if (typeof totalBytes === "number") { - contentLengthValue = String(totalBytes); - } - } - if (contentLengthValue) { - headers.set("Content-Length", contentLengthValue); - } - if (!headers.has("User-Agent")) { - headers.set("User-Agent", "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"); - } - if (request.compress && !headers.has("Accept-Encoding")) { - headers.set("Accept-Encoding", "gzip,deflate"); - } - let agent3 = request.agent; - if (typeof agent3 === "function") { - agent3 = agent3(parsedURL); - } - if (!headers.has("Connection") && !agent3) { - headers.set("Connection", "close"); - } - return Object.assign({}, parsedURL, { - method: request.method, - headers: exportNodeCompatibleHeaders(headers), - agent: agent3 - }); - } - function AbortError2(message) { - Error.call(this, message); - this.type = "aborted"; - this.message = message; - Error.captureStackTrace(this, this.constructor); - } - AbortError2.prototype = Object.create(Error.prototype); - AbortError2.prototype.constructor = AbortError2; - AbortError2.prototype.name = "AbortError"; - var URL$1 = Url.URL || whatwgUrl.URL; - var PassThrough$1 = Stream2.PassThrough; - var isDomainOrSubdomain = function isDomainOrSubdomain2(destination, original) { - const orig = new URL$1(original).hostname; - const dest = new URL$1(destination).hostname; - return orig === dest || orig[orig.length - dest.length - 1] === "." && orig.endsWith(dest); - }; - var isSameProtocol = function isSameProtocol2(destination, original) { - const orig = new URL$1(original).protocol; - const dest = new URL$1(destination).protocol; - return orig === dest; - }; - function fetch4(url2, opts) { - if (!fetch4.Promise) { - throw new Error("native promise missing, set fetch.Promise to your favorite alternative"); - } - Body.Promise = fetch4.Promise; - return new fetch4.Promise(function(resolve8, reject) { - const request = new Request2(url2, opts); - const options2 = getNodeRequestOptions(request); - const send = (options2.protocol === "https:" ? https4 : http6).request; - const signal = request.signal; - let response = null; - const abort2 = function abort3() { - let error = new AbortError2("The user aborted a request."); - reject(error); - if (request.body && request.body instanceof Stream2.Readable) { - destroyStream(request.body, error); - } - if (!response || !response.body) - return; - response.body.emit("error", error); - }; - if (signal && signal.aborted) { - abort2(); - return; - } - const abortAndFinalize = function abortAndFinalize2() { - abort2(); - finalize(); - }; - const req = send(options2); - let reqTimeout; - if (signal) { - signal.addEventListener("abort", abortAndFinalize); - } - function finalize() { - req.abort(); - if (signal) - signal.removeEventListener("abort", abortAndFinalize); - clearTimeout(reqTimeout); - } - if (request.timeout) { - req.once("socket", function(socket) { - reqTimeout = setTimeout(function() { - reject(new FetchError(`network timeout at: ${request.url}`, "request-timeout")); - finalize(); - }, request.timeout); - }); - } - req.on("error", function(err3) { - reject(new FetchError(`request to ${request.url} failed, reason: ${err3.message}`, "system", err3)); - if (response && response.body) { - destroyStream(response.body, err3); - } - finalize(); - }); - fixResponseChunkedTransferBadEnding(req, function(err3) { - if (signal && signal.aborted) { - return; - } - if (response && response.body) { - destroyStream(response.body, err3); - } - }); - if (parseInt(process.version.substring(1)) < 14) { - req.on("socket", function(s) { - s.addListener("close", function(hadError) { - const hasDataListener = s.listenerCount("data") > 0; - if (response && hasDataListener && !hadError && !(signal && signal.aborted)) { - const err3 = new Error("Premature close"); - err3.code = "ERR_STREAM_PREMATURE_CLOSE"; - response.body.emit("error", err3); - } - }); - }); - } - req.on("response", function(res) { - clearTimeout(reqTimeout); - const headers = createHeadersLenient(res.headers); - if (fetch4.isRedirect(res.statusCode)) { - const location = headers.get("Location"); - let locationURL = null; - try { - locationURL = location === null ? null : new URL$1(location, request.url).toString(); - } catch (err3) { - if (request.redirect !== "manual") { - reject(new FetchError(`uri requested responds with an invalid redirect URL: ${location}`, "invalid-redirect")); - finalize(); - return; - } - } - switch (request.redirect) { - case "error": - reject(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${request.url}`, "no-redirect")); - finalize(); - return; - case "manual": - if (locationURL !== null) { - try { - headers.set("Location", locationURL); - } catch (err3) { - reject(err3); - } - } - break; - case "follow": - if (locationURL === null) { - break; - } - if (request.counter >= request.follow) { - reject(new FetchError(`maximum redirect reached at: ${request.url}`, "max-redirect")); - finalize(); - return; - } - const requestOpts = { - headers: new Headers2(request.headers), - follow: request.follow, - counter: request.counter + 1, - agent: request.agent, - compress: request.compress, - method: request.method, - body: request.body, - signal: request.signal, - timeout: request.timeout, - size: request.size - }; - if (!isDomainOrSubdomain(request.url, locationURL) || !isSameProtocol(request.url, locationURL)) { - for (const name of ["authorization", "www-authenticate", "cookie", "cookie2"]) { - requestOpts.headers.delete(name); - } - } - if (res.statusCode !== 303 && request.body && getTotalBytes(request) === null) { - reject(new FetchError("Cannot follow redirect with body being a readable stream", "unsupported-redirect")); - finalize(); - return; - } - if (res.statusCode === 303 || (res.statusCode === 301 || res.statusCode === 302) && request.method === "POST") { - requestOpts.method = "GET"; - requestOpts.body = void 0; - requestOpts.headers.delete("content-length"); - } - resolve8(fetch4(new Request2(locationURL, requestOpts))); - finalize(); - return; - } - } - res.once("end", function() { - if (signal) - signal.removeEventListener("abort", abortAndFinalize); - }); - let body2 = res.pipe(new PassThrough$1()); - const response_options = { - url: request.url, - status: res.statusCode, - statusText: res.statusMessage, - headers, - size: request.size, - timeout: request.timeout, - counter: request.counter - }; - const codings = headers.get("Content-Encoding"); - if (!request.compress || request.method === "HEAD" || codings === null || res.statusCode === 204 || res.statusCode === 304) { - response = new Response2(body2, response_options); - resolve8(response); - return; - } - const zlibOptions2 = { - flush: zlib2.Z_SYNC_FLUSH, - finishFlush: zlib2.Z_SYNC_FLUSH - }; - if (codings == "gzip" || codings == "x-gzip") { - body2 = body2.pipe(zlib2.createGunzip(zlibOptions2)); - response = new Response2(body2, response_options); - resolve8(response); - return; - } - if (codings == "deflate" || codings == "x-deflate") { - const raw = res.pipe(new PassThrough$1()); - raw.once("data", function(chunk) { - if ((chunk[0] & 15) === 8) { - body2 = body2.pipe(zlib2.createInflate()); - } else { - body2 = body2.pipe(zlib2.createInflateRaw()); - } - response = new Response2(body2, response_options); - resolve8(response); - }); - raw.on("end", function() { - if (!response) { - response = new Response2(body2, response_options); - resolve8(response); - } - }); - return; - } - if (codings == "br" && typeof zlib2.createBrotliDecompress === "function") { - body2 = body2.pipe(zlib2.createBrotliDecompress()); - response = new Response2(body2, response_options); - resolve8(response); - return; - } - response = new Response2(body2, response_options); - resolve8(response); - }); - writeToStream(req, request); - }); - } - function fixResponseChunkedTransferBadEnding(request, errorCallback) { - let socket; - request.on("socket", function(s) { - socket = s; - }); - request.on("response", function(response) { - const headers = response.headers; - if (headers["transfer-encoding"] === "chunked" && !headers["content-length"]) { - response.once("close", function(hadError) { - const hasDataListener = socket.listenerCount("data") > 0; - if (hasDataListener && !hadError) { - const err3 = new Error("Premature close"); - err3.code = "ERR_STREAM_PREMATURE_CLOSE"; - errorCallback(err3); - } - }); - } - }); - } - function destroyStream(stream5, err3) { - if (stream5.destroy) { - stream5.destroy(err3); - } else { - stream5.emit("error", err3); - stream5.end(); - } - } - fetch4.isRedirect = function(code) { - return code === 301 || code === 302 || code === 303 || code === 307 || code === 308; - }; - fetch4.Promise = global.Promise; - module2.exports = exports2 = fetch4; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.default = exports2; - exports2.Headers = Headers2; - exports2.Request = Request2; - exports2.Response = Response2; - exports2.FetchError = FetchError; - } -}); - -// ../node_modules/.pnpm/isomorphic-fetch@3.0.0/node_modules/isomorphic-fetch/fetch-npm-node.js -var require_fetch_npm_node = __commonJS({ - "../node_modules/.pnpm/isomorphic-fetch@3.0.0/node_modules/isomorphic-fetch/fetch-npm-node.js"(exports2, module2) { - "use strict"; - var realFetch = require_lib2(); - module2.exports = function(url2, options2) { - if (/^\/\//.test(url2)) { - url2 = "https:" + url2; - } - return realFetch.call(this, url2, options2); - }; - if (!global.fetch) { - global.fetch = module2.exports; - global.Response = realFetch.Response; - global.Headers = realFetch.Headers; - global.Request = realFetch.Request; - } - } -}); - -// ../node_modules/.pnpm/vscode-uri@3.0.7/node_modules/vscode-uri/lib/umd/index.js -var require_umd = __commonJS({ - "../node_modules/.pnpm/vscode-uri@3.0.7/node_modules/vscode-uri/lib/umd/index.js"(exports2, module2) { - !function(t, e) { - if ("object" == typeof exports2 && "object" == typeof module2) - module2.exports = e(); - else if ("function" == typeof define && define.amd) - define([], e); - else { - var r = e(); - for (var n in r) - ("object" == typeof exports2 ? exports2 : t)[n] = r[n]; - } - }(exports2, () => (() => { - "use strict"; - var t = { 470: (t2) => { - function e2(t3) { - if ("string" != typeof t3) - throw new TypeError("Path must be a string. Received " + JSON.stringify(t3)); - } - function r2(t3, e3) { - for (var r3, n3 = "", o = 0, i = -1, a = 0, s = 0; s <= t3.length; ++s) { - if (s < t3.length) - r3 = t3.charCodeAt(s); - else { - if (47 === r3) - break; - r3 = 47; - } - if (47 === r3) { - if (i === s - 1 || 1 === a) - ; - else if (i !== s - 1 && 2 === a) { - if (n3.length < 2 || 2 !== o || 46 !== n3.charCodeAt(n3.length - 1) || 46 !== n3.charCodeAt(n3.length - 2)) { - if (n3.length > 2) { - var h = n3.lastIndexOf("/"); - if (h !== n3.length - 1) { - -1 === h ? (n3 = "", o = 0) : o = (n3 = n3.slice(0, h)).length - 1 - n3.lastIndexOf("/"), i = s, a = 0; - continue; - } - } else if (2 === n3.length || 1 === n3.length) { - n3 = "", o = 0, i = s, a = 0; - continue; - } - } - e3 && (n3.length > 0 ? n3 += "/.." : n3 = "..", o = 2); - } else - n3.length > 0 ? n3 += "/" + t3.slice(i + 1, s) : n3 = t3.slice(i + 1, s), o = s - i - 1; - i = s, a = 0; - } else - 46 === r3 && -1 !== a ? ++a : a = -1; - } - return n3; - } - var n2 = { resolve: function() { - for (var t3, n3 = "", o = false, i = arguments.length - 1; i >= -1 && !o; i--) { - var a; - i >= 0 ? a = arguments[i] : (void 0 === t3 && (t3 = process.cwd()), a = t3), e2(a), 0 !== a.length && (n3 = a + "/" + n3, o = 47 === a.charCodeAt(0)); - } - return n3 = r2(n3, !o), o ? n3.length > 0 ? "/" + n3 : "/" : n3.length > 0 ? n3 : "."; - }, normalize: function(t3) { - if (e2(t3), 0 === t3.length) - return "."; - var n3 = 47 === t3.charCodeAt(0), o = 47 === t3.charCodeAt(t3.length - 1); - return 0 !== (t3 = r2(t3, !n3)).length || n3 || (t3 = "."), t3.length > 0 && o && (t3 += "/"), n3 ? "/" + t3 : t3; - }, isAbsolute: function(t3) { - return e2(t3), t3.length > 0 && 47 === t3.charCodeAt(0); - }, join: function() { - if (0 === arguments.length) - return "."; - for (var t3, r3 = 0; r3 < arguments.length; ++r3) { - var o = arguments[r3]; - e2(o), o.length > 0 && (void 0 === t3 ? t3 = o : t3 += "/" + o); - } - return void 0 === t3 ? "." : n2.normalize(t3); - }, relative: function(t3, r3) { - if (e2(t3), e2(r3), t3 === r3) - return ""; - if ((t3 = n2.resolve(t3)) === (r3 = n2.resolve(r3))) - return ""; - for (var o = 1; o < t3.length && 47 === t3.charCodeAt(o); ++o) - ; - for (var i = t3.length, a = i - o, s = 1; s < r3.length && 47 === r3.charCodeAt(s); ++s) - ; - for (var h = r3.length - s, c = a < h ? a : h, f = -1, u = 0; u <= c; ++u) { - if (u === c) { - if (h > c) { - if (47 === r3.charCodeAt(s + u)) - return r3.slice(s + u + 1); - if (0 === u) - return r3.slice(s + u); - } else - a > c && (47 === t3.charCodeAt(o + u) ? f = u : 0 === u && (f = 0)); - break; - } - var l2 = t3.charCodeAt(o + u); - if (l2 !== r3.charCodeAt(s + u)) - break; - 47 === l2 && (f = u); - } - var p = ""; - for (u = o + f + 1; u <= i; ++u) - u !== i && 47 !== t3.charCodeAt(u) || (0 === p.length ? p += ".." : p += "/.."); - return p.length > 0 ? p + r3.slice(s + f) : (s += f, 47 === r3.charCodeAt(s) && ++s, r3.slice(s)); - }, _makeLong: function(t3) { - return t3; - }, dirname: function(t3) { - if (e2(t3), 0 === t3.length) - return "."; - for (var r3 = t3.charCodeAt(0), n3 = 47 === r3, o = -1, i = true, a = t3.length - 1; a >= 1; --a) - if (47 === (r3 = t3.charCodeAt(a))) { - if (!i) { - o = a; - break; - } - } else - i = false; - return -1 === o ? n3 ? "/" : "." : n3 && 1 === o ? "//" : t3.slice(0, o); - }, basename: function(t3, r3) { - if (void 0 !== r3 && "string" != typeof r3) - throw new TypeError('"ext" argument must be a string'); - e2(t3); - var n3, o = 0, i = -1, a = true; - if (void 0 !== r3 && r3.length > 0 && r3.length <= t3.length) { - if (r3.length === t3.length && r3 === t3) - return ""; - var s = r3.length - 1, h = -1; - for (n3 = t3.length - 1; n3 >= 0; --n3) { - var c = t3.charCodeAt(n3); - if (47 === c) { - if (!a) { - o = n3 + 1; - break; - } - } else - -1 === h && (a = false, h = n3 + 1), s >= 0 && (c === r3.charCodeAt(s) ? -1 == --s && (i = n3) : (s = -1, i = h)); - } - return o === i ? i = h : -1 === i && (i = t3.length), t3.slice(o, i); - } - for (n3 = t3.length - 1; n3 >= 0; --n3) - if (47 === t3.charCodeAt(n3)) { - if (!a) { - o = n3 + 1; - break; - } - } else - -1 === i && (a = false, i = n3 + 1); - return -1 === i ? "" : t3.slice(o, i); - }, extname: function(t3) { - e2(t3); - for (var r3 = -1, n3 = 0, o = -1, i = true, a = 0, s = t3.length - 1; s >= 0; --s) { - var h = t3.charCodeAt(s); - if (47 !== h) - -1 === o && (i = false, o = s + 1), 46 === h ? -1 === r3 ? r3 = s : 1 !== a && (a = 1) : -1 !== r3 && (a = -1); - else if (!i) { - n3 = s + 1; - break; - } - } - return -1 === r3 || -1 === o || 0 === a || 1 === a && r3 === o - 1 && r3 === n3 + 1 ? "" : t3.slice(r3, o); - }, format: function(t3) { - if (null === t3 || "object" != typeof t3) - throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof t3); - return function(t4, e3) { - var r3 = e3.dir || e3.root, n3 = e3.base || (e3.name || "") + (e3.ext || ""); - return r3 ? r3 === e3.root ? r3 + n3 : r3 + "/" + n3 : n3; - }(0, t3); - }, parse: function(t3) { - e2(t3); - var r3 = { root: "", dir: "", base: "", ext: "", name: "" }; - if (0 === t3.length) - return r3; - var n3, o = t3.charCodeAt(0), i = 47 === o; - i ? (r3.root = "/", n3 = 1) : n3 = 0; - for (var a = -1, s = 0, h = -1, c = true, f = t3.length - 1, u = 0; f >= n3; --f) - if (47 !== (o = t3.charCodeAt(f))) - -1 === h && (c = false, h = f + 1), 46 === o ? -1 === a ? a = f : 1 !== u && (u = 1) : -1 !== a && (u = -1); - else if (!c) { - s = f + 1; - break; - } - return -1 === a || -1 === h || 0 === u || 1 === u && a === h - 1 && a === s + 1 ? -1 !== h && (r3.base = r3.name = 0 === s && i ? t3.slice(1, h) : t3.slice(s, h)) : (0 === s && i ? (r3.name = t3.slice(1, a), r3.base = t3.slice(1, h)) : (r3.name = t3.slice(s, a), r3.base = t3.slice(s, h)), r3.ext = t3.slice(a, h)), s > 0 ? r3.dir = t3.slice(0, s - 1) : i && (r3.dir = "/"), r3; - }, sep: "/", delimiter: ":", win32: null, posix: null }; - n2.posix = n2, t2.exports = n2; - }, 674: (t2, e2) => { - if (Object.defineProperty(e2, "__esModule", { value: true }), e2.isWindows = void 0, "object" == typeof process) - e2.isWindows = "win32" === process.platform; - else if ("object" == typeof navigator) { - var r2 = navigator.userAgent; - e2.isWindows = r2.indexOf("Windows") >= 0; - } - }, 796: function(t2, e2, r2) { - var n2, o, i = this && this.__extends || (n2 = function(t3, e3) { - return n2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, e4) { - t4.__proto__ = e4; - } || function(t4, e4) { - for (var r3 in e4) - Object.prototype.hasOwnProperty.call(e4, r3) && (t4[r3] = e4[r3]); - }, n2(t3, e3); - }, function(t3, e3) { - if ("function" != typeof e3 && null !== e3) - throw new TypeError("Class extends value " + String(e3) + " is not a constructor or null"); - function r3() { - this.constructor = t3; - } - n2(t3, e3), t3.prototype = null === e3 ? Object.create(e3) : (r3.prototype = e3.prototype, new r3()); - }); - Object.defineProperty(e2, "__esModule", { value: true }), e2.uriToFsPath = e2.URI = void 0; - var a = r2(674), s = /^\w[\w\d+.-]*$/, h = /^\//, c = /^\/\//; - function f(t3, e3) { - if (!t3.scheme && e3) - throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(t3.authority, '", path: "').concat(t3.path, '", query: "').concat(t3.query, '", fragment: "').concat(t3.fragment, '"}')); - if (t3.scheme && !s.test(t3.scheme)) - throw new Error("[UriError]: Scheme contains illegal characters."); - if (t3.path) { - if (t3.authority) { - if (!h.test(t3.path)) - throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character'); - } else if (c.test(t3.path)) - throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")'); - } - } - var u = "", l2 = "/", p = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/, d = function() { - function t3(t4, e3, r3, n3, o2, i2) { - void 0 === i2 && (i2 = false), "object" == typeof t4 ? (this.scheme = t4.scheme || u, this.authority = t4.authority || u, this.path = t4.path || u, this.query = t4.query || u, this.fragment = t4.fragment || u) : (this.scheme = function(t5, e4) { - return t5 || e4 ? t5 : "file"; - }(t4, i2), this.authority = e3 || u, this.path = function(t5, e4) { - switch (t5) { - case "https": - case "http": - case "file": - e4 ? e4[0] !== l2 && (e4 = l2 + e4) : e4 = l2; - } - return e4; - }(this.scheme, r3 || u), this.query = n3 || u, this.fragment = o2 || u, f(this, i2)); - } - return t3.isUri = function(e3) { - return e3 instanceof t3 || !!e3 && "string" == typeof e3.authority && "string" == typeof e3.fragment && "string" == typeof e3.path && "string" == typeof e3.query && "string" == typeof e3.scheme && "string" == typeof e3.fsPath && "function" == typeof e3.with && "function" == typeof e3.toString; - }, Object.defineProperty(t3.prototype, "fsPath", { get: function() { - return C2(this, false); - }, enumerable: false, configurable: true }), t3.prototype.with = function(t4) { - if (!t4) - return this; - var e3 = t4.scheme, r3 = t4.authority, n3 = t4.path, o2 = t4.query, i2 = t4.fragment; - return void 0 === e3 ? e3 = this.scheme : null === e3 && (e3 = u), void 0 === r3 ? r3 = this.authority : null === r3 && (r3 = u), void 0 === n3 ? n3 = this.path : null === n3 && (n3 = u), void 0 === o2 ? o2 = this.query : null === o2 && (o2 = u), void 0 === i2 ? i2 = this.fragment : null === i2 && (i2 = u), e3 === this.scheme && r3 === this.authority && n3 === this.path && o2 === this.query && i2 === this.fragment ? this : new v(e3, r3, n3, o2, i2); - }, t3.parse = function(t4, e3) { - void 0 === e3 && (e3 = false); - var r3 = p.exec(t4); - return r3 ? new v(r3[2] || u, x(r3[4] || u), x(r3[5] || u), x(r3[7] || u), x(r3[9] || u), e3) : new v(u, u, u, u, u); - }, t3.file = function(t4) { - var e3 = u; - if (a.isWindows && (t4 = t4.replace(/\\/g, l2)), t4[0] === l2 && t4[1] === l2) { - var r3 = t4.indexOf(l2, 2); - -1 === r3 ? (e3 = t4.substring(2), t4 = l2) : (e3 = t4.substring(2, r3), t4 = t4.substring(r3) || l2); - } - return new v("file", e3, t4, u, u); - }, t3.from = function(t4) { - var e3 = new v(t4.scheme, t4.authority, t4.path, t4.query, t4.fragment); - return f(e3, true), e3; - }, t3.prototype.toString = function(t4) { - return void 0 === t4 && (t4 = false), A(this, t4); - }, t3.prototype.toJSON = function() { - return this; - }, t3.revive = function(e3) { - if (e3) { - if (e3 instanceof t3) - return e3; - var r3 = new v(e3); - return r3._formatted = e3.external, r3._fsPath = e3._sep === g ? e3.fsPath : null, r3; - } - return e3; - }, t3; - }(); - e2.URI = d; - var g = a.isWindows ? 1 : void 0, v = function(t3) { - function e3() { - var e4 = null !== t3 && t3.apply(this, arguments) || this; - return e4._formatted = null, e4._fsPath = null, e4; - } - return i(e3, t3), Object.defineProperty(e3.prototype, "fsPath", { get: function() { - return this._fsPath || (this._fsPath = C2(this, false)), this._fsPath; - }, enumerable: false, configurable: true }), e3.prototype.toString = function(t4) { - return void 0 === t4 && (t4 = false), t4 ? A(this, true) : (this._formatted || (this._formatted = A(this, false)), this._formatted); - }, e3.prototype.toJSON = function() { - var t4 = { $mid: 1 }; - return this._fsPath && (t4.fsPath = this._fsPath, t4._sep = g), this._formatted && (t4.external = this._formatted), this.path && (t4.path = this.path), this.scheme && (t4.scheme = this.scheme), this.authority && (t4.authority = this.authority), this.query && (t4.query = this.query), this.fragment && (t4.fragment = this.fragment), t4; - }, e3; - }(d), y = ((o = {})[58] = "%3A", o[47] = "%2F", o[63] = "%3F", o[35] = "%23", o[91] = "%5B", o[93] = "%5D", o[64] = "%40", o[33] = "%21", o[36] = "%24", o[38] = "%26", o[39] = "%27", o[40] = "%28", o[41] = "%29", o[42] = "%2A", o[43] = "%2B", o[44] = "%2C", o[59] = "%3B", o[61] = "%3D", o[32] = "%20", o); - function m(t3, e3, r3) { - for (var n3 = void 0, o2 = -1, i2 = 0; i2 < t3.length; i2++) { - var a2 = t3.charCodeAt(i2); - if (a2 >= 97 && a2 <= 122 || a2 >= 65 && a2 <= 90 || a2 >= 48 && a2 <= 57 || 45 === a2 || 46 === a2 || 95 === a2 || 126 === a2 || e3 && 47 === a2 || r3 && 91 === a2 || r3 && 93 === a2 || r3 && 58 === a2) - -1 !== o2 && (n3 += encodeURIComponent(t3.substring(o2, i2)), o2 = -1), void 0 !== n3 && (n3 += t3.charAt(i2)); - else { - void 0 === n3 && (n3 = t3.substr(0, i2)); - var s2 = y[a2]; - void 0 !== s2 ? (-1 !== o2 && (n3 += encodeURIComponent(t3.substring(o2, i2)), o2 = -1), n3 += s2) : -1 === o2 && (o2 = i2); - } - } - return -1 !== o2 && (n3 += encodeURIComponent(t3.substring(o2))), void 0 !== n3 ? n3 : t3; - } - function b(t3) { - for (var e3 = void 0, r3 = 0; r3 < t3.length; r3++) { - var n3 = t3.charCodeAt(r3); - 35 === n3 || 63 === n3 ? (void 0 === e3 && (e3 = t3.substr(0, r3)), e3 += y[n3]) : void 0 !== e3 && (e3 += t3[r3]); - } - return void 0 !== e3 ? e3 : t3; - } - function C2(t3, e3) { - var r3; - return r3 = t3.authority && t3.path.length > 1 && "file" === t3.scheme ? "//".concat(t3.authority).concat(t3.path) : 47 === t3.path.charCodeAt(0) && (t3.path.charCodeAt(1) >= 65 && t3.path.charCodeAt(1) <= 90 || t3.path.charCodeAt(1) >= 97 && t3.path.charCodeAt(1) <= 122) && 58 === t3.path.charCodeAt(2) ? e3 ? t3.path.substr(1) : t3.path[1].toLowerCase() + t3.path.substr(2) : t3.path, a.isWindows && (r3 = r3.replace(/\//g, "\\")), r3; - } - function A(t3, e3) { - var r3 = e3 ? b : m, n3 = "", o2 = t3.scheme, i2 = t3.authority, a2 = t3.path, s2 = t3.query, h2 = t3.fragment; - if (o2 && (n3 += o2, n3 += ":"), (i2 || "file" === o2) && (n3 += l2, n3 += l2), i2) { - var c2 = i2.indexOf("@"); - if (-1 !== c2) { - var f2 = i2.substr(0, c2); - i2 = i2.substr(c2 + 1), -1 === (c2 = f2.lastIndexOf(":")) ? n3 += r3(f2, false, false) : (n3 += r3(f2.substr(0, c2), false, false), n3 += ":", n3 += r3(f2.substr(c2 + 1), false, true)), n3 += "@"; - } - -1 === (c2 = (i2 = i2.toLowerCase()).lastIndexOf(":")) ? n3 += r3(i2, false, true) : (n3 += r3(i2.substr(0, c2), false, true), n3 += i2.substr(c2)); - } - if (a2) { - if (a2.length >= 3 && 47 === a2.charCodeAt(0) && 58 === a2.charCodeAt(2)) - (u2 = a2.charCodeAt(1)) >= 65 && u2 <= 90 && (a2 = "/".concat(String.fromCharCode(u2 + 32), ":").concat(a2.substr(3))); - else if (a2.length >= 2 && 58 === a2.charCodeAt(1)) { - var u2; - (u2 = a2.charCodeAt(0)) >= 65 && u2 <= 90 && (a2 = "".concat(String.fromCharCode(u2 + 32), ":").concat(a2.substr(2))); - } - n3 += r3(a2, true, false); - } - return s2 && (n3 += "?", n3 += r3(s2, false, false)), h2 && (n3 += "#", n3 += e3 ? h2 : m(h2, false, false)), n3; - } - function w(t3) { - try { - return decodeURIComponent(t3); - } catch (e3) { - return t3.length > 3 ? t3.substr(0, 3) + w(t3.substr(3)) : t3; - } - } - e2.uriToFsPath = C2; - var _ = /(%[0-9A-Za-z][0-9A-Za-z])+/g; - function x(t3) { - return t3.match(_) ? t3.replace(_, function(t4) { - return w(t4); - }) : t3; - } - }, 679: function(t2, e2, r2) { - var n2 = this && this.__spreadArray || function(t3, e3, r3) { - if (r3 || 2 === arguments.length) - for (var n3, o2 = 0, i2 = e3.length; o2 < i2; o2++) - !n3 && o2 in e3 || (n3 || (n3 = Array.prototype.slice.call(e3, 0, o2)), n3[o2] = e3[o2]); - return t3.concat(n3 || Array.prototype.slice.call(e3)); - }; - Object.defineProperty(e2, "__esModule", { value: true }), e2.Utils = void 0; - var o, i = r2(470), a = i.posix || i, s = "/"; - (o = e2.Utils || (e2.Utils = {})).joinPath = function(t3) { - for (var e3 = [], r3 = 1; r3 < arguments.length; r3++) - e3[r3 - 1] = arguments[r3]; - return t3.with({ path: a.join.apply(a, n2([t3.path], e3, false)) }); - }, o.resolvePath = function(t3) { - for (var e3 = [], r3 = 1; r3 < arguments.length; r3++) - e3[r3 - 1] = arguments[r3]; - var o2 = t3.path, i2 = false; - o2[0] !== s && (o2 = s + o2, i2 = true); - var h = a.resolve.apply(a, n2([o2], e3, false)); - return i2 && h[0] === s && !t3.authority && (h = h.substring(1)), t3.with({ path: h }); - }, o.dirname = function(t3) { - if (0 === t3.path.length || t3.path === s) - return t3; - var e3 = a.dirname(t3.path); - return 1 === e3.length && 46 === e3.charCodeAt(0) && (e3 = ""), t3.with({ path: e3 }); - }, o.basename = function(t3) { - return a.basename(t3.path); - }, o.extname = function(t3) { - return a.extname(t3.path); - }; - } }, e = {}; - function r(n2) { - var o = e[n2]; - if (void 0 !== o) - return o.exports; - var i = e[n2] = { exports: {} }; - return t[n2].call(i.exports, i, i.exports, r), i.exports; - } - var n = {}; - return (() => { - var t2 = n; - Object.defineProperty(t2, "__esModule", { value: true }), t2.Utils = t2.URI = void 0; - var e2 = r(796); - Object.defineProperty(t2, "URI", { enumerable: true, get: function() { - return e2.URI; - } }); - var o = r(679); - Object.defineProperty(t2, "Utils", { enumerable: true, get: function() { - return o.Utils; - } }); - })(), n; - })()); - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/platform/node/globalThis.js -var require_globalThis = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/platform/node/globalThis.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2._globalThis = void 0; - exports2._globalThis = typeof globalThis === "object" ? globalThis : global; - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/platform/node/index.js -var require_node = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/platform/node/index.js"(exports2) { - "use strict"; - var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { - if (k2 === void 0) - k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { - return m[k]; - } }); - } : function(o, m, k, k2) { - if (k2 === void 0) - k2 = k; - o[k2] = m[k]; - }); - var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) { - for (var p in m) - if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p)) - __createBinding(exports3, m, p); - }; - Object.defineProperty(exports2, "__esModule", { value: true }); - __exportStar(require_globalThis(), exports2); - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/platform/index.js -var require_platform = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/platform/index.js"(exports2) { - "use strict"; - var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { - if (k2 === void 0) - k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { - return m[k]; - } }); - } : function(o, m, k, k2) { - if (k2 === void 0) - k2 = k; - o[k2] = m[k]; - }); - var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) { - for (var p in m) - if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p)) - __createBinding(exports3, m, p); - }; - Object.defineProperty(exports2, "__esModule", { value: true }); - __exportStar(require_node(), exports2); - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/version.js -var require_version = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/version.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.VERSION = void 0; - exports2.VERSION = "1.7.0"; - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/internal/semver.js -var require_semver = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/internal/semver.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.isCompatible = exports2._makeCompatibilityCheck = void 0; - var version_1 = require_version(); - var re = /^(\d+)\.(\d+)\.(\d+)(-(.+))?$/; - function _makeCompatibilityCheck(ownVersion) { - const acceptedVersions = /* @__PURE__ */ new Set([ownVersion]); - const rejectedVersions = /* @__PURE__ */ new Set(); - const myVersionMatch = ownVersion.match(re); - if (!myVersionMatch) { - return () => false; - } - const ownVersionParsed = { - major: +myVersionMatch[1], - minor: +myVersionMatch[2], - patch: +myVersionMatch[3], - prerelease: myVersionMatch[4] - }; - if (ownVersionParsed.prerelease != null) { - return function isExactmatch(globalVersion) { - return globalVersion === ownVersion; - }; - } - function _reject(v) { - rejectedVersions.add(v); - return false; - } - function _accept(v) { - acceptedVersions.add(v); - return true; - } - return function isCompatible(globalVersion) { - if (acceptedVersions.has(globalVersion)) { - return true; - } - if (rejectedVersions.has(globalVersion)) { - return false; - } - const globalVersionMatch = globalVersion.match(re); - if (!globalVersionMatch) { - return _reject(globalVersion); - } - const globalVersionParsed = { - major: +globalVersionMatch[1], - minor: +globalVersionMatch[2], - patch: +globalVersionMatch[3], - prerelease: globalVersionMatch[4] - }; - if (globalVersionParsed.prerelease != null) { - return _reject(globalVersion); - } - if (ownVersionParsed.major !== globalVersionParsed.major) { - return _reject(globalVersion); - } - if (ownVersionParsed.major === 0) { - if (ownVersionParsed.minor === globalVersionParsed.minor && ownVersionParsed.patch <= globalVersionParsed.patch) { - return _accept(globalVersion); - } - return _reject(globalVersion); - } - if (ownVersionParsed.minor <= globalVersionParsed.minor) { - return _accept(globalVersion); - } - return _reject(globalVersion); - }; - } - exports2._makeCompatibilityCheck = _makeCompatibilityCheck; - exports2.isCompatible = _makeCompatibilityCheck(version_1.VERSION); - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/internal/global-utils.js -var require_global_utils = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/internal/global-utils.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.unregisterGlobal = exports2.getGlobal = exports2.registerGlobal = void 0; - var platform_1 = require_platform(); - var version_1 = require_version(); - var semver_1 = require_semver(); - var major2 = version_1.VERSION.split(".")[0]; - var GLOBAL_OPENTELEMETRY_API_KEY = Symbol.for(`opentelemetry.js.api.${major2}`); - var _global2 = platform_1._globalThis; - function registerGlobal(type, instance2, diag2, allowOverride = false) { - var _a; - const api = _global2[GLOBAL_OPENTELEMETRY_API_KEY] = (_a = _global2[GLOBAL_OPENTELEMETRY_API_KEY]) !== null && _a !== void 0 ? _a : { - version: version_1.VERSION - }; - if (!allowOverride && api[type]) { - const err3 = new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${type}`); - diag2.error(err3.stack || err3.message); - return false; - } - if (api.version !== version_1.VERSION) { - const err3 = new Error(`@opentelemetry/api: Registration of version v${api.version} for ${type} does not match previously registered API v${version_1.VERSION}`); - diag2.error(err3.stack || err3.message); - return false; - } - api[type] = instance2; - diag2.debug(`@opentelemetry/api: Registered a global for ${type} v${version_1.VERSION}.`); - return true; - } - exports2.registerGlobal = registerGlobal; - function getGlobal(type) { - var _a, _b; - const globalVersion = (_a = _global2[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _a === void 0 ? void 0 : _a.version; - if (!globalVersion || !(0, semver_1.isCompatible)(globalVersion)) { - return; - } - return (_b = _global2[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _b === void 0 ? void 0 : _b[type]; - } - exports2.getGlobal = getGlobal; - function unregisterGlobal(type, diag2) { - diag2.debug(`@opentelemetry/api: Unregistering a global for ${type} v${version_1.VERSION}.`); - const api = _global2[GLOBAL_OPENTELEMETRY_API_KEY]; - if (api) { - delete api[type]; - } - } - exports2.unregisterGlobal = unregisterGlobal; - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/diag/ComponentLogger.js -var require_ComponentLogger = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/diag/ComponentLogger.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.DiagComponentLogger = void 0; - var global_utils_1 = require_global_utils(); - var DiagComponentLogger = class { - constructor(props) { - this._namespace = props.namespace || "DiagComponentLogger"; - } - debug(...args3) { - return logProxy("debug", this._namespace, args3); - } - error(...args3) { - return logProxy("error", this._namespace, args3); - } - info(...args3) { - return logProxy("info", this._namespace, args3); - } - warn(...args3) { - return logProxy("warn", this._namespace, args3); - } - verbose(...args3) { - return logProxy("verbose", this._namespace, args3); - } - }; - exports2.DiagComponentLogger = DiagComponentLogger; - function logProxy(funcName, namespace, args3) { - const logger2 = (0, global_utils_1.getGlobal)("diag"); - if (!logger2) { - return; - } - args3.unshift(namespace); - return logger2[funcName](...args3); - } - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/diag/types.js -var require_types = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/diag/types.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.DiagLogLevel = void 0; - var DiagLogLevel2; - (function(DiagLogLevel3) { - DiagLogLevel3[DiagLogLevel3["NONE"] = 0] = "NONE"; - DiagLogLevel3[DiagLogLevel3["ERROR"] = 30] = "ERROR"; - DiagLogLevel3[DiagLogLevel3["WARN"] = 50] = "WARN"; - DiagLogLevel3[DiagLogLevel3["INFO"] = 60] = "INFO"; - DiagLogLevel3[DiagLogLevel3["DEBUG"] = 70] = "DEBUG"; - DiagLogLevel3[DiagLogLevel3["VERBOSE"] = 80] = "VERBOSE"; - DiagLogLevel3[DiagLogLevel3["ALL"] = 9999] = "ALL"; - })(DiagLogLevel2 = exports2.DiagLogLevel || (exports2.DiagLogLevel = {})); - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/diag/internal/logLevelLogger.js -var require_logLevelLogger = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/diag/internal/logLevelLogger.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.createLogLevelDiagLogger = void 0; - var types_1 = require_types(); - function createLogLevelDiagLogger(maxLevel, logger2) { - if (maxLevel < types_1.DiagLogLevel.NONE) { - maxLevel = types_1.DiagLogLevel.NONE; - } else if (maxLevel > types_1.DiagLogLevel.ALL) { - maxLevel = types_1.DiagLogLevel.ALL; - } - logger2 = logger2 || {}; - function _filterFunc(funcName, theLevel) { - const theFunc = logger2[funcName]; - if (typeof theFunc === "function" && maxLevel >= theLevel) { - return theFunc.bind(logger2); - } - return function() { - }; - } - return { - error: _filterFunc("error", types_1.DiagLogLevel.ERROR), - warn: _filterFunc("warn", types_1.DiagLogLevel.WARN), - info: _filterFunc("info", types_1.DiagLogLevel.INFO), - debug: _filterFunc("debug", types_1.DiagLogLevel.DEBUG), - verbose: _filterFunc("verbose", types_1.DiagLogLevel.VERBOSE) - }; - } - exports2.createLogLevelDiagLogger = createLogLevelDiagLogger; - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/api/diag.js -var require_diag = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/api/diag.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.DiagAPI = void 0; - var ComponentLogger_1 = require_ComponentLogger(); - var logLevelLogger_1 = require_logLevelLogger(); - var types_1 = require_types(); - var global_utils_1 = require_global_utils(); - var API_NAME = "diag"; - var DiagAPI = class _DiagAPI { - /** - * Private internal constructor - * @private - */ - constructor() { - function _logProxy(funcName) { - return function(...args3) { - const logger2 = (0, global_utils_1.getGlobal)("diag"); - if (!logger2) - return; - return logger2[funcName](...args3); - }; - } - const self2 = this; - const setLogger2 = (logger2, optionsOrLogLevel = { logLevel: types_1.DiagLogLevel.INFO }) => { - var _a, _b, _c; - if (logger2 === self2) { - const err3 = new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation"); - self2.error((_a = err3.stack) !== null && _a !== void 0 ? _a : err3.message); - return false; - } - if (typeof optionsOrLogLevel === "number") { - optionsOrLogLevel = { - logLevel: optionsOrLogLevel - }; - } - const oldLogger = (0, global_utils_1.getGlobal)("diag"); - const newLogger = (0, logLevelLogger_1.createLogLevelDiagLogger)((_b = optionsOrLogLevel.logLevel) !== null && _b !== void 0 ? _b : types_1.DiagLogLevel.INFO, logger2); - if (oldLogger && !optionsOrLogLevel.suppressOverrideMessage) { - const stack = (_c = new Error().stack) !== null && _c !== void 0 ? _c : ""; - oldLogger.warn(`Current logger will be overwritten from ${stack}`); - newLogger.warn(`Current logger will overwrite one already registered from ${stack}`); - } - return (0, global_utils_1.registerGlobal)("diag", newLogger, self2, true); - }; - self2.setLogger = setLogger2; - self2.disable = () => { - (0, global_utils_1.unregisterGlobal)(API_NAME, self2); - }; - self2.createComponentLogger = (options2) => { - return new ComponentLogger_1.DiagComponentLogger(options2); - }; - self2.verbose = _logProxy("verbose"); - self2.debug = _logProxy("debug"); - self2.info = _logProxy("info"); - self2.warn = _logProxy("warn"); - self2.error = _logProxy("error"); - } - /** Get the singleton instance of the DiagAPI API */ - static instance() { - if (!this._instance) { - this._instance = new _DiagAPI(); - } - return this._instance; - } - }; - exports2.DiagAPI = DiagAPI; - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/baggage/internal/baggage-impl.js -var require_baggage_impl = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/baggage/internal/baggage-impl.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.BaggageImpl = void 0; - var BaggageImpl = class _BaggageImpl { - constructor(entries) { - this._entries = entries ? new Map(entries) : /* @__PURE__ */ new Map(); - } - getEntry(key) { - const entry = this._entries.get(key); - if (!entry) { - return void 0; - } - return Object.assign({}, entry); - } - getAllEntries() { - return Array.from(this._entries.entries()).map(([k, v]) => [k, v]); - } - setEntry(key, entry) { - const newBaggage = new _BaggageImpl(this._entries); - newBaggage._entries.set(key, entry); - return newBaggage; - } - removeEntry(key) { - const newBaggage = new _BaggageImpl(this._entries); - newBaggage._entries.delete(key); - return newBaggage; - } - removeEntries(...keys) { - const newBaggage = new _BaggageImpl(this._entries); - for (const key of keys) { - newBaggage._entries.delete(key); - } - return newBaggage; - } - clear() { - return new _BaggageImpl(); - } - }; - exports2.BaggageImpl = BaggageImpl; - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/baggage/internal/symbol.js -var require_symbol = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/baggage/internal/symbol.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.baggageEntryMetadataSymbol = void 0; - exports2.baggageEntryMetadataSymbol = Symbol("BaggageEntryMetadata"); - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/baggage/utils.js -var require_utils3 = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/baggage/utils.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.baggageEntryMetadataFromString = exports2.createBaggage = void 0; - var diag_1 = require_diag(); - var baggage_impl_1 = require_baggage_impl(); - var symbol_1 = require_symbol(); - var diag2 = diag_1.DiagAPI.instance(); - function createBaggage(entries = {}) { - return new baggage_impl_1.BaggageImpl(new Map(Object.entries(entries))); - } - exports2.createBaggage = createBaggage; - function baggageEntryMetadataFromString(str) { - if (typeof str !== "string") { - diag2.error(`Cannot create baggage metadata from unknown type: ${typeof str}`); - str = ""; - } - return { - __TYPE__: symbol_1.baggageEntryMetadataSymbol, - toString() { - return str; - } - }; - } - exports2.baggageEntryMetadataFromString = baggageEntryMetadataFromString; - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/context/context.js -var require_context = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/context/context.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.ROOT_CONTEXT = exports2.createContextKey = void 0; - function createContextKey(description) { - return Symbol.for(description); - } - exports2.createContextKey = createContextKey; - var BaseContext = class _BaseContext { - /** - * Construct a new context which inherits values from an optional parent context. - * - * @param parentContext a context from which to inherit values - */ - constructor(parentContext) { - const self2 = this; - self2._currentContext = parentContext ? new Map(parentContext) : /* @__PURE__ */ new Map(); - self2.getValue = (key) => self2._currentContext.get(key); - self2.setValue = (key, value) => { - const context3 = new _BaseContext(self2._currentContext); - context3._currentContext.set(key, value); - return context3; - }; - self2.deleteValue = (key) => { - const context3 = new _BaseContext(self2._currentContext); - context3._currentContext.delete(key); - return context3; - }; - } - }; - exports2.ROOT_CONTEXT = new BaseContext(); - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/diag/consoleLogger.js -var require_consoleLogger = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/diag/consoleLogger.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.DiagConsoleLogger = void 0; - var consoleMap = [ - { n: "error", c: "error" }, - { n: "warn", c: "warn" }, - { n: "info", c: "info" }, - { n: "debug", c: "debug" }, - { n: "verbose", c: "trace" } - ]; - var DiagConsoleLogger2 = class { - constructor() { - function _consoleFunc(funcName) { - return function(...args3) { - if (console) { - let theFunc = console[funcName]; - if (typeof theFunc !== "function") { - theFunc = console.log; - } - if (typeof theFunc === "function") { - return theFunc.apply(console, args3); - } - } - }; - } - for (let i = 0; i < consoleMap.length; i++) { - this[consoleMap[i].n] = _consoleFunc(consoleMap[i].c); - } - } - }; - exports2.DiagConsoleLogger = DiagConsoleLogger2; - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/metrics/NoopMeter.js -var require_NoopMeter = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/metrics/NoopMeter.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.createNoopMeter = exports2.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC = exports2.NOOP_OBSERVABLE_GAUGE_METRIC = exports2.NOOP_OBSERVABLE_COUNTER_METRIC = exports2.NOOP_UP_DOWN_COUNTER_METRIC = exports2.NOOP_HISTOGRAM_METRIC = exports2.NOOP_COUNTER_METRIC = exports2.NOOP_METER = exports2.NoopObservableUpDownCounterMetric = exports2.NoopObservableGaugeMetric = exports2.NoopObservableCounterMetric = exports2.NoopObservableMetric = exports2.NoopHistogramMetric = exports2.NoopUpDownCounterMetric = exports2.NoopCounterMetric = exports2.NoopMetric = exports2.NoopMeter = void 0; - var NoopMeter = class { - constructor() { - } - /** - * @see {@link Meter.createHistogram} - */ - createHistogram(_name, _options) { - return exports2.NOOP_HISTOGRAM_METRIC; - } - /** - * @see {@link Meter.createCounter} - */ - createCounter(_name, _options) { - return exports2.NOOP_COUNTER_METRIC; - } - /** - * @see {@link Meter.createUpDownCounter} - */ - createUpDownCounter(_name, _options) { - return exports2.NOOP_UP_DOWN_COUNTER_METRIC; - } - /** - * @see {@link Meter.createObservableGauge} - */ - createObservableGauge(_name, _options) { - return exports2.NOOP_OBSERVABLE_GAUGE_METRIC; - } - /** - * @see {@link Meter.createObservableCounter} - */ - createObservableCounter(_name, _options) { - return exports2.NOOP_OBSERVABLE_COUNTER_METRIC; - } - /** - * @see {@link Meter.createObservableUpDownCounter} - */ - createObservableUpDownCounter(_name, _options) { - return exports2.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC; - } - /** - * @see {@link Meter.addBatchObservableCallback} - */ - addBatchObservableCallback(_callback, _observables) { - } - /** - * @see {@link Meter.removeBatchObservableCallback} - */ - removeBatchObservableCallback(_callback) { - } - }; - exports2.NoopMeter = NoopMeter; - var NoopMetric = class { - }; - exports2.NoopMetric = NoopMetric; - var NoopCounterMetric = class extends NoopMetric { - add(_value, _attributes) { - } - }; - exports2.NoopCounterMetric = NoopCounterMetric; - var NoopUpDownCounterMetric = class extends NoopMetric { - add(_value, _attributes) { - } - }; - exports2.NoopUpDownCounterMetric = NoopUpDownCounterMetric; - var NoopHistogramMetric = class extends NoopMetric { - record(_value, _attributes) { - } - }; - exports2.NoopHistogramMetric = NoopHistogramMetric; - var NoopObservableMetric = class { - addCallback(_callback) { - } - removeCallback(_callback) { - } - }; - exports2.NoopObservableMetric = NoopObservableMetric; - var NoopObservableCounterMetric = class extends NoopObservableMetric { - }; - exports2.NoopObservableCounterMetric = NoopObservableCounterMetric; - var NoopObservableGaugeMetric = class extends NoopObservableMetric { - }; - exports2.NoopObservableGaugeMetric = NoopObservableGaugeMetric; - var NoopObservableUpDownCounterMetric = class extends NoopObservableMetric { - }; - exports2.NoopObservableUpDownCounterMetric = NoopObservableUpDownCounterMetric; - exports2.NOOP_METER = new NoopMeter(); - exports2.NOOP_COUNTER_METRIC = new NoopCounterMetric(); - exports2.NOOP_HISTOGRAM_METRIC = new NoopHistogramMetric(); - exports2.NOOP_UP_DOWN_COUNTER_METRIC = new NoopUpDownCounterMetric(); - exports2.NOOP_OBSERVABLE_COUNTER_METRIC = new NoopObservableCounterMetric(); - exports2.NOOP_OBSERVABLE_GAUGE_METRIC = new NoopObservableGaugeMetric(); - exports2.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC = new NoopObservableUpDownCounterMetric(); - function createNoopMeter() { - return exports2.NOOP_METER; - } - exports2.createNoopMeter = createNoopMeter; - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/metrics/Metric.js -var require_Metric = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/metrics/Metric.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.ValueType = void 0; - var ValueType; - (function(ValueType2) { - ValueType2[ValueType2["INT"] = 0] = "INT"; - ValueType2[ValueType2["DOUBLE"] = 1] = "DOUBLE"; - })(ValueType = exports2.ValueType || (exports2.ValueType = {})); - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/propagation/TextMapPropagator.js -var require_TextMapPropagator = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/propagation/TextMapPropagator.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.defaultTextMapSetter = exports2.defaultTextMapGetter = void 0; - exports2.defaultTextMapGetter = { - get(carrier, key) { - if (carrier == null) { - return void 0; - } - return carrier[key]; - }, - keys(carrier) { - if (carrier == null) { - return []; - } - return Object.keys(carrier); - } - }; - exports2.defaultTextMapSetter = { - set(carrier, key, value) { - if (carrier == null) { - return; - } - carrier[key] = value; - } - }; - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/context/NoopContextManager.js -var require_NoopContextManager = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/context/NoopContextManager.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.NoopContextManager = void 0; - var context_1 = require_context(); - var NoopContextManager = class { - active() { - return context_1.ROOT_CONTEXT; - } - with(_context, fn, thisArg, ...args3) { - return fn.call(thisArg, ...args3); - } - bind(_context, target) { - return target; - } - enable() { - return this; - } - disable() { - return this; - } - }; - exports2.NoopContextManager = NoopContextManager; - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/api/context.js -var require_context2 = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/api/context.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.ContextAPI = void 0; - var NoopContextManager_1 = require_NoopContextManager(); - var global_utils_1 = require_global_utils(); - var diag_1 = require_diag(); - var API_NAME = "context"; - var NOOP_CONTEXT_MANAGER = new NoopContextManager_1.NoopContextManager(); - var ContextAPI = class _ContextAPI { - /** Empty private constructor prevents end users from constructing a new instance of the API */ - constructor() { - } - /** Get the singleton instance of the Context API */ - static getInstance() { - if (!this._instance) { - this._instance = new _ContextAPI(); - } - return this._instance; - } - /** - * Set the current context manager. - * - * @returns true if the context manager was successfully registered, else false - */ - setGlobalContextManager(contextManager) { - return (0, global_utils_1.registerGlobal)(API_NAME, contextManager, diag_1.DiagAPI.instance()); - } - /** - * Get the currently active context - */ - active() { - return this._getContextManager().active(); - } - /** - * Execute a function with an active context - * - * @param context context to be active during function execution - * @param fn function to execute in a context - * @param thisArg optional receiver to be used for calling fn - * @param args optional arguments forwarded to fn - */ - with(context3, fn, thisArg, ...args3) { - return this._getContextManager().with(context3, fn, thisArg, ...args3); - } - /** - * Bind a context to a target function or event emitter - * - * @param context context to bind to the event emitter or function. Defaults to the currently active context - * @param target function or event emitter to bind - */ - bind(context3, target) { - return this._getContextManager().bind(context3, target); - } - _getContextManager() { - return (0, global_utils_1.getGlobal)(API_NAME) || NOOP_CONTEXT_MANAGER; - } - /** Disable and remove the global context manager */ - disable() { - this._getContextManager().disable(); - (0, global_utils_1.unregisterGlobal)(API_NAME, diag_1.DiagAPI.instance()); - } - }; - exports2.ContextAPI = ContextAPI; - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/trace_flags.js -var require_trace_flags = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/trace_flags.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.TraceFlags = void 0; - var TraceFlags; - (function(TraceFlags2) { - TraceFlags2[TraceFlags2["NONE"] = 0] = "NONE"; - TraceFlags2[TraceFlags2["SAMPLED"] = 1] = "SAMPLED"; - })(TraceFlags = exports2.TraceFlags || (exports2.TraceFlags = {})); - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/invalid-span-constants.js -var require_invalid_span_constants = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/invalid-span-constants.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.INVALID_SPAN_CONTEXT = exports2.INVALID_TRACEID = exports2.INVALID_SPANID = void 0; - var trace_flags_1 = require_trace_flags(); - exports2.INVALID_SPANID = "0000000000000000"; - exports2.INVALID_TRACEID = "00000000000000000000000000000000"; - exports2.INVALID_SPAN_CONTEXT = { - traceId: exports2.INVALID_TRACEID, - spanId: exports2.INVALID_SPANID, - traceFlags: trace_flags_1.TraceFlags.NONE - }; - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/NonRecordingSpan.js -var require_NonRecordingSpan = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/NonRecordingSpan.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.NonRecordingSpan = void 0; - var invalid_span_constants_1 = require_invalid_span_constants(); - var NonRecordingSpan = class { - constructor(_spanContext = invalid_span_constants_1.INVALID_SPAN_CONTEXT) { - this._spanContext = _spanContext; - } - // Returns a SpanContext. - spanContext() { - return this._spanContext; - } - // By default does nothing - setAttribute(_key, _value) { - return this; - } - // By default does nothing - setAttributes(_attributes) { - return this; - } - // By default does nothing - addEvent(_name, _attributes) { - return this; - } - // By default does nothing - setStatus(_status) { - return this; - } - // By default does nothing - updateName(_name) { - return this; - } - // By default does nothing - end(_endTime) { - } - // isRecording always returns false for NonRecordingSpan. - isRecording() { - return false; - } - // By default does nothing - recordException(_exception, _time) { - } - }; - exports2.NonRecordingSpan = NonRecordingSpan; - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/context-utils.js -var require_context_utils = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/context-utils.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getSpanContext = exports2.setSpanContext = exports2.deleteSpan = exports2.setSpan = exports2.getActiveSpan = exports2.getSpan = void 0; - var context_1 = require_context(); - var NonRecordingSpan_1 = require_NonRecordingSpan(); - var context_2 = require_context2(); - var SPAN_KEY = (0, context_1.createContextKey)("OpenTelemetry Context Key SPAN"); - function getSpan(context3) { - return context3.getValue(SPAN_KEY) || void 0; - } - exports2.getSpan = getSpan; - function getActiveSpan() { - return getSpan(context_2.ContextAPI.getInstance().active()); - } - exports2.getActiveSpan = getActiveSpan; - function setSpan(context3, span) { - return context3.setValue(SPAN_KEY, span); - } - exports2.setSpan = setSpan; - function deleteSpan(context3) { - return context3.deleteValue(SPAN_KEY); - } - exports2.deleteSpan = deleteSpan; - function setSpanContext(context3, spanContext) { - return setSpan(context3, new NonRecordingSpan_1.NonRecordingSpan(spanContext)); - } - exports2.setSpanContext = setSpanContext; - function getSpanContext(context3) { - var _a; - return (_a = getSpan(context3)) === null || _a === void 0 ? void 0 : _a.spanContext(); - } - exports2.getSpanContext = getSpanContext; - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/spancontext-utils.js -var require_spancontext_utils = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/spancontext-utils.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.wrapSpanContext = exports2.isSpanContextValid = exports2.isValidSpanId = exports2.isValidTraceId = void 0; - var invalid_span_constants_1 = require_invalid_span_constants(); - var NonRecordingSpan_1 = require_NonRecordingSpan(); - var VALID_TRACEID_REGEX = /^([0-9a-f]{32})$/i; - var VALID_SPANID_REGEX = /^[0-9a-f]{16}$/i; - function isValidTraceId(traceId) { - return VALID_TRACEID_REGEX.test(traceId) && traceId !== invalid_span_constants_1.INVALID_TRACEID; - } - exports2.isValidTraceId = isValidTraceId; - function isValidSpanId(spanId) { - return VALID_SPANID_REGEX.test(spanId) && spanId !== invalid_span_constants_1.INVALID_SPANID; - } - exports2.isValidSpanId = isValidSpanId; - function isSpanContextValid(spanContext) { - return isValidTraceId(spanContext.traceId) && isValidSpanId(spanContext.spanId); - } - exports2.isSpanContextValid = isSpanContextValid; - function wrapSpanContext(spanContext) { - return new NonRecordingSpan_1.NonRecordingSpan(spanContext); - } - exports2.wrapSpanContext = wrapSpanContext; - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/NoopTracer.js -var require_NoopTracer = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/NoopTracer.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.NoopTracer = void 0; - var context_1 = require_context2(); - var context_utils_1 = require_context_utils(); - var NonRecordingSpan_1 = require_NonRecordingSpan(); - var spancontext_utils_1 = require_spancontext_utils(); - var contextApi = context_1.ContextAPI.getInstance(); - var NoopTracer = class { - // startSpan starts a noop span. - startSpan(name, options2, context3 = contextApi.active()) { - const root = Boolean(options2 === null || options2 === void 0 ? void 0 : options2.root); - if (root) { - return new NonRecordingSpan_1.NonRecordingSpan(); - } - const parentFromContext = context3 && (0, context_utils_1.getSpanContext)(context3); - if (isSpanContext(parentFromContext) && (0, spancontext_utils_1.isSpanContextValid)(parentFromContext)) { - return new NonRecordingSpan_1.NonRecordingSpan(parentFromContext); - } else { - return new NonRecordingSpan_1.NonRecordingSpan(); - } - } - startActiveSpan(name, arg2, arg3, arg4) { - let opts; - let ctx; - let fn; - if (arguments.length < 2) { - return; - } else if (arguments.length === 2) { - fn = arg2; - } else if (arguments.length === 3) { - opts = arg2; - fn = arg3; - } else { - opts = arg2; - ctx = arg3; - fn = arg4; - } - const parentContext = ctx !== null && ctx !== void 0 ? ctx : contextApi.active(); - const span = this.startSpan(name, opts, parentContext); - const contextWithSpanSet = (0, context_utils_1.setSpan)(parentContext, span); - return contextApi.with(contextWithSpanSet, fn, void 0, span); - } - }; - exports2.NoopTracer = NoopTracer; - function isSpanContext(spanContext) { - return typeof spanContext === "object" && typeof spanContext["spanId"] === "string" && typeof spanContext["traceId"] === "string" && typeof spanContext["traceFlags"] === "number"; - } - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/ProxyTracer.js -var require_ProxyTracer = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/ProxyTracer.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.ProxyTracer = void 0; - var NoopTracer_1 = require_NoopTracer(); - var NOOP_TRACER = new NoopTracer_1.NoopTracer(); - var ProxyTracer = class { - constructor(_provider, name, version5, options2) { - this._provider = _provider; - this.name = name; - this.version = version5; - this.options = options2; - } - startSpan(name, options2, context3) { - return this._getTracer().startSpan(name, options2, context3); - } - startActiveSpan(_name, _options, _context, _fn) { - const tracer2 = this._getTracer(); - return Reflect.apply(tracer2.startActiveSpan, tracer2, arguments); - } - /** - * Try to get a tracer from the proxy tracer provider. - * If the proxy tracer provider has no delegate, return a noop tracer. - */ - _getTracer() { - if (this._delegate) { - return this._delegate; - } - const tracer2 = this._provider.getDelegateTracer(this.name, this.version, this.options); - if (!tracer2) { - return NOOP_TRACER; - } - this._delegate = tracer2; - return this._delegate; - } - }; - exports2.ProxyTracer = ProxyTracer; - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/NoopTracerProvider.js -var require_NoopTracerProvider = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/NoopTracerProvider.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.NoopTracerProvider = void 0; - var NoopTracer_1 = require_NoopTracer(); - var NoopTracerProvider = class { - getTracer(_name, _version, _options) { - return new NoopTracer_1.NoopTracer(); - } - }; - exports2.NoopTracerProvider = NoopTracerProvider; - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/ProxyTracerProvider.js -var require_ProxyTracerProvider = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/ProxyTracerProvider.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.ProxyTracerProvider = void 0; - var ProxyTracer_1 = require_ProxyTracer(); - var NoopTracerProvider_1 = require_NoopTracerProvider(); - var NOOP_TRACER_PROVIDER = new NoopTracerProvider_1.NoopTracerProvider(); - var ProxyTracerProvider = class { - /** - * Get a {@link ProxyTracer} - */ - getTracer(name, version5, options2) { - var _a; - return (_a = this.getDelegateTracer(name, version5, options2)) !== null && _a !== void 0 ? _a : new ProxyTracer_1.ProxyTracer(this, name, version5, options2); - } - getDelegate() { - var _a; - return (_a = this._delegate) !== null && _a !== void 0 ? _a : NOOP_TRACER_PROVIDER; - } - /** - * Set the delegate tracer provider - */ - setDelegate(delegate) { - this._delegate = delegate; - } - getDelegateTracer(name, version5, options2) { - var _a; - return (_a = this._delegate) === null || _a === void 0 ? void 0 : _a.getTracer(name, version5, options2); - } - }; - exports2.ProxyTracerProvider = ProxyTracerProvider; - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/SamplingResult.js -var require_SamplingResult = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/SamplingResult.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.SamplingDecision = void 0; - var SamplingDecision; - (function(SamplingDecision2) { - SamplingDecision2[SamplingDecision2["NOT_RECORD"] = 0] = "NOT_RECORD"; - SamplingDecision2[SamplingDecision2["RECORD"] = 1] = "RECORD"; - SamplingDecision2[SamplingDecision2["RECORD_AND_SAMPLED"] = 2] = "RECORD_AND_SAMPLED"; - })(SamplingDecision = exports2.SamplingDecision || (exports2.SamplingDecision = {})); - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/span_kind.js -var require_span_kind = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/span_kind.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.SpanKind = void 0; - var SpanKind; - (function(SpanKind2) { - SpanKind2[SpanKind2["INTERNAL"] = 0] = "INTERNAL"; - SpanKind2[SpanKind2["SERVER"] = 1] = "SERVER"; - SpanKind2[SpanKind2["CLIENT"] = 2] = "CLIENT"; - SpanKind2[SpanKind2["PRODUCER"] = 3] = "PRODUCER"; - SpanKind2[SpanKind2["CONSUMER"] = 4] = "CONSUMER"; - })(SpanKind = exports2.SpanKind || (exports2.SpanKind = {})); - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/status.js -var require_status = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/status.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.SpanStatusCode = void 0; - var SpanStatusCode5; - (function(SpanStatusCode6) { - SpanStatusCode6[SpanStatusCode6["UNSET"] = 0] = "UNSET"; - SpanStatusCode6[SpanStatusCode6["OK"] = 1] = "OK"; - SpanStatusCode6[SpanStatusCode6["ERROR"] = 2] = "ERROR"; - })(SpanStatusCode5 = exports2.SpanStatusCode || (exports2.SpanStatusCode = {})); - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-validators.js -var require_tracestate_validators = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-validators.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.validateValue = exports2.validateKey = void 0; - var VALID_KEY_CHAR_RANGE = "[_0-9a-z-*/]"; - var VALID_KEY = `[a-z]${VALID_KEY_CHAR_RANGE}{0,255}`; - var VALID_VENDOR_KEY = `[a-z0-9]${VALID_KEY_CHAR_RANGE}{0,240}@[a-z]${VALID_KEY_CHAR_RANGE}{0,13}`; - var VALID_KEY_REGEX = new RegExp(`^(?:${VALID_KEY}|${VALID_VENDOR_KEY})$`); - var VALID_VALUE_BASE_REGEX = /^[ -~]{0,255}[!-~]$/; - var INVALID_VALUE_COMMA_EQUAL_REGEX = /,|=/; - function validateKey(key) { - return VALID_KEY_REGEX.test(key); - } - exports2.validateKey = validateKey; - function validateValue(value) { - return VALID_VALUE_BASE_REGEX.test(value) && !INVALID_VALUE_COMMA_EQUAL_REGEX.test(value); - } - exports2.validateValue = validateValue; - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-impl.js -var require_tracestate_impl = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-impl.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.TraceStateImpl = void 0; - var tracestate_validators_1 = require_tracestate_validators(); - var MAX_TRACE_STATE_ITEMS = 32; - var MAX_TRACE_STATE_LEN = 512; - var LIST_MEMBERS_SEPARATOR = ","; - var LIST_MEMBER_KEY_VALUE_SPLITTER = "="; - var TraceStateImpl = class _TraceStateImpl { - constructor(rawTraceState) { - this._internalState = /* @__PURE__ */ new Map(); - if (rawTraceState) - this._parse(rawTraceState); - } - set(key, value) { - const traceState = this._clone(); - if (traceState._internalState.has(key)) { - traceState._internalState.delete(key); - } - traceState._internalState.set(key, value); - return traceState; - } - unset(key) { - const traceState = this._clone(); - traceState._internalState.delete(key); - return traceState; - } - get(key) { - return this._internalState.get(key); - } - serialize() { - return this._keys().reduce((agg, key) => { - agg.push(key + LIST_MEMBER_KEY_VALUE_SPLITTER + this.get(key)); - return agg; - }, []).join(LIST_MEMBERS_SEPARATOR); - } - _parse(rawTraceState) { - if (rawTraceState.length > MAX_TRACE_STATE_LEN) - return; - this._internalState = rawTraceState.split(LIST_MEMBERS_SEPARATOR).reverse().reduce((agg, part) => { - const listMember = part.trim(); - const i = listMember.indexOf(LIST_MEMBER_KEY_VALUE_SPLITTER); - if (i !== -1) { - const key = listMember.slice(0, i); - const value = listMember.slice(i + 1, part.length); - if ((0, tracestate_validators_1.validateKey)(key) && (0, tracestate_validators_1.validateValue)(value)) { - agg.set(key, value); - } else { - } - } - return agg; - }, /* @__PURE__ */ new Map()); - if (this._internalState.size > MAX_TRACE_STATE_ITEMS) { - this._internalState = new Map(Array.from(this._internalState.entries()).reverse().slice(0, MAX_TRACE_STATE_ITEMS)); - } - } - _keys() { - return Array.from(this._internalState.keys()).reverse(); - } - _clone() { - const traceState = new _TraceStateImpl(); - traceState._internalState = new Map(this._internalState); - return traceState; - } - }; - exports2.TraceStateImpl = TraceStateImpl; - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/internal/utils.js -var require_utils4 = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace/internal/utils.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.createTraceState = void 0; - var tracestate_impl_1 = require_tracestate_impl(); - function createTraceState(rawTraceState) { - return new tracestate_impl_1.TraceStateImpl(rawTraceState); - } - exports2.createTraceState = createTraceState; - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/context-api.js -var require_context_api = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/context-api.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.context = void 0; - var context_1 = require_context2(); - exports2.context = context_1.ContextAPI.getInstance(); - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/diag-api.js -var require_diag_api = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/diag-api.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.diag = void 0; - var diag_1 = require_diag(); - exports2.diag = diag_1.DiagAPI.instance(); - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/metrics/NoopMeterProvider.js -var require_NoopMeterProvider = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/metrics/NoopMeterProvider.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.NOOP_METER_PROVIDER = exports2.NoopMeterProvider = void 0; - var NoopMeter_1 = require_NoopMeter(); - var NoopMeterProvider = class { - getMeter(_name, _version, _options) { - return NoopMeter_1.NOOP_METER; - } - }; - exports2.NoopMeterProvider = NoopMeterProvider; - exports2.NOOP_METER_PROVIDER = new NoopMeterProvider(); - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/api/metrics.js -var require_metrics = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/api/metrics.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.MetricsAPI = void 0; - var NoopMeterProvider_1 = require_NoopMeterProvider(); - var global_utils_1 = require_global_utils(); - var diag_1 = require_diag(); - var API_NAME = "metrics"; - var MetricsAPI = class _MetricsAPI { - /** Empty private constructor prevents end users from constructing a new instance of the API */ - constructor() { - } - /** Get the singleton instance of the Metrics API */ - static getInstance() { - if (!this._instance) { - this._instance = new _MetricsAPI(); - } - return this._instance; - } - /** - * Set the current global meter provider. - * Returns true if the meter provider was successfully registered, else false. - */ - setGlobalMeterProvider(provider) { - return (0, global_utils_1.registerGlobal)(API_NAME, provider, diag_1.DiagAPI.instance()); - } - /** - * Returns the global meter provider. - */ - getMeterProvider() { - return (0, global_utils_1.getGlobal)(API_NAME) || NoopMeterProvider_1.NOOP_METER_PROVIDER; - } - /** - * Returns a meter from the global meter provider. - */ - getMeter(name, version5, options2) { - return this.getMeterProvider().getMeter(name, version5, options2); - } - /** Remove the global meter provider */ - disable() { - (0, global_utils_1.unregisterGlobal)(API_NAME, diag_1.DiagAPI.instance()); - } - }; - exports2.MetricsAPI = MetricsAPI; - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/metrics-api.js -var require_metrics_api = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/metrics-api.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.metrics = void 0; - var metrics_1 = require_metrics(); - exports2.metrics = metrics_1.MetricsAPI.getInstance(); - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/propagation/NoopTextMapPropagator.js -var require_NoopTextMapPropagator = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/propagation/NoopTextMapPropagator.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.NoopTextMapPropagator = void 0; - var NoopTextMapPropagator = class { - /** Noop inject function does nothing */ - inject(_context, _carrier) { - } - /** Noop extract function does nothing and returns the input context */ - extract(context3, _carrier) { - return context3; - } - fields() { - return []; - } - }; - exports2.NoopTextMapPropagator = NoopTextMapPropagator; - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/baggage/context-helpers.js -var require_context_helpers = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/baggage/context-helpers.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteBaggage = exports2.setBaggage = exports2.getActiveBaggage = exports2.getBaggage = void 0; - var context_1 = require_context2(); - var context_2 = require_context(); - var BAGGAGE_KEY = (0, context_2.createContextKey)("OpenTelemetry Baggage Key"); - function getBaggage(context3) { - return context3.getValue(BAGGAGE_KEY) || void 0; - } - exports2.getBaggage = getBaggage; - function getActiveBaggage() { - return getBaggage(context_1.ContextAPI.getInstance().active()); - } - exports2.getActiveBaggage = getActiveBaggage; - function setBaggage(context3, baggage) { - return context3.setValue(BAGGAGE_KEY, baggage); - } - exports2.setBaggage = setBaggage; - function deleteBaggage(context3) { - return context3.deleteValue(BAGGAGE_KEY); - } - exports2.deleteBaggage = deleteBaggage; - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/api/propagation.js -var require_propagation = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/api/propagation.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.PropagationAPI = void 0; - var global_utils_1 = require_global_utils(); - var NoopTextMapPropagator_1 = require_NoopTextMapPropagator(); - var TextMapPropagator_1 = require_TextMapPropagator(); - var context_helpers_1 = require_context_helpers(); - var utils_1 = require_utils3(); - var diag_1 = require_diag(); - var API_NAME = "propagation"; - var NOOP_TEXT_MAP_PROPAGATOR = new NoopTextMapPropagator_1.NoopTextMapPropagator(); - var PropagationAPI = class _PropagationAPI { - /** Empty private constructor prevents end users from constructing a new instance of the API */ - constructor() { - this.createBaggage = utils_1.createBaggage; - this.getBaggage = context_helpers_1.getBaggage; - this.getActiveBaggage = context_helpers_1.getActiveBaggage; - this.setBaggage = context_helpers_1.setBaggage; - this.deleteBaggage = context_helpers_1.deleteBaggage; - } - /** Get the singleton instance of the Propagator API */ - static getInstance() { - if (!this._instance) { - this._instance = new _PropagationAPI(); - } - return this._instance; - } - /** - * Set the current propagator. - * - * @returns true if the propagator was successfully registered, else false - */ - setGlobalPropagator(propagator) { - return (0, global_utils_1.registerGlobal)(API_NAME, propagator, diag_1.DiagAPI.instance()); - } - /** - * Inject context into a carrier to be propagated inter-process - * - * @param context Context carrying tracing data to inject - * @param carrier carrier to inject context into - * @param setter Function used to set values on the carrier - */ - inject(context3, carrier, setter = TextMapPropagator_1.defaultTextMapSetter) { - return this._getGlobalPropagator().inject(context3, carrier, setter); - } - /** - * Extract context from a carrier - * - * @param context Context which the newly created context will inherit from - * @param carrier Carrier to extract context from - * @param getter Function used to extract keys from a carrier - */ - extract(context3, carrier, getter = TextMapPropagator_1.defaultTextMapGetter) { - return this._getGlobalPropagator().extract(context3, carrier, getter); - } - /** - * Return a list of all fields which may be used by the propagator. - */ - fields() { - return this._getGlobalPropagator().fields(); - } - /** Remove the global propagator */ - disable() { - (0, global_utils_1.unregisterGlobal)(API_NAME, diag_1.DiagAPI.instance()); - } - _getGlobalPropagator() { - return (0, global_utils_1.getGlobal)(API_NAME) || NOOP_TEXT_MAP_PROPAGATOR; - } - }; - exports2.PropagationAPI = PropagationAPI; - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/propagation-api.js -var require_propagation_api = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/propagation-api.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.propagation = void 0; - var propagation_1 = require_propagation(); - exports2.propagation = propagation_1.PropagationAPI.getInstance(); - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/api/trace.js -var require_trace = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/api/trace.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.TraceAPI = void 0; - var global_utils_1 = require_global_utils(); - var ProxyTracerProvider_1 = require_ProxyTracerProvider(); - var spancontext_utils_1 = require_spancontext_utils(); - var context_utils_1 = require_context_utils(); - var diag_1 = require_diag(); - var API_NAME = "trace"; - var TraceAPI = class _TraceAPI { - /** Empty private constructor prevents end users from constructing a new instance of the API */ - constructor() { - this._proxyTracerProvider = new ProxyTracerProvider_1.ProxyTracerProvider(); - this.wrapSpanContext = spancontext_utils_1.wrapSpanContext; - this.isSpanContextValid = spancontext_utils_1.isSpanContextValid; - this.deleteSpan = context_utils_1.deleteSpan; - this.getSpan = context_utils_1.getSpan; - this.getActiveSpan = context_utils_1.getActiveSpan; - this.getSpanContext = context_utils_1.getSpanContext; - this.setSpan = context_utils_1.setSpan; - this.setSpanContext = context_utils_1.setSpanContext; - } - /** Get the singleton instance of the Trace API */ - static getInstance() { - if (!this._instance) { - this._instance = new _TraceAPI(); - } - return this._instance; - } - /** - * Set the current global tracer. - * - * @returns true if the tracer provider was successfully registered, else false - */ - setGlobalTracerProvider(provider) { - const success = (0, global_utils_1.registerGlobal)(API_NAME, this._proxyTracerProvider, diag_1.DiagAPI.instance()); - if (success) { - this._proxyTracerProvider.setDelegate(provider); - } - return success; - } - /** - * Returns the global tracer provider. - */ - getTracerProvider() { - return (0, global_utils_1.getGlobal)(API_NAME) || this._proxyTracerProvider; - } - /** - * Returns a tracer from the global tracer provider. - */ - getTracer(name, version5) { - return this.getTracerProvider().getTracer(name, version5); - } - /** Remove the global tracer provider */ - disable() { - (0, global_utils_1.unregisterGlobal)(API_NAME, diag_1.DiagAPI.instance()); - this._proxyTracerProvider = new ProxyTracerProvider_1.ProxyTracerProvider(); - } - }; - exports2.TraceAPI = TraceAPI; - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace-api.js -var require_trace_api = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/trace-api.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.trace = void 0; - var trace_1 = require_trace(); - exports2.trace = trace_1.TraceAPI.getInstance(); - } -}); - -// ../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/index.js -var require_src = __commonJS({ - "../node_modules/.pnpm/@opentelemetry+api@1.7.0/node_modules/@opentelemetry/api/build/src/index.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.trace = exports2.propagation = exports2.metrics = exports2.diag = exports2.context = exports2.INVALID_SPAN_CONTEXT = exports2.INVALID_TRACEID = exports2.INVALID_SPANID = exports2.isValidSpanId = exports2.isValidTraceId = exports2.isSpanContextValid = exports2.createTraceState = exports2.TraceFlags = exports2.SpanStatusCode = exports2.SpanKind = exports2.SamplingDecision = exports2.ProxyTracerProvider = exports2.ProxyTracer = exports2.defaultTextMapSetter = exports2.defaultTextMapGetter = exports2.ValueType = exports2.createNoopMeter = exports2.DiagLogLevel = exports2.DiagConsoleLogger = exports2.ROOT_CONTEXT = exports2.createContextKey = exports2.baggageEntryMetadataFromString = void 0; - var utils_1 = require_utils3(); - Object.defineProperty(exports2, "baggageEntryMetadataFromString", { enumerable: true, get: function() { - return utils_1.baggageEntryMetadataFromString; - } }); - var context_1 = require_context(); - Object.defineProperty(exports2, "createContextKey", { enumerable: true, get: function() { - return context_1.createContextKey; - } }); - Object.defineProperty(exports2, "ROOT_CONTEXT", { enumerable: true, get: function() { - return context_1.ROOT_CONTEXT; - } }); - var consoleLogger_1 = require_consoleLogger(); - Object.defineProperty(exports2, "DiagConsoleLogger", { enumerable: true, get: function() { - return consoleLogger_1.DiagConsoleLogger; - } }); - var types_1 = require_types(); - Object.defineProperty(exports2, "DiagLogLevel", { enumerable: true, get: function() { - return types_1.DiagLogLevel; - } }); - var NoopMeter_1 = require_NoopMeter(); - Object.defineProperty(exports2, "createNoopMeter", { enumerable: true, get: function() { - return NoopMeter_1.createNoopMeter; - } }); - var Metric_1 = require_Metric(); - Object.defineProperty(exports2, "ValueType", { enumerable: true, get: function() { - return Metric_1.ValueType; - } }); - var TextMapPropagator_1 = require_TextMapPropagator(); - Object.defineProperty(exports2, "defaultTextMapGetter", { enumerable: true, get: function() { - return TextMapPropagator_1.defaultTextMapGetter; - } }); - Object.defineProperty(exports2, "defaultTextMapSetter", { enumerable: true, get: function() { - return TextMapPropagator_1.defaultTextMapSetter; - } }); - var ProxyTracer_1 = require_ProxyTracer(); - Object.defineProperty(exports2, "ProxyTracer", { enumerable: true, get: function() { - return ProxyTracer_1.ProxyTracer; - } }); - var ProxyTracerProvider_1 = require_ProxyTracerProvider(); - Object.defineProperty(exports2, "ProxyTracerProvider", { enumerable: true, get: function() { - return ProxyTracerProvider_1.ProxyTracerProvider; - } }); - var SamplingResult_1 = require_SamplingResult(); - Object.defineProperty(exports2, "SamplingDecision", { enumerable: true, get: function() { - return SamplingResult_1.SamplingDecision; - } }); - var span_kind_1 = require_span_kind(); - Object.defineProperty(exports2, "SpanKind", { enumerable: true, get: function() { - return span_kind_1.SpanKind; - } }); - var status_1 = require_status(); - Object.defineProperty(exports2, "SpanStatusCode", { enumerable: true, get: function() { - return status_1.SpanStatusCode; - } }); - var trace_flags_1 = require_trace_flags(); - Object.defineProperty(exports2, "TraceFlags", { enumerable: true, get: function() { - return trace_flags_1.TraceFlags; - } }); - var utils_2 = require_utils4(); - Object.defineProperty(exports2, "createTraceState", { enumerable: true, get: function() { - return utils_2.createTraceState; - } }); - var spancontext_utils_1 = require_spancontext_utils(); - Object.defineProperty(exports2, "isSpanContextValid", { enumerable: true, get: function() { - return spancontext_utils_1.isSpanContextValid; - } }); - Object.defineProperty(exports2, "isValidTraceId", { enumerable: true, get: function() { - return spancontext_utils_1.isValidTraceId; - } }); - Object.defineProperty(exports2, "isValidSpanId", { enumerable: true, get: function() { - return spancontext_utils_1.isValidSpanId; - } }); - var invalid_span_constants_1 = require_invalid_span_constants(); - Object.defineProperty(exports2, "INVALID_SPANID", { enumerable: true, get: function() { - return invalid_span_constants_1.INVALID_SPANID; - } }); - Object.defineProperty(exports2, "INVALID_TRACEID", { enumerable: true, get: function() { - return invalid_span_constants_1.INVALID_TRACEID; - } }); - Object.defineProperty(exports2, "INVALID_SPAN_CONTEXT", { enumerable: true, get: function() { - return invalid_span_constants_1.INVALID_SPAN_CONTEXT; - } }); - var context_api_1 = require_context_api(); - Object.defineProperty(exports2, "context", { enumerable: true, get: function() { - return context_api_1.context; - } }); - var diag_api_1 = require_diag_api(); - Object.defineProperty(exports2, "diag", { enumerable: true, get: function() { - return diag_api_1.diag; - } }); - var metrics_api_1 = require_metrics_api(); - Object.defineProperty(exports2, "metrics", { enumerable: true, get: function() { - return metrics_api_1.metrics; - } }); - var propagation_api_1 = require_propagation_api(); - Object.defineProperty(exports2, "propagation", { enumerable: true, get: function() { - return propagation_api_1.propagation; - } }); - var trace_api_1 = require_trace_api(); - Object.defineProperty(exports2, "trace", { enumerable: true, get: function() { - return trace_api_1.trace; - } }); - exports2.default = { - context: context_api_1.context, - diag: diag_api_1.diag, - metrics: metrics_api_1.metrics, - propagation: propagation_api_1.propagation, - trace: trace_api_1.trace - }; - } -}); - -// ../lib/shared/src/tracing/index.ts -function getActiveTraceAndSpanId() { - const activeSpan = import_api.default.trace.getActiveSpan(); - if (activeSpan) { - const context3 = activeSpan.spanContext(); - return { - traceId: context3.traceId, - spanId: context3.spanId - }; - } - return void 0; -} -function wrapInActiveSpan(name, fn) { - return tracer.startActiveSpan(name, (span) => { - const handleSuccess = (response) => { - span.setStatus({ code: import_api.SpanStatusCode.OK }); - span.end(); - return response; - }; - const handleError = (error) => { - recordErrorToSpan(span, error); - throw error; - }; - try { - const response = fn(span); - if (typeof response === "object" && response !== null && "then" in response) { - return response.then(handleSuccess, handleError); - } - return handleSuccess(response); - } catch (error) { - return handleError(error); - } - }); -} -function addTraceparent(headers) { - import_api.propagation.inject(import_api.context.active(), headers, { - set(carrier, key, value) { - carrier.set(key, value); - } - }); -} -function logResponseHeadersToSpan(span, response) { - const responseHeaders = {}; - response.headers.forEach((value, key) => { - responseHeaders[key] = value; - }); - span.addEvent("response"); - span.setAttributes({ - ...responseHeaders, - status: response.status - }); -} -function getTraceparentHeaders() { - const headers = {}; - import_api.propagation.inject(import_api.context.active(), headers, { - set(carrier, key, value) { - carrier[key] = value; - } - }); - return headers; -} -function recordErrorToSpan(span, error) { - span.recordException(error); - span.setStatus({ code: import_api.SpanStatusCode.ERROR }); - span.end(); - return error; -} -var import_api, INSTRUMENTATION_SCOPE_NAME, INSTRUMENTATION_SCOPE_VERSION, tracer; -var init_tracing = __esm({ - "../lib/shared/src/tracing/index.ts"() { - "use strict"; - import_api = __toESM(require_src()); - INSTRUMENTATION_SCOPE_NAME = "cody"; - INSTRUMENTATION_SCOPE_VERSION = "0.1"; - tracer = import_api.default.trace.getTracer( - INSTRUMENTATION_SCOPE_NAME, - INSTRUMENTATION_SCOPE_VERSION - ); - } -}); - -// ../lib/shared/src/sourcegraph-api/environments.ts -function isDotCom(url2) { - try { - return new URL(url2).origin === DOTCOM_URL.origin; - } catch { - return false; - } -} -var DOTCOM_URL, LOCAL_APP_URL; -var init_environments = __esm({ - "../lib/shared/src/sourcegraph-api/environments.ts"() { - "use strict"; - DOTCOM_URL = new URL( - (typeof process === "undefined" ? null : process.env.TESTING_DOTCOM_URL) ?? "https://sourcegraph.com" - ); - LOCAL_APP_URL = new URL("http://localhost:3080"); - } -}); - -// ../lib/shared/src/sourcegraph-api/graphql/queries.ts -var CURRENT_USER_ID_QUERY, CURRENT_USER_CODY_PRO_ENABLED_QUERY, CURRENT_USER_CODY_SUBSCRIPTION_QUERY, CURRENT_USER_INFO_QUERY, CURRENT_SITE_VERSION_QUERY, CURRENT_SITE_HAS_CODY_ENABLED_QUERY, CURRENT_SITE_GRAPHQL_FIELDS_QUERY, CURRENT_SITE_CODY_LLM_PROVIDER, CURRENT_SITE_CODY_CONFIG_FEATURES, CURRENT_SITE_CODY_LLM_CONFIGURATION, REPOSITORY_LIST_QUERY, REPOSITORY_ID_QUERY, REPOSITORY_IDS_QUERY, CONTEXT_SEARCH_QUERY, SEARCH_ATTRIBUTION_QUERY, LOG_EVENT_MUTATION_DEPRECATED, LOG_EVENT_MUTATION, RECORD_TELEMETRY_EVENTS_MUTATION, CURRENT_SITE_IDENTIFICATION, GET_FEATURE_FLAGS_QUERY, EVALUATE_FEATURE_FLAG_QUERY; -var init_queries = __esm({ - "../lib/shared/src/sourcegraph-api/graphql/queries.ts"() { - "use strict"; - CURRENT_USER_ID_QUERY = ` -query CurrentUser { - currentUser { - id - } -}`; - CURRENT_USER_CODY_PRO_ENABLED_QUERY = ` -query CurrentUserCodyProEnabled { - currentUser { - codyProEnabled - } -}`; - CURRENT_USER_CODY_SUBSCRIPTION_QUERY = ` -query CurrentUserCodySubscription { - currentUser { - codySubscription { - status - plan - applyProRateLimits - currentPeriodStartAt - currentPeriodEndAt - } - } -}`; - CURRENT_USER_INFO_QUERY = ` -query CurrentUser { - currentUser { - id - hasVerifiedEmail - displayName - username - avatarURL - primaryEmail { - email - } - } -}`; - CURRENT_SITE_VERSION_QUERY = ` -query SiteProductVersion { - site { - productVersion - } -}`; - CURRENT_SITE_HAS_CODY_ENABLED_QUERY = ` -query SiteHasCodyEnabled { - site { - isCodyEnabled - } -}`; - CURRENT_SITE_GRAPHQL_FIELDS_QUERY = ` -query SiteGraphQLFields { - __type(name: "Site") { - fields { - name - } - } -}`; - CURRENT_SITE_CODY_LLM_PROVIDER = ` -query CurrentSiteCodyLlmConfiguration { - site { - codyLLMConfiguration { - provider - } - } -}`; - CURRENT_SITE_CODY_CONFIG_FEATURES = ` -query CodyConfigFeaturesResponse { - site { - codyConfigFeatures { - chat - autoComplete - commands - attribution - } - } -}`; - CURRENT_SITE_CODY_LLM_CONFIGURATION = ` -query CurrentSiteCodyLlmConfiguration { - site { - codyLLMConfiguration { - chatModel - chatModelMaxTokens - fastChatModel - fastChatModelMaxTokens - completionModel - completionModelMaxTokens - } - } -}`; - REPOSITORY_LIST_QUERY = ` -query Repositories($first: Int!, $after: String) { - repositories(first: $first, after: $after) { - nodes { - id - name - url - } - pageInfo { - endCursor - } - } -} -`; - REPOSITORY_ID_QUERY = ` -query Repository($name: String!) { - repository(name: $name) { - id - } -}`; - REPOSITORY_IDS_QUERY = ` -query Repositories($names: [String!]!, $first: Int!) { - repositories(names: $names, first: $first) { - nodes { - name - id - } - } - } -`; - CONTEXT_SEARCH_QUERY = ` -query GetCodyContext($repos: [ID!]!, $query: String!, $codeResultsCount: Int!, $textResultsCount: Int!) { - getCodyContext(repos: $repos, query: $query, codeResultsCount: $codeResultsCount, textResultsCount: $textResultsCount) { - ...on FileChunkContext { - blob { - path - repository { - id - name - } - commit { - oid - } - url - } - startLine - endLine - chunkContent - } - } -}`; - SEARCH_ATTRIBUTION_QUERY = ` -query SnippetAttribution($snippet: String!) { - snippetAttribution(snippet: $snippet) { - limitHit - nodes { - repositoryName - } - } -}`; - LOG_EVENT_MUTATION_DEPRECATED = ` -mutation LogEventMutation($event: String!, $userCookieID: String!, $url: String!, $source: EventSource!, $argument: String, $publicArgument: String) { - logEvent( - event: $event - userCookieID: $userCookieID - url: $url - source: $source - argument: $argument - publicArgument: $publicArgument - ) { - alwaysNil - } -}`; - LOG_EVENT_MUTATION = ` -mutation LogEventMutation($event: String!, $userCookieID: String!, $url: String!, $source: EventSource!, $argument: String, $publicArgument: String, $client: String, $connectedSiteID: String, $hashedLicenseKey: String) { - logEvent( - event: $event - userCookieID: $userCookieID - url: $url - source: $source - argument: $argument - publicArgument: $publicArgument - client: $client - connectedSiteID: $connectedSiteID - hashedLicenseKey: $hashedLicenseKey - ) { - alwaysNil - } -}`; - RECORD_TELEMETRY_EVENTS_MUTATION = ` -mutation RecordTelemetryEvents($events: [TelemetryEventInput!]!) { - telemetry { - recordEvents(events: $events) { - alwaysNil - } - } -} -`; - CURRENT_SITE_IDENTIFICATION = ` -query SiteIdentification { - site { - siteID - productSubscription { - license { - hashedKey - } - } - } -}`; - GET_FEATURE_FLAGS_QUERY = ` - query FeatureFlags { - evaluatedFeatureFlags() { - name - value - } - } -`; - EVALUATE_FEATURE_FLAG_QUERY = ` - query EvaluateFeatureFlag($flagName: String!) { - evaluateFeatureFlag(flagName: $flagName) - } -`; - } -}); - -// ../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js -var require_lodash = __commonJS({ - "../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js"(exports2, module2) { - (function() { - var undefined2; - var VERSION4 = "4.17.21"; - var LARGE_ARRAY_SIZE = 200; - var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`"; - var HASH_UNDEFINED = "__lodash_hash_undefined__"; - var MAX_MEMOIZE_SIZE = 500; - var PLACEHOLDER = "__lodash_placeholder__"; - var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG = 4; - var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2; - var WRAP_BIND_FLAG = 1, WRAP_BIND_KEY_FLAG = 2, WRAP_CURRY_BOUND_FLAG = 4, WRAP_CURRY_FLAG = 8, WRAP_CURRY_RIGHT_FLAG = 16, WRAP_PARTIAL_FLAG = 32, WRAP_PARTIAL_RIGHT_FLAG = 64, WRAP_ARY_FLAG = 128, WRAP_REARG_FLAG = 256, WRAP_FLIP_FLAG = 512; - var DEFAULT_TRUNC_LENGTH = 30, DEFAULT_TRUNC_OMISSION = "..."; - var HOT_COUNT = 800, HOT_SPAN = 16; - var LAZY_FILTER_FLAG = 1, LAZY_MAP_FLAG = 2, LAZY_WHILE_FLAG = 3; - var INFINITY = 1 / 0, MAX_SAFE_INTEGER = 9007199254740991, MAX_INTEGER = 17976931348623157e292, NAN = 0 / 0; - var MAX_ARRAY_LENGTH = 4294967295, MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1, HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1; - var wrapFlags = [ - ["ary", WRAP_ARY_FLAG], - ["bind", WRAP_BIND_FLAG], - ["bindKey", WRAP_BIND_KEY_FLAG], - ["curry", WRAP_CURRY_FLAG], - ["curryRight", WRAP_CURRY_RIGHT_FLAG], - ["flip", WRAP_FLIP_FLAG], - ["partial", WRAP_PARTIAL_FLAG], - ["partialRight", WRAP_PARTIAL_RIGHT_FLAG], - ["rearg", WRAP_REARG_FLAG] - ]; - var argsTag = "[object Arguments]", arrayTag = "[object Array]", asyncTag = "[object AsyncFunction]", boolTag = "[object Boolean]", dateTag = "[object Date]", domExcTag = "[object DOMException]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", nullTag = "[object Null]", objectTag = "[object Object]", promiseTag = "[object Promise]", proxyTag = "[object Proxy]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", undefinedTag = "[object Undefined]", weakMapTag = "[object WeakMap]", weakSetTag = "[object WeakSet]"; - var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]"; - var reEmptyStringLeading = /\b__p \+= '';/g, reEmptyStringMiddle = /\b(__p \+=) '' \+/g, reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g; - var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g, reUnescapedHtml = /[&<>"']/g, reHasEscapedHtml = RegExp(reEscapedHtml.source), reHasUnescapedHtml = RegExp(reUnescapedHtml.source); - var reEscape = /<%-([\s\S]+?)%>/g, reEvaluate = /<%([\s\S]+?)%>/g, reInterpolate = /<%=([\s\S]+?)%>/g; - var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/, rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; - var reRegExpChar = /[\\^$.*+?()[\]{}|]/g, reHasRegExpChar = RegExp(reRegExpChar.source); - var reTrimStart = /^\s+/; - var reWhitespace = /\s/; - var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/, reSplitDetails = /,? & /; - var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g; - var reForbiddenIdentifierChars = /[()=,{}\[\]\/\s]/; - var reEscapeChar = /\\(\\)?/g; - var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g; - var reFlags = /\w*$/; - var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; - var reIsBinary = /^0b[01]+$/i; - var reIsHostCtor = /^\[object .+?Constructor\]$/; - var reIsOctal = /^0o[0-7]+$/i; - var reIsUint = /^(?:0|[1-9]\d*)$/; - var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g; - var reNoMatch = /($^)/; - var reUnescapedString = /['\n\r\u2028\u2029\\]/g; - var rsAstralRange = "\\ud800-\\udfff", rsComboMarksRange = "\\u0300-\\u036f", reComboHalfMarksRange = "\\ufe20-\\ufe2f", rsComboSymbolsRange = "\\u20d0-\\u20ff", rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange, rsDingbatRange = "\\u2700-\\u27bf", rsLowerRange = "a-z\\xdf-\\xf6\\xf8-\\xff", rsMathOpRange = "\\xac\\xb1\\xd7\\xf7", rsNonCharRange = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", rsPunctuationRange = "\\u2000-\\u206f", rsSpaceRange = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", rsUpperRange = "A-Z\\xc0-\\xd6\\xd8-\\xde", rsVarRange = "\\ufe0e\\ufe0f", rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange; - var rsApos = "['\u2019]", rsAstral = "[" + rsAstralRange + "]", rsBreak = "[" + rsBreakRange + "]", rsCombo = "[" + rsComboRange + "]", rsDigits = "\\d+", rsDingbat = "[" + rsDingbatRange + "]", rsLower = "[" + rsLowerRange + "]", rsMisc = "[^" + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + "]", rsFitz = "\\ud83c[\\udffb-\\udfff]", rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")", rsNonAstral = "[^" + rsAstralRange + "]", rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}", rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]", rsUpper = "[" + rsUpperRange + "]", rsZWJ = "\\u200d"; - var rsMiscLower = "(?:" + rsLower + "|" + rsMisc + ")", rsMiscUpper = "(?:" + rsUpper + "|" + rsMisc + ")", rsOptContrLower = "(?:" + rsApos + "(?:d|ll|m|re|s|t|ve))?", rsOptContrUpper = "(?:" + rsApos + "(?:D|LL|M|RE|S|T|VE))?", reOptMod = rsModifier + "?", rsOptVar = "[" + rsVarRange + "]?", rsOptJoin = "(?:" + rsZWJ + "(?:" + [rsNonAstral, rsRegional, rsSurrPair].join("|") + ")" + rsOptVar + reOptMod + ")*", rsOrdLower = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", rsOrdUpper = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", rsSeq = rsOptVar + reOptMod + rsOptJoin, rsEmoji = "(?:" + [rsDingbat, rsRegional, rsSurrPair].join("|") + ")" + rsSeq, rsSymbol = "(?:" + [rsNonAstral + rsCombo + "?", rsCombo, rsRegional, rsSurrPair, rsAstral].join("|") + ")"; - var reApos = RegExp(rsApos, "g"); - var reComboMark = RegExp(rsCombo, "g"); - var reUnicode = RegExp(rsFitz + "(?=" + rsFitz + ")|" + rsSymbol + rsSeq, "g"); - var reUnicodeWord = RegExp([ - rsUpper + "?" + rsLower + "+" + rsOptContrLower + "(?=" + [rsBreak, rsUpper, "$"].join("|") + ")", - rsMiscUpper + "+" + rsOptContrUpper + "(?=" + [rsBreak, rsUpper + rsMiscLower, "$"].join("|") + ")", - rsUpper + "?" + rsMiscLower + "+" + rsOptContrLower, - rsUpper + "+" + rsOptContrUpper, - rsOrdUpper, - rsOrdLower, - rsDigits, - rsEmoji - ].join("|"), "g"); - var reHasUnicode = RegExp("[" + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + "]"); - var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/; - var contextProps = [ - "Array", - "Buffer", - "DataView", - "Date", - "Error", - "Float32Array", - "Float64Array", - "Function", - "Int8Array", - "Int16Array", - "Int32Array", - "Map", - "Math", - "Object", - "Promise", - "RegExp", - "Set", - "String", - "Symbol", - "TypeError", - "Uint8Array", - "Uint8ClampedArray", - "Uint16Array", - "Uint32Array", - "WeakMap", - "_", - "clearTimeout", - "isFinite", - "parseInt", - "setTimeout" - ]; - var templateCounter = -1; - var typedArrayTags = {}; - typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true; - typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false; - var cloneableTags = {}; - cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true; - cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false; - var deburredLetters = { - // Latin-1 Supplement block. - "\xC0": "A", - "\xC1": "A", - "\xC2": "A", - "\xC3": "A", - "\xC4": "A", - "\xC5": "A", - "\xE0": "a", - "\xE1": "a", - "\xE2": "a", - "\xE3": "a", - "\xE4": "a", - "\xE5": "a", - "\xC7": "C", - "\xE7": "c", - "\xD0": "D", - "\xF0": "d", - "\xC8": "E", - "\xC9": "E", - "\xCA": "E", - "\xCB": "E", - "\xE8": "e", - "\xE9": "e", - "\xEA": "e", - "\xEB": "e", - "\xCC": "I", - "\xCD": "I", - "\xCE": "I", - "\xCF": "I", - "\xEC": "i", - "\xED": "i", - "\xEE": "i", - "\xEF": "i", - "\xD1": "N", - "\xF1": "n", - "\xD2": "O", - "\xD3": "O", - "\xD4": "O", - "\xD5": "O", - "\xD6": "O", - "\xD8": "O", - "\xF2": "o", - "\xF3": "o", - "\xF4": "o", - "\xF5": "o", - "\xF6": "o", - "\xF8": "o", - "\xD9": "U", - "\xDA": "U", - "\xDB": "U", - "\xDC": "U", - "\xF9": "u", - "\xFA": "u", - "\xFB": "u", - "\xFC": "u", - "\xDD": "Y", - "\xFD": "y", - "\xFF": "y", - "\xC6": "Ae", - "\xE6": "ae", - "\xDE": "Th", - "\xFE": "th", - "\xDF": "ss", - // Latin Extended-A block. - "\u0100": "A", - "\u0102": "A", - "\u0104": "A", - "\u0101": "a", - "\u0103": "a", - "\u0105": "a", - "\u0106": "C", - "\u0108": "C", - "\u010A": "C", - "\u010C": "C", - "\u0107": "c", - "\u0109": "c", - "\u010B": "c", - "\u010D": "c", - "\u010E": "D", - "\u0110": "D", - "\u010F": "d", - "\u0111": "d", - "\u0112": "E", - "\u0114": "E", - "\u0116": "E", - "\u0118": "E", - "\u011A": "E", - "\u0113": "e", - "\u0115": "e", - "\u0117": "e", - "\u0119": "e", - "\u011B": "e", - "\u011C": "G", - "\u011E": "G", - "\u0120": "G", - "\u0122": "G", - "\u011D": "g", - "\u011F": "g", - "\u0121": "g", - "\u0123": "g", - "\u0124": "H", - "\u0126": "H", - "\u0125": "h", - "\u0127": "h", - "\u0128": "I", - "\u012A": "I", - "\u012C": "I", - "\u012E": "I", - "\u0130": "I", - "\u0129": "i", - "\u012B": "i", - "\u012D": "i", - "\u012F": "i", - "\u0131": "i", - "\u0134": "J", - "\u0135": "j", - "\u0136": "K", - "\u0137": "k", - "\u0138": "k", - "\u0139": "L", - "\u013B": "L", - "\u013D": "L", - "\u013F": "L", - "\u0141": "L", - "\u013A": "l", - "\u013C": "l", - "\u013E": "l", - "\u0140": "l", - "\u0142": "l", - "\u0143": "N", - "\u0145": "N", - "\u0147": "N", - "\u014A": "N", - "\u0144": "n", - "\u0146": "n", - "\u0148": "n", - "\u014B": "n", - "\u014C": "O", - "\u014E": "O", - "\u0150": "O", - "\u014D": "o", - "\u014F": "o", - "\u0151": "o", - "\u0154": "R", - "\u0156": "R", - "\u0158": "R", - "\u0155": "r", - "\u0157": "r", - "\u0159": "r", - "\u015A": "S", - "\u015C": "S", - "\u015E": "S", - "\u0160": "S", - "\u015B": "s", - "\u015D": "s", - "\u015F": "s", - "\u0161": "s", - "\u0162": "T", - "\u0164": "T", - "\u0166": "T", - "\u0163": "t", - "\u0165": "t", - "\u0167": "t", - "\u0168": "U", - "\u016A": "U", - "\u016C": "U", - "\u016E": "U", - "\u0170": "U", - "\u0172": "U", - "\u0169": "u", - "\u016B": "u", - "\u016D": "u", - "\u016F": "u", - "\u0171": "u", - "\u0173": "u", - "\u0174": "W", - "\u0175": "w", - "\u0176": "Y", - "\u0177": "y", - "\u0178": "Y", - "\u0179": "Z", - "\u017B": "Z", - "\u017D": "Z", - "\u017A": "z", - "\u017C": "z", - "\u017E": "z", - "\u0132": "IJ", - "\u0133": "ij", - "\u0152": "Oe", - "\u0153": "oe", - "\u0149": "'n", - "\u017F": "s" - }; - var htmlEscapes = { - "&": "&", - "<": "<", - ">": ">", - '"': """, - "'": "'" - }; - var htmlUnescapes = { - "&": "&", - "<": "<", - ">": ">", - """: '"', - "'": "'" - }; - var stringEscapes = { - "\\": "\\", - "'": "'", - "\n": "n", - "\r": "r", - "\u2028": "u2028", - "\u2029": "u2029" - }; - var freeParseFloat = parseFloat, freeParseInt = parseInt; - var freeGlobal = typeof global == "object" && global && global.Object === Object && global; - var freeSelf = typeof self == "object" && self && self.Object === Object && self; - var root = freeGlobal || freeSelf || Function("return this")(); - var freeExports = typeof exports2 == "object" && exports2 && !exports2.nodeType && exports2; - var freeModule = freeExports && typeof module2 == "object" && module2 && !module2.nodeType && module2; - var moduleExports2 = freeModule && freeModule.exports === freeExports; - var freeProcess = moduleExports2 && freeGlobal.process; - var nodeUtil = function() { - try { - var types2 = freeModule && freeModule.require && freeModule.require("util").types; - if (types2) { - return types2; - } - return freeProcess && freeProcess.binding && freeProcess.binding("util"); - } catch (e) { - } - }(); - var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer, nodeIsDate = nodeUtil && nodeUtil.isDate, nodeIsMap = nodeUtil && nodeUtil.isMap, nodeIsRegExp = nodeUtil && nodeUtil.isRegExp, nodeIsSet = nodeUtil && nodeUtil.isSet, nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; - function apply(func2, thisArg, args3) { - switch (args3.length) { - case 0: - return func2.call(thisArg); - case 1: - return func2.call(thisArg, args3[0]); - case 2: - return func2.call(thisArg, args3[0], args3[1]); - case 3: - return func2.call(thisArg, args3[0], args3[1], args3[2]); - } - return func2.apply(thisArg, args3); - } - function arrayAggregator(array, setter, iteratee, accumulator) { - var index = -1, length = array == null ? 0 : array.length; - while (++index < length) { - var value = array[index]; - setter(accumulator, value, iteratee(value), array); - } - return accumulator; - } - function arrayEach(array, iteratee) { - var index = -1, length = array == null ? 0 : array.length; - while (++index < length) { - if (iteratee(array[index], index, array) === false) { - break; - } - } - return array; - } - function arrayEachRight(array, iteratee) { - var length = array == null ? 0 : array.length; - while (length--) { - if (iteratee(array[length], length, array) === false) { - break; - } - } - return array; - } - function arrayEvery(array, predicate) { - var index = -1, length = array == null ? 0 : array.length; - while (++index < length) { - if (!predicate(array[index], index, array)) { - return false; - } - } - return true; - } - function arrayFilter(array, predicate) { - var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = []; - while (++index < length) { - var value = array[index]; - if (predicate(value, index, array)) { - result[resIndex++] = value; - } - } - return result; - } - function arrayIncludes(array, value) { - var length = array == null ? 0 : array.length; - return !!length && baseIndexOf(array, value, 0) > -1; - } - function arrayIncludesWith(array, value, comparator) { - var index = -1, length = array == null ? 0 : array.length; - while (++index < length) { - if (comparator(value, array[index])) { - return true; - } - } - return false; - } - function arrayMap(array, iteratee) { - var index = -1, length = array == null ? 0 : array.length, result = Array(length); - while (++index < length) { - result[index] = iteratee(array[index], index, array); - } - return result; - } - function arrayPush(array, values) { - var index = -1, length = values.length, offset = array.length; - while (++index < length) { - array[offset + index] = values[index]; - } - return array; - } - function arrayReduce(array, iteratee, accumulator, initAccum) { - var index = -1, length = array == null ? 0 : array.length; - if (initAccum && length) { - accumulator = array[++index]; - } - while (++index < length) { - accumulator = iteratee(accumulator, array[index], index, array); - } - return accumulator; - } - function arrayReduceRight(array, iteratee, accumulator, initAccum) { - var length = array == null ? 0 : array.length; - if (initAccum && length) { - accumulator = array[--length]; - } - while (length--) { - accumulator = iteratee(accumulator, array[length], length, array); - } - return accumulator; - } - function arraySome(array, predicate) { - var index = -1, length = array == null ? 0 : array.length; - while (++index < length) { - if (predicate(array[index], index, array)) { - return true; - } - } - return false; - } - var asciiSize = baseProperty("length"); - function asciiToArray(string) { - return string.split(""); - } - function asciiWords(string) { - return string.match(reAsciiWord) || []; - } - function baseFindKey(collection, predicate, eachFunc) { - var result; - eachFunc(collection, function(value, key, collection2) { - if (predicate(value, key, collection2)) { - result = key; - return false; - } - }); - return result; - } - function baseFindIndex(array, predicate, fromIndex, fromRight) { - var length = array.length, index = fromIndex + (fromRight ? 1 : -1); - while (fromRight ? index-- : ++index < length) { - if (predicate(array[index], index, array)) { - return index; - } - } - return -1; - } - function baseIndexOf(array, value, fromIndex) { - return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex); - } - function baseIndexOfWith(array, value, fromIndex, comparator) { - var index = fromIndex - 1, length = array.length; - while (++index < length) { - if (comparator(array[index], value)) { - return index; - } - } - return -1; - } - function baseIsNaN(value) { - return value !== value; - } - function baseMean(array, iteratee) { - var length = array == null ? 0 : array.length; - return length ? baseSum(array, iteratee) / length : NAN; - } - function baseProperty(key) { - return function(object) { - return object == null ? undefined2 : object[key]; - }; - } - function basePropertyOf(object) { - return function(key) { - return object == null ? undefined2 : object[key]; - }; - } - function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) { - eachFunc(collection, function(value, index, collection2) { - accumulator = initAccum ? (initAccum = false, value) : iteratee(accumulator, value, index, collection2); - }); - return accumulator; - } - function baseSortBy(array, comparer) { - var length = array.length; - array.sort(comparer); - while (length--) { - array[length] = array[length].value; - } - return array; - } - function baseSum(array, iteratee) { - var result, index = -1, length = array.length; - while (++index < length) { - var current = iteratee(array[index]); - if (current !== undefined2) { - result = result === undefined2 ? current : result + current; - } - } - return result; - } - function baseTimes(n, iteratee) { - var index = -1, result = Array(n); - while (++index < n) { - result[index] = iteratee(index); - } - return result; - } - function baseToPairs(object, props) { - return arrayMap(props, function(key) { - return [key, object[key]]; - }); - } - function baseTrim(string) { - return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string; - } - function baseUnary(func2) { - return function(value) { - return func2(value); - }; - } - function baseValues(object, props) { - return arrayMap(props, function(key) { - return object[key]; - }); - } - function cacheHas(cache, key) { - return cache.has(key); - } - function charsStartIndex(strSymbols, chrSymbols) { - var index = -1, length = strSymbols.length; - while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) { - } - return index; - } - function charsEndIndex(strSymbols, chrSymbols) { - var index = strSymbols.length; - while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) { - } - return index; - } - function countHolders(array, placeholder) { - var length = array.length, result = 0; - while (length--) { - if (array[length] === placeholder) { - ++result; - } - } - return result; - } - var deburrLetter = basePropertyOf(deburredLetters); - var escapeHtmlChar = basePropertyOf(htmlEscapes); - function escapeStringChar(chr) { - return "\\" + stringEscapes[chr]; - } - function getValue2(object, key) { - return object == null ? undefined2 : object[key]; - } - function hasUnicode(string) { - return reHasUnicode.test(string); - } - function hasUnicodeWord(string) { - return reHasUnicodeWord.test(string); - } - function iteratorToArray(iterator) { - var data, result = []; - while (!(data = iterator.next()).done) { - result.push(data.value); - } - return result; - } - function mapToArray(map) { - var index = -1, result = Array(map.size); - map.forEach(function(value, key) { - result[++index] = [key, value]; - }); - return result; - } - function overArg(func2, transform) { - return function(arg) { - return func2(transform(arg)); - }; - } - function replaceHolders(array, placeholder) { - var index = -1, length = array.length, resIndex = 0, result = []; - while (++index < length) { - var value = array[index]; - if (value === placeholder || value === PLACEHOLDER) { - array[index] = PLACEHOLDER; - result[resIndex++] = index; - } - } - return result; - } - function setToArray(set) { - var index = -1, result = Array(set.size); - set.forEach(function(value) { - result[++index] = value; - }); - return result; - } - function setToPairs(set) { - var index = -1, result = Array(set.size); - set.forEach(function(value) { - result[++index] = [value, value]; - }); - return result; - } - function strictIndexOf(array, value, fromIndex) { - var index = fromIndex - 1, length = array.length; - while (++index < length) { - if (array[index] === value) { - return index; - } - } - return -1; - } - function strictLastIndexOf(array, value, fromIndex) { - var index = fromIndex + 1; - while (index--) { - if (array[index] === value) { - return index; - } - } - return index; - } - function stringSize(string) { - return hasUnicode(string) ? unicodeSize(string) : asciiSize(string); - } - function stringToArray(string) { - return hasUnicode(string) ? unicodeToArray(string) : asciiToArray(string); - } - function trimmedEndIndex(string) { - var index = string.length; - while (index-- && reWhitespace.test(string.charAt(index))) { - } - return index; - } - var unescapeHtmlChar = basePropertyOf(htmlUnescapes); - function unicodeSize(string) { - var result = reUnicode.lastIndex = 0; - while (reUnicode.test(string)) { - ++result; - } - return result; - } - function unicodeToArray(string) { - return string.match(reUnicode) || []; - } - function unicodeWords(string) { - return string.match(reUnicodeWord) || []; - } - var runInContext = function runInContext2(context3) { - context3 = context3 == null ? root : _.defaults(root.Object(), context3, _.pick(root, contextProps)); - var Array2 = context3.Array, Date2 = context3.Date, Error2 = context3.Error, Function2 = context3.Function, Math2 = context3.Math, Object2 = context3.Object, RegExp2 = context3.RegExp, String2 = context3.String, TypeError2 = context3.TypeError; - var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype; - var coreJsData = context3["__core-js_shared__"]; - var funcToString = funcProto.toString; - var hasOwnProperty2 = objectProto.hasOwnProperty; - var idCounter = 0; - var maskSrcKey = function() { - var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ""); - return uid ? "Symbol(src)_1." + uid : ""; - }(); - var nativeObjectToString = objectProto.toString; - var objectCtorString = funcToString.call(Object2); - var oldDash = root._; - var reIsNative = RegExp2( - "^" + funcToString.call(hasOwnProperty2).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" - ); - var Buffer2 = moduleExports2 ? context3.Buffer : undefined2, Symbol2 = context3.Symbol, Uint8Array2 = context3.Uint8Array, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : undefined2, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : undefined2, symIterator = Symbol2 ? Symbol2.iterator : undefined2, symToStringTag = Symbol2 ? Symbol2.toStringTag : undefined2; - var defineProperty = function() { - try { - var func2 = getNative(Object2, "defineProperty"); - func2({}, "", {}); - return func2; - } catch (e) { - } - }(); - var ctxClearTimeout = context3.clearTimeout !== root.clearTimeout && context3.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context3.setTimeout !== root.setTimeout && context3.setTimeout; - var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : undefined2, nativeIsFinite = context3.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date2.now, nativeParseInt = context3.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto.reverse; - var DataView2 = getNative(context3, "DataView"), Map2 = getNative(context3, "Map"), Promise2 = getNative(context3, "Promise"), Set2 = getNative(context3, "Set"), WeakMap2 = getNative(context3, "WeakMap"), nativeCreate = getNative(Object2, "create"); - var metaMap = WeakMap2 && new WeakMap2(); - var realNames = {}; - var dataViewCtorString = toSource(DataView2), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap2); - var symbolProto = Symbol2 ? Symbol2.prototype : undefined2, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined2, symbolToString = symbolProto ? symbolProto.toString : undefined2; - function lodash(value) { - if (isObjectLike(value) && !isArray2(value) && !(value instanceof LazyWrapper)) { - if (value instanceof LodashWrapper) { - return value; - } - if (hasOwnProperty2.call(value, "__wrapped__")) { - return wrapperClone(value); - } - } - return new LodashWrapper(value); - } - var baseCreate = function() { - function object() { - } - return function(proto) { - if (!isObject3(proto)) { - return {}; - } - if (objectCreate) { - return objectCreate(proto); - } - object.prototype = proto; - var result2 = new object(); - object.prototype = undefined2; - return result2; - }; - }(); - function baseLodash() { - } - function LodashWrapper(value, chainAll) { - this.__wrapped__ = value; - this.__actions__ = []; - this.__chain__ = !!chainAll; - this.__index__ = 0; - this.__values__ = undefined2; - } - lodash.templateSettings = { - /** - * Used to detect `data` property values to be HTML-escaped. - * - * @memberOf _.templateSettings - * @type {RegExp} - */ - "escape": reEscape, - /** - * Used to detect code to be evaluated. - * - * @memberOf _.templateSettings - * @type {RegExp} - */ - "evaluate": reEvaluate, - /** - * Used to detect `data` property values to inject. - * - * @memberOf _.templateSettings - * @type {RegExp} - */ - "interpolate": reInterpolate, - /** - * Used to reference the data object in the template text. - * - * @memberOf _.templateSettings - * @type {string} - */ - "variable": "", - /** - * Used to import variables into the compiled template. - * - * @memberOf _.templateSettings - * @type {Object} - */ - "imports": { - /** - * A reference to the `lodash` function. - * - * @memberOf _.templateSettings.imports - * @type {Function} - */ - "_": lodash - } - }; - lodash.prototype = baseLodash.prototype; - lodash.prototype.constructor = lodash; - LodashWrapper.prototype = baseCreate(baseLodash.prototype); - LodashWrapper.prototype.constructor = LodashWrapper; - function LazyWrapper(value) { - this.__wrapped__ = value; - this.__actions__ = []; - this.__dir__ = 1; - this.__filtered__ = false; - this.__iteratees__ = []; - this.__takeCount__ = MAX_ARRAY_LENGTH; - this.__views__ = []; - } - function lazyClone() { - var result2 = new LazyWrapper(this.__wrapped__); - result2.__actions__ = copyArray(this.__actions__); - result2.__dir__ = this.__dir__; - result2.__filtered__ = this.__filtered__; - result2.__iteratees__ = copyArray(this.__iteratees__); - result2.__takeCount__ = this.__takeCount__; - result2.__views__ = copyArray(this.__views__); - return result2; - } - function lazyReverse() { - if (this.__filtered__) { - var result2 = new LazyWrapper(this); - result2.__dir__ = -1; - result2.__filtered__ = true; - } else { - result2 = this.clone(); - result2.__dir__ *= -1; - } - return result2; - } - function lazyValue() { - var array = this.__wrapped__.value(), dir = this.__dir__, isArr = isArray2(array), isRight = dir < 0, arrLength = isArr ? array.length : 0, view = getView(0, arrLength, this.__views__), start4 = view.start, end = view.end, length = end - start4, index = isRight ? end : start4 - 1, iteratees = this.__iteratees__, iterLength = iteratees.length, resIndex = 0, takeCount = nativeMin(length, this.__takeCount__); - if (!isArr || !isRight && arrLength == length && takeCount == length) { - return baseWrapperValue(array, this.__actions__); - } - var result2 = []; - outer: - while (length-- && resIndex < takeCount) { - index += dir; - var iterIndex = -1, value = array[index]; - while (++iterIndex < iterLength) { - var data = iteratees[iterIndex], iteratee2 = data.iteratee, type = data.type, computed = iteratee2(value); - if (type == LAZY_MAP_FLAG) { - value = computed; - } else if (!computed) { - if (type == LAZY_FILTER_FLAG) { - continue outer; - } else { - break outer; - } - } - } - result2[resIndex++] = value; - } - return result2; - } - LazyWrapper.prototype = baseCreate(baseLodash.prototype); - LazyWrapper.prototype.constructor = LazyWrapper; - 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]); - } - } - function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {}; - this.size = 0; - } - function hashDelete(key) { - var result2 = this.has(key) && delete this.__data__[key]; - this.size -= result2 ? 1 : 0; - return result2; - } - function hashGet(key) { - var data = this.__data__; - if (nativeCreate) { - var result2 = data[key]; - return result2 === HASH_UNDEFINED ? undefined2 : result2; - } - return hasOwnProperty2.call(data, key) ? data[key] : undefined2; - } - function hashHas(key) { - var data = this.__data__; - return nativeCreate ? data[key] !== undefined2 : hasOwnProperty2.call(data, key); - } - function hashSet(key, value) { - var data = this.__data__; - this.size += this.has(key) ? 0 : 1; - data[key] = nativeCreate && value === undefined2 ? HASH_UNDEFINED : value; - return this; - } - Hash.prototype.clear = hashClear; - Hash.prototype["delete"] = hashDelete; - Hash.prototype.get = hashGet; - Hash.prototype.has = hashHas; - Hash.prototype.set = hashSet; - 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]); - } - } - function listCacheClear() { - this.__data__ = []; - this.size = 0; - } - function listCacheDelete(key) { - var data = this.__data__, index = assocIndexOf(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; - } - function listCacheGet(key) { - var data = this.__data__, index = assocIndexOf(data, key); - return index < 0 ? undefined2 : data[index][1]; - } - function listCacheHas(key) { - return assocIndexOf(this.__data__, key) > -1; - } - function listCacheSet(key, value) { - var data = this.__data__, index = assocIndexOf(data, key); - if (index < 0) { - ++this.size; - data.push([key, value]); - } else { - data[index][1] = value; - } - return this; - } - ListCache.prototype.clear = listCacheClear; - ListCache.prototype["delete"] = listCacheDelete; - ListCache.prototype.get = listCacheGet; - ListCache.prototype.has = listCacheHas; - ListCache.prototype.set = listCacheSet; - 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]); - } - } - function mapCacheClear() { - this.size = 0; - this.__data__ = { - "hash": new Hash(), - "map": new (Map2 || ListCache)(), - "string": new Hash() - }; - } - function mapCacheDelete(key) { - var result2 = getMapData(this, key)["delete"](key); - this.size -= result2 ? 1 : 0; - return result2; - } - function mapCacheGet(key) { - return getMapData(this, key).get(key); - } - function mapCacheHas(key) { - return getMapData(this, key).has(key); - } - function mapCacheSet(key, value) { - var data = getMapData(this, key), size2 = data.size; - data.set(key, value); - this.size += data.size == size2 ? 0 : 1; - return this; - } - MapCache.prototype.clear = mapCacheClear; - MapCache.prototype["delete"] = mapCacheDelete; - MapCache.prototype.get = mapCacheGet; - MapCache.prototype.has = mapCacheHas; - MapCache.prototype.set = mapCacheSet; - function SetCache(values2) { - var index = -1, length = values2 == null ? 0 : values2.length; - this.__data__ = new MapCache(); - while (++index < length) { - this.add(values2[index]); - } - } - function setCacheAdd(value) { - this.__data__.set(value, HASH_UNDEFINED); - return this; - } - function setCacheHas(value) { - return this.__data__.has(value); - } - SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; - SetCache.prototype.has = setCacheHas; - function Stack3(entries) { - var data = this.__data__ = new ListCache(entries); - this.size = data.size; - } - function stackClear() { - this.__data__ = new ListCache(); - this.size = 0; - } - function stackDelete(key) { - var data = this.__data__, result2 = data["delete"](key); - this.size = data.size; - return result2; - } - function stackGet(key) { - return this.__data__.get(key); - } - function stackHas(key) { - return this.__data__.has(key); - } - function stackSet(key, value) { - var data = this.__data__; - if (data instanceof ListCache) { - var pairs = data.__data__; - if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) { - pairs.push([key, value]); - this.size = ++data.size; - return this; - } - data = this.__data__ = new MapCache(pairs); - } - data.set(key, value); - this.size = data.size; - return this; - } - Stack3.prototype.clear = stackClear; - Stack3.prototype["delete"] = stackDelete; - Stack3.prototype.get = stackGet; - Stack3.prototype.has = stackHas; - Stack3.prototype.set = stackSet; - function arrayLikeKeys(value, inherited) { - var isArr = isArray2(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer2(value), isType = !isArr && !isArg && !isBuff && isTypedArray2(value), skipIndexes = isArr || isArg || isBuff || isType, result2 = skipIndexes ? baseTimes(value.length, String2) : [], length = result2.length; - for (var key in value) { - if ((inherited || hasOwnProperty2.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode. - (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers. - isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays. - isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties. - isIndex(key, length)))) { - result2.push(key); - } - } - return result2; - } - function arraySample(array) { - var length = array.length; - return length ? array[baseRandom(0, length - 1)] : undefined2; - } - function arraySampleSize(array, n) { - return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length)); - } - function arrayShuffle(array) { - return shuffleSelf(copyArray(array)); - } - function assignMergeValue(object, key, value) { - if (value !== undefined2 && !eq(object[key], value) || value === undefined2 && !(key in object)) { - baseAssignValue(object, key, value); - } - } - function assignValue(object, key, value) { - var objValue = object[key]; - if (!(hasOwnProperty2.call(object, key) && eq(objValue, value)) || value === undefined2 && !(key in object)) { - baseAssignValue(object, key, value); - } - } - function assocIndexOf(array, key) { - var length = array.length; - while (length--) { - if (eq(array[length][0], key)) { - return length; - } - } - return -1; - } - function baseAggregator(collection, setter, iteratee2, accumulator) { - baseEach(collection, function(value, key, collection2) { - setter(accumulator, value, iteratee2(value), collection2); - }); - return accumulator; - } - function baseAssign(object, source) { - return object && copyObject(source, keys(source), object); - } - function baseAssignIn(object, source) { - return object && copyObject(source, keysIn(source), object); - } - function baseAssignValue(object, key, value) { - if (key == "__proto__" && defineProperty) { - defineProperty(object, key, { - "configurable": true, - "enumerable": true, - "value": value, - "writable": true - }); - } else { - object[key] = value; - } - } - function baseAt(object, paths) { - var index = -1, length = paths.length, result2 = Array2(length), skip = object == null; - while (++index < length) { - result2[index] = skip ? undefined2 : get(object, paths[index]); - } - return result2; - } - function baseClamp(number, lower, upper) { - if (number === number) { - if (upper !== undefined2) { - number = number <= upper ? number : upper; - } - if (lower !== undefined2) { - number = number >= lower ? number : lower; - } - } - return number; - } - function baseClone(value, bitmask, customizer, key, object, stack) { - var result2, isDeep = bitmask & CLONE_DEEP_FLAG, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG; - if (customizer) { - result2 = object ? customizer(value, key, object, stack) : customizer(value); - } - if (result2 !== undefined2) { - return result2; - } - if (!isObject3(value)) { - return value; - } - var isArr = isArray2(value); - if (isArr) { - result2 = initCloneArray(value); - if (!isDeep) { - return copyArray(value, result2); - } - } else { - var tag = getTag(value), isFunc = tag == funcTag || tag == genTag; - if (isBuffer2(value)) { - return cloneBuffer(value, isDeep); - } - if (tag == objectTag || tag == argsTag || isFunc && !object) { - result2 = isFlat || isFunc ? {} : initCloneObject(value); - if (!isDeep) { - return isFlat ? copySymbolsIn(value, baseAssignIn(result2, value)) : copySymbols(value, baseAssign(result2, value)); - } - } else { - if (!cloneableTags[tag]) { - return object ? value : {}; - } - result2 = initCloneByTag(value, tag, isDeep); - } - } - stack || (stack = new Stack3()); - var stacked = stack.get(value); - if (stacked) { - return stacked; - } - stack.set(value, result2); - if (isSet(value)) { - value.forEach(function(subValue) { - result2.add(baseClone(subValue, bitmask, customizer, subValue, value, stack)); - }); - } else if (isMap(value)) { - value.forEach(function(subValue, key2) { - result2.set(key2, baseClone(subValue, bitmask, customizer, key2, value, stack)); - }); - } - var keysFunc = isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys; - var props = isArr ? undefined2 : keysFunc(value); - arrayEach(props || value, function(subValue, key2) { - if (props) { - key2 = subValue; - subValue = value[key2]; - } - assignValue(result2, key2, baseClone(subValue, bitmask, customizer, key2, value, stack)); - }); - return result2; - } - function baseConforms(source) { - var props = keys(source); - return function(object) { - return baseConformsTo(object, source, props); - }; - } - function baseConformsTo(object, source, props) { - var length = props.length; - if (object == null) { - return !length; - } - object = Object2(object); - while (length--) { - var key = props[length], predicate = source[key], value = object[key]; - if (value === undefined2 && !(key in object) || !predicate(value)) { - return false; - } - } - return true; - } - function baseDelay(func2, wait, args3) { - if (typeof func2 != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - return setTimeout2(function() { - func2.apply(undefined2, args3); - }, wait); - } - function baseDifference(array, values2, iteratee2, comparator) { - var index = -1, includes2 = arrayIncludes, isCommon = true, length = array.length, result2 = [], valuesLength = values2.length; - if (!length) { - return result2; - } - if (iteratee2) { - values2 = arrayMap(values2, baseUnary(iteratee2)); - } - if (comparator) { - includes2 = arrayIncludesWith; - isCommon = false; - } else if (values2.length >= LARGE_ARRAY_SIZE) { - includes2 = cacheHas; - isCommon = false; - values2 = new SetCache(values2); - } - outer: - while (++index < length) { - var value = array[index], computed = iteratee2 == null ? value : iteratee2(value); - value = comparator || value !== 0 ? value : 0; - if (isCommon && computed === computed) { - var valuesIndex = valuesLength; - while (valuesIndex--) { - if (values2[valuesIndex] === computed) { - continue outer; - } - } - result2.push(value); - } else if (!includes2(values2, computed, comparator)) { - result2.push(value); - } - } - return result2; - } - var baseEach = createBaseEach(baseForOwn); - var baseEachRight = createBaseEach(baseForOwnRight, true); - function baseEvery(collection, predicate) { - var result2 = true; - baseEach(collection, function(value, index, collection2) { - result2 = !!predicate(value, index, collection2); - return result2; - }); - return result2; - } - function baseExtremum(array, iteratee2, comparator) { - var index = -1, length = array.length; - while (++index < length) { - var value = array[index], current = iteratee2(value); - if (current != null && (computed === undefined2 ? current === current && !isSymbol(current) : comparator(current, computed))) { - var computed = current, result2 = value; - } - } - return result2; - } - function baseFill(array, value, start4, end) { - var length = array.length; - start4 = toInteger(start4); - if (start4 < 0) { - start4 = -start4 > length ? 0 : length + start4; - } - end = end === undefined2 || end > length ? length : toInteger(end); - if (end < 0) { - end += length; - } - end = start4 > end ? 0 : toLength(end); - while (start4 < end) { - array[start4++] = value; - } - return array; - } - function baseFilter(collection, predicate) { - var result2 = []; - baseEach(collection, function(value, index, collection2) { - if (predicate(value, index, collection2)) { - result2.push(value); - } - }); - return result2; - } - function baseFlatten(array, depth, predicate, isStrict, result2) { - var index = -1, length = array.length; - predicate || (predicate = isFlattenable); - result2 || (result2 = []); - while (++index < length) { - var value = array[index]; - if (depth > 0 && predicate(value)) { - if (depth > 1) { - baseFlatten(value, depth - 1, predicate, isStrict, result2); - } else { - arrayPush(result2, value); - } - } else if (!isStrict) { - result2[result2.length] = value; - } - } - return result2; - } - var baseFor = createBaseFor(); - var baseForRight = createBaseFor(true); - function baseForOwn(object, iteratee2) { - return object && baseFor(object, iteratee2, keys); - } - function baseForOwnRight(object, iteratee2) { - return object && baseForRight(object, iteratee2, keys); - } - function baseFunctions(object, props) { - return arrayFilter(props, function(key) { - return isFunction2(object[key]); - }); - } - function baseGet(object, path20) { - path20 = castPath(path20, object); - var index = 0, length = path20.length; - while (object != null && index < length) { - object = object[toKey(path20[index++])]; - } - return index && index == length ? object : undefined2; - } - function baseGetAllKeys(object, keysFunc, symbolsFunc) { - var result2 = keysFunc(object); - return isArray2(object) ? result2 : arrayPush(result2, symbolsFunc(object)); - } - function baseGetTag(value) { - if (value == null) { - return value === undefined2 ? undefinedTag : nullTag; - } - return symToStringTag && symToStringTag in Object2(value) ? getRawTag(value) : objectToString(value); - } - function baseGt(value, other) { - return value > other; - } - function baseHas(object, key) { - return object != null && hasOwnProperty2.call(object, key); - } - function baseHasIn(object, key) { - return object != null && key in Object2(object); - } - function baseInRange(number, start4, end) { - return number >= nativeMin(start4, end) && number < nativeMax(start4, end); - } - function baseIntersection(arrays, iteratee2, comparator) { - var includes2 = comparator ? arrayIncludesWith : arrayIncludes, length = arrays[0].length, othLength = arrays.length, othIndex = othLength, caches = Array2(othLength), maxLength = Infinity, result2 = []; - while (othIndex--) { - var array = arrays[othIndex]; - if (othIndex && iteratee2) { - array = arrayMap(array, baseUnary(iteratee2)); - } - maxLength = nativeMin(array.length, maxLength); - caches[othIndex] = !comparator && (iteratee2 || length >= 120 && array.length >= 120) ? new SetCache(othIndex && array) : undefined2; - } - array = arrays[0]; - var index = -1, seen = caches[0]; - outer: - while (++index < length && result2.length < maxLength) { - var value = array[index], computed = iteratee2 ? iteratee2(value) : value; - value = comparator || value !== 0 ? value : 0; - if (!(seen ? cacheHas(seen, computed) : includes2(result2, computed, comparator))) { - othIndex = othLength; - while (--othIndex) { - var cache = caches[othIndex]; - if (!(cache ? cacheHas(cache, computed) : includes2(arrays[othIndex], computed, comparator))) { - continue outer; - } - } - if (seen) { - seen.push(computed); - } - result2.push(value); - } - } - return result2; - } - function baseInverter(object, setter, iteratee2, accumulator) { - baseForOwn(object, function(value, key, object2) { - setter(accumulator, iteratee2(value), key, object2); - }); - return accumulator; - } - function baseInvoke(object, path20, args3) { - path20 = castPath(path20, object); - object = parent(object, path20); - var func2 = object == null ? object : object[toKey(last(path20))]; - return func2 == null ? undefined2 : apply(func2, object, args3); - } - function baseIsArguments(value) { - return isObjectLike(value) && baseGetTag(value) == argsTag; - } - function baseIsArrayBuffer(value) { - return isObjectLike(value) && baseGetTag(value) == arrayBufferTag; - } - function baseIsDate(value) { - return isObjectLike(value) && baseGetTag(value) == dateTag; - } - function baseIsEqual(value, other, bitmask, customizer, stack) { - if (value === other) { - return true; - } - if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) { - return value !== value && other !== other; - } - return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack); - } - function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { - var objIsArr = isArray2(object), othIsArr = isArray2(other), objTag = objIsArr ? arrayTag : getTag(object), othTag = othIsArr ? arrayTag : getTag(other); - objTag = objTag == argsTag ? objectTag : objTag; - othTag = othTag == argsTag ? objectTag : othTag; - var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag; - if (isSameTag && isBuffer2(object)) { - if (!isBuffer2(other)) { - return false; - } - objIsArr = true; - objIsObj = false; - } - if (isSameTag && !objIsObj) { - stack || (stack = new Stack3()); - return objIsArr || isTypedArray2(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack); - } - if (!(bitmask & COMPARE_PARTIAL_FLAG)) { - var objIsWrapped = objIsObj && hasOwnProperty2.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty2.call(other, "__wrapped__"); - if (objIsWrapped || othIsWrapped) { - var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other; - stack || (stack = new Stack3()); - return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack); - } - } - if (!isSameTag) { - return false; - } - stack || (stack = new Stack3()); - return equalObjects(object, other, bitmask, customizer, equalFunc, stack); - } - function baseIsMap(value) { - return isObjectLike(value) && getTag(value) == mapTag; - } - function baseIsMatch(object, source, matchData, customizer) { - var index = matchData.length, length = index, noCustomizer = !customizer; - if (object == null) { - return !length; - } - object = Object2(object); - while (index--) { - var data = matchData[index]; - if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) { - return false; - } - } - while (++index < length) { - data = matchData[index]; - var key = data[0], objValue = object[key], srcValue = data[1]; - if (noCustomizer && data[2]) { - if (objValue === undefined2 && !(key in object)) { - return false; - } - } else { - var stack = new Stack3(); - if (customizer) { - var result2 = customizer(objValue, srcValue, key, object, source, stack); - } - if (!(result2 === undefined2 ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) : result2)) { - return false; - } - } - } - return true; - } - function baseIsNative(value) { - if (!isObject3(value) || isMasked(value)) { - return false; - } - var pattern = isFunction2(value) ? reIsNative : reIsHostCtor; - return pattern.test(toSource(value)); - } - function baseIsRegExp(value) { - return isObjectLike(value) && baseGetTag(value) == regexpTag; - } - function baseIsSet(value) { - return isObjectLike(value) && getTag(value) == setTag; - } - function baseIsTypedArray(value) { - return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; - } - function baseIteratee(value) { - if (typeof value == "function") { - return value; - } - if (value == null) { - return identity2; - } - if (typeof value == "object") { - return isArray2(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value); - } - return property(value); - } - function baseKeys(object) { - if (!isPrototype(object)) { - return nativeKeys(object); - } - var result2 = []; - for (var key in Object2(object)) { - if (hasOwnProperty2.call(object, key) && key != "constructor") { - result2.push(key); - } - } - return result2; - } - function baseKeysIn(object) { - if (!isObject3(object)) { - return nativeKeysIn(object); - } - var isProto = isPrototype(object), result2 = []; - for (var key in object) { - if (!(key == "constructor" && (isProto || !hasOwnProperty2.call(object, key)))) { - result2.push(key); - } - } - return result2; - } - function baseLt(value, other) { - return value < other; - } - function baseMap(collection, iteratee2) { - var index = -1, result2 = isArrayLike(collection) ? Array2(collection.length) : []; - baseEach(collection, function(value, key, collection2) { - result2[++index] = iteratee2(value, key, collection2); - }); - return result2; - } - function baseMatches(source) { - var matchData = getMatchData(source); - if (matchData.length == 1 && matchData[0][2]) { - return matchesStrictComparable(matchData[0][0], matchData[0][1]); - } - return function(object) { - return object === source || baseIsMatch(object, source, matchData); - }; - } - function baseMatchesProperty(path20, srcValue) { - if (isKey(path20) && isStrictComparable(srcValue)) { - return matchesStrictComparable(toKey(path20), srcValue); - } - return function(object) { - var objValue = get(object, path20); - return objValue === undefined2 && objValue === srcValue ? hasIn(object, path20) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG); - }; - } - function baseMerge(object, source, srcIndex, customizer, stack) { - if (object === source) { - return; - } - baseFor(source, function(srcValue, key) { - stack || (stack = new Stack3()); - if (isObject3(srcValue)) { - baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack); - } else { - var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : undefined2; - if (newValue === undefined2) { - newValue = srcValue; - } - assignMergeValue(object, key, newValue); - } - }, keysIn); - } - function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) { - var objValue = safeGet(object, key), srcValue = safeGet(source, key), stacked = stack.get(srcValue); - if (stacked) { - assignMergeValue(object, key, stacked); - return; - } - var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : undefined2; - var isCommon = newValue === undefined2; - if (isCommon) { - var isArr = isArray2(srcValue), isBuff = !isArr && isBuffer2(srcValue), isTyped = !isArr && !isBuff && isTypedArray2(srcValue); - newValue = srcValue; - if (isArr || isBuff || isTyped) { - if (isArray2(objValue)) { - newValue = objValue; - } else if (isArrayLikeObject(objValue)) { - newValue = copyArray(objValue); - } else if (isBuff) { - isCommon = false; - newValue = cloneBuffer(srcValue, true); - } else if (isTyped) { - isCommon = false; - newValue = cloneTypedArray(srcValue, true); - } else { - newValue = []; - } - } else if (isPlainObject2(srcValue) || isArguments(srcValue)) { - newValue = objValue; - if (isArguments(objValue)) { - newValue = toPlainObject(objValue); - } else if (!isObject3(objValue) || isFunction2(objValue)) { - newValue = initCloneObject(srcValue); - } - } else { - isCommon = false; - } - } - if (isCommon) { - stack.set(srcValue, newValue); - mergeFunc(newValue, srcValue, srcIndex, customizer, stack); - stack["delete"](srcValue); - } - assignMergeValue(object, key, newValue); - } - function baseNth(array, n) { - var length = array.length; - if (!length) { - return; - } - n += n < 0 ? length : 0; - return isIndex(n, length) ? array[n] : undefined2; - } - function baseOrderBy(collection, iteratees, orders) { - if (iteratees.length) { - iteratees = arrayMap(iteratees, function(iteratee2) { - if (isArray2(iteratee2)) { - return function(value) { - return baseGet(value, iteratee2.length === 1 ? iteratee2[0] : iteratee2); - }; - } - return iteratee2; - }); - } else { - iteratees = [identity2]; - } - var index = -1; - iteratees = arrayMap(iteratees, baseUnary(getIteratee())); - var result2 = baseMap(collection, function(value, key, collection2) { - var criteria = arrayMap(iteratees, function(iteratee2) { - return iteratee2(value); - }); - return { "criteria": criteria, "index": ++index, "value": value }; - }); - return baseSortBy(result2, function(object, other) { - return compareMultiple(object, other, orders); - }); - } - function basePick(object, paths) { - return basePickBy(object, paths, function(value, path20) { - return hasIn(object, path20); - }); - } - function basePickBy(object, paths, predicate) { - var index = -1, length = paths.length, result2 = {}; - while (++index < length) { - var path20 = paths[index], value = baseGet(object, path20); - if (predicate(value, path20)) { - baseSet(result2, castPath(path20, object), value); - } - } - return result2; - } - function basePropertyDeep(path20) { - return function(object) { - return baseGet(object, path20); - }; - } - function basePullAll(array, values2, iteratee2, comparator) { - var indexOf2 = comparator ? baseIndexOfWith : baseIndexOf, index = -1, length = values2.length, seen = array; - if (array === values2) { - values2 = copyArray(values2); - } - if (iteratee2) { - seen = arrayMap(array, baseUnary(iteratee2)); - } - while (++index < length) { - var fromIndex = 0, value = values2[index], computed = iteratee2 ? iteratee2(value) : value; - while ((fromIndex = indexOf2(seen, computed, fromIndex, comparator)) > -1) { - if (seen !== array) { - splice.call(seen, fromIndex, 1); - } - splice.call(array, fromIndex, 1); - } - } - return array; - } - function basePullAt(array, indexes) { - var length = array ? indexes.length : 0, lastIndex = length - 1; - while (length--) { - var index = indexes[length]; - if (length == lastIndex || index !== previous) { - var previous = index; - if (isIndex(index)) { - splice.call(array, index, 1); - } else { - baseUnset(array, index); - } - } - } - return array; - } - function baseRandom(lower, upper) { - return lower + nativeFloor(nativeRandom() * (upper - lower + 1)); - } - function baseRange(start4, end, step, fromRight) { - var index = -1, length = nativeMax(nativeCeil((end - start4) / (step || 1)), 0), result2 = Array2(length); - while (length--) { - result2[fromRight ? length : ++index] = start4; - start4 += step; - } - return result2; - } - function baseRepeat(string, n) { - var result2 = ""; - if (!string || n < 1 || n > MAX_SAFE_INTEGER) { - return result2; - } - do { - if (n % 2) { - result2 += string; - } - n = nativeFloor(n / 2); - if (n) { - string += string; - } - } while (n); - return result2; - } - function baseRest(func2, start4) { - return setToString(overRest(func2, start4, identity2), func2 + ""); - } - function baseSample(collection) { - return arraySample(values(collection)); - } - function baseSampleSize(collection, n) { - var array = values(collection); - return shuffleSelf(array, baseClamp(n, 0, array.length)); - } - function baseSet(object, path20, value, customizer) { - if (!isObject3(object)) { - return object; - } - path20 = castPath(path20, object); - var index = -1, length = path20.length, lastIndex = length - 1, nested = object; - while (nested != null && ++index < length) { - var key = toKey(path20[index]), newValue = value; - if (key === "__proto__" || key === "constructor" || key === "prototype") { - return object; - } - if (index != lastIndex) { - var objValue = nested[key]; - newValue = customizer ? customizer(objValue, key, nested) : undefined2; - if (newValue === undefined2) { - newValue = isObject3(objValue) ? objValue : isIndex(path20[index + 1]) ? [] : {}; - } - } - assignValue(nested, key, newValue); - nested = nested[key]; - } - return object; - } - var baseSetData = !metaMap ? identity2 : function(func2, data) { - metaMap.set(func2, data); - return func2; - }; - var baseSetToString = !defineProperty ? identity2 : function(func2, string) { - return defineProperty(func2, "toString", { - "configurable": true, - "enumerable": false, - "value": constant(string), - "writable": true - }); - }; - function baseShuffle(collection) { - return shuffleSelf(values(collection)); - } - function baseSlice(array, start4, end) { - var index = -1, length = array.length; - if (start4 < 0) { - start4 = -start4 > length ? 0 : length + start4; - } - end = end > length ? length : end; - if (end < 0) { - end += length; - } - length = start4 > end ? 0 : end - start4 >>> 0; - start4 >>>= 0; - var result2 = Array2(length); - while (++index < length) { - result2[index] = array[index + start4]; - } - return result2; - } - function baseSome(collection, predicate) { - var result2; - baseEach(collection, function(value, index, collection2) { - result2 = predicate(value, index, collection2); - return !result2; - }); - return !!result2; - } - function baseSortedIndex(array, value, retHighest) { - var low = 0, high = array == null ? low : array.length; - if (typeof value == "number" && value === value && high <= HALF_MAX_ARRAY_LENGTH) { - while (low < high) { - var mid = low + high >>> 1, computed = array[mid]; - if (computed !== null && !isSymbol(computed) && (retHighest ? computed <= value : computed < value)) { - low = mid + 1; - } else { - high = mid; - } - } - return high; - } - return baseSortedIndexBy(array, value, identity2, retHighest); - } - function baseSortedIndexBy(array, value, iteratee2, retHighest) { - var low = 0, high = array == null ? 0 : array.length; - if (high === 0) { - return 0; - } - value = iteratee2(value); - var valIsNaN = value !== value, valIsNull = value === null, valIsSymbol = isSymbol(value), valIsUndefined = value === undefined2; - while (low < high) { - var mid = nativeFloor((low + high) / 2), computed = iteratee2(array[mid]), othIsDefined = computed !== undefined2, othIsNull = computed === null, othIsReflexive = computed === computed, othIsSymbol = isSymbol(computed); - if (valIsNaN) { - var setLow = retHighest || othIsReflexive; - } else if (valIsUndefined) { - setLow = othIsReflexive && (retHighest || othIsDefined); - } else if (valIsNull) { - setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull); - } else if (valIsSymbol) { - setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol); - } else if (othIsNull || othIsSymbol) { - setLow = false; - } else { - setLow = retHighest ? computed <= value : computed < value; - } - if (setLow) { - low = mid + 1; - } else { - high = mid; - } - } - return nativeMin(high, MAX_ARRAY_INDEX); - } - function baseSortedUniq(array, iteratee2) { - var index = -1, length = array.length, resIndex = 0, result2 = []; - while (++index < length) { - var value = array[index], computed = iteratee2 ? iteratee2(value) : value; - if (!index || !eq(computed, seen)) { - var seen = computed; - result2[resIndex++] = value === 0 ? 0 : value; - } - } - return result2; - } - function baseToNumber(value) { - if (typeof value == "number") { - return value; - } - if (isSymbol(value)) { - return NAN; - } - return +value; - } - function baseToString(value) { - if (typeof value == "string") { - return value; - } - if (isArray2(value)) { - return arrayMap(value, baseToString) + ""; - } - if (isSymbol(value)) { - return symbolToString ? symbolToString.call(value) : ""; - } - var result2 = value + ""; - return result2 == "0" && 1 / value == -INFINITY ? "-0" : result2; - } - function baseUniq(array, iteratee2, comparator) { - var index = -1, includes2 = arrayIncludes, length = array.length, isCommon = true, result2 = [], seen = result2; - if (comparator) { - isCommon = false; - includes2 = arrayIncludesWith; - } else if (length >= LARGE_ARRAY_SIZE) { - var set2 = iteratee2 ? null : createSet(array); - if (set2) { - return setToArray(set2); - } - isCommon = false; - includes2 = cacheHas; - seen = new SetCache(); - } else { - seen = iteratee2 ? [] : result2; - } - outer: - while (++index < length) { - var value = array[index], computed = iteratee2 ? iteratee2(value) : value; - value = comparator || value !== 0 ? value : 0; - if (isCommon && computed === computed) { - var seenIndex = seen.length; - while (seenIndex--) { - if (seen[seenIndex] === computed) { - continue outer; - } - } - if (iteratee2) { - seen.push(computed); - } - result2.push(value); - } else if (!includes2(seen, computed, comparator)) { - if (seen !== result2) { - seen.push(computed); - } - result2.push(value); - } - } - return result2; - } - function baseUnset(object, path20) { - path20 = castPath(path20, object); - object = parent(object, path20); - return object == null || delete object[toKey(last(path20))]; - } - function baseUpdate(object, path20, updater, customizer) { - return baseSet(object, path20, updater(baseGet(object, path20)), customizer); - } - function baseWhile(array, predicate, isDrop, fromRight) { - var length = array.length, index = fromRight ? length : -1; - while ((fromRight ? index-- : ++index < length) && predicate(array[index], index, array)) { - } - return isDrop ? baseSlice(array, fromRight ? 0 : index, fromRight ? index + 1 : length) : baseSlice(array, fromRight ? index + 1 : 0, fromRight ? length : index); - } - function baseWrapperValue(value, actions) { - var result2 = value; - if (result2 instanceof LazyWrapper) { - result2 = result2.value(); - } - return arrayReduce(actions, function(result3, action) { - return action.func.apply(action.thisArg, arrayPush([result3], action.args)); - }, result2); - } - function baseXor(arrays, iteratee2, comparator) { - var length = arrays.length; - if (length < 2) { - return length ? baseUniq(arrays[0]) : []; - } - var index = -1, result2 = Array2(length); - while (++index < length) { - var array = arrays[index], othIndex = -1; - while (++othIndex < length) { - if (othIndex != index) { - result2[index] = baseDifference(result2[index] || array, arrays[othIndex], iteratee2, comparator); - } - } - } - return baseUniq(baseFlatten(result2, 1), iteratee2, comparator); - } - function baseZipObject(props, values2, assignFunc) { - var index = -1, length = props.length, valsLength = values2.length, result2 = {}; - while (++index < length) { - var value = index < valsLength ? values2[index] : undefined2; - assignFunc(result2, props[index], value); - } - return result2; - } - function castArrayLikeObject(value) { - return isArrayLikeObject(value) ? value : []; - } - function castFunction(value) { - return typeof value == "function" ? value : identity2; - } - function castPath(value, object) { - if (isArray2(value)) { - return value; - } - return isKey(value, object) ? [value] : stringToPath(toString4(value)); - } - var castRest = baseRest; - function castSlice(array, start4, end) { - var length = array.length; - end = end === undefined2 ? length : end; - return !start4 && end >= length ? array : baseSlice(array, start4, end); - } - var clearTimeout2 = ctxClearTimeout || function(id) { - return root.clearTimeout(id); - }; - function cloneBuffer(buffer, isDeep) { - if (isDeep) { - return buffer.slice(); - } - var length = buffer.length, result2 = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length); - buffer.copy(result2); - return result2; - } - function cloneArrayBuffer(arrayBuffer) { - var result2 = new arrayBuffer.constructor(arrayBuffer.byteLength); - new Uint8Array2(result2).set(new Uint8Array2(arrayBuffer)); - return result2; - } - function cloneDataView(dataView, isDeep) { - var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer; - return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength); - } - function cloneRegExp(regexp) { - var result2 = new regexp.constructor(regexp.source, reFlags.exec(regexp)); - result2.lastIndex = regexp.lastIndex; - return result2; - } - function cloneSymbol(symbol) { - return symbolValueOf ? Object2(symbolValueOf.call(symbol)) : {}; - } - function cloneTypedArray(typedArray, isDeep) { - var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer; - return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); - } - function compareAscending(value, other) { - if (value !== other) { - var valIsDefined = value !== undefined2, valIsNull = value === null, valIsReflexive = value === value, valIsSymbol = isSymbol(value); - var othIsDefined = other !== undefined2, othIsNull = other === null, othIsReflexive = other === other, othIsSymbol = isSymbol(other); - if (!othIsNull && !othIsSymbol && !valIsSymbol && value > other || valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol || valIsNull && othIsDefined && othIsReflexive || !valIsDefined && othIsReflexive || !valIsReflexive) { - return 1; - } - if (!valIsNull && !valIsSymbol && !othIsSymbol && value < other || othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol || othIsNull && valIsDefined && valIsReflexive || !othIsDefined && valIsReflexive || !othIsReflexive) { - return -1; - } - } - return 0; - } - function compareMultiple(object, other, orders) { - var index = -1, objCriteria = object.criteria, othCriteria = other.criteria, length = objCriteria.length, ordersLength = orders.length; - while (++index < length) { - var result2 = compareAscending(objCriteria[index], othCriteria[index]); - if (result2) { - if (index >= ordersLength) { - return result2; - } - var order = orders[index]; - return result2 * (order == "desc" ? -1 : 1); - } - } - return object.index - other.index; - } - function composeArgs(args3, partials, holders, isCurried) { - var argsIndex = -1, argsLength = args3.length, holdersLength = holders.length, leftIndex = -1, leftLength = partials.length, rangeLength = nativeMax(argsLength - holdersLength, 0), result2 = Array2(leftLength + rangeLength), isUncurried = !isCurried; - while (++leftIndex < leftLength) { - result2[leftIndex] = partials[leftIndex]; - } - while (++argsIndex < holdersLength) { - if (isUncurried || argsIndex < argsLength) { - result2[holders[argsIndex]] = args3[argsIndex]; - } - } - while (rangeLength--) { - result2[leftIndex++] = args3[argsIndex++]; - } - return result2; - } - function composeArgsRight(args3, partials, holders, isCurried) { - var argsIndex = -1, argsLength = args3.length, holdersIndex = -1, holdersLength = holders.length, rightIndex = -1, rightLength = partials.length, rangeLength = nativeMax(argsLength - holdersLength, 0), result2 = Array2(rangeLength + rightLength), isUncurried = !isCurried; - while (++argsIndex < rangeLength) { - result2[argsIndex] = args3[argsIndex]; - } - var offset = argsIndex; - while (++rightIndex < rightLength) { - result2[offset + rightIndex] = partials[rightIndex]; - } - while (++holdersIndex < holdersLength) { - if (isUncurried || argsIndex < argsLength) { - result2[offset + holders[holdersIndex]] = args3[argsIndex++]; - } - } - return result2; - } - function copyArray(source, array) { - var index = -1, length = source.length; - array || (array = Array2(length)); - while (++index < length) { - array[index] = source[index]; - } - return array; - } - function copyObject(source, props, object, customizer) { - var isNew = !object; - object || (object = {}); - var index = -1, length = props.length; - while (++index < length) { - var key = props[index]; - var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined2; - if (newValue === undefined2) { - newValue = source[key]; - } - if (isNew) { - baseAssignValue(object, key, newValue); - } else { - assignValue(object, key, newValue); - } - } - return object; - } - function copySymbols(source, object) { - return copyObject(source, getSymbols(source), object); - } - function copySymbolsIn(source, object) { - return copyObject(source, getSymbolsIn(source), object); - } - function createAggregator(setter, initializer) { - return function(collection, iteratee2) { - var func2 = isArray2(collection) ? arrayAggregator : baseAggregator, accumulator = initializer ? initializer() : {}; - return func2(collection, setter, getIteratee(iteratee2, 2), accumulator); - }; - } - function createAssigner(assigner) { - return baseRest(function(object, sources) { - var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : undefined2, guard = length > 2 ? sources[2] : undefined2; - customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : undefined2; - if (guard && isIterateeCall(sources[0], sources[1], guard)) { - customizer = length < 3 ? undefined2 : customizer; - length = 1; - } - object = Object2(object); - while (++index < length) { - var source = sources[index]; - if (source) { - assigner(object, source, index, customizer); - } - } - return object; - }); - } - function createBaseEach(eachFunc, fromRight) { - return function(collection, iteratee2) { - if (collection == null) { - return collection; - } - if (!isArrayLike(collection)) { - return eachFunc(collection, iteratee2); - } - var length = collection.length, index = fromRight ? length : -1, iterable = Object2(collection); - while (fromRight ? index-- : ++index < length) { - if (iteratee2(iterable[index], index, iterable) === false) { - break; - } - } - return collection; - }; - } - function createBaseFor(fromRight) { - return function(object, iteratee2, keysFunc) { - var index = -1, iterable = Object2(object), props = keysFunc(object), length = props.length; - while (length--) { - var key = props[fromRight ? length : ++index]; - if (iteratee2(iterable[key], key, iterable) === false) { - break; - } - } - return object; - }; - } - function createBind(func2, bitmask, thisArg) { - var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func2); - function wrapper() { - var fn = this && this !== root && this instanceof wrapper ? Ctor : func2; - return fn.apply(isBind ? thisArg : this, arguments); - } - return wrapper; - } - function createCaseFirst(methodName) { - return function(string) { - string = toString4(string); - var strSymbols = hasUnicode(string) ? stringToArray(string) : undefined2; - var chr = strSymbols ? strSymbols[0] : string.charAt(0); - var trailing = strSymbols ? castSlice(strSymbols, 1).join("") : string.slice(1); - return chr[methodName]() + trailing; - }; - } - function createCompounder(callback) { - return function(string) { - return arrayReduce(words(deburr(string).replace(reApos, "")), callback, ""); - }; - } - function createCtor(Ctor) { - return function() { - var args3 = arguments; - switch (args3.length) { - case 0: - return new Ctor(); - case 1: - return new Ctor(args3[0]); - case 2: - return new Ctor(args3[0], args3[1]); - case 3: - return new Ctor(args3[0], args3[1], args3[2]); - case 4: - return new Ctor(args3[0], args3[1], args3[2], args3[3]); - case 5: - return new Ctor(args3[0], args3[1], args3[2], args3[3], args3[4]); - case 6: - return new Ctor(args3[0], args3[1], args3[2], args3[3], args3[4], args3[5]); - case 7: - return new Ctor(args3[0], args3[1], args3[2], args3[3], args3[4], args3[5], args3[6]); - } - var thisBinding = baseCreate(Ctor.prototype), result2 = Ctor.apply(thisBinding, args3); - return isObject3(result2) ? result2 : thisBinding; - }; - } - function createCurry(func2, bitmask, arity2) { - var Ctor = createCtor(func2); - function wrapper() { - var length = arguments.length, args3 = Array2(length), index = length, placeholder = getHolder(wrapper); - while (index--) { - args3[index] = arguments[index]; - } - var holders = length < 3 && args3[0] !== placeholder && args3[length - 1] !== placeholder ? [] : replaceHolders(args3, placeholder); - length -= holders.length; - if (length < arity2) { - return createRecurry( - func2, - bitmask, - createHybrid, - wrapper.placeholder, - undefined2, - args3, - holders, - undefined2, - undefined2, - arity2 - length - ); - } - var fn = this && this !== root && this instanceof wrapper ? Ctor : func2; - return apply(fn, this, args3); - } - return wrapper; - } - function createFind(findIndexFunc) { - return function(collection, predicate, fromIndex) { - var iterable = Object2(collection); - if (!isArrayLike(collection)) { - var iteratee2 = getIteratee(predicate, 3); - collection = keys(collection); - predicate = function(key) { - return iteratee2(iterable[key], key, iterable); - }; - } - var index = findIndexFunc(collection, predicate, fromIndex); - return index > -1 ? iterable[iteratee2 ? collection[index] : index] : undefined2; - }; - } - function createFlow(fromRight) { - return flatRest(function(funcs) { - var length = funcs.length, index = length, prereq = LodashWrapper.prototype.thru; - if (fromRight) { - funcs.reverse(); - } - while (index--) { - var func2 = funcs[index]; - if (typeof func2 != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - if (prereq && !wrapper && getFuncName(func2) == "wrapper") { - var wrapper = new LodashWrapper([], true); - } - } - index = wrapper ? index : length; - while (++index < length) { - func2 = funcs[index]; - var funcName = getFuncName(func2), data = funcName == "wrapper" ? getData(func2) : undefined2; - if (data && isLaziable(data[0]) && data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) && !data[4].length && data[9] == 1) { - wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]); - } else { - wrapper = func2.length == 1 && isLaziable(func2) ? wrapper[funcName]() : wrapper.thru(func2); - } - } - return function() { - var args3 = arguments, value = args3[0]; - if (wrapper && args3.length == 1 && isArray2(value)) { - return wrapper.plant(value).value(); - } - var index2 = 0, result2 = length ? funcs[index2].apply(this, args3) : value; - while (++index2 < length) { - result2 = funcs[index2].call(this, result2); - } - return result2; - }; - }); - } - function createHybrid(func2, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary2, arity2) { - var isAry = bitmask & WRAP_ARY_FLAG, isBind = bitmask & WRAP_BIND_FLAG, isBindKey = bitmask & WRAP_BIND_KEY_FLAG, isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG), isFlip = bitmask & WRAP_FLIP_FLAG, Ctor = isBindKey ? undefined2 : createCtor(func2); - function wrapper() { - var length = arguments.length, args3 = Array2(length), index = length; - while (index--) { - args3[index] = arguments[index]; - } - if (isCurried) { - var placeholder = getHolder(wrapper), holdersCount = countHolders(args3, placeholder); - } - if (partials) { - args3 = composeArgs(args3, partials, holders, isCurried); - } - if (partialsRight) { - args3 = composeArgsRight(args3, partialsRight, holdersRight, isCurried); - } - length -= holdersCount; - if (isCurried && length < arity2) { - var newHolders = replaceHolders(args3, placeholder); - return createRecurry( - func2, - bitmask, - createHybrid, - wrapper.placeholder, - thisArg, - args3, - newHolders, - argPos, - ary2, - arity2 - length - ); - } - var thisBinding = isBind ? thisArg : this, fn = isBindKey ? thisBinding[func2] : func2; - length = args3.length; - if (argPos) { - args3 = reorder(args3, argPos); - } else if (isFlip && length > 1) { - args3.reverse(); - } - if (isAry && ary2 < length) { - args3.length = ary2; - } - if (this && this !== root && this instanceof wrapper) { - fn = Ctor || createCtor(fn); - } - return fn.apply(thisBinding, args3); - } - return wrapper; - } - function createInverter(setter, toIteratee) { - return function(object, iteratee2) { - return baseInverter(object, setter, toIteratee(iteratee2), {}); - }; - } - function createMathOperation(operator, defaultValue) { - return function(value, other) { - var result2; - if (value === undefined2 && other === undefined2) { - return defaultValue; - } - if (value !== undefined2) { - result2 = value; - } - if (other !== undefined2) { - if (result2 === undefined2) { - return other; - } - if (typeof value == "string" || typeof other == "string") { - value = baseToString(value); - other = baseToString(other); - } else { - value = baseToNumber(value); - other = baseToNumber(other); - } - result2 = operator(value, other); - } - return result2; - }; - } - function createOver(arrayFunc) { - return flatRest(function(iteratees) { - iteratees = arrayMap(iteratees, baseUnary(getIteratee())); - return baseRest(function(args3) { - var thisArg = this; - return arrayFunc(iteratees, function(iteratee2) { - return apply(iteratee2, thisArg, args3); - }); - }); - }); - } - function createPadding(length, chars) { - chars = chars === undefined2 ? " " : baseToString(chars); - var charsLength = chars.length; - if (charsLength < 2) { - return charsLength ? baseRepeat(chars, length) : chars; - } - var result2 = baseRepeat(chars, nativeCeil(length / stringSize(chars))); - return hasUnicode(chars) ? castSlice(stringToArray(result2), 0, length).join("") : result2.slice(0, length); - } - function createPartial(func2, bitmask, thisArg, partials) { - var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func2); - function wrapper() { - var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args3 = Array2(leftLength + argsLength), fn = this && this !== root && this instanceof wrapper ? Ctor : func2; - while (++leftIndex < leftLength) { - args3[leftIndex] = partials[leftIndex]; - } - while (argsLength--) { - args3[leftIndex++] = arguments[++argsIndex]; - } - return apply(fn, isBind ? thisArg : this, args3); - } - return wrapper; - } - function createRange(fromRight) { - return function(start4, end, step) { - if (step && typeof step != "number" && isIterateeCall(start4, end, step)) { - end = step = undefined2; - } - start4 = toFinite(start4); - if (end === undefined2) { - end = start4; - start4 = 0; - } else { - end = toFinite(end); - } - step = step === undefined2 ? start4 < end ? 1 : -1 : toFinite(step); - return baseRange(start4, end, step, fromRight); - }; - } - function createRelationalOperation(operator) { - return function(value, other) { - if (!(typeof value == "string" && typeof other == "string")) { - value = toNumber(value); - other = toNumber(other); - } - return operator(value, other); - }; - } - function createRecurry(func2, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary2, arity2) { - var isCurry = bitmask & WRAP_CURRY_FLAG, newHolders = isCurry ? holders : undefined2, newHoldersRight = isCurry ? undefined2 : holders, newPartials = isCurry ? partials : undefined2, newPartialsRight = isCurry ? undefined2 : partials; - bitmask |= isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG; - bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG); - if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) { - bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG); - } - var newData = [ - func2, - bitmask, - thisArg, - newPartials, - newHolders, - newPartialsRight, - newHoldersRight, - argPos, - ary2, - arity2 - ]; - var result2 = wrapFunc.apply(undefined2, newData); - if (isLaziable(func2)) { - setData(result2, newData); - } - result2.placeholder = placeholder; - return setWrapToString(result2, func2, bitmask); - } - function createRound(methodName) { - var func2 = Math2[methodName]; - return function(number, precision) { - number = toNumber(number); - precision = precision == null ? 0 : nativeMin(toInteger(precision), 292); - if (precision && nativeIsFinite(number)) { - var pair = (toString4(number) + "e").split("e"), value = func2(pair[0] + "e" + (+pair[1] + precision)); - pair = (toString4(value) + "e").split("e"); - return +(pair[0] + "e" + (+pair[1] - precision)); - } - return func2(number); - }; - } - var createSet = !(Set2 && 1 / setToArray(new Set2([, -0]))[1] == INFINITY) ? noop2 : function(values2) { - return new Set2(values2); - }; - function createToPairs(keysFunc) { - return function(object) { - var tag = getTag(object); - if (tag == mapTag) { - return mapToArray(object); - } - if (tag == setTag) { - return setToPairs(object); - } - return baseToPairs(object, keysFunc(object)); - }; - } - function createWrap(func2, bitmask, thisArg, partials, holders, argPos, ary2, arity2) { - var isBindKey = bitmask & WRAP_BIND_KEY_FLAG; - if (!isBindKey && typeof func2 != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - var length = partials ? partials.length : 0; - if (!length) { - bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG); - partials = holders = undefined2; - } - ary2 = ary2 === undefined2 ? ary2 : nativeMax(toInteger(ary2), 0); - arity2 = arity2 === undefined2 ? arity2 : toInteger(arity2); - length -= holders ? holders.length : 0; - if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) { - var partialsRight = partials, holdersRight = holders; - partials = holders = undefined2; - } - var data = isBindKey ? undefined2 : getData(func2); - var newData = [ - func2, - bitmask, - thisArg, - partials, - holders, - partialsRight, - holdersRight, - argPos, - ary2, - arity2 - ]; - if (data) { - mergeData(newData, data); - } - func2 = newData[0]; - bitmask = newData[1]; - thisArg = newData[2]; - partials = newData[3]; - holders = newData[4]; - arity2 = newData[9] = newData[9] === undefined2 ? isBindKey ? 0 : func2.length : nativeMax(newData[9] - length, 0); - if (!arity2 && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) { - bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG); - } - if (!bitmask || bitmask == WRAP_BIND_FLAG) { - var result2 = createBind(func2, bitmask, thisArg); - } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) { - result2 = createCurry(func2, bitmask, arity2); - } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) { - result2 = createPartial(func2, bitmask, thisArg, partials); - } else { - result2 = createHybrid.apply(undefined2, newData); - } - var setter = data ? baseSetData : setData; - return setWrapToString(setter(result2, newData), func2, bitmask); - } - function customDefaultsAssignIn(objValue, srcValue, key, object) { - if (objValue === undefined2 || eq(objValue, objectProto[key]) && !hasOwnProperty2.call(object, key)) { - return srcValue; - } - return objValue; - } - function customDefaultsMerge(objValue, srcValue, key, object, source, stack) { - if (isObject3(objValue) && isObject3(srcValue)) { - stack.set(srcValue, objValue); - baseMerge(objValue, srcValue, undefined2, customDefaultsMerge, stack); - stack["delete"](srcValue); - } - return objValue; - } - function customOmitClone(value) { - return isPlainObject2(value) ? undefined2 : value; - } - function equalArrays(array, other, bitmask, customizer, equalFunc, stack) { - var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length; - if (arrLength != othLength && !(isPartial && othLength > arrLength)) { - return false; - } - var arrStacked = stack.get(array); - var othStacked = stack.get(other); - if (arrStacked && othStacked) { - return arrStacked == other && othStacked == array; - } - var index = -1, result2 = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : undefined2; - stack.set(array, other); - stack.set(other, array); - while (++index < arrLength) { - var arrValue = array[index], othValue = other[index]; - if (customizer) { - var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack); - } - if (compared !== undefined2) { - if (compared) { - continue; - } - result2 = false; - break; - } - if (seen) { - if (!arraySome(other, function(othValue2, othIndex) { - if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) { - return seen.push(othIndex); - } - })) { - result2 = false; - break; - } - } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) { - result2 = false; - break; - } - } - stack["delete"](array); - stack["delete"](other); - return result2; - } - function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) { - switch (tag) { - case dataViewTag: - if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) { - return false; - } - object = object.buffer; - other = other.buffer; - case arrayBufferTag: - if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object), new Uint8Array2(other))) { - return false; - } - return true; - case boolTag: - case dateTag: - case numberTag: - return eq(+object, +other); - case errorTag: - return object.name == other.name && object.message == other.message; - case regexpTag: - case stringTag: - return object == other + ""; - case mapTag: - var convert = mapToArray; - case setTag: - var isPartial = bitmask & COMPARE_PARTIAL_FLAG; - convert || (convert = setToArray); - if (object.size != other.size && !isPartial) { - return false; - } - var stacked = stack.get(object); - if (stacked) { - return stacked == other; - } - bitmask |= COMPARE_UNORDERED_FLAG; - stack.set(object, other); - var result2 = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack); - stack["delete"](object); - return result2; - case symbolTag: - if (symbolValueOf) { - return symbolValueOf.call(object) == symbolValueOf.call(other); - } - } - return false; - } - function equalObjects(object, other, bitmask, customizer, equalFunc, stack) { - var isPartial = bitmask & COMPARE_PARTIAL_FLAG, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length; - if (objLength != othLength && !isPartial) { - return false; - } - var index = objLength; - while (index--) { - var key = objProps[index]; - if (!(isPartial ? key in other : hasOwnProperty2.call(other, key))) { - return false; - } - } - var objStacked = stack.get(object); - var othStacked = stack.get(other); - if (objStacked && othStacked) { - return objStacked == other && othStacked == object; - } - var result2 = true; - stack.set(object, other); - stack.set(other, object); - var skipCtor = isPartial; - while (++index < objLength) { - key = objProps[index]; - var objValue = object[key], othValue = other[key]; - if (customizer) { - var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack); - } - if (!(compared === undefined2 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) { - result2 = false; - break; - } - skipCtor || (skipCtor = key == "constructor"); - } - if (result2 && !skipCtor) { - var objCtor = object.constructor, othCtor = other.constructor; - if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) { - result2 = false; - } - } - stack["delete"](object); - stack["delete"](other); - return result2; - } - function flatRest(func2) { - return setToString(overRest(func2, undefined2, flatten), func2 + ""); - } - function getAllKeys(object) { - return baseGetAllKeys(object, keys, getSymbols); - } - function getAllKeysIn(object) { - return baseGetAllKeys(object, keysIn, getSymbolsIn); - } - var getData = !metaMap ? noop2 : function(func2) { - return metaMap.get(func2); - }; - function getFuncName(func2) { - var result2 = func2.name + "", array = realNames[result2], length = hasOwnProperty2.call(realNames, result2) ? array.length : 0; - while (length--) { - var data = array[length], otherFunc = data.func; - if (otherFunc == null || otherFunc == func2) { - return data.name; - } - } - return result2; - } - function getHolder(func2) { - var object = hasOwnProperty2.call(lodash, "placeholder") ? lodash : func2; - return object.placeholder; - } - function getIteratee() { - var result2 = lodash.iteratee || iteratee; - result2 = result2 === iteratee ? baseIteratee : result2; - return arguments.length ? result2(arguments[0], arguments[1]) : result2; - } - function getMapData(map2, key) { - var data = map2.__data__; - return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map; - } - function getMatchData(object) { - var result2 = keys(object), length = result2.length; - while (length--) { - var key = result2[length], value = object[key]; - result2[length] = [key, value, isStrictComparable(value)]; - } - return result2; - } - function getNative(object, key) { - var value = getValue2(object, key); - return baseIsNative(value) ? value : undefined2; - } - function getRawTag(value) { - var isOwn = hasOwnProperty2.call(value, symToStringTag), tag = value[symToStringTag]; - try { - value[symToStringTag] = undefined2; - var unmasked = true; - } catch (e) { - } - var result2 = nativeObjectToString.call(value); - if (unmasked) { - if (isOwn) { - value[symToStringTag] = tag; - } else { - delete value[symToStringTag]; - } - } - return result2; - } - var getSymbols = !nativeGetSymbols ? stubArray : function(object) { - if (object == null) { - return []; - } - object = Object2(object); - return arrayFilter(nativeGetSymbols(object), function(symbol) { - return propertyIsEnumerable.call(object, symbol); - }); - }; - var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) { - var result2 = []; - while (object) { - arrayPush(result2, getSymbols(object)); - object = getPrototype(object); - } - return result2; - }; - var getTag = baseGetTag; - if (DataView2 && getTag(new DataView2(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap2 && getTag(new WeakMap2()) != weakMapTag) { - getTag = function(value) { - var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined2, ctorString = Ctor ? toSource(Ctor) : ""; - if (ctorString) { - switch (ctorString) { - case dataViewCtorString: - return dataViewTag; - case mapCtorString: - return mapTag; - case promiseCtorString: - return promiseTag; - case setCtorString: - return setTag; - case weakMapCtorString: - return weakMapTag; - } - } - return result2; - }; - } - function getView(start4, end, transforms) { - var index = -1, length = transforms.length; - while (++index < length) { - var data = transforms[index], size2 = data.size; - switch (data.type) { - case "drop": - start4 += size2; - break; - case "dropRight": - end -= size2; - break; - case "take": - end = nativeMin(end, start4 + size2); - break; - case "takeRight": - start4 = nativeMax(start4, end - size2); - break; - } - } - return { "start": start4, "end": end }; - } - function getWrapDetails(source) { - var match2 = source.match(reWrapDetails); - return match2 ? match2[1].split(reSplitDetails) : []; - } - function hasPath(object, path20, hasFunc) { - path20 = castPath(path20, object); - var index = -1, length = path20.length, result2 = false; - while (++index < length) { - var key = toKey(path20[index]); - if (!(result2 = object != null && hasFunc(object, key))) { - break; - } - object = object[key]; - } - if (result2 || ++index != length) { - return result2; - } - length = object == null ? 0 : object.length; - return !!length && isLength(length) && isIndex(key, length) && (isArray2(object) || isArguments(object)); - } - function initCloneArray(array) { - var length = array.length, result2 = new array.constructor(length); - if (length && typeof array[0] == "string" && hasOwnProperty2.call(array, "index")) { - result2.index = array.index; - result2.input = array.input; - } - return result2; - } - function initCloneObject(object) { - return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {}; - } - function initCloneByTag(object, tag, isDeep) { - var Ctor = object.constructor; - switch (tag) { - case arrayBufferTag: - return cloneArrayBuffer(object); - case boolTag: - case dateTag: - return new Ctor(+object); - case dataViewTag: - return cloneDataView(object, isDeep); - case float32Tag: - case float64Tag: - case int8Tag: - case int16Tag: - case int32Tag: - case uint8Tag: - case uint8ClampedTag: - case uint16Tag: - case uint32Tag: - return cloneTypedArray(object, isDeep); - case mapTag: - return new Ctor(); - case numberTag: - case stringTag: - return new Ctor(object); - case regexpTag: - return cloneRegExp(object); - case setTag: - return new Ctor(); - case symbolTag: - return cloneSymbol(object); - } - } - function insertWrapDetails(source, details) { - var length = details.length; - if (!length) { - return source; - } - var lastIndex = length - 1; - details[lastIndex] = (length > 1 ? "& " : "") + details[lastIndex]; - details = details.join(length > 2 ? ", " : " "); - return source.replace(reWrapComment, "{\n/* [wrapped with " + details + "] */\n"); - } - function isFlattenable(value) { - return isArray2(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]); - } - function isIndex(value, length) { - var type = typeof value; - length = length == null ? MAX_SAFE_INTEGER : length; - return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length); - } - function isIterateeCall(value, index, object) { - if (!isObject3(object)) { - return false; - } - var type = typeof index; - if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) { - return eq(object[index], value); - } - return false; - } - function isKey(value, object) { - if (isArray2(value)) { - return false; - } - var type = typeof value; - if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol(value)) { - return true; - } - return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object2(object); - } - function isKeyable(value) { - var type = typeof value; - return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null; - } - function isLaziable(func2) { - var funcName = getFuncName(func2), other = lodash[funcName]; - if (typeof other != "function" || !(funcName in LazyWrapper.prototype)) { - return false; - } - if (func2 === other) { - return true; - } - var data = getData(other); - return !!data && func2 === data[0]; - } - function isMasked(func2) { - return !!maskSrcKey && maskSrcKey in func2; - } - var isMaskable = coreJsData ? isFunction2 : stubFalse; - function isPrototype(value) { - var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto; - return value === proto; - } - function isStrictComparable(value) { - return value === value && !isObject3(value); - } - function matchesStrictComparable(key, srcValue) { - return function(object) { - if (object == null) { - return false; - } - return object[key] === srcValue && (srcValue !== undefined2 || key in Object2(object)); - }; - } - function memoizeCapped(func2) { - var result2 = memoize(func2, function(key) { - if (cache.size === MAX_MEMOIZE_SIZE) { - cache.clear(); - } - return key; - }); - var cache = result2.cache; - return result2; - } - function mergeData(data, source) { - var bitmask = data[1], srcBitmask = source[1], newBitmask = bitmask | srcBitmask, isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG); - var isCombo = srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_CURRY_FLAG || srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_REARG_FLAG && data[7].length <= source[8] || srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG) && source[7].length <= source[8] && bitmask == WRAP_CURRY_FLAG; - if (!(isCommon || isCombo)) { - return data; - } - if (srcBitmask & WRAP_BIND_FLAG) { - data[2] = source[2]; - newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG; - } - var value = source[3]; - if (value) { - var partials = data[3]; - data[3] = partials ? composeArgs(partials, value, source[4]) : value; - data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4]; - } - value = source[5]; - if (value) { - partials = data[5]; - data[5] = partials ? composeArgsRight(partials, value, source[6]) : value; - data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6]; - } - value = source[7]; - if (value) { - data[7] = value; - } - if (srcBitmask & WRAP_ARY_FLAG) { - data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]); - } - if (data[9] == null) { - data[9] = source[9]; - } - data[0] = source[0]; - data[1] = newBitmask; - return data; - } - function nativeKeysIn(object) { - var result2 = []; - if (object != null) { - for (var key in Object2(object)) { - result2.push(key); - } - } - return result2; - } - function objectToString(value) { - return nativeObjectToString.call(value); - } - function overRest(func2, start4, transform2) { - start4 = nativeMax(start4 === undefined2 ? func2.length - 1 : start4, 0); - return function() { - var args3 = arguments, index = -1, length = nativeMax(args3.length - start4, 0), array = Array2(length); - while (++index < length) { - array[index] = args3[start4 + index]; - } - index = -1; - var otherArgs = Array2(start4 + 1); - while (++index < start4) { - otherArgs[index] = args3[index]; - } - otherArgs[start4] = transform2(array); - return apply(func2, this, otherArgs); - }; - } - function parent(object, path20) { - return path20.length < 2 ? object : baseGet(object, baseSlice(path20, 0, -1)); - } - function reorder(array, indexes) { - var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray(array); - while (length--) { - var index = indexes[length]; - array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined2; - } - return array; - } - function safeGet(object, key) { - if (key === "constructor" && typeof object[key] === "function") { - return; - } - if (key == "__proto__") { - return; - } - return object[key]; - } - var setData = shortOut(baseSetData); - var setTimeout2 = ctxSetTimeout || function(func2, wait) { - return root.setTimeout(func2, wait); - }; - var setToString = shortOut(baseSetToString); - function setWrapToString(wrapper, reference, bitmask) { - var source = reference + ""; - return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask))); - } - function shortOut(func2) { - var count = 0, lastCalled = 0; - return function() { - var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled); - lastCalled = stamp; - if (remaining > 0) { - if (++count >= HOT_COUNT) { - return arguments[0]; - } - } else { - count = 0; - } - return func2.apply(undefined2, arguments); - }; - } - function shuffleSelf(array, size2) { - var index = -1, length = array.length, lastIndex = length - 1; - size2 = size2 === undefined2 ? length : size2; - while (++index < size2) { - var rand = baseRandom(index, lastIndex), value = array[rand]; - array[rand] = array[index]; - array[index] = value; - } - array.length = size2; - return array; - } - var stringToPath = memoizeCapped(function(string) { - var result2 = []; - if (string.charCodeAt(0) === 46) { - result2.push(""); - } - string.replace(rePropName, function(match2, number, quote, subString) { - result2.push(quote ? subString.replace(reEscapeChar, "$1") : number || match2); - }); - return result2; - }); - function toKey(value) { - if (typeof value == "string" || isSymbol(value)) { - return value; - } - var result2 = value + ""; - return result2 == "0" && 1 / value == -INFINITY ? "-0" : result2; - } - function toSource(func2) { - if (func2 != null) { - try { - return funcToString.call(func2); - } catch (e) { - } - try { - return func2 + ""; - } catch (e) { - } - } - return ""; - } - function updateWrapDetails(details, bitmask) { - arrayEach(wrapFlags, function(pair) { - var value = "_." + pair[0]; - if (bitmask & pair[1] && !arrayIncludes(details, value)) { - details.push(value); - } - }); - return details.sort(); - } - function wrapperClone(wrapper) { - if (wrapper instanceof LazyWrapper) { - return wrapper.clone(); - } - var result2 = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__); - result2.__actions__ = copyArray(wrapper.__actions__); - result2.__index__ = wrapper.__index__; - result2.__values__ = wrapper.__values__; - return result2; - } - function chunk(array, size2, guard) { - if (guard ? isIterateeCall(array, size2, guard) : size2 === undefined2) { - size2 = 1; - } else { - size2 = nativeMax(toInteger(size2), 0); - } - var length = array == null ? 0 : array.length; - if (!length || size2 < 1) { - return []; - } - var index = 0, resIndex = 0, result2 = Array2(nativeCeil(length / size2)); - while (index < length) { - result2[resIndex++] = baseSlice(array, index, index += size2); - } - return result2; - } - function compact(array) { - var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result2 = []; - while (++index < length) { - var value = array[index]; - if (value) { - result2[resIndex++] = value; - } - } - return result2; - } - function concat() { - var length = arguments.length; - if (!length) { - return []; - } - var args3 = Array2(length - 1), array = arguments[0], index = length; - while (index--) { - args3[index - 1] = arguments[index]; - } - return arrayPush(isArray2(array) ? copyArray(array) : [array], baseFlatten(args3, 1)); - } - var difference = baseRest(function(array, values2) { - return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values2, 1, isArrayLikeObject, true)) : []; - }); - var differenceBy = baseRest(function(array, values2) { - var iteratee2 = last(values2); - if (isArrayLikeObject(iteratee2)) { - iteratee2 = undefined2; - } - return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values2, 1, isArrayLikeObject, true), getIteratee(iteratee2, 2)) : []; - }); - var differenceWith = baseRest(function(array, values2) { - var comparator = last(values2); - if (isArrayLikeObject(comparator)) { - comparator = undefined2; - } - return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values2, 1, isArrayLikeObject, true), undefined2, comparator) : []; - }); - function drop(array, n, guard) { - var length = array == null ? 0 : array.length; - if (!length) { - return []; - } - n = guard || n === undefined2 ? 1 : toInteger(n); - return baseSlice(array, n < 0 ? 0 : n, length); - } - function dropRight(array, n, guard) { - var length = array == null ? 0 : array.length; - if (!length) { - return []; - } - n = guard || n === undefined2 ? 1 : toInteger(n); - n = length - n; - return baseSlice(array, 0, n < 0 ? 0 : n); - } - function dropRightWhile(array, predicate) { - return array && array.length ? baseWhile(array, getIteratee(predicate, 3), true, true) : []; - } - function dropWhile(array, predicate) { - return array && array.length ? baseWhile(array, getIteratee(predicate, 3), true) : []; - } - function fill(array, value, start4, end) { - var length = array == null ? 0 : array.length; - if (!length) { - return []; - } - if (start4 && typeof start4 != "number" && isIterateeCall(array, value, start4)) { - start4 = 0; - end = length; - } - return baseFill(array, value, start4, end); - } - function findIndex(array, predicate, fromIndex) { - var length = array == null ? 0 : array.length; - if (!length) { - return -1; - } - var index = fromIndex == null ? 0 : toInteger(fromIndex); - if (index < 0) { - index = nativeMax(length + index, 0); - } - return baseFindIndex(array, getIteratee(predicate, 3), index); - } - function findLastIndex(array, predicate, fromIndex) { - var length = array == null ? 0 : array.length; - if (!length) { - return -1; - } - var index = length - 1; - if (fromIndex !== undefined2) { - index = toInteger(fromIndex); - index = fromIndex < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1); - } - return baseFindIndex(array, getIteratee(predicate, 3), index, true); - } - function flatten(array) { - var length = array == null ? 0 : array.length; - return length ? baseFlatten(array, 1) : []; - } - function flattenDeep(array) { - var length = array == null ? 0 : array.length; - return length ? baseFlatten(array, INFINITY) : []; - } - function flattenDepth(array, depth) { - var length = array == null ? 0 : array.length; - if (!length) { - return []; - } - depth = depth === undefined2 ? 1 : toInteger(depth); - return baseFlatten(array, depth); - } - function fromPairs(pairs) { - var index = -1, length = pairs == null ? 0 : pairs.length, result2 = {}; - while (++index < length) { - var pair = pairs[index]; - result2[pair[0]] = pair[1]; - } - return result2; - } - function head(array) { - return array && array.length ? array[0] : undefined2; - } - function indexOf(array, value, fromIndex) { - var length = array == null ? 0 : array.length; - if (!length) { - return -1; - } - var index = fromIndex == null ? 0 : toInteger(fromIndex); - if (index < 0) { - index = nativeMax(length + index, 0); - } - return baseIndexOf(array, value, index); - } - function initial(array) { - var length = array == null ? 0 : array.length; - return length ? baseSlice(array, 0, -1) : []; - } - var intersection = baseRest(function(arrays) { - var mapped = arrayMap(arrays, castArrayLikeObject); - return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped) : []; - }); - var intersectionBy = baseRest(function(arrays) { - var iteratee2 = last(arrays), mapped = arrayMap(arrays, castArrayLikeObject); - if (iteratee2 === last(mapped)) { - iteratee2 = undefined2; - } else { - mapped.pop(); - } - return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped, getIteratee(iteratee2, 2)) : []; - }); - var intersectionWith = baseRest(function(arrays) { - var comparator = last(arrays), mapped = arrayMap(arrays, castArrayLikeObject); - comparator = typeof comparator == "function" ? comparator : undefined2; - if (comparator) { - mapped.pop(); - } - return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped, undefined2, comparator) : []; - }); - function join6(array, separator) { - return array == null ? "" : nativeJoin.call(array, separator); - } - function last(array) { - var length = array == null ? 0 : array.length; - return length ? array[length - 1] : undefined2; - } - function lastIndexOf(array, value, fromIndex) { - var length = array == null ? 0 : array.length; - if (!length) { - return -1; - } - var index = length; - if (fromIndex !== undefined2) { - index = toInteger(fromIndex); - index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1); - } - return value === value ? strictLastIndexOf(array, value, index) : baseFindIndex(array, baseIsNaN, index, true); - } - function nth(array, n) { - return array && array.length ? baseNth(array, toInteger(n)) : undefined2; - } - var pull = baseRest(pullAll); - function pullAll(array, values2) { - return array && array.length && values2 && values2.length ? basePullAll(array, values2) : array; - } - function pullAllBy(array, values2, iteratee2) { - return array && array.length && values2 && values2.length ? basePullAll(array, values2, getIteratee(iteratee2, 2)) : array; - } - function pullAllWith(array, values2, comparator) { - return array && array.length && values2 && values2.length ? basePullAll(array, values2, undefined2, comparator) : array; - } - var pullAt = flatRest(function(array, indexes) { - var length = array == null ? 0 : array.length, result2 = baseAt(array, indexes); - basePullAt(array, arrayMap(indexes, function(index) { - return isIndex(index, length) ? +index : index; - }).sort(compareAscending)); - return result2; - }); - function remove(array, predicate) { - var result2 = []; - if (!(array && array.length)) { - return result2; - } - var index = -1, indexes = [], length = array.length; - predicate = getIteratee(predicate, 3); - while (++index < length) { - var value = array[index]; - if (predicate(value, index, array)) { - result2.push(value); - indexes.push(index); - } - } - basePullAt(array, indexes); - return result2; - } - function reverse(array) { - return array == null ? array : nativeReverse.call(array); - } - function slice(array, start4, end) { - var length = array == null ? 0 : array.length; - if (!length) { - return []; - } - if (end && typeof end != "number" && isIterateeCall(array, start4, end)) { - start4 = 0; - end = length; - } else { - start4 = start4 == null ? 0 : toInteger(start4); - end = end === undefined2 ? length : toInteger(end); - } - return baseSlice(array, start4, end); - } - function sortedIndex(array, value) { - return baseSortedIndex(array, value); - } - function sortedIndexBy(array, value, iteratee2) { - return baseSortedIndexBy(array, value, getIteratee(iteratee2, 2)); - } - function sortedIndexOf(array, value) { - var length = array == null ? 0 : array.length; - if (length) { - var index = baseSortedIndex(array, value); - if (index < length && eq(array[index], value)) { - return index; - } - } - return -1; - } - function sortedLastIndex(array, value) { - return baseSortedIndex(array, value, true); - } - function sortedLastIndexBy(array, value, iteratee2) { - return baseSortedIndexBy(array, value, getIteratee(iteratee2, 2), true); - } - function sortedLastIndexOf(array, value) { - var length = array == null ? 0 : array.length; - if (length) { - var index = baseSortedIndex(array, value, true) - 1; - if (eq(array[index], value)) { - return index; - } - } - return -1; - } - function sortedUniq(array) { - return array && array.length ? baseSortedUniq(array) : []; - } - function sortedUniqBy(array, iteratee2) { - return array && array.length ? baseSortedUniq(array, getIteratee(iteratee2, 2)) : []; - } - function tail(array) { - var length = array == null ? 0 : array.length; - return length ? baseSlice(array, 1, length) : []; - } - function take(array, n, guard) { - if (!(array && array.length)) { - return []; - } - n = guard || n === undefined2 ? 1 : toInteger(n); - return baseSlice(array, 0, n < 0 ? 0 : n); - } - function takeRight(array, n, guard) { - var length = array == null ? 0 : array.length; - if (!length) { - return []; - } - n = guard || n === undefined2 ? 1 : toInteger(n); - n = length - n; - return baseSlice(array, n < 0 ? 0 : n, length); - } - function takeRightWhile(array, predicate) { - return array && array.length ? baseWhile(array, getIteratee(predicate, 3), false, true) : []; - } - function takeWhile(array, predicate) { - return array && array.length ? baseWhile(array, getIteratee(predicate, 3)) : []; - } - var union = baseRest(function(arrays) { - return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true)); - }); - var unionBy = baseRest(function(arrays) { - var iteratee2 = last(arrays); - if (isArrayLikeObject(iteratee2)) { - iteratee2 = undefined2; - } - return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee2, 2)); - }); - var unionWith = baseRest(function(arrays) { - var comparator = last(arrays); - comparator = typeof comparator == "function" ? comparator : undefined2; - return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined2, comparator); - }); - function uniq(array) { - return array && array.length ? baseUniq(array) : []; - } - function uniqBy(array, iteratee2) { - return array && array.length ? baseUniq(array, getIteratee(iteratee2, 2)) : []; - } - function uniqWith(array, comparator) { - comparator = typeof comparator == "function" ? comparator : undefined2; - return array && array.length ? baseUniq(array, undefined2, comparator) : []; - } - function unzip(array) { - if (!(array && array.length)) { - return []; - } - var length = 0; - array = arrayFilter(array, function(group) { - if (isArrayLikeObject(group)) { - length = nativeMax(group.length, length); - return true; - } - }); - return baseTimes(length, function(index) { - return arrayMap(array, baseProperty(index)); - }); - } - function unzipWith(array, iteratee2) { - if (!(array && array.length)) { - return []; - } - var result2 = unzip(array); - if (iteratee2 == null) { - return result2; - } - return arrayMap(result2, function(group) { - return apply(iteratee2, undefined2, group); - }); - } - var without = baseRest(function(array, values2) { - return isArrayLikeObject(array) ? baseDifference(array, values2) : []; - }); - var xor = baseRest(function(arrays) { - return baseXor(arrayFilter(arrays, isArrayLikeObject)); - }); - var xorBy = baseRest(function(arrays) { - var iteratee2 = last(arrays); - if (isArrayLikeObject(iteratee2)) { - iteratee2 = undefined2; - } - return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee2, 2)); - }); - var xorWith = baseRest(function(arrays) { - var comparator = last(arrays); - comparator = typeof comparator == "function" ? comparator : undefined2; - return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined2, comparator); - }); - var zip = baseRest(unzip); - function zipObject(props, values2) { - return baseZipObject(props || [], values2 || [], assignValue); - } - function zipObjectDeep(props, values2) { - return baseZipObject(props || [], values2 || [], baseSet); - } - var zipWith = baseRest(function(arrays) { - var length = arrays.length, iteratee2 = length > 1 ? arrays[length - 1] : undefined2; - iteratee2 = typeof iteratee2 == "function" ? (arrays.pop(), iteratee2) : undefined2; - return unzipWith(arrays, iteratee2); - }); - function chain(value) { - var result2 = lodash(value); - result2.__chain__ = true; - return result2; - } - function tap(value, interceptor) { - interceptor(value); - return value; - } - function thru(value, interceptor) { - return interceptor(value); - } - var wrapperAt = flatRest(function(paths) { - var length = paths.length, start4 = length ? paths[0] : 0, value = this.__wrapped__, interceptor = function(object) { - return baseAt(object, paths); - }; - if (length > 1 || this.__actions__.length || !(value instanceof LazyWrapper) || !isIndex(start4)) { - return this.thru(interceptor); - } - value = value.slice(start4, +start4 + (length ? 1 : 0)); - value.__actions__.push({ - "func": thru, - "args": [interceptor], - "thisArg": undefined2 - }); - return new LodashWrapper(value, this.__chain__).thru(function(array) { - if (length && !array.length) { - array.push(undefined2); - } - return array; - }); - }); - function wrapperChain() { - return chain(this); - } - function wrapperCommit() { - return new LodashWrapper(this.value(), this.__chain__); - } - function wrapperNext() { - if (this.__values__ === undefined2) { - this.__values__ = toArray2(this.value()); - } - var done = this.__index__ >= this.__values__.length, value = done ? undefined2 : this.__values__[this.__index__++]; - return { "done": done, "value": value }; - } - function wrapperToIterator() { - return this; - } - function wrapperPlant(value) { - var result2, parent2 = this; - while (parent2 instanceof baseLodash) { - var clone2 = wrapperClone(parent2); - clone2.__index__ = 0; - clone2.__values__ = undefined2; - if (result2) { - previous.__wrapped__ = clone2; - } else { - result2 = clone2; - } - var previous = clone2; - parent2 = parent2.__wrapped__; - } - previous.__wrapped__ = value; - return result2; - } - function wrapperReverse() { - var value = this.__wrapped__; - if (value instanceof LazyWrapper) { - var wrapped = value; - if (this.__actions__.length) { - wrapped = new LazyWrapper(this); - } - wrapped = wrapped.reverse(); - wrapped.__actions__.push({ - "func": thru, - "args": [reverse], - "thisArg": undefined2 - }); - return new LodashWrapper(wrapped, this.__chain__); - } - return this.thru(reverse); - } - function wrapperValue() { - return baseWrapperValue(this.__wrapped__, this.__actions__); - } - var countBy = createAggregator(function(result2, value, key) { - if (hasOwnProperty2.call(result2, key)) { - ++result2[key]; - } else { - baseAssignValue(result2, key, 1); - } - }); - function every(collection, predicate, guard) { - var func2 = isArray2(collection) ? arrayEvery : baseEvery; - if (guard && isIterateeCall(collection, predicate, guard)) { - predicate = undefined2; - } - return func2(collection, getIteratee(predicate, 3)); - } - function filter3(collection, predicate) { - var func2 = isArray2(collection) ? arrayFilter : baseFilter; - return func2(collection, getIteratee(predicate, 3)); - } - var find = createFind(findIndex); - var findLast4 = createFind(findLastIndex); - function flatMap(collection, iteratee2) { - return baseFlatten(map(collection, iteratee2), 1); - } - function flatMapDeep(collection, iteratee2) { - return baseFlatten(map(collection, iteratee2), INFINITY); - } - function flatMapDepth(collection, iteratee2, depth) { - depth = depth === undefined2 ? 1 : toInteger(depth); - return baseFlatten(map(collection, iteratee2), depth); - } - function forEach2(collection, iteratee2) { - var func2 = isArray2(collection) ? arrayEach : baseEach; - return func2(collection, getIteratee(iteratee2, 3)); - } - function forEachRight(collection, iteratee2) { - var func2 = isArray2(collection) ? arrayEachRight : baseEachRight; - return func2(collection, getIteratee(iteratee2, 3)); - } - var groupBy = createAggregator(function(result2, value, key) { - if (hasOwnProperty2.call(result2, key)) { - result2[key].push(value); - } else { - baseAssignValue(result2, key, [value]); - } - }); - function includes(collection, value, fromIndex, guard) { - collection = isArrayLike(collection) ? collection : values(collection); - fromIndex = fromIndex && !guard ? toInteger(fromIndex) : 0; - var length = collection.length; - if (fromIndex < 0) { - fromIndex = nativeMax(length + fromIndex, 0); - } - return isString2(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1; - } - var invokeMap = baseRest(function(collection, path20, args3) { - var index = -1, isFunc = typeof path20 == "function", result2 = isArrayLike(collection) ? Array2(collection.length) : []; - baseEach(collection, function(value) { - result2[++index] = isFunc ? apply(path20, value, args3) : baseInvoke(value, path20, args3); - }); - return result2; - }); - var keyBy = createAggregator(function(result2, value, key) { - baseAssignValue(result2, key, value); - }); - function map(collection, iteratee2) { - var func2 = isArray2(collection) ? arrayMap : baseMap; - return func2(collection, getIteratee(iteratee2, 3)); - } - function orderBy(collection, iteratees, orders, guard) { - if (collection == null) { - return []; - } - if (!isArray2(iteratees)) { - iteratees = iteratees == null ? [] : [iteratees]; - } - orders = guard ? undefined2 : orders; - if (!isArray2(orders)) { - orders = orders == null ? [] : [orders]; - } - return baseOrderBy(collection, iteratees, orders); - } - var partition2 = createAggregator(function(result2, value, key) { - result2[key ? 0 : 1].push(value); - }, function() { - return [[], []]; - }); - function reduce(collection, iteratee2, accumulator) { - var func2 = isArray2(collection) ? arrayReduce : baseReduce, initAccum = arguments.length < 3; - return func2(collection, getIteratee(iteratee2, 4), accumulator, initAccum, baseEach); - } - function reduceRight(collection, iteratee2, accumulator) { - var func2 = isArray2(collection) ? arrayReduceRight : baseReduce, initAccum = arguments.length < 3; - return func2(collection, getIteratee(iteratee2, 4), accumulator, initAccum, baseEachRight); - } - function reject(collection, predicate) { - var func2 = isArray2(collection) ? arrayFilter : baseFilter; - return func2(collection, negate(getIteratee(predicate, 3))); - } - function sample(collection) { - var func2 = isArray2(collection) ? arraySample : baseSample; - return func2(collection); - } - function sampleSize(collection, n, guard) { - if (guard ? isIterateeCall(collection, n, guard) : n === undefined2) { - n = 1; - } else { - n = toInteger(n); - } - var func2 = isArray2(collection) ? arraySampleSize : baseSampleSize; - return func2(collection, n); - } - function shuffle(collection) { - var func2 = isArray2(collection) ? arrayShuffle : baseShuffle; - return func2(collection); - } - function size(collection) { - if (collection == null) { - return 0; - } - if (isArrayLike(collection)) { - return isString2(collection) ? stringSize(collection) : collection.length; - } - var tag = getTag(collection); - if (tag == mapTag || tag == setTag) { - return collection.size; - } - return baseKeys(collection).length; - } - function some(collection, predicate, guard) { - var func2 = isArray2(collection) ? arraySome : baseSome; - if (guard && isIterateeCall(collection, predicate, guard)) { - predicate = undefined2; - } - return func2(collection, getIteratee(predicate, 3)); - } - var sortBy = baseRest(function(collection, iteratees) { - if (collection == null) { - return []; - } - var length = iteratees.length; - if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) { - iteratees = []; - } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) { - iteratees = [iteratees[0]]; - } - return baseOrderBy(collection, baseFlatten(iteratees, 1), []); - }); - var now = ctxNow || function() { - return root.Date.now(); - }; - function after(n, func2) { - if (typeof func2 != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - n = toInteger(n); - return function() { - if (--n < 1) { - return func2.apply(this, arguments); - } - }; - } - function ary(func2, n, guard) { - n = guard ? undefined2 : n; - n = func2 && n == null ? func2.length : n; - return createWrap(func2, WRAP_ARY_FLAG, undefined2, undefined2, undefined2, undefined2, n); - } - function before(n, func2) { - var result2; - if (typeof func2 != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - n = toInteger(n); - return function() { - if (--n > 0) { - result2 = func2.apply(this, arguments); - } - if (n <= 1) { - func2 = undefined2; - } - return result2; - }; - } - var bind2 = baseRest(function(func2, thisArg, partials) { - var bitmask = WRAP_BIND_FLAG; - if (partials.length) { - var holders = replaceHolders(partials, getHolder(bind2)); - bitmask |= WRAP_PARTIAL_FLAG; - } - return createWrap(func2, bitmask, thisArg, partials, holders); - }); - var bindKey = baseRest(function(object, key, partials) { - var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG; - if (partials.length) { - var holders = replaceHolders(partials, getHolder(bindKey)); - bitmask |= WRAP_PARTIAL_FLAG; - } - return createWrap(key, bitmask, object, partials, holders); - }); - function curry(func2, arity2, guard) { - arity2 = guard ? undefined2 : arity2; - var result2 = createWrap(func2, WRAP_CURRY_FLAG, undefined2, undefined2, undefined2, undefined2, undefined2, arity2); - result2.placeholder = curry.placeholder; - return result2; - } - function curryRight(func2, arity2, guard) { - arity2 = guard ? undefined2 : arity2; - var result2 = createWrap(func2, WRAP_CURRY_RIGHT_FLAG, undefined2, undefined2, undefined2, undefined2, undefined2, arity2); - result2.placeholder = curryRight.placeholder; - return result2; - } - function debounce2(func2, wait, options2) { - var lastArgs, lastThis, maxWait, result2, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true; - if (typeof func2 != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - wait = toNumber(wait) || 0; - if (isObject3(options2)) { - leading = !!options2.leading; - maxing = "maxWait" in options2; - maxWait = maxing ? nativeMax(toNumber(options2.maxWait) || 0, wait) : maxWait; - trailing = "trailing" in options2 ? !!options2.trailing : trailing; - } - function invokeFunc(time) { - var args3 = lastArgs, thisArg = lastThis; - lastArgs = lastThis = undefined2; - lastInvokeTime = time; - result2 = func2.apply(thisArg, args3); - return result2; - } - function leadingEdge(time) { - lastInvokeTime = time; - timerId = setTimeout2(timerExpired, wait); - return leading ? invokeFunc(time) : result2; - } - function remainingWait(time) { - var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall; - return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting; - } - function shouldInvoke(time) { - var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime; - return lastCallTime === undefined2 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait; - } - function timerExpired() { - var time = now(); - if (shouldInvoke(time)) { - return trailingEdge(time); - } - timerId = setTimeout2(timerExpired, remainingWait(time)); - } - function trailingEdge(time) { - timerId = undefined2; - if (trailing && lastArgs) { - return invokeFunc(time); - } - lastArgs = lastThis = undefined2; - return result2; - } - function cancel() { - if (timerId !== undefined2) { - clearTimeout2(timerId); - } - lastInvokeTime = 0; - lastArgs = lastCallTime = lastThis = timerId = undefined2; - } - function flush() { - return timerId === undefined2 ? result2 : trailingEdge(now()); - } - function debounced() { - var time = now(), isInvoking = shouldInvoke(time); - lastArgs = arguments; - lastThis = this; - lastCallTime = time; - if (isInvoking) { - if (timerId === undefined2) { - return leadingEdge(lastCallTime); - } - if (maxing) { - clearTimeout2(timerId); - timerId = setTimeout2(timerExpired, wait); - return invokeFunc(lastCallTime); - } - } - if (timerId === undefined2) { - timerId = setTimeout2(timerExpired, wait); - } - return result2; - } - debounced.cancel = cancel; - debounced.flush = flush; - return debounced; - } - var defer2 = baseRest(function(func2, args3) { - return baseDelay(func2, 1, args3); - }); - var delay = baseRest(function(func2, wait, args3) { - return baseDelay(func2, toNumber(wait) || 0, args3); - }); - function flip(func2) { - return createWrap(func2, WRAP_FLIP_FLAG); - } - function memoize(func2, resolver) { - if (typeof func2 != "function" || resolver != null && typeof resolver != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - var memoized = function() { - var args3 = arguments, key = resolver ? resolver.apply(this, args3) : args3[0], cache = memoized.cache; - if (cache.has(key)) { - return cache.get(key); - } - var result2 = func2.apply(this, args3); - memoized.cache = cache.set(key, result2) || cache; - return result2; - }; - memoized.cache = new (memoize.Cache || MapCache)(); - return memoized; - } - memoize.Cache = MapCache; - function negate(predicate) { - if (typeof predicate != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - return function() { - var args3 = arguments; - switch (args3.length) { - case 0: - return !predicate.call(this); - case 1: - return !predicate.call(this, args3[0]); - case 2: - return !predicate.call(this, args3[0], args3[1]); - case 3: - return !predicate.call(this, args3[0], args3[1], args3[2]); - } - return !predicate.apply(this, args3); - }; - } - function once(func2) { - return before(2, func2); - } - var overArgs = castRest(function(func2, transforms) { - transforms = transforms.length == 1 && isArray2(transforms[0]) ? arrayMap(transforms[0], baseUnary(getIteratee())) : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee())); - var funcsLength = transforms.length; - return baseRest(function(args3) { - var index = -1, length = nativeMin(args3.length, funcsLength); - while (++index < length) { - args3[index] = transforms[index].call(this, args3[index]); - } - return apply(func2, this, args3); - }); - }); - var partial = baseRest(function(func2, partials) { - var holders = replaceHolders(partials, getHolder(partial)); - return createWrap(func2, WRAP_PARTIAL_FLAG, undefined2, partials, holders); - }); - var partialRight = baseRest(function(func2, partials) { - var holders = replaceHolders(partials, getHolder(partialRight)); - return createWrap(func2, WRAP_PARTIAL_RIGHT_FLAG, undefined2, partials, holders); - }); - var rearg = flatRest(function(func2, indexes) { - return createWrap(func2, WRAP_REARG_FLAG, undefined2, undefined2, undefined2, indexes); - }); - function rest(func2, start4) { - if (typeof func2 != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - start4 = start4 === undefined2 ? start4 : toInteger(start4); - return baseRest(func2, start4); - } - function spread3(func2, start4) { - if (typeof func2 != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - start4 = start4 == null ? 0 : nativeMax(toInteger(start4), 0); - return baseRest(function(args3) { - var array = args3[start4], otherArgs = castSlice(args3, 0, start4); - if (array) { - arrayPush(otherArgs, array); - } - return apply(func2, this, otherArgs); - }); - } - function throttle4(func2, wait, options2) { - var leading = true, trailing = true; - if (typeof func2 != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - if (isObject3(options2)) { - leading = "leading" in options2 ? !!options2.leading : leading; - trailing = "trailing" in options2 ? !!options2.trailing : trailing; - } - return debounce2(func2, wait, { - "leading": leading, - "maxWait": wait, - "trailing": trailing - }); - } - function unary(func2) { - return ary(func2, 1); - } - function wrap2(value, wrapper) { - return partial(castFunction(wrapper), value); - } - function castArray() { - if (!arguments.length) { - return []; - } - var value = arguments[0]; - return isArray2(value) ? value : [value]; - } - function clone(value) { - return baseClone(value, CLONE_SYMBOLS_FLAG); - } - function cloneWith(value, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined2; - return baseClone(value, CLONE_SYMBOLS_FLAG, customizer); - } - function cloneDeep(value) { - return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG); - } - function cloneDeepWith(value, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined2; - return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer); - } - function conformsTo(object, source) { - return source == null || baseConformsTo(object, source, keys(source)); - } - function eq(value, other) { - return value === other || value !== value && other !== other; - } - var gt = createRelationalOperation(baseGt); - var gte = createRelationalOperation(function(value, other) { - return value >= other; - }); - var isArguments = baseIsArguments(function() { - return arguments; - }()) ? baseIsArguments : function(value) { - return isObjectLike(value) && hasOwnProperty2.call(value, "callee") && !propertyIsEnumerable.call(value, "callee"); - }; - var isArray2 = Array2.isArray; - var isArrayBuffer2 = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer; - function isArrayLike(value) { - return value != null && isLength(value.length) && !isFunction2(value); - } - function isArrayLikeObject(value) { - return isObjectLike(value) && isArrayLike(value); - } - function isBoolean2(value) { - return value === true || value === false || isObjectLike(value) && baseGetTag(value) == boolTag; - } - var isBuffer2 = nativeIsBuffer || stubFalse; - var isDate2 = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate; - function isElement(value) { - return isObjectLike(value) && value.nodeType === 1 && !isPlainObject2(value); - } - function isEmpty(value) { - if (value == null) { - return true; - } - if (isArrayLike(value) && (isArray2(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer2(value) || isTypedArray2(value) || isArguments(value))) { - return !value.length; - } - var tag = getTag(value); - if (tag == mapTag || tag == setTag) { - return !value.size; - } - if (isPrototype(value)) { - return !baseKeys(value).length; - } - for (var key in value) { - if (hasOwnProperty2.call(value, key)) { - return false; - } - } - return true; - } - function isEqual2(value, other) { - return baseIsEqual(value, other); - } - function isEqualWith(value, other, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined2; - var result2 = customizer ? customizer(value, other) : undefined2; - return result2 === undefined2 ? baseIsEqual(value, other, undefined2, customizer) : !!result2; - } - function isError4(value) { - if (!isObjectLike(value)) { - return false; - } - var tag = baseGetTag(value); - return tag == errorTag || tag == domExcTag || typeof value.message == "string" && typeof value.name == "string" && !isPlainObject2(value); - } - function isFinite2(value) { - return typeof value == "number" && nativeIsFinite(value); - } - function isFunction2(value) { - if (!isObject3(value)) { - return false; - } - var tag = baseGetTag(value); - return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; - } - function isInteger(value) { - return typeof value == "number" && value == toInteger(value); - } - function isLength(value) { - return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; - } - function isObject3(value) { - var type = typeof value; - return value != null && (type == "object" || type == "function"); - } - function isObjectLike(value) { - return value != null && typeof value == "object"; - } - var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap; - function isMatch(object, source) { - return object === source || baseIsMatch(object, source, getMatchData(source)); - } - function isMatchWith(object, source, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined2; - return baseIsMatch(object, source, getMatchData(source), customizer); - } - function isNaN2(value) { - return isNumber2(value) && value != +value; - } - function isNative(value) { - if (isMaskable(value)) { - throw new Error2(CORE_ERROR_TEXT); - } - return baseIsNative(value); - } - function isNull(value) { - return value === null; - } - function isNil(value) { - return value == null; - } - function isNumber2(value) { - return typeof value == "number" || isObjectLike(value) && baseGetTag(value) == numberTag; - } - function isPlainObject2(value) { - if (!isObjectLike(value) || baseGetTag(value) != objectTag) { - return false; - } - var proto = getPrototype(value); - if (proto === null) { - return true; - } - var Ctor = hasOwnProperty2.call(proto, "constructor") && proto.constructor; - return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString; - } - var isRegExp2 = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp; - function isSafeInteger(value) { - return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER; - } - var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; - function isString2(value) { - return typeof value == "string" || !isArray2(value) && isObjectLike(value) && baseGetTag(value) == stringTag; - } - function isSymbol(value) { - return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag; - } - var isTypedArray2 = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; - function isUndefined2(value) { - return value === undefined2; - } - function isWeakMap(value) { - return isObjectLike(value) && getTag(value) == weakMapTag; - } - function isWeakSet(value) { - return isObjectLike(value) && baseGetTag(value) == weakSetTag; - } - var lt = createRelationalOperation(baseLt); - var lte = createRelationalOperation(function(value, other) { - return value <= other; - }); - function toArray2(value) { - if (!value) { - return []; - } - if (isArrayLike(value)) { - return isString2(value) ? stringToArray(value) : copyArray(value); - } - if (symIterator && value[symIterator]) { - return iteratorToArray(value[symIterator]()); - } - var tag = getTag(value), func2 = tag == mapTag ? mapToArray : tag == setTag ? setToArray : values; - return func2(value); - } - function toFinite(value) { - if (!value) { - return value === 0 ? value : 0; - } - value = toNumber(value); - if (value === INFINITY || value === -INFINITY) { - var sign = value < 0 ? -1 : 1; - return sign * MAX_INTEGER; - } - return value === value ? value : 0; - } - function toInteger(value) { - var result2 = toFinite(value), remainder = result2 % 1; - return result2 === result2 ? remainder ? result2 - remainder : result2 : 0; - } - function toLength(value) { - return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0; - } - function toNumber(value) { - if (typeof value == "number") { - return value; - } - if (isSymbol(value)) { - return NAN; - } - if (isObject3(value)) { - var other = typeof value.valueOf == "function" ? value.valueOf() : value; - value = isObject3(other) ? other + "" : other; - } - if (typeof value != "string") { - return value === 0 ? value : +value; - } - value = baseTrim(value); - var isBinary = reIsBinary.test(value); - return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value; - } - function toPlainObject(value) { - return copyObject(value, keysIn(value)); - } - function toSafeInteger(value) { - return value ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER) : value === 0 ? value : 0; - } - function toString4(value) { - return value == null ? "" : baseToString(value); - } - var assign2 = createAssigner(function(object, source) { - if (isPrototype(source) || isArrayLike(source)) { - copyObject(source, keys(source), object); - return; - } - for (var key in source) { - if (hasOwnProperty2.call(source, key)) { - assignValue(object, key, source[key]); - } - } - }); - var assignIn = createAssigner(function(object, source) { - copyObject(source, keysIn(source), object); - }); - var assignInWith = createAssigner(function(object, source, srcIndex, customizer) { - copyObject(source, keysIn(source), object, customizer); - }); - var assignWith = createAssigner(function(object, source, srcIndex, customizer) { - copyObject(source, keys(source), object, customizer); - }); - var at = flatRest(baseAt); - function create2(prototype3, properties2) { - var result2 = baseCreate(prototype3); - return properties2 == null ? result2 : baseAssign(result2, properties2); - } - var defaults4 = baseRest(function(object, sources) { - object = Object2(object); - var index = -1; - var length = sources.length; - var guard = length > 2 ? sources[2] : undefined2; - if (guard && isIterateeCall(sources[0], sources[1], guard)) { - length = 1; - } - while (++index < length) { - var source = sources[index]; - var props = keysIn(source); - var propsIndex = -1; - var propsLength = props.length; - while (++propsIndex < propsLength) { - var key = props[propsIndex]; - var value = object[key]; - if (value === undefined2 || eq(value, objectProto[key]) && !hasOwnProperty2.call(object, key)) { - object[key] = source[key]; - } - } - } - return object; - }); - var defaultsDeep = baseRest(function(args3) { - args3.push(undefined2, customDefaultsMerge); - return apply(mergeWith, undefined2, args3); - }); - function findKey2(object, predicate) { - return baseFindKey(object, getIteratee(predicate, 3), baseForOwn); - } - function findLastKey(object, predicate) { - return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight); - } - function forIn(object, iteratee2) { - return object == null ? object : baseFor(object, getIteratee(iteratee2, 3), keysIn); - } - function forInRight(object, iteratee2) { - return object == null ? object : baseForRight(object, getIteratee(iteratee2, 3), keysIn); - } - function forOwn(object, iteratee2) { - return object && baseForOwn(object, getIteratee(iteratee2, 3)); - } - function forOwnRight(object, iteratee2) { - return object && baseForOwnRight(object, getIteratee(iteratee2, 3)); - } - function functions(object) { - return object == null ? [] : baseFunctions(object, keys(object)); - } - function functionsIn(object) { - return object == null ? [] : baseFunctions(object, keysIn(object)); - } - function get(object, path20, defaultValue) { - var result2 = object == null ? undefined2 : baseGet(object, path20); - return result2 === undefined2 ? defaultValue : result2; - } - function has(object, path20) { - return object != null && hasPath(object, path20, baseHas); - } - function hasIn(object, path20) { - return object != null && hasPath(object, path20, baseHasIn); - } - var invert = createInverter(function(result2, value, key) { - if (value != null && typeof value.toString != "function") { - value = nativeObjectToString.call(value); - } - result2[value] = key; - }, constant(identity2)); - var invertBy = createInverter(function(result2, value, key) { - if (value != null && typeof value.toString != "function") { - value = nativeObjectToString.call(value); - } - if (hasOwnProperty2.call(result2, value)) { - result2[value].push(key); - } else { - result2[value] = [key]; - } - }, getIteratee); - var invoke = baseRest(baseInvoke); - function keys(object) { - return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); - } - function keysIn(object) { - return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); - } - function mapKeys(object, iteratee2) { - var result2 = {}; - iteratee2 = getIteratee(iteratee2, 3); - baseForOwn(object, function(value, key, object2) { - baseAssignValue(result2, iteratee2(value, key, object2), value); - }); - return result2; - } - function mapValues(object, iteratee2) { - var result2 = {}; - iteratee2 = getIteratee(iteratee2, 3); - baseForOwn(object, function(value, key, object2) { - baseAssignValue(result2, key, iteratee2(value, key, object2)); - }); - return result2; - } - var merge3 = createAssigner(function(object, source, srcIndex) { - baseMerge(object, source, srcIndex); - }); - var mergeWith = createAssigner(function(object, source, srcIndex, customizer) { - baseMerge(object, source, srcIndex, customizer); - }); - var omit2 = flatRest(function(object, paths) { - var result2 = {}; - if (object == null) { - return result2; - } - var isDeep = false; - paths = arrayMap(paths, function(path20) { - path20 = castPath(path20, object); - isDeep || (isDeep = path20.length > 1); - return path20; - }); - copyObject(object, getAllKeysIn(object), result2); - if (isDeep) { - result2 = baseClone(result2, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone); - } - var length = paths.length; - while (length--) { - baseUnset(result2, paths[length]); - } - return result2; - }); - function omitBy(object, predicate) { - return pickBy(object, negate(getIteratee(predicate))); - } - var pick = flatRest(function(object, paths) { - return object == null ? {} : basePick(object, paths); - }); - function pickBy(object, predicate) { - if (object == null) { - return {}; - } - var props = arrayMap(getAllKeysIn(object), function(prop) { - return [prop]; - }); - predicate = getIteratee(predicate); - return basePickBy(object, props, function(value, path20) { - return predicate(value, path20[0]); - }); - } - function result(object, path20, defaultValue) { - path20 = castPath(path20, object); - var index = -1, length = path20.length; - if (!length) { - length = 1; - object = undefined2; - } - while (++index < length) { - var value = object == null ? undefined2 : object[toKey(path20[index])]; - if (value === undefined2) { - index = length; - value = defaultValue; - } - object = isFunction2(value) ? value.call(object) : value; - } - return object; - } - function set(object, path20, value) { - return object == null ? object : baseSet(object, path20, value); - } - function setWith(object, path20, value, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined2; - return object == null ? object : baseSet(object, path20, value, customizer); - } - var toPairs = createToPairs(keys); - var toPairsIn = createToPairs(keysIn); - function transform(object, iteratee2, accumulator) { - var isArr = isArray2(object), isArrLike = isArr || isBuffer2(object) || isTypedArray2(object); - iteratee2 = getIteratee(iteratee2, 4); - if (accumulator == null) { - var Ctor = object && object.constructor; - if (isArrLike) { - accumulator = isArr ? new Ctor() : []; - } else if (isObject3(object)) { - accumulator = isFunction2(Ctor) ? baseCreate(getPrototype(object)) : {}; - } else { - accumulator = {}; - } - } - (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object2) { - return iteratee2(accumulator, value, index, object2); - }); - return accumulator; - } - function unset(object, path20) { - return object == null ? true : baseUnset(object, path20); - } - function update(object, path20, updater) { - return object == null ? object : baseUpdate(object, path20, castFunction(updater)); - } - function updateWith(object, path20, updater, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined2; - return object == null ? object : baseUpdate(object, path20, castFunction(updater), customizer); - } - function values(object) { - return object == null ? [] : baseValues(object, keys(object)); - } - function valuesIn(object) { - return object == null ? [] : baseValues(object, keysIn(object)); - } - function clamp(number, lower, upper) { - if (upper === undefined2) { - upper = lower; - lower = undefined2; - } - if (upper !== undefined2) { - upper = toNumber(upper); - upper = upper === upper ? upper : 0; - } - if (lower !== undefined2) { - lower = toNumber(lower); - lower = lower === lower ? lower : 0; - } - return baseClamp(toNumber(number), lower, upper); - } - function inRange(number, start4, end) { - start4 = toFinite(start4); - if (end === undefined2) { - end = start4; - start4 = 0; - } else { - end = toFinite(end); - } - number = toNumber(number); - return baseInRange(number, start4, end); - } - function random(lower, upper, floating) { - if (floating && typeof floating != "boolean" && isIterateeCall(lower, upper, floating)) { - upper = floating = undefined2; - } - if (floating === undefined2) { - if (typeof upper == "boolean") { - floating = upper; - upper = undefined2; - } else if (typeof lower == "boolean") { - floating = lower; - lower = undefined2; - } - } - if (lower === undefined2 && upper === undefined2) { - lower = 0; - upper = 1; - } else { - lower = toFinite(lower); - if (upper === undefined2) { - upper = lower; - lower = 0; - } else { - upper = toFinite(upper); - } - } - if (lower > upper) { - var temp = lower; - lower = upper; - upper = temp; - } - if (floating || lower % 1 || upper % 1) { - var rand = nativeRandom(); - return nativeMin(lower + rand * (upper - lower + freeParseFloat("1e-" + ((rand + "").length - 1))), upper); - } - return baseRandom(lower, upper); - } - var camelCase2 = createCompounder(function(result2, word, index) { - word = word.toLowerCase(); - return result2 + (index ? capitalize(word) : word); - }); - function capitalize(string) { - return upperFirst(toString4(string).toLowerCase()); - } - function deburr(string) { - string = toString4(string); - return string && string.replace(reLatin, deburrLetter).replace(reComboMark, ""); - } - function endsWith2(string, target, position) { - string = toString4(string); - target = baseToString(target); - var length = string.length; - position = position === undefined2 ? length : baseClamp(toInteger(position), 0, length); - var end = position; - position -= target.length; - return position >= 0 && string.slice(position, end) == target; - } - function escape4(string) { - string = toString4(string); - return string && reHasUnescapedHtml.test(string) ? string.replace(reUnescapedHtml, escapeHtmlChar) : string; - } - function escapeRegExp(string) { - string = toString4(string); - return string && reHasRegExpChar.test(string) ? string.replace(reRegExpChar, "\\$&") : string; - } - var kebabCase = createCompounder(function(result2, word, index) { - return result2 + (index ? "-" : "") + word.toLowerCase(); - }); - var lowerCase = createCompounder(function(result2, word, index) { - return result2 + (index ? " " : "") + word.toLowerCase(); - }); - var lowerFirst = createCaseFirst("toLowerCase"); - function pad(string, length, chars) { - string = toString4(string); - length = toInteger(length); - var strLength = length ? stringSize(string) : 0; - if (!length || strLength >= length) { - return string; - } - var mid = (length - strLength) / 2; - return createPadding(nativeFloor(mid), chars) + string + createPadding(nativeCeil(mid), chars); - } - function padEnd(string, length, chars) { - string = toString4(string); - length = toInteger(length); - var strLength = length ? stringSize(string) : 0; - return length && strLength < length ? string + createPadding(length - strLength, chars) : string; - } - function padStart(string, length, chars) { - string = toString4(string); - length = toInteger(length); - var strLength = length ? stringSize(string) : 0; - return length && strLength < length ? createPadding(length - strLength, chars) + string : string; - } - function parseInt2(string, radix, guard) { - if (guard || radix == null) { - radix = 0; - } else if (radix) { - radix = +radix; - } - return nativeParseInt(toString4(string).replace(reTrimStart, ""), radix || 0); - } - function repeat(string, n, guard) { - if (guard ? isIterateeCall(string, n, guard) : n === undefined2) { - n = 1; - } else { - n = toInteger(n); - } - return baseRepeat(toString4(string), n); - } - function replace() { - var args3 = arguments, string = toString4(args3[0]); - return args3.length < 3 ? string : string.replace(args3[1], args3[2]); - } - var snakeCase = createCompounder(function(result2, word, index) { - return result2 + (index ? "_" : "") + word.toLowerCase(); - }); - function split(string, separator, limit) { - if (limit && typeof limit != "number" && isIterateeCall(string, separator, limit)) { - separator = limit = undefined2; - } - limit = limit === undefined2 ? MAX_ARRAY_LENGTH : limit >>> 0; - if (!limit) { - return []; - } - string = toString4(string); - if (string && (typeof separator == "string" || separator != null && !isRegExp2(separator))) { - separator = baseToString(separator); - if (!separator && hasUnicode(string)) { - return castSlice(stringToArray(string), 0, limit); - } - } - return string.split(separator, limit); - } - var startCase = createCompounder(function(result2, word, index) { - return result2 + (index ? " " : "") + upperFirst(word); - }); - function startsWith(string, target, position) { - string = toString4(string); - position = position == null ? 0 : baseClamp(toInteger(position), 0, string.length); - target = baseToString(target); - return string.slice(position, position + target.length) == target; - } - function template2(string, options2, guard) { - var settings = lodash.templateSettings; - if (guard && isIterateeCall(string, options2, guard)) { - options2 = undefined2; - } - string = toString4(string); - options2 = assignInWith({}, options2, settings, customDefaultsAssignIn); - var imports = assignInWith({}, options2.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys); - var isEscaping, isEvaluating, index = 0, interpolate = options2.interpolate || reNoMatch, source = "__p += '"; - var reDelimiters = RegExp2( - (options2.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options2.evaluate || reNoMatch).source + "|$", - "g" - ); - var sourceURL = "//# sourceURL=" + (hasOwnProperty2.call(options2, "sourceURL") ? (options2.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + "\n"; - string.replace(reDelimiters, function(match2, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) { - interpolateValue || (interpolateValue = esTemplateValue); - source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar); - if (escapeValue) { - isEscaping = true; - source += "' +\n__e(" + escapeValue + ") +\n'"; - } - if (evaluateValue) { - isEvaluating = true; - source += "';\n" + evaluateValue + ";\n__p += '"; - } - if (interpolateValue) { - source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'"; - } - index = offset + match2.length; - return match2; - }); - source += "';\n"; - var variable = hasOwnProperty2.call(options2, "variable") && options2.variable; - if (!variable) { - source = "with (obj) {\n" + source + "\n}\n"; - } else if (reForbiddenIdentifierChars.test(variable)) { - throw new Error2(INVALID_TEMPL_VAR_ERROR_TEXT); - } - source = (isEvaluating ? source.replace(reEmptyStringLeading, "") : source).replace(reEmptyStringMiddle, "$1").replace(reEmptyStringTrailing, "$1;"); - source = "function(" + (variable || "obj") + ") {\n" + (variable ? "" : "obj || (obj = {});\n") + "var __t, __p = ''" + (isEscaping ? ", __e = _.escape" : "") + (isEvaluating ? ", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n" : ";\n") + source + "return __p\n}"; - var result2 = attempt(function() { - return Function2(importsKeys, sourceURL + "return " + source).apply(undefined2, importsValues); - }); - result2.source = source; - if (isError4(result2)) { - throw result2; - } - return result2; - } - function toLower(value) { - return toString4(value).toLowerCase(); - } - function toUpper(value) { - return toString4(value).toUpperCase(); - } - function trim2(string, chars, guard) { - string = toString4(string); - if (string && (guard || chars === undefined2)) { - return baseTrim(string); - } - if (!string || !(chars = baseToString(chars))) { - return string; - } - var strSymbols = stringToArray(string), chrSymbols = stringToArray(chars), start4 = charsStartIndex(strSymbols, chrSymbols), end = charsEndIndex(strSymbols, chrSymbols) + 1; - return castSlice(strSymbols, start4, end).join(""); - } - function trimEnd2(string, chars, guard) { - string = toString4(string); - if (string && (guard || chars === undefined2)) { - return string.slice(0, trimmedEndIndex(string) + 1); - } - if (!string || !(chars = baseToString(chars))) { - return string; - } - var strSymbols = stringToArray(string), end = charsEndIndex(strSymbols, stringToArray(chars)) + 1; - return castSlice(strSymbols, 0, end).join(""); - } - function trimStart(string, chars, guard) { - string = toString4(string); - if (string && (guard || chars === undefined2)) { - return string.replace(reTrimStart, ""); - } - if (!string || !(chars = baseToString(chars))) { - return string; - } - var strSymbols = stringToArray(string), start4 = charsStartIndex(strSymbols, stringToArray(chars)); - return castSlice(strSymbols, start4).join(""); - } - function truncate(string, options2) { - var length = DEFAULT_TRUNC_LENGTH, omission = DEFAULT_TRUNC_OMISSION; - if (isObject3(options2)) { - var separator = "separator" in options2 ? options2.separator : separator; - length = "length" in options2 ? toInteger(options2.length) : length; - omission = "omission" in options2 ? baseToString(options2.omission) : omission; - } - string = toString4(string); - var strLength = string.length; - if (hasUnicode(string)) { - var strSymbols = stringToArray(string); - strLength = strSymbols.length; - } - if (length >= strLength) { - return string; - } - var end = length - stringSize(omission); - if (end < 1) { - return omission; - } - var result2 = strSymbols ? castSlice(strSymbols, 0, end).join("") : string.slice(0, end); - if (separator === undefined2) { - return result2 + omission; - } - if (strSymbols) { - end += result2.length - end; - } - if (isRegExp2(separator)) { - if (string.slice(end).search(separator)) { - var match2, substring = result2; - if (!separator.global) { - separator = RegExp2(separator.source, toString4(reFlags.exec(separator)) + "g"); - } - separator.lastIndex = 0; - while (match2 = separator.exec(substring)) { - var newEnd = match2.index; - } - result2 = result2.slice(0, newEnd === undefined2 ? end : newEnd); - } - } else if (string.indexOf(baseToString(separator), end) != end) { - var index = result2.lastIndexOf(separator); - if (index > -1) { - result2 = result2.slice(0, index); - } - } - return result2 + omission; - } - function unescape4(string) { - string = toString4(string); - return string && reHasEscapedHtml.test(string) ? string.replace(reEscapedHtml, unescapeHtmlChar) : string; - } - var upperCase = createCompounder(function(result2, word, index) { - return result2 + (index ? " " : "") + word.toUpperCase(); - }); - var upperFirst = createCaseFirst("toUpperCase"); - function words(string, pattern, guard) { - string = toString4(string); - pattern = guard ? undefined2 : pattern; - if (pattern === undefined2) { - return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string); - } - return string.match(pattern) || []; - } - var attempt = baseRest(function(func2, args3) { - try { - return apply(func2, undefined2, args3); - } catch (e) { - return isError4(e) ? e : new Error2(e); - } - }); - var bindAll = flatRest(function(object, methodNames) { - arrayEach(methodNames, function(key) { - key = toKey(key); - baseAssignValue(object, key, bind2(object[key], object)); - }); - return object; - }); - function cond(pairs) { - var length = pairs == null ? 0 : pairs.length, toIteratee = getIteratee(); - pairs = !length ? [] : arrayMap(pairs, function(pair) { - if (typeof pair[1] != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - return [toIteratee(pair[0]), pair[1]]; - }); - return baseRest(function(args3) { - var index = -1; - while (++index < length) { - var pair = pairs[index]; - if (apply(pair[0], this, args3)) { - return apply(pair[1], this, args3); - } - } - }); - } - function conforms(source) { - return baseConforms(baseClone(source, CLONE_DEEP_FLAG)); - } - function constant(value) { - return function() { - return value; - }; - } - function defaultTo(value, defaultValue) { - return value == null || value !== value ? defaultValue : value; - } - var flow = createFlow(); - var flowRight = createFlow(true); - function identity2(value) { - return value; - } - function iteratee(func2) { - return baseIteratee(typeof func2 == "function" ? func2 : baseClone(func2, CLONE_DEEP_FLAG)); - } - function matches(source) { - return baseMatches(baseClone(source, CLONE_DEEP_FLAG)); - } - function matchesProperty(path20, srcValue) { - return baseMatchesProperty(path20, baseClone(srcValue, CLONE_DEEP_FLAG)); - } - var method = baseRest(function(path20, args3) { - return function(object) { - return baseInvoke(object, path20, args3); - }; - }); - var methodOf = baseRest(function(object, args3) { - return function(path20) { - return baseInvoke(object, path20, args3); - }; - }); - function mixin(object, source, options2) { - var props = keys(source), methodNames = baseFunctions(source, props); - if (options2 == null && !(isObject3(source) && (methodNames.length || !props.length))) { - options2 = source; - source = object; - object = this; - methodNames = baseFunctions(source, keys(source)); - } - var chain2 = !(isObject3(options2) && "chain" in options2) || !!options2.chain, isFunc = isFunction2(object); - arrayEach(methodNames, function(methodName) { - var func2 = source[methodName]; - object[methodName] = func2; - if (isFunc) { - object.prototype[methodName] = function() { - var chainAll = this.__chain__; - if (chain2 || chainAll) { - var result2 = object(this.__wrapped__), actions = result2.__actions__ = copyArray(this.__actions__); - actions.push({ "func": func2, "args": arguments, "thisArg": object }); - result2.__chain__ = chainAll; - return result2; - } - return func2.apply(object, arrayPush([this.value()], arguments)); - }; - } - }); - return object; - } - function noConflict() { - if (root._ === this) { - root._ = oldDash; - } - return this; - } - function noop2() { - } - function nthArg(n) { - n = toInteger(n); - return baseRest(function(args3) { - return baseNth(args3, n); - }); - } - var over = createOver(arrayMap); - var overEvery = createOver(arrayEvery); - var overSome = createOver(arraySome); - function property(path20) { - return isKey(path20) ? baseProperty(toKey(path20)) : basePropertyDeep(path20); - } - function propertyOf(object) { - return function(path20) { - return object == null ? undefined2 : baseGet(object, path20); - }; - } - var range = createRange(); - var rangeRight = createRange(true); - function stubArray() { - return []; - } - function stubFalse() { - return false; - } - function stubObject() { - return {}; - } - function stubString() { - return ""; - } - function stubTrue() { - return true; - } - function times(n, iteratee2) { - n = toInteger(n); - if (n < 1 || n > MAX_SAFE_INTEGER) { - return []; - } - var index = MAX_ARRAY_LENGTH, length = nativeMin(n, MAX_ARRAY_LENGTH); - iteratee2 = getIteratee(iteratee2); - n -= MAX_ARRAY_LENGTH; - var result2 = baseTimes(length, iteratee2); - while (++index < n) { - iteratee2(index); - } - return result2; - } - function toPath(value) { - if (isArray2(value)) { - return arrayMap(value, toKey); - } - return isSymbol(value) ? [value] : copyArray(stringToPath(toString4(value))); - } - function uniqueId(prefix) { - var id = ++idCounter; - return toString4(prefix) + id; - } - var add2 = createMathOperation(function(augend, addend) { - return augend + addend; - }, 0); - var ceil = createRound("ceil"); - var divide = createMathOperation(function(dividend, divisor) { - return dividend / divisor; - }, 1); - var floor = createRound("floor"); - function max(array) { - return array && array.length ? baseExtremum(array, identity2, baseGt) : undefined2; - } - function maxBy(array, iteratee2) { - return array && array.length ? baseExtremum(array, getIteratee(iteratee2, 2), baseGt) : undefined2; - } - function mean(array) { - return baseMean(array, identity2); - } - function meanBy(array, iteratee2) { - return baseMean(array, getIteratee(iteratee2, 2)); - } - function min(array) { - return array && array.length ? baseExtremum(array, identity2, baseLt) : undefined2; - } - function minBy(array, iteratee2) { - return array && array.length ? baseExtremum(array, getIteratee(iteratee2, 2), baseLt) : undefined2; - } - var multiply = createMathOperation(function(multiplier, multiplicand) { - return multiplier * multiplicand; - }, 1); - var round = createRound("round"); - var subtract2 = createMathOperation(function(minuend, subtrahend) { - return minuend - subtrahend; - }, 0); - function sum(array) { - return array && array.length ? baseSum(array, identity2) : 0; - } - function sumBy(array, iteratee2) { - return array && array.length ? baseSum(array, getIteratee(iteratee2, 2)) : 0; - } - lodash.after = after; - lodash.ary = ary; - lodash.assign = assign2; - lodash.assignIn = assignIn; - lodash.assignInWith = assignInWith; - lodash.assignWith = assignWith; - lodash.at = at; - lodash.before = before; - lodash.bind = bind2; - lodash.bindAll = bindAll; - lodash.bindKey = bindKey; - lodash.castArray = castArray; - lodash.chain = chain; - lodash.chunk = chunk; - lodash.compact = compact; - lodash.concat = concat; - lodash.cond = cond; - lodash.conforms = conforms; - lodash.constant = constant; - lodash.countBy = countBy; - lodash.create = create2; - lodash.curry = curry; - lodash.curryRight = curryRight; - lodash.debounce = debounce2; - lodash.defaults = defaults4; - lodash.defaultsDeep = defaultsDeep; - lodash.defer = defer2; - lodash.delay = delay; - lodash.difference = difference; - lodash.differenceBy = differenceBy; - lodash.differenceWith = differenceWith; - lodash.drop = drop; - lodash.dropRight = dropRight; - lodash.dropRightWhile = dropRightWhile; - lodash.dropWhile = dropWhile; - lodash.fill = fill; - lodash.filter = filter3; - lodash.flatMap = flatMap; - lodash.flatMapDeep = flatMapDeep; - lodash.flatMapDepth = flatMapDepth; - lodash.flatten = flatten; - lodash.flattenDeep = flattenDeep; - lodash.flattenDepth = flattenDepth; - lodash.flip = flip; - lodash.flow = flow; - lodash.flowRight = flowRight; - lodash.fromPairs = fromPairs; - lodash.functions = functions; - lodash.functionsIn = functionsIn; - lodash.groupBy = groupBy; - lodash.initial = initial; - lodash.intersection = intersection; - lodash.intersectionBy = intersectionBy; - lodash.intersectionWith = intersectionWith; - lodash.invert = invert; - lodash.invertBy = invertBy; - lodash.invokeMap = invokeMap; - lodash.iteratee = iteratee; - lodash.keyBy = keyBy; - lodash.keys = keys; - lodash.keysIn = keysIn; - lodash.map = map; - lodash.mapKeys = mapKeys; - lodash.mapValues = mapValues; - lodash.matches = matches; - lodash.matchesProperty = matchesProperty; - lodash.memoize = memoize; - lodash.merge = merge3; - lodash.mergeWith = mergeWith; - lodash.method = method; - lodash.methodOf = methodOf; - lodash.mixin = mixin; - lodash.negate = negate; - lodash.nthArg = nthArg; - lodash.omit = omit2; - lodash.omitBy = omitBy; - lodash.once = once; - lodash.orderBy = orderBy; - lodash.over = over; - lodash.overArgs = overArgs; - lodash.overEvery = overEvery; - lodash.overSome = overSome; - lodash.partial = partial; - lodash.partialRight = partialRight; - lodash.partition = partition2; - lodash.pick = pick; - lodash.pickBy = pickBy; - lodash.property = property; - lodash.propertyOf = propertyOf; - lodash.pull = pull; - lodash.pullAll = pullAll; - lodash.pullAllBy = pullAllBy; - lodash.pullAllWith = pullAllWith; - lodash.pullAt = pullAt; - lodash.range = range; - lodash.rangeRight = rangeRight; - lodash.rearg = rearg; - lodash.reject = reject; - lodash.remove = remove; - lodash.rest = rest; - lodash.reverse = reverse; - lodash.sampleSize = sampleSize; - lodash.set = set; - lodash.setWith = setWith; - lodash.shuffle = shuffle; - lodash.slice = slice; - lodash.sortBy = sortBy; - lodash.sortedUniq = sortedUniq; - lodash.sortedUniqBy = sortedUniqBy; - lodash.split = split; - lodash.spread = spread3; - lodash.tail = tail; - lodash.take = take; - lodash.takeRight = takeRight; - lodash.takeRightWhile = takeRightWhile; - lodash.takeWhile = takeWhile; - lodash.tap = tap; - lodash.throttle = throttle4; - lodash.thru = thru; - lodash.toArray = toArray2; - lodash.toPairs = toPairs; - lodash.toPairsIn = toPairsIn; - lodash.toPath = toPath; - lodash.toPlainObject = toPlainObject; - lodash.transform = transform; - lodash.unary = unary; - lodash.union = union; - lodash.unionBy = unionBy; - lodash.unionWith = unionWith; - lodash.uniq = uniq; - lodash.uniqBy = uniqBy; - lodash.uniqWith = uniqWith; - lodash.unset = unset; - lodash.unzip = unzip; - lodash.unzipWith = unzipWith; - lodash.update = update; - lodash.updateWith = updateWith; - lodash.values = values; - lodash.valuesIn = valuesIn; - lodash.without = without; - lodash.words = words; - lodash.wrap = wrap2; - lodash.xor = xor; - lodash.xorBy = xorBy; - lodash.xorWith = xorWith; - lodash.zip = zip; - lodash.zipObject = zipObject; - lodash.zipObjectDeep = zipObjectDeep; - lodash.zipWith = zipWith; - lodash.entries = toPairs; - lodash.entriesIn = toPairsIn; - lodash.extend = assignIn; - lodash.extendWith = assignInWith; - mixin(lodash, lodash); - lodash.add = add2; - lodash.attempt = attempt; - lodash.camelCase = camelCase2; - lodash.capitalize = capitalize; - lodash.ceil = ceil; - lodash.clamp = clamp; - lodash.clone = clone; - lodash.cloneDeep = cloneDeep; - lodash.cloneDeepWith = cloneDeepWith; - lodash.cloneWith = cloneWith; - lodash.conformsTo = conformsTo; - lodash.deburr = deburr; - lodash.defaultTo = defaultTo; - lodash.divide = divide; - lodash.endsWith = endsWith2; - lodash.eq = eq; - lodash.escape = escape4; - lodash.escapeRegExp = escapeRegExp; - lodash.every = every; - lodash.find = find; - lodash.findIndex = findIndex; - lodash.findKey = findKey2; - lodash.findLast = findLast4; - lodash.findLastIndex = findLastIndex; - lodash.findLastKey = findLastKey; - lodash.floor = floor; - lodash.forEach = forEach2; - lodash.forEachRight = forEachRight; - lodash.forIn = forIn; - lodash.forInRight = forInRight; - lodash.forOwn = forOwn; - lodash.forOwnRight = forOwnRight; - lodash.get = get; - lodash.gt = gt; - lodash.gte = gte; - lodash.has = has; - lodash.hasIn = hasIn; - lodash.head = head; - lodash.identity = identity2; - lodash.includes = includes; - lodash.indexOf = indexOf; - lodash.inRange = inRange; - lodash.invoke = invoke; - lodash.isArguments = isArguments; - lodash.isArray = isArray2; - lodash.isArrayBuffer = isArrayBuffer2; - lodash.isArrayLike = isArrayLike; - lodash.isArrayLikeObject = isArrayLikeObject; - lodash.isBoolean = isBoolean2; - lodash.isBuffer = isBuffer2; - lodash.isDate = isDate2; - lodash.isElement = isElement; - lodash.isEmpty = isEmpty; - lodash.isEqual = isEqual2; - lodash.isEqualWith = isEqualWith; - lodash.isError = isError4; - lodash.isFinite = isFinite2; - lodash.isFunction = isFunction2; - lodash.isInteger = isInteger; - lodash.isLength = isLength; - lodash.isMap = isMap; - lodash.isMatch = isMatch; - lodash.isMatchWith = isMatchWith; - lodash.isNaN = isNaN2; - lodash.isNative = isNative; - lodash.isNil = isNil; - lodash.isNull = isNull; - lodash.isNumber = isNumber2; - lodash.isObject = isObject3; - lodash.isObjectLike = isObjectLike; - lodash.isPlainObject = isPlainObject2; - lodash.isRegExp = isRegExp2; - lodash.isSafeInteger = isSafeInteger; - lodash.isSet = isSet; - lodash.isString = isString2; - lodash.isSymbol = isSymbol; - lodash.isTypedArray = isTypedArray2; - lodash.isUndefined = isUndefined2; - lodash.isWeakMap = isWeakMap; - lodash.isWeakSet = isWeakSet; - lodash.join = join6; - lodash.kebabCase = kebabCase; - lodash.last = last; - lodash.lastIndexOf = lastIndexOf; - lodash.lowerCase = lowerCase; - lodash.lowerFirst = lowerFirst; - lodash.lt = lt; - lodash.lte = lte; - lodash.max = max; - lodash.maxBy = maxBy; - lodash.mean = mean; - lodash.meanBy = meanBy; - lodash.min = min; - lodash.minBy = minBy; - lodash.stubArray = stubArray; - lodash.stubFalse = stubFalse; - lodash.stubObject = stubObject; - lodash.stubString = stubString; - lodash.stubTrue = stubTrue; - lodash.multiply = multiply; - lodash.nth = nth; - lodash.noConflict = noConflict; - lodash.noop = noop2; - lodash.now = now; - lodash.pad = pad; - lodash.padEnd = padEnd; - lodash.padStart = padStart; - lodash.parseInt = parseInt2; - lodash.random = random; - lodash.reduce = reduce; - lodash.reduceRight = reduceRight; - lodash.repeat = repeat; - lodash.replace = replace; - lodash.result = result; - lodash.round = round; - lodash.runInContext = runInContext2; - lodash.sample = sample; - lodash.size = size; - lodash.snakeCase = snakeCase; - lodash.some = some; - lodash.sortedIndex = sortedIndex; - lodash.sortedIndexBy = sortedIndexBy; - lodash.sortedIndexOf = sortedIndexOf; - lodash.sortedLastIndex = sortedLastIndex; - lodash.sortedLastIndexBy = sortedLastIndexBy; - lodash.sortedLastIndexOf = sortedLastIndexOf; - lodash.startCase = startCase; - lodash.startsWith = startsWith; - lodash.subtract = subtract2; - lodash.sum = sum; - lodash.sumBy = sumBy; - lodash.template = template2; - lodash.times = times; - lodash.toFinite = toFinite; - lodash.toInteger = toInteger; - lodash.toLength = toLength; - lodash.toLower = toLower; - lodash.toNumber = toNumber; - lodash.toSafeInteger = toSafeInteger; - lodash.toString = toString4; - lodash.toUpper = toUpper; - lodash.trim = trim2; - lodash.trimEnd = trimEnd2; - lodash.trimStart = trimStart; - lodash.truncate = truncate; - lodash.unescape = unescape4; - lodash.uniqueId = uniqueId; - lodash.upperCase = upperCase; - lodash.upperFirst = upperFirst; - lodash.each = forEach2; - lodash.eachRight = forEachRight; - lodash.first = head; - mixin(lodash, function() { - var source = {}; - baseForOwn(lodash, function(func2, methodName) { - if (!hasOwnProperty2.call(lodash.prototype, methodName)) { - source[methodName] = func2; - } - }); - return source; - }(), { "chain": false }); - lodash.VERSION = VERSION4; - arrayEach(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(methodName) { - lodash[methodName].placeholder = lodash; - }); - arrayEach(["drop", "take"], function(methodName, index) { - LazyWrapper.prototype[methodName] = function(n) { - n = n === undefined2 ? 1 : nativeMax(toInteger(n), 0); - var result2 = this.__filtered__ && !index ? new LazyWrapper(this) : this.clone(); - if (result2.__filtered__) { - result2.__takeCount__ = nativeMin(n, result2.__takeCount__); - } else { - result2.__views__.push({ - "size": nativeMin(n, MAX_ARRAY_LENGTH), - "type": methodName + (result2.__dir__ < 0 ? "Right" : "") - }); - } - return result2; - }; - LazyWrapper.prototype[methodName + "Right"] = function(n) { - return this.reverse()[methodName](n).reverse(); - }; - }); - arrayEach(["filter", "map", "takeWhile"], function(methodName, index) { - var type = index + 1, isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG; - LazyWrapper.prototype[methodName] = function(iteratee2) { - var result2 = this.clone(); - result2.__iteratees__.push({ - "iteratee": getIteratee(iteratee2, 3), - "type": type - }); - result2.__filtered__ = result2.__filtered__ || isFilter; - return result2; - }; - }); - arrayEach(["head", "last"], function(methodName, index) { - var takeName = "take" + (index ? "Right" : ""); - LazyWrapper.prototype[methodName] = function() { - return this[takeName](1).value()[0]; - }; - }); - arrayEach(["initial", "tail"], function(methodName, index) { - var dropName = "drop" + (index ? "" : "Right"); - LazyWrapper.prototype[methodName] = function() { - return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1); - }; - }); - LazyWrapper.prototype.compact = function() { - return this.filter(identity2); - }; - LazyWrapper.prototype.find = function(predicate) { - return this.filter(predicate).head(); - }; - LazyWrapper.prototype.findLast = function(predicate) { - return this.reverse().find(predicate); - }; - LazyWrapper.prototype.invokeMap = baseRest(function(path20, args3) { - if (typeof path20 == "function") { - return new LazyWrapper(this); - } - return this.map(function(value) { - return baseInvoke(value, path20, args3); - }); - }); - LazyWrapper.prototype.reject = function(predicate) { - return this.filter(negate(getIteratee(predicate))); - }; - LazyWrapper.prototype.slice = function(start4, end) { - start4 = toInteger(start4); - var result2 = this; - if (result2.__filtered__ && (start4 > 0 || end < 0)) { - return new LazyWrapper(result2); - } - if (start4 < 0) { - result2 = result2.takeRight(-start4); - } else if (start4) { - result2 = result2.drop(start4); - } - if (end !== undefined2) { - end = toInteger(end); - result2 = end < 0 ? result2.dropRight(-end) : result2.take(end - start4); - } - return result2; - }; - LazyWrapper.prototype.takeRightWhile = function(predicate) { - return this.reverse().takeWhile(predicate).reverse(); - }; - LazyWrapper.prototype.toArray = function() { - return this.take(MAX_ARRAY_LENGTH); - }; - baseForOwn(LazyWrapper.prototype, function(func2, methodName) { - var checkIteratee = /^(?:filter|find|map|reject)|While$/.test(methodName), isTaker = /^(?:head|last)$/.test(methodName), lodashFunc = lodash[isTaker ? "take" + (methodName == "last" ? "Right" : "") : methodName], retUnwrapped = isTaker || /^find/.test(methodName); - if (!lodashFunc) { - return; - } - lodash.prototype[methodName] = function() { - var value = this.__wrapped__, args3 = isTaker ? [1] : arguments, isLazy = value instanceof LazyWrapper, iteratee2 = args3[0], useLazy = isLazy || isArray2(value); - var interceptor = function(value2) { - var result3 = lodashFunc.apply(lodash, arrayPush([value2], args3)); - return isTaker && chainAll ? result3[0] : result3; - }; - if (useLazy && checkIteratee && typeof iteratee2 == "function" && iteratee2.length != 1) { - isLazy = useLazy = false; - } - var chainAll = this.__chain__, isHybrid = !!this.__actions__.length, isUnwrapped = retUnwrapped && !chainAll, onlyLazy = isLazy && !isHybrid; - if (!retUnwrapped && useLazy) { - value = onlyLazy ? value : new LazyWrapper(this); - var result2 = func2.apply(value, args3); - result2.__actions__.push({ "func": thru, "args": [interceptor], "thisArg": undefined2 }); - return new LodashWrapper(result2, chainAll); - } - if (isUnwrapped && onlyLazy) { - return func2.apply(this, args3); - } - result2 = this.thru(interceptor); - return isUnwrapped ? isTaker ? result2.value()[0] : result2.value() : result2; - }; - }); - arrayEach(["pop", "push", "shift", "sort", "splice", "unshift"], function(methodName) { - var func2 = arrayProto[methodName], chainName = /^(?:push|sort|unshift)$/.test(methodName) ? "tap" : "thru", retUnwrapped = /^(?:pop|shift)$/.test(methodName); - lodash.prototype[methodName] = function() { - var args3 = arguments; - if (retUnwrapped && !this.__chain__) { - var value = this.value(); - return func2.apply(isArray2(value) ? value : [], args3); - } - return this[chainName](function(value2) { - return func2.apply(isArray2(value2) ? value2 : [], args3); - }); - }; - }); - baseForOwn(LazyWrapper.prototype, function(func2, methodName) { - var lodashFunc = lodash[methodName]; - if (lodashFunc) { - var key = lodashFunc.name + ""; - if (!hasOwnProperty2.call(realNames, key)) { - realNames[key] = []; - } - realNames[key].push({ "name": methodName, "func": lodashFunc }); - } - }); - realNames[createHybrid(undefined2, WRAP_BIND_KEY_FLAG).name] = [{ - "name": "wrapper", - "func": undefined2 - }]; - LazyWrapper.prototype.clone = lazyClone; - LazyWrapper.prototype.reverse = lazyReverse; - LazyWrapper.prototype.value = lazyValue; - lodash.prototype.at = wrapperAt; - lodash.prototype.chain = wrapperChain; - lodash.prototype.commit = wrapperCommit; - lodash.prototype.next = wrapperNext; - lodash.prototype.plant = wrapperPlant; - lodash.prototype.reverse = wrapperReverse; - lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue; - lodash.prototype.first = lodash.prototype.head; - if (symIterator) { - lodash.prototype[symIterator] = wrapperToIterator; - } - return lodash; - }; - var _ = runInContext(); - if (typeof define == "function" && typeof define.amd == "object" && define.amd) { - root._ = _; - define(function() { - return _; - }); - } else if (freeModule) { - (freeModule.exports = _)._ = _; - freeExports._ = _; - } else { - root._ = _; - } - }).call(exports2); - } -}); - -// ../lib/shared/src/sourcegraph-api/graphql/url.ts -var import_lodash, GRAPHQL_URI, buildGraphQLUrl; -var init_url = __esm({ - "../lib/shared/src/sourcegraph-api/graphql/url.ts"() { - "use strict"; - import_lodash = __toESM(require_lodash()); - GRAPHQL_URI = "/.api/graphql"; - buildGraphQLUrl = ({ request, baseUrl }) => { - const nameMatch = request ? request.match(/^\s*(?:query|mutation)\s+(\w+)/) : ""; - const apiURL = `${GRAPHQL_URI}${nameMatch ? `?${nameMatch[1]}` : ""}`; - return baseUrl ? new URL((0, import_lodash.trimEnd)(baseUrl, "/") + apiURL).href : apiURL; - }; - } -}); - -// ../lib/shared/src/sourcegraph-api/graphql/client.ts -function isNodeResponse(response) { - return Boolean(response.body && !("getReader" in response.body)); -} -function extractDataOrError(response, extract) { - if (isError2(response)) { - return response; - } - if (response.errors && response.errors.length > 0) { - return new Error(response.errors.map(({ message }) => message).join(", ")); - } - if (!response.data) { - return new Error("response is missing data"); - } - return extract(response.data); -} -function addCustomUserAgent(headers) { - if (customUserAgent) { - headers.set("User-Agent", customUserAgent); - } -} -function setUserAgent(newUseragent) { - customUserAgent = newUseragent; -} -async function verifyResponseCode(response) { - if (!response.ok) { - const body2 = await response.text(); - throw new Error(`HTTP status code ${response.status}${body2 ? `: ${body2}` : ""}`); - } - return response; -} -var import_isomorphic_fetch, import_vscode_uri, isAgentTesting, customUserAgent, QUERY_TO_NAME_REGEXP, SourcegraphGraphQLAPIClient, graphqlClient, ConfigFeaturesSingleton; -var init_client = __esm({ - "../lib/shared/src/sourcegraph-api/graphql/client.ts"() { - "use strict"; - import_isomorphic_fetch = __toESM(require_fetch_npm_node()); - import_vscode_uri = __toESM(require_umd()); - init_logger(); - init_tracing(); - init_utils(); - init_environments(); - init_queries(); - init_url(); - isAgentTesting = process.env.CODY_SHIM_TESTING === "true"; - QUERY_TO_NAME_REGEXP = /^\s*(?:query|mutation)\s+(\w+)/m; - SourcegraphGraphQLAPIClient = class { - dotcomUrl = DOTCOM_URL; - anonymousUserID; - /** - * Should be set on extension activation via `localStorage.onConfigurationChange(config)` - * Done to avoid passing the graphql client around as a parameter and instead - * access it as a singleton via the module import. - */ - _config = null; - get config() { - if (!this._config) { - throw new Error("GraphQLAPIClientConfig is not set"); - } - return this._config; - } - constructor(config = null) { - this._config = config; - } - onConfigurationChange(newConfig) { - this._config = newConfig; - } - /** - * If set, anonymousUID is trasmitted as 'X-Sourcegraph-Actor-Anonymous-UID' - * which is automatically picked up by Sourcegraph backends 5.2+ - */ - setAnonymousUserID(anonymousUID) { - this.anonymousUserID = anonymousUID; - } - isDotCom() { - return isDotCom(this.config.serverEndpoint); - } - // Gets the server endpoint for this client. - get endpoint() { - return this.config.serverEndpoint; - } - async getSiteVersion() { - return this.fetchSourcegraphAPI( - CURRENT_SITE_VERSION_QUERY, - {} - ).then( - (response) => extractDataOrError( - response, - (data) => data.site?.productVersion ?? new Error("site version not found") - ) - ); - } - async getSiteIdentification() { - const response = await this.fetchSourcegraphAPI( - CURRENT_SITE_IDENTIFICATION, - {} - ); - return extractDataOrError( - response, - (data) => data.site?.siteID ? data.site?.productSubscription?.license?.hashedKey ? { - siteid: data.site?.siteID, - hashedLicenseKey: data.site?.productSubscription?.license?.hashedKey - } : new Error("site hashed license key not found") : new Error("site ID not found") - ); - } - async getSiteHasIsCodyEnabledField() { - return this.fetchSourcegraphAPI( - CURRENT_SITE_GRAPHQL_FIELDS_QUERY, - {} - ).then( - (response) => extractDataOrError( - response, - (data) => !!data.__type?.fields?.find((field) => field.name === "isCodyEnabled") - ) - ); - } - async getSiteHasCodyEnabled() { - return this.fetchSourcegraphAPI( - CURRENT_SITE_HAS_CODY_ENABLED_QUERY, - {} - ).then((response) => extractDataOrError(response, (data) => data.site?.isCodyEnabled ?? false)); - } - async getCurrentUserId() { - return this.fetchSourcegraphAPI( - CURRENT_USER_ID_QUERY, - {} - ).then( - (response) => extractDataOrError( - response, - (data) => data.currentUser ? data.currentUser.id : new Error("current user not found") - ) - ); - } - async getCurrentUserCodyProEnabled() { - return this.fetchSourcegraphAPI( - CURRENT_USER_CODY_PRO_ENABLED_QUERY, - {} - ).then( - (response) => extractDataOrError( - response, - (data) => data.currentUser ? { ...data.currentUser } : new Error("current user not found") - ) - ); - } - async getCurrentUserCodySubscription() { - return this.fetchSourcegraphAPI( - CURRENT_USER_CODY_SUBSCRIPTION_QUERY, - {} - ).then( - (response) => extractDataOrError( - response, - (data) => data.currentUser?.codySubscription ? data.currentUser.codySubscription : new Error("current user subscription data not found") - ) - ); - } - async getCurrentUserInfo() { - return this.fetchSourcegraphAPI( - CURRENT_USER_INFO_QUERY, - {} - ).then( - (response) => extractDataOrError( - response, - (data) => data.currentUser ? { ...data.currentUser } : new Error("current user not found") - ) - ); - } - /** - * Fetches the Site Admin enabled/disable Cody config features for the current instance. - */ - async getCodyConfigFeatures() { - const response = await this.fetchSourcegraphAPI( - CURRENT_SITE_CODY_CONFIG_FEATURES, - {} - ); - return extractDataOrError( - response, - (data) => data.site?.codyConfigFeatures ?? new Error("cody config not found") - ); - } - async getCodyLLMConfiguration() { - const [configResponse, providerResponse] = await Promise.all([ - this.fetchSourcegraphAPI( - CURRENT_SITE_CODY_LLM_CONFIGURATION - ), - this.fetchSourcegraphAPI( - CURRENT_SITE_CODY_LLM_PROVIDER - ) - ]); - const config = extractDataOrError( - configResponse, - (data) => data.site?.codyLLMConfiguration || void 0 - ); - if (!config || isError2(config)) { - return config; - } - let provider; - const llmProvider = extractDataOrError( - providerResponse, - (data) => data.site?.codyLLMConfiguration?.provider - ); - if (llmProvider && !isError2(llmProvider)) { - provider = llmProvider; - } - return { ...config, provider }; - } - /** - * Gets a subset of the list of repositories from the Sourcegraph instance. - * @param first the number of repositories to retrieve. - * @param after the last repository retrieved, if any, to continue enumerating the list. - * @returns the list of repositories. If `endCursor` is null, this is the end of the list. - */ - async getRepoList(first, after) { - return this.fetchSourcegraphAPI(REPOSITORY_LIST_QUERY, { - first, - after: after || null - }).then((response) => extractDataOrError(response, (data) => data)); - } - async getRepoId(repoName) { - return this.fetchSourcegraphAPI(REPOSITORY_ID_QUERY, { - name: repoName - }).then( - (response) => extractDataOrError(response, (data) => data.repository ? data.repository.id : null) - ); - } - async getRepoIds(names, first) { - return this.fetchSourcegraphAPI(REPOSITORY_IDS_QUERY, { - names, - first - }).then((response) => extractDataOrError(response, (data) => data.repositories?.nodes || [])); - } - async contextSearch(repos, query) { - return this.fetchSourcegraphAPI(CONTEXT_SEARCH_QUERY, { - repos: [...repos], - query, - codeResultsCount: 15, - textResultsCount: 5 - }).then( - (response) => extractDataOrError( - response, - (data) => (data.getCodyContext || []).map((item) => ({ - commit: item.blob.commit.oid, - repoName: item.blob.repository.name, - path: item.blob.path, - uri: import_vscode_uri.URI.parse( - `${item.blob.url.startsWith("/") ? this.endpoint : ""}${item.blob.url}?L${item.startLine + 1}-${item.endLine}` - ), - startLine: item.startLine, - endLine: item.endLine, - content: item.chunkContent - })) - ) - ); - } - /** - * Checks if Cody is enabled on the current Sourcegraph instance. - * @returns - * enabled: Whether Cody is enabled. - * version: The Sourcegraph version. - * - * This method first checks the Sourcegraph version using `getSiteVersion()`. - * If the version is before 5.0.0, Cody is disabled. - * If the version is 5.0.0 or newer, it checks for the existence of the `isCodyEnabled` field using `getSiteHasIsCodyEnabledField()`. - * If the field exists, it calls `getSiteHasCodyEnabled()` to check its value. - * If the field does not exist, Cody is assumed to be enabled for versions between 5.0.0 - 5.1.0. - */ - async isCodyEnabled() { - const siteVersion = await this.getSiteVersion(); - if (isError2(siteVersion)) { - return { enabled: false, version: "unknown" }; - } - const insiderBuild = siteVersion.length > 12 || siteVersion.includes("dev"); - if (insiderBuild) { - return { enabled: true, version: siteVersion }; - } - const versionBeforeCody = siteVersion < "5.0.0"; - if (versionBeforeCody) { - return { enabled: false, version: siteVersion }; - } - const betaVersion = siteVersion >= "5.0.0" && siteVersion < "5.1.0"; - const hasIsCodyEnabledField = await this.getSiteHasIsCodyEnabledField(); - if (!betaVersion && !isError2(hasIsCodyEnabledField) && hasIsCodyEnabledField) { - const siteHasCodyEnabled = await this.getSiteHasCodyEnabled(); - return { enabled: !isError2(siteHasCodyEnabled) && siteHasCodyEnabled, version: siteVersion }; - } - return { enabled: insiderBuild || betaVersion, version: siteVersion }; - } - /** - * recordTelemetryEvents uses the new Telemetry API to record events that - * gets exported: https://sourcegraph.com/docs/dev/background-information/telemetry - * - * Only available on Sourcegraph 5.2.0 and later. - * - * DO NOT USE THIS DIRECTLY - use an implementation of implementation - * TelemetryRecorder from '@sourcegraph/telemetry' instead. - */ - async recordTelemetryEvents(events) { - for (const event of events) { - this.anonymizeTelemetryEventInput(event); - } - const initialResponse = await this.fetchSourcegraphAPI( - RECORD_TELEMETRY_EVENTS_MUTATION, - { - events - } - ); - return extractDataOrError(initialResponse, (data) => data); - } - /** - * logEvent is the legacy event-logging mechanism. - * @deprecated use an implementation of implementation TelemetryRecorder - * from '@sourcegraph/telemetry' instead. - */ - async logEvent(event, mode) { - if (process.env.CODY_TESTING === "true") { - return this.sendEventLogRequestToTestingAPI(event); - } - if (this.config?.telemetryLevel === "off") { - return {}; - } - if (this.isDotCom()) { - return this.sendEventLogRequestToAPI(event); - } - switch (process.env.CODY_LOG_EVENT_MODE) { - case "connected-instance-only": - mode = "connected-instance-only"; - break; - case "dotcom-only": - mode = "dotcom-only"; - break; - case "all": - mode = "all"; - break; - default: - if (process.env.CODY_LOG_EVENT_MODE) { - logDebug( - "SourcegraphGraphQLAPIClient.logEvent", - "unknown mode", - process.env.CODY_LOG_EVENT_MODE - ); - } - } - switch (mode) { - case "dotcom-only": - return this.sendEventLogRequestToDotComAPI(event); - case "connected-instance-only": - return this.sendEventLogRequestToAPI(event); - case "all": - } - const responses = await Promise.all([ - this.sendEventLogRequestToAPI(event), - this.sendEventLogRequestToDotComAPI(event) - ]); - if (isError2(responses[0]) && isError2(responses[1])) { - return new Error( - `Errors logging events: ${responses[0].toString()}, ${responses[1].toString()}` - ); - } - if (isError2(responses[0])) { - return responses[0]; - } - if (isError2(responses[1])) { - return responses[1]; - } - return {}; - } - anonymizeTelemetryEventInput(event) { - if (isAgentTesting) { - event.timestamp = void 0; - event.parameters.interactionID = void 0; - event.parameters.billingMetadata = void 0; - event.parameters.metadata = void 0; - event.parameters.metadata = void 0; - event.parameters.privateMetadata = {}; - } - } - anonymizeEvent(event) { - if (isAgentTesting) { - event.publicArgument = void 0; - event.argument = void 0; - event.userCookieID = "ANONYMOUS_USER_COOKIE_ID"; - event.hashedLicenseKey = void 0; - } - } - async sendEventLogRequestToDotComAPI(event) { - this.anonymizeEvent(event); - const response = await this.fetchSourcegraphDotcomAPI( - LOG_EVENT_MUTATION, - event - ); - return extractDataOrError(response, (data) => data); - } - async sendEventLogRequestToAPI(event) { - this.anonymizeEvent(event); - const initialResponse = await this.fetchSourcegraphAPI( - LOG_EVENT_MUTATION, - event - ); - const initialDataOrError = extractDataOrError(initialResponse, (data) => data); - if (isError2(initialDataOrError)) { - const secondResponse = await this.fetchSourcegraphAPI( - LOG_EVENT_MUTATION_DEPRECATED, - event - ); - return extractDataOrError(secondResponse, (data) => data); - } - return initialDataOrError; - } - async sendEventLogRequestToTestingAPI(event) { - const initialResponse = await this.fetchSourcegraphTestingAPI(event); - const initialDataOrError = extractDataOrError(initialResponse, (data) => data); - if (isError2(initialDataOrError)) { - const secondResponse = await this.fetchSourcegraphTestingAPI(event); - return extractDataOrError(secondResponse, (data) => data); - } - return initialDataOrError; - } - async searchAttribution(snippet) { - return this.fetchSourcegraphAPI( - SEARCH_ATTRIBUTION_QUERY, - { - snippet - } - ).then((response) => extractDataOrError(response, (data) => data.snippetAttribution)); - } - async getEvaluatedFeatureFlags() { - return this.fetchSourcegraphAPI( - GET_FEATURE_FLAGS_QUERY, - {} - ).then((response) => { - return extractDataOrError( - response, - (data) => data.evaluatedFeatureFlags.reduce((acc, { name, value }) => { - acc[name] = value; - return acc; - }, {}) - ); - }); - } - async evaluateFeatureFlag(flagName) { - return this.fetchSourcegraphAPI( - EVALUATE_FEATURE_FLAG_QUERY, - { - flagName - } - ).then((response) => extractDataOrError(response, (data) => data.evaluateFeatureFlag)); - } - fetchSourcegraphAPI(query, variables = {}) { - const headers = new Headers(this.config.customHeaders); - headers.set("Content-Type", "application/json; charset=utf-8"); - if (this.config.accessToken) { - headers.set("Authorization", `token ${this.config.accessToken}`); - } - if (this.anonymousUserID) { - headers.set("X-Sourcegraph-Actor-Anonymous-UID", this.anonymousUserID); - } - addTraceparent(headers); - addCustomUserAgent(headers); - const queryName = query.match(QUERY_TO_NAME_REGEXP)?.[1]; - const url2 = buildGraphQLUrl({ request: query, baseUrl: this.config.serverEndpoint }); - return wrapInActiveSpan( - `graphql.fetch${queryName ? `.${queryName}` : ""}`, - () => (0, import_isomorphic_fetch.default)(url2, { - method: "POST", - body: JSON.stringify({ query, variables }), - headers - }).then(verifyResponseCode).then((response) => response.json()).catch((error) => { - return new Error(`accessing Sourcegraph GraphQL API: ${error} (${url2})`); - }) - ); - } - // make an anonymous request to the dotcom API - fetchSourcegraphDotcomAPI(query, variables) { - const url2 = buildGraphQLUrl({ request: query, baseUrl: this.dotcomUrl.href }); - const headers = new Headers(); - addCustomUserAgent(headers); - addTraceparent(headers); - const queryName = query.match(QUERY_TO_NAME_REGEXP)?.[1]; - return wrapInActiveSpan( - `graphql.dotcom.fetch${queryName ? `.${queryName}` : ""}`, - () => (0, import_isomorphic_fetch.default)(url2, { - method: "POST", - body: JSON.stringify({ query, variables }), - headers - }).then(verifyResponseCode).then((response) => response.json()).catch((error) => new Error(`error fetching Sourcegraph GraphQL API: ${error} (${url2})`)) - ); - } - // make an anonymous request to the Testing API - fetchSourcegraphTestingAPI(body2) { - const url2 = "http://localhost:49300/.api/testLogging"; - const headers = new Headers({ - "Content-Type": "application/json" - }); - addCustomUserAgent(headers); - return (0, import_isomorphic_fetch.default)(url2, { - method: "POST", - headers, - body: JSON.stringify(body2) - }).then(verifyResponseCode).then((response) => response.json()).catch((error) => new Error(`error fetching Testing Sourcegraph API: ${error} (${url2})`)); - } - }; - graphqlClient = new SourcegraphGraphQLAPIClient(); - ConfigFeaturesSingleton = class _ConfigFeaturesSingleton { - static instance; - configFeatures; - // Constructor is private to prevent creating new instances outside of the class - constructor() { - this.configFeatures = Promise.resolve({ - chat: true, - autoComplete: true, - commands: true, - attribution: false - }); - this.refreshConfigFeatures(); - if (!graphqlClient.isDotCom()) { - setInterval(() => this.refreshConfigFeatures(), 3e4); - } - } - // Static method to get the singleton instance - static getInstance() { - if (!_ConfigFeaturesSingleton.instance) { - _ConfigFeaturesSingleton.instance = new _ConfigFeaturesSingleton(); - } - return _ConfigFeaturesSingleton.instance; - } - // Refreshes the config features by fetching them from the server and caching the result - refreshConfigFeatures() { - const previousConfigFeatures = this.configFeatures; - this.configFeatures = this.fetchConfigFeatures().catch((error) => { - if (!(error.message.includes("FetchError") || error.message.includes("Cannot query field"))) { - logError("ConfigFeaturesSingleton", "refreshConfigFeatures", error.message); - } - return previousConfigFeatures; - }); - } - getConfigFeatures() { - return this.configFeatures; - } - // Fetches the config features from the server and handles errors - async fetchConfigFeatures() { - const features = await graphqlClient.getCodyConfigFeatures(); - if (features instanceof Error) { - throw features; - } - return features; - } - }; - } -}); - -// ../lib/shared/src/ollama/completions-client.ts -function createOllamaClient(ollamaOptions, logger2, logDebug3) { - async function* complete(params, abortController) { - const url2 = new URL("/api/generate", ollamaOptions.url).href; - const log2 = logger2?.startCompletion(params, url2); - const { signal } = abortController; - try { - const response = await fetch(url2, { - method: "POST", - body: JSON.stringify(params), - headers: { - "Content-Type": "application/json" - }, - signal - }); - if (!response.ok) { - const errorResponse = await response.json(); - throw new Error(`ollama generation error: ${errorResponse?.error || "unknown error"}`); - } - if (!response.body) { - throw new Error("no response body"); - } - const iterableBody = isNodeResponse(response) ? response.body : browserResponseToAsyncIterable(response.body); - let insertText = ""; - let stopReason = ""; - for await (const chunk of iterableBody) { - if (signal.aborted) { - stopReason = "cody-request-aborted" /* RequestAborted */; - break; - } - for (const chunkString of chunk.toString().split(RESPONSE_SEPARATOR).filter(Boolean)) { - const line = JSON.parse(chunkString); - if (line.response) { - insertText += line.response; - yield { completion: insertText, stopReason: "cody-streaming-chunk" /* StreamingChunk */ }; - } - if (line.done && line.total_duration) { - const timingInfo = formatOllamaTimingInfo(line); - logDebug3?.("ollama", "generation done", timingInfo.join(" ")); - } - } - } - const completionResponse = { - completion: insertText, - stopReason: stopReason || "cody-request-finished" /* RequestFinished */ - }; - log2?.onComplete(completionResponse); - return completionResponse; - } catch (error) { - if (!isAbortError(error) && isError2(error)) { - log2?.onError(error.message, error); - } - throw error; - } - } - return { - complete, - logger: logger2, - onConfigurationChange: () => void 0 - }; -} -function formatOllamaTimingInfo(response) { - const timingMetricsKeys = [ - "total_duration", - "load_duration", - "prompt_eval_count", - "prompt_eval_duration", - "eval_count", - "eval_duration", - "sample_count", - "sample_duration" - ]; - const formattedMetrics = timingMetricsKeys.filter((key) => response[key] !== void 0).map((key) => { - const value = response[key]; - const formattedValue = key.endsWith("_duration") ? `${value / 1e6}ms` : value; - return `${key}=${formattedValue}`; - }); - const promptEvalSpeed = response.prompt_eval_count !== void 0 && response.prompt_eval_duration !== void 0 ? `prompt_eval_tok/sec=${response.prompt_eval_count / (response.prompt_eval_duration / 1e9)}` : null; - const responseEvalSpeed = response.eval_count !== void 0 && response.eval_duration !== void 0 ? `response_tok/sec=${response.eval_count / (response.eval_duration / 1e9)}` : null; - return [...formattedMetrics, promptEvalSpeed, responseEvalSpeed].filter(isDefined); -} -function browserResponseToAsyncIterable(body2) { - return { - [Symbol.asyncIterator]: async function* () { - const reader = body2.getReader(); - const decoder = new TextDecoder("utf-8"); - while (true) { - const { value, done } = await reader.read(); - const decoded = decoder.decode(value, { stream: true }); - if (done) { - return decoded; - } - yield decoded; - } - } - }; -} -var RESPONSE_SEPARATOR; -var init_completions_client = __esm({ - "../lib/shared/src/ollama/completions-client.ts"() { - "use strict"; - init_common(); - init_errors(); - init_client(); - init_utils(); - RESPONSE_SEPARATOR = /\r?\n/; - } -}); - -// ../lib/shared/src/common/abortController.ts -function onAbort(signal, handler) { - if (signal) { - const handlerWithRemoval = () => { - signal.removeEventListener("abort", handlerWithRemoval); - handler(); - }; - signal.addEventListener("abort", handlerWithRemoval); - } -} -var init_abortController = __esm({ - "../lib/shared/src/common/abortController.ts"() { - "use strict"; - } -}); - -// ../lib/shared/src/ollama/chat-client.ts -function ollamaChatClient(params, cb, completionsEndpoint, logger2, signal) { - const log2 = logger2?.startCompletion(params, completionsEndpoint); - const model = params.model?.replace("ollama/", ""); - if (!model || !params.messages) { - log2?.onError("No model or messages"); - throw new Error("No model or messages"); - } - const ollamaChatParams = { - model, - messages: params.messages.map((msg) => { - return { - role: msg.speaker === "human" ? "user" : "assistant", - content: msg.text ?? "" - }; - }), - options: { - temperature: params.temperature, - top_k: params.topK, - top_p: params.topP, - tfs_z: params.maxTokensToSample - } - }; - fetch(new URL("/api/chat", OLLAMA_DEFAULT_URL).href, { - method: "POST", - body: JSON.stringify(ollamaChatParams), - headers: { - "Content-Type": "application/json" - }, - signal - }).then(async (response) => { - if (!response.body) { - log2?.onError("No response body"); - throw new Error("No response body"); - } - const reader = response.body.getReader(); - onAbort(signal, () => reader.cancel()); - let insertText = ""; - while (true) { - const { done, value } = await reader.read(); - if (done) { - cb.onComplete(); - break; - } - const textDecoder = new TextDecoder(); - const decoded = textDecoder.decode(value, { stream: true }); - const parsedLine = JSON.parse(decoded); - if (parsedLine.message) { - insertText += parsedLine.message.content; - cb.onChange(insertText); - } - } - const completionResponse = { - completion: insertText, - stopReason: "cody-request-finished" /* RequestFinished */ - }; - log2?.onComplete(completionResponse); - }); -} -var init_chat_client = __esm({ - "../lib/shared/src/ollama/chat-client.ts"() { - "use strict"; - init_ollama(); - init_abortController(); - } -}); - -// ../lib/shared/src/ollama/index.ts -var OLLAMA_DEFAULT_URL; -var init_ollama = __esm({ - "../lib/shared/src/ollama/index.ts"() { - "use strict"; - init_completions_client(); - OLLAMA_DEFAULT_URL = "http://localhost:11434"; - } -}); - -// ../lib/shared/src/models/dotcom.ts -var DEFAULT_DOT_COM_MODELS; -var init_dotcom = __esm({ - "../lib/shared/src/models/dotcom.ts"() { - "use strict"; - DEFAULT_DOT_COM_MODELS = [ - { - title: "Claude 2.0", - model: "anthropic/claude-2.0", - provider: "Anthropic", - default: true, - codyProOnly: false, - usage: ["chat" /* Chat */, "edit" /* Edit */] - }, - { - title: "Claude 2.1", - model: "anthropic/claude-2.1", - provider: "Anthropic", - default: false, - codyProOnly: true, - usage: ["chat" /* Chat */, "edit" /* Edit */] - }, - { - title: "Claude Instant", - model: "anthropic/claude-instant-1.2", - provider: "Anthropic", - default: false, - codyProOnly: true, - usage: ["chat" /* Chat */, "edit" /* Edit */] - }, - { - title: "Claude 3 Sonnet", - model: "anthropic/claude-3-sonnet-20240229", - provider: "Anthropic", - default: false, - codyProOnly: true, - usage: ["chat" /* Chat */, "edit" /* Edit */] - }, - { - title: "Claude 3 Opus", - model: "anthropic/claude-3-opus-20240229", - provider: "Anthropic", - default: false, - codyProOnly: true, - usage: ["chat" /* Chat */, "edit" /* Edit */] - }, - { - title: "GPT-3.5 Turbo", - model: "openai/gpt-3.5-turbo", - provider: "OpenAI", - default: false, - codyProOnly: true, - usage: ["chat" /* Chat */, "edit" /* Edit */] - }, - { - title: "GPT-4 Turbo Preview", - model: "openai/gpt-4-1106-preview", - provider: "OpenAI", - default: false, - codyProOnly: true, - usage: ["chat" /* Chat */, "edit" /* Edit */] - }, - { - title: "Mixtral 8x7B", - model: "fireworks/accounts/fireworks/models/mixtral-8x7b-instruct", - provider: "Mistral", - default: false, - codyProOnly: true, - // TODO: Improve prompt for Mixtral + Edit to see if we can use it there too. - usage: ["chat" /* Chat */] - } - ]; - } -}); - -// ../lib/shared/src/models/utils.ts -function getProviderName(name) { - const providerName = name.toLowerCase(); - switch (providerName) { - case "anthropic": - return "Anthropic"; - case "openai": - return "OpenAI"; - case "ollama": - return "Ollama"; - default: - return providerName; - } -} -function supportsFastPath(model) { - return model.startsWith("anthropic/claude-3"); -} -var init_utils2 = __esm({ - "../lib/shared/src/models/utils.ts"() { - "use strict"; - } -}); - -// ../lib/shared/src/models/index.ts -var ModelProvider; -var init_models = __esm({ - "../lib/shared/src/models/index.ts"() { - "use strict"; - init_logger(); - init_ollama(); - init_environments(); - init_dotcom(); - init_utils2(); - ModelProvider = class _ModelProvider { - constructor(model, usage, isDefaultModel = true) { - this.model = model; - this.usage = usage; - const splittedModel = model.split("/"); - this.provider = getProviderName(splittedModel[0]); - this.title = splittedModel[1]?.replaceAll("-", " "); - this.default = isDefaultModel; - } - default = false; - codyProOnly = false; - provider; - title; - // Providers available for non-dotcom instances - static privateProviders = /* @__PURE__ */ new Map(); - // Providers available for dotcom instances - static dotComProviders = DEFAULT_DOT_COM_MODELS; - // Providers available from local ollama instances - static ollamaProvidersEnabled = false; - static ollamaProviders = []; - static onConfigChange(enableOllamaModels) { - _ModelProvider.ollamaProvidersEnabled = enableOllamaModels; - _ModelProvider.ollamaProviders = []; - if (enableOllamaModels) { - _ModelProvider.getLocalOllamaModels(); - } - } - /** - * Fetches available Ollama models from the local Ollama server - * and adds them to the list of ollama providers. - */ - static getLocalOllamaModels() { - const isAgentTesting5 = process.env.CODY_SHIM_TESTING === "true"; - if (isAgentTesting5 || !_ModelProvider.ollamaProvidersEnabled) { - return; - } - fetch(new URL("/api/tags", OLLAMA_DEFAULT_URL).href).then((response) => response.json()).then( - (data) => { - const models = /* @__PURE__ */ new Set(); - for (const model of data.models) { - const name = `ollama/${model.model}`; - const newModel = new _ModelProvider(name, ["chat" /* Chat */, "edit" /* Edit */]); - models.add(newModel); - } - _ModelProvider.ollamaProviders = Array.from(models); - }, - (error) => { - const fetchFailedErrors = ["Failed to fetch", "fetch failed"]; - const isFetchFailed = fetchFailedErrors.some((err3) => error.toString().includes(err3)); - const serverErrorMsg = "Please make sure the Ollama server is up & running."; - logError("getLocalOllamaModels: failed ", isFetchFailed ? serverErrorMsg : error); - } - ); - } - /** - * Adds a new model provider, instantiated from the given model string, - * to the internal providers set. This allows new models to be added and - * made available for use. - */ - static add(provider) { - if (_ModelProvider.privateProviders.size) { - _ModelProvider.privateProviders.clear(); - } - _ModelProvider.privateProviders.set(provider.model.trim(), provider); - } - /** - * Gets the model providers based on the endpoint and current model. - * If endpoint is a dotcom endpoint, returns dotComProviders with ollama providers. - * If currentModel is provided, sets it as the default model. - */ - static get(type, endpoint, currentModel) { - const isDotComUser = !endpoint || endpoint && isDotCom(endpoint); - const models = (isDotComUser ? _ModelProvider.dotComProviders : Array.from(_ModelProvider.privateProviders.values())).concat(_ModelProvider.ollamaProviders).filter((model) => model.usage.includes(type)); - if (!isDotComUser) { - return models; - } - return models.map((model) => { - return { - ...model, - default: model.model === currentModel - }; - }); - } - }; - } -}); - -// ../lib/shared/src/chat/bot-response-multiplexer.ts -function splitAt(str, startIndex, endIndex) { - return [str.slice(0, startIndex), str.slice(endIndex === void 0 ? startIndex : endIndex)]; -} -function topicName(tag) { - const match2 = tag.match(/^<\/?([\dA-Za-z-]+)>$/); - if (!match2) { - throw new Error(`topic tag "${tag}" is malformed`); - } - return match2[1]; -} -var BotResponseMultiplexer; -var init_bot_response_multiplexer = __esm({ - "../lib/shared/src/chat/bot-response-multiplexer.ts"() { - "use strict"; - BotResponseMultiplexer = class _BotResponseMultiplexer { - /** - * The default topic. Messages without a specific topic are sent to the default - * topic subscriber, if any. - */ - static DEFAULT_TOPIC = "Assistant"; - // Matches topic open or close tags - static TOPIC_RE = /<$|<\/?([\dA-Za-z-]?$|[\dA-Za-z-]+>?)/m; - subs_ = /* @__PURE__ */ new Map(); - // The topic currently being addressed by the bot. A stack. - topics_ = []; - // Gets the topic on the top of the topic stack. - get currentTopic() { - return this.topics_.at(-1) || _BotResponseMultiplexer.DEFAULT_TOPIC; - } - // Buffers responses until topics can be parsed - buffer_ = ""; - publishInProgress_ = Promise.resolve(); - /** - * Subscribes to a topic in the bot response. Each topic can have only one subscriber at a time. New subscribers overwrite old ones. - * @param topic the string prefix to subscribe to. - * @param subscriber the handler for the content produced by the bot. - */ - sub(topic, subscriber2) { - if (!/^[\dA-Za-z-]+$/.test(topic)) { - throw new Error(`topics must be \\dA-Za-z-, was "${topic}`); - } - this.subs_.set(topic, subscriber2); - } - /** - * Notifies all subscribers that the bot response is complete. - */ - async notifyTurnComplete() { - await this.publishInProgress_; - if (this.buffer_) { - const content = this.buffer_; - this.buffer_ = ""; - await this.publishInTopic(this.currentTopic, content); - } - this.topics_ = []; - await Promise.all([...this.subs_.values()].map((subscriber2) => subscriber2.onTurnComplete())); - } - /** - * Parses part of a compound response from the bot and forwards as much as possible to - * subscribers. - * @param response the text of the next incremental response from the bot. - */ - publish(response) { - this.publishInProgress_ = this.publishInProgress_.then(() => this.publishStep(response)); - return this.publishInProgress_; - } - // This is basically a loose parser of an XML-like language which forwards - // incremental content to subscribers which handle specific tags. The parser - // is forgiving if tags are not closed in the right order. - async publishStep(response) { - this.buffer_ += response; - let last; - while (this.buffer_) { - if (last !== void 0 && last === this.buffer_.length) { - throw new Error(`did not make progress parsing: ${this.buffer_}`); - } - last = this.buffer_.length; - const match2 = this.buffer_.match(_BotResponseMultiplexer.TOPIC_RE); - if (!match2) { - await this.publishBufferUpTo(this.buffer_.length); - return; - } - if (match2.index === void 0) { - throw new TypeError("unreachable"); - } - if (match2.index) { - await this.publishBufferUpTo(match2.index); - continue; - } - const matchEnd = match2.index + match2[0].length; - const tagIsOpenTag = match2[0].length >= 2 && match2[0].at(1) !== "/"; - const tagIsComplete = match2[0].at(-1) === ">"; - if (!tagIsComplete) { - if (matchEnd === this.buffer_.length) { - return; - } - await this.publishBufferUpTo(matchEnd); - continue; - } - const topic = topicName(match2[0]); - if (!this.subs_.has(topic)) { - await this.publishBufferUpTo(matchEnd); - continue; - } - this.buffer_ = this.buffer_.slice(matchEnd); - if (tagIsOpenTag) { - this.topics_.push(topic); - } else { - while (this.topics_.length) { - if (this.topics_.pop() === topic) { - break; - } - } - } - } - } - // Publishes the content of `buffer_` up to `index` in the current topic. Discards the published content. - publishBufferUpTo(index) { - const [content, remaining] = splitAt(this.buffer_, index); - this.buffer_ = remaining; - return this.publishInTopic(this.currentTopic, content); - } - // Publishes one specific topic to its subscriber, if any. - async publishInTopic(topic, content) { - const sub = this.subs_.get(topic); - if (!sub) { - return; - } - return sub.onResponse(content); - } - }; - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/core.js -var require_core = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/core.js"(exports2, module2) { - (function(root, factory) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(); - } else if (typeof define === "function" && define.amd) { - define([], factory); - } else { - root.CryptoJS = factory(); - } - })(exports2, function() { - var CryptoJS = CryptoJS || function(Math2, undefined2) { - var crypto5; - if (typeof window !== "undefined" && window.crypto) { - crypto5 = window.crypto; - } - if (typeof self !== "undefined" && self.crypto) { - crypto5 = self.crypto; - } - if (typeof globalThis !== "undefined" && globalThis.crypto) { - crypto5 = globalThis.crypto; - } - if (!crypto5 && typeof window !== "undefined" && window.msCrypto) { - crypto5 = window.msCrypto; - } - if (!crypto5 && typeof global !== "undefined" && global.crypto) { - crypto5 = global.crypto; - } - if (!crypto5 && typeof require === "function") { - try { - crypto5 = require("crypto"); - } catch (err3) { - } - } - var cryptoSecureRandomInt = function() { - if (crypto5) { - if (typeof crypto5.getRandomValues === "function") { - try { - return crypto5.getRandomValues(new Uint32Array(1))[0]; - } catch (err3) { - } - } - if (typeof crypto5.randomBytes === "function") { - try { - return crypto5.randomBytes(4).readInt32LE(); - } catch (err3) { - } - } - } - throw new Error("Native crypto module could not be used to get secure random number."); - }; - var create2 = Object.create || function() { - function F() { - } - return function(obj2) { - var subtype; - F.prototype = obj2; - subtype = new F(); - F.prototype = null; - return subtype; - }; - }(); - var C2 = {}; - var C_lib = C2.lib = {}; - var Base = C_lib.Base = function() { - return { - /** - * Creates a new object that inherits from this object. - * - * @param {Object} overrides Properties to copy into the new object. - * - * @return {Object} The new object. - * - * @static - * - * @example - * - * var MyType = CryptoJS.lib.Base.extend({ - * field: 'value', - * - * method: function () { - * } - * }); - */ - extend: function(overrides) { - var subtype = create2(this); - if (overrides) { - subtype.mixIn(overrides); - } - if (!subtype.hasOwnProperty("init") || this.init === subtype.init) { - subtype.init = function() { - subtype.$super.init.apply(this, arguments); - }; - } - subtype.init.prototype = subtype; - subtype.$super = this; - return subtype; - }, - /** - * Extends this object and runs the init method. - * Arguments to create() will be passed to init(). - * - * @return {Object} The new object. - * - * @static - * - * @example - * - * var instance = MyType.create(); - */ - create: function() { - var instance2 = this.extend(); - instance2.init.apply(instance2, arguments); - return instance2; - }, - /** - * Initializes a newly created object. - * Override this method to add some logic when your objects are created. - * - * @example - * - * var MyType = CryptoJS.lib.Base.extend({ - * init: function () { - * // ... - * } - * }); - */ - init: function() { - }, - /** - * Copies properties into this object. - * - * @param {Object} properties The properties to mix in. - * - * @example - * - * MyType.mixIn({ - * field: 'value' - * }); - */ - mixIn: function(properties2) { - for (var propertyName in properties2) { - if (properties2.hasOwnProperty(propertyName)) { - this[propertyName] = properties2[propertyName]; - } - } - if (properties2.hasOwnProperty("toString")) { - this.toString = properties2.toString; - } - }, - /** - * Creates a copy of this object. - * - * @return {Object} The clone. - * - * @example - * - * var clone = instance.clone(); - */ - clone: function() { - return this.init.prototype.extend(this); - } - }; - }(); - var WordArray = C_lib.WordArray = Base.extend({ - /** - * Initializes a newly created word array. - * - * @param {Array} words (Optional) An array of 32-bit words. - * @param {number} sigBytes (Optional) The number of significant bytes in the words. - * - * @example - * - * var wordArray = CryptoJS.lib.WordArray.create(); - * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]); - * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6); - */ - init: function(words, sigBytes) { - words = this.words = words || []; - if (sigBytes != undefined2) { - this.sigBytes = sigBytes; - } else { - this.sigBytes = words.length * 4; - } - }, - /** - * Converts this word array to a string. - * - * @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex - * - * @return {string} The stringified word array. - * - * @example - * - * var string = wordArray + ''; - * var string = wordArray.toString(); - * var string = wordArray.toString(CryptoJS.enc.Utf8); - */ - toString: function(encoder) { - return (encoder || Hex).stringify(this); - }, - /** - * Concatenates a word array to this word array. - * - * @param {WordArray} wordArray The word array to append. - * - * @return {WordArray} This word array. - * - * @example - * - * wordArray1.concat(wordArray2); - */ - concat: function(wordArray) { - var thisWords = this.words; - var thatWords = wordArray.words; - var thisSigBytes = this.sigBytes; - var thatSigBytes = wordArray.sigBytes; - this.clamp(); - if (thisSigBytes % 4) { - for (var i = 0; i < thatSigBytes; i++) { - var thatByte = thatWords[i >>> 2] >>> 24 - i % 4 * 8 & 255; - thisWords[thisSigBytes + i >>> 2] |= thatByte << 24 - (thisSigBytes + i) % 4 * 8; - } - } else { - for (var j = 0; j < thatSigBytes; j += 4) { - thisWords[thisSigBytes + j >>> 2] = thatWords[j >>> 2]; - } - } - this.sigBytes += thatSigBytes; - return this; - }, - /** - * Removes insignificant bits. - * - * @example - * - * wordArray.clamp(); - */ - clamp: function() { - var words = this.words; - var sigBytes = this.sigBytes; - words[sigBytes >>> 2] &= 4294967295 << 32 - sigBytes % 4 * 8; - words.length = Math2.ceil(sigBytes / 4); - }, - /** - * Creates a copy of this word array. - * - * @return {WordArray} The clone. - * - * @example - * - * var clone = wordArray.clone(); - */ - clone: function() { - var clone = Base.clone.call(this); - clone.words = this.words.slice(0); - return clone; - }, - /** - * Creates a word array filled with random bytes. - * - * @param {number} nBytes The number of random bytes to generate. - * - * @return {WordArray} The random word array. - * - * @static - * - * @example - * - * var wordArray = CryptoJS.lib.WordArray.random(16); - */ - random: function(nBytes) { - var words = []; - for (var i = 0; i < nBytes; i += 4) { - words.push(cryptoSecureRandomInt()); - } - return new WordArray.init(words, nBytes); - } - }); - var C_enc = C2.enc = {}; - var Hex = C_enc.Hex = { - /** - * Converts a word array to a hex string. - * - * @param {WordArray} wordArray The word array. - * - * @return {string} The hex string. - * - * @static - * - * @example - * - * var hexString = CryptoJS.enc.Hex.stringify(wordArray); - */ - stringify: function(wordArray) { - var words = wordArray.words; - var sigBytes = wordArray.sigBytes; - var hexChars = []; - for (var i = 0; i < sigBytes; i++) { - var bite = words[i >>> 2] >>> 24 - i % 4 * 8 & 255; - hexChars.push((bite >>> 4).toString(16)); - hexChars.push((bite & 15).toString(16)); - } - return hexChars.join(""); - }, - /** - * Converts a hex string to a word array. - * - * @param {string} hexStr The hex string. - * - * @return {WordArray} The word array. - * - * @static - * - * @example - * - * var wordArray = CryptoJS.enc.Hex.parse(hexString); - */ - parse: function(hexStr) { - var hexStrLength = hexStr.length; - var words = []; - for (var i = 0; i < hexStrLength; i += 2) { - words[i >>> 3] |= parseInt(hexStr.substr(i, 2), 16) << 24 - i % 8 * 4; - } - return new WordArray.init(words, hexStrLength / 2); - } - }; - var Latin1 = C_enc.Latin1 = { - /** - * Converts a word array to a Latin1 string. - * - * @param {WordArray} wordArray The word array. - * - * @return {string} The Latin1 string. - * - * @static - * - * @example - * - * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray); - */ - stringify: function(wordArray) { - var words = wordArray.words; - var sigBytes = wordArray.sigBytes; - var latin1Chars = []; - for (var i = 0; i < sigBytes; i++) { - var bite = words[i >>> 2] >>> 24 - i % 4 * 8 & 255; - latin1Chars.push(String.fromCharCode(bite)); - } - return latin1Chars.join(""); - }, - /** - * Converts a Latin1 string to a word array. - * - * @param {string} latin1Str The Latin1 string. - * - * @return {WordArray} The word array. - * - * @static - * - * @example - * - * var wordArray = CryptoJS.enc.Latin1.parse(latin1String); - */ - parse: function(latin1Str) { - var latin1StrLength = latin1Str.length; - var words = []; - for (var i = 0; i < latin1StrLength; i++) { - words[i >>> 2] |= (latin1Str.charCodeAt(i) & 255) << 24 - i % 4 * 8; - } - return new WordArray.init(words, latin1StrLength); - } - }; - var Utf8 = C_enc.Utf8 = { - /** - * Converts a word array to a UTF-8 string. - * - * @param {WordArray} wordArray The word array. - * - * @return {string} The UTF-8 string. - * - * @static - * - * @example - * - * var utf8String = CryptoJS.enc.Utf8.stringify(wordArray); - */ - stringify: function(wordArray) { - try { - return decodeURIComponent(escape(Latin1.stringify(wordArray))); - } catch (e) { - throw new Error("Malformed UTF-8 data"); - } - }, - /** - * Converts a UTF-8 string to a word array. - * - * @param {string} utf8Str The UTF-8 string. - * - * @return {WordArray} The word array. - * - * @static - * - * @example - * - * var wordArray = CryptoJS.enc.Utf8.parse(utf8String); - */ - parse: function(utf8Str) { - return Latin1.parse(unescape(encodeURIComponent(utf8Str))); - } - }; - var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm = Base.extend({ - /** - * Resets this block algorithm's data buffer to its initial state. - * - * @example - * - * bufferedBlockAlgorithm.reset(); - */ - reset: function() { - this._data = new WordArray.init(); - this._nDataBytes = 0; - }, - /** - * Adds new data to this block algorithm's buffer. - * - * @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8. - * - * @example - * - * bufferedBlockAlgorithm._append('data'); - * bufferedBlockAlgorithm._append(wordArray); - */ - _append: function(data) { - if (typeof data == "string") { - data = Utf8.parse(data); - } - this._data.concat(data); - this._nDataBytes += data.sigBytes; - }, - /** - * Processes available data blocks. - * - * This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype. - * - * @param {boolean} doFlush Whether all blocks and partial blocks should be processed. - * - * @return {WordArray} The processed data. - * - * @example - * - * var processedData = bufferedBlockAlgorithm._process(); - * var processedData = bufferedBlockAlgorithm._process(!!'flush'); - */ - _process: function(doFlush) { - var processedWords; - var data = this._data; - var dataWords = data.words; - var dataSigBytes = data.sigBytes; - var blockSize = this.blockSize; - var blockSizeBytes = blockSize * 4; - var nBlocksReady = dataSigBytes / blockSizeBytes; - if (doFlush) { - nBlocksReady = Math2.ceil(nBlocksReady); - } else { - nBlocksReady = Math2.max((nBlocksReady | 0) - this._minBufferSize, 0); - } - var nWordsReady = nBlocksReady * blockSize; - var nBytesReady = Math2.min(nWordsReady * 4, dataSigBytes); - if (nWordsReady) { - for (var offset = 0; offset < nWordsReady; offset += blockSize) { - this._doProcessBlock(dataWords, offset); - } - processedWords = dataWords.splice(0, nWordsReady); - data.sigBytes -= nBytesReady; - } - return new WordArray.init(processedWords, nBytesReady); - }, - /** - * Creates a copy of this object. - * - * @return {Object} The clone. - * - * @example - * - * var clone = bufferedBlockAlgorithm.clone(); - */ - clone: function() { - var clone = Base.clone.call(this); - clone._data = this._data.clone(); - return clone; - }, - _minBufferSize: 0 - }); - var Hasher = C_lib.Hasher = BufferedBlockAlgorithm.extend({ - /** - * Configuration options. - */ - cfg: Base.extend(), - /** - * Initializes a newly created hasher. - * - * @param {Object} cfg (Optional) The configuration options to use for this hash computation. - * - * @example - * - * var hasher = CryptoJS.algo.SHA256.create(); - */ - init: function(cfg) { - this.cfg = this.cfg.extend(cfg); - this.reset(); - }, - /** - * Resets this hasher to its initial state. - * - * @example - * - * hasher.reset(); - */ - reset: function() { - BufferedBlockAlgorithm.reset.call(this); - this._doReset(); - }, - /** - * Updates this hasher with a message. - * - * @param {WordArray|string} messageUpdate The message to append. - * - * @return {Hasher} This hasher. - * - * @example - * - * hasher.update('message'); - * hasher.update(wordArray); - */ - update: function(messageUpdate) { - this._append(messageUpdate); - this._process(); - return this; - }, - /** - * Finalizes the hash computation. - * Note that the finalize operation is effectively a destructive, read-once operation. - * - * @param {WordArray|string} messageUpdate (Optional) A final message update. - * - * @return {WordArray} The hash. - * - * @example - * - * var hash = hasher.finalize(); - * var hash = hasher.finalize('message'); - * var hash = hasher.finalize(wordArray); - */ - finalize: function(messageUpdate) { - if (messageUpdate) { - this._append(messageUpdate); - } - var hash = this._doFinalize(); - return hash; - }, - blockSize: 512 / 32, - /** - * Creates a shortcut function to a hasher's object interface. - * - * @param {Hasher} hasher The hasher to create a helper for. - * - * @return {Function} The shortcut function. - * - * @static - * - * @example - * - * var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256); - */ - _createHelper: function(hasher) { - return function(message, cfg) { - return new hasher.init(cfg).finalize(message); - }; - }, - /** - * Creates a shortcut function to the HMAC's object interface. - * - * @param {Hasher} hasher The hasher to use in this HMAC helper. - * - * @return {Function} The shortcut function. - * - * @static - * - * @example - * - * var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256); - */ - _createHmacHelper: function(hasher) { - return function(message, key) { - return new C_algo.HMAC.init(hasher, key).finalize(message); - }; - } - }); - var C_algo = C2.algo = {}; - return C2; - }(Math); - return CryptoJS; - }); - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/x64-core.js -var require_x64_core = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/x64-core.js"(exports2, module2) { - (function(root, factory) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(require_core()); - } else if (typeof define === "function" && define.amd) { - define(["./core"], factory); - } else { - factory(root.CryptoJS); - } - })(exports2, function(CryptoJS) { - (function(undefined2) { - var C2 = CryptoJS; - var C_lib = C2.lib; - var Base = C_lib.Base; - var X32WordArray = C_lib.WordArray; - var C_x64 = C2.x64 = {}; - var X64Word = C_x64.Word = Base.extend({ - /** - * Initializes a newly created 64-bit word. - * - * @param {number} high The high 32 bits. - * @param {number} low The low 32 bits. - * - * @example - * - * var x64Word = CryptoJS.x64.Word.create(0x00010203, 0x04050607); - */ - init: function(high, low) { - this.high = high; - this.low = low; - } - /** - * Bitwise NOTs this word. - * - * @return {X64Word} A new x64-Word object after negating. - * - * @example - * - * var negated = x64Word.not(); - */ - // not: function () { - // var high = ~this.high; - // var low = ~this.low; - // return X64Word.create(high, low); - // }, - /** - * Bitwise ANDs this word with the passed word. - * - * @param {X64Word} word The x64-Word to AND with this word. - * - * @return {X64Word} A new x64-Word object after ANDing. - * - * @example - * - * var anded = x64Word.and(anotherX64Word); - */ - // and: function (word) { - // var high = this.high & word.high; - // var low = this.low & word.low; - // return X64Word.create(high, low); - // }, - /** - * Bitwise ORs this word with the passed word. - * - * @param {X64Word} word The x64-Word to OR with this word. - * - * @return {X64Word} A new x64-Word object after ORing. - * - * @example - * - * var ored = x64Word.or(anotherX64Word); - */ - // or: function (word) { - // var high = this.high | word.high; - // var low = this.low | word.low; - // return X64Word.create(high, low); - // }, - /** - * Bitwise XORs this word with the passed word. - * - * @param {X64Word} word The x64-Word to XOR with this word. - * - * @return {X64Word} A new x64-Word object after XORing. - * - * @example - * - * var xored = x64Word.xor(anotherX64Word); - */ - // xor: function (word) { - // var high = this.high ^ word.high; - // var low = this.low ^ word.low; - // return X64Word.create(high, low); - // }, - /** - * Shifts this word n bits to the left. - * - * @param {number} n The number of bits to shift. - * - * @return {X64Word} A new x64-Word object after shifting. - * - * @example - * - * var shifted = x64Word.shiftL(25); - */ - // shiftL: function (n) { - // if (n < 32) { - // var high = (this.high << n) | (this.low >>> (32 - n)); - // var low = this.low << n; - // } else { - // var high = this.low << (n - 32); - // var low = 0; - // } - // return X64Word.create(high, low); - // }, - /** - * Shifts this word n bits to the right. - * - * @param {number} n The number of bits to shift. - * - * @return {X64Word} A new x64-Word object after shifting. - * - * @example - * - * var shifted = x64Word.shiftR(7); - */ - // shiftR: function (n) { - // if (n < 32) { - // var low = (this.low >>> n) | (this.high << (32 - n)); - // var high = this.high >>> n; - // } else { - // var low = this.high >>> (n - 32); - // var high = 0; - // } - // return X64Word.create(high, low); - // }, - /** - * Rotates this word n bits to the left. - * - * @param {number} n The number of bits to rotate. - * - * @return {X64Word} A new x64-Word object after rotating. - * - * @example - * - * var rotated = x64Word.rotL(25); - */ - // rotL: function (n) { - // return this.shiftL(n).or(this.shiftR(64 - n)); - // }, - /** - * Rotates this word n bits to the right. - * - * @param {number} n The number of bits to rotate. - * - * @return {X64Word} A new x64-Word object after rotating. - * - * @example - * - * var rotated = x64Word.rotR(7); - */ - // rotR: function (n) { - // return this.shiftR(n).or(this.shiftL(64 - n)); - // }, - /** - * Adds this word with the passed word. - * - * @param {X64Word} word The x64-Word to add with this word. - * - * @return {X64Word} A new x64-Word object after adding. - * - * @example - * - * var added = x64Word.add(anotherX64Word); - */ - // add: function (word) { - // var low = (this.low + word.low) | 0; - // var carry = (low >>> 0) < (this.low >>> 0) ? 1 : 0; - // var high = (this.high + word.high + carry) | 0; - // return X64Word.create(high, low); - // } - }); - var X64WordArray = C_x64.WordArray = Base.extend({ - /** - * Initializes a newly created word array. - * - * @param {Array} words (Optional) An array of CryptoJS.x64.Word objects. - * @param {number} sigBytes (Optional) The number of significant bytes in the words. - * - * @example - * - * var wordArray = CryptoJS.x64.WordArray.create(); - * - * var wordArray = CryptoJS.x64.WordArray.create([ - * CryptoJS.x64.Word.create(0x00010203, 0x04050607), - * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f) - * ]); - * - * var wordArray = CryptoJS.x64.WordArray.create([ - * CryptoJS.x64.Word.create(0x00010203, 0x04050607), - * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f) - * ], 10); - */ - init: function(words, sigBytes) { - words = this.words = words || []; - if (sigBytes != undefined2) { - this.sigBytes = sigBytes; - } else { - this.sigBytes = words.length * 8; - } - }, - /** - * Converts this 64-bit word array to a 32-bit word array. - * - * @return {CryptoJS.lib.WordArray} This word array's data as a 32-bit word array. - * - * @example - * - * var x32WordArray = x64WordArray.toX32(); - */ - toX32: function() { - var x64Words = this.words; - var x64WordsLength = x64Words.length; - var x32Words = []; - for (var i = 0; i < x64WordsLength; i++) { - var x64Word = x64Words[i]; - x32Words.push(x64Word.high); - x32Words.push(x64Word.low); - } - return X32WordArray.create(x32Words, this.sigBytes); - }, - /** - * Creates a copy of this word array. - * - * @return {X64WordArray} The clone. - * - * @example - * - * var clone = x64WordArray.clone(); - */ - clone: function() { - var clone = Base.clone.call(this); - var words = clone.words = this.words.slice(0); - var wordsLength = words.length; - for (var i = 0; i < wordsLength; i++) { - words[i] = words[i].clone(); - } - return clone; - } - }); - })(); - return CryptoJS; - }); - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/lib-typedarrays.js -var require_lib_typedarrays = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/lib-typedarrays.js"(exports2, module2) { - (function(root, factory) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(require_core()); - } else if (typeof define === "function" && define.amd) { - define(["./core"], factory); - } else { - factory(root.CryptoJS); - } - })(exports2, function(CryptoJS) { - (function() { - if (typeof ArrayBuffer != "function") { - return; - } - var C2 = CryptoJS; - var C_lib = C2.lib; - var WordArray = C_lib.WordArray; - var superInit = WordArray.init; - var subInit = WordArray.init = function(typedArray) { - if (typedArray instanceof ArrayBuffer) { - typedArray = new Uint8Array(typedArray); - } - if (typedArray instanceof Int8Array || typeof Uint8ClampedArray !== "undefined" && typedArray instanceof Uint8ClampedArray || typedArray instanceof Int16Array || typedArray instanceof Uint16Array || typedArray instanceof Int32Array || typedArray instanceof Uint32Array || typedArray instanceof Float32Array || typedArray instanceof Float64Array) { - typedArray = new Uint8Array(typedArray.buffer, typedArray.byteOffset, typedArray.byteLength); - } - if (typedArray instanceof Uint8Array) { - var typedArrayByteLength = typedArray.byteLength; - var words = []; - for (var i = 0; i < typedArrayByteLength; i++) { - words[i >>> 2] |= typedArray[i] << 24 - i % 4 * 8; - } - superInit.call(this, words, typedArrayByteLength); - } else { - superInit.apply(this, arguments); - } - }; - subInit.prototype = WordArray; - })(); - return CryptoJS.lib.WordArray; - }); - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf16.js -var require_enc_utf16 = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf16.js"(exports2, module2) { - (function(root, factory) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(require_core()); - } else if (typeof define === "function" && define.amd) { - define(["./core"], factory); - } else { - factory(root.CryptoJS); - } - })(exports2, function(CryptoJS) { - (function() { - var C2 = CryptoJS; - var C_lib = C2.lib; - var WordArray = C_lib.WordArray; - var C_enc = C2.enc; - var Utf16BE = C_enc.Utf16 = C_enc.Utf16BE = { - /** - * Converts a word array to a UTF-16 BE string. - * - * @param {WordArray} wordArray The word array. - * - * @return {string} The UTF-16 BE string. - * - * @static - * - * @example - * - * var utf16String = CryptoJS.enc.Utf16.stringify(wordArray); - */ - stringify: function(wordArray) { - var words = wordArray.words; - var sigBytes = wordArray.sigBytes; - var utf16Chars = []; - for (var i = 0; i < sigBytes; i += 2) { - var codePoint = words[i >>> 2] >>> 16 - i % 4 * 8 & 65535; - utf16Chars.push(String.fromCharCode(codePoint)); - } - return utf16Chars.join(""); - }, - /** - * Converts a UTF-16 BE string to a word array. - * - * @param {string} utf16Str The UTF-16 BE string. - * - * @return {WordArray} The word array. - * - * @static - * - * @example - * - * var wordArray = CryptoJS.enc.Utf16.parse(utf16String); - */ - parse: function(utf16Str) { - var utf16StrLength = utf16Str.length; - var words = []; - for (var i = 0; i < utf16StrLength; i++) { - words[i >>> 1] |= utf16Str.charCodeAt(i) << 16 - i % 2 * 16; - } - return WordArray.create(words, utf16StrLength * 2); - } - }; - C_enc.Utf16LE = { - /** - * Converts a word array to a UTF-16 LE string. - * - * @param {WordArray} wordArray The word array. - * - * @return {string} The UTF-16 LE string. - * - * @static - * - * @example - * - * var utf16Str = CryptoJS.enc.Utf16LE.stringify(wordArray); - */ - stringify: function(wordArray) { - var words = wordArray.words; - var sigBytes = wordArray.sigBytes; - var utf16Chars = []; - for (var i = 0; i < sigBytes; i += 2) { - var codePoint = swapEndian(words[i >>> 2] >>> 16 - i % 4 * 8 & 65535); - utf16Chars.push(String.fromCharCode(codePoint)); - } - return utf16Chars.join(""); - }, - /** - * Converts a UTF-16 LE string to a word array. - * - * @param {string} utf16Str The UTF-16 LE string. - * - * @return {WordArray} The word array. - * - * @static - * - * @example - * - * var wordArray = CryptoJS.enc.Utf16LE.parse(utf16Str); - */ - parse: function(utf16Str) { - var utf16StrLength = utf16Str.length; - var words = []; - for (var i = 0; i < utf16StrLength; i++) { - words[i >>> 1] |= swapEndian(utf16Str.charCodeAt(i) << 16 - i % 2 * 16); - } - return WordArray.create(words, utf16StrLength * 2); - } - }; - function swapEndian(word) { - return word << 8 & 4278255360 | word >>> 8 & 16711935; - } - })(); - return CryptoJS.enc.Utf16; - }); - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64.js -var require_enc_base64 = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64.js"(exports2, module2) { - (function(root, factory) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(require_core()); - } else if (typeof define === "function" && define.amd) { - define(["./core"], factory); - } else { - factory(root.CryptoJS); - } - })(exports2, function(CryptoJS) { - (function() { - var C2 = CryptoJS; - var C_lib = C2.lib; - var WordArray = C_lib.WordArray; - var C_enc = C2.enc; - var Base64 = C_enc.Base64 = { - /** - * Converts a word array to a Base64 string. - * - * @param {WordArray} wordArray The word array. - * - * @return {string} The Base64 string. - * - * @static - * - * @example - * - * var base64String = CryptoJS.enc.Base64.stringify(wordArray); - */ - stringify: function(wordArray) { - var words = wordArray.words; - var sigBytes = wordArray.sigBytes; - var map = this._map; - wordArray.clamp(); - var base64Chars = []; - for (var i = 0; i < sigBytes; i += 3) { - var byte1 = words[i >>> 2] >>> 24 - i % 4 * 8 & 255; - var byte2 = words[i + 1 >>> 2] >>> 24 - (i + 1) % 4 * 8 & 255; - var byte3 = words[i + 2 >>> 2] >>> 24 - (i + 2) % 4 * 8 & 255; - var triplet = byte1 << 16 | byte2 << 8 | byte3; - for (var j = 0; j < 4 && i + j * 0.75 < sigBytes; j++) { - base64Chars.push(map.charAt(triplet >>> 6 * (3 - j) & 63)); - } - } - var paddingChar = map.charAt(64); - if (paddingChar) { - while (base64Chars.length % 4) { - base64Chars.push(paddingChar); - } - } - return base64Chars.join(""); - }, - /** - * Converts a Base64 string to a word array. - * - * @param {string} base64Str The Base64 string. - * - * @return {WordArray} The word array. - * - * @static - * - * @example - * - * var wordArray = CryptoJS.enc.Base64.parse(base64String); - */ - parse: function(base64Str) { - var base64StrLength = base64Str.length; - var map = this._map; - var reverseMap = this._reverseMap; - if (!reverseMap) { - reverseMap = this._reverseMap = []; - for (var j = 0; j < map.length; j++) { - reverseMap[map.charCodeAt(j)] = j; - } - } - var paddingChar = map.charAt(64); - if (paddingChar) { - var paddingIndex = base64Str.indexOf(paddingChar); - if (paddingIndex !== -1) { - base64StrLength = paddingIndex; - } - } - return parseLoop(base64Str, base64StrLength, reverseMap); - }, - _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" - }; - function parseLoop(base64Str, base64StrLength, reverseMap) { - var words = []; - var nBytes = 0; - for (var i = 0; i < base64StrLength; i++) { - if (i % 4) { - var bits1 = reverseMap[base64Str.charCodeAt(i - 1)] << i % 4 * 2; - var bits2 = reverseMap[base64Str.charCodeAt(i)] >>> 6 - i % 4 * 2; - var bitsCombined = bits1 | bits2; - words[nBytes >>> 2] |= bitsCombined << 24 - nBytes % 4 * 8; - nBytes++; - } - } - return WordArray.create(words, nBytes); - } - })(); - return CryptoJS.enc.Base64; - }); - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64url.js -var require_enc_base64url = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64url.js"(exports2, module2) { - (function(root, factory) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(require_core()); - } else if (typeof define === "function" && define.amd) { - define(["./core"], factory); - } else { - factory(root.CryptoJS); - } - })(exports2, function(CryptoJS) { - (function() { - var C2 = CryptoJS; - var C_lib = C2.lib; - var WordArray = C_lib.WordArray; - var C_enc = C2.enc; - var Base64url = C_enc.Base64url = { - /** - * Converts a word array to a Base64url string. - * - * @param {WordArray} wordArray The word array. - * - * @param {boolean} urlSafe Whether to use url safe - * - * @return {string} The Base64url string. - * - * @static - * - * @example - * - * var base64String = CryptoJS.enc.Base64url.stringify(wordArray); - */ - stringify: function(wordArray, urlSafe) { - if (urlSafe === void 0) { - urlSafe = true; - } - var words = wordArray.words; - var sigBytes = wordArray.sigBytes; - var map = urlSafe ? this._safe_map : this._map; - wordArray.clamp(); - var base64Chars = []; - for (var i = 0; i < sigBytes; i += 3) { - var byte1 = words[i >>> 2] >>> 24 - i % 4 * 8 & 255; - var byte2 = words[i + 1 >>> 2] >>> 24 - (i + 1) % 4 * 8 & 255; - var byte3 = words[i + 2 >>> 2] >>> 24 - (i + 2) % 4 * 8 & 255; - var triplet = byte1 << 16 | byte2 << 8 | byte3; - for (var j = 0; j < 4 && i + j * 0.75 < sigBytes; j++) { - base64Chars.push(map.charAt(triplet >>> 6 * (3 - j) & 63)); - } - } - var paddingChar = map.charAt(64); - if (paddingChar) { - while (base64Chars.length % 4) { - base64Chars.push(paddingChar); - } - } - return base64Chars.join(""); - }, - /** - * Converts a Base64url string to a word array. - * - * @param {string} base64Str The Base64url string. - * - * @param {boolean} urlSafe Whether to use url safe - * - * @return {WordArray} The word array. - * - * @static - * - * @example - * - * var wordArray = CryptoJS.enc.Base64url.parse(base64String); - */ - parse: function(base64Str, urlSafe) { - if (urlSafe === void 0) { - urlSafe = true; - } - var base64StrLength = base64Str.length; - var map = urlSafe ? this._safe_map : this._map; - var reverseMap = this._reverseMap; - if (!reverseMap) { - reverseMap = this._reverseMap = []; - for (var j = 0; j < map.length; j++) { - reverseMap[map.charCodeAt(j)] = j; - } - } - var paddingChar = map.charAt(64); - if (paddingChar) { - var paddingIndex = base64Str.indexOf(paddingChar); - if (paddingIndex !== -1) { - base64StrLength = paddingIndex; - } - } - return parseLoop(base64Str, base64StrLength, reverseMap); - }, - _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", - _safe_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_" - }; - function parseLoop(base64Str, base64StrLength, reverseMap) { - var words = []; - var nBytes = 0; - for (var i = 0; i < base64StrLength; i++) { - if (i % 4) { - var bits1 = reverseMap[base64Str.charCodeAt(i - 1)] << i % 4 * 2; - var bits2 = reverseMap[base64Str.charCodeAt(i)] >>> 6 - i % 4 * 2; - var bitsCombined = bits1 | bits2; - words[nBytes >>> 2] |= bitsCombined << 24 - nBytes % 4 * 8; - nBytes++; - } - } - return WordArray.create(words, nBytes); - } - })(); - return CryptoJS.enc.Base64url; - }); - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/md5.js -var require_md5 = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/md5.js"(exports2, module2) { - (function(root, factory) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(require_core()); - } else if (typeof define === "function" && define.amd) { - define(["./core"], factory); - } else { - factory(root.CryptoJS); - } - })(exports2, function(CryptoJS) { - (function(Math2) { - var C2 = CryptoJS; - var C_lib = C2.lib; - var WordArray = C_lib.WordArray; - var Hasher = C_lib.Hasher; - var C_algo = C2.algo; - var T = []; - (function() { - for (var i = 0; i < 64; i++) { - T[i] = Math2.abs(Math2.sin(i + 1)) * 4294967296 | 0; - } - })(); - var MD5 = C_algo.MD5 = Hasher.extend({ - _doReset: function() { - this._hash = new WordArray.init([ - 1732584193, - 4023233417, - 2562383102, - 271733878 - ]); - }, - _doProcessBlock: function(M, offset) { - for (var i = 0; i < 16; i++) { - var offset_i = offset + i; - var M_offset_i = M[offset_i]; - M[offset_i] = (M_offset_i << 8 | M_offset_i >>> 24) & 16711935 | (M_offset_i << 24 | M_offset_i >>> 8) & 4278255360; - } - var H = this._hash.words; - var M_offset_0 = M[offset + 0]; - var M_offset_1 = M[offset + 1]; - var M_offset_2 = M[offset + 2]; - var M_offset_3 = M[offset + 3]; - var M_offset_4 = M[offset + 4]; - var M_offset_5 = M[offset + 5]; - var M_offset_6 = M[offset + 6]; - var M_offset_7 = M[offset + 7]; - var M_offset_8 = M[offset + 8]; - var M_offset_9 = M[offset + 9]; - var M_offset_10 = M[offset + 10]; - var M_offset_11 = M[offset + 11]; - var M_offset_12 = M[offset + 12]; - var M_offset_13 = M[offset + 13]; - var M_offset_14 = M[offset + 14]; - var M_offset_15 = M[offset + 15]; - var a = H[0]; - var b = H[1]; - var c = H[2]; - var d = H[3]; - a = FF(a, b, c, d, M_offset_0, 7, T[0]); - d = FF(d, a, b, c, M_offset_1, 12, T[1]); - c = FF(c, d, a, b, M_offset_2, 17, T[2]); - b = FF(b, c, d, a, M_offset_3, 22, T[3]); - a = FF(a, b, c, d, M_offset_4, 7, T[4]); - d = FF(d, a, b, c, M_offset_5, 12, T[5]); - c = FF(c, d, a, b, M_offset_6, 17, T[6]); - b = FF(b, c, d, a, M_offset_7, 22, T[7]); - a = FF(a, b, c, d, M_offset_8, 7, T[8]); - d = FF(d, a, b, c, M_offset_9, 12, T[9]); - c = FF(c, d, a, b, M_offset_10, 17, T[10]); - b = FF(b, c, d, a, M_offset_11, 22, T[11]); - a = FF(a, b, c, d, M_offset_12, 7, T[12]); - d = FF(d, a, b, c, M_offset_13, 12, T[13]); - c = FF(c, d, a, b, M_offset_14, 17, T[14]); - b = FF(b, c, d, a, M_offset_15, 22, T[15]); - a = GG(a, b, c, d, M_offset_1, 5, T[16]); - d = GG(d, a, b, c, M_offset_6, 9, T[17]); - c = GG(c, d, a, b, M_offset_11, 14, T[18]); - b = GG(b, c, d, a, M_offset_0, 20, T[19]); - a = GG(a, b, c, d, M_offset_5, 5, T[20]); - d = GG(d, a, b, c, M_offset_10, 9, T[21]); - c = GG(c, d, a, b, M_offset_15, 14, T[22]); - b = GG(b, c, d, a, M_offset_4, 20, T[23]); - a = GG(a, b, c, d, M_offset_9, 5, T[24]); - d = GG(d, a, b, c, M_offset_14, 9, T[25]); - c = GG(c, d, a, b, M_offset_3, 14, T[26]); - b = GG(b, c, d, a, M_offset_8, 20, T[27]); - a = GG(a, b, c, d, M_offset_13, 5, T[28]); - d = GG(d, a, b, c, M_offset_2, 9, T[29]); - c = GG(c, d, a, b, M_offset_7, 14, T[30]); - b = GG(b, c, d, a, M_offset_12, 20, T[31]); - a = HH(a, b, c, d, M_offset_5, 4, T[32]); - d = HH(d, a, b, c, M_offset_8, 11, T[33]); - c = HH(c, d, a, b, M_offset_11, 16, T[34]); - b = HH(b, c, d, a, M_offset_14, 23, T[35]); - a = HH(a, b, c, d, M_offset_1, 4, T[36]); - d = HH(d, a, b, c, M_offset_4, 11, T[37]); - c = HH(c, d, a, b, M_offset_7, 16, T[38]); - b = HH(b, c, d, a, M_offset_10, 23, T[39]); - a = HH(a, b, c, d, M_offset_13, 4, T[40]); - d = HH(d, a, b, c, M_offset_0, 11, T[41]); - c = HH(c, d, a, b, M_offset_3, 16, T[42]); - b = HH(b, c, d, a, M_offset_6, 23, T[43]); - a = HH(a, b, c, d, M_offset_9, 4, T[44]); - d = HH(d, a, b, c, M_offset_12, 11, T[45]); - c = HH(c, d, a, b, M_offset_15, 16, T[46]); - b = HH(b, c, d, a, M_offset_2, 23, T[47]); - a = II(a, b, c, d, M_offset_0, 6, T[48]); - d = II(d, a, b, c, M_offset_7, 10, T[49]); - c = II(c, d, a, b, M_offset_14, 15, T[50]); - b = II(b, c, d, a, M_offset_5, 21, T[51]); - a = II(a, b, c, d, M_offset_12, 6, T[52]); - d = II(d, a, b, c, M_offset_3, 10, T[53]); - c = II(c, d, a, b, M_offset_10, 15, T[54]); - b = II(b, c, d, a, M_offset_1, 21, T[55]); - a = II(a, b, c, d, M_offset_8, 6, T[56]); - d = II(d, a, b, c, M_offset_15, 10, T[57]); - c = II(c, d, a, b, M_offset_6, 15, T[58]); - b = II(b, c, d, a, M_offset_13, 21, T[59]); - a = II(a, b, c, d, M_offset_4, 6, T[60]); - d = II(d, a, b, c, M_offset_11, 10, T[61]); - c = II(c, d, a, b, M_offset_2, 15, T[62]); - b = II(b, c, d, a, M_offset_9, 21, T[63]); - H[0] = H[0] + a | 0; - H[1] = H[1] + b | 0; - H[2] = H[2] + c | 0; - H[3] = H[3] + d | 0; - }, - _doFinalize: function() { - var data = this._data; - var dataWords = data.words; - var nBitsTotal = this._nDataBytes * 8; - var nBitsLeft = data.sigBytes * 8; - dataWords[nBitsLeft >>> 5] |= 128 << 24 - nBitsLeft % 32; - var nBitsTotalH = Math2.floor(nBitsTotal / 4294967296); - var nBitsTotalL = nBitsTotal; - dataWords[(nBitsLeft + 64 >>> 9 << 4) + 15] = (nBitsTotalH << 8 | nBitsTotalH >>> 24) & 16711935 | (nBitsTotalH << 24 | nBitsTotalH >>> 8) & 4278255360; - dataWords[(nBitsLeft + 64 >>> 9 << 4) + 14] = (nBitsTotalL << 8 | nBitsTotalL >>> 24) & 16711935 | (nBitsTotalL << 24 | nBitsTotalL >>> 8) & 4278255360; - data.sigBytes = (dataWords.length + 1) * 4; - this._process(); - var hash = this._hash; - var H = hash.words; - for (var i = 0; i < 4; i++) { - var H_i = H[i]; - H[i] = (H_i << 8 | H_i >>> 24) & 16711935 | (H_i << 24 | H_i >>> 8) & 4278255360; - } - return hash; - }, - clone: function() { - var clone = Hasher.clone.call(this); - clone._hash = this._hash.clone(); - return clone; - } - }); - function FF(a, b, c, d, x, s, t) { - var n = a + (b & c | ~b & d) + x + t; - return (n << s | n >>> 32 - s) + b; - } - function GG(a, b, c, d, x, s, t) { - var n = a + (b & d | c & ~d) + x + t; - return (n << s | n >>> 32 - s) + b; - } - function HH(a, b, c, d, x, s, t) { - var n = a + (b ^ c ^ d) + x + t; - return (n << s | n >>> 32 - s) + b; - } - function II(a, b, c, d, x, s, t) { - var n = a + (c ^ (b | ~d)) + x + t; - return (n << s | n >>> 32 - s) + b; - } - C2.MD5 = Hasher._createHelper(MD5); - C2.HmacMD5 = Hasher._createHmacHelper(MD5); - })(Math); - return CryptoJS.MD5; - }); - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha1.js -var require_sha1 = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha1.js"(exports2, module2) { - (function(root, factory) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(require_core()); - } else if (typeof define === "function" && define.amd) { - define(["./core"], factory); - } else { - factory(root.CryptoJS); - } - })(exports2, function(CryptoJS) { - (function() { - var C2 = CryptoJS; - var C_lib = C2.lib; - var WordArray = C_lib.WordArray; - var Hasher = C_lib.Hasher; - var C_algo = C2.algo; - var W = []; - var SHA1 = C_algo.SHA1 = Hasher.extend({ - _doReset: function() { - this._hash = new WordArray.init([ - 1732584193, - 4023233417, - 2562383102, - 271733878, - 3285377520 - ]); - }, - _doProcessBlock: function(M, offset) { - var H = this._hash.words; - var a = H[0]; - var b = H[1]; - var c = H[2]; - var d = H[3]; - var e = H[4]; - for (var i = 0; i < 80; i++) { - if (i < 16) { - W[i] = M[offset + i] | 0; - } else { - var n = W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16]; - W[i] = n << 1 | n >>> 31; - } - var t = (a << 5 | a >>> 27) + e + W[i]; - if (i < 20) { - t += (b & c | ~b & d) + 1518500249; - } else if (i < 40) { - t += (b ^ c ^ d) + 1859775393; - } else if (i < 60) { - t += (b & c | b & d | c & d) - 1894007588; - } else { - t += (b ^ c ^ d) - 899497514; - } - e = d; - d = c; - c = b << 30 | b >>> 2; - b = a; - a = t; - } - H[0] = H[0] + a | 0; - H[1] = H[1] + b | 0; - H[2] = H[2] + c | 0; - H[3] = H[3] + d | 0; - H[4] = H[4] + e | 0; - }, - _doFinalize: function() { - var data = this._data; - var dataWords = data.words; - var nBitsTotal = this._nDataBytes * 8; - var nBitsLeft = data.sigBytes * 8; - dataWords[nBitsLeft >>> 5] |= 128 << 24 - nBitsLeft % 32; - dataWords[(nBitsLeft + 64 >>> 9 << 4) + 14] = Math.floor(nBitsTotal / 4294967296); - dataWords[(nBitsLeft + 64 >>> 9 << 4) + 15] = nBitsTotal; - data.sigBytes = dataWords.length * 4; - this._process(); - return this._hash; - }, - clone: function() { - var clone = Hasher.clone.call(this); - clone._hash = this._hash.clone(); - return clone; - } - }); - C2.SHA1 = Hasher._createHelper(SHA1); - C2.HmacSHA1 = Hasher._createHmacHelper(SHA1); - })(); - return CryptoJS.SHA1; - }); - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha256.js -var require_sha256 = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha256.js"(exports2, module2) { - (function(root, factory) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(require_core()); - } else if (typeof define === "function" && define.amd) { - define(["./core"], factory); - } else { - factory(root.CryptoJS); - } - })(exports2, function(CryptoJS) { - (function(Math2) { - var C2 = CryptoJS; - var C_lib = C2.lib; - var WordArray = C_lib.WordArray; - var Hasher = C_lib.Hasher; - var C_algo = C2.algo; - var H = []; - var K = []; - (function() { - function isPrime(n2) { - var sqrtN = Math2.sqrt(n2); - for (var factor = 2; factor <= sqrtN; factor++) { - if (!(n2 % factor)) { - return false; - } - } - return true; - } - function getFractionalBits(n2) { - return (n2 - (n2 | 0)) * 4294967296 | 0; - } - var n = 2; - var nPrime = 0; - while (nPrime < 64) { - if (isPrime(n)) { - if (nPrime < 8) { - H[nPrime] = getFractionalBits(Math2.pow(n, 1 / 2)); - } - K[nPrime] = getFractionalBits(Math2.pow(n, 1 / 3)); - nPrime++; - } - n++; - } - })(); - var W = []; - var SHA2563 = C_algo.SHA256 = Hasher.extend({ - _doReset: function() { - this._hash = new WordArray.init(H.slice(0)); - }, - _doProcessBlock: function(M, offset) { - var H2 = this._hash.words; - var a = H2[0]; - var b = H2[1]; - var c = H2[2]; - var d = H2[3]; - var e = H2[4]; - var f = H2[5]; - var g = H2[6]; - var h = H2[7]; - for (var i = 0; i < 64; i++) { - if (i < 16) { - W[i] = M[offset + i] | 0; - } else { - var gamma0x = W[i - 15]; - var gamma0 = (gamma0x << 25 | gamma0x >>> 7) ^ (gamma0x << 14 | gamma0x >>> 18) ^ gamma0x >>> 3; - var gamma1x = W[i - 2]; - var gamma1 = (gamma1x << 15 | gamma1x >>> 17) ^ (gamma1x << 13 | gamma1x >>> 19) ^ gamma1x >>> 10; - W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16]; - } - var ch = e & f ^ ~e & g; - var maj = a & b ^ a & c ^ b & c; - var sigma0 = (a << 30 | a >>> 2) ^ (a << 19 | a >>> 13) ^ (a << 10 | a >>> 22); - var sigma1 = (e << 26 | e >>> 6) ^ (e << 21 | e >>> 11) ^ (e << 7 | e >>> 25); - var t1 = h + sigma1 + ch + K[i] + W[i]; - var t2 = sigma0 + maj; - h = g; - g = f; - f = e; - e = d + t1 | 0; - d = c; - c = b; - b = a; - a = t1 + t2 | 0; - } - H2[0] = H2[0] + a | 0; - H2[1] = H2[1] + b | 0; - H2[2] = H2[2] + c | 0; - H2[3] = H2[3] + d | 0; - H2[4] = H2[4] + e | 0; - H2[5] = H2[5] + f | 0; - H2[6] = H2[6] + g | 0; - H2[7] = H2[7] + h | 0; - }, - _doFinalize: function() { - var data = this._data; - var dataWords = data.words; - var nBitsTotal = this._nDataBytes * 8; - var nBitsLeft = data.sigBytes * 8; - dataWords[nBitsLeft >>> 5] |= 128 << 24 - nBitsLeft % 32; - dataWords[(nBitsLeft + 64 >>> 9 << 4) + 14] = Math2.floor(nBitsTotal / 4294967296); - dataWords[(nBitsLeft + 64 >>> 9 << 4) + 15] = nBitsTotal; - data.sigBytes = dataWords.length * 4; - this._process(); - return this._hash; - }, - clone: function() { - var clone = Hasher.clone.call(this); - clone._hash = this._hash.clone(); - return clone; - } - }); - C2.SHA256 = Hasher._createHelper(SHA2563); - C2.HmacSHA256 = Hasher._createHmacHelper(SHA2563); - })(Math); - return CryptoJS.SHA256; - }); - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha224.js -var require_sha224 = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha224.js"(exports2, module2) { - (function(root, factory, undef) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(require_core(), require_sha256()); - } else if (typeof define === "function" && define.amd) { - define(["./core", "./sha256"], factory); - } else { - factory(root.CryptoJS); - } - })(exports2, function(CryptoJS) { - (function() { - var C2 = CryptoJS; - var C_lib = C2.lib; - var WordArray = C_lib.WordArray; - var C_algo = C2.algo; - var SHA2563 = C_algo.SHA256; - var SHA224 = C_algo.SHA224 = SHA2563.extend({ - _doReset: function() { - this._hash = new WordArray.init([ - 3238371032, - 914150663, - 812702999, - 4144912697, - 4290775857, - 1750603025, - 1694076839, - 3204075428 - ]); - }, - _doFinalize: function() { - var hash = SHA2563._doFinalize.call(this); - hash.sigBytes -= 4; - return hash; - } - }); - C2.SHA224 = SHA2563._createHelper(SHA224); - C2.HmacSHA224 = SHA2563._createHmacHelper(SHA224); - })(); - return CryptoJS.SHA224; - }); - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha512.js -var require_sha512 = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha512.js"(exports2, module2) { - (function(root, factory, undef) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(require_core(), require_x64_core()); - } else if (typeof define === "function" && define.amd) { - define(["./core", "./x64-core"], factory); - } else { - factory(root.CryptoJS); - } - })(exports2, function(CryptoJS) { - (function() { - var C2 = CryptoJS; - var C_lib = C2.lib; - var Hasher = C_lib.Hasher; - var C_x64 = C2.x64; - var X64Word = C_x64.Word; - var X64WordArray = C_x64.WordArray; - var C_algo = C2.algo; - function X64Word_create() { - return X64Word.create.apply(X64Word, arguments); - } - var K = [ - X64Word_create(1116352408, 3609767458), - X64Word_create(1899447441, 602891725), - X64Word_create(3049323471, 3964484399), - X64Word_create(3921009573, 2173295548), - X64Word_create(961987163, 4081628472), - X64Word_create(1508970993, 3053834265), - X64Word_create(2453635748, 2937671579), - X64Word_create(2870763221, 3664609560), - X64Word_create(3624381080, 2734883394), - X64Word_create(310598401, 1164996542), - X64Word_create(607225278, 1323610764), - X64Word_create(1426881987, 3590304994), - X64Word_create(1925078388, 4068182383), - X64Word_create(2162078206, 991336113), - X64Word_create(2614888103, 633803317), - X64Word_create(3248222580, 3479774868), - X64Word_create(3835390401, 2666613458), - X64Word_create(4022224774, 944711139), - X64Word_create(264347078, 2341262773), - X64Word_create(604807628, 2007800933), - X64Word_create(770255983, 1495990901), - X64Word_create(1249150122, 1856431235), - X64Word_create(1555081692, 3175218132), - X64Word_create(1996064986, 2198950837), - X64Word_create(2554220882, 3999719339), - X64Word_create(2821834349, 766784016), - X64Word_create(2952996808, 2566594879), - X64Word_create(3210313671, 3203337956), - X64Word_create(3336571891, 1034457026), - X64Word_create(3584528711, 2466948901), - X64Word_create(113926993, 3758326383), - X64Word_create(338241895, 168717936), - X64Word_create(666307205, 1188179964), - X64Word_create(773529912, 1546045734), - X64Word_create(1294757372, 1522805485), - X64Word_create(1396182291, 2643833823), - X64Word_create(1695183700, 2343527390), - X64Word_create(1986661051, 1014477480), - X64Word_create(2177026350, 1206759142), - X64Word_create(2456956037, 344077627), - X64Word_create(2730485921, 1290863460), - X64Word_create(2820302411, 3158454273), - X64Word_create(3259730800, 3505952657), - X64Word_create(3345764771, 106217008), - X64Word_create(3516065817, 3606008344), - X64Word_create(3600352804, 1432725776), - X64Word_create(4094571909, 1467031594), - X64Word_create(275423344, 851169720), - X64Word_create(430227734, 3100823752), - X64Word_create(506948616, 1363258195), - X64Word_create(659060556, 3750685593), - X64Word_create(883997877, 3785050280), - X64Word_create(958139571, 3318307427), - X64Word_create(1322822218, 3812723403), - X64Word_create(1537002063, 2003034995), - X64Word_create(1747873779, 3602036899), - X64Word_create(1955562222, 1575990012), - X64Word_create(2024104815, 1125592928), - X64Word_create(2227730452, 2716904306), - X64Word_create(2361852424, 442776044), - X64Word_create(2428436474, 593698344), - X64Word_create(2756734187, 3733110249), - X64Word_create(3204031479, 2999351573), - X64Word_create(3329325298, 3815920427), - X64Word_create(3391569614, 3928383900), - X64Word_create(3515267271, 566280711), - X64Word_create(3940187606, 3454069534), - X64Word_create(4118630271, 4000239992), - X64Word_create(116418474, 1914138554), - X64Word_create(174292421, 2731055270), - X64Word_create(289380356, 3203993006), - X64Word_create(460393269, 320620315), - X64Word_create(685471733, 587496836), - X64Word_create(852142971, 1086792851), - X64Word_create(1017036298, 365543100), - X64Word_create(1126000580, 2618297676), - X64Word_create(1288033470, 3409855158), - X64Word_create(1501505948, 4234509866), - X64Word_create(1607167915, 987167468), - X64Word_create(1816402316, 1246189591) - ]; - var W = []; - (function() { - for (var i = 0; i < 80; i++) { - W[i] = X64Word_create(); - } - })(); - var SHA512 = C_algo.SHA512 = Hasher.extend({ - _doReset: function() { - this._hash = new X64WordArray.init([ - new X64Word.init(1779033703, 4089235720), - new X64Word.init(3144134277, 2227873595), - new X64Word.init(1013904242, 4271175723), - new X64Word.init(2773480762, 1595750129), - new X64Word.init(1359893119, 2917565137), - new X64Word.init(2600822924, 725511199), - new X64Word.init(528734635, 4215389547), - new X64Word.init(1541459225, 327033209) - ]); - }, - _doProcessBlock: function(M, offset) { - var H = this._hash.words; - var H0 = H[0]; - var H1 = H[1]; - var H2 = H[2]; - var H3 = H[3]; - var H4 = H[4]; - var H5 = H[5]; - var H6 = H[6]; - var H7 = H[7]; - var H0h = H0.high; - var H0l = H0.low; - var H1h = H1.high; - var H1l = H1.low; - var H2h = H2.high; - var H2l = H2.low; - var H3h = H3.high; - var H3l = H3.low; - var H4h = H4.high; - var H4l = H4.low; - var H5h = H5.high; - var H5l = H5.low; - var H6h = H6.high; - var H6l = H6.low; - var H7h = H7.high; - var H7l = H7.low; - var ah = H0h; - var al = H0l; - var bh = H1h; - var bl = H1l; - var ch = H2h; - var cl = H2l; - var dh = H3h; - var dl = H3l; - var eh = H4h; - var el = H4l; - var fh = H5h; - var fl = H5l; - var gh = H6h; - var gl = H6l; - var hh = H7h; - var hl = H7l; - for (var i = 0; i < 80; i++) { - var Wil; - var Wih; - var Wi = W[i]; - if (i < 16) { - Wih = Wi.high = M[offset + i * 2] | 0; - Wil = Wi.low = M[offset + i * 2 + 1] | 0; - } else { - var gamma0x = W[i - 15]; - var gamma0xh = gamma0x.high; - var gamma0xl = gamma0x.low; - var gamma0h = (gamma0xh >>> 1 | gamma0xl << 31) ^ (gamma0xh >>> 8 | gamma0xl << 24) ^ gamma0xh >>> 7; - var gamma0l = (gamma0xl >>> 1 | gamma0xh << 31) ^ (gamma0xl >>> 8 | gamma0xh << 24) ^ (gamma0xl >>> 7 | gamma0xh << 25); - var gamma1x = W[i - 2]; - var gamma1xh = gamma1x.high; - var gamma1xl = gamma1x.low; - var gamma1h = (gamma1xh >>> 19 | gamma1xl << 13) ^ (gamma1xh << 3 | gamma1xl >>> 29) ^ gamma1xh >>> 6; - var gamma1l = (gamma1xl >>> 19 | gamma1xh << 13) ^ (gamma1xl << 3 | gamma1xh >>> 29) ^ (gamma1xl >>> 6 | gamma1xh << 26); - var Wi7 = W[i - 7]; - var Wi7h = Wi7.high; - var Wi7l = Wi7.low; - var Wi16 = W[i - 16]; - var Wi16h = Wi16.high; - var Wi16l = Wi16.low; - Wil = gamma0l + Wi7l; - Wih = gamma0h + Wi7h + (Wil >>> 0 < gamma0l >>> 0 ? 1 : 0); - Wil = Wil + gamma1l; - Wih = Wih + gamma1h + (Wil >>> 0 < gamma1l >>> 0 ? 1 : 0); - Wil = Wil + Wi16l; - Wih = Wih + Wi16h + (Wil >>> 0 < Wi16l >>> 0 ? 1 : 0); - Wi.high = Wih; - Wi.low = Wil; - } - var chh = eh & fh ^ ~eh & gh; - var chl = el & fl ^ ~el & gl; - var majh = ah & bh ^ ah & ch ^ bh & ch; - var majl = al & bl ^ al & cl ^ bl & cl; - var sigma0h = (ah >>> 28 | al << 4) ^ (ah << 30 | al >>> 2) ^ (ah << 25 | al >>> 7); - var sigma0l = (al >>> 28 | ah << 4) ^ (al << 30 | ah >>> 2) ^ (al << 25 | ah >>> 7); - var sigma1h = (eh >>> 14 | el << 18) ^ (eh >>> 18 | el << 14) ^ (eh << 23 | el >>> 9); - var sigma1l = (el >>> 14 | eh << 18) ^ (el >>> 18 | eh << 14) ^ (el << 23 | eh >>> 9); - var Ki = K[i]; - var Kih = Ki.high; - var Kil = Ki.low; - var t1l = hl + sigma1l; - var t1h = hh + sigma1h + (t1l >>> 0 < hl >>> 0 ? 1 : 0); - var t1l = t1l + chl; - var t1h = t1h + chh + (t1l >>> 0 < chl >>> 0 ? 1 : 0); - var t1l = t1l + Kil; - var t1h = t1h + Kih + (t1l >>> 0 < Kil >>> 0 ? 1 : 0); - var t1l = t1l + Wil; - var t1h = t1h + Wih + (t1l >>> 0 < Wil >>> 0 ? 1 : 0); - var t2l = sigma0l + majl; - var t2h = sigma0h + majh + (t2l >>> 0 < sigma0l >>> 0 ? 1 : 0); - hh = gh; - hl = gl; - gh = fh; - gl = fl; - fh = eh; - fl = el; - el = dl + t1l | 0; - eh = dh + t1h + (el >>> 0 < dl >>> 0 ? 1 : 0) | 0; - dh = ch; - dl = cl; - ch = bh; - cl = bl; - bh = ah; - bl = al; - al = t1l + t2l | 0; - ah = t1h + t2h + (al >>> 0 < t1l >>> 0 ? 1 : 0) | 0; - } - H0l = H0.low = H0l + al; - H0.high = H0h + ah + (H0l >>> 0 < al >>> 0 ? 1 : 0); - H1l = H1.low = H1l + bl; - H1.high = H1h + bh + (H1l >>> 0 < bl >>> 0 ? 1 : 0); - H2l = H2.low = H2l + cl; - H2.high = H2h + ch + (H2l >>> 0 < cl >>> 0 ? 1 : 0); - H3l = H3.low = H3l + dl; - H3.high = H3h + dh + (H3l >>> 0 < dl >>> 0 ? 1 : 0); - H4l = H4.low = H4l + el; - H4.high = H4h + eh + (H4l >>> 0 < el >>> 0 ? 1 : 0); - H5l = H5.low = H5l + fl; - H5.high = H5h + fh + (H5l >>> 0 < fl >>> 0 ? 1 : 0); - H6l = H6.low = H6l + gl; - H6.high = H6h + gh + (H6l >>> 0 < gl >>> 0 ? 1 : 0); - H7l = H7.low = H7l + hl; - H7.high = H7h + hh + (H7l >>> 0 < hl >>> 0 ? 1 : 0); - }, - _doFinalize: function() { - var data = this._data; - var dataWords = data.words; - var nBitsTotal = this._nDataBytes * 8; - var nBitsLeft = data.sigBytes * 8; - dataWords[nBitsLeft >>> 5] |= 128 << 24 - nBitsLeft % 32; - dataWords[(nBitsLeft + 128 >>> 10 << 5) + 30] = Math.floor(nBitsTotal / 4294967296); - dataWords[(nBitsLeft + 128 >>> 10 << 5) + 31] = nBitsTotal; - data.sigBytes = dataWords.length * 4; - this._process(); - var hash = this._hash.toX32(); - return hash; - }, - clone: function() { - var clone = Hasher.clone.call(this); - clone._hash = this._hash.clone(); - return clone; - }, - blockSize: 1024 / 32 - }); - C2.SHA512 = Hasher._createHelper(SHA512); - C2.HmacSHA512 = Hasher._createHmacHelper(SHA512); - })(); - return CryptoJS.SHA512; - }); - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha384.js -var require_sha384 = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha384.js"(exports2, module2) { - (function(root, factory, undef) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(require_core(), require_x64_core(), require_sha512()); - } else if (typeof define === "function" && define.amd) { - define(["./core", "./x64-core", "./sha512"], factory); - } else { - factory(root.CryptoJS); - } - })(exports2, function(CryptoJS) { - (function() { - var C2 = CryptoJS; - var C_x64 = C2.x64; - var X64Word = C_x64.Word; - var X64WordArray = C_x64.WordArray; - var C_algo = C2.algo; - var SHA512 = C_algo.SHA512; - var SHA384 = C_algo.SHA384 = SHA512.extend({ - _doReset: function() { - this._hash = new X64WordArray.init([ - new X64Word.init(3418070365, 3238371032), - new X64Word.init(1654270250, 914150663), - new X64Word.init(2438529370, 812702999), - new X64Word.init(355462360, 4144912697), - new X64Word.init(1731405415, 4290775857), - new X64Word.init(2394180231, 1750603025), - new X64Word.init(3675008525, 1694076839), - new X64Word.init(1203062813, 3204075428) - ]); - }, - _doFinalize: function() { - var hash = SHA512._doFinalize.call(this); - hash.sigBytes -= 16; - return hash; - } - }); - C2.SHA384 = SHA512._createHelper(SHA384); - C2.HmacSHA384 = SHA512._createHmacHelper(SHA384); - })(); - return CryptoJS.SHA384; - }); - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha3.js -var require_sha3 = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha3.js"(exports2, module2) { - (function(root, factory, undef) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(require_core(), require_x64_core()); - } else if (typeof define === "function" && define.amd) { - define(["./core", "./x64-core"], factory); - } else { - factory(root.CryptoJS); - } - })(exports2, function(CryptoJS) { - (function(Math2) { - var C2 = CryptoJS; - var C_lib = C2.lib; - var WordArray = C_lib.WordArray; - var Hasher = C_lib.Hasher; - var C_x64 = C2.x64; - var X64Word = C_x64.Word; - var C_algo = C2.algo; - var RHO_OFFSETS = []; - var PI_INDEXES = []; - var ROUND_CONSTANTS = []; - (function() { - var x = 1, y = 0; - for (var t = 0; t < 24; t++) { - RHO_OFFSETS[x + 5 * y] = (t + 1) * (t + 2) / 2 % 64; - var newX = y % 5; - var newY = (2 * x + 3 * y) % 5; - x = newX; - y = newY; - } - for (var x = 0; x < 5; x++) { - for (var y = 0; y < 5; y++) { - PI_INDEXES[x + 5 * y] = y + (2 * x + 3 * y) % 5 * 5; - } - } - var LFSR = 1; - for (var i = 0; i < 24; i++) { - var roundConstantMsw = 0; - var roundConstantLsw = 0; - for (var j = 0; j < 7; j++) { - if (LFSR & 1) { - var bitPosition = (1 << j) - 1; - if (bitPosition < 32) { - roundConstantLsw ^= 1 << bitPosition; - } else { - roundConstantMsw ^= 1 << bitPosition - 32; - } - } - if (LFSR & 128) { - LFSR = LFSR << 1 ^ 113; - } else { - LFSR <<= 1; - } - } - ROUND_CONSTANTS[i] = X64Word.create(roundConstantMsw, roundConstantLsw); - } - })(); - var T = []; - (function() { - for (var i = 0; i < 25; i++) { - T[i] = X64Word.create(); - } - })(); - var SHA3 = C_algo.SHA3 = Hasher.extend({ - /** - * Configuration options. - * - * @property {number} outputLength - * The desired number of bits in the output hash. - * Only values permitted are: 224, 256, 384, 512. - * Default: 512 - */ - cfg: Hasher.cfg.extend({ - outputLength: 512 - }), - _doReset: function() { - var state = this._state = []; - for (var i = 0; i < 25; i++) { - state[i] = new X64Word.init(); - } - this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32; - }, - _doProcessBlock: function(M, offset) { - var state = this._state; - var nBlockSizeLanes = this.blockSize / 2; - for (var i = 0; i < nBlockSizeLanes; i++) { - var M2i = M[offset + 2 * i]; - var M2i1 = M[offset + 2 * i + 1]; - M2i = (M2i << 8 | M2i >>> 24) & 16711935 | (M2i << 24 | M2i >>> 8) & 4278255360; - M2i1 = (M2i1 << 8 | M2i1 >>> 24) & 16711935 | (M2i1 << 24 | M2i1 >>> 8) & 4278255360; - var lane = state[i]; - lane.high ^= M2i1; - lane.low ^= M2i; - } - for (var round = 0; round < 24; round++) { - for (var x = 0; x < 5; x++) { - var tMsw = 0, tLsw = 0; - for (var y = 0; y < 5; y++) { - var lane = state[x + 5 * y]; - tMsw ^= lane.high; - tLsw ^= lane.low; - } - var Tx = T[x]; - Tx.high = tMsw; - Tx.low = tLsw; - } - for (var x = 0; x < 5; x++) { - var Tx4 = T[(x + 4) % 5]; - var Tx1 = T[(x + 1) % 5]; - var Tx1Msw = Tx1.high; - var Tx1Lsw = Tx1.low; - var tMsw = Tx4.high ^ (Tx1Msw << 1 | Tx1Lsw >>> 31); - var tLsw = Tx4.low ^ (Tx1Lsw << 1 | Tx1Msw >>> 31); - for (var y = 0; y < 5; y++) { - var lane = state[x + 5 * y]; - lane.high ^= tMsw; - lane.low ^= tLsw; - } - } - for (var laneIndex = 1; laneIndex < 25; laneIndex++) { - var tMsw; - var tLsw; - var lane = state[laneIndex]; - var laneMsw = lane.high; - var laneLsw = lane.low; - var rhoOffset = RHO_OFFSETS[laneIndex]; - if (rhoOffset < 32) { - tMsw = laneMsw << rhoOffset | laneLsw >>> 32 - rhoOffset; - tLsw = laneLsw << rhoOffset | laneMsw >>> 32 - rhoOffset; - } else { - tMsw = laneLsw << rhoOffset - 32 | laneMsw >>> 64 - rhoOffset; - tLsw = laneMsw << rhoOffset - 32 | laneLsw >>> 64 - rhoOffset; - } - var TPiLane = T[PI_INDEXES[laneIndex]]; - TPiLane.high = tMsw; - TPiLane.low = tLsw; - } - var T0 = T[0]; - var state0 = state[0]; - T0.high = state0.high; - T0.low = state0.low; - for (var x = 0; x < 5; x++) { - for (var y = 0; y < 5; y++) { - var laneIndex = x + 5 * y; - var lane = state[laneIndex]; - var TLane = T[laneIndex]; - var Tx1Lane = T[(x + 1) % 5 + 5 * y]; - var Tx2Lane = T[(x + 2) % 5 + 5 * y]; - lane.high = TLane.high ^ ~Tx1Lane.high & Tx2Lane.high; - lane.low = TLane.low ^ ~Tx1Lane.low & Tx2Lane.low; - } - } - var lane = state[0]; - var roundConstant = ROUND_CONSTANTS[round]; - lane.high ^= roundConstant.high; - lane.low ^= roundConstant.low; - } - }, - _doFinalize: function() { - var data = this._data; - var dataWords = data.words; - var nBitsTotal = this._nDataBytes * 8; - var nBitsLeft = data.sigBytes * 8; - var blockSizeBits = this.blockSize * 32; - dataWords[nBitsLeft >>> 5] |= 1 << 24 - nBitsLeft % 32; - dataWords[(Math2.ceil((nBitsLeft + 1) / blockSizeBits) * blockSizeBits >>> 5) - 1] |= 128; - data.sigBytes = dataWords.length * 4; - this._process(); - var state = this._state; - var outputLengthBytes = this.cfg.outputLength / 8; - var outputLengthLanes = outputLengthBytes / 8; - var hashWords = []; - for (var i = 0; i < outputLengthLanes; i++) { - var lane = state[i]; - var laneMsw = lane.high; - var laneLsw = lane.low; - laneMsw = (laneMsw << 8 | laneMsw >>> 24) & 16711935 | (laneMsw << 24 | laneMsw >>> 8) & 4278255360; - laneLsw = (laneLsw << 8 | laneLsw >>> 24) & 16711935 | (laneLsw << 24 | laneLsw >>> 8) & 4278255360; - hashWords.push(laneLsw); - hashWords.push(laneMsw); - } - return new WordArray.init(hashWords, outputLengthBytes); - }, - clone: function() { - var clone = Hasher.clone.call(this); - var state = clone._state = this._state.slice(0); - for (var i = 0; i < 25; i++) { - state[i] = state[i].clone(); - } - return clone; - } - }); - C2.SHA3 = Hasher._createHelper(SHA3); - C2.HmacSHA3 = Hasher._createHmacHelper(SHA3); - })(Math); - return CryptoJS.SHA3; - }); - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/ripemd160.js -var require_ripemd160 = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/ripemd160.js"(exports2, module2) { - (function(root, factory) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(require_core()); - } else if (typeof define === "function" && define.amd) { - define(["./core"], factory); - } else { - factory(root.CryptoJS); - } - })(exports2, function(CryptoJS) { - (function(Math2) { - var C2 = CryptoJS; - var C_lib = C2.lib; - var WordArray = C_lib.WordArray; - var Hasher = C_lib.Hasher; - var C_algo = C2.algo; - var _zl = WordArray.create([ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 7, - 4, - 13, - 1, - 10, - 6, - 15, - 3, - 12, - 0, - 9, - 5, - 2, - 14, - 11, - 8, - 3, - 10, - 14, - 4, - 9, - 15, - 8, - 1, - 2, - 7, - 0, - 6, - 13, - 11, - 5, - 12, - 1, - 9, - 11, - 10, - 0, - 8, - 12, - 4, - 13, - 3, - 7, - 15, - 14, - 5, - 6, - 2, - 4, - 0, - 5, - 9, - 7, - 12, - 2, - 10, - 14, - 1, - 3, - 8, - 11, - 6, - 15, - 13 - ]); - var _zr = WordArray.create([ - 5, - 14, - 7, - 0, - 9, - 2, - 11, - 4, - 13, - 6, - 15, - 8, - 1, - 10, - 3, - 12, - 6, - 11, - 3, - 7, - 0, - 13, - 5, - 10, - 14, - 15, - 8, - 12, - 4, - 9, - 1, - 2, - 15, - 5, - 1, - 3, - 7, - 14, - 6, - 9, - 11, - 8, - 12, - 2, - 10, - 0, - 4, - 13, - 8, - 6, - 4, - 1, - 3, - 11, - 15, - 0, - 5, - 12, - 2, - 13, - 9, - 7, - 10, - 14, - 12, - 15, - 10, - 4, - 1, - 5, - 8, - 7, - 6, - 2, - 13, - 14, - 0, - 3, - 9, - 11 - ]); - var _sl = WordArray.create([ - 11, - 14, - 15, - 12, - 5, - 8, - 7, - 9, - 11, - 13, - 14, - 15, - 6, - 7, - 9, - 8, - 7, - 6, - 8, - 13, - 11, - 9, - 7, - 15, - 7, - 12, - 15, - 9, - 11, - 7, - 13, - 12, - 11, - 13, - 6, - 7, - 14, - 9, - 13, - 15, - 14, - 8, - 13, - 6, - 5, - 12, - 7, - 5, - 11, - 12, - 14, - 15, - 14, - 15, - 9, - 8, - 9, - 14, - 5, - 6, - 8, - 6, - 5, - 12, - 9, - 15, - 5, - 11, - 6, - 8, - 13, - 12, - 5, - 12, - 13, - 14, - 11, - 8, - 5, - 6 - ]); - var _sr = WordArray.create([ - 8, - 9, - 9, - 11, - 13, - 15, - 15, - 5, - 7, - 7, - 8, - 11, - 14, - 14, - 12, - 6, - 9, - 13, - 15, - 7, - 12, - 8, - 9, - 11, - 7, - 7, - 12, - 7, - 6, - 15, - 13, - 11, - 9, - 7, - 15, - 11, - 8, - 6, - 6, - 14, - 12, - 13, - 5, - 14, - 13, - 13, - 7, - 5, - 15, - 5, - 8, - 11, - 14, - 14, - 6, - 14, - 6, - 9, - 12, - 9, - 12, - 5, - 15, - 8, - 8, - 5, - 12, - 9, - 12, - 5, - 14, - 6, - 8, - 13, - 6, - 5, - 15, - 13, - 11, - 11 - ]); - var _hl = WordArray.create([0, 1518500249, 1859775393, 2400959708, 2840853838]); - var _hr = WordArray.create([1352829926, 1548603684, 1836072691, 2053994217, 0]); - var RIPEMD160 = C_algo.RIPEMD160 = Hasher.extend({ - _doReset: function() { - this._hash = WordArray.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]); - }, - _doProcessBlock: function(M, offset) { - for (var i = 0; i < 16; i++) { - var offset_i = offset + i; - var M_offset_i = M[offset_i]; - M[offset_i] = (M_offset_i << 8 | M_offset_i >>> 24) & 16711935 | (M_offset_i << 24 | M_offset_i >>> 8) & 4278255360; - } - var H = this._hash.words; - var hl = _hl.words; - var hr = _hr.words; - var zl = _zl.words; - var zr = _zr.words; - var sl = _sl.words; - var sr = _sr.words; - var al, bl, cl, dl, el; - var ar, br, cr, dr, er; - ar = al = H[0]; - br = bl = H[1]; - cr = cl = H[2]; - dr = dl = H[3]; - er = el = H[4]; - var t; - for (var i = 0; i < 80; i += 1) { - t = al + M[offset + zl[i]] | 0; - if (i < 16) { - t += f1(bl, cl, dl) + hl[0]; - } else if (i < 32) { - t += f2(bl, cl, dl) + hl[1]; - } else if (i < 48) { - t += f3(bl, cl, dl) + hl[2]; - } else if (i < 64) { - t += f4(bl, cl, dl) + hl[3]; - } else { - t += f5(bl, cl, dl) + hl[4]; - } - t = t | 0; - t = rotl(t, sl[i]); - t = t + el | 0; - al = el; - el = dl; - dl = rotl(cl, 10); - cl = bl; - bl = t; - t = ar + M[offset + zr[i]] | 0; - if (i < 16) { - t += f5(br, cr, dr) + hr[0]; - } else if (i < 32) { - t += f4(br, cr, dr) + hr[1]; - } else if (i < 48) { - t += f3(br, cr, dr) + hr[2]; - } else if (i < 64) { - t += f2(br, cr, dr) + hr[3]; - } else { - t += f1(br, cr, dr) + hr[4]; - } - t = t | 0; - t = rotl(t, sr[i]); - t = t + er | 0; - ar = er; - er = dr; - dr = rotl(cr, 10); - cr = br; - br = t; - } - t = H[1] + cl + dr | 0; - H[1] = H[2] + dl + er | 0; - H[2] = H[3] + el + ar | 0; - H[3] = H[4] + al + br | 0; - H[4] = H[0] + bl + cr | 0; - H[0] = t; - }, - _doFinalize: function() { - var data = this._data; - var dataWords = data.words; - var nBitsTotal = this._nDataBytes * 8; - var nBitsLeft = data.sigBytes * 8; - dataWords[nBitsLeft >>> 5] |= 128 << 24 - nBitsLeft % 32; - dataWords[(nBitsLeft + 64 >>> 9 << 4) + 14] = (nBitsTotal << 8 | nBitsTotal >>> 24) & 16711935 | (nBitsTotal << 24 | nBitsTotal >>> 8) & 4278255360; - data.sigBytes = (dataWords.length + 1) * 4; - this._process(); - var hash = this._hash; - var H = hash.words; - for (var i = 0; i < 5; i++) { - var H_i = H[i]; - H[i] = (H_i << 8 | H_i >>> 24) & 16711935 | (H_i << 24 | H_i >>> 8) & 4278255360; - } - return hash; - }, - clone: function() { - var clone = Hasher.clone.call(this); - clone._hash = this._hash.clone(); - return clone; - } - }); - function f1(x, y, z) { - return x ^ y ^ z; - } - function f2(x, y, z) { - return x & y | ~x & z; - } - function f3(x, y, z) { - return (x | ~y) ^ z; - } - function f4(x, y, z) { - return x & z | y & ~z; - } - function f5(x, y, z) { - return x ^ (y | ~z); - } - function rotl(x, n) { - return x << n | x >>> 32 - n; - } - C2.RIPEMD160 = Hasher._createHelper(RIPEMD160); - C2.HmacRIPEMD160 = Hasher._createHmacHelper(RIPEMD160); - })(Math); - return CryptoJS.RIPEMD160; - }); - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/hmac.js -var require_hmac = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/hmac.js"(exports2, module2) { - (function(root, factory) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(require_core()); - } else if (typeof define === "function" && define.amd) { - define(["./core"], factory); - } else { - factory(root.CryptoJS); - } - })(exports2, function(CryptoJS) { - (function() { - var C2 = CryptoJS; - var C_lib = C2.lib; - var Base = C_lib.Base; - var C_enc = C2.enc; - var Utf8 = C_enc.Utf8; - var C_algo = C2.algo; - var HMAC = C_algo.HMAC = Base.extend({ - /** - * Initializes a newly created HMAC. - * - * @param {Hasher} hasher The hash algorithm to use. - * @param {WordArray|string} key The secret key. - * - * @example - * - * var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key); - */ - init: function(hasher, key) { - hasher = this._hasher = new hasher.init(); - if (typeof key == "string") { - key = Utf8.parse(key); - } - var hasherBlockSize = hasher.blockSize; - var hasherBlockSizeBytes = hasherBlockSize * 4; - if (key.sigBytes > hasherBlockSizeBytes) { - key = hasher.finalize(key); - } - key.clamp(); - var oKey = this._oKey = key.clone(); - var iKey = this._iKey = key.clone(); - var oKeyWords = oKey.words; - var iKeyWords = iKey.words; - for (var i = 0; i < hasherBlockSize; i++) { - oKeyWords[i] ^= 1549556828; - iKeyWords[i] ^= 909522486; - } - oKey.sigBytes = iKey.sigBytes = hasherBlockSizeBytes; - this.reset(); - }, - /** - * Resets this HMAC to its initial state. - * - * @example - * - * hmacHasher.reset(); - */ - reset: function() { - var hasher = this._hasher; - hasher.reset(); - hasher.update(this._iKey); - }, - /** - * Updates this HMAC with a message. - * - * @param {WordArray|string} messageUpdate The message to append. - * - * @return {HMAC} This HMAC instance. - * - * @example - * - * hmacHasher.update('message'); - * hmacHasher.update(wordArray); - */ - update: function(messageUpdate) { - this._hasher.update(messageUpdate); - return this; - }, - /** - * Finalizes the HMAC computation. - * Note that the finalize operation is effectively a destructive, read-once operation. - * - * @param {WordArray|string} messageUpdate (Optional) A final message update. - * - * @return {WordArray} The HMAC. - * - * @example - * - * var hmac = hmacHasher.finalize(); - * var hmac = hmacHasher.finalize('message'); - * var hmac = hmacHasher.finalize(wordArray); - */ - finalize: function(messageUpdate) { - var hasher = this._hasher; - var innerHash = hasher.finalize(messageUpdate); - hasher.reset(); - var hmac = hasher.finalize(this._oKey.clone().concat(innerHash)); - return hmac; - } - }); - })(); - }); - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pbkdf2.js -var require_pbkdf2 = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pbkdf2.js"(exports2, module2) { - (function(root, factory, undef) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(require_core(), require_sha256(), require_hmac()); - } else if (typeof define === "function" && define.amd) { - define(["./core", "./sha256", "./hmac"], factory); - } else { - factory(root.CryptoJS); - } - })(exports2, function(CryptoJS) { - (function() { - var C2 = CryptoJS; - var C_lib = C2.lib; - var Base = C_lib.Base; - var WordArray = C_lib.WordArray; - var C_algo = C2.algo; - var SHA2563 = C_algo.SHA256; - var HMAC = C_algo.HMAC; - var PBKDF2 = C_algo.PBKDF2 = Base.extend({ - /** - * Configuration options. - * - * @property {number} keySize The key size in words to generate. Default: 4 (128 bits) - * @property {Hasher} hasher The hasher to use. Default: SHA256 - * @property {number} iterations The number of iterations to perform. Default: 250000 - */ - cfg: Base.extend({ - keySize: 128 / 32, - hasher: SHA2563, - iterations: 25e4 - }), - /** - * Initializes a newly created key derivation function. - * - * @param {Object} cfg (Optional) The configuration options to use for the derivation. - * - * @example - * - * var kdf = CryptoJS.algo.PBKDF2.create(); - * var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8 }); - * var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8, iterations: 1000 }); - */ - init: function(cfg) { - this.cfg = this.cfg.extend(cfg); - }, - /** - * Computes the Password-Based Key Derivation Function 2. - * - * @param {WordArray|string} password The password. - * @param {WordArray|string} salt A salt. - * - * @return {WordArray} The derived key. - * - * @example - * - * var key = kdf.compute(password, salt); - */ - compute: function(password, salt) { - var cfg = this.cfg; - var hmac = HMAC.create(cfg.hasher, password); - var derivedKey = WordArray.create(); - var blockIndex = WordArray.create([1]); - var derivedKeyWords = derivedKey.words; - var blockIndexWords = blockIndex.words; - var keySize = cfg.keySize; - var iterations = cfg.iterations; - while (derivedKeyWords.length < keySize) { - var block2 = hmac.update(salt).finalize(blockIndex); - hmac.reset(); - var blockWords = block2.words; - var blockWordsLength = blockWords.length; - var intermediate = block2; - for (var i = 1; i < iterations; i++) { - intermediate = hmac.finalize(intermediate); - hmac.reset(); - var intermediateWords = intermediate.words; - for (var j = 0; j < blockWordsLength; j++) { - blockWords[j] ^= intermediateWords[j]; - } - } - derivedKey.concat(block2); - blockIndexWords[0]++; - } - derivedKey.sigBytes = keySize * 4; - return derivedKey; - } - }); - C2.PBKDF2 = function(password, salt, cfg) { - return PBKDF2.create(cfg).compute(password, salt); - }; - })(); - return CryptoJS.PBKDF2; - }); - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/evpkdf.js -var require_evpkdf = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/evpkdf.js"(exports2, module2) { - (function(root, factory, undef) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(require_core(), require_sha1(), require_hmac()); - } else if (typeof define === "function" && define.amd) { - define(["./core", "./sha1", "./hmac"], factory); - } else { - factory(root.CryptoJS); - } - })(exports2, function(CryptoJS) { - (function() { - var C2 = CryptoJS; - var C_lib = C2.lib; - var Base = C_lib.Base; - var WordArray = C_lib.WordArray; - var C_algo = C2.algo; - var MD5 = C_algo.MD5; - var EvpKDF = C_algo.EvpKDF = Base.extend({ - /** - * Configuration options. - * - * @property {number} keySize The key size in words to generate. Default: 4 (128 bits) - * @property {Hasher} hasher The hash algorithm to use. Default: MD5 - * @property {number} iterations The number of iterations to perform. Default: 1 - */ - cfg: Base.extend({ - keySize: 128 / 32, - hasher: MD5, - iterations: 1 - }), - /** - * Initializes a newly created key derivation function. - * - * @param {Object} cfg (Optional) The configuration options to use for the derivation. - * - * @example - * - * var kdf = CryptoJS.algo.EvpKDF.create(); - * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8 }); - * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8, iterations: 1000 }); - */ - init: function(cfg) { - this.cfg = this.cfg.extend(cfg); - }, - /** - * Derives a key from a password. - * - * @param {WordArray|string} password The password. - * @param {WordArray|string} salt A salt. - * - * @return {WordArray} The derived key. - * - * @example - * - * var key = kdf.compute(password, salt); - */ - compute: function(password, salt) { - var block2; - var cfg = this.cfg; - var hasher = cfg.hasher.create(); - var derivedKey = WordArray.create(); - var derivedKeyWords = derivedKey.words; - var keySize = cfg.keySize; - var iterations = cfg.iterations; - while (derivedKeyWords.length < keySize) { - if (block2) { - hasher.update(block2); - } - block2 = hasher.update(password).finalize(salt); - hasher.reset(); - for (var i = 1; i < iterations; i++) { - block2 = hasher.finalize(block2); - hasher.reset(); - } - derivedKey.concat(block2); - } - derivedKey.sigBytes = keySize * 4; - return derivedKey; - } - }); - C2.EvpKDF = function(password, salt, cfg) { - return EvpKDF.create(cfg).compute(password, salt); - }; - })(); - return CryptoJS.EvpKDF; - }); - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/cipher-core.js -var require_cipher_core = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/cipher-core.js"(exports2, module2) { - (function(root, factory, undef) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(require_core(), require_evpkdf()); - } else if (typeof define === "function" && define.amd) { - define(["./core", "./evpkdf"], factory); - } else { - factory(root.CryptoJS); - } - })(exports2, function(CryptoJS) { - CryptoJS.lib.Cipher || function(undefined2) { - var C2 = CryptoJS; - var C_lib = C2.lib; - var Base = C_lib.Base; - var WordArray = C_lib.WordArray; - var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm; - var C_enc = C2.enc; - var Utf8 = C_enc.Utf8; - var Base64 = C_enc.Base64; - var C_algo = C2.algo; - var EvpKDF = C_algo.EvpKDF; - var Cipher = C_lib.Cipher = BufferedBlockAlgorithm.extend({ - /** - * Configuration options. - * - * @property {WordArray} iv The IV to use for this operation. - */ - cfg: Base.extend(), - /** - * Creates this cipher in encryption mode. - * - * @param {WordArray} key The key. - * @param {Object} cfg (Optional) The configuration options to use for this operation. - * - * @return {Cipher} A cipher instance. - * - * @static - * - * @example - * - * var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray }); - */ - createEncryptor: function(key, cfg) { - return this.create(this._ENC_XFORM_MODE, key, cfg); - }, - /** - * Creates this cipher in decryption mode. - * - * @param {WordArray} key The key. - * @param {Object} cfg (Optional) The configuration options to use for this operation. - * - * @return {Cipher} A cipher instance. - * - * @static - * - * @example - * - * var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray }); - */ - createDecryptor: function(key, cfg) { - return this.create(this._DEC_XFORM_MODE, key, cfg); - }, - /** - * Initializes a newly created cipher. - * - * @param {number} xformMode Either the encryption or decryption transormation mode constant. - * @param {WordArray} key The key. - * @param {Object} cfg (Optional) The configuration options to use for this operation. - * - * @example - * - * var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray }); - */ - init: function(xformMode, key, cfg) { - this.cfg = this.cfg.extend(cfg); - this._xformMode = xformMode; - this._key = key; - this.reset(); - }, - /** - * Resets this cipher to its initial state. - * - * @example - * - * cipher.reset(); - */ - reset: function() { - BufferedBlockAlgorithm.reset.call(this); - this._doReset(); - }, - /** - * Adds data to be encrypted or decrypted. - * - * @param {WordArray|string} dataUpdate The data to encrypt or decrypt. - * - * @return {WordArray} The data after processing. - * - * @example - * - * var encrypted = cipher.process('data'); - * var encrypted = cipher.process(wordArray); - */ - process: function(dataUpdate) { - this._append(dataUpdate); - return this._process(); - }, - /** - * Finalizes the encryption or decryption process. - * Note that the finalize operation is effectively a destructive, read-once operation. - * - * @param {WordArray|string} dataUpdate The final data to encrypt or decrypt. - * - * @return {WordArray} The data after final processing. - * - * @example - * - * var encrypted = cipher.finalize(); - * var encrypted = cipher.finalize('data'); - * var encrypted = cipher.finalize(wordArray); - */ - finalize: function(dataUpdate) { - if (dataUpdate) { - this._append(dataUpdate); - } - var finalProcessedData = this._doFinalize(); - return finalProcessedData; - }, - keySize: 128 / 32, - ivSize: 128 / 32, - _ENC_XFORM_MODE: 1, - _DEC_XFORM_MODE: 2, - /** - * Creates shortcut functions to a cipher's object interface. - * - * @param {Cipher} cipher The cipher to create a helper for. - * - * @return {Object} An object with encrypt and decrypt shortcut functions. - * - * @static - * - * @example - * - * var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES); - */ - _createHelper: function() { - function selectCipherStrategy(key) { - if (typeof key == "string") { - return PasswordBasedCipher; - } else { - return SerializableCipher; - } - } - return function(cipher) { - return { - encrypt: function(message, key, cfg) { - return selectCipherStrategy(key).encrypt(cipher, message, key, cfg); - }, - decrypt: function(ciphertext, key, cfg) { - return selectCipherStrategy(key).decrypt(cipher, ciphertext, key, cfg); - } - }; - }; - }() - }); - var StreamCipher = C_lib.StreamCipher = Cipher.extend({ - _doFinalize: function() { - var finalProcessedBlocks = this._process(true); - return finalProcessedBlocks; - }, - blockSize: 1 - }); - var C_mode = C2.mode = {}; - var BlockCipherMode = C_lib.BlockCipherMode = Base.extend({ - /** - * Creates this mode for encryption. - * - * @param {Cipher} cipher A block cipher instance. - * @param {Array} iv The IV words. - * - * @static - * - * @example - * - * var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words); - */ - createEncryptor: function(cipher, iv) { - return this.Encryptor.create(cipher, iv); - }, - /** - * Creates this mode for decryption. - * - * @param {Cipher} cipher A block cipher instance. - * @param {Array} iv The IV words. - * - * @static - * - * @example - * - * var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words); - */ - createDecryptor: function(cipher, iv) { - return this.Decryptor.create(cipher, iv); - }, - /** - * Initializes a newly created mode. - * - * @param {Cipher} cipher A block cipher instance. - * @param {Array} iv The IV words. - * - * @example - * - * var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words); - */ - init: function(cipher, iv) { - this._cipher = cipher; - this._iv = iv; - } - }); - var CBC = C_mode.CBC = function() { - var CBC2 = BlockCipherMode.extend(); - CBC2.Encryptor = CBC2.extend({ - /** - * Processes the data block at offset. - * - * @param {Array} words The data words to operate on. - * @param {number} offset The offset where the block starts. - * - * @example - * - * mode.processBlock(data.words, offset); - */ - processBlock: function(words, offset) { - var cipher = this._cipher; - var blockSize = cipher.blockSize; - xorBlock.call(this, words, offset, blockSize); - cipher.encryptBlock(words, offset); - this._prevBlock = words.slice(offset, offset + blockSize); - } - }); - CBC2.Decryptor = CBC2.extend({ - /** - * Processes the data block at offset. - * - * @param {Array} words The data words to operate on. - * @param {number} offset The offset where the block starts. - * - * @example - * - * mode.processBlock(data.words, offset); - */ - processBlock: function(words, offset) { - var cipher = this._cipher; - var blockSize = cipher.blockSize; - var thisBlock = words.slice(offset, offset + blockSize); - cipher.decryptBlock(words, offset); - xorBlock.call(this, words, offset, blockSize); - this._prevBlock = thisBlock; - } - }); - function xorBlock(words, offset, blockSize) { - var block2; - var iv = this._iv; - if (iv) { - block2 = iv; - this._iv = undefined2; - } else { - block2 = this._prevBlock; - } - for (var i = 0; i < blockSize; i++) { - words[offset + i] ^= block2[i]; - } - } - return CBC2; - }(); - var C_pad = C2.pad = {}; - var Pkcs7 = C_pad.Pkcs7 = { - /** - * Pads data using the algorithm defined in PKCS #5/7. - * - * @param {WordArray} data The data to pad. - * @param {number} blockSize The multiple that the data should be padded to. - * - * @static - * - * @example - * - * CryptoJS.pad.Pkcs7.pad(wordArray, 4); - */ - pad: function(data, blockSize) { - var blockSizeBytes = blockSize * 4; - var nPaddingBytes = blockSizeBytes - data.sigBytes % blockSizeBytes; - var paddingWord = nPaddingBytes << 24 | nPaddingBytes << 16 | nPaddingBytes << 8 | nPaddingBytes; - var paddingWords = []; - for (var i = 0; i < nPaddingBytes; i += 4) { - paddingWords.push(paddingWord); - } - var padding = WordArray.create(paddingWords, nPaddingBytes); - data.concat(padding); - }, - /** - * Unpads data that had been padded using the algorithm defined in PKCS #5/7. - * - * @param {WordArray} data The data to unpad. - * - * @static - * - * @example - * - * CryptoJS.pad.Pkcs7.unpad(wordArray); - */ - unpad: function(data) { - var nPaddingBytes = data.words[data.sigBytes - 1 >>> 2] & 255; - data.sigBytes -= nPaddingBytes; - } - }; - var BlockCipher = C_lib.BlockCipher = Cipher.extend({ - /** - * Configuration options. - * - * @property {Mode} mode The block mode to use. Default: CBC - * @property {Padding} padding The padding strategy to use. Default: Pkcs7 - */ - cfg: Cipher.cfg.extend({ - mode: CBC, - padding: Pkcs7 - }), - reset: function() { - var modeCreator; - Cipher.reset.call(this); - var cfg = this.cfg; - var iv = cfg.iv; - var mode = cfg.mode; - if (this._xformMode == this._ENC_XFORM_MODE) { - modeCreator = mode.createEncryptor; - } else { - modeCreator = mode.createDecryptor; - this._minBufferSize = 1; - } - if (this._mode && this._mode.__creator == modeCreator) { - this._mode.init(this, iv && iv.words); - } else { - this._mode = modeCreator.call(mode, this, iv && iv.words); - this._mode.__creator = modeCreator; - } - }, - _doProcessBlock: function(words, offset) { - this._mode.processBlock(words, offset); - }, - _doFinalize: function() { - var finalProcessedBlocks; - var padding = this.cfg.padding; - if (this._xformMode == this._ENC_XFORM_MODE) { - padding.pad(this._data, this.blockSize); - finalProcessedBlocks = this._process(true); - } else { - finalProcessedBlocks = this._process(true); - padding.unpad(finalProcessedBlocks); - } - return finalProcessedBlocks; - }, - blockSize: 128 / 32 - }); - var CipherParams = C_lib.CipherParams = Base.extend({ - /** - * Initializes a newly created cipher params object. - * - * @param {Object} cipherParams An object with any of the possible cipher parameters. - * - * @example - * - * var cipherParams = CryptoJS.lib.CipherParams.create({ - * ciphertext: ciphertextWordArray, - * key: keyWordArray, - * iv: ivWordArray, - * salt: saltWordArray, - * algorithm: CryptoJS.algo.AES, - * mode: CryptoJS.mode.CBC, - * padding: CryptoJS.pad.PKCS7, - * blockSize: 4, - * formatter: CryptoJS.format.OpenSSL - * }); - */ - init: function(cipherParams) { - this.mixIn(cipherParams); - }, - /** - * Converts this cipher params object to a string. - * - * @param {Format} formatter (Optional) The formatting strategy to use. - * - * @return {string} The stringified cipher params. - * - * @throws Error If neither the formatter nor the default formatter is set. - * - * @example - * - * var string = cipherParams + ''; - * var string = cipherParams.toString(); - * var string = cipherParams.toString(CryptoJS.format.OpenSSL); - */ - toString: function(formatter) { - return (formatter || this.formatter).stringify(this); - } - }); - var C_format = C2.format = {}; - var OpenSSLFormatter = C_format.OpenSSL = { - /** - * Converts a cipher params object to an OpenSSL-compatible string. - * - * @param {CipherParams} cipherParams The cipher params object. - * - * @return {string} The OpenSSL-compatible string. - * - * @static - * - * @example - * - * var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams); - */ - stringify: function(cipherParams) { - var wordArray; - var ciphertext = cipherParams.ciphertext; - var salt = cipherParams.salt; - if (salt) { - wordArray = WordArray.create([1398893684, 1701076831]).concat(salt).concat(ciphertext); - } else { - wordArray = ciphertext; - } - return wordArray.toString(Base64); - }, - /** - * Converts an OpenSSL-compatible string to a cipher params object. - * - * @param {string} openSSLStr The OpenSSL-compatible string. - * - * @return {CipherParams} The cipher params object. - * - * @static - * - * @example - * - * var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString); - */ - parse: function(openSSLStr) { - var salt; - var ciphertext = Base64.parse(openSSLStr); - var ciphertextWords = ciphertext.words; - if (ciphertextWords[0] == 1398893684 && ciphertextWords[1] == 1701076831) { - salt = WordArray.create(ciphertextWords.slice(2, 4)); - ciphertextWords.splice(0, 4); - ciphertext.sigBytes -= 16; - } - return CipherParams.create({ ciphertext, salt }); - } - }; - var SerializableCipher = C_lib.SerializableCipher = Base.extend({ - /** - * Configuration options. - * - * @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL - */ - cfg: Base.extend({ - format: OpenSSLFormatter - }), - /** - * Encrypts a message. - * - * @param {Cipher} cipher The cipher algorithm to use. - * @param {WordArray|string} message The message to encrypt. - * @param {WordArray} key The key. - * @param {Object} cfg (Optional) The configuration options to use for this operation. - * - * @return {CipherParams} A cipher params object. - * - * @static - * - * @example - * - * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key); - * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv }); - * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL }); - */ - encrypt: function(cipher, message, key, cfg) { - cfg = this.cfg.extend(cfg); - var encryptor = cipher.createEncryptor(key, cfg); - var ciphertext = encryptor.finalize(message); - var cipherCfg = encryptor.cfg; - return CipherParams.create({ - ciphertext, - key, - iv: cipherCfg.iv, - algorithm: cipher, - mode: cipherCfg.mode, - padding: cipherCfg.padding, - blockSize: cipher.blockSize, - formatter: cfg.format - }); - }, - /** - * Decrypts serialized ciphertext. - * - * @param {Cipher} cipher The cipher algorithm to use. - * @param {CipherParams|string} ciphertext The ciphertext to decrypt. - * @param {WordArray} key The key. - * @param {Object} cfg (Optional) The configuration options to use for this operation. - * - * @return {WordArray} The plaintext. - * - * @static - * - * @example - * - * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL }); - * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL }); - */ - decrypt: function(cipher, ciphertext, key, cfg) { - cfg = this.cfg.extend(cfg); - ciphertext = this._parse(ciphertext, cfg.format); - var plaintext = cipher.createDecryptor(key, cfg).finalize(ciphertext.ciphertext); - return plaintext; - }, - /** - * Converts serialized ciphertext to CipherParams, - * else assumed CipherParams already and returns ciphertext unchanged. - * - * @param {CipherParams|string} ciphertext The ciphertext. - * @param {Formatter} format The formatting strategy to use to parse serialized ciphertext. - * - * @return {CipherParams} The unserialized ciphertext. - * - * @static - * - * @example - * - * var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format); - */ - _parse: function(ciphertext, format2) { - if (typeof ciphertext == "string") { - return format2.parse(ciphertext, this); - } else { - return ciphertext; - } - } - }); - var C_kdf = C2.kdf = {}; - var OpenSSLKdf = C_kdf.OpenSSL = { - /** - * Derives a key and IV from a password. - * - * @param {string} password The password to derive from. - * @param {number} keySize The size in words of the key to generate. - * @param {number} ivSize The size in words of the IV to generate. - * @param {WordArray|string} salt (Optional) A 64-bit salt to use. If omitted, a salt will be generated randomly. - * - * @return {CipherParams} A cipher params object with the key, IV, and salt. - * - * @static - * - * @example - * - * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32); - * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt'); - */ - execute: function(password, keySize, ivSize, salt, hasher) { - if (!salt) { - salt = WordArray.random(64 / 8); - } - if (!hasher) { - var key = EvpKDF.create({ keySize: keySize + ivSize }).compute(password, salt); - } else { - var key = EvpKDF.create({ keySize: keySize + ivSize, hasher }).compute(password, salt); - } - var iv = WordArray.create(key.words.slice(keySize), ivSize * 4); - key.sigBytes = keySize * 4; - return CipherParams.create({ key, iv, salt }); - } - }; - var PasswordBasedCipher = C_lib.PasswordBasedCipher = SerializableCipher.extend({ - /** - * Configuration options. - * - * @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL - */ - cfg: SerializableCipher.cfg.extend({ - kdf: OpenSSLKdf - }), - /** - * Encrypts a message using a password. - * - * @param {Cipher} cipher The cipher algorithm to use. - * @param {WordArray|string} message The message to encrypt. - * @param {string} password The password. - * @param {Object} cfg (Optional) The configuration options to use for this operation. - * - * @return {CipherParams} A cipher params object. - * - * @static - * - * @example - * - * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password'); - * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL }); - */ - encrypt: function(cipher, message, password, cfg) { - cfg = this.cfg.extend(cfg); - var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, cfg.salt, cfg.hasher); - cfg.iv = derivedParams.iv; - var ciphertext = SerializableCipher.encrypt.call(this, cipher, message, derivedParams.key, cfg); - ciphertext.mixIn(derivedParams); - return ciphertext; - }, - /** - * Decrypts serialized ciphertext using a password. - * - * @param {Cipher} cipher The cipher algorithm to use. - * @param {CipherParams|string} ciphertext The ciphertext to decrypt. - * @param {string} password The password. - * @param {Object} cfg (Optional) The configuration options to use for this operation. - * - * @return {WordArray} The plaintext. - * - * @static - * - * @example - * - * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL }); - * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL }); - */ - decrypt: function(cipher, ciphertext, password, cfg) { - cfg = this.cfg.extend(cfg); - ciphertext = this._parse(ciphertext, cfg.format); - var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt, cfg.hasher); - cfg.iv = derivedParams.iv; - var plaintext = SerializableCipher.decrypt.call(this, cipher, ciphertext, derivedParams.key, cfg); - return plaintext; - } - }); - }(); - }); - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-cfb.js -var require_mode_cfb = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-cfb.js"(exports2, module2) { - (function(root, factory, undef) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(require_core(), require_cipher_core()); - } else if (typeof define === "function" && define.amd) { - define(["./core", "./cipher-core"], factory); - } else { - factory(root.CryptoJS); - } - })(exports2, function(CryptoJS) { - CryptoJS.mode.CFB = function() { - var CFB = CryptoJS.lib.BlockCipherMode.extend(); - CFB.Encryptor = CFB.extend({ - processBlock: function(words, offset) { - var cipher = this._cipher; - var blockSize = cipher.blockSize; - generateKeystreamAndEncrypt.call(this, words, offset, blockSize, cipher); - this._prevBlock = words.slice(offset, offset + blockSize); - } - }); - CFB.Decryptor = CFB.extend({ - processBlock: function(words, offset) { - var cipher = this._cipher; - var blockSize = cipher.blockSize; - var thisBlock = words.slice(offset, offset + blockSize); - generateKeystreamAndEncrypt.call(this, words, offset, blockSize, cipher); - this._prevBlock = thisBlock; - } - }); - function generateKeystreamAndEncrypt(words, offset, blockSize, cipher) { - var keystream; - var iv = this._iv; - if (iv) { - keystream = iv.slice(0); - this._iv = void 0; - } else { - keystream = this._prevBlock; - } - cipher.encryptBlock(keystream, 0); - for (var i = 0; i < blockSize; i++) { - words[offset + i] ^= keystream[i]; - } - } - return CFB; - }(); - return CryptoJS.mode.CFB; - }); - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ctr.js -var require_mode_ctr = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ctr.js"(exports2, module2) { - (function(root, factory, undef) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(require_core(), require_cipher_core()); - } else if (typeof define === "function" && define.amd) { - define(["./core", "./cipher-core"], factory); - } else { - factory(root.CryptoJS); - } - })(exports2, function(CryptoJS) { - CryptoJS.mode.CTR = function() { - var CTR = CryptoJS.lib.BlockCipherMode.extend(); - var Encryptor = CTR.Encryptor = CTR.extend({ - processBlock: function(words, offset) { - var cipher = this._cipher; - var blockSize = cipher.blockSize; - var iv = this._iv; - var counter = this._counter; - if (iv) { - counter = this._counter = iv.slice(0); - this._iv = void 0; - } - var keystream = counter.slice(0); - cipher.encryptBlock(keystream, 0); - counter[blockSize - 1] = counter[blockSize - 1] + 1 | 0; - for (var i = 0; i < blockSize; i++) { - words[offset + i] ^= keystream[i]; - } - } - }); - CTR.Decryptor = Encryptor; - return CTR; - }(); - return CryptoJS.mode.CTR; - }); - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ctr-gladman.js -var require_mode_ctr_gladman = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ctr-gladman.js"(exports2, module2) { - (function(root, factory, undef) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(require_core(), require_cipher_core()); - } else if (typeof define === "function" && define.amd) { - define(["./core", "./cipher-core"], factory); - } else { - factory(root.CryptoJS); - } - })(exports2, function(CryptoJS) { - CryptoJS.mode.CTRGladman = function() { - var CTRGladman = CryptoJS.lib.BlockCipherMode.extend(); - function incWord(word) { - if ((word >> 24 & 255) === 255) { - var b1 = word >> 16 & 255; - var b2 = word >> 8 & 255; - var b3 = word & 255; - if (b1 === 255) { - b1 = 0; - if (b2 === 255) { - b2 = 0; - if (b3 === 255) { - b3 = 0; - } else { - ++b3; - } - } else { - ++b2; - } - } else { - ++b1; - } - word = 0; - word += b1 << 16; - word += b2 << 8; - word += b3; - } else { - word += 1 << 24; - } - return word; - } - function incCounter(counter) { - if ((counter[0] = incWord(counter[0])) === 0) { - counter[1] = incWord(counter[1]); - } - return counter; - } - var Encryptor = CTRGladman.Encryptor = CTRGladman.extend({ - processBlock: function(words, offset) { - var cipher = this._cipher; - var blockSize = cipher.blockSize; - var iv = this._iv; - var counter = this._counter; - if (iv) { - counter = this._counter = iv.slice(0); - this._iv = void 0; - } - incCounter(counter); - var keystream = counter.slice(0); - cipher.encryptBlock(keystream, 0); - for (var i = 0; i < blockSize; i++) { - words[offset + i] ^= keystream[i]; - } - } - }); - CTRGladman.Decryptor = Encryptor; - return CTRGladman; - }(); - return CryptoJS.mode.CTRGladman; - }); - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ofb.js -var require_mode_ofb = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ofb.js"(exports2, module2) { - (function(root, factory, undef) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(require_core(), require_cipher_core()); - } else if (typeof define === "function" && define.amd) { - define(["./core", "./cipher-core"], factory); - } else { - factory(root.CryptoJS); - } - })(exports2, function(CryptoJS) { - CryptoJS.mode.OFB = function() { - var OFB = CryptoJS.lib.BlockCipherMode.extend(); - var Encryptor = OFB.Encryptor = OFB.extend({ - processBlock: function(words, offset) { - var cipher = this._cipher; - var blockSize = cipher.blockSize; - var iv = this._iv; - var keystream = this._keystream; - if (iv) { - keystream = this._keystream = iv.slice(0); - this._iv = void 0; - } - cipher.encryptBlock(keystream, 0); - for (var i = 0; i < blockSize; i++) { - words[offset + i] ^= keystream[i]; - } - } - }); - OFB.Decryptor = Encryptor; - return OFB; - }(); - return CryptoJS.mode.OFB; - }); - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js -var require_mode_ecb = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js"(exports2, module2) { - (function(root, factory, undef) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(require_core(), require_cipher_core()); - } else if (typeof define === "function" && define.amd) { - define(["./core", "./cipher-core"], factory); - } else { - factory(root.CryptoJS); - } - })(exports2, function(CryptoJS) { - CryptoJS.mode.ECB = function() { - var ECB = CryptoJS.lib.BlockCipherMode.extend(); - ECB.Encryptor = ECB.extend({ - processBlock: function(words, offset) { - this._cipher.encryptBlock(words, offset); - } - }); - ECB.Decryptor = ECB.extend({ - processBlock: function(words, offset) { - this._cipher.decryptBlock(words, offset); - } - }); - return ECB; - }(); - return CryptoJS.mode.ECB; - }); - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-ansix923.js -var require_pad_ansix923 = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-ansix923.js"(exports2, module2) { - (function(root, factory, undef) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(require_core(), require_cipher_core()); - } else if (typeof define === "function" && define.amd) { - define(["./core", "./cipher-core"], factory); - } else { - factory(root.CryptoJS); - } - })(exports2, function(CryptoJS) { - CryptoJS.pad.AnsiX923 = { - pad: function(data, blockSize) { - var dataSigBytes = data.sigBytes; - var blockSizeBytes = blockSize * 4; - var nPaddingBytes = blockSizeBytes - dataSigBytes % blockSizeBytes; - var lastBytePos = dataSigBytes + nPaddingBytes - 1; - data.clamp(); - data.words[lastBytePos >>> 2] |= nPaddingBytes << 24 - lastBytePos % 4 * 8; - data.sigBytes += nPaddingBytes; - }, - unpad: function(data) { - var nPaddingBytes = data.words[data.sigBytes - 1 >>> 2] & 255; - data.sigBytes -= nPaddingBytes; - } - }; - return CryptoJS.pad.Ansix923; - }); - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-iso10126.js -var require_pad_iso10126 = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-iso10126.js"(exports2, module2) { - (function(root, factory, undef) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(require_core(), require_cipher_core()); - } else if (typeof define === "function" && define.amd) { - define(["./core", "./cipher-core"], factory); - } else { - factory(root.CryptoJS); - } - })(exports2, function(CryptoJS) { - CryptoJS.pad.Iso10126 = { - pad: function(data, blockSize) { - var blockSizeBytes = blockSize * 4; - var nPaddingBytes = blockSizeBytes - data.sigBytes % blockSizeBytes; - data.concat(CryptoJS.lib.WordArray.random(nPaddingBytes - 1)).concat(CryptoJS.lib.WordArray.create([nPaddingBytes << 24], 1)); - }, - unpad: function(data) { - var nPaddingBytes = data.words[data.sigBytes - 1 >>> 2] & 255; - data.sigBytes -= nPaddingBytes; - } - }; - return CryptoJS.pad.Iso10126; - }); - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-iso97971.js -var require_pad_iso97971 = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-iso97971.js"(exports2, module2) { - (function(root, factory, undef) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(require_core(), require_cipher_core()); - } else if (typeof define === "function" && define.amd) { - define(["./core", "./cipher-core"], factory); - } else { - factory(root.CryptoJS); - } - })(exports2, function(CryptoJS) { - CryptoJS.pad.Iso97971 = { - pad: function(data, blockSize) { - data.concat(CryptoJS.lib.WordArray.create([2147483648], 1)); - CryptoJS.pad.ZeroPadding.pad(data, blockSize); - }, - unpad: function(data) { - CryptoJS.pad.ZeroPadding.unpad(data); - data.sigBytes--; - } - }; - return CryptoJS.pad.Iso97971; - }); - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-zeropadding.js -var require_pad_zeropadding = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-zeropadding.js"(exports2, module2) { - (function(root, factory, undef) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(require_core(), require_cipher_core()); - } else if (typeof define === "function" && define.amd) { - define(["./core", "./cipher-core"], factory); - } else { - factory(root.CryptoJS); - } - })(exports2, function(CryptoJS) { - CryptoJS.pad.ZeroPadding = { - pad: function(data, blockSize) { - var blockSizeBytes = blockSize * 4; - data.clamp(); - data.sigBytes += blockSizeBytes - (data.sigBytes % blockSizeBytes || blockSizeBytes); - }, - unpad: function(data) { - var dataWords = data.words; - var i = data.sigBytes - 1; - for (var i = data.sigBytes - 1; i >= 0; i--) { - if (dataWords[i >>> 2] >>> 24 - i % 4 * 8 & 255) { - data.sigBytes = i + 1; - break; - } - } - } - }; - return CryptoJS.pad.ZeroPadding; - }); - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-nopadding.js -var require_pad_nopadding = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-nopadding.js"(exports2, module2) { - (function(root, factory, undef) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(require_core(), require_cipher_core()); - } else if (typeof define === "function" && define.amd) { - define(["./core", "./cipher-core"], factory); - } else { - factory(root.CryptoJS); - } - })(exports2, function(CryptoJS) { - CryptoJS.pad.NoPadding = { - pad: function() { - }, - unpad: function() { - } - }; - return CryptoJS.pad.NoPadding; - }); - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/format-hex.js -var require_format_hex = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/format-hex.js"(exports2, module2) { - (function(root, factory, undef) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(require_core(), require_cipher_core()); - } else if (typeof define === "function" && define.amd) { - define(["./core", "./cipher-core"], factory); - } else { - factory(root.CryptoJS); - } - })(exports2, function(CryptoJS) { - (function(undefined2) { - var C2 = CryptoJS; - var C_lib = C2.lib; - var CipherParams = C_lib.CipherParams; - var C_enc = C2.enc; - var Hex = C_enc.Hex; - var C_format = C2.format; - var HexFormatter = C_format.Hex = { - /** - * Converts the ciphertext of a cipher params object to a hexadecimally encoded string. - * - * @param {CipherParams} cipherParams The cipher params object. - * - * @return {string} The hexadecimally encoded string. - * - * @static - * - * @example - * - * var hexString = CryptoJS.format.Hex.stringify(cipherParams); - */ - stringify: function(cipherParams) { - return cipherParams.ciphertext.toString(Hex); - }, - /** - * Converts a hexadecimally encoded ciphertext string to a cipher params object. - * - * @param {string} input The hexadecimally encoded string. - * - * @return {CipherParams} The cipher params object. - * - * @static - * - * @example - * - * var cipherParams = CryptoJS.format.Hex.parse(hexString); - */ - parse: function(input) { - var ciphertext = Hex.parse(input); - return CipherParams.create({ ciphertext }); - } - }; - })(); - return CryptoJS.format.Hex; - }); - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js -var require_aes = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js"(exports2, module2) { - (function(root, factory, undef) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(require_core(), require_enc_base64(), require_md5(), require_evpkdf(), require_cipher_core()); - } else if (typeof define === "function" && define.amd) { - define(["./core", "./enc-base64", "./md5", "./evpkdf", "./cipher-core"], factory); - } else { - factory(root.CryptoJS); - } - })(exports2, function(CryptoJS) { - (function() { - var C2 = CryptoJS; - var C_lib = C2.lib; - var BlockCipher = C_lib.BlockCipher; - var C_algo = C2.algo; - var SBOX = []; - var INV_SBOX = []; - var SUB_MIX_0 = []; - var SUB_MIX_1 = []; - var SUB_MIX_2 = []; - var SUB_MIX_3 = []; - var INV_SUB_MIX_0 = []; - var INV_SUB_MIX_1 = []; - var INV_SUB_MIX_2 = []; - var INV_SUB_MIX_3 = []; - (function() { - var d = []; - for (var i = 0; i < 256; i++) { - if (i < 128) { - d[i] = i << 1; - } else { - d[i] = i << 1 ^ 283; - } - } - var x = 0; - var xi = 0; - for (var i = 0; i < 256; i++) { - var sx = xi ^ xi << 1 ^ xi << 2 ^ xi << 3 ^ xi << 4; - sx = sx >>> 8 ^ sx & 255 ^ 99; - SBOX[x] = sx; - INV_SBOX[sx] = x; - var x2 = d[x]; - var x4 = d[x2]; - var x8 = d[x4]; - var t = d[sx] * 257 ^ sx * 16843008; - SUB_MIX_0[x] = t << 24 | t >>> 8; - SUB_MIX_1[x] = t << 16 | t >>> 16; - SUB_MIX_2[x] = t << 8 | t >>> 24; - SUB_MIX_3[x] = t; - var t = x8 * 16843009 ^ x4 * 65537 ^ x2 * 257 ^ x * 16843008; - INV_SUB_MIX_0[sx] = t << 24 | t >>> 8; - INV_SUB_MIX_1[sx] = t << 16 | t >>> 16; - INV_SUB_MIX_2[sx] = t << 8 | t >>> 24; - INV_SUB_MIX_3[sx] = t; - if (!x) { - x = xi = 1; - } else { - x = x2 ^ d[d[d[x8 ^ x2]]]; - xi ^= d[d[xi]]; - } - } - })(); - var RCON = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54]; - var AES = C_algo.AES = BlockCipher.extend({ - _doReset: function() { - var t; - if (this._nRounds && this._keyPriorReset === this._key) { - return; - } - var key = this._keyPriorReset = this._key; - var keyWords = key.words; - var keySize = key.sigBytes / 4; - var nRounds = this._nRounds = keySize + 6; - var ksRows = (nRounds + 1) * 4; - var keySchedule = this._keySchedule = []; - for (var ksRow = 0; ksRow < ksRows; ksRow++) { - if (ksRow < keySize) { - keySchedule[ksRow] = keyWords[ksRow]; - } else { - t = keySchedule[ksRow - 1]; - if (!(ksRow % keySize)) { - t = t << 8 | t >>> 24; - t = SBOX[t >>> 24] << 24 | SBOX[t >>> 16 & 255] << 16 | SBOX[t >>> 8 & 255] << 8 | SBOX[t & 255]; - t ^= RCON[ksRow / keySize | 0] << 24; - } else if (keySize > 6 && ksRow % keySize == 4) { - t = SBOX[t >>> 24] << 24 | SBOX[t >>> 16 & 255] << 16 | SBOX[t >>> 8 & 255] << 8 | SBOX[t & 255]; - } - keySchedule[ksRow] = keySchedule[ksRow - keySize] ^ t; - } - } - var invKeySchedule = this._invKeySchedule = []; - for (var invKsRow = 0; invKsRow < ksRows; invKsRow++) { - var ksRow = ksRows - invKsRow; - if (invKsRow % 4) { - var t = keySchedule[ksRow]; - } else { - var t = keySchedule[ksRow - 4]; - } - if (invKsRow < 4 || ksRow <= 4) { - invKeySchedule[invKsRow] = t; - } else { - invKeySchedule[invKsRow] = INV_SUB_MIX_0[SBOX[t >>> 24]] ^ INV_SUB_MIX_1[SBOX[t >>> 16 & 255]] ^ INV_SUB_MIX_2[SBOX[t >>> 8 & 255]] ^ INV_SUB_MIX_3[SBOX[t & 255]]; - } - } - }, - encryptBlock: function(M, offset) { - this._doCryptBlock(M, offset, this._keySchedule, SUB_MIX_0, SUB_MIX_1, SUB_MIX_2, SUB_MIX_3, SBOX); - }, - decryptBlock: function(M, offset) { - var t = M[offset + 1]; - M[offset + 1] = M[offset + 3]; - M[offset + 3] = t; - this._doCryptBlock(M, offset, this._invKeySchedule, INV_SUB_MIX_0, INV_SUB_MIX_1, INV_SUB_MIX_2, INV_SUB_MIX_3, INV_SBOX); - var t = M[offset + 1]; - M[offset + 1] = M[offset + 3]; - M[offset + 3] = t; - }, - _doCryptBlock: function(M, offset, keySchedule, SUB_MIX_02, SUB_MIX_12, SUB_MIX_22, SUB_MIX_32, SBOX2) { - var nRounds = this._nRounds; - var s0 = M[offset] ^ keySchedule[0]; - var s1 = M[offset + 1] ^ keySchedule[1]; - var s2 = M[offset + 2] ^ keySchedule[2]; - var s3 = M[offset + 3] ^ keySchedule[3]; - var ksRow = 4; - for (var round = 1; round < nRounds; round++) { - var t0 = SUB_MIX_02[s0 >>> 24] ^ SUB_MIX_12[s1 >>> 16 & 255] ^ SUB_MIX_22[s2 >>> 8 & 255] ^ SUB_MIX_32[s3 & 255] ^ keySchedule[ksRow++]; - var t1 = SUB_MIX_02[s1 >>> 24] ^ SUB_MIX_12[s2 >>> 16 & 255] ^ SUB_MIX_22[s3 >>> 8 & 255] ^ SUB_MIX_32[s0 & 255] ^ keySchedule[ksRow++]; - var t2 = SUB_MIX_02[s2 >>> 24] ^ SUB_MIX_12[s3 >>> 16 & 255] ^ SUB_MIX_22[s0 >>> 8 & 255] ^ SUB_MIX_32[s1 & 255] ^ keySchedule[ksRow++]; - var t3 = SUB_MIX_02[s3 >>> 24] ^ SUB_MIX_12[s0 >>> 16 & 255] ^ SUB_MIX_22[s1 >>> 8 & 255] ^ SUB_MIX_32[s2 & 255] ^ keySchedule[ksRow++]; - s0 = t0; - s1 = t1; - s2 = t2; - s3 = t3; - } - var t0 = (SBOX2[s0 >>> 24] << 24 | SBOX2[s1 >>> 16 & 255] << 16 | SBOX2[s2 >>> 8 & 255] << 8 | SBOX2[s3 & 255]) ^ keySchedule[ksRow++]; - var t1 = (SBOX2[s1 >>> 24] << 24 | SBOX2[s2 >>> 16 & 255] << 16 | SBOX2[s3 >>> 8 & 255] << 8 | SBOX2[s0 & 255]) ^ keySchedule[ksRow++]; - var t2 = (SBOX2[s2 >>> 24] << 24 | SBOX2[s3 >>> 16 & 255] << 16 | SBOX2[s0 >>> 8 & 255] << 8 | SBOX2[s1 & 255]) ^ keySchedule[ksRow++]; - var t3 = (SBOX2[s3 >>> 24] << 24 | SBOX2[s0 >>> 16 & 255] << 16 | SBOX2[s1 >>> 8 & 255] << 8 | SBOX2[s2 & 255]) ^ keySchedule[ksRow++]; - M[offset] = t0; - M[offset + 1] = t1; - M[offset + 2] = t2; - M[offset + 3] = t3; - }, - keySize: 256 / 32 - }); - C2.AES = BlockCipher._createHelper(AES); - })(); - return CryptoJS.AES; - }); - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/tripledes.js -var require_tripledes = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/tripledes.js"(exports2, module2) { - (function(root, factory, undef) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(require_core(), require_enc_base64(), require_md5(), require_evpkdf(), require_cipher_core()); - } else if (typeof define === "function" && define.amd) { - define(["./core", "./enc-base64", "./md5", "./evpkdf", "./cipher-core"], factory); - } else { - factory(root.CryptoJS); - } - })(exports2, function(CryptoJS) { - (function() { - var C2 = CryptoJS; - var C_lib = C2.lib; - var WordArray = C_lib.WordArray; - var BlockCipher = C_lib.BlockCipher; - var C_algo = C2.algo; - var PC1 = [ - 57, - 49, - 41, - 33, - 25, - 17, - 9, - 1, - 58, - 50, - 42, - 34, - 26, - 18, - 10, - 2, - 59, - 51, - 43, - 35, - 27, - 19, - 11, - 3, - 60, - 52, - 44, - 36, - 63, - 55, - 47, - 39, - 31, - 23, - 15, - 7, - 62, - 54, - 46, - 38, - 30, - 22, - 14, - 6, - 61, - 53, - 45, - 37, - 29, - 21, - 13, - 5, - 28, - 20, - 12, - 4 - ]; - var PC2 = [ - 14, - 17, - 11, - 24, - 1, - 5, - 3, - 28, - 15, - 6, - 21, - 10, - 23, - 19, - 12, - 4, - 26, - 8, - 16, - 7, - 27, - 20, - 13, - 2, - 41, - 52, - 31, - 37, - 47, - 55, - 30, - 40, - 51, - 45, - 33, - 48, - 44, - 49, - 39, - 56, - 34, - 53, - 46, - 42, - 50, - 36, - 29, - 32 - ]; - var BIT_SHIFTS = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28]; - var SBOX_P = [ - { - 0: 8421888, - 268435456: 32768, - 536870912: 8421378, - 805306368: 2, - 1073741824: 512, - 1342177280: 8421890, - 1610612736: 8389122, - 1879048192: 8388608, - 2147483648: 514, - 2415919104: 8389120, - 2684354560: 33280, - 2952790016: 8421376, - 3221225472: 32770, - 3489660928: 8388610, - 3758096384: 0, - 4026531840: 33282, - 134217728: 0, - 402653184: 8421890, - 671088640: 33282, - 939524096: 32768, - 1207959552: 8421888, - 1476395008: 512, - 1744830464: 8421378, - 2013265920: 2, - 2281701376: 8389120, - 2550136832: 33280, - 2818572288: 8421376, - 3087007744: 8389122, - 3355443200: 8388610, - 3623878656: 32770, - 3892314112: 514, - 4160749568: 8388608, - 1: 32768, - 268435457: 2, - 536870913: 8421888, - 805306369: 8388608, - 1073741825: 8421378, - 1342177281: 33280, - 1610612737: 512, - 1879048193: 8389122, - 2147483649: 8421890, - 2415919105: 8421376, - 2684354561: 8388610, - 2952790017: 33282, - 3221225473: 514, - 3489660929: 8389120, - 3758096385: 32770, - 4026531841: 0, - 134217729: 8421890, - 402653185: 8421376, - 671088641: 8388608, - 939524097: 512, - 1207959553: 32768, - 1476395009: 8388610, - 1744830465: 2, - 2013265921: 33282, - 2281701377: 32770, - 2550136833: 8389122, - 2818572289: 514, - 3087007745: 8421888, - 3355443201: 8389120, - 3623878657: 0, - 3892314113: 33280, - 4160749569: 8421378 - }, - { - 0: 1074282512, - 16777216: 16384, - 33554432: 524288, - 50331648: 1074266128, - 67108864: 1073741840, - 83886080: 1074282496, - 100663296: 1073758208, - 117440512: 16, - 134217728: 540672, - 150994944: 1073758224, - 167772160: 1073741824, - 184549376: 540688, - 201326592: 524304, - 218103808: 0, - 234881024: 16400, - 251658240: 1074266112, - 8388608: 1073758208, - 25165824: 540688, - 41943040: 16, - 58720256: 1073758224, - 75497472: 1074282512, - 92274688: 1073741824, - 109051904: 524288, - 125829120: 1074266128, - 142606336: 524304, - 159383552: 0, - 176160768: 16384, - 192937984: 1074266112, - 209715200: 1073741840, - 226492416: 540672, - 243269632: 1074282496, - 260046848: 16400, - 268435456: 0, - 285212672: 1074266128, - 301989888: 1073758224, - 318767104: 1074282496, - 335544320: 1074266112, - 352321536: 16, - 369098752: 540688, - 385875968: 16384, - 402653184: 16400, - 419430400: 524288, - 436207616: 524304, - 452984832: 1073741840, - 469762048: 540672, - 486539264: 1073758208, - 503316480: 1073741824, - 520093696: 1074282512, - 276824064: 540688, - 293601280: 524288, - 310378496: 1074266112, - 327155712: 16384, - 343932928: 1073758208, - 360710144: 1074282512, - 377487360: 16, - 394264576: 1073741824, - 411041792: 1074282496, - 427819008: 1073741840, - 444596224: 1073758224, - 461373440: 524304, - 478150656: 0, - 494927872: 16400, - 511705088: 1074266128, - 528482304: 540672 - }, - { - 0: 260, - 1048576: 0, - 2097152: 67109120, - 3145728: 65796, - 4194304: 65540, - 5242880: 67108868, - 6291456: 67174660, - 7340032: 67174400, - 8388608: 67108864, - 9437184: 67174656, - 10485760: 65792, - 11534336: 67174404, - 12582912: 67109124, - 13631488: 65536, - 14680064: 4, - 15728640: 256, - 524288: 67174656, - 1572864: 67174404, - 2621440: 0, - 3670016: 67109120, - 4718592: 67108868, - 5767168: 65536, - 6815744: 65540, - 7864320: 260, - 8912896: 4, - 9961472: 256, - 11010048: 67174400, - 12058624: 65796, - 13107200: 65792, - 14155776: 67109124, - 15204352: 67174660, - 16252928: 67108864, - 16777216: 67174656, - 17825792: 65540, - 18874368: 65536, - 19922944: 67109120, - 20971520: 256, - 22020096: 67174660, - 23068672: 67108868, - 24117248: 0, - 25165824: 67109124, - 26214400: 67108864, - 27262976: 4, - 28311552: 65792, - 29360128: 67174400, - 30408704: 260, - 31457280: 65796, - 32505856: 67174404, - 17301504: 67108864, - 18350080: 260, - 19398656: 67174656, - 20447232: 0, - 21495808: 65540, - 22544384: 67109120, - 23592960: 256, - 24641536: 67174404, - 25690112: 65536, - 26738688: 67174660, - 27787264: 65796, - 28835840: 67108868, - 29884416: 67109124, - 30932992: 67174400, - 31981568: 4, - 33030144: 65792 - }, - { - 0: 2151682048, - 65536: 2147487808, - 131072: 4198464, - 196608: 2151677952, - 262144: 0, - 327680: 4198400, - 393216: 2147483712, - 458752: 4194368, - 524288: 2147483648, - 589824: 4194304, - 655360: 64, - 720896: 2147487744, - 786432: 2151678016, - 851968: 4160, - 917504: 4096, - 983040: 2151682112, - 32768: 2147487808, - 98304: 64, - 163840: 2151678016, - 229376: 2147487744, - 294912: 4198400, - 360448: 2151682112, - 425984: 0, - 491520: 2151677952, - 557056: 4096, - 622592: 2151682048, - 688128: 4194304, - 753664: 4160, - 819200: 2147483648, - 884736: 4194368, - 950272: 4198464, - 1015808: 2147483712, - 1048576: 4194368, - 1114112: 4198400, - 1179648: 2147483712, - 1245184: 0, - 1310720: 4160, - 1376256: 2151678016, - 1441792: 2151682048, - 1507328: 2147487808, - 1572864: 2151682112, - 1638400: 2147483648, - 1703936: 2151677952, - 1769472: 4198464, - 1835008: 2147487744, - 1900544: 4194304, - 1966080: 64, - 2031616: 4096, - 1081344: 2151677952, - 1146880: 2151682112, - 1212416: 0, - 1277952: 4198400, - 1343488: 4194368, - 1409024: 2147483648, - 1474560: 2147487808, - 1540096: 64, - 1605632: 2147483712, - 1671168: 4096, - 1736704: 2147487744, - 1802240: 2151678016, - 1867776: 4160, - 1933312: 2151682048, - 1998848: 4194304, - 2064384: 4198464 - }, - { - 0: 128, - 4096: 17039360, - 8192: 262144, - 12288: 536870912, - 16384: 537133184, - 20480: 16777344, - 24576: 553648256, - 28672: 262272, - 32768: 16777216, - 36864: 537133056, - 40960: 536871040, - 45056: 553910400, - 49152: 553910272, - 53248: 0, - 57344: 17039488, - 61440: 553648128, - 2048: 17039488, - 6144: 553648256, - 10240: 128, - 14336: 17039360, - 18432: 262144, - 22528: 537133184, - 26624: 553910272, - 30720: 536870912, - 34816: 537133056, - 38912: 0, - 43008: 553910400, - 47104: 16777344, - 51200: 536871040, - 55296: 553648128, - 59392: 16777216, - 63488: 262272, - 65536: 262144, - 69632: 128, - 73728: 536870912, - 77824: 553648256, - 81920: 16777344, - 86016: 553910272, - 90112: 537133184, - 94208: 16777216, - 98304: 553910400, - 102400: 553648128, - 106496: 17039360, - 110592: 537133056, - 114688: 262272, - 118784: 536871040, - 122880: 0, - 126976: 17039488, - 67584: 553648256, - 71680: 16777216, - 75776: 17039360, - 79872: 537133184, - 83968: 536870912, - 88064: 17039488, - 92160: 128, - 96256: 553910272, - 100352: 262272, - 104448: 553910400, - 108544: 0, - 112640: 553648128, - 116736: 16777344, - 120832: 262144, - 124928: 537133056, - 129024: 536871040 - }, - { - 0: 268435464, - 256: 8192, - 512: 270532608, - 768: 270540808, - 1024: 268443648, - 1280: 2097152, - 1536: 2097160, - 1792: 268435456, - 2048: 0, - 2304: 268443656, - 2560: 2105344, - 2816: 8, - 3072: 270532616, - 3328: 2105352, - 3584: 8200, - 3840: 270540800, - 128: 270532608, - 384: 270540808, - 640: 8, - 896: 2097152, - 1152: 2105352, - 1408: 268435464, - 1664: 268443648, - 1920: 8200, - 2176: 2097160, - 2432: 8192, - 2688: 268443656, - 2944: 270532616, - 3200: 0, - 3456: 270540800, - 3712: 2105344, - 3968: 268435456, - 4096: 268443648, - 4352: 270532616, - 4608: 270540808, - 4864: 8200, - 5120: 2097152, - 5376: 268435456, - 5632: 268435464, - 5888: 2105344, - 6144: 2105352, - 6400: 0, - 6656: 8, - 6912: 270532608, - 7168: 8192, - 7424: 268443656, - 7680: 270540800, - 7936: 2097160, - 4224: 8, - 4480: 2105344, - 4736: 2097152, - 4992: 268435464, - 5248: 268443648, - 5504: 8200, - 5760: 270540808, - 6016: 270532608, - 6272: 270540800, - 6528: 270532616, - 6784: 8192, - 7040: 2105352, - 7296: 2097160, - 7552: 0, - 7808: 268435456, - 8064: 268443656 - }, - { - 0: 1048576, - 16: 33555457, - 32: 1024, - 48: 1049601, - 64: 34604033, - 80: 0, - 96: 1, - 112: 34603009, - 128: 33555456, - 144: 1048577, - 160: 33554433, - 176: 34604032, - 192: 34603008, - 208: 1025, - 224: 1049600, - 240: 33554432, - 8: 34603009, - 24: 0, - 40: 33555457, - 56: 34604032, - 72: 1048576, - 88: 33554433, - 104: 33554432, - 120: 1025, - 136: 1049601, - 152: 33555456, - 168: 34603008, - 184: 1048577, - 200: 1024, - 216: 34604033, - 232: 1, - 248: 1049600, - 256: 33554432, - 272: 1048576, - 288: 33555457, - 304: 34603009, - 320: 1048577, - 336: 33555456, - 352: 34604032, - 368: 1049601, - 384: 1025, - 400: 34604033, - 416: 1049600, - 432: 1, - 448: 0, - 464: 34603008, - 480: 33554433, - 496: 1024, - 264: 1049600, - 280: 33555457, - 296: 34603009, - 312: 1, - 328: 33554432, - 344: 1048576, - 360: 1025, - 376: 34604032, - 392: 33554433, - 408: 34603008, - 424: 0, - 440: 34604033, - 456: 1049601, - 472: 1024, - 488: 33555456, - 504: 1048577 - }, - { - 0: 134219808, - 1: 131072, - 2: 134217728, - 3: 32, - 4: 131104, - 5: 134350880, - 6: 134350848, - 7: 2048, - 8: 134348800, - 9: 134219776, - 10: 133120, - 11: 134348832, - 12: 2080, - 13: 0, - 14: 134217760, - 15: 133152, - 2147483648: 2048, - 2147483649: 134350880, - 2147483650: 134219808, - 2147483651: 134217728, - 2147483652: 134348800, - 2147483653: 133120, - 2147483654: 133152, - 2147483655: 32, - 2147483656: 134217760, - 2147483657: 2080, - 2147483658: 131104, - 2147483659: 134350848, - 2147483660: 0, - 2147483661: 134348832, - 2147483662: 134219776, - 2147483663: 131072, - 16: 133152, - 17: 134350848, - 18: 32, - 19: 2048, - 20: 134219776, - 21: 134217760, - 22: 134348832, - 23: 131072, - 24: 0, - 25: 131104, - 26: 134348800, - 27: 134219808, - 28: 134350880, - 29: 133120, - 30: 2080, - 31: 134217728, - 2147483664: 131072, - 2147483665: 2048, - 2147483666: 134348832, - 2147483667: 133152, - 2147483668: 32, - 2147483669: 134348800, - 2147483670: 134217728, - 2147483671: 134219808, - 2147483672: 134350880, - 2147483673: 134217760, - 2147483674: 134219776, - 2147483675: 0, - 2147483676: 133120, - 2147483677: 2080, - 2147483678: 131104, - 2147483679: 134350848 - } - ]; - var SBOX_MASK = [ - 4160749569, - 528482304, - 33030144, - 2064384, - 129024, - 8064, - 504, - 2147483679 - ]; - var DES = C_algo.DES = BlockCipher.extend({ - _doReset: function() { - var key = this._key; - var keyWords = key.words; - var keyBits = []; - for (var i = 0; i < 56; i++) { - var keyBitPos = PC1[i] - 1; - keyBits[i] = keyWords[keyBitPos >>> 5] >>> 31 - keyBitPos % 32 & 1; - } - var subKeys = this._subKeys = []; - for (var nSubKey = 0; nSubKey < 16; nSubKey++) { - var subKey = subKeys[nSubKey] = []; - var bitShift = BIT_SHIFTS[nSubKey]; - for (var i = 0; i < 24; i++) { - subKey[i / 6 | 0] |= keyBits[(PC2[i] - 1 + bitShift) % 28] << 31 - i % 6; - subKey[4 + (i / 6 | 0)] |= keyBits[28 + (PC2[i + 24] - 1 + bitShift) % 28] << 31 - i % 6; - } - subKey[0] = subKey[0] << 1 | subKey[0] >>> 31; - for (var i = 1; i < 7; i++) { - subKey[i] = subKey[i] >>> (i - 1) * 4 + 3; - } - subKey[7] = subKey[7] << 5 | subKey[7] >>> 27; - } - var invSubKeys = this._invSubKeys = []; - for (var i = 0; i < 16; i++) { - invSubKeys[i] = subKeys[15 - i]; - } - }, - encryptBlock: function(M, offset) { - this._doCryptBlock(M, offset, this._subKeys); - }, - decryptBlock: function(M, offset) { - this._doCryptBlock(M, offset, this._invSubKeys); - }, - _doCryptBlock: function(M, offset, subKeys) { - this._lBlock = M[offset]; - this._rBlock = M[offset + 1]; - exchangeLR.call(this, 4, 252645135); - exchangeLR.call(this, 16, 65535); - exchangeRL.call(this, 2, 858993459); - exchangeRL.call(this, 8, 16711935); - exchangeLR.call(this, 1, 1431655765); - for (var round = 0; round < 16; round++) { - var subKey = subKeys[round]; - var lBlock = this._lBlock; - var rBlock = this._rBlock; - var f = 0; - for (var i = 0; i < 8; i++) { - f |= SBOX_P[i][((rBlock ^ subKey[i]) & SBOX_MASK[i]) >>> 0]; - } - this._lBlock = rBlock; - this._rBlock = lBlock ^ f; - } - var t = this._lBlock; - this._lBlock = this._rBlock; - this._rBlock = t; - exchangeLR.call(this, 1, 1431655765); - exchangeRL.call(this, 8, 16711935); - exchangeRL.call(this, 2, 858993459); - exchangeLR.call(this, 16, 65535); - exchangeLR.call(this, 4, 252645135); - M[offset] = this._lBlock; - M[offset + 1] = this._rBlock; - }, - keySize: 64 / 32, - ivSize: 64 / 32, - blockSize: 64 / 32 - }); - function exchangeLR(offset, mask) { - var t = (this._lBlock >>> offset ^ this._rBlock) & mask; - this._rBlock ^= t; - this._lBlock ^= t << offset; - } - function exchangeRL(offset, mask) { - var t = (this._rBlock >>> offset ^ this._lBlock) & mask; - this._lBlock ^= t; - this._rBlock ^= t << offset; - } - C2.DES = BlockCipher._createHelper(DES); - var TripleDES = C_algo.TripleDES = BlockCipher.extend({ - _doReset: function() { - var key = this._key; - var keyWords = key.words; - if (keyWords.length !== 2 && keyWords.length !== 4 && keyWords.length < 6) { - throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192."); - } - var key1 = keyWords.slice(0, 2); - var key2 = keyWords.length < 4 ? keyWords.slice(0, 2) : keyWords.slice(2, 4); - var key3 = keyWords.length < 6 ? keyWords.slice(0, 2) : keyWords.slice(4, 6); - this._des1 = DES.createEncryptor(WordArray.create(key1)); - this._des2 = DES.createEncryptor(WordArray.create(key2)); - this._des3 = DES.createEncryptor(WordArray.create(key3)); - }, - encryptBlock: function(M, offset) { - this._des1.encryptBlock(M, offset); - this._des2.decryptBlock(M, offset); - this._des3.encryptBlock(M, offset); - }, - decryptBlock: function(M, offset) { - this._des3.decryptBlock(M, offset); - this._des2.encryptBlock(M, offset); - this._des1.decryptBlock(M, offset); - }, - keySize: 192 / 32, - ivSize: 64 / 32, - blockSize: 64 / 32 - }); - C2.TripleDES = BlockCipher._createHelper(TripleDES); - })(); - return CryptoJS.TripleDES; - }); - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rc4.js -var require_rc4 = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rc4.js"(exports2, module2) { - (function(root, factory, undef) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(require_core(), require_enc_base64(), require_md5(), require_evpkdf(), require_cipher_core()); - } else if (typeof define === "function" && define.amd) { - define(["./core", "./enc-base64", "./md5", "./evpkdf", "./cipher-core"], factory); - } else { - factory(root.CryptoJS); - } - })(exports2, function(CryptoJS) { - (function() { - var C2 = CryptoJS; - var C_lib = C2.lib; - var StreamCipher = C_lib.StreamCipher; - var C_algo = C2.algo; - var RC4 = C_algo.RC4 = StreamCipher.extend({ - _doReset: function() { - var key = this._key; - var keyWords = key.words; - var keySigBytes = key.sigBytes; - var S = this._S = []; - for (var i = 0; i < 256; i++) { - S[i] = i; - } - for (var i = 0, j = 0; i < 256; i++) { - var keyByteIndex = i % keySigBytes; - var keyByte = keyWords[keyByteIndex >>> 2] >>> 24 - keyByteIndex % 4 * 8 & 255; - j = (j + S[i] + keyByte) % 256; - var t = S[i]; - S[i] = S[j]; - S[j] = t; - } - this._i = this._j = 0; - }, - _doProcessBlock: function(M, offset) { - M[offset] ^= generateKeystreamWord.call(this); - }, - keySize: 256 / 32, - ivSize: 0 - }); - function generateKeystreamWord() { - var S = this._S; - var i = this._i; - var j = this._j; - var keystreamWord = 0; - for (var n = 0; n < 4; n++) { - i = (i + 1) % 256; - j = (j + S[i]) % 256; - var t = S[i]; - S[i] = S[j]; - S[j] = t; - keystreamWord |= S[(S[i] + S[j]) % 256] << 24 - n * 8; - } - this._i = i; - this._j = j; - return keystreamWord; - } - C2.RC4 = StreamCipher._createHelper(RC4); - var RC4Drop = C_algo.RC4Drop = RC4.extend({ - /** - * Configuration options. - * - * @property {number} drop The number of keystream words to drop. Default 192 - */ - cfg: RC4.cfg.extend({ - drop: 192 - }), - _doReset: function() { - RC4._doReset.call(this); - for (var i = this.cfg.drop; i > 0; i--) { - generateKeystreamWord.call(this); - } - } - }); - C2.RC4Drop = StreamCipher._createHelper(RC4Drop); - })(); - return CryptoJS.RC4; - }); - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rabbit.js -var require_rabbit = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rabbit.js"(exports2, module2) { - (function(root, factory, undef) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(require_core(), require_enc_base64(), require_md5(), require_evpkdf(), require_cipher_core()); - } else if (typeof define === "function" && define.amd) { - define(["./core", "./enc-base64", "./md5", "./evpkdf", "./cipher-core"], factory); - } else { - factory(root.CryptoJS); - } - })(exports2, function(CryptoJS) { - (function() { - var C2 = CryptoJS; - var C_lib = C2.lib; - var StreamCipher = C_lib.StreamCipher; - var C_algo = C2.algo; - var S = []; - var C_ = []; - var G = []; - var Rabbit = C_algo.Rabbit = StreamCipher.extend({ - _doReset: function() { - var K = this._key.words; - var iv = this.cfg.iv; - for (var i = 0; i < 4; i++) { - K[i] = (K[i] << 8 | K[i] >>> 24) & 16711935 | (K[i] << 24 | K[i] >>> 8) & 4278255360; - } - var X = this._X = [ - K[0], - K[3] << 16 | K[2] >>> 16, - K[1], - K[0] << 16 | K[3] >>> 16, - K[2], - K[1] << 16 | K[0] >>> 16, - K[3], - K[2] << 16 | K[1] >>> 16 - ]; - var C3 = this._C = [ - K[2] << 16 | K[2] >>> 16, - K[0] & 4294901760 | K[1] & 65535, - K[3] << 16 | K[3] >>> 16, - K[1] & 4294901760 | K[2] & 65535, - K[0] << 16 | K[0] >>> 16, - K[2] & 4294901760 | K[3] & 65535, - K[1] << 16 | K[1] >>> 16, - K[3] & 4294901760 | K[0] & 65535 - ]; - this._b = 0; - for (var i = 0; i < 4; i++) { - nextState.call(this); - } - for (var i = 0; i < 8; i++) { - C3[i] ^= X[i + 4 & 7]; - } - if (iv) { - var IV = iv.words; - var IV_0 = IV[0]; - var IV_1 = IV[1]; - var i0 = (IV_0 << 8 | IV_0 >>> 24) & 16711935 | (IV_0 << 24 | IV_0 >>> 8) & 4278255360; - var i2 = (IV_1 << 8 | IV_1 >>> 24) & 16711935 | (IV_1 << 24 | IV_1 >>> 8) & 4278255360; - var i1 = i0 >>> 16 | i2 & 4294901760; - var i3 = i2 << 16 | i0 & 65535; - C3[0] ^= i0; - C3[1] ^= i1; - C3[2] ^= i2; - C3[3] ^= i3; - C3[4] ^= i0; - C3[5] ^= i1; - C3[6] ^= i2; - C3[7] ^= i3; - for (var i = 0; i < 4; i++) { - nextState.call(this); - } - } - }, - _doProcessBlock: function(M, offset) { - var X = this._X; - nextState.call(this); - S[0] = X[0] ^ X[5] >>> 16 ^ X[3] << 16; - S[1] = X[2] ^ X[7] >>> 16 ^ X[5] << 16; - S[2] = X[4] ^ X[1] >>> 16 ^ X[7] << 16; - S[3] = X[6] ^ X[3] >>> 16 ^ X[1] << 16; - for (var i = 0; i < 4; i++) { - S[i] = (S[i] << 8 | S[i] >>> 24) & 16711935 | (S[i] << 24 | S[i] >>> 8) & 4278255360; - M[offset + i] ^= S[i]; - } - }, - blockSize: 128 / 32, - ivSize: 64 / 32 - }); - function nextState() { - var X = this._X; - var C3 = this._C; - for (var i = 0; i < 8; i++) { - C_[i] = C3[i]; - } - C3[0] = C3[0] + 1295307597 + this._b | 0; - C3[1] = C3[1] + 3545052371 + (C3[0] >>> 0 < C_[0] >>> 0 ? 1 : 0) | 0; - C3[2] = C3[2] + 886263092 + (C3[1] >>> 0 < C_[1] >>> 0 ? 1 : 0) | 0; - C3[3] = C3[3] + 1295307597 + (C3[2] >>> 0 < C_[2] >>> 0 ? 1 : 0) | 0; - C3[4] = C3[4] + 3545052371 + (C3[3] >>> 0 < C_[3] >>> 0 ? 1 : 0) | 0; - C3[5] = C3[5] + 886263092 + (C3[4] >>> 0 < C_[4] >>> 0 ? 1 : 0) | 0; - C3[6] = C3[6] + 1295307597 + (C3[5] >>> 0 < C_[5] >>> 0 ? 1 : 0) | 0; - C3[7] = C3[7] + 3545052371 + (C3[6] >>> 0 < C_[6] >>> 0 ? 1 : 0) | 0; - this._b = C3[7] >>> 0 < C_[7] >>> 0 ? 1 : 0; - for (var i = 0; i < 8; i++) { - var gx = X[i] + C3[i]; - var ga = gx & 65535; - var gb = gx >>> 16; - var gh = ((ga * ga >>> 17) + ga * gb >>> 15) + gb * gb; - var gl = ((gx & 4294901760) * gx | 0) + ((gx & 65535) * gx | 0); - G[i] = gh ^ gl; - } - X[0] = G[0] + (G[7] << 16 | G[7] >>> 16) + (G[6] << 16 | G[6] >>> 16) | 0; - X[1] = G[1] + (G[0] << 8 | G[0] >>> 24) + G[7] | 0; - X[2] = G[2] + (G[1] << 16 | G[1] >>> 16) + (G[0] << 16 | G[0] >>> 16) | 0; - X[3] = G[3] + (G[2] << 8 | G[2] >>> 24) + G[1] | 0; - X[4] = G[4] + (G[3] << 16 | G[3] >>> 16) + (G[2] << 16 | G[2] >>> 16) | 0; - X[5] = G[5] + (G[4] << 8 | G[4] >>> 24) + G[3] | 0; - X[6] = G[6] + (G[5] << 16 | G[5] >>> 16) + (G[4] << 16 | G[4] >>> 16) | 0; - X[7] = G[7] + (G[6] << 8 | G[6] >>> 24) + G[5] | 0; - } - C2.Rabbit = StreamCipher._createHelper(Rabbit); - })(); - return CryptoJS.Rabbit; - }); - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rabbit-legacy.js -var require_rabbit_legacy = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rabbit-legacy.js"(exports2, module2) { - (function(root, factory, undef) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(require_core(), require_enc_base64(), require_md5(), require_evpkdf(), require_cipher_core()); - } else if (typeof define === "function" && define.amd) { - define(["./core", "./enc-base64", "./md5", "./evpkdf", "./cipher-core"], factory); - } else { - factory(root.CryptoJS); - } - })(exports2, function(CryptoJS) { - (function() { - var C2 = CryptoJS; - var C_lib = C2.lib; - var StreamCipher = C_lib.StreamCipher; - var C_algo = C2.algo; - var S = []; - var C_ = []; - var G = []; - var RabbitLegacy = C_algo.RabbitLegacy = StreamCipher.extend({ - _doReset: function() { - var K = this._key.words; - var iv = this.cfg.iv; - var X = this._X = [ - K[0], - K[3] << 16 | K[2] >>> 16, - K[1], - K[0] << 16 | K[3] >>> 16, - K[2], - K[1] << 16 | K[0] >>> 16, - K[3], - K[2] << 16 | K[1] >>> 16 - ]; - var C3 = this._C = [ - K[2] << 16 | K[2] >>> 16, - K[0] & 4294901760 | K[1] & 65535, - K[3] << 16 | K[3] >>> 16, - K[1] & 4294901760 | K[2] & 65535, - K[0] << 16 | K[0] >>> 16, - K[2] & 4294901760 | K[3] & 65535, - K[1] << 16 | K[1] >>> 16, - K[3] & 4294901760 | K[0] & 65535 - ]; - this._b = 0; - for (var i = 0; i < 4; i++) { - nextState.call(this); - } - for (var i = 0; i < 8; i++) { - C3[i] ^= X[i + 4 & 7]; - } - if (iv) { - var IV = iv.words; - var IV_0 = IV[0]; - var IV_1 = IV[1]; - var i0 = (IV_0 << 8 | IV_0 >>> 24) & 16711935 | (IV_0 << 24 | IV_0 >>> 8) & 4278255360; - var i2 = (IV_1 << 8 | IV_1 >>> 24) & 16711935 | (IV_1 << 24 | IV_1 >>> 8) & 4278255360; - var i1 = i0 >>> 16 | i2 & 4294901760; - var i3 = i2 << 16 | i0 & 65535; - C3[0] ^= i0; - C3[1] ^= i1; - C3[2] ^= i2; - C3[3] ^= i3; - C3[4] ^= i0; - C3[5] ^= i1; - C3[6] ^= i2; - C3[7] ^= i3; - for (var i = 0; i < 4; i++) { - nextState.call(this); - } - } - }, - _doProcessBlock: function(M, offset) { - var X = this._X; - nextState.call(this); - S[0] = X[0] ^ X[5] >>> 16 ^ X[3] << 16; - S[1] = X[2] ^ X[7] >>> 16 ^ X[5] << 16; - S[2] = X[4] ^ X[1] >>> 16 ^ X[7] << 16; - S[3] = X[6] ^ X[3] >>> 16 ^ X[1] << 16; - for (var i = 0; i < 4; i++) { - S[i] = (S[i] << 8 | S[i] >>> 24) & 16711935 | (S[i] << 24 | S[i] >>> 8) & 4278255360; - M[offset + i] ^= S[i]; - } - }, - blockSize: 128 / 32, - ivSize: 64 / 32 - }); - function nextState() { - var X = this._X; - var C3 = this._C; - for (var i = 0; i < 8; i++) { - C_[i] = C3[i]; - } - C3[0] = C3[0] + 1295307597 + this._b | 0; - C3[1] = C3[1] + 3545052371 + (C3[0] >>> 0 < C_[0] >>> 0 ? 1 : 0) | 0; - C3[2] = C3[2] + 886263092 + (C3[1] >>> 0 < C_[1] >>> 0 ? 1 : 0) | 0; - C3[3] = C3[3] + 1295307597 + (C3[2] >>> 0 < C_[2] >>> 0 ? 1 : 0) | 0; - C3[4] = C3[4] + 3545052371 + (C3[3] >>> 0 < C_[3] >>> 0 ? 1 : 0) | 0; - C3[5] = C3[5] + 886263092 + (C3[4] >>> 0 < C_[4] >>> 0 ? 1 : 0) | 0; - C3[6] = C3[6] + 1295307597 + (C3[5] >>> 0 < C_[5] >>> 0 ? 1 : 0) | 0; - C3[7] = C3[7] + 3545052371 + (C3[6] >>> 0 < C_[6] >>> 0 ? 1 : 0) | 0; - this._b = C3[7] >>> 0 < C_[7] >>> 0 ? 1 : 0; - for (var i = 0; i < 8; i++) { - var gx = X[i] + C3[i]; - var ga = gx & 65535; - var gb = gx >>> 16; - var gh = ((ga * ga >>> 17) + ga * gb >>> 15) + gb * gb; - var gl = ((gx & 4294901760) * gx | 0) + ((gx & 65535) * gx | 0); - G[i] = gh ^ gl; - } - X[0] = G[0] + (G[7] << 16 | G[7] >>> 16) + (G[6] << 16 | G[6] >>> 16) | 0; - X[1] = G[1] + (G[0] << 8 | G[0] >>> 24) + G[7] | 0; - X[2] = G[2] + (G[1] << 16 | G[1] >>> 16) + (G[0] << 16 | G[0] >>> 16) | 0; - X[3] = G[3] + (G[2] << 8 | G[2] >>> 24) + G[1] | 0; - X[4] = G[4] + (G[3] << 16 | G[3] >>> 16) + (G[2] << 16 | G[2] >>> 16) | 0; - X[5] = G[5] + (G[4] << 8 | G[4] >>> 24) + G[3] | 0; - X[6] = G[6] + (G[5] << 16 | G[5] >>> 16) + (G[4] << 16 | G[4] >>> 16) | 0; - X[7] = G[7] + (G[6] << 8 | G[6] >>> 24) + G[5] | 0; - } - C2.RabbitLegacy = StreamCipher._createHelper(RabbitLegacy); - })(); - return CryptoJS.RabbitLegacy; - }); - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/blowfish.js -var require_blowfish = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/blowfish.js"(exports2, module2) { - (function(root, factory, undef) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(require_core(), require_enc_base64(), require_md5(), require_evpkdf(), require_cipher_core()); - } else if (typeof define === "function" && define.amd) { - define(["./core", "./enc-base64", "./md5", "./evpkdf", "./cipher-core"], factory); - } else { - factory(root.CryptoJS); - } - })(exports2, function(CryptoJS) { - (function() { - var C2 = CryptoJS; - var C_lib = C2.lib; - var BlockCipher = C_lib.BlockCipher; - var C_algo = C2.algo; - const N = 16; - const ORIG_P = [ - 608135816, - 2242054355, - 320440878, - 57701188, - 2752067618, - 698298832, - 137296536, - 3964562569, - 1160258022, - 953160567, - 3193202383, - 887688300, - 3232508343, - 3380367581, - 1065670069, - 3041331479, - 2450970073, - 2306472731 - ]; - const ORIG_S = [ - [ - 3509652390, - 2564797868, - 805139163, - 3491422135, - 3101798381, - 1780907670, - 3128725573, - 4046225305, - 614570311, - 3012652279, - 134345442, - 2240740374, - 1667834072, - 1901547113, - 2757295779, - 4103290238, - 227898511, - 1921955416, - 1904987480, - 2182433518, - 2069144605, - 3260701109, - 2620446009, - 720527379, - 3318853667, - 677414384, - 3393288472, - 3101374703, - 2390351024, - 1614419982, - 1822297739, - 2954791486, - 3608508353, - 3174124327, - 2024746970, - 1432378464, - 3864339955, - 2857741204, - 1464375394, - 1676153920, - 1439316330, - 715854006, - 3033291828, - 289532110, - 2706671279, - 2087905683, - 3018724369, - 1668267050, - 732546397, - 1947742710, - 3462151702, - 2609353502, - 2950085171, - 1814351708, - 2050118529, - 680887927, - 999245976, - 1800124847, - 3300911131, - 1713906067, - 1641548236, - 4213287313, - 1216130144, - 1575780402, - 4018429277, - 3917837745, - 3693486850, - 3949271944, - 596196993, - 3549867205, - 258830323, - 2213823033, - 772490370, - 2760122372, - 1774776394, - 2652871518, - 566650946, - 4142492826, - 1728879713, - 2882767088, - 1783734482, - 3629395816, - 2517608232, - 2874225571, - 1861159788, - 326777828, - 3124490320, - 2130389656, - 2716951837, - 967770486, - 1724537150, - 2185432712, - 2364442137, - 1164943284, - 2105845187, - 998989502, - 3765401048, - 2244026483, - 1075463327, - 1455516326, - 1322494562, - 910128902, - 469688178, - 1117454909, - 936433444, - 3490320968, - 3675253459, - 1240580251, - 122909385, - 2157517691, - 634681816, - 4142456567, - 3825094682, - 3061402683, - 2540495037, - 79693498, - 3249098678, - 1084186820, - 1583128258, - 426386531, - 1761308591, - 1047286709, - 322548459, - 995290223, - 1845252383, - 2603652396, - 3431023940, - 2942221577, - 3202600964, - 3727903485, - 1712269319, - 422464435, - 3234572375, - 1170764815, - 3523960633, - 3117677531, - 1434042557, - 442511882, - 3600875718, - 1076654713, - 1738483198, - 4213154764, - 2393238008, - 3677496056, - 1014306527, - 4251020053, - 793779912, - 2902807211, - 842905082, - 4246964064, - 1395751752, - 1040244610, - 2656851899, - 3396308128, - 445077038, - 3742853595, - 3577915638, - 679411651, - 2892444358, - 2354009459, - 1767581616, - 3150600392, - 3791627101, - 3102740896, - 284835224, - 4246832056, - 1258075500, - 768725851, - 2589189241, - 3069724005, - 3532540348, - 1274779536, - 3789419226, - 2764799539, - 1660621633, - 3471099624, - 4011903706, - 913787905, - 3497959166, - 737222580, - 2514213453, - 2928710040, - 3937242737, - 1804850592, - 3499020752, - 2949064160, - 2386320175, - 2390070455, - 2415321851, - 4061277028, - 2290661394, - 2416832540, - 1336762016, - 1754252060, - 3520065937, - 3014181293, - 791618072, - 3188594551, - 3933548030, - 2332172193, - 3852520463, - 3043980520, - 413987798, - 3465142937, - 3030929376, - 4245938359, - 2093235073, - 3534596313, - 375366246, - 2157278981, - 2479649556, - 555357303, - 3870105701, - 2008414854, - 3344188149, - 4221384143, - 3956125452, - 2067696032, - 3594591187, - 2921233993, - 2428461, - 544322398, - 577241275, - 1471733935, - 610547355, - 4027169054, - 1432588573, - 1507829418, - 2025931657, - 3646575487, - 545086370, - 48609733, - 2200306550, - 1653985193, - 298326376, - 1316178497, - 3007786442, - 2064951626, - 458293330, - 2589141269, - 3591329599, - 3164325604, - 727753846, - 2179363840, - 146436021, - 1461446943, - 4069977195, - 705550613, - 3059967265, - 3887724982, - 4281599278, - 3313849956, - 1404054877, - 2845806497, - 146425753, - 1854211946 - ], - [ - 1266315497, - 3048417604, - 3681880366, - 3289982499, - 290971e4, - 1235738493, - 2632868024, - 2414719590, - 3970600049, - 1771706367, - 1449415276, - 3266420449, - 422970021, - 1963543593, - 2690192192, - 3826793022, - 1062508698, - 1531092325, - 1804592342, - 2583117782, - 2714934279, - 4024971509, - 1294809318, - 4028980673, - 1289560198, - 2221992742, - 1669523910, - 35572830, - 157838143, - 1052438473, - 1016535060, - 1802137761, - 1753167236, - 1386275462, - 3080475397, - 2857371447, - 1040679964, - 2145300060, - 2390574316, - 1461121720, - 2956646967, - 4031777805, - 4028374788, - 33600511, - 2920084762, - 1018524850, - 629373528, - 3691585981, - 3515945977, - 2091462646, - 2486323059, - 586499841, - 988145025, - 935516892, - 3367335476, - 2599673255, - 2839830854, - 265290510, - 3972581182, - 2759138881, - 3795373465, - 1005194799, - 847297441, - 406762289, - 1314163512, - 1332590856, - 1866599683, - 4127851711, - 750260880, - 613907577, - 1450815602, - 3165620655, - 3734664991, - 3650291728, - 3012275730, - 3704569646, - 1427272223, - 778793252, - 1343938022, - 2676280711, - 2052605720, - 1946737175, - 3164576444, - 3914038668, - 3967478842, - 3682934266, - 1661551462, - 3294938066, - 4011595847, - 840292616, - 3712170807, - 616741398, - 312560963, - 711312465, - 1351876610, - 322626781, - 1910503582, - 271666773, - 2175563734, - 1594956187, - 70604529, - 3617834859, - 1007753275, - 1495573769, - 4069517037, - 2549218298, - 2663038764, - 504708206, - 2263041392, - 3941167025, - 2249088522, - 1514023603, - 1998579484, - 1312622330, - 694541497, - 2582060303, - 2151582166, - 1382467621, - 776784248, - 2618340202, - 3323268794, - 2497899128, - 2784771155, - 503983604, - 4076293799, - 907881277, - 423175695, - 432175456, - 1378068232, - 4145222326, - 3954048622, - 3938656102, - 3820766613, - 2793130115, - 2977904593, - 26017576, - 3274890735, - 3194772133, - 1700274565, - 1756076034, - 4006520079, - 3677328699, - 720338349, - 1533947780, - 354530856, - 688349552, - 3973924725, - 1637815568, - 332179504, - 3949051286, - 53804574, - 2852348879, - 3044236432, - 1282449977, - 3583942155, - 3416972820, - 4006381244, - 1617046695, - 2628476075, - 3002303598, - 1686838959, - 431878346, - 2686675385, - 1700445008, - 1080580658, - 1009431731, - 832498133, - 3223435511, - 2605976345, - 2271191193, - 2516031870, - 1648197032, - 4164389018, - 2548247927, - 300782431, - 375919233, - 238389289, - 3353747414, - 2531188641, - 2019080857, - 1475708069, - 455242339, - 2609103871, - 448939670, - 3451063019, - 1395535956, - 2413381860, - 1841049896, - 1491858159, - 885456874, - 4264095073, - 4001119347, - 1565136089, - 3898914787, - 1108368660, - 540939232, - 1173283510, - 2745871338, - 3681308437, - 4207628240, - 3343053890, - 4016749493, - 1699691293, - 1103962373, - 3625875870, - 2256883143, - 3830138730, - 1031889488, - 3479347698, - 1535977030, - 4236805024, - 3251091107, - 2132092099, - 1774941330, - 1199868427, - 1452454533, - 157007616, - 2904115357, - 342012276, - 595725824, - 1480756522, - 206960106, - 497939518, - 591360097, - 863170706, - 2375253569, - 3596610801, - 1814182875, - 2094937945, - 3421402208, - 1082520231, - 3463918190, - 2785509508, - 435703966, - 3908032597, - 1641649973, - 2842273706, - 3305899714, - 1510255612, - 2148256476, - 2655287854, - 3276092548, - 4258621189, - 236887753, - 3681803219, - 274041037, - 1734335097, - 3815195456, - 3317970021, - 1899903192, - 1026095262, - 4050517792, - 356393447, - 2410691914, - 3873677099, - 3682840055 - ], - [ - 3913112168, - 2491498743, - 4132185628, - 2489919796, - 1091903735, - 1979897079, - 3170134830, - 3567386728, - 3557303409, - 857797738, - 1136121015, - 1342202287, - 507115054, - 2535736646, - 337727348, - 3213592640, - 1301675037, - 2528481711, - 1895095763, - 1721773893, - 3216771564, - 62756741, - 2142006736, - 835421444, - 2531993523, - 1442658625, - 3659876326, - 2882144922, - 676362277, - 1392781812, - 170690266, - 3921047035, - 1759253602, - 3611846912, - 1745797284, - 664899054, - 1329594018, - 3901205900, - 3045908486, - 2062866102, - 2865634940, - 3543621612, - 3464012697, - 1080764994, - 553557557, - 3656615353, - 3996768171, - 991055499, - 499776247, - 1265440854, - 648242737, - 3940784050, - 980351604, - 3713745714, - 1749149687, - 3396870395, - 4211799374, - 3640570775, - 1161844396, - 3125318951, - 1431517754, - 545492359, - 4268468663, - 3499529547, - 1437099964, - 2702547544, - 3433638243, - 2581715763, - 2787789398, - 1060185593, - 1593081372, - 2418618748, - 4260947970, - 69676912, - 2159744348, - 86519011, - 2512459080, - 3838209314, - 1220612927, - 3339683548, - 133810670, - 1090789135, - 1078426020, - 1569222167, - 845107691, - 3583754449, - 4072456591, - 1091646820, - 628848692, - 1613405280, - 3757631651, - 526609435, - 236106946, - 48312990, - 2942717905, - 3402727701, - 1797494240, - 859738849, - 992217954, - 4005476642, - 2243076622, - 3870952857, - 3732016268, - 765654824, - 3490871365, - 2511836413, - 1685915746, - 3888969200, - 1414112111, - 2273134842, - 3281911079, - 4080962846, - 172450625, - 2569994100, - 980381355, - 4109958455, - 2819808352, - 2716589560, - 2568741196, - 3681446669, - 3329971472, - 1835478071, - 660984891, - 3704678404, - 4045999559, - 3422617507, - 3040415634, - 1762651403, - 1719377915, - 3470491036, - 2693910283, - 3642056355, - 3138596744, - 1364962596, - 2073328063, - 1983633131, - 926494387, - 3423689081, - 2150032023, - 4096667949, - 1749200295, - 3328846651, - 309677260, - 2016342300, - 1779581495, - 3079819751, - 111262694, - 1274766160, - 443224088, - 298511866, - 1025883608, - 3806446537, - 1145181785, - 168956806, - 3641502830, - 3584813610, - 1689216846, - 3666258015, - 3200248200, - 1692713982, - 2646376535, - 4042768518, - 1618508792, - 1610833997, - 3523052358, - 4130873264, - 2001055236, - 3610705100, - 2202168115, - 4028541809, - 2961195399, - 1006657119, - 2006996926, - 3186142756, - 1430667929, - 3210227297, - 1314452623, - 4074634658, - 4101304120, - 2273951170, - 1399257539, - 3367210612, - 3027628629, - 1190975929, - 2062231137, - 2333990788, - 2221543033, - 2438960610, - 1181637006, - 548689776, - 2362791313, - 3372408396, - 3104550113, - 3145860560, - 296247880, - 1970579870, - 3078560182, - 3769228297, - 1714227617, - 3291629107, - 3898220290, - 166772364, - 1251581989, - 493813264, - 448347421, - 195405023, - 2709975567, - 677966185, - 3703036547, - 1463355134, - 2715995803, - 1338867538, - 1343315457, - 2802222074, - 2684532164, - 233230375, - 2599980071, - 2000651841, - 3277868038, - 1638401717, - 4028070440, - 3237316320, - 6314154, - 819756386, - 300326615, - 590932579, - 1405279636, - 3267499572, - 3150704214, - 2428286686, - 3959192993, - 3461946742, - 1862657033, - 1266418056, - 963775037, - 2089974820, - 2263052895, - 1917689273, - 448879540, - 3550394620, - 3981727096, - 150775221, - 3627908307, - 1303187396, - 508620638, - 2975983352, - 2726630617, - 1817252668, - 1876281319, - 1457606340, - 908771278, - 3720792119, - 3617206836, - 2455994898, - 1729034894, - 1080033504 - ], - [ - 976866871, - 3556439503, - 2881648439, - 1522871579, - 1555064734, - 1336096578, - 3548522304, - 2579274686, - 3574697629, - 3205460757, - 3593280638, - 3338716283, - 3079412587, - 564236357, - 2993598910, - 1781952180, - 1464380207, - 3163844217, - 3332601554, - 1699332808, - 1393555694, - 1183702653, - 3581086237, - 1288719814, - 691649499, - 2847557200, - 2895455976, - 3193889540, - 2717570544, - 1781354906, - 1676643554, - 2592534050, - 3230253752, - 1126444790, - 2770207658, - 2633158820, - 2210423226, - 2615765581, - 2414155088, - 3127139286, - 673620729, - 2805611233, - 1269405062, - 4015350505, - 3341807571, - 4149409754, - 1057255273, - 2012875353, - 2162469141, - 2276492801, - 2601117357, - 993977747, - 3918593370, - 2654263191, - 753973209, - 36408145, - 2530585658, - 25011837, - 3520020182, - 2088578344, - 530523599, - 2918365339, - 1524020338, - 1518925132, - 3760827505, - 3759777254, - 1202760957, - 3985898139, - 3906192525, - 674977740, - 4174734889, - 2031300136, - 2019492241, - 3983892565, - 4153806404, - 3822280332, - 352677332, - 2297720250, - 60907813, - 90501309, - 3286998549, - 1016092578, - 2535922412, - 2839152426, - 457141659, - 509813237, - 4120667899, - 652014361, - 1966332200, - 2975202805, - 55981186, - 2327461051, - 676427537, - 3255491064, - 2882294119, - 3433927263, - 1307055953, - 942726286, - 933058658, - 2468411793, - 3933900994, - 4215176142, - 1361170020, - 2001714738, - 2830558078, - 3274259782, - 1222529897, - 1679025792, - 2729314320, - 3714953764, - 1770335741, - 151462246, - 3013232138, - 1682292957, - 1483529935, - 471910574, - 1539241949, - 458788160, - 3436315007, - 1807016891, - 3718408830, - 978976581, - 1043663428, - 3165965781, - 1927990952, - 4200891579, - 2372276910, - 3208408903, - 3533431907, - 1412390302, - 2931980059, - 4132332400, - 1947078029, - 3881505623, - 4168226417, - 2941484381, - 1077988104, - 1320477388, - 886195818, - 18198404, - 3786409e3, - 2509781533, - 112762804, - 3463356488, - 1866414978, - 891333506, - 18488651, - 661792760, - 1628790961, - 3885187036, - 3141171499, - 876946877, - 2693282273, - 1372485963, - 791857591, - 2686433993, - 3759982718, - 3167212022, - 3472953795, - 2716379847, - 445679433, - 3561995674, - 3504004811, - 3574258232, - 54117162, - 3331405415, - 2381918588, - 3769707343, - 4154350007, - 1140177722, - 4074052095, - 668550556, - 3214352940, - 367459370, - 261225585, - 2610173221, - 4209349473, - 3468074219, - 3265815641, - 314222801, - 3066103646, - 3808782860, - 282218597, - 3406013506, - 3773591054, - 379116347, - 1285071038, - 846784868, - 2669647154, - 3771962079, - 3550491691, - 2305946142, - 453669953, - 1268987020, - 3317592352, - 3279303384, - 3744833421, - 2610507566, - 3859509063, - 266596637, - 3847019092, - 517658769, - 3462560207, - 3443424879, - 370717030, - 4247526661, - 2224018117, - 4143653529, - 4112773975, - 2788324899, - 2477274417, - 1456262402, - 2901442914, - 1517677493, - 1846949527, - 2295493580, - 3734397586, - 2176403920, - 1280348187, - 1908823572, - 3871786941, - 846861322, - 1172426758, - 3287448474, - 3383383037, - 1655181056, - 3139813346, - 901632758, - 1897031941, - 2986607138, - 3066810236, - 3447102507, - 1393639104, - 373351379, - 950779232, - 625454576, - 3124240540, - 4148612726, - 2007998917, - 544563296, - 2244738638, - 2330496472, - 2058025392, - 1291430526, - 424198748, - 50039436, - 29584100, - 3605783033, - 2429876329, - 2791104160, - 1057563949, - 3255363231, - 3075367218, - 3463963227, - 1469046755, - 985887462 - ] - ]; - var BLOWFISH_CTX = { - pbox: [], - sbox: [] - }; - function F(ctx, x) { - let a = x >> 24 & 255; - let b = x >> 16 & 255; - let c = x >> 8 & 255; - let d = x & 255; - let y = ctx.sbox[0][a] + ctx.sbox[1][b]; - y = y ^ ctx.sbox[2][c]; - y = y + ctx.sbox[3][d]; - return y; - } - function BlowFish_Encrypt(ctx, left, right) { - let Xl = left; - let Xr = right; - let temp; - for (let i = 0; i < N; ++i) { - Xl = Xl ^ ctx.pbox[i]; - Xr = F(ctx, Xl) ^ Xr; - temp = Xl; - Xl = Xr; - Xr = temp; - } - temp = Xl; - Xl = Xr; - Xr = temp; - Xr = Xr ^ ctx.pbox[N]; - Xl = Xl ^ ctx.pbox[N + 1]; - return { left: Xl, right: Xr }; - } - function BlowFish_Decrypt(ctx, left, right) { - let Xl = left; - let Xr = right; - let temp; - for (let i = N + 1; i > 1; --i) { - Xl = Xl ^ ctx.pbox[i]; - Xr = F(ctx, Xl) ^ Xr; - temp = Xl; - Xl = Xr; - Xr = temp; - } - temp = Xl; - Xl = Xr; - Xr = temp; - Xr = Xr ^ ctx.pbox[1]; - Xl = Xl ^ ctx.pbox[0]; - return { left: Xl, right: Xr }; - } - function BlowFishInit(ctx, key, keysize) { - for (let Row = 0; Row < 4; Row++) { - ctx.sbox[Row] = []; - for (let Col = 0; Col < 256; Col++) { - ctx.sbox[Row][Col] = ORIG_S[Row][Col]; - } - } - let keyIndex = 0; - for (let index = 0; index < N + 2; index++) { - ctx.pbox[index] = ORIG_P[index] ^ key[keyIndex]; - keyIndex++; - if (keyIndex >= keysize) { - keyIndex = 0; - } - } - let Data1 = 0; - let Data2 = 0; - let res = 0; - for (let i = 0; i < N + 2; i += 2) { - res = BlowFish_Encrypt(ctx, Data1, Data2); - Data1 = res.left; - Data2 = res.right; - ctx.pbox[i] = Data1; - ctx.pbox[i + 1] = Data2; - } - for (let i = 0; i < 4; i++) { - for (let j = 0; j < 256; j += 2) { - res = BlowFish_Encrypt(ctx, Data1, Data2); - Data1 = res.left; - Data2 = res.right; - ctx.sbox[i][j] = Data1; - ctx.sbox[i][j + 1] = Data2; - } - } - return true; - } - var Blowfish = C_algo.Blowfish = BlockCipher.extend({ - _doReset: function() { - if (this._keyPriorReset === this._key) { - return; - } - var key = this._keyPriorReset = this._key; - var keyWords = key.words; - var keySize = key.sigBytes / 4; - BlowFishInit(BLOWFISH_CTX, keyWords, keySize); - }, - encryptBlock: function(M, offset) { - var res = BlowFish_Encrypt(BLOWFISH_CTX, M[offset], M[offset + 1]); - M[offset] = res.left; - M[offset + 1] = res.right; - }, - decryptBlock: function(M, offset) { - var res = BlowFish_Decrypt(BLOWFISH_CTX, M[offset], M[offset + 1]); - M[offset] = res.left; - M[offset + 1] = res.right; - }, - blockSize: 64 / 32, - keySize: 128 / 32, - ivSize: 64 / 32 - }); - C2.Blowfish = BlockCipher._createHelper(Blowfish); - })(); - return CryptoJS.Blowfish; - }); - } -}); - -// ../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/index.js -var require_crypto_js = __commonJS({ - "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/index.js"(exports2, module2) { - (function(root, factory, undef) { - if (typeof exports2 === "object") { - module2.exports = exports2 = factory(require_core(), require_x64_core(), require_lib_typedarrays(), require_enc_utf16(), require_enc_base64(), require_enc_base64url(), require_md5(), require_sha1(), require_sha256(), require_sha224(), require_sha512(), require_sha384(), require_sha3(), require_ripemd160(), require_hmac(), require_pbkdf2(), require_evpkdf(), require_cipher_core(), require_mode_cfb(), require_mode_ctr(), require_mode_ctr_gladman(), require_mode_ofb(), require_mode_ecb(), require_pad_ansix923(), require_pad_iso10126(), require_pad_iso97971(), require_pad_zeropadding(), require_pad_nopadding(), require_format_hex(), require_aes(), require_tripledes(), require_rc4(), require_rabbit(), require_rabbit_legacy(), require_blowfish()); - } else if (typeof define === "function" && define.amd) { - define(["./core", "./x64-core", "./lib-typedarrays", "./enc-utf16", "./enc-base64", "./enc-base64url", "./md5", "./sha1", "./sha256", "./sha224", "./sha512", "./sha384", "./sha3", "./ripemd160", "./hmac", "./pbkdf2", "./evpkdf", "./cipher-core", "./mode-cfb", "./mode-ctr", "./mode-ctr-gladman", "./mode-ofb", "./mode-ecb", "./pad-ansix923", "./pad-iso10126", "./pad-iso97971", "./pad-zeropadding", "./pad-nopadding", "./format-hex", "./aes", "./tripledes", "./rc4", "./rabbit", "./rabbit-legacy", "./blowfish"], factory); - } else { - root.CryptoJS = factory(root.CryptoJS); - } - })(exports2, function(CryptoJS) { - return CryptoJS; - }); - } -}); - -// ../lib/shared/src/auth/tokens.ts -function dotcomTokenToGatewayToken(dotcomToken) { - const DOTCOM_TOKEN_REGEX = /^(?:sgph?_)?(?:[\da-fA-F]{16}_|local_)?(?[\da-fA-F]{40})$/; - const match2 = DOTCOM_TOKEN_REGEX.exec(dotcomToken); - if (!match2) { - return void 0; - } - const hexEncodedAccessTokenBytes = match2?.groups?.hexbytes; - if (!hexEncodedAccessTokenBytes) { - return void 0; - } - const accessTokenBytes = import_crypto_js.enc.Hex.parse(hexEncodedAccessTokenBytes); - const gatewayTokenBytes = (0, import_crypto_js.SHA256)((0, import_crypto_js.SHA256)(accessTokenBytes)).toString(); - return "sgd_" + gatewayTokenBytes; -} -var import_crypto_js; -var init_tokens = __esm({ - "../lib/shared/src/auth/tokens.ts"() { - "use strict"; - import_crypto_js = __toESM(require_crypto_js()); - } -}); - -// ../lib/shared/src/prompt/constants.ts -function tokensToChars(tokens) { - return tokens * CHARS_PER_TOKEN; -} -var ANSWER_TOKENS, MAX_CURRENT_FILE_TOKENS, CHARS_PER_TOKEN, SURROUNDING_LINES, NUM_CODE_RESULTS, NUM_TEXT_RESULTS, MAX_BYTES_PER_FILE; -var init_constants = __esm({ - "../lib/shared/src/prompt/constants.ts"() { - "use strict"; - ANSWER_TOKENS = 1e3; - MAX_CURRENT_FILE_TOKENS = 1e3; - CHARS_PER_TOKEN = 4; - SURROUNDING_LINES = 50; - NUM_CODE_RESULTS = 12; - NUM_TEXT_RESULTS = 3; - MAX_BYTES_PER_FILE = 4096; - } -}); - -// ../lib/shared/src/fetch.ts -function fetch3(input, init3) { - if (customUserAgent) { - init3 = init3 ?? {}; - const headers = new Headers(init3?.headers); - addCustomUserAgent(headers); - init3.headers = headers; - } - const initWithAgent = { - ...init3, - agent: agent.current - }; - return (0, import_isomorphic_fetch2.default)(input, initWithAgent); -} -var import_isomorphic_fetch2, agent; -var init_fetch = __esm({ - "../lib/shared/src/fetch.ts"() { - "use strict"; - import_isomorphic_fetch2 = __toESM(require_fetch_npm_node()); - init_client(); - agent = { current: void 0 }; - } -}); - -// ../lib/shared/src/chat/sse-iterator.ts -async function* createSSEIterator(iterator, options2 = {}) { - let buffer = ""; - for await (const event of iterator) { - const messages2 = []; - buffer += event.toString(); - let index; - while ((index = buffer.indexOf(SSE_TERMINATOR)) >= 0) { - const message = buffer.slice(0, index); - buffer = buffer.slice(index + SSE_TERMINATOR.length); - messages2.push(parseSSEEvent(message)); - } - for (let i = 0; i < messages2.length; i++) { - if (options2.aggregatedCompletionEvent) { - if (i + 1 < messages2.length && messages2[i].event === "completion" && messages2[i + 1].event === "completion") { - continue; - } - } - yield messages2[i]; - } - } -} -function parseSSEEvent(message) { - const headers = message.split("\n"); - let event = ""; - let data = ""; - for (const header of headers) { - const index = header.indexOf(": "); - const title = header.slice(0, index); - const rest = header.slice(index + 2); - switch (title) { - case "event": - event = rest; - break; - case "data": - data = rest; - break; - default: - console.error(`Unknown SSE event type: ${event}`); - } - } - return { event, data }; -} -var SSE_TERMINATOR; -var init_sse_iterator = __esm({ - "../lib/shared/src/chat/sse-iterator.ts"() { - "use strict"; - SSE_TERMINATOR = "\n\n"; - } -}); - -// ../lib/shared/src/chat/fast-path-client.ts -function createFastPathClient(requestParams, authStatus, fastPathAccessToken, abortSignal, logger2) { - const isLocalInstance = authStatus.endpoint?.includes("sourcegraph.test") || authStatus.endpoint?.includes("localhost"); - const gatewayUrl = isLocalInstance ? "http://localhost:9992" : "https://cody-gateway.sourcegraph.com"; - const url2 = `${gatewayUrl}/v1/completions/anthropic-messages`; - const log2 = logger2?.startCompletion(requestParams, url2); - return tracer.startActiveSpan( - `POST ${url2}`, - async function* (span) { - const request = { - model: requestParams.model, - messages: requestParams.messages.map((message) => { - return { - role: message.speaker === "human" ? "user" : message.speaker, - content: [{ type: "text", text: message.text }] - }; - }), - max_tokens: requestParams.maxTokensToSample, - temperature: requestParams.temperature, - top_p: requestParams.topP, - top_k: requestParams.topK, - stop_sequences: requestParams.stopSequences, - stream: true - }; - const headers = new Headers(); - headers.set("Connection", "keep-alive"); - headers.set("Content-Type", "application/json; charset=utf-8"); - headers.set("Authorization", `Bearer ${fastPathAccessToken}`); - headers.set("X-Sourcegraph-Feature", "chat_completions"); - addTraceparent(headers); - const response = await fetch3(url2, { - method: "POST", - body: JSON.stringify(request), - headers, - signal: abortSignal - }); - logResponseHeadersToSpan(span, response); - const traceId = getActiveTraceAndSpanId()?.traceId; - if (response.status === 429) { - const upgradeIsAvailable = authStatus.userCanUpgrade; - throw recordErrorToSpan( - span, - await createRateLimitErrorFromResponse(response, upgradeIsAvailable) - ); - } - if (!response.ok) { - throw recordErrorToSpan( - span, - new NetworkError( - response, - await response.text() + (isLocalInstance ? "\nIs Cody Gateway running locally?" : ""), - traceId - ) - ); - } - if (response.body === null) { - throw recordErrorToSpan(span, new TracedError("No response body", traceId)); - } - const isStreamingResponse = response.headers.get("content-type")?.startsWith("text/event-stream"); - if (!isStreamingResponse || !isNodeResponse(response)) { - throw recordErrorToSpan(span, new TracedError("No streaming response given", traceId)); - } - let fullResponse; - try { - const iterator = createSSEIterator(response.body); - for await (const { event, data } of iterator) { - if (event === "error") { - throw new TracedError(data, traceId); - } - if (abortSignal?.aborted) { - if (fullResponse) { - fullResponse.stopReason = "cody-request-aborted" /* RequestAborted */; - } - break; - } - const response2 = JSON.parse(data); - if (response2.type === "ping" || response2.type === "message_start" || response2.type === "content_block_stop" || response2.type === "message_delta") { - continue; - } - if (response2.type === "message_stop") { - break; - } - if (response2.type === "content_block_start") { - fullResponse = { - completion: response2.content_block.text, - stopReason: "cody-streaming-chunk" /* StreamingChunk */ - }; - } else { - fullResponse = { - completion: (fullResponse ? fullResponse.completion : "") + response2.delta.text, - stopReason: "cody-streaming-chunk" /* StreamingChunk */ - }; - } - span.addEvent("yield", { stopReason: fullResponse.stopReason }); - yield { type: "change", text: fullResponse.completion }; - } - if (fullResponse === void 0) { - throw new TracedError("No completion response received", traceId); - } - if (!fullResponse.stopReason) { - fullResponse.stopReason = "cody-request-finished" /* RequestFinished */; - } - yield { type: "complete" }; - } catch (error) { - if (isAbortError(error) && fullResponse) { - fullResponse.stopReason = "cody-request-aborted" /* RequestAborted */; - yield { type: "complete" }; - return; - } - recordErrorToSpan(span, error); - if (isRateLimitError(error)) { - throw error; - } - const message = `error parsing completion response: ${error}`; - log2?.onError(message, error); - throw new TracedError(message, traceId); - } finally { - if (fullResponse) { - span.addEvent("return", { stopReason: fullResponse.stopReason }); - span.setStatus({ code: import_api2.SpanStatusCode.OK }); - span.end(); - log2?.onComplete(fullResponse); - } - } - } - ); -} -async function createRateLimitErrorFromResponse(response, upgradeIsAvailable) { - const retryAfter = response.headers.get("retry-after"); - const limit = response.headers.get("x-ratelimit-limit"); - return new RateLimitError( - "chat messages and commands", - await response.text(), - upgradeIsAvailable, - limit ? parseInt(limit, 10) : void 0, - retryAfter - ); -} -var import_api2; -var init_fast_path_client = __esm({ - "../lib/shared/src/chat/fast-path-client.ts"() { - "use strict"; - import_api2 = __toESM(require_src()); - init_fetch(); - init_errors(); - init_client(); - init_tracing(); - init_sse_iterator(); - } -}); - -// ../lib/shared/src/chat/chat.ts -function sanitizeMessages(messages2) { - let sanitizedMessages = messages2; - let lastMessage = messages2.at(-1); - const truncateLastMessage = lastMessage && lastMessage.speaker === "assistant" && !messages2.at(-1).text; - sanitizedMessages = truncateLastMessage ? messages2.slice(0, -1) : messages2; - sanitizedMessages = sanitizedMessages.filter((message, index) => { - if (index >= sanitizedMessages.length - 1) { - return true; - } - const nextMessage = sanitizedMessages[index + 1]; - if (nextMessage.speaker === "assistant" && !nextMessage.text || message.speaker === "assistant" && !message.text) { - return false; - } - return true; - }); - lastMessage = sanitizedMessages.at(-1); - if (lastMessage?.speaker === "assistant" && lastMessage.text) { - const lastMessageText = lastMessage.text.trimEnd(); - lastMessage.text = lastMessageText; - } - return sanitizedMessages; -} -var DEFAULT_CHAT_COMPLETION_PARAMETERS, ChatClient; -var init_chat = __esm({ - "../lib/shared/src/chat/chat.ts"() { - "use strict"; - init_tokens(); - init_utils2(); - init_constants(); - init_fast_path_client(); - DEFAULT_CHAT_COMPLETION_PARAMETERS = { - temperature: 0.2, - maxTokensToSample: ANSWER_TOKENS, - topK: -1, - topP: -1 - }; - ChatClient = class { - constructor(completions, config, getAuthStatus, completionLogger) { - this.completions = completions; - this.getAuthStatus = getAuthStatus; - this.completionLogger = completionLogger; - this.onConfigurationChange(config); - } - fastPathAccessToken; - onConfigurationChange(newConfig) { - const isNode2 = typeof process !== "undefined"; - this.fastPathAccessToken = newConfig.accessToken && // Require the upstream to be dotcom - this.getAuthStatus().isDotCom && // The fast path client only supports Node.js style response streams - isNode2 ? dotcomTokenToGatewayToken(newConfig.accessToken) : void 0; - } - chat(messages2, params, abortSignal) { - const useFastPath = this.fastPathAccessToken !== void 0 && params.model && supportsFastPath(params.model); - const isLastMessageFromHuman = messages2.length > 0 && messages2.at(-1).speaker === "human"; - const augmentedMessages = params?.model?.startsWith("fireworks/") || useFastPath ? sanitizeMessages(messages2) : isLastMessageFromHuman ? messages2.concat([{ speaker: "assistant" }]) : messages2; - const messagesToSend = augmentedMessages.map(({ speaker, text }) => ({ - text, - speaker - })); - const completionParams = { - ...DEFAULT_CHAT_COMPLETION_PARAMETERS, - ...params, - messages: messagesToSend - }; - if (useFastPath) { - return createFastPathClient( - completionParams, - this.getAuthStatus(), - this.fastPathAccessToken, - abortSignal, - this.completionLogger - ); - } - return this.completions.stream(completionParams, abortSignal); - } - }; - } -}); - -// ../node_modules/.pnpm/ignore@5.2.4/node_modules/ignore/index.js -var require_ignore = __commonJS({ - "../node_modules/.pnpm/ignore@5.2.4/node_modules/ignore/index.js"(exports2, module2) { - function makeArray(subject) { - return Array.isArray(subject) ? subject : [subject]; - } - var EMPTY = ""; - var SPACE = " "; - var ESCAPE = "\\"; - var REGEX_TEST_BLANK_LINE = /^\s+$/; - var REGEX_INVALID_TRAILING_BACKSLASH = /(?:[^\\]|^)\\$/; - var REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\!/; - var REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/; - var REGEX_SPLITALL_CRLF = /\r?\n/g; - var REGEX_TEST_INVALID_PATH = /^\.*\/|^\.+$/; - var SLASH = "/"; - var TMP_KEY_IGNORE = "node-ignore"; - if (typeof Symbol !== "undefined") { - TMP_KEY_IGNORE = Symbol.for("node-ignore"); - } - var KEY_IGNORE = TMP_KEY_IGNORE; - var define2 = (object, key, value) => Object.defineProperty(object, key, { value }); - var REGEX_REGEXP_RANGE = /([0-z])-([0-z])/g; - var RETURN_FALSE = () => false; - var sanitizeRange = (range) => range.replace( - REGEX_REGEXP_RANGE, - (match2, from, to) => from.charCodeAt(0) <= to.charCodeAt(0) ? match2 : EMPTY - ); - var cleanRangeBackSlash = (slashes) => { - const { length } = slashes; - return slashes.slice(0, length - length % 2); - }; - var REPLACERS = [ - // > Trailing spaces are ignored unless they are quoted with backslash ("\") - [ - // (a\ ) -> (a ) - // (a ) -> (a) - // (a \ ) -> (a ) - /\\?\s+$/, - (match2) => match2.indexOf("\\") === 0 ? SPACE : EMPTY - ], - // replace (\ ) with ' ' - [ - /\\\s/g, - () => SPACE - ], - // Escape metacharacters - // which is written down by users but means special for regular expressions. - // > There are 12 characters with special meanings: - // > - the backslash \, - // > - the caret ^, - // > - the dollar sign $, - // > - the period or dot ., - // > - the vertical bar or pipe symbol |, - // > - the question mark ?, - // > - the asterisk or star *, - // > - the plus sign +, - // > - the opening parenthesis (, - // > - the closing parenthesis ), - // > - and the opening square bracket [, - // > - the opening curly brace {, - // > These special characters are often called "metacharacters". - [ - /[\\$.|*+(){^]/g, - (match2) => `\\${match2}` - ], - [ - // > a question mark (?) matches a single character - /(?!\\)\?/g, - () => "[^/]" - ], - // leading slash - [ - // > A leading slash matches the beginning of the pathname. - // > For example, "/*.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c". - // A leading slash matches the beginning of the pathname - /^\//, - () => "^" - ], - // replace special metacharacter slash after the leading slash - [ - /\//g, - () => "\\/" - ], - [ - // > A leading "**" followed by a slash means match in all directories. - // > For example, "**/foo" matches file or directory "foo" anywhere, - // > the same as pattern "foo". - // > "**/foo/bar" matches file or directory "bar" anywhere that is directly - // > under directory "foo". - // Notice that the '*'s have been replaced as '\\*' - /^\^*\\\*\\\*\\\//, - // '**/foo' <-> 'foo' - () => "^(?:.*\\/)?" - ], - // starting - [ - // there will be no leading '/' - // (which has been replaced by section "leading slash") - // If starts with '**', adding a '^' to the regular expression also works - /^(?=[^^])/, - function startingReplacer() { - return !/\/(?!$)/.test(this) ? "(?:^|\\/)" : "^"; - } - ], - // two globstars - [ - // Use lookahead assertions so that we could match more than one `'/**'` - /\\\/\\\*\\\*(?=\\\/|$)/g, - // Zero, one or several directories - // should not use '*', or it will be replaced by the next replacer - // Check if it is not the last `'/**'` - (_, index, str) => index + 6 < str.length ? "(?:\\/[^\\/]+)*" : "\\/.+" - ], - // normal intermediate wildcards - [ - // Never replace escaped '*' - // ignore rule '\*' will match the path '*' - // 'abc.*/' -> go - // 'abc.*' -> skip this rule, - // coz trailing single wildcard will be handed by [trailing wildcard] - /(^|[^\\]+)(\\\*)+(?=.+)/g, - // '*.js' matches '.js' - // '*.js' doesn't match 'abc' - (_, p1, p2) => { - const unescaped = p2.replace(/\\\*/g, "[^\\/]*"); - return p1 + unescaped; - } - ], - [ - // unescape, revert step 3 except for back slash - // For example, if a user escape a '\\*', - // after step 3, the result will be '\\\\\\*' - /\\\\\\(?=[$.|*+(){^])/g, - () => ESCAPE - ], - [ - // '\\\\' -> '\\' - /\\\\/g, - () => ESCAPE - ], - [ - // > The range notation, e.g. [a-zA-Z], - // > can be used to match one of the characters in a range. - // `\` is escaped by step 3 - /(\\)?\[([^\]/]*?)(\\*)($|\])/g, - (match2, leadEscape, range, endEscape, close) => leadEscape === ESCAPE ? `\\[${range}${cleanRangeBackSlash(endEscape)}${close}` : close === "]" ? endEscape.length % 2 === 0 ? `[${sanitizeRange(range)}${endEscape}]` : "[]" : "[]" - ], - // ending - [ - // 'js' will not match 'js.' - // 'ab' will not match 'abc' - /(?:[^*])$/, - // WTF! - // https://git-scm.com/docs/gitignore - // changes in [2.22.1](https://git-scm.com/docs/gitignore/2.22.1) - // which re-fixes #24, #38 - // > If there is a separator at the end of the pattern then the pattern - // > will only match directories, otherwise the pattern can match both - // > files and directories. - // 'js*' will not match 'a.js' - // 'js/' will not match 'a.js' - // 'js' will match 'a.js' and 'a.js/' - (match2) => /\/$/.test(match2) ? `${match2}$` : `${match2}(?=$|\\/$)` - ], - // trailing wildcard - [ - /(\^|\\\/)?\\\*$/, - (_, p1) => { - const prefix = p1 ? `${p1}[^/]+` : "[^/]*"; - return `${prefix}(?=$|\\/$)`; - } - ] - ]; - var regexCache = /* @__PURE__ */ Object.create(null); - var makeRegex = (pattern, ignoreCase) => { - let source = regexCache[pattern]; - if (!source) { - source = REPLACERS.reduce( - (prev, current) => prev.replace(current[0], current[1].bind(pattern)), - pattern - ); - regexCache[pattern] = source; - } - return ignoreCase ? new RegExp(source, "i") : new RegExp(source); - }; - var isString2 = (subject) => typeof subject === "string"; - var checkPattern = (pattern) => pattern && isString2(pattern) && !REGEX_TEST_BLANK_LINE.test(pattern) && !REGEX_INVALID_TRAILING_BACKSLASH.test(pattern) && pattern.indexOf("#") !== 0; - var splitPattern = (pattern) => pattern.split(REGEX_SPLITALL_CRLF); - var IgnoreRule = class { - constructor(origin, pattern, negative, regex) { - this.origin = origin; - this.pattern = pattern; - this.negative = negative; - this.regex = regex; - } - }; - var createRule = (pattern, ignoreCase) => { - const origin = pattern; - let negative = false; - if (pattern.indexOf("!") === 0) { - negative = true; - pattern = pattern.substr(1); - } - pattern = pattern.replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, "!").replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, "#"); - const regex = makeRegex(pattern, ignoreCase); - return new IgnoreRule( - origin, - pattern, - negative, - regex - ); - }; - var throwError = (message, Ctor) => { - throw new Ctor(message); - }; - var checkPath = (path20, originalPath, doThrow) => { - if (!isString2(path20)) { - return doThrow( - `path must be a string, but got \`${originalPath}\``, - TypeError - ); - } - if (!path20) { - return doThrow(`path must not be empty`, TypeError); - } - if (checkPath.isNotRelative(path20)) { - const r = "`path.relative()`d"; - return doThrow( - `path should be a ${r} string, but got "${originalPath}"`, - RangeError - ); - } - return true; - }; - var isNotRelative = (path20) => REGEX_TEST_INVALID_PATH.test(path20); - checkPath.isNotRelative = isNotRelative; - checkPath.convert = (p) => p; - var Ignore2 = class { - constructor({ - ignorecase = true, - ignoreCase = ignorecase, - allowRelativePaths = false - } = {}) { - define2(this, KEY_IGNORE, true); - this._rules = []; - this._ignoreCase = ignoreCase; - this._allowRelativePaths = allowRelativePaths; - this._initCache(); - } - _initCache() { - this._ignoreCache = /* @__PURE__ */ Object.create(null); - this._testCache = /* @__PURE__ */ Object.create(null); - } - _addPattern(pattern) { - if (pattern && pattern[KEY_IGNORE]) { - this._rules = this._rules.concat(pattern._rules); - this._added = true; - return; - } - if (checkPattern(pattern)) { - const rule = createRule(pattern, this._ignoreCase); - this._added = true; - this._rules.push(rule); - } - } - // @param {Array | string | Ignore} pattern - add(pattern) { - this._added = false; - makeArray( - isString2(pattern) ? splitPattern(pattern) : pattern - ).forEach(this._addPattern, this); - if (this._added) { - this._initCache(); - } - return this; - } - // legacy - addPattern(pattern) { - return this.add(pattern); - } - // | ignored : unignored - // negative | 0:0 | 0:1 | 1:0 | 1:1 - // -------- | ------- | ------- | ------- | -------- - // 0 | TEST | TEST | SKIP | X - // 1 | TESTIF | SKIP | TEST | X - // - SKIP: always skip - // - TEST: always test - // - TESTIF: only test if checkUnignored - // - X: that never happen - // @param {boolean} whether should check if the path is unignored, - // setting `checkUnignored` to `false` could reduce additional - // path matching. - // @returns {TestResult} true if a file is ignored - _testOne(path20, checkUnignored) { - let ignored = false; - let unignored = false; - this._rules.forEach((rule) => { - const { negative } = rule; - if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) { - return; - } - const matched = rule.regex.test(path20); - if (matched) { - ignored = !negative; - unignored = negative; - } - }); - return { - ignored, - unignored - }; - } - // @returns {TestResult} - _test(originalPath, cache, checkUnignored, slices) { - const path20 = originalPath && checkPath.convert(originalPath); - checkPath( - path20, - originalPath, - this._allowRelativePaths ? RETURN_FALSE : throwError - ); - return this._t(path20, cache, checkUnignored, slices); - } - _t(path20, cache, checkUnignored, slices) { - if (path20 in cache) { - return cache[path20]; - } - if (!slices) { - slices = path20.split(SLASH); - } - slices.pop(); - if (!slices.length) { - return cache[path20] = this._testOne(path20, checkUnignored); - } - const parent = this._t( - slices.join(SLASH) + SLASH, - cache, - checkUnignored, - slices - ); - return cache[path20] = parent.ignored ? parent : this._testOne(path20, checkUnignored); - } - ignores(path20) { - return this._test(path20, this._ignoreCache, false).ignored; - } - createFilter() { - return (path20) => !this.ignores(path20); - } - filter(paths) { - return makeArray(paths).filter(this.createFilter()); - } - // @returns {TestResult} - test(path20) { - return this._test(path20, this._testCache, true); - } - }; - var factory = (options2) => new Ignore2(options2); - var isPathValid = (path20) => checkPath(path20 && checkPath.convert(path20), path20, RETURN_FALSE); - factory.isPathValid = isPathValid; - factory.default = factory; - module2.exports = factory; - if ( - // Detect `process` so that it can run in browsers. - typeof process !== "undefined" && (process.env && process.env.IGNORE_TEST_WIN32 || process.platform === "win32") - ) { - const makePosix = (str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/"); - checkPath.convert = makePosix; - const REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i; - checkPath.isNotRelative = (path20) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path20) || isNotRelative(path20); - } - } -}); - -// ../lib/shared/src/common/platform.ts -function isWindows() { - if (typeof process !== "undefined") { - if (process.platform) { - return process.platform.startsWith("win"); - } - } - if (typeof navigator === "object") { - return navigator.userAgent.toLowerCase().includes("windows"); - } - return false; -} -function isMacOS() { - if (typeof process !== "undefined") { - if (process.platform) { - return process.platform === "darwin"; - } - } - if (typeof navigator === "object") { - return navigator.userAgent?.includes("Mac"); - } - return false; -} -var init_platform = __esm({ - "../lib/shared/src/common/platform.ts"() { - "use strict"; - } -}); - -// ../lib/shared/src/common/path.ts -function pathFunctionsForURI(uri, isWindows2 = isWindows()) { - const sep2 = "/"; - return uri.scheme === "file" && isWindows2 ? ( - // Like windowsFilePaths but with forward slashes. - pathFunctions(true, sep2, false) - ) : posixFilePaths; -} -function pathFunctions(isWindows2, sep2, caseSensitive) { - const f = { - dirname(path20) { - if (path20 === "") { - return "."; - } - if (isWindows2 && isDriveLetter(path20)) { - return path20; - } - if (path20.endsWith(sep2)) { - path20 = path20.slice(0, -1); - } - if (isWindows2 && isDriveLetter(path20)) { - return path20 + sep2; - } - if (path20 === "") { - return sep2; - } - const i = path20.lastIndexOf(sep2); - if (i === -1) { - return "."; - } - if (i === 0) { - return sep2; - } - path20 = path20.slice(0, i); - if (isWindows2 && isDriveLetter(path20)) { - return path20 + sep2; - } - return path20; - }, - basename(path20, suffix) { - if (path20.endsWith(sep2)) { - path20 = path20.slice(0, -1); - } - if (isWindows2 && isDriveLetter(path20)) { - return ""; - } - path20 = path20.split(sep2).at(-1) ?? ""; - if (suffix && path20.endsWith(suffix)) { - path20 = path20.slice(0, -suffix.length); - } - return path20; - }, - extname(path20) { - const basename4 = f.basename(path20); - const i = basename4.lastIndexOf("."); - if (i === 0 || i === -1) { - return ""; - } - return basename4.slice(i); - }, - relative(from, to) { - return relative(from, to, sep2, isWindows2 ? "\\" : "/", caseSensitive); - }, - separator: sep2 - }; - return f; -} -function isDriveLetter(path20) { - return /^[A-Za-z]:$/.test(path20); -} -function relative(from, to, inputSeparator, outputSeparator, caseSensitive) { - function equalSegments(a, b) { - return caseSensitive ? a === b : a.toLowerCase() === b.toLowerCase(); - } - if (inputSeparator === "/") { - from = from.replaceAll(/\/{2,}/g, "/"); - to = to.replaceAll(/\/{2,}/g, "/"); - } else { - from = from.replaceAll(/\\{2,}/g, "\\"); - to = to.replaceAll(/\\{2,}/g, "\\"); - } - if (from !== inputSeparator && from.endsWith(inputSeparator)) { - from = from.slice(0, -1); - } - if (to !== inputSeparator && to.endsWith(inputSeparator)) { - to = to.slice(0, -1); - } - if (equalSegments(from, to)) { - return ""; - } - if (!from.startsWith(inputSeparator) && to.startsWith(inputSeparator)) { - return to; - } - const fromParts = from === inputSeparator ? [""] : from.split(inputSeparator); - const toParts = to === inputSeparator ? [""] : to.split(inputSeparator); - let commonLength = 0; - while (commonLength < fromParts.length && commonLength < toParts.length && equalSegments(fromParts[commonLength], toParts[commonLength])) { - commonLength++; - } - const traversals = fromParts.length - commonLength; - const relativePath = []; - for (let i = 0; i < traversals; i++) { - relativePath.push(".."); - } - relativePath.push(...toParts.slice(commonLength)); - return relativePath.join(outputSeparator); -} -var windowsFilePaths, posixFilePaths; -var init_path = __esm({ - "../lib/shared/src/common/path.ts"() { - "use strict"; - init_platform(); - windowsFilePaths = pathFunctions(true, "\\", false); - posixFilePaths = pathFunctions(false, "/", true); - } -}); - -// ../lib/shared/src/common/uri.ts -function uriDirname(uri) { - return uri.with({ path: pathFunctionsForURI(uri).dirname(uri.path) }); -} -function uriBasename(uri, suffix) { - return pathFunctionsForURI(uri).basename(uri.path, suffix); -} -function uriExtname(uri) { - return pathFunctionsForURI(uri).extname(uri.path); -} -function isFileURI2(uri) { - return uri.scheme === "file"; -} -function assertFileURI(uri) { - if (!isFileURI2(uri)) { - throw new TypeError(`assertFileURI failed on ${uri.toString()}`); - } - return uri; -} -var init_uri = __esm({ - "../lib/shared/src/common/uri.ts"() { - "use strict"; - init_path(); - } -}); - -// ../lib/shared/src/editor/displayPath.ts -function displayPath(location) { - const result = _displayPath(location, checkEnvInfo()); - return typeof result === "string" ? result : result.toString(); -} -function displayPathBasename(location) { - const envInfo2 = checkEnvInfo(); - const result = _displayPath(location, envInfo2); - if (typeof result === "string") { - return envInfo2.isWindows ? windowsFilePaths.basename(result) : posixFilePaths.basename(result); - } - return posixFilePaths.basename(result.path); -} -function checkEnvInfo() { - if (!envInfo) { - throw new Error( - "no environment info for displayPath function (call setDisplayPathEnvInfo; see displayPath docstring for more info)" - ); - } - return envInfo; -} -function _displayPath(location, { workspaceFolders: workspaceFolders2, isWindows: isWindows2 }, includeWorkspaceFolderWhenMultiple = true) { - const uri = typeof location === "string" ? import_vscode_uri2.URI.parse(location) : import_vscode_uri2.URI.from(location); - const includeWorkspaceFolder = includeWorkspaceFolderWhenMultiple && workspaceFolders2.length >= 2; - for (const folder of workspaceFolders2) { - if (uriHasPrefix(uri, folder, isWindows2)) { - const pathFunctions2 = pathFunctionsForURI(folder); - const workspacePrefix = folder.path.endsWith("/") ? folder.path.slice(0, -1) : folder.path; - const workspaceDisplayPrefix = includeWorkspaceFolder ? pathFunctions2.basename(folder.path) + pathFunctions2.separator : ""; - return fixPathSep( - workspaceDisplayPrefix + uri.path.slice(workspacePrefix.length + 1), - isWindows2, - uri.scheme - ); - } - } - if (uri.scheme === "file") { - return fixPathSep(uri.fsPath, isWindows2, uri.scheme); - } - return uri; -} -function fixPathSep(fsPath, isWindows2, scheme) { - return isWindows2 && scheme === "file" ? fsPath.replaceAll("/", "\\") : fsPath; -} -function uriHasPrefix(uri, prefix, isWindows2) { - const uriPath = isWindows2 && uri.scheme === "file" ? uri.path.slice(0, 2).toUpperCase() + uri.path.slice(2) : uri.path; - const prefixPath = isWindows2 && prefix.scheme === "file" ? prefix.path.slice(0, 2).toUpperCase() + prefix.path.slice(2) : prefix.path; - return uri.scheme === prefix.scheme && (uri.authority ?? "") === (prefix.authority ?? "") && // different URI impls treat empty different - (uriPath === prefixPath || uriPath.startsWith(prefixPath.endsWith("/") ? prefixPath : `${prefixPath}/`) || prefixPath.endsWith("/") && uriPath === prefixPath.slice(0, -1)); -} -function setDisplayPathEnvInfo(newEnvInfo) { - const prev = envInfo; - envInfo = newEnvInfo; - return prev; -} -var import_vscode_uri2, envInfo; -var init_displayPath = __esm({ - "../lib/shared/src/editor/displayPath.ts"() { - "use strict"; - import_vscode_uri2 = __toESM(require_umd()); - init_path(); - envInfo = null; - } -}); - -// ../lib/shared/src/cody-ignore/ignore-helper.ts -function ignoreFileEffectiveDirectory(ignoreFile) { - return import_vscode_uri3.Utils.joinPath(ignoreFile, "..", ".."); -} -var import_ignore, import_vscode_uri3, CODY_IGNORE_URI_PATH, CODY_IGNORE_POSIX_GLOB, IgnoreHelper; -var init_ignore_helper = __esm({ - "../lib/shared/src/cody-ignore/ignore-helper.ts"() { - "use strict"; - import_ignore = __toESM(require_ignore()); - import_vscode_uri3 = __toESM(require_umd()); - init_path(); - init_platform(); - init_uri(); - init_displayPath(); - CODY_IGNORE_URI_PATH = ".cody/ignore"; - CODY_IGNORE_POSIX_GLOB = `**/${CODY_IGNORE_URI_PATH}`; - IgnoreHelper = class { - /** - * A map of workspace roots to their ignore rules. - */ - workspaceIgnores = /* @__PURE__ */ new Map(); - hasCodyIgnoreFiles = false; - /** - * Check if the configuration is enabled or not - * Do not ignore files if the feature is not enabled - * TODO: Remove this once it's ready for GA - */ - isActive = false; - setActiveState(isActive) { - this.isActive = isActive; - } - /** - * Builds and caches a single ignore set for all nested ignore files within a workspace root. - * @param workspaceRoot The workspace root. - * @param ignoreFiles The URIs and content of all ignore files within the root. - */ - setIgnoreFiles(workspaceRoot, ignoreFiles) { - if (!this.isActive) { - return; - } - this.ensureAbsolute("workspaceRoot", workspaceRoot); - const rules = this.getDefaultIgnores(); - for (const ignoreFile of ignoreFiles) { - this.ensureValidCodyIgnoreFile("ignoreFile.uri", ignoreFile.uri); - const effectiveDir = ignoreFileEffectiveDirectory(ignoreFile.uri); - const relativeFolderUriPath = pathFunctionsForURI(workspaceRoot).relative( - workspaceRoot.path, - effectiveDir.path - ); - for (let ignoreLine of ignoreFile.content.split("\n")) { - ignoreLine = ignoreLine.split("#")[0]; - ignoreLine = ignoreLine.trim(); - if (!ignoreLine.length) { - continue; - } - let isInverted = false; - if (ignoreLine.startsWith("!")) { - ignoreLine = ignoreLine.slice(1); - isInverted = true; - } - const ignoreRule = relativeFolderUriPath.length ? `${relativeFolderUriPath}/${ignoreLine}` : ignoreLine; - rules.add((isInverted ? "!" : "") + ignoreRule); - } - } - this.workspaceIgnores.set(workspaceRoot.toString(), rules); - if (ignoreFiles.length && !this.hasCodyIgnoreFiles) { - this.hasCodyIgnoreFiles = true; - } - } - clearIgnoreFiles(workspaceRoot) { - this.workspaceIgnores.delete(workspaceRoot.toString()); - } - isIgnored(uri) { - if (!this.isActive) { - return false; - } - if (uri.scheme === "https") { - return false; - } - if (uri.scheme !== "file") { - return true; - } - this.ensureFileUri("uri", uri); - this.ensureAbsolute("uri", uri); - const workspaceRoot = this.findWorkspaceRoot(uri); - if (!workspaceRoot) { - return this.getDefaultIgnores().ignores(uriBasename(uri)); - } - const relativePath = pathFunctionsForURI(workspaceRoot).relative(workspaceRoot.path, uri.path); - const rules = this.workspaceIgnores.get(workspaceRoot.toString()) ?? this.getDefaultIgnores(); - return rules.ignores(relativePath) ?? false; - } - findWorkspaceRoot(file) { - const candidates = Array.from(this.workspaceIgnores.keys()).filter( - (workspaceRoot) => uriHasPrefix(file, import_vscode_uri3.URI.parse(workspaceRoot), isWindows()) - ); - candidates.sort((a, b) => a.length - b.length); - const selected = candidates.at(0); - return selected ? import_vscode_uri3.URI.parse(selected) : void 0; - } - ensureFileUri(name, uri) { - if (uri.scheme !== "file") { - throw new Error(`${name} should be a file URI: "${uri}"`); - } - } - ensureAbsolute(name, uri) { - if (!uri.path.startsWith("/")) { - throw new Error(`${name} should be absolute: "${uri.toString()}"`); - } - } - ensureValidCodyIgnoreFile(name, uri) { - this.ensureAbsolute("ignoreFile.uri", uri); - if (!uri.path.endsWith(CODY_IGNORE_URI_PATH)) { - throw new Error(`${name} should end with "${CODY_IGNORE_URI_PATH}": "${uri.toString()}"`); - } - } - getDefaultIgnores() { - return (0, import_ignore.default)().add(".env"); - } - }; - } -}); - -// ../lib/shared/src/cody-ignore/context-filter.ts -function isCodyIgnoredFile(uri) { - return ignores.isIgnored(uri); -} -var ignores; -var init_context_filter = __esm({ - "../lib/shared/src/cody-ignore/context-filter.ts"() { - "use strict"; - init_ignore_helper(); - ignores = new IgnoreHelper(); - } -}); - -// ../node_modules/.pnpm/dompurify@3.0.4/node_modules/dompurify/dist/purify.cjs.js -var require_purify_cjs = __commonJS({ - "../node_modules/.pnpm/dompurify@3.0.4/node_modules/dompurify/dist/purify.cjs.js"(exports2, module2) { - "use strict"; - var { - entries, - setPrototypeOf, - isFrozen, - getPrototypeOf: getPrototypeOf2, - getOwnPropertyDescriptor - } = Object; - var { - freeze, - seal, - create: create2 - } = Object; - var { - apply, - construct - } = typeof Reflect !== "undefined" && Reflect; - if (!apply) { - apply = function apply2(fun, thisValue, args3) { - return fun.apply(thisValue, args3); - }; - } - if (!freeze) { - freeze = function freeze2(x) { - return x; - }; - } - if (!seal) { - seal = function seal2(x) { - return x; - }; - } - if (!construct) { - construct = function construct2(Func, args3) { - return new Func(...args3); - }; - } - var arrayForEach = unapply(Array.prototype.forEach); - var arrayPop = unapply(Array.prototype.pop); - var arrayPush = unapply(Array.prototype.push); - var stringToLowerCase = unapply(String.prototype.toLowerCase); - var stringToString = unapply(String.prototype.toString); - var stringMatch = unapply(String.prototype.match); - var stringReplace = unapply(String.prototype.replace); - var stringIndexOf = unapply(String.prototype.indexOf); - var stringTrim = unapply(String.prototype.trim); - var regExpTest = unapply(RegExp.prototype.test); - var typeErrorCreate = unconstruct(TypeError); - function unapply(func2) { - return function(thisArg) { - for (var _len = arguments.length, args3 = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args3[_key - 1] = arguments[_key]; - } - return apply(func2, thisArg, args3); - }; - } - function unconstruct(func2) { - return function() { - for (var _len2 = arguments.length, args3 = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args3[_key2] = arguments[_key2]; - } - return construct(func2, args3); - }; - } - function addToSet(set, array, transformCaseFunc) { - var _transformCaseFunc; - transformCaseFunc = (_transformCaseFunc = transformCaseFunc) !== null && _transformCaseFunc !== void 0 ? _transformCaseFunc : stringToLowerCase; - if (setPrototypeOf) { - setPrototypeOf(set, null); - } - let l2 = array.length; - while (l2--) { - let element = array[l2]; - if (typeof element === "string") { - const lcElement = transformCaseFunc(element); - if (lcElement !== element) { - if (!isFrozen(array)) { - array[l2] = lcElement; - } - element = lcElement; - } - } - set[element] = true; - } - return set; - } - function clone(object) { - const newObject = create2(null); - for (const [property, value] of entries(object)) { - newObject[property] = value; - } - return newObject; - } - function lookupGetter(object, prop) { - while (object !== null) { - const desc = getOwnPropertyDescriptor(object, prop); - if (desc) { - if (desc.get) { - return unapply(desc.get); - } - if (typeof desc.value === "function") { - return unapply(desc.value); - } - } - object = getPrototypeOf2(object); - } - function fallbackValue(element) { - console.warn("fallback value for", element); - return null; - } - return fallbackValue; - } - var html$1 = freeze(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]); - var svg$1 = freeze(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]); - var svgFilters = freeze(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]); - var svgDisallowed = freeze(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]); - var mathMl$1 = freeze(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]); - var mathMlDisallowed = freeze(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]); - var text = freeze(["#text"]); - var html = freeze(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "xmlns", "slot"]); - var svg = freeze(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]); - var mathMl = freeze(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]); - var xml2 = freeze(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]); - var MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm); - var ERB_EXPR = seal(/<%[\w\W]*|[\w\W]*%>/gm); - var TMPLIT_EXPR = seal(/\${[\w\W]*}/gm); - var DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]/); - var ARIA_ATTR = seal(/^aria-[\-\w]+$/); - var IS_ALLOWED_URI = seal( - /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i - // eslint-disable-line no-useless-escape - ); - var IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i); - var ATTR_WHITESPACE = seal( - /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g - // eslint-disable-line no-control-regex - ); - var DOCTYPE_NAME = seal(/^html$/i); - var EXPRESSIONS = /* @__PURE__ */ Object.freeze({ - __proto__: null, - MUSTACHE_EXPR, - ERB_EXPR, - TMPLIT_EXPR, - DATA_ATTR, - ARIA_ATTR, - IS_ALLOWED_URI, - IS_SCRIPT_OR_DATA, - ATTR_WHITESPACE, - DOCTYPE_NAME - }); - var getGlobal = () => typeof window === "undefined" ? null : window; - var _createTrustedTypesPolicy = function _createTrustedTypesPolicy2(trustedTypes, purifyHostElement) { - if (typeof trustedTypes !== "object" || typeof trustedTypes.createPolicy !== "function") { - return null; - } - let suffix = null; - const ATTR_NAME = "data-tt-policy-suffix"; - if (purifyHostElement && purifyHostElement.hasAttribute(ATTR_NAME)) { - suffix = purifyHostElement.getAttribute(ATTR_NAME); - } - const policyName = "dompurify" + (suffix ? "#" + suffix : ""); - try { - return trustedTypes.createPolicy(policyName, { - createHTML(html2) { - return html2; - }, - createScriptURL(scriptUrl) { - return scriptUrl; - } - }); - } catch (_) { - console.warn("TrustedTypes policy " + policyName + " could not be created."); - return null; - } - }; - function createDOMPurify() { - let window3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal(); - const DOMPurify2 = (root) => createDOMPurify(root); - DOMPurify2.version = "3.0.4"; - DOMPurify2.removed = []; - if (!window3 || !window3.document || window3.document.nodeType !== 9) { - DOMPurify2.isSupported = false; - return DOMPurify2; - } - const originalDocument = window3.document; - const currentScript = originalDocument.currentScript; - let { - document: document2 - } = window3; - const { - DocumentFragment, - HTMLTemplateElement, - Node: Node2, - Element: Element2, - NodeFilter, - NamedNodeMap = window3.NamedNodeMap || window3.MozNamedAttrMap, - HTMLFormElement, - DOMParser, - trustedTypes - } = window3; - const ElementPrototype = Element2.prototype; - const cloneNode = lookupGetter(ElementPrototype, "cloneNode"); - const getNextSibling = lookupGetter(ElementPrototype, "nextSibling"); - const getChildNodes = lookupGetter(ElementPrototype, "childNodes"); - const getParentNode = lookupGetter(ElementPrototype, "parentNode"); - if (typeof HTMLTemplateElement === "function") { - const template2 = document2.createElement("template"); - if (template2.content && template2.content.ownerDocument) { - document2 = template2.content.ownerDocument; - } - } - let trustedTypesPolicy; - let emptyHTML = ""; - const { - implementation, - createNodeIterator, - createDocumentFragment, - getElementsByTagName - } = document2; - const { - importNode - } = originalDocument; - let hooks = {}; - DOMPurify2.isSupported = typeof entries === "function" && typeof getParentNode === "function" && implementation && implementation.createHTMLDocument !== void 0; - const { - MUSTACHE_EXPR: MUSTACHE_EXPR2, - ERB_EXPR: ERB_EXPR2, - TMPLIT_EXPR: TMPLIT_EXPR2, - DATA_ATTR: DATA_ATTR2, - ARIA_ATTR: ARIA_ATTR2, - IS_SCRIPT_OR_DATA: IS_SCRIPT_OR_DATA2, - ATTR_WHITESPACE: ATTR_WHITESPACE2 - } = EXPRESSIONS; - let { - IS_ALLOWED_URI: IS_ALLOWED_URI$1 - } = EXPRESSIONS; - let ALLOWED_TAGS = null; - const DEFAULT_ALLOWED_TAGS = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]); - let ALLOWED_ATTR = null; - const DEFAULT_ALLOWED_ATTR = addToSet({}, [...html, ...svg, ...mathMl, ...xml2]); - let CUSTOM_ELEMENT_HANDLING = Object.seal(Object.create(null, { - tagNameCheck: { - writable: true, - configurable: false, - enumerable: true, - value: null - }, - attributeNameCheck: { - writable: true, - configurable: false, - enumerable: true, - value: null - }, - allowCustomizedBuiltInElements: { - writable: true, - configurable: false, - enumerable: true, - value: false - } - })); - let FORBID_TAGS = null; - let FORBID_ATTR = null; - let ALLOW_ARIA_ATTR = true; - let ALLOW_DATA_ATTR = true; - let ALLOW_UNKNOWN_PROTOCOLS = false; - let ALLOW_SELF_CLOSE_IN_ATTR = true; - let SAFE_FOR_TEMPLATES = false; - let WHOLE_DOCUMENT = false; - let SET_CONFIG = false; - let FORCE_BODY = false; - let RETURN_DOM = false; - let RETURN_DOM_FRAGMENT = false; - let RETURN_TRUSTED_TYPE = false; - let SANITIZE_DOM = true; - let SANITIZE_NAMED_PROPS = false; - const SANITIZE_NAMED_PROPS_PREFIX = "user-content-"; - let KEEP_CONTENT = true; - let IN_PLACE = false; - let USE_PROFILES = {}; - let FORBID_CONTENTS = null; - const DEFAULT_FORBID_CONTENTS = addToSet({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]); - let DATA_URI_TAGS = null; - const DEFAULT_DATA_URI_TAGS = addToSet({}, ["audio", "video", "img", "source", "image", "track"]); - let URI_SAFE_ATTRIBUTES = null; - const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]); - const MATHML_NAMESPACE = "http://www.w3.org/1998/Math/MathML"; - const SVG_NAMESPACE = "http://www.w3.org/2000/svg"; - const HTML_NAMESPACE = "http://www.w3.org/1999/xhtml"; - let NAMESPACE = HTML_NAMESPACE; - let IS_EMPTY_INPUT = false; - let ALLOWED_NAMESPACES = null; - const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString); - let PARSER_MEDIA_TYPE; - const SUPPORTED_PARSER_MEDIA_TYPES = ["application/xhtml+xml", "text/html"]; - const DEFAULT_PARSER_MEDIA_TYPE = "text/html"; - let transformCaseFunc; - let CONFIG = null; - const formElement = document2.createElement("form"); - const isRegexOrFunction = function isRegexOrFunction2(testValue) { - return testValue instanceof RegExp || testValue instanceof Function; - }; - const _parseConfig = function _parseConfig2(cfg) { - if (CONFIG && CONFIG === cfg) { - return; - } - if (!cfg || typeof cfg !== "object") { - cfg = {}; - } - cfg = clone(cfg); - PARSER_MEDIA_TYPE = // eslint-disable-next-line unicorn/prefer-includes - SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? PARSER_MEDIA_TYPE = DEFAULT_PARSER_MEDIA_TYPE : PARSER_MEDIA_TYPE = cfg.PARSER_MEDIA_TYPE; - transformCaseFunc = PARSER_MEDIA_TYPE === "application/xhtml+xml" ? stringToString : stringToLowerCase; - ALLOWED_TAGS = "ALLOWED_TAGS" in cfg ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS; - ALLOWED_ATTR = "ALLOWED_ATTR" in cfg ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR; - ALLOWED_NAMESPACES = "ALLOWED_NAMESPACES" in cfg ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES; - URI_SAFE_ATTRIBUTES = "ADD_URI_SAFE_ATTR" in cfg ? addToSet( - clone(DEFAULT_URI_SAFE_ATTRIBUTES), - // eslint-disable-line indent - cfg.ADD_URI_SAFE_ATTR, - // eslint-disable-line indent - transformCaseFunc - // eslint-disable-line indent - ) : DEFAULT_URI_SAFE_ATTRIBUTES; - DATA_URI_TAGS = "ADD_DATA_URI_TAGS" in cfg ? addToSet( - clone(DEFAULT_DATA_URI_TAGS), - // eslint-disable-line indent - cfg.ADD_DATA_URI_TAGS, - // eslint-disable-line indent - transformCaseFunc - // eslint-disable-line indent - ) : DEFAULT_DATA_URI_TAGS; - FORBID_CONTENTS = "FORBID_CONTENTS" in cfg ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS; - FORBID_TAGS = "FORBID_TAGS" in cfg ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : {}; - FORBID_ATTR = "FORBID_ATTR" in cfg ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : {}; - USE_PROFILES = "USE_PROFILES" in cfg ? cfg.USE_PROFILES : false; - ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; - ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; - ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; - ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; - SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; - WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; - RETURN_DOM = cfg.RETURN_DOM || false; - RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; - RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; - FORCE_BODY = cfg.FORCE_BODY || false; - SANITIZE_DOM = cfg.SANITIZE_DOM !== false; - SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; - KEEP_CONTENT = cfg.KEEP_CONTENT !== false; - IN_PLACE = cfg.IN_PLACE || false; - IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI; - NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE; - CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {}; - if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) { - CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck; - } - if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)) { - CUSTOM_ELEMENT_HANDLING.attributeNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck; - } - if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === "boolean") { - CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements; - } - if (SAFE_FOR_TEMPLATES) { - ALLOW_DATA_ATTR = false; - } - if (RETURN_DOM_FRAGMENT) { - RETURN_DOM = true; - } - if (USE_PROFILES) { - ALLOWED_TAGS = addToSet({}, [...text]); - ALLOWED_ATTR = []; - if (USE_PROFILES.html === true) { - addToSet(ALLOWED_TAGS, html$1); - addToSet(ALLOWED_ATTR, html); - } - if (USE_PROFILES.svg === true) { - addToSet(ALLOWED_TAGS, svg$1); - addToSet(ALLOWED_ATTR, svg); - addToSet(ALLOWED_ATTR, xml2); - } - if (USE_PROFILES.svgFilters === true) { - addToSet(ALLOWED_TAGS, svgFilters); - addToSet(ALLOWED_ATTR, svg); - addToSet(ALLOWED_ATTR, xml2); - } - if (USE_PROFILES.mathMl === true) { - addToSet(ALLOWED_TAGS, mathMl$1); - addToSet(ALLOWED_ATTR, mathMl); - addToSet(ALLOWED_ATTR, xml2); - } - } - if (cfg.ADD_TAGS) { - if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) { - ALLOWED_TAGS = clone(ALLOWED_TAGS); - } - addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc); - } - if (cfg.ADD_ATTR) { - if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) { - ALLOWED_ATTR = clone(ALLOWED_ATTR); - } - addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc); - } - if (cfg.ADD_URI_SAFE_ATTR) { - addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc); - } - if (cfg.FORBID_CONTENTS) { - if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) { - FORBID_CONTENTS = clone(FORBID_CONTENTS); - } - addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc); - } - if (KEEP_CONTENT) { - ALLOWED_TAGS["#text"] = true; - } - if (WHOLE_DOCUMENT) { - addToSet(ALLOWED_TAGS, ["html", "head", "body"]); - } - if (ALLOWED_TAGS.table) { - addToSet(ALLOWED_TAGS, ["tbody"]); - delete FORBID_TAGS.tbody; - } - if (cfg.TRUSTED_TYPES_POLICY) { - if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== "function") { - throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.'); - } - if (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== "function") { - throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.'); - } - trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY; - emptyHTML = trustedTypesPolicy.createHTML(""); - } else { - if (trustedTypesPolicy === void 0) { - trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript); - } - if (trustedTypesPolicy !== null && typeof emptyHTML === "string") { - emptyHTML = trustedTypesPolicy.createHTML(""); - } - } - if (freeze) { - freeze(cfg); - } - CONFIG = cfg; - }; - const MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ["mi", "mo", "mn", "ms", "mtext"]); - const HTML_INTEGRATION_POINTS = addToSet({}, ["foreignobject", "desc", "title", "annotation-xml"]); - const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ["title", "style", "font", "a", "script"]); - const ALL_SVG_TAGS = addToSet({}, svg$1); - addToSet(ALL_SVG_TAGS, svgFilters); - addToSet(ALL_SVG_TAGS, svgDisallowed); - const ALL_MATHML_TAGS = addToSet({}, mathMl$1); - addToSet(ALL_MATHML_TAGS, mathMlDisallowed); - const _checkValidNamespace = function _checkValidNamespace2(element) { - let parent = getParentNode(element); - if (!parent || !parent.tagName) { - parent = { - namespaceURI: NAMESPACE, - tagName: "template" - }; - } - const tagName = stringToLowerCase(element.tagName); - const parentTagName = stringToLowerCase(parent.tagName); - if (!ALLOWED_NAMESPACES[element.namespaceURI]) { - return false; - } - if (element.namespaceURI === SVG_NAMESPACE) { - if (parent.namespaceURI === HTML_NAMESPACE) { - return tagName === "svg"; - } - if (parent.namespaceURI === MATHML_NAMESPACE) { - return tagName === "svg" && (parentTagName === "annotation-xml" || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]); - } - return Boolean(ALL_SVG_TAGS[tagName]); - } - if (element.namespaceURI === MATHML_NAMESPACE) { - if (parent.namespaceURI === HTML_NAMESPACE) { - return tagName === "math"; - } - if (parent.namespaceURI === SVG_NAMESPACE) { - return tagName === "math" && HTML_INTEGRATION_POINTS[parentTagName]; - } - return Boolean(ALL_MATHML_TAGS[tagName]); - } - if (element.namespaceURI === HTML_NAMESPACE) { - if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) { - return false; - } - if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) { - return false; - } - return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]); - } - if (PARSER_MEDIA_TYPE === "application/xhtml+xml" && ALLOWED_NAMESPACES[element.namespaceURI]) { - return true; - } - return false; - }; - const _forceRemove = function _forceRemove2(node) { - arrayPush(DOMPurify2.removed, { - element: node - }); - try { - node.parentNode.removeChild(node); - } catch (_) { - node.remove(); - } - }; - const _removeAttribute = function _removeAttribute2(name, node) { - try { - arrayPush(DOMPurify2.removed, { - attribute: node.getAttributeNode(name), - from: node - }); - } catch (_) { - arrayPush(DOMPurify2.removed, { - attribute: null, - from: node - }); - } - node.removeAttribute(name); - if (name === "is" && !ALLOWED_ATTR[name]) { - if (RETURN_DOM || RETURN_DOM_FRAGMENT) { - try { - _forceRemove(node); - } catch (_) { - } - } else { - try { - node.setAttribute(name, ""); - } catch (_) { - } - } - } - }; - const _initDocument = function _initDocument2(dirty) { - let doc; - let leadingWhitespace; - if (FORCE_BODY) { - dirty = "" + dirty; - } else { - const matches = stringMatch(dirty, /^[\r\n\t ]+/); - leadingWhitespace = matches && matches[0]; - } - if (PARSER_MEDIA_TYPE === "application/xhtml+xml" && NAMESPACE === HTML_NAMESPACE) { - dirty = '' + dirty + ""; - } - const dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty; - if (NAMESPACE === HTML_NAMESPACE) { - try { - doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE); - } catch (_) { - } - } - if (!doc || !doc.documentElement) { - doc = implementation.createDocument(NAMESPACE, "template", null); - try { - doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload; - } catch (_) { - } - } - const body2 = doc.body || doc.documentElement; - if (dirty && leadingWhitespace) { - body2.insertBefore(document2.createTextNode(leadingWhitespace), body2.childNodes[0] || null); - } - if (NAMESPACE === HTML_NAMESPACE) { - return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? "html" : "body")[0]; - } - return WHOLE_DOCUMENT ? doc.documentElement : body2; - }; - const _createIterator = function _createIterator2(root) { - return createNodeIterator.call( - root.ownerDocument || root, - root, - // eslint-disable-next-line no-bitwise - NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT, - null, - false - ); - }; - const _isClobbered = function _isClobbered2(elm) { - return elm instanceof HTMLFormElement && (typeof elm.nodeName !== "string" || typeof elm.textContent !== "string" || typeof elm.removeChild !== "function" || !(elm.attributes instanceof NamedNodeMap) || typeof elm.removeAttribute !== "function" || typeof elm.setAttribute !== "function" || typeof elm.namespaceURI !== "string" || typeof elm.insertBefore !== "function" || typeof elm.hasChildNodes !== "function"); - }; - const _isNode = function _isNode2(object) { - return typeof Node2 === "object" ? object instanceof Node2 : object && typeof object === "object" && typeof object.nodeType === "number" && typeof object.nodeName === "string"; - }; - const _executeHook = function _executeHook2(entryPoint, currentNode, data) { - if (!hooks[entryPoint]) { - return; - } - arrayForEach(hooks[entryPoint], (hook) => { - hook.call(DOMPurify2, currentNode, data, CONFIG); - }); - }; - const _sanitizeElements = function _sanitizeElements2(currentNode) { - let content; - _executeHook("beforeSanitizeElements", currentNode, null); - if (_isClobbered(currentNode)) { - _forceRemove(currentNode); - return true; - } - const tagName = transformCaseFunc(currentNode.nodeName); - _executeHook("uponSanitizeElement", currentNode, { - tagName, - allowedTags: ALLOWED_TAGS - }); - if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && (!_isNode(currentNode.content) || !_isNode(currentNode.content.firstElementChild)) && regExpTest(/<[/\w]/g, currentNode.innerHTML) && regExpTest(/<[/\w]/g, currentNode.textContent)) { - _forceRemove(currentNode); - return true; - } - if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) { - if (!FORBID_TAGS[tagName] && _basicCustomElementTest(tagName)) { - if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) - return false; - if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) - return false; - } - if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) { - const parentNode = getParentNode(currentNode) || currentNode.parentNode; - const childNodes = getChildNodes(currentNode) || currentNode.childNodes; - if (childNodes && parentNode) { - const childCount = childNodes.length; - for (let i = childCount - 1; i >= 0; --i) { - parentNode.insertBefore(cloneNode(childNodes[i], true), getNextSibling(currentNode)); - } - } - } - _forceRemove(currentNode); - return true; - } - if (currentNode instanceof Element2 && !_checkValidNamespace(currentNode)) { - _forceRemove(currentNode); - return true; - } - if ((tagName === "noscript" || tagName === "noembed" || tagName === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, currentNode.innerHTML)) { - _forceRemove(currentNode); - return true; - } - if (SAFE_FOR_TEMPLATES && currentNode.nodeType === 3) { - content = currentNode.textContent; - content = stringReplace(content, MUSTACHE_EXPR2, " "); - content = stringReplace(content, ERB_EXPR2, " "); - content = stringReplace(content, TMPLIT_EXPR2, " "); - if (currentNode.textContent !== content) { - arrayPush(DOMPurify2.removed, { - element: currentNode.cloneNode() - }); - currentNode.textContent = content; - } - } - _executeHook("afterSanitizeElements", currentNode, null); - return false; - }; - const _isValidAttribute = function _isValidAttribute2(lcTag, lcName, value) { - if (SANITIZE_DOM && (lcName === "id" || lcName === "name") && (value in document2 || value in formElement)) { - return false; - } - if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR2, lcName)) - ; - else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR2, lcName)) - ; - else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) { - if ( - // First condition does a very basic check if a) it's basically a valid custom element tagname AND - // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck - // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck - _basicCustomElementTest(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) || // Alternative, second condition checks if it's an `is`-attribute, AND - // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck - lcName === "is" && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value)) - ) - ; - else { - return false; - } - } else if (URI_SAFE_ATTRIBUTES[lcName]) - ; - else if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE2, ""))) - ; - else if ((lcName === "src" || lcName === "xlink:href" || lcName === "href") && lcTag !== "script" && stringIndexOf(value, "data:") === 0 && DATA_URI_TAGS[lcTag]) - ; - else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA2, stringReplace(value, ATTR_WHITESPACE2, ""))) - ; - else if (value) { - return false; - } else - ; - return true; - }; - const _basicCustomElementTest = function _basicCustomElementTest2(tagName) { - return tagName.indexOf("-") > 0; - }; - const _sanitizeAttributes = function _sanitizeAttributes2(currentNode) { - let attr; - let value; - let lcName; - let l2; - _executeHook("beforeSanitizeAttributes", currentNode, null); - const { - attributes - } = currentNode; - if (!attributes) { - return; - } - const hookEvent = { - attrName: "", - attrValue: "", - keepAttr: true, - allowedAttributes: ALLOWED_ATTR - }; - l2 = attributes.length; - while (l2--) { - attr = attributes[l2]; - const { - name, - namespaceURI - } = attr; - value = name === "value" ? attr.value : stringTrim(attr.value); - lcName = transformCaseFunc(name); - hookEvent.attrName = lcName; - hookEvent.attrValue = value; - hookEvent.keepAttr = true; - hookEvent.forceKeepAttr = void 0; - _executeHook("uponSanitizeAttribute", currentNode, hookEvent); - value = hookEvent.attrValue; - if (hookEvent.forceKeepAttr) { - continue; - } - _removeAttribute(name, currentNode); - if (!hookEvent.keepAttr) { - continue; - } - if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\/>/i, value)) { - _removeAttribute(name, currentNode); - continue; - } - if (SAFE_FOR_TEMPLATES) { - value = stringReplace(value, MUSTACHE_EXPR2, " "); - value = stringReplace(value, ERB_EXPR2, " "); - value = stringReplace(value, TMPLIT_EXPR2, " "); - } - const lcTag = transformCaseFunc(currentNode.nodeName); - if (!_isValidAttribute(lcTag, lcName, value)) { - continue; - } - if (SANITIZE_NAMED_PROPS && (lcName === "id" || lcName === "name")) { - _removeAttribute(name, currentNode); - value = SANITIZE_NAMED_PROPS_PREFIX + value; - } - if (trustedTypesPolicy && typeof trustedTypes === "object" && typeof trustedTypes.getAttributeType === "function") { - if (namespaceURI) - ; - else { - switch (trustedTypes.getAttributeType(lcTag, lcName)) { - case "TrustedHTML": { - value = trustedTypesPolicy.createHTML(value); - break; - } - case "TrustedScriptURL": { - value = trustedTypesPolicy.createScriptURL(value); - break; - } - } - } - } - try { - if (namespaceURI) { - currentNode.setAttributeNS(namespaceURI, name, value); - } else { - currentNode.setAttribute(name, value); - } - arrayPop(DOMPurify2.removed); - } catch (_) { - } - } - _executeHook("afterSanitizeAttributes", currentNode, null); - }; - const _sanitizeShadowDOM = function _sanitizeShadowDOM2(fragment) { - let shadowNode; - const shadowIterator = _createIterator(fragment); - _executeHook("beforeSanitizeShadowDOM", fragment, null); - while (shadowNode = shadowIterator.nextNode()) { - _executeHook("uponSanitizeShadowNode", shadowNode, null); - if (_sanitizeElements(shadowNode)) { - continue; - } - if (shadowNode.content instanceof DocumentFragment) { - _sanitizeShadowDOM2(shadowNode.content); - } - _sanitizeAttributes(shadowNode); - } - _executeHook("afterSanitizeShadowDOM", fragment, null); - }; - DOMPurify2.sanitize = function(dirty) { - let cfg = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; - let body2; - let importedNode; - let currentNode; - let returnNode; - IS_EMPTY_INPUT = !dirty; - if (IS_EMPTY_INPUT) { - dirty = ""; - } - if (typeof dirty !== "string" && !_isNode(dirty)) { - if (typeof dirty.toString === "function") { - dirty = dirty.toString(); - if (typeof dirty !== "string") { - throw typeErrorCreate("dirty is not a string, aborting"); - } - } else { - throw typeErrorCreate("toString is not a function"); - } - } - if (!DOMPurify2.isSupported) { - return dirty; - } - if (!SET_CONFIG) { - _parseConfig(cfg); - } - DOMPurify2.removed = []; - if (typeof dirty === "string") { - IN_PLACE = false; - } - if (IN_PLACE) { - if (dirty.nodeName) { - const tagName = transformCaseFunc(dirty.nodeName); - if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) { - throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place"); - } - } - } else if (dirty instanceof Node2) { - body2 = _initDocument(""); - importedNode = body2.ownerDocument.importNode(dirty, true); - if (importedNode.nodeType === 1 && importedNode.nodeName === "BODY") { - body2 = importedNode; - } else if (importedNode.nodeName === "HTML") { - body2 = importedNode; - } else { - body2.appendChild(importedNode); - } - } else { - if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT && // eslint-disable-next-line unicorn/prefer-includes - dirty.indexOf("<") === -1) { - return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty; - } - body2 = _initDocument(dirty); - if (!body2) { - return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : ""; - } - } - if (body2 && FORCE_BODY) { - _forceRemove(body2.firstChild); - } - const nodeIterator = _createIterator(IN_PLACE ? dirty : body2); - while (currentNode = nodeIterator.nextNode()) { - if (_sanitizeElements(currentNode)) { - continue; - } - if (currentNode.content instanceof DocumentFragment) { - _sanitizeShadowDOM(currentNode.content); - } - _sanitizeAttributes(currentNode); - } - if (IN_PLACE) { - return dirty; - } - if (RETURN_DOM) { - if (RETURN_DOM_FRAGMENT) { - returnNode = createDocumentFragment.call(body2.ownerDocument); - while (body2.firstChild) { - returnNode.appendChild(body2.firstChild); - } - } else { - returnNode = body2; - } - if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmode) { - returnNode = importNode.call(originalDocument, returnNode, true); - } - return returnNode; - } - let serializedHTML = WHOLE_DOCUMENT ? body2.outerHTML : body2.innerHTML; - if (WHOLE_DOCUMENT && ALLOWED_TAGS["!doctype"] && body2.ownerDocument && body2.ownerDocument.doctype && body2.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body2.ownerDocument.doctype.name)) { - serializedHTML = "\n" + serializedHTML; - } - if (SAFE_FOR_TEMPLATES) { - serializedHTML = stringReplace(serializedHTML, MUSTACHE_EXPR2, " "); - serializedHTML = stringReplace(serializedHTML, ERB_EXPR2, " "); - serializedHTML = stringReplace(serializedHTML, TMPLIT_EXPR2, " "); - } - return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML; - }; - DOMPurify2.setConfig = function(cfg) { - _parseConfig(cfg); - SET_CONFIG = true; - }; - DOMPurify2.clearConfig = function() { - CONFIG = null; - SET_CONFIG = false; - }; - DOMPurify2.isValidAttribute = function(tag, attr, value) { - if (!CONFIG) { - _parseConfig({}); - } - const lcTag = transformCaseFunc(tag); - const lcName = transformCaseFunc(attr); - return _isValidAttribute(lcTag, lcName, value); - }; - DOMPurify2.addHook = function(entryPoint, hookFunction) { - if (typeof hookFunction !== "function") { - return; - } - hooks[entryPoint] = hooks[entryPoint] || []; - arrayPush(hooks[entryPoint], hookFunction); - }; - DOMPurify2.removeHook = function(entryPoint) { - if (hooks[entryPoint]) { - return arrayPop(hooks[entryPoint]); - } - }; - DOMPurify2.removeHooks = function(entryPoint) { - if (hooks[entryPoint]) { - hooks[entryPoint] = []; - } - }; - DOMPurify2.removeAllHooks = function() { - hooks = {}; - }; - return DOMPurify2; - } - var purify = createDOMPurify(); - module2.exports = purify; - } -}); - -// ../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/core.js -var require_core2 = __commonJS({ - "../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/core.js"(exports2, module2) { - function deepFreeze(obj2) { - if (obj2 instanceof Map) { - obj2.clear = obj2.delete = obj2.set = function() { - throw new Error("map is read-only"); - }; - } else if (obj2 instanceof Set) { - obj2.add = obj2.clear = obj2.delete = function() { - throw new Error("set is read-only"); - }; - } - Object.freeze(obj2); - Object.getOwnPropertyNames(obj2).forEach(function(name) { - var prop = obj2[name]; - if (typeof prop == "object" && !Object.isFrozen(prop)) { - deepFreeze(prop); - } - }); - return obj2; - } - var deepFreezeEs6 = deepFreeze; - var _default = deepFreeze; - deepFreezeEs6.default = _default; - var Response2 = class { - /** - * @param {CompiledMode} mode - */ - constructor(mode) { - if (mode.data === void 0) - mode.data = {}; - this.data = mode.data; - this.isMatchIgnored = false; - } - ignoreMatch() { - this.isMatchIgnored = true; - } - }; - function escapeHTML2(value) { - return value.replace(/&/g, "&").replace(//g, ">").replace(/"/g, """).replace(/'/g, "'"); - } - function inherit(original, ...objects) { - const result = /* @__PURE__ */ Object.create(null); - for (const key in original) { - result[key] = original[key]; - } - objects.forEach(function(obj2) { - for (const key in obj2) { - result[key] = obj2[key]; - } - }); - return ( - /** @type {T} */ - result - ); - } - var SPAN_CLOSE = ""; - var emitsWrappingTags = (node) => { - return !!node.kind; - }; - var HTMLRenderer = class { - /** - * Creates a new HTMLRenderer - * - * @param {Tree} parseTree - the parse tree (must support `walk` API) - * @param {{classPrefix: string}} options - */ - constructor(parseTree, options2) { - this.buffer = ""; - this.classPrefix = options2.classPrefix; - parseTree.walk(this); - } - /** - * Adds texts to the output stream - * - * @param {string} text */ - addText(text) { - this.buffer += escapeHTML2(text); - } - /** - * Adds a node open to the output stream (if needed) - * - * @param {Node} node */ - openNode(node) { - if (!emitsWrappingTags(node)) - return; - let className = node.kind; - if (!node.sublanguage) { - className = `${this.classPrefix}${className}`; - } - this.span(className); - } - /** - * Adds a node close to the output stream (if needed) - * - * @param {Node} node */ - closeNode(node) { - if (!emitsWrappingTags(node)) - return; - this.buffer += SPAN_CLOSE; - } - /** - * returns the accumulated buffer - */ - value() { - return this.buffer; - } - // helpers - /** - * Builds a span element - * - * @param {string} className */ - span(className) { - this.buffer += ``; - } - }; - var TokenTree = class _TokenTree { - constructor() { - this.rootNode = { children: [] }; - this.stack = [this.rootNode]; - } - get top() { - return this.stack[this.stack.length - 1]; - } - get root() { - return this.rootNode; - } - /** @param {Node} node */ - add(node) { - this.top.children.push(node); - } - /** @param {string} kind */ - openNode(kind) { - const node = { kind, children: [] }; - this.add(node); - this.stack.push(node); - } - closeNode() { - if (this.stack.length > 1) { - return this.stack.pop(); - } - return void 0; - } - closeAllNodes() { - while (this.closeNode()) - ; - } - toJSON() { - return JSON.stringify(this.rootNode, null, 4); - } - /** - * @typedef { import("./html_renderer").Renderer } Renderer - * @param {Renderer} builder - */ - walk(builder) { - return this.constructor._walk(builder, this.rootNode); - } - /** - * @param {Renderer} builder - * @param {Node} node - */ - static _walk(builder, node) { - if (typeof node === "string") { - builder.addText(node); - } else if (node.children) { - builder.openNode(node); - node.children.forEach((child) => this._walk(builder, child)); - builder.closeNode(node); - } - return builder; - } - /** - * @param {Node} node - */ - static _collapse(node) { - if (typeof node === "string") - return; - if (!node.children) - return; - if (node.children.every((el) => typeof el === "string")) { - node.children = [node.children.join("")]; - } else { - node.children.forEach((child) => { - _TokenTree._collapse(child); - }); - } - } - }; - var TokenTreeEmitter = class extends TokenTree { - /** - * @param {*} options - */ - constructor(options2) { - super(); - this.options = options2; - } - /** - * @param {string} text - * @param {string} kind - */ - addKeyword(text, kind) { - if (text === "") { - return; - } - this.openNode(kind); - this.addText(text); - this.closeNode(); - } - /** - * @param {string} text - */ - addText(text) { - if (text === "") { - return; - } - this.add(text); - } - /** - * @param {Emitter & {root: DataNode}} emitter - * @param {string} name - */ - addSublanguage(emitter, name) { - const node = emitter.root; - node.kind = name; - node.sublanguage = true; - this.add(node); - } - toHTML() { - const renderer = new HTMLRenderer(this, this.options); - return renderer.value(); - } - finalize() { - return true; - } - }; - function escape4(value) { - return new RegExp(value.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&"), "m"); - } - function source(re) { - if (!re) - return null; - if (typeof re === "string") - return re; - return re.source; - } - function concat(...args3) { - const joined = args3.map((x) => source(x)).join(""); - return joined; - } - function either(...args3) { - const joined = "(" + args3.map((x) => source(x)).join("|") + ")"; - return joined; - } - function countMatchGroups(re) { - return new RegExp(re.toString() + "|").exec("").length - 1; - } - function startsWith(re, lexeme) { - const match2 = re && re.exec(lexeme); - return match2 && match2.index === 0; - } - var BACKREF_RE = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./; - function join6(regexps, separator = "|") { - let numCaptures = 0; - return regexps.map((regex) => { - numCaptures += 1; - const offset = numCaptures; - let re = source(regex); - let out2 = ""; - while (re.length > 0) { - const match2 = BACKREF_RE.exec(re); - if (!match2) { - out2 += re; - break; - } - out2 += re.substring(0, match2.index); - re = re.substring(match2.index + match2[0].length); - if (match2[0][0] === "\\" && match2[1]) { - out2 += "\\" + String(Number(match2[1]) + offset); - } else { - out2 += match2[0]; - if (match2[0] === "(") { - numCaptures++; - } - } - } - return out2; - }).map((re) => `(${re})`).join(separator); - } - var MATCH_NOTHING_RE = /\b\B/; - var IDENT_RE = "[a-zA-Z]\\w*"; - var UNDERSCORE_IDENT_RE = "[a-zA-Z_]\\w*"; - var NUMBER_RE = "\\b\\d+(\\.\\d+)?"; - var C_NUMBER_RE = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)"; - var BINARY_NUMBER_RE = "\\b(0b[01]+)"; - var RE_STARTERS_RE = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~"; - var SHEBANG = (opts = {}) => { - const beginShebang = /^#![ ]*\//; - if (opts.binary) { - opts.begin = concat( - beginShebang, - /.*\b/, - opts.binary, - /\b.*/ - ); - } - return inherit({ - className: "meta", - begin: beginShebang, - end: /$/, - relevance: 0, - /** @type {ModeCallback} */ - "on:begin": (m, resp) => { - if (m.index !== 0) - resp.ignoreMatch(); - } - }, opts); - }; - var BACKSLASH_ESCAPE = { - begin: "\\\\[\\s\\S]", - relevance: 0 - }; - var APOS_STRING_MODE = { - className: "string", - begin: "'", - end: "'", - illegal: "\\n", - contains: [BACKSLASH_ESCAPE] - }; - var QUOTE_STRING_MODE = { - className: "string", - begin: '"', - end: '"', - illegal: "\\n", - contains: [BACKSLASH_ESCAPE] - }; - var PHRASAL_WORDS_MODE = { - begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/ - }; - var COMMENT2 = function(begin, end, modeOptions = {}) { - const mode = inherit( - { - className: "comment", - begin, - end, - contains: [] - }, - modeOptions - ); - mode.contains.push(PHRASAL_WORDS_MODE); - mode.contains.push({ - className: "doctag", - begin: "(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):", - relevance: 0 - }); - return mode; - }; - var C_LINE_COMMENT_MODE = COMMENT2("//", "$"); - var C_BLOCK_COMMENT_MODE = COMMENT2("/\\*", "\\*/"); - var HASH_COMMENT_MODE = COMMENT2("#", "$"); - var NUMBER_MODE = { - className: "number", - begin: NUMBER_RE, - relevance: 0 - }; - var C_NUMBER_MODE = { - className: "number", - begin: C_NUMBER_RE, - relevance: 0 - }; - var BINARY_NUMBER_MODE = { - className: "number", - begin: BINARY_NUMBER_RE, - relevance: 0 - }; - var CSS_NUMBER_MODE = { - className: "number", - begin: NUMBER_RE + "(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?", - relevance: 0 - }; - var REGEXP_MODE = { - // this outer rule makes sure we actually have a WHOLE regex and not simply - // an expression such as: - // - // 3 / something - // - // (which will then blow up when regex's `illegal` sees the newline) - begin: /(?=\/[^/\n]*\/)/, - contains: [{ - className: "regexp", - begin: /\//, - end: /\/[gimuy]*/, - illegal: /\n/, - contains: [ - BACKSLASH_ESCAPE, - { - begin: /\[/, - end: /\]/, - relevance: 0, - contains: [BACKSLASH_ESCAPE] - } - ] - }] - }; - var TITLE_MODE = { - className: "title", - begin: IDENT_RE, - relevance: 0 - }; - var UNDERSCORE_TITLE_MODE = { - className: "title", - begin: UNDERSCORE_IDENT_RE, - relevance: 0 - }; - var METHOD_GUARD = { - // excludes method names from keyword processing - begin: "\\.\\s*" + UNDERSCORE_IDENT_RE, - relevance: 0 - }; - var END_SAME_AS_BEGIN = function(mode) { - return Object.assign( - mode, - { - /** @type {ModeCallback} */ - "on:begin": (m, resp) => { - resp.data._beginMatch = m[1]; - }, - /** @type {ModeCallback} */ - "on:end": (m, resp) => { - if (resp.data._beginMatch !== m[1]) - resp.ignoreMatch(); - } - } - ); - }; - var MODES = /* @__PURE__ */ Object.freeze({ - __proto__: null, - MATCH_NOTHING_RE, - IDENT_RE, - UNDERSCORE_IDENT_RE, - NUMBER_RE, - C_NUMBER_RE, - BINARY_NUMBER_RE, - RE_STARTERS_RE, - SHEBANG, - BACKSLASH_ESCAPE, - APOS_STRING_MODE, - QUOTE_STRING_MODE, - PHRASAL_WORDS_MODE, - COMMENT: COMMENT2, - C_LINE_COMMENT_MODE, - C_BLOCK_COMMENT_MODE, - HASH_COMMENT_MODE, - NUMBER_MODE, - C_NUMBER_MODE, - BINARY_NUMBER_MODE, - CSS_NUMBER_MODE, - REGEXP_MODE, - TITLE_MODE, - UNDERSCORE_TITLE_MODE, - METHOD_GUARD, - END_SAME_AS_BEGIN - }); - function skipIfhasPrecedingDot(match2, response) { - const before = match2.input[match2.index - 1]; - if (before === ".") { - response.ignoreMatch(); - } - } - function beginKeywords(mode, parent) { - if (!parent) - return; - if (!mode.beginKeywords) - return; - mode.begin = "\\b(" + mode.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)"; - mode.__beforeBegin = skipIfhasPrecedingDot; - mode.keywords = mode.keywords || mode.beginKeywords; - delete mode.beginKeywords; - if (mode.relevance === void 0) - mode.relevance = 0; - } - function compileIllegal(mode, _parent) { - if (!Array.isArray(mode.illegal)) - return; - mode.illegal = either(...mode.illegal); - } - function compileMatch(mode, _parent) { - if (!mode.match) - return; - if (mode.begin || mode.end) - throw new Error("begin & end are not supported with match"); - mode.begin = mode.match; - delete mode.match; - } - function compileRelevance(mode, _parent) { - if (mode.relevance === void 0) - mode.relevance = 1; - } - var COMMON_KEYWORDS = [ - "of", - "and", - "for", - "in", - "not", - "or", - "if", - "then", - "parent", - // common variable name - "list", - // common variable name - "value" - // common variable name - ]; - var DEFAULT_KEYWORD_CLASSNAME = "keyword"; - function compileKeywords(rawKeywords, caseInsensitive, className = DEFAULT_KEYWORD_CLASSNAME) { - const compiledKeywords = {}; - if (typeof rawKeywords === "string") { - compileList(className, rawKeywords.split(" ")); - } else if (Array.isArray(rawKeywords)) { - compileList(className, rawKeywords); - } else { - Object.keys(rawKeywords).forEach(function(className2) { - Object.assign( - compiledKeywords, - compileKeywords(rawKeywords[className2], caseInsensitive, className2) - ); - }); - } - return compiledKeywords; - function compileList(className2, keywordList) { - if (caseInsensitive) { - keywordList = keywordList.map((x) => x.toLowerCase()); - } - keywordList.forEach(function(keyword) { - const pair = keyword.split("|"); - compiledKeywords[pair[0]] = [className2, scoreForKeyword(pair[0], pair[1])]; - }); - } - } - function scoreForKeyword(keyword, providedScore) { - if (providedScore) { - return Number(providedScore); - } - return commonKeyword(keyword) ? 0 : 1; - } - function commonKeyword(keyword) { - return COMMON_KEYWORDS.includes(keyword.toLowerCase()); - } - function compileLanguage(language, { plugins }) { - function langRe(value, global2) { - return new RegExp( - source(value), - "m" + (language.case_insensitive ? "i" : "") + (global2 ? "g" : "") - ); - } - class MultiRegex { - constructor() { - this.matchIndexes = {}; - this.regexes = []; - this.matchAt = 1; - this.position = 0; - } - // @ts-ignore - addRule(re, opts) { - opts.position = this.position++; - this.matchIndexes[this.matchAt] = opts; - this.regexes.push([opts, re]); - this.matchAt += countMatchGroups(re) + 1; - } - compile() { - if (this.regexes.length === 0) { - this.exec = () => null; - } - const terminators = this.regexes.map((el) => el[1]); - this.matcherRe = langRe(join6(terminators), true); - this.lastIndex = 0; - } - /** @param {string} s */ - exec(s) { - this.matcherRe.lastIndex = this.lastIndex; - const match2 = this.matcherRe.exec(s); - if (!match2) { - return null; - } - const i = match2.findIndex((el, i2) => i2 > 0 && el !== void 0); - const matchData = this.matchIndexes[i]; - match2.splice(0, i); - return Object.assign(match2, matchData); - } - } - class ResumableMultiRegex { - constructor() { - this.rules = []; - this.multiRegexes = []; - this.count = 0; - this.lastIndex = 0; - this.regexIndex = 0; - } - // @ts-ignore - getMatcher(index) { - if (this.multiRegexes[index]) - return this.multiRegexes[index]; - const matcher = new MultiRegex(); - this.rules.slice(index).forEach(([re, opts]) => matcher.addRule(re, opts)); - matcher.compile(); - this.multiRegexes[index] = matcher; - return matcher; - } - resumingScanAtSamePosition() { - return this.regexIndex !== 0; - } - considerAll() { - this.regexIndex = 0; - } - // @ts-ignore - addRule(re, opts) { - this.rules.push([re, opts]); - if (opts.type === "begin") - this.count++; - } - /** @param {string} s */ - exec(s) { - const m = this.getMatcher(this.regexIndex); - m.lastIndex = this.lastIndex; - let result = m.exec(s); - if (this.resumingScanAtSamePosition()) { - if (result && result.index === this.lastIndex) - ; - else { - const m2 = this.getMatcher(0); - m2.lastIndex = this.lastIndex + 1; - result = m2.exec(s); - } - } - if (result) { - this.regexIndex += result.position + 1; - if (this.regexIndex === this.count) { - this.considerAll(); - } - } - return result; - } - } - function buildModeRegex(mode) { - const mm = new ResumableMultiRegex(); - mode.contains.forEach((term) => mm.addRule(term.begin, { rule: term, type: "begin" })); - if (mode.terminatorEnd) { - mm.addRule(mode.terminatorEnd, { type: "end" }); - } - if (mode.illegal) { - mm.addRule(mode.illegal, { type: "illegal" }); - } - return mm; - } - function compileMode(mode, parent) { - const cmode = ( - /** @type CompiledMode */ - mode - ); - if (mode.isCompiled) - return cmode; - [ - // do this early so compiler extensions generally don't have to worry about - // the distinction between match/begin - compileMatch - ].forEach((ext2) => ext2(mode, parent)); - language.compilerExtensions.forEach((ext2) => ext2(mode, parent)); - mode.__beforeBegin = null; - [ - beginKeywords, - // do this later so compiler extensions that come earlier have access to the - // raw array if they wanted to perhaps manipulate it, etc. - compileIllegal, - // default to 1 relevance if not specified - compileRelevance - ].forEach((ext2) => ext2(mode, parent)); - mode.isCompiled = true; - let keywordPattern = null; - if (typeof mode.keywords === "object") { - keywordPattern = mode.keywords.$pattern; - delete mode.keywords.$pattern; - } - if (mode.keywords) { - mode.keywords = compileKeywords(mode.keywords, language.case_insensitive); - } - if (mode.lexemes && keywordPattern) { - throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) "); - } - keywordPattern = keywordPattern || mode.lexemes || /\w+/; - cmode.keywordPatternRe = langRe(keywordPattern, true); - if (parent) { - if (!mode.begin) - mode.begin = /\B|\b/; - cmode.beginRe = langRe(mode.begin); - if (mode.endSameAsBegin) - mode.end = mode.begin; - if (!mode.end && !mode.endsWithParent) - mode.end = /\B|\b/; - if (mode.end) - cmode.endRe = langRe(mode.end); - cmode.terminatorEnd = source(mode.end) || ""; - if (mode.endsWithParent && parent.terminatorEnd) { - cmode.terminatorEnd += (mode.end ? "|" : "") + parent.terminatorEnd; - } - } - if (mode.illegal) - cmode.illegalRe = langRe( - /** @type {RegExp | string} */ - mode.illegal - ); - if (!mode.contains) - mode.contains = []; - mode.contains = [].concat(...mode.contains.map(function(c) { - return expandOrCloneMode(c === "self" ? mode : c); - })); - mode.contains.forEach(function(c) { - compileMode( - /** @type Mode */ - c, - cmode - ); - }); - if (mode.starts) { - compileMode(mode.starts, parent); - } - cmode.matcher = buildModeRegex(cmode); - return cmode; - } - if (!language.compilerExtensions) - language.compilerExtensions = []; - if (language.contains && language.contains.includes("self")) { - throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation."); - } - language.classNameAliases = inherit(language.classNameAliases || {}); - return compileMode( - /** @type Mode */ - language - ); - } - function dependencyOnParent(mode) { - if (!mode) - return false; - return mode.endsWithParent || dependencyOnParent(mode.starts); - } - function expandOrCloneMode(mode) { - if (mode.variants && !mode.cachedVariants) { - mode.cachedVariants = mode.variants.map(function(variant) { - return inherit(mode, { variants: null }, variant); - }); - } - if (mode.cachedVariants) { - return mode.cachedVariants; - } - if (dependencyOnParent(mode)) { - return inherit(mode, { starts: mode.starts ? inherit(mode.starts) : null }); - } - if (Object.isFrozen(mode)) { - return inherit(mode); - } - return mode; - } - var version5 = "10.7.3"; - function hasValueOrEmptyAttribute(value) { - return Boolean(value || value === ""); - } - function BuildVuePlugin(hljs) { - const Component = { - props: ["language", "code", "autodetect"], - data: function() { - return { - detectedLanguage: "", - unknownLanguage: false - }; - }, - computed: { - className() { - if (this.unknownLanguage) - return ""; - return "hljs " + this.detectedLanguage; - }, - highlighted() { - if (!this.autoDetect && !hljs.getLanguage(this.language)) { - console.warn(`The language "${this.language}" you specified could not be found.`); - this.unknownLanguage = true; - return escapeHTML2(this.code); - } - let result = {}; - if (this.autoDetect) { - result = hljs.highlightAuto(this.code); - this.detectedLanguage = result.language; - } else { - result = hljs.highlight(this.language, this.code, this.ignoreIllegals); - this.detectedLanguage = this.language; - } - return result.value; - }, - autoDetect() { - return !this.language || hasValueOrEmptyAttribute(this.autodetect); - }, - ignoreIllegals() { - return true; - } - }, - // this avoids needing to use a whole Vue compilation pipeline just - // to build Highlight.js - render(createElement) { - return createElement("pre", {}, [ - createElement("code", { - class: this.className, - domProps: { innerHTML: this.highlighted } - }) - ]); - } - // template: `
` - }; - const VuePlugin = { - install(Vue) { - Vue.component("highlightjs", Component); - } - }; - return { Component, VuePlugin }; - } - var mergeHTMLPlugin = { - "after:highlightElement": ({ el, result, text }) => { - const originalStream = nodeStream(el); - if (!originalStream.length) - return; - const resultNode = document.createElement("div"); - resultNode.innerHTML = result.value; - result.value = mergeStreams(originalStream, nodeStream(resultNode), text); - } - }; - function tag(node) { - return node.nodeName.toLowerCase(); - } - function nodeStream(node) { - const result = []; - (function _nodeStream(node2, offset) { - for (let child = node2.firstChild; child; child = child.nextSibling) { - if (child.nodeType === 3) { - offset += child.nodeValue.length; - } else if (child.nodeType === 1) { - result.push({ - event: "start", - offset, - node: child - }); - offset = _nodeStream(child, offset); - if (!tag(child).match(/br|hr|img|input/)) { - result.push({ - event: "stop", - offset, - node: child - }); - } - } - } - return offset; - })(node, 0); - return result; - } - function mergeStreams(original, highlighted, value) { - let processed = 0; - let result = ""; - const nodeStack = []; - function selectStream() { - if (!original.length || !highlighted.length) { - return original.length ? original : highlighted; - } - if (original[0].offset !== highlighted[0].offset) { - return original[0].offset < highlighted[0].offset ? original : highlighted; - } - return highlighted[0].event === "start" ? original : highlighted; - } - function open(node) { - function attributeString(attr) { - return " " + attr.nodeName + '="' + escapeHTML2(attr.value) + '"'; - } - result += "<" + tag(node) + [].map.call(node.attributes, attributeString).join("") + ">"; - } - function close(node) { - result += ""; - } - function render(event) { - (event.event === "start" ? open : close)(event.node); - } - while (original.length || highlighted.length) { - let stream5 = selectStream(); - result += escapeHTML2(value.substring(processed, stream5[0].offset)); - processed = stream5[0].offset; - if (stream5 === original) { - nodeStack.reverse().forEach(close); - do { - render(stream5.splice(0, 1)[0]); - stream5 = selectStream(); - } while (stream5 === original && stream5.length && stream5[0].offset === processed); - nodeStack.reverse().forEach(open); - } else { - if (stream5[0].event === "start") { - nodeStack.push(stream5[0].node); - } else { - nodeStack.pop(); - } - render(stream5.splice(0, 1)[0]); - } - } - return result + escapeHTML2(value.substr(processed)); - } - var seenDeprecations = {}; - var error = (message) => { - console.error(message); - }; - var warn = (message, ...args3) => { - console.log(`WARN: ${message}`, ...args3); - }; - var deprecated = (version6, message) => { - if (seenDeprecations[`${version6}/${message}`]) - return; - console.log(`Deprecated as of ${version6}. ${message}`); - seenDeprecations[`${version6}/${message}`] = true; - }; - var escape$1 = escapeHTML2; - var inherit$1 = inherit; - var NO_MATCH = Symbol("nomatch"); - var HLJS = function(hljs) { - const languages3 = /* @__PURE__ */ Object.create(null); - const aliases = /* @__PURE__ */ Object.create(null); - const plugins = []; - let SAFE_MODE = true; - const fixMarkupRe = /(^(<[^>]+>|\t|)+|\n)/gm; - const LANGUAGE_NOT_FOUND = "Could not find the language '{}', did you forget to load/include a language module?"; - const PLAINTEXT_LANGUAGE = { disableAutodetect: true, name: "Plain text", contains: [] }; - let options2 = { - noHighlightRe: /^(no-?highlight)$/i, - languageDetectRe: /\blang(?:uage)?-([\w-]+)\b/i, - classPrefix: "hljs-", - tabReplace: null, - useBR: false, - languages: null, - // beta configuration options, subject to change, welcome to discuss - // https://github.com/highlightjs/highlight.js/issues/1086 - __emitter: TokenTreeEmitter - }; - function shouldNotHighlight(languageName) { - return options2.noHighlightRe.test(languageName); - } - function blockLanguage(block2) { - let classes = block2.className + " "; - classes += block2.parentNode ? block2.parentNode.className : ""; - const match2 = options2.languageDetectRe.exec(classes); - if (match2) { - const language = getLanguage(match2[1]); - if (!language) { - warn(LANGUAGE_NOT_FOUND.replace("{}", match2[1])); - warn("Falling back to no-highlight mode for this block.", block2); - } - return language ? match2[1] : "no-highlight"; - } - return classes.split(/\s+/).find((_class) => shouldNotHighlight(_class) || getLanguage(_class)); - } - function highlight3(codeOrlanguageName, optionsOrCode, ignoreIllegals, continuation) { - let code = ""; - let languageName = ""; - if (typeof optionsOrCode === "object") { - code = codeOrlanguageName; - ignoreIllegals = optionsOrCode.ignoreIllegals; - languageName = optionsOrCode.language; - continuation = void 0; - } else { - deprecated("10.7.0", "highlight(lang, code, ...args) has been deprecated."); - deprecated("10.7.0", "Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"); - languageName = codeOrlanguageName; - code = optionsOrCode; - } - const context3 = { - code, - language: languageName - }; - fire("before:highlight", context3); - const result = context3.result ? context3.result : _highlight(context3.language, context3.code, ignoreIllegals, continuation); - result.code = context3.code; - fire("after:highlight", result); - return result; - } - function _highlight(languageName, codeToHighlight, ignoreIllegals, continuation) { - function keywordData(mode, match2) { - const matchText = language.case_insensitive ? match2[0].toLowerCase() : match2[0]; - return Object.prototype.hasOwnProperty.call(mode.keywords, matchText) && mode.keywords[matchText]; - } - function processKeywords() { - if (!top.keywords) { - emitter.addText(modeBuffer); - return; - } - let lastIndex = 0; - top.keywordPatternRe.lastIndex = 0; - let match2 = top.keywordPatternRe.exec(modeBuffer); - let buf = ""; - while (match2) { - buf += modeBuffer.substring(lastIndex, match2.index); - const data = keywordData(top, match2); - if (data) { - const [kind, keywordRelevance] = data; - emitter.addText(buf); - buf = ""; - relevance += keywordRelevance; - if (kind.startsWith("_")) { - buf += match2[0]; - } else { - const cssClass = language.classNameAliases[kind] || kind; - emitter.addKeyword(match2[0], cssClass); - } - } else { - buf += match2[0]; - } - lastIndex = top.keywordPatternRe.lastIndex; - match2 = top.keywordPatternRe.exec(modeBuffer); - } - buf += modeBuffer.substr(lastIndex); - emitter.addText(buf); - } - function processSubLanguage() { - if (modeBuffer === "") - return; - let result2 = null; - if (typeof top.subLanguage === "string") { - if (!languages3[top.subLanguage]) { - emitter.addText(modeBuffer); - return; - } - result2 = _highlight(top.subLanguage, modeBuffer, true, continuations[top.subLanguage]); - continuations[top.subLanguage] = /** @type {CompiledMode} */ - result2.top; - } else { - result2 = highlightAuto2(modeBuffer, top.subLanguage.length ? top.subLanguage : null); - } - if (top.relevance > 0) { - relevance += result2.relevance; - } - emitter.addSublanguage(result2.emitter, result2.language); - } - function processBuffer() { - if (top.subLanguage != null) { - processSubLanguage(); - } else { - processKeywords(); - } - modeBuffer = ""; - } - function startNewMode(mode) { - if (mode.className) { - emitter.openNode(language.classNameAliases[mode.className] || mode.className); - } - top = Object.create(mode, { parent: { value: top } }); - return top; - } - function endOfMode(mode, match2, matchPlusRemainder) { - let matched = startsWith(mode.endRe, matchPlusRemainder); - if (matched) { - if (mode["on:end"]) { - const resp = new Response2(mode); - mode["on:end"](match2, resp); - if (resp.isMatchIgnored) - matched = false; - } - if (matched) { - while (mode.endsParent && mode.parent) { - mode = mode.parent; - } - return mode; - } - } - if (mode.endsWithParent) { - return endOfMode(mode.parent, match2, matchPlusRemainder); - } - } - function doIgnore(lexeme) { - if (top.matcher.regexIndex === 0) { - modeBuffer += lexeme[0]; - return 1; - } else { - resumeScanAtSamePosition = true; - return 0; - } - } - function doBeginMatch(match2) { - const lexeme = match2[0]; - const newMode = match2.rule; - const resp = new Response2(newMode); - const beforeCallbacks = [newMode.__beforeBegin, newMode["on:begin"]]; - for (const cb of beforeCallbacks) { - if (!cb) - continue; - cb(match2, resp); - if (resp.isMatchIgnored) - return doIgnore(lexeme); - } - if (newMode && newMode.endSameAsBegin) { - newMode.endRe = escape4(lexeme); - } - if (newMode.skip) { - modeBuffer += lexeme; - } else { - if (newMode.excludeBegin) { - modeBuffer += lexeme; - } - processBuffer(); - if (!newMode.returnBegin && !newMode.excludeBegin) { - modeBuffer = lexeme; - } - } - startNewMode(newMode); - return newMode.returnBegin ? 0 : lexeme.length; - } - function doEndMatch(match2) { - const lexeme = match2[0]; - const matchPlusRemainder = codeToHighlight.substr(match2.index); - const endMode = endOfMode(top, match2, matchPlusRemainder); - if (!endMode) { - return NO_MATCH; - } - const origin = top; - if (origin.skip) { - modeBuffer += lexeme; - } else { - if (!(origin.returnEnd || origin.excludeEnd)) { - modeBuffer += lexeme; - } - processBuffer(); - if (origin.excludeEnd) { - modeBuffer = lexeme; - } - } - do { - if (top.className) { - emitter.closeNode(); - } - if (!top.skip && !top.subLanguage) { - relevance += top.relevance; - } - top = top.parent; - } while (top !== endMode.parent); - if (endMode.starts) { - if (endMode.endSameAsBegin) { - endMode.starts.endRe = endMode.endRe; - } - startNewMode(endMode.starts); - } - return origin.returnEnd ? 0 : lexeme.length; - } - function processContinuations() { - const list = []; - for (let current = top; current !== language; current = current.parent) { - if (current.className) { - list.unshift(current.className); - } - } - list.forEach((item) => emitter.openNode(item)); - } - let lastMatch = {}; - function processLexeme(textBeforeMatch, match2) { - const lexeme = match2 && match2[0]; - modeBuffer += textBeforeMatch; - if (lexeme == null) { - processBuffer(); - return 0; - } - if (lastMatch.type === "begin" && match2.type === "end" && lastMatch.index === match2.index && lexeme === "") { - modeBuffer += codeToHighlight.slice(match2.index, match2.index + 1); - if (!SAFE_MODE) { - const err3 = new Error("0 width match regex"); - err3.languageName = languageName; - err3.badRule = lastMatch.rule; - throw err3; - } - return 1; - } - lastMatch = match2; - if (match2.type === "begin") { - return doBeginMatch(match2); - } else if (match2.type === "illegal" && !ignoreIllegals) { - const err3 = new Error('Illegal lexeme "' + lexeme + '" for mode "' + (top.className || "") + '"'); - err3.mode = top; - throw err3; - } else if (match2.type === "end") { - const processed = doEndMatch(match2); - if (processed !== NO_MATCH) { - return processed; - } - } - if (match2.type === "illegal" && lexeme === "") { - return 1; - } - if (iterations > 1e5 && iterations > match2.index * 3) { - const err3 = new Error("potential infinite loop, way more iterations than matches"); - throw err3; - } - modeBuffer += lexeme; - return lexeme.length; - } - const language = getLanguage(languageName); - if (!language) { - error(LANGUAGE_NOT_FOUND.replace("{}", languageName)); - throw new Error('Unknown language: "' + languageName + '"'); - } - const md = compileLanguage(language, { plugins }); - let result = ""; - let top = continuation || md; - const continuations = {}; - const emitter = new options2.__emitter(options2); - processContinuations(); - let modeBuffer = ""; - let relevance = 0; - let index = 0; - let iterations = 0; - let resumeScanAtSamePosition = false; - try { - top.matcher.considerAll(); - for (; ; ) { - iterations++; - if (resumeScanAtSamePosition) { - resumeScanAtSamePosition = false; - } else { - top.matcher.considerAll(); - } - top.matcher.lastIndex = index; - const match2 = top.matcher.exec(codeToHighlight); - if (!match2) - break; - const beforeMatch = codeToHighlight.substring(index, match2.index); - const processedCount = processLexeme(beforeMatch, match2); - index = match2.index + processedCount; - } - processLexeme(codeToHighlight.substr(index)); - emitter.closeAllNodes(); - emitter.finalize(); - result = emitter.toHTML(); - return { - // avoid possible breakage with v10 clients expecting - // this to always be an integer - relevance: Math.floor(relevance), - value: result, - language: languageName, - illegal: false, - emitter, - top - }; - } catch (err3) { - if (err3.message && err3.message.includes("Illegal")) { - return { - illegal: true, - illegalBy: { - msg: err3.message, - context: codeToHighlight.slice(index - 100, index + 100), - mode: err3.mode - }, - sofar: result, - relevance: 0, - value: escape$1(codeToHighlight), - emitter - }; - } else if (SAFE_MODE) { - return { - illegal: false, - relevance: 0, - value: escape$1(codeToHighlight), - emitter, - language: languageName, - top, - errorRaised: err3 - }; - } else { - throw err3; - } - } - } - function justTextHighlightResult(code) { - const result = { - relevance: 0, - emitter: new options2.__emitter(options2), - value: escape$1(code), - illegal: false, - top: PLAINTEXT_LANGUAGE - }; - result.emitter.addText(code); - return result; - } - function highlightAuto2(code, languageSubset) { - languageSubset = languageSubset || options2.languages || Object.keys(languages3); - const plaintext = justTextHighlightResult(code); - const results = languageSubset.filter(getLanguage).filter(autoDetection).map( - (name) => _highlight(name, code, false) - ); - results.unshift(plaintext); - const sorted = results.sort((a, b) => { - if (a.relevance !== b.relevance) - return b.relevance - a.relevance; - if (a.language && b.language) { - if (getLanguage(a.language).supersetOf === b.language) { - return 1; - } else if (getLanguage(b.language).supersetOf === a.language) { - return -1; - } - } - return 0; - }); - const [best, secondBest] = sorted; - const result = best; - result.second_best = secondBest; - return result; - } - function fixMarkup(html) { - if (!(options2.tabReplace || options2.useBR)) { - return html; - } - return html.replace(fixMarkupRe, (match2) => { - if (match2 === "\n") { - return options2.useBR ? "
" : match2; - } else if (options2.tabReplace) { - return match2.replace(/\t/g, options2.tabReplace); - } - return match2; - }); - } - function updateClassName(element, currentLang, resultLang) { - const language = currentLang ? aliases[currentLang] : resultLang; - element.classList.add("hljs"); - if (language) - element.classList.add(language); - } - const brPlugin = { - "before:highlightElement": ({ el }) => { - if (options2.useBR) { - el.innerHTML = el.innerHTML.replace(/\n/g, "").replace(//g, "\n"); - } - }, - "after:highlightElement": ({ result }) => { - if (options2.useBR) { - result.value = result.value.replace(/\n/g, "
"); - } - } - }; - const TAB_REPLACE_RE = /^(<[^>]+>|\t)+/gm; - const tabReplacePlugin = { - "after:highlightElement": ({ result }) => { - if (options2.tabReplace) { - result.value = result.value.replace( - TAB_REPLACE_RE, - (m) => m.replace(/\t/g, options2.tabReplace) - ); - } - } - }; - function highlightElement(element) { - let node = null; - const language = blockLanguage(element); - if (shouldNotHighlight(language)) - return; - fire( - "before:highlightElement", - { el: element, language } - ); - node = element; - const text = node.textContent; - const result = language ? highlight3(text, { language, ignoreIllegals: true }) : highlightAuto2(text); - fire("after:highlightElement", { el: element, result, text }); - element.innerHTML = result.value; - updateClassName(element, language, result.language); - element.result = { - language: result.language, - // TODO: remove with version 11.0 - re: result.relevance, - relavance: result.relevance - }; - if (result.second_best) { - element.second_best = { - language: result.second_best.language, - // TODO: remove with version 11.0 - re: result.second_best.relevance, - relavance: result.second_best.relevance - }; - } - } - function configure(userOptions) { - if (userOptions.useBR) { - deprecated("10.3.0", "'useBR' will be removed entirely in v11.0"); - deprecated("10.3.0", "Please see https://github.com/highlightjs/highlight.js/issues/2559"); - } - options2 = inherit$1(options2, userOptions); - } - const initHighlighting = () => { - if (initHighlighting.called) - return; - initHighlighting.called = true; - deprecated("10.6.0", "initHighlighting() is deprecated. Use highlightAll() instead."); - const blocks = document.querySelectorAll("pre code"); - blocks.forEach(highlightElement); - }; - function initHighlightingOnLoad() { - deprecated("10.6.0", "initHighlightingOnLoad() is deprecated. Use highlightAll() instead."); - wantsHighlight = true; - } - let wantsHighlight = false; - function highlightAll() { - if (document.readyState === "loading") { - wantsHighlight = true; - return; - } - const blocks = document.querySelectorAll("pre code"); - blocks.forEach(highlightElement); - } - function boot() { - if (wantsHighlight) - highlightAll(); - } - if (typeof window !== "undefined" && window.addEventListener) { - window.addEventListener("DOMContentLoaded", boot, false); - } - function registerLanguage2(languageName, languageDefinition) { - let lang = null; - try { - lang = languageDefinition(hljs); - } catch (error$1) { - error("Language definition for '{}' could not be registered.".replace("{}", languageName)); - if (!SAFE_MODE) { - throw error$1; - } else { - error(error$1); - } - lang = PLAINTEXT_LANGUAGE; - } - if (!lang.name) - lang.name = languageName; - languages3[languageName] = lang; - lang.rawDefinition = languageDefinition.bind(null, hljs); - if (lang.aliases) { - registerAliases(lang.aliases, { languageName }); - } - } - function unregisterLanguage(languageName) { - delete languages3[languageName]; - for (const alias of Object.keys(aliases)) { - if (aliases[alias] === languageName) { - delete aliases[alias]; - } - } - } - function listLanguages() { - return Object.keys(languages3); - } - function requireLanguage(name) { - deprecated("10.4.0", "requireLanguage will be removed entirely in v11."); - deprecated("10.4.0", "Please see https://github.com/highlightjs/highlight.js/pull/2844"); - const lang = getLanguage(name); - if (lang) { - return lang; - } - const err3 = new Error("The '{}' language is required, but not loaded.".replace("{}", name)); - throw err3; - } - function getLanguage(name) { - name = (name || "").toLowerCase(); - return languages3[name] || languages3[aliases[name]]; - } - function registerAliases(aliasList, { languageName }) { - if (typeof aliasList === "string") { - aliasList = [aliasList]; - } - aliasList.forEach((alias) => { - aliases[alias.toLowerCase()] = languageName; - }); - } - function autoDetection(name) { - const lang = getLanguage(name); - return lang && !lang.disableAutodetect; - } - function upgradePluginAPI(plugin) { - if (plugin["before:highlightBlock"] && !plugin["before:highlightElement"]) { - plugin["before:highlightElement"] = (data) => { - plugin["before:highlightBlock"]( - Object.assign({ block: data.el }, data) - ); - }; - } - if (plugin["after:highlightBlock"] && !plugin["after:highlightElement"]) { - plugin["after:highlightElement"] = (data) => { - plugin["after:highlightBlock"]( - Object.assign({ block: data.el }, data) - ); - }; - } - } - function addPlugin(plugin) { - upgradePluginAPI(plugin); - plugins.push(plugin); - } - function fire(event, args3) { - const cb = event; - plugins.forEach(function(plugin) { - if (plugin[cb]) { - plugin[cb](args3); - } - }); - } - function deprecateFixMarkup(arg) { - deprecated("10.2.0", "fixMarkup will be removed entirely in v11.0"); - deprecated("10.2.0", "Please see https://github.com/highlightjs/highlight.js/issues/2534"); - return fixMarkup(arg); - } - function deprecateHighlightBlock(el) { - deprecated("10.7.0", "highlightBlock will be removed entirely in v12.0"); - deprecated("10.7.0", "Please use highlightElement now."); - return highlightElement(el); - } - Object.assign(hljs, { - highlight: highlight3, - highlightAuto: highlightAuto2, - highlightAll, - fixMarkup: deprecateFixMarkup, - highlightElement, - // TODO: Remove with v12 API - highlightBlock: deprecateHighlightBlock, - configure, - initHighlighting, - initHighlightingOnLoad, - registerLanguage: registerLanguage2, - unregisterLanguage, - listLanguages, - getLanguage, - registerAliases, - requireLanguage, - autoDetection, - inherit: inherit$1, - addPlugin, - // plugins for frameworks - vuePlugin: BuildVuePlugin(hljs).VuePlugin - }); - hljs.debugMode = function() { - SAFE_MODE = false; - }; - hljs.safeMode = function() { - SAFE_MODE = true; - }; - hljs.versionString = version5; - for (const key in MODES) { - if (typeof MODES[key] === "object") { - deepFreezeEs6(MODES[key]); - } - } - Object.assign(hljs, MODES); - hljs.addPlugin(brPlugin); - hljs.addPlugin(mergeHTMLPlugin); - hljs.addPlugin(tabReplacePlugin); - return hljs; - }; - var highlight2 = HLJS({}); - module2.exports = highlight2; - } -}); - -// ../node_modules/.pnpm/marked@4.0.16/node_modules/marked/lib/marked.esm.js -function getDefaults() { - return { - baseUrl: null, - breaks: false, - extensions: null, - gfm: true, - headerIds: true, - headerPrefix: "", - highlight: null, - langPrefix: "language-", - mangle: true, - pedantic: false, - renderer: null, - sanitize: false, - sanitizer: null, - silent: false, - smartLists: false, - smartypants: false, - tokenizer: null, - walkTokens: null, - xhtml: false - }; -} -function changeDefaults(newDefaults) { - defaults = newDefaults; -} -function escape2(html, encode3) { - if (encode3) { - if (escapeTest.test(html)) { - return html.replace(escapeReplace, getEscapeReplacement); - } - } else { - if (escapeTestNoEncode.test(html)) { - return html.replace(escapeReplaceNoEncode, getEscapeReplacement); - } - } - return html; -} -function unescape2(html) { - return html.replace(unescapeTest, (_, n) => { - n = n.toLowerCase(); - if (n === "colon") - return ":"; - if (n.charAt(0) === "#") { - return n.charAt(1) === "x" ? String.fromCharCode(parseInt(n.substring(2), 16)) : String.fromCharCode(+n.substring(1)); - } - return ""; - }); -} -function edit(regex, opt) { - regex = typeof regex === "string" ? regex : regex.source; - opt = opt || ""; - const obj2 = { - replace: (name, val2) => { - val2 = val2.source || val2; - val2 = val2.replace(caret, "$1"); - regex = regex.replace(name, val2); - return obj2; - }, - getRegex: () => { - return new RegExp(regex, opt); - } - }; - return obj2; -} -function cleanUrl(sanitize, base, href) { - if (sanitize) { - let prot; - try { - prot = decodeURIComponent(unescape2(href)).replace(nonWordAndColonTest, "").toLowerCase(); - } catch (e) { - return null; - } - if (prot.indexOf("javascript:") === 0 || prot.indexOf("vbscript:") === 0 || prot.indexOf("data:") === 0) { - return null; - } - } - if (base && !originIndependentUrl.test(href)) { - href = resolveUrl(base, href); - } - try { - href = encodeURI(href).replace(/%25/g, "%"); - } catch (e) { - return null; - } - return href; -} -function resolveUrl(base, href) { - if (!baseUrls[" " + base]) { - if (justDomain.test(base)) { - baseUrls[" " + base] = base + "/"; - } else { - baseUrls[" " + base] = rtrim(base, "/", true); - } - } - base = baseUrls[" " + base]; - const relativeBase = base.indexOf(":") === -1; - if (href.substring(0, 2) === "//") { - if (relativeBase) { - return href; - } - return base.replace(protocol, "$1") + href; - } else if (href.charAt(0) === "/") { - if (relativeBase) { - return href; - } - return base.replace(domain, "$1") + href; - } else { - return base + href; - } -} -function merge(obj2) { - let i = 1, target, key; - for (; i < arguments.length; i++) { - target = arguments[i]; - for (key in target) { - if (Object.prototype.hasOwnProperty.call(target, key)) { - obj2[key] = target[key]; - } - } - } - return obj2; -} -function splitCells(tableRow, count) { - const row = tableRow.replace(/\|/g, (match2, offset, str) => { - let escaped = false, curr = offset; - while (--curr >= 0 && str[curr] === "\\") - escaped = !escaped; - if (escaped) { - return "|"; - } else { - return " |"; - } - }), cells = row.split(/ \|/); - let i = 0; - if (!cells[0].trim()) { - cells.shift(); - } - if (cells.length > 0 && !cells[cells.length - 1].trim()) { - cells.pop(); - } - if (cells.length > count) { - cells.splice(count); - } else { - while (cells.length < count) - cells.push(""); - } - for (; i < cells.length; i++) { - cells[i] = cells[i].trim().replace(/\\\|/g, "|"); - } - return cells; -} -function rtrim(str, c, invert) { - const l2 = str.length; - if (l2 === 0) { - return ""; - } - let suffLen = 0; - while (suffLen < l2) { - const currChar = str.charAt(l2 - suffLen - 1); - if (currChar === c && !invert) { - suffLen++; - } else if (currChar !== c && invert) { - suffLen++; - } else { - break; - } - } - return str.slice(0, l2 - suffLen); -} -function findClosingBracket(str, b) { - if (str.indexOf(b[1]) === -1) { - return -1; - } - const l2 = str.length; - let level = 0, i = 0; - for (; i < l2; i++) { - if (str[i] === "\\") { - i++; - } else if (str[i] === b[0]) { - level++; - } else if (str[i] === b[1]) { - level--; - if (level < 0) { - return i; - } - } - } - return -1; -} -function checkSanitizeDeprecation(opt) { - if (opt && opt.sanitize && !opt.silent) { - console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options"); - } -} -function repeatString(pattern, count) { - if (count < 1) { - return ""; - } - let result = ""; - while (count > 1) { - if (count & 1) { - result += pattern; - } - count >>= 1; - pattern += pattern; - } - return result + pattern; -} -function outputLink(cap, link, raw, lexer2) { - const href = link.href; - const title = link.title ? escape2(link.title) : null; - const text = cap[1].replace(/\\([\[\]])/g, "$1"); - if (cap[0].charAt(0) !== "!") { - lexer2.state.inLink = true; - const token = { - type: "link", - raw, - href, - title, - text, - tokens: lexer2.inlineTokens(text, []) - }; - lexer2.state.inLink = false; - return token; - } - return { - type: "image", - raw, - href, - title, - text: escape2(text) - }; -} -function indentCodeCompensation(raw, text) { - const matchIndentToCode = raw.match(/^(\s+)(?:```)/); - if (matchIndentToCode === null) { - return text; - } - const indentToCode = matchIndentToCode[1]; - return text.split("\n").map((node) => { - const matchIndentInNode = node.match(/^\s+/); - if (matchIndentInNode === null) { - return node; - } - const [indentInNode] = matchIndentInNode; - if (indentInNode.length >= indentToCode.length) { - return node.slice(indentToCode.length); - } - return node; - }).join("\n"); -} -function smartypants(text) { - return text.replace(/---/g, "\u2014").replace(/--/g, "\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g, "$1\u2018").replace(/'/g, "\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g, "$1\u201C").replace(/"/g, "\u201D").replace(/\.{3}/g, "\u2026"); -} -function mangle(text) { - let out2 = "", i, ch; - const l2 = text.length; - for (i = 0; i < l2; i++) { - ch = text.charCodeAt(i); - if (Math.random() > 0.5) { - ch = "x" + ch.toString(16); - } - out2 += "&#" + ch + ";"; - } - return out2; -} -function marked(src, opt, callback) { - if (typeof src === "undefined" || src === null) { - throw new Error("marked(): input parameter is undefined or null"); - } - if (typeof src !== "string") { - throw new Error("marked(): input parameter is of type " + Object.prototype.toString.call(src) + ", string expected"); - } - if (typeof opt === "function") { - callback = opt; - opt = null; - } - opt = merge({}, marked.defaults, opt || {}); - checkSanitizeDeprecation(opt); - if (callback) { - const highlight2 = opt.highlight; - let tokens; - try { - tokens = Lexer.lex(src, opt); - } catch (e) { - return callback(e); - } - const done = function(err3) { - let out2; - if (!err3) { - try { - if (opt.walkTokens) { - marked.walkTokens(tokens, opt.walkTokens); - } - out2 = Parser2.parse(tokens, opt); - } catch (e) { - err3 = e; - } - } - opt.highlight = highlight2; - return err3 ? callback(err3) : callback(null, out2); - }; - if (!highlight2 || highlight2.length < 3) { - return done(); - } - delete opt.highlight; - if (!tokens.length) - return done(); - let pending = 0; - marked.walkTokens(tokens, function(token) { - if (token.type === "code") { - pending++; - setTimeout(() => { - highlight2(token.text, token.lang, function(err3, code) { - if (err3) { - return done(err3); - } - if (code != null && code !== token.text) { - token.text = code; - token.escaped = true; - } - pending--; - if (pending === 0) { - done(); - } - }); - }, 0); - } - }); - if (pending === 0) { - done(); - } - return; - } - try { - const tokens = Lexer.lex(src, opt); - if (opt.walkTokens) { - marked.walkTokens(tokens, opt.walkTokens); - } - return Parser2.parse(tokens, opt); - } catch (e) { - e.message += "\nPlease report this to https://github.com/markedjs/marked."; - if (opt.silent) { - return "

An error occurred:

" + escape2(e.message + "", true) + "
"; - } - throw e; - } -} -var defaults, escapeTest, escapeReplace, escapeTestNoEncode, escapeReplaceNoEncode, escapeReplacements, getEscapeReplacement, unescapeTest, caret, nonWordAndColonTest, originIndependentUrl, baseUrls, justDomain, protocol, domain, noopTest, Tokenizer, block, inline, Lexer, Renderer, TextRenderer, Slugger, Parser2, options, setOptions, use, walkTokens, parseInline, parser, lexer; -var init_marked_esm = __esm({ - "../node_modules/.pnpm/marked@4.0.16/node_modules/marked/lib/marked.esm.js"() { - defaults = getDefaults(); - escapeTest = /[&<>"']/; - escapeReplace = /[&<>"']/g; - escapeTestNoEncode = /[<>"']|&(?!#?\w+;)/; - escapeReplaceNoEncode = /[<>"']|&(?!#?\w+;)/g; - escapeReplacements = { - "&": "&", - "<": "<", - ">": ">", - '"': """, - "'": "'" - }; - getEscapeReplacement = (ch) => escapeReplacements[ch]; - unescapeTest = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig; - caret = /(^|[^\[])\^/g; - nonWordAndColonTest = /[^\w:]/g; - originIndependentUrl = /^$|^[a-z][a-z0-9+.-]*:|^[?#]/i; - baseUrls = {}; - justDomain = /^[^:]+:\/*[^/]*$/; - protocol = /^([^:]+:)[\s\S]*$/; - domain = /^([^:]+:\/*[^/]*)[\s\S]*$/; - noopTest = { exec: function noopTest2() { - } }; - Tokenizer = class { - constructor(options2) { - this.options = options2 || defaults; - } - space(src) { - const cap = this.rules.block.newline.exec(src); - if (cap && cap[0].length > 0) { - return { - type: "space", - raw: cap[0] - }; - } - } - code(src) { - const cap = this.rules.block.code.exec(src); - if (cap) { - const text = cap[0].replace(/^ {1,4}/gm, ""); - return { - type: "code", - raw: cap[0], - codeBlockStyle: "indented", - text: !this.options.pedantic ? rtrim(text, "\n") : text - }; - } - } - fences(src) { - const cap = this.rules.block.fences.exec(src); - if (cap) { - const raw = cap[0]; - const text = indentCodeCompensation(raw, cap[3] || ""); - return { - type: "code", - raw, - lang: cap[2] ? cap[2].trim() : cap[2], - text - }; - } - } - heading(src) { - const cap = this.rules.block.heading.exec(src); - if (cap) { - let text = cap[2].trim(); - if (/#$/.test(text)) { - const trimmed = rtrim(text, "#"); - if (this.options.pedantic) { - text = trimmed.trim(); - } else if (!trimmed || / $/.test(trimmed)) { - text = trimmed.trim(); - } - } - const token = { - type: "heading", - raw: cap[0], - depth: cap[1].length, - text, - tokens: [] - }; - this.lexer.inline(token.text, token.tokens); - return token; - } - } - hr(src) { - const cap = this.rules.block.hr.exec(src); - if (cap) { - return { - type: "hr", - raw: cap[0] - }; - } - } - blockquote(src) { - const cap = this.rules.block.blockquote.exec(src); - if (cap) { - const text = cap[0].replace(/^ *>[ \t]?/gm, ""); - return { - type: "blockquote", - raw: cap[0], - tokens: this.lexer.blockTokens(text, []), - text - }; - } - } - list(src) { - let cap = this.rules.block.list.exec(src); - if (cap) { - let raw, istask, ischecked, indent, i, blankLine, endsWithBlankLine, line, nextLine, rawLine, itemContents, endEarly; - let bull = cap[1].trim(); - const isordered = bull.length > 1; - const list = { - type: "list", - raw: "", - ordered: isordered, - start: isordered ? +bull.slice(0, -1) : "", - loose: false, - items: [] - }; - bull = isordered ? `\\d{1,9}\\${bull.slice(-1)}` : `\\${bull}`; - if (this.options.pedantic) { - bull = isordered ? bull : "[*+-]"; - } - const itemRegex = new RegExp(`^( {0,3}${bull})((?:[ ][^\\n]*)?(?:\\n|$))`); - while (src) { - endEarly = false; - if (!(cap = itemRegex.exec(src))) { - break; - } - if (this.rules.block.hr.test(src)) { - break; - } - raw = cap[0]; - src = src.substring(raw.length); - line = cap[2].split("\n", 1)[0]; - nextLine = src.split("\n", 1)[0]; - if (this.options.pedantic) { - indent = 2; - itemContents = line.trimLeft(); - } else { - indent = cap[2].search(/[^ ]/); - indent = indent > 4 ? 1 : indent; - itemContents = line.slice(indent); - indent += cap[1].length; - } - blankLine = false; - if (!line && /^ *$/.test(nextLine)) { - raw += nextLine + "\n"; - src = src.substring(nextLine.length + 1); - endEarly = true; - } - if (!endEarly) { - const nextBulletRegex = new RegExp(`^ {0,${Math.min(3, indent - 1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`); - const hrRegex = new RegExp(`^ {0,${Math.min(3, indent - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`); - while (src) { - rawLine = src.split("\n", 1)[0]; - line = rawLine; - if (this.options.pedantic) { - line = line.replace(/^ {1,4}(?=( {4})*[^ ])/g, " "); - } - if (nextBulletRegex.test(line)) { - break; - } - if (hrRegex.test(src)) { - break; - } - if (line.search(/[^ ]/) >= indent || !line.trim()) { - itemContents += "\n" + line.slice(indent); - } else if (!blankLine) { - itemContents += "\n" + line; - } else { - break; - } - if (!blankLine && !line.trim()) { - blankLine = true; - } - raw += rawLine + "\n"; - src = src.substring(rawLine.length + 1); - } - } - if (!list.loose) { - if (endsWithBlankLine) { - list.loose = true; - } else if (/\n *\n *$/.test(raw)) { - endsWithBlankLine = true; - } - } - if (this.options.gfm) { - istask = /^\[[ xX]\] /.exec(itemContents); - if (istask) { - ischecked = istask[0] !== "[ ] "; - itemContents = itemContents.replace(/^\[[ xX]\] +/, ""); - } - } - list.items.push({ - type: "list_item", - raw, - task: !!istask, - checked: ischecked, - loose: false, - text: itemContents - }); - list.raw += raw; - } - list.items[list.items.length - 1].raw = raw.trimRight(); - list.items[list.items.length - 1].text = itemContents.trimRight(); - list.raw = list.raw.trimRight(); - const l2 = list.items.length; - for (i = 0; i < l2; i++) { - this.lexer.state.top = false; - list.items[i].tokens = this.lexer.blockTokens(list.items[i].text, []); - const spacers = list.items[i].tokens.filter((t) => t.type === "space"); - const hasMultipleLineBreaks = spacers.every((t) => { - const chars = t.raw.split(""); - let lineBreaks = 0; - for (const char of chars) { - if (char === "\n") { - lineBreaks += 1; - } - if (lineBreaks > 1) { - return true; - } - } - return false; - }); - if (!list.loose && spacers.length && hasMultipleLineBreaks) { - list.loose = true; - list.items[i].loose = true; - } - } - return list; - } - } - html(src) { - const cap = this.rules.block.html.exec(src); - if (cap) { - const token = { - type: "html", - raw: cap[0], - pre: !this.options.sanitizer && (cap[1] === "pre" || cap[1] === "script" || cap[1] === "style"), - text: cap[0] - }; - if (this.options.sanitize) { - token.type = "paragraph"; - token.text = this.options.sanitizer ? this.options.sanitizer(cap[0]) : escape2(cap[0]); - token.tokens = []; - this.lexer.inline(token.text, token.tokens); - } - return token; - } - } - def(src) { - const cap = this.rules.block.def.exec(src); - if (cap) { - if (cap[3]) - cap[3] = cap[3].substring(1, cap[3].length - 1); - const tag = cap[1].toLowerCase().replace(/\s+/g, " "); - return { - type: "def", - tag, - raw: cap[0], - href: cap[2], - title: cap[3] - }; - } - } - table(src) { - const cap = this.rules.block.table.exec(src); - if (cap) { - const item = { - type: "table", - header: splitCells(cap[1]).map((c) => { - return { text: c }; - }), - align: cap[2].replace(/^ *|\| *$/g, "").split(/ *\| */), - rows: cap[3] && cap[3].trim() ? cap[3].replace(/\n[ \t]*$/, "").split("\n") : [] - }; - if (item.header.length === item.align.length) { - item.raw = cap[0]; - let l2 = item.align.length; - let i, j, k, row; - for (i = 0; i < l2; i++) { - if (/^ *-+: *$/.test(item.align[i])) { - item.align[i] = "right"; - } else if (/^ *:-+: *$/.test(item.align[i])) { - item.align[i] = "center"; - } else if (/^ *:-+ *$/.test(item.align[i])) { - item.align[i] = "left"; - } else { - item.align[i] = null; - } - } - l2 = item.rows.length; - for (i = 0; i < l2; i++) { - item.rows[i] = splitCells(item.rows[i], item.header.length).map((c) => { - return { text: c }; - }); - } - l2 = item.header.length; - for (j = 0; j < l2; j++) { - item.header[j].tokens = []; - this.lexer.inline(item.header[j].text, item.header[j].tokens); - } - l2 = item.rows.length; - for (j = 0; j < l2; j++) { - row = item.rows[j]; - for (k = 0; k < row.length; k++) { - row[k].tokens = []; - this.lexer.inline(row[k].text, row[k].tokens); - } - } - return item; - } - } - } - lheading(src) { - const cap = this.rules.block.lheading.exec(src); - if (cap) { - const token = { - type: "heading", - raw: cap[0], - depth: cap[2].charAt(0) === "=" ? 1 : 2, - text: cap[1], - tokens: [] - }; - this.lexer.inline(token.text, token.tokens); - return token; - } - } - paragraph(src) { - const cap = this.rules.block.paragraph.exec(src); - if (cap) { - const token = { - type: "paragraph", - raw: cap[0], - text: cap[1].charAt(cap[1].length - 1) === "\n" ? cap[1].slice(0, -1) : cap[1], - tokens: [] - }; - this.lexer.inline(token.text, token.tokens); - return token; - } - } - text(src) { - const cap = this.rules.block.text.exec(src); - if (cap) { - const token = { - type: "text", - raw: cap[0], - text: cap[0], - tokens: [] - }; - this.lexer.inline(token.text, token.tokens); - return token; - } - } - escape(src) { - const cap = this.rules.inline.escape.exec(src); - if (cap) { - return { - type: "escape", - raw: cap[0], - text: escape2(cap[1]) - }; - } - } - tag(src) { - const cap = this.rules.inline.tag.exec(src); - if (cap) { - if (!this.lexer.state.inLink && /^/i.test(cap[0])) { - this.lexer.state.inLink = false; - } - if (!this.lexer.state.inRawBlock && /^<(pre|code|kbd|script)(\s|>)/i.test(cap[0])) { - this.lexer.state.inRawBlock = true; - } else if (this.lexer.state.inRawBlock && /^<\/(pre|code|kbd|script)(\s|>)/i.test(cap[0])) { - this.lexer.state.inRawBlock = false; - } - return { - type: this.options.sanitize ? "text" : "html", - raw: cap[0], - inLink: this.lexer.state.inLink, - inRawBlock: this.lexer.state.inRawBlock, - text: this.options.sanitize ? this.options.sanitizer ? this.options.sanitizer(cap[0]) : escape2(cap[0]) : cap[0] - }; - } - } - link(src) { - const cap = this.rules.inline.link.exec(src); - if (cap) { - const trimmedUrl = cap[2].trim(); - if (!this.options.pedantic && /^$/.test(trimmedUrl)) { - return; - } - const rtrimSlash = rtrim(trimmedUrl.slice(0, -1), "\\"); - if ((trimmedUrl.length - rtrimSlash.length) % 2 === 0) { - return; - } - } else { - const lastParenIndex = findClosingBracket(cap[2], "()"); - if (lastParenIndex > -1) { - const start4 = cap[0].indexOf("!") === 0 ? 5 : 4; - const linkLen = start4 + cap[1].length + lastParenIndex; - cap[2] = cap[2].substring(0, lastParenIndex); - cap[0] = cap[0].substring(0, linkLen).trim(); - cap[3] = ""; - } - } - let href = cap[2]; - let title = ""; - if (this.options.pedantic) { - const link = /^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(href); - if (link) { - href = link[1]; - title = link[3]; - } - } else { - title = cap[3] ? cap[3].slice(1, -1) : ""; - } - href = href.trim(); - if (/^$/.test(trimmedUrl)) { - href = href.slice(1); - } else { - href = href.slice(1, -1); - } - } - return outputLink(cap, { - href: href ? href.replace(this.rules.inline._escapes, "$1") : href, - title: title ? title.replace(this.rules.inline._escapes, "$1") : title - }, cap[0], this.lexer); - } - } - reflink(src, links) { - let cap; - if ((cap = this.rules.inline.reflink.exec(src)) || (cap = this.rules.inline.nolink.exec(src))) { - let link = (cap[2] || cap[1]).replace(/\s+/g, " "); - link = links[link.toLowerCase()]; - if (!link || !link.href) { - const text = cap[0].charAt(0); - return { - type: "text", - raw: text, - text - }; - } - return outputLink(cap, link, cap[0], this.lexer); - } - } - emStrong(src, maskedSrc, prevChar = "") { - let match2 = this.rules.inline.emStrong.lDelim.exec(src); - if (!match2) - return; - if (match2[3] && prevChar.match(/[\p{L}\p{N}]/u)) - return; - const nextChar = match2[1] || match2[2] || ""; - if (!nextChar || nextChar && (prevChar === "" || this.rules.inline.punctuation.exec(prevChar))) { - const lLength = match2[0].length - 1; - let rDelim, rLength, delimTotal = lLength, midDelimTotal = 0; - const endReg = match2[0][0] === "*" ? this.rules.inline.emStrong.rDelimAst : this.rules.inline.emStrong.rDelimUnd; - endReg.lastIndex = 0; - maskedSrc = maskedSrc.slice(-1 * src.length + lLength); - while ((match2 = endReg.exec(maskedSrc)) != null) { - rDelim = match2[1] || match2[2] || match2[3] || match2[4] || match2[5] || match2[6]; - if (!rDelim) - continue; - rLength = rDelim.length; - if (match2[3] || match2[4]) { - delimTotal += rLength; - continue; - } else if (match2[5] || match2[6]) { - if (lLength % 3 && !((lLength + rLength) % 3)) { - midDelimTotal += rLength; - continue; - } - } - delimTotal -= rLength; - if (delimTotal > 0) - continue; - rLength = Math.min(rLength, rLength + delimTotal + midDelimTotal); - if (Math.min(lLength, rLength) % 2) { - const text2 = src.slice(1, lLength + match2.index + rLength); - return { - type: "em", - raw: src.slice(0, lLength + match2.index + rLength + 1), - text: text2, - tokens: this.lexer.inlineTokens(text2, []) - }; - } - const text = src.slice(2, lLength + match2.index + rLength - 1); - return { - type: "strong", - raw: src.slice(0, lLength + match2.index + rLength + 1), - text, - tokens: this.lexer.inlineTokens(text, []) - }; - } - } - } - codespan(src) { - const cap = this.rules.inline.code.exec(src); - if (cap) { - let text = cap[2].replace(/\n/g, " "); - const hasNonSpaceChars = /[^ ]/.test(text); - const hasSpaceCharsOnBothEnds = /^ /.test(text) && / $/.test(text); - if (hasNonSpaceChars && hasSpaceCharsOnBothEnds) { - text = text.substring(1, text.length - 1); - } - text = escape2(text, true); - return { - type: "codespan", - raw: cap[0], - text - }; - } - } - br(src) { - const cap = this.rules.inline.br.exec(src); - if (cap) { - return { - type: "br", - raw: cap[0] - }; - } - } - del(src) { - const cap = this.rules.inline.del.exec(src); - if (cap) { - return { - type: "del", - raw: cap[0], - text: cap[2], - tokens: this.lexer.inlineTokens(cap[2], []) - }; - } - } - autolink(src, mangle2) { - const cap = this.rules.inline.autolink.exec(src); - if (cap) { - let text, href; - if (cap[2] === "@") { - text = escape2(this.options.mangle ? mangle2(cap[1]) : cap[1]); - href = "mailto:" + text; - } else { - text = escape2(cap[1]); - href = text; - } - return { - type: "link", - raw: cap[0], - text, - href, - tokens: [ - { - type: "text", - raw: text, - text - } - ] - }; - } - } - url(src, mangle2) { - let cap; - if (cap = this.rules.inline.url.exec(src)) { - let text, href; - if (cap[2] === "@") { - text = escape2(this.options.mangle ? mangle2(cap[0]) : cap[0]); - href = "mailto:" + text; - } else { - let prevCapZero; - do { - prevCapZero = cap[0]; - cap[0] = this.rules.inline._backpedal.exec(cap[0])[0]; - } while (prevCapZero !== cap[0]); - text = escape2(cap[0]); - if (cap[1] === "www.") { - href = "http://" + text; - } else { - href = text; - } - } - return { - type: "link", - raw: cap[0], - text, - href, - tokens: [ - { - type: "text", - raw: text, - text - } - ] - }; - } - } - inlineText(src, smartypants2) { - const cap = this.rules.inline.text.exec(src); - if (cap) { - let text; - if (this.lexer.state.inRawBlock) { - text = this.options.sanitize ? this.options.sanitizer ? this.options.sanitizer(cap[0]) : escape2(cap[0]) : cap[0]; - } else { - text = escape2(this.options.smartypants ? smartypants2(cap[0]) : cap[0]); - } - return { - type: "text", - raw: cap[0], - text - }; - } - } - }; - block = { - newline: /^(?: *(?:\n|$))+/, - code: /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, - fences: /^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/, - hr: /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, - heading: /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, - blockquote: /^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/, - list: /^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/, - html: "^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))", - def: /^ {0,3}\[(label)\]: *(?:\n *)?]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/, - table: noopTest, - lheading: /^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/, - // regex template, placeholders will be replaced according to different paragraph - // interruption rules of commonmark and the original markdown spec: - _paragraph: /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, - text: /^[^\n]+/ - }; - block._label = /(?!\s*\])(?:\\.|[^\[\]\\])+/; - block._title = /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/; - block.def = edit(block.def).replace("label", block._label).replace("title", block._title).getRegex(); - block.bullet = /(?:[*+-]|\d{1,9}[.)])/; - block.listItemStart = edit(/^( *)(bull) */).replace("bull", block.bullet).getRegex(); - block.list = edit(block.list).replace(/bull/g, block.bullet).replace("hr", "\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def", "\\n+(?=" + block.def.source + ")").getRegex(); - block._tag = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul"; - block._comment = /|$)/; - block.html = edit(block.html, "i").replace("comment", block._comment).replace("tag", block._tag).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(); - block.paragraph = edit(block._paragraph).replace("hr", block.hr).replace("heading", " {0,3}#{1,6} ").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", block._tag).getRegex(); - block.blockquote = edit(block.blockquote).replace("paragraph", block.paragraph).getRegex(); - block.normal = merge({}, block); - block.gfm = merge({}, block.normal, { - table: "^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)" - // Cells - }); - block.gfm.table = edit(block.gfm.table).replace("hr", block.hr).replace("heading", " {0,3}#{1,6} ").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", block._tag).getRegex(); - block.gfm.paragraph = edit(block._paragraph).replace("hr", block.hr).replace("heading", " {0,3}#{1,6} ").replace("|lheading", "").replace("table", block.gfm.table).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", block._tag).getRegex(); - block.pedantic = merge({}, block.normal, { - html: edit( - `^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))` - ).replace("comment", block._comment).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), - def: /^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, - heading: /^(#{1,6})(.*)(?:\n+|$)/, - fences: noopTest, - // fences not supported - paragraph: edit(block.normal._paragraph).replace("hr", block.hr).replace("heading", " *#{1,6} *[^\n]").replace("lheading", block.lheading).replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").getRegex() - }); - inline = { - escape: /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, - autolink: /^<(scheme:[^\s\x00-\x1f<>]*|email)>/, - url: noopTest, - tag: "^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^", - // CDATA section - link: /^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/, - reflink: /^!?\[(label)\]\[(ref)\]/, - nolink: /^!?\[(ref)\](?:\[\])?/, - reflinkSearch: "reflink|nolink(?!\\()", - emStrong: { - lDelim: /^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/, - // (1) and (2) can only be a Right Delimiter. (3) and (4) can only be Left. (5) and (6) can be either Left or Right. - // () Skip orphan inside strong () Consume to delim (1) #*** (2) a***#, a*** (3) #***a, ***a (4) ***# (5) #***# (6) a***a - rDelimAst: /^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/, - rDelimUnd: /^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/ - // ^- Not allowed for _ - }, - code: /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, - br: /^( {2,}|\\)\n(?!\s*$)/, - del: noopTest, - text: /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~"; - inline.punctuation = edit(inline.punctuation).replace(/punctuation/g, inline._punctuation).getRegex(); - inline.blockSkip = /\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g; - inline.escapedEmSt = /\\\*|\\_/g; - inline._comment = edit(block._comment).replace("(?:-->|$)", "-->").getRegex(); - inline.emStrong.lDelim = edit(inline.emStrong.lDelim).replace(/punct/g, inline._punctuation).getRegex(); - inline.emStrong.rDelimAst = edit(inline.emStrong.rDelimAst, "g").replace(/punct/g, inline._punctuation).getRegex(); - inline.emStrong.rDelimUnd = edit(inline.emStrong.rDelimUnd, "g").replace(/punct/g, inline._punctuation).getRegex(); - inline._escapes = /\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g; - inline._scheme = /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/; - inline._email = /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/; - inline.autolink = edit(inline.autolink).replace("scheme", inline._scheme).replace("email", inline._email).getRegex(); - inline._attribute = /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/; - inline.tag = edit(inline.tag).replace("comment", inline._comment).replace("attribute", inline._attribute).getRegex(); - inline._label = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/; - inline._href = /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/; - inline._title = /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/; - inline.link = edit(inline.link).replace("label", inline._label).replace("href", inline._href).replace("title", inline._title).getRegex(); - inline.reflink = edit(inline.reflink).replace("label", inline._label).replace("ref", block._label).getRegex(); - inline.nolink = edit(inline.nolink).replace("ref", block._label).getRegex(); - inline.reflinkSearch = edit(inline.reflinkSearch, "g").replace("reflink", inline.reflink).replace("nolink", inline.nolink).getRegex(); - inline.normal = merge({}, inline); - inline.pedantic = merge({}, inline.normal, { - strong: { - start: /^__|\*\*/, - middle: /^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/, - endAst: /\*\*(?!\*)/g, - endUnd: /__(?!_)/g - }, - em: { - start: /^_|\*/, - middle: /^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/, - endAst: /\*(?!\*)/g, - endUnd: /_(?!_)/g - }, - link: edit(/^!?\[(label)\]\((.*?)\)/).replace("label", inline._label).getRegex(), - reflink: edit(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", inline._label).getRegex() - }); - inline.gfm = merge({}, inline.normal, { - escape: edit(inline.escape).replace("])", "~|])").getRegex(), - _extended_email: /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/, - url: /^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, - _backpedal: /(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/, - del: /^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/, - text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\ { - return leading + " ".repeat(tabs.length); - }); - } - let token, lastToken, cutSrc, lastParagraphClipped; - while (src) { - if (this.options.extensions && this.options.extensions.block && this.options.extensions.block.some((extTokenizer) => { - if (token = extTokenizer.call({ lexer: this }, src, tokens)) { - src = src.substring(token.raw.length); - tokens.push(token); - return true; - } - return false; - })) { - continue; - } - if (token = this.tokenizer.space(src)) { - src = src.substring(token.raw.length); - if (token.raw.length === 1 && tokens.length > 0) { - tokens[tokens.length - 1].raw += "\n"; - } else { - tokens.push(token); - } - continue; - } - if (token = this.tokenizer.code(src)) { - src = src.substring(token.raw.length); - lastToken = tokens[tokens.length - 1]; - if (lastToken && (lastToken.type === "paragraph" || lastToken.type === "text")) { - lastToken.raw += "\n" + token.raw; - lastToken.text += "\n" + token.text; - this.inlineQueue[this.inlineQueue.length - 1].src = lastToken.text; - } else { - tokens.push(token); - } - continue; - } - if (token = this.tokenizer.fences(src)) { - src = src.substring(token.raw.length); - tokens.push(token); - continue; - } - if (token = this.tokenizer.heading(src)) { - src = src.substring(token.raw.length); - tokens.push(token); - continue; - } - if (token = this.tokenizer.hr(src)) { - src = src.substring(token.raw.length); - tokens.push(token); - continue; - } - if (token = this.tokenizer.blockquote(src)) { - src = src.substring(token.raw.length); - tokens.push(token); - continue; - } - if (token = this.tokenizer.list(src)) { - src = src.substring(token.raw.length); - tokens.push(token); - continue; - } - if (token = this.tokenizer.html(src)) { - src = src.substring(token.raw.length); - tokens.push(token); - continue; - } - if (token = this.tokenizer.def(src)) { - src = src.substring(token.raw.length); - lastToken = tokens[tokens.length - 1]; - if (lastToken && (lastToken.type === "paragraph" || lastToken.type === "text")) { - lastToken.raw += "\n" + token.raw; - lastToken.text += "\n" + token.raw; - this.inlineQueue[this.inlineQueue.length - 1].src = lastToken.text; - } else if (!this.tokens.links[token.tag]) { - this.tokens.links[token.tag] = { - href: token.href, - title: token.title - }; - } - continue; - } - if (token = this.tokenizer.table(src)) { - src = src.substring(token.raw.length); - tokens.push(token); - continue; - } - if (token = this.tokenizer.lheading(src)) { - src = src.substring(token.raw.length); - tokens.push(token); - continue; - } - cutSrc = src; - if (this.options.extensions && this.options.extensions.startBlock) { - let startIndex = Infinity; - const tempSrc = src.slice(1); - let tempStart; - this.options.extensions.startBlock.forEach(function(getStartIndex) { - tempStart = getStartIndex.call({ lexer: this }, tempSrc); - if (typeof tempStart === "number" && tempStart >= 0) { - startIndex = Math.min(startIndex, tempStart); - } - }); - if (startIndex < Infinity && startIndex >= 0) { - cutSrc = src.substring(0, startIndex + 1); - } - } - if (this.state.top && (token = this.tokenizer.paragraph(cutSrc))) { - lastToken = tokens[tokens.length - 1]; - if (lastParagraphClipped && lastToken.type === "paragraph") { - lastToken.raw += "\n" + token.raw; - lastToken.text += "\n" + token.text; - this.inlineQueue.pop(); - this.inlineQueue[this.inlineQueue.length - 1].src = lastToken.text; - } else { - tokens.push(token); - } - lastParagraphClipped = cutSrc.length !== src.length; - src = src.substring(token.raw.length); - continue; - } - if (token = this.tokenizer.text(src)) { - src = src.substring(token.raw.length); - lastToken = tokens[tokens.length - 1]; - if (lastToken && lastToken.type === "text") { - lastToken.raw += "\n" + token.raw; - lastToken.text += "\n" + token.text; - this.inlineQueue.pop(); - this.inlineQueue[this.inlineQueue.length - 1].src = lastToken.text; - } else { - tokens.push(token); - } - continue; - } - if (src) { - const errMsg = "Infinite loop on byte: " + src.charCodeAt(0); - if (this.options.silent) { - console.error(errMsg); - break; - } else { - throw new Error(errMsg); - } - } - } - this.state.top = true; - return tokens; - } - inline(src, tokens) { - this.inlineQueue.push({ src, tokens }); - } - /** - * Lexing/Compiling - */ - inlineTokens(src, tokens = []) { - let token, lastToken, cutSrc; - let maskedSrc = src; - let match2; - let keepPrevChar, prevChar; - if (this.tokens.links) { - const links = Object.keys(this.tokens.links); - if (links.length > 0) { - while ((match2 = this.tokenizer.rules.inline.reflinkSearch.exec(maskedSrc)) != null) { - if (links.includes(match2[0].slice(match2[0].lastIndexOf("[") + 1, -1))) { - maskedSrc = maskedSrc.slice(0, match2.index) + "[" + repeatString("a", match2[0].length - 2) + "]" + maskedSrc.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex); - } - } - } - } - while ((match2 = this.tokenizer.rules.inline.blockSkip.exec(maskedSrc)) != null) { - maskedSrc = maskedSrc.slice(0, match2.index) + "[" + repeatString("a", match2[0].length - 2) + "]" + maskedSrc.slice(this.tokenizer.rules.inline.blockSkip.lastIndex); - } - while ((match2 = this.tokenizer.rules.inline.escapedEmSt.exec(maskedSrc)) != null) { - maskedSrc = maskedSrc.slice(0, match2.index) + "++" + maskedSrc.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex); - } - while (src) { - if (!keepPrevChar) { - prevChar = ""; - } - keepPrevChar = false; - if (this.options.extensions && this.options.extensions.inline && this.options.extensions.inline.some((extTokenizer) => { - if (token = extTokenizer.call({ lexer: this }, src, tokens)) { - src = src.substring(token.raw.length); - tokens.push(token); - return true; - } - return false; - })) { - continue; - } - if (token = this.tokenizer.escape(src)) { - src = src.substring(token.raw.length); - tokens.push(token); - continue; - } - if (token = this.tokenizer.tag(src)) { - src = src.substring(token.raw.length); - lastToken = tokens[tokens.length - 1]; - if (lastToken && token.type === "text" && lastToken.type === "text") { - lastToken.raw += token.raw; - lastToken.text += token.text; - } else { - tokens.push(token); - } - continue; - } - if (token = this.tokenizer.link(src)) { - src = src.substring(token.raw.length); - tokens.push(token); - continue; - } - if (token = this.tokenizer.reflink(src, this.tokens.links)) { - src = src.substring(token.raw.length); - lastToken = tokens[tokens.length - 1]; - if (lastToken && token.type === "text" && lastToken.type === "text") { - lastToken.raw += token.raw; - lastToken.text += token.text; - } else { - tokens.push(token); - } - continue; - } - if (token = this.tokenizer.emStrong(src, maskedSrc, prevChar)) { - src = src.substring(token.raw.length); - tokens.push(token); - continue; - } - if (token = this.tokenizer.codespan(src)) { - src = src.substring(token.raw.length); - tokens.push(token); - continue; - } - if (token = this.tokenizer.br(src)) { - src = src.substring(token.raw.length); - tokens.push(token); - continue; - } - if (token = this.tokenizer.del(src)) { - src = src.substring(token.raw.length); - tokens.push(token); - continue; - } - if (token = this.tokenizer.autolink(src, mangle)) { - src = src.substring(token.raw.length); - tokens.push(token); - continue; - } - if (!this.state.inLink && (token = this.tokenizer.url(src, mangle))) { - src = src.substring(token.raw.length); - tokens.push(token); - continue; - } - cutSrc = src; - if (this.options.extensions && this.options.extensions.startInline) { - let startIndex = Infinity; - const tempSrc = src.slice(1); - let tempStart; - this.options.extensions.startInline.forEach(function(getStartIndex) { - tempStart = getStartIndex.call({ lexer: this }, tempSrc); - if (typeof tempStart === "number" && tempStart >= 0) { - startIndex = Math.min(startIndex, tempStart); - } - }); - if (startIndex < Infinity && startIndex >= 0) { - cutSrc = src.substring(0, startIndex + 1); - } - } - if (token = this.tokenizer.inlineText(cutSrc, smartypants)) { - src = src.substring(token.raw.length); - if (token.raw.slice(-1) !== "_") { - prevChar = token.raw.slice(-1); - } - keepPrevChar = true; - lastToken = tokens[tokens.length - 1]; - if (lastToken && lastToken.type === "text") { - lastToken.raw += token.raw; - lastToken.text += token.text; - } else { - tokens.push(token); - } - continue; - } - if (src) { - const errMsg = "Infinite loop on byte: " + src.charCodeAt(0); - if (this.options.silent) { - console.error(errMsg); - break; - } else { - throw new Error(errMsg); - } - } - } - return tokens; - } - }; - Renderer = class { - constructor(options2) { - this.options = options2 || defaults; - } - code(code, infostring, escaped) { - const lang = (infostring || "").match(/\S*/)[0]; - if (this.options.highlight) { - const out2 = this.options.highlight(code, lang); - if (out2 != null && out2 !== code) { - escaped = true; - code = out2; - } - } - code = code.replace(/\n$/, "") + "\n"; - if (!lang) { - return "
" + (escaped ? code : escape2(code, true)) + "
\n"; - } - return '
' + (escaped ? code : escape2(code, true)) + "
\n"; - } - /** - * @param {string} quote - */ - blockquote(quote) { - return `
-${quote}
-`; - } - html(html) { - return html; - } - /** - * @param {string} text - * @param {string} level - * @param {string} raw - * @param {any} slugger - */ - heading(text, level, raw, slugger) { - if (this.options.headerIds) { - const id = this.options.headerPrefix + slugger.slug(raw); - return `${text} -`; - } - return `${text} -`; - } - hr() { - return this.options.xhtml ? "
\n" : "
\n"; - } - list(body2, ordered, start4) { - const type = ordered ? "ol" : "ul", startatt = ordered && start4 !== 1 ? ' start="' + start4 + '"' : ""; - return "<" + type + startatt + ">\n" + body2 + "\n"; - } - /** - * @param {string} text - */ - listitem(text) { - return `
  • ${text}
  • -`; - } - checkbox(checked) { - return " "; - } - /** - * @param {string} text - */ - paragraph(text) { - return `

    ${text}

    -`; - } - /** - * @param {string} header - * @param {string} body - */ - table(header, body2) { - if (body2) - body2 = `${body2}`; - return "\n\n" + header + "\n" + body2 + "
    \n"; - } - /** - * @param {string} content - */ - tablerow(content) { - return ` -${content} -`; - } - tablecell(content, flags2) { - const type = flags2.header ? "th" : "td"; - const tag = flags2.align ? `<${type} align="${flags2.align}">` : `<${type}>`; - return tag + content + ` -`; - } - /** - * span level renderer - * @param {string} text - */ - strong(text) { - return `${text}`; - } - /** - * @param {string} text - */ - em(text) { - return `${text}`; - } - /** - * @param {string} text - */ - codespan(text) { - return `${text}`; - } - br() { - return this.options.xhtml ? "
    " : "
    "; - } - /** - * @param {string} text - */ - del(text) { - return `${text}`; - } - /** - * @param {string} href - * @param {string} title - * @param {string} text - */ - link(href, title, text) { - href = cleanUrl(this.options.sanitize, this.options.baseUrl, href); - if (href === null) { - return text; - } - let out2 = '
    "; - return out2; - } - /** - * @param {string} href - * @param {string} title - * @param {string} text - */ - image(href, title, text) { - href = cleanUrl(this.options.sanitize, this.options.baseUrl, href); - if (href === null) { - return text; - } - let out2 = `${text}" : ">"; - return out2; - } - text(text) { - return text; - } - }; - TextRenderer = class { - // no need for block level renderers - strong(text) { - return text; - } - em(text) { - return text; - } - codespan(text) { - return text; - } - del(text) { - return text; - } - html(text) { - return text; - } - text(text) { - return text; - } - link(href, title, text) { - return "" + text; - } - image(href, title, text) { - return "" + text; - } - br() { - return ""; - } - }; - Slugger = class { - constructor() { - this.seen = {}; - } - /** - * @param {string} value - */ - serialize(value) { - return value.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig, "").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g, "").replace(/\s/g, "-"); - } - /** - * Finds the next safe (unique) slug to use - * @param {string} originalSlug - * @param {boolean} isDryRun - */ - getNextSafeSlug(originalSlug, isDryRun) { - let slug = originalSlug; - let occurenceAccumulator = 0; - if (this.seen.hasOwnProperty(slug)) { - occurenceAccumulator = this.seen[originalSlug]; - do { - occurenceAccumulator++; - slug = originalSlug + "-" + occurenceAccumulator; - } while (this.seen.hasOwnProperty(slug)); - } - if (!isDryRun) { - this.seen[originalSlug] = occurenceAccumulator; - this.seen[slug] = 0; - } - return slug; - } - /** - * Convert string to unique id - * @param {object} [options] - * @param {boolean} [options.dryrun] Generates the next unique slug without - * updating the internal accumulator. - */ - slug(value, options2 = {}) { - const slug = this.serialize(value); - return this.getNextSafeSlug(slug, options2.dryrun); - } - }; - Parser2 = class _Parser2 { - constructor(options2) { - this.options = options2 || defaults; - this.options.renderer = this.options.renderer || new Renderer(); - this.renderer = this.options.renderer; - this.renderer.options = this.options; - this.textRenderer = new TextRenderer(); - this.slugger = new Slugger(); - } - /** - * Static Parse Method - */ - static parse(tokens, options2) { - const parser2 = new _Parser2(options2); - return parser2.parse(tokens); - } - /** - * Static Parse Inline Method - */ - static parseInline(tokens, options2) { - const parser2 = new _Parser2(options2); - return parser2.parseInline(tokens); - } - /** - * Parse Loop - */ - parse(tokens, top = true) { - let out2 = "", i, j, k, l2, l3, row, cell, header, body2, token, ordered, start4, loose, itemBody, item, checked, task, checkbox, ret2; - const l4 = tokens.length; - for (i = 0; i < l4; i++) { - token = tokens[i]; - if (this.options.extensions && this.options.extensions.renderers && this.options.extensions.renderers[token.type]) { - ret2 = this.options.extensions.renderers[token.type].call({ parser: this }, token); - if (ret2 !== false || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "paragraph", "text"].includes(token.type)) { - out2 += ret2 || ""; - continue; - } - } - switch (token.type) { - case "space": { - continue; - } - case "hr": { - out2 += this.renderer.hr(); - continue; - } - case "heading": { - out2 += this.renderer.heading( - this.parseInline(token.tokens), - token.depth, - unescape2(this.parseInline(token.tokens, this.textRenderer)), - this.slugger - ); - continue; - } - case "code": { - out2 += this.renderer.code( - token.text, - token.lang, - token.escaped - ); - continue; - } - case "table": { - header = ""; - cell = ""; - l2 = token.header.length; - for (j = 0; j < l2; j++) { - cell += this.renderer.tablecell( - this.parseInline(token.header[j].tokens), - { header: true, align: token.align[j] } - ); - } - header += this.renderer.tablerow(cell); - body2 = ""; - l2 = token.rows.length; - for (j = 0; j < l2; j++) { - row = token.rows[j]; - cell = ""; - l3 = row.length; - for (k = 0; k < l3; k++) { - cell += this.renderer.tablecell( - this.parseInline(row[k].tokens), - { header: false, align: token.align[k] } - ); - } - body2 += this.renderer.tablerow(cell); - } - out2 += this.renderer.table(header, body2); - continue; - } - case "blockquote": { - body2 = this.parse(token.tokens); - out2 += this.renderer.blockquote(body2); - continue; - } - case "list": { - ordered = token.ordered; - start4 = token.start; - loose = token.loose; - l2 = token.items.length; - body2 = ""; - for (j = 0; j < l2; j++) { - item = token.items[j]; - checked = item.checked; - task = item.task; - itemBody = ""; - if (item.task) { - checkbox = this.renderer.checkbox(checked); - if (loose) { - if (item.tokens.length > 0 && item.tokens[0].type === "paragraph") { - item.tokens[0].text = checkbox + " " + item.tokens[0].text; - if (item.tokens[0].tokens && item.tokens[0].tokens.length > 0 && item.tokens[0].tokens[0].type === "text") { - item.tokens[0].tokens[0].text = checkbox + " " + item.tokens[0].tokens[0].text; - } - } else { - item.tokens.unshift({ - type: "text", - text: checkbox - }); - } - } else { - itemBody += checkbox; - } - } - itemBody += this.parse(item.tokens, loose); - body2 += this.renderer.listitem(itemBody, task, checked); - } - out2 += this.renderer.list(body2, ordered, start4); - continue; - } - case "html": { - out2 += this.renderer.html(token.text); - continue; - } - case "paragraph": { - out2 += this.renderer.paragraph(this.parseInline(token.tokens)); - continue; - } - case "text": { - body2 = token.tokens ? this.parseInline(token.tokens) : token.text; - while (i + 1 < l4 && tokens[i + 1].type === "text") { - token = tokens[++i]; - body2 += "\n" + (token.tokens ? this.parseInline(token.tokens) : token.text); - } - out2 += top ? this.renderer.paragraph(body2) : body2; - continue; - } - default: { - const errMsg = 'Token with "' + token.type + '" type was not found.'; - if (this.options.silent) { - console.error(errMsg); - return; - } else { - throw new Error(errMsg); - } - } - } - } - return out2; - } - /** - * Parse Inline Tokens - */ - parseInline(tokens, renderer) { - renderer = renderer || this.renderer; - let out2 = "", i, token, ret2; - const l2 = tokens.length; - for (i = 0; i < l2; i++) { - token = tokens[i]; - if (this.options.extensions && this.options.extensions.renderers && this.options.extensions.renderers[token.type]) { - ret2 = this.options.extensions.renderers[token.type].call({ parser: this }, token); - if (ret2 !== false || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(token.type)) { - out2 += ret2 || ""; - continue; - } - } - switch (token.type) { - case "escape": { - out2 += renderer.text(token.text); - break; - } - case "html": { - out2 += renderer.html(token.text); - break; - } - case "link": { - out2 += renderer.link(token.href, token.title, this.parseInline(token.tokens, renderer)); - break; - } - case "image": { - out2 += renderer.image(token.href, token.title, token.text); - break; - } - case "strong": { - out2 += renderer.strong(this.parseInline(token.tokens, renderer)); - break; - } - case "em": { - out2 += renderer.em(this.parseInline(token.tokens, renderer)); - break; - } - case "codespan": { - out2 += renderer.codespan(token.text); - break; - } - case "br": { - out2 += renderer.br(); - break; - } - case "del": { - out2 += renderer.del(this.parseInline(token.tokens, renderer)); - break; - } - case "text": { - out2 += renderer.text(token.text); - break; - } - default: { - const errMsg = 'Token with "' + token.type + '" type was not found.'; - if (this.options.silent) { - console.error(errMsg); - return; - } else { - throw new Error(errMsg); - } - } - } - } - return out2; - } - }; - marked.options = marked.setOptions = function(opt) { - merge(marked.defaults, opt); - changeDefaults(marked.defaults); - return marked; - }; - marked.getDefaults = getDefaults; - marked.defaults = defaults; - marked.use = function(...args3) { - const opts = merge({}, ...args3); - const extensions2 = marked.defaults.extensions || { renderers: {}, childTokens: {} }; - let hasExtensions; - args3.forEach((pack) => { - if (pack.extensions) { - hasExtensions = true; - pack.extensions.forEach((ext2) => { - if (!ext2.name) { - throw new Error("extension name required"); - } - if (ext2.renderer) { - const prevRenderer = extensions2.renderers ? extensions2.renderers[ext2.name] : null; - if (prevRenderer) { - extensions2.renderers[ext2.name] = function(...args4) { - let ret2 = ext2.renderer.apply(this, args4); - if (ret2 === false) { - ret2 = prevRenderer.apply(this, args4); - } - return ret2; - }; - } else { - extensions2.renderers[ext2.name] = ext2.renderer; - } - } - if (ext2.tokenizer) { - if (!ext2.level || ext2.level !== "block" && ext2.level !== "inline") { - throw new Error("extension level must be 'block' or 'inline'"); - } - if (extensions2[ext2.level]) { - extensions2[ext2.level].unshift(ext2.tokenizer); - } else { - extensions2[ext2.level] = [ext2.tokenizer]; - } - if (ext2.start) { - if (ext2.level === "block") { - if (extensions2.startBlock) { - extensions2.startBlock.push(ext2.start); - } else { - extensions2.startBlock = [ext2.start]; - } - } else if (ext2.level === "inline") { - if (extensions2.startInline) { - extensions2.startInline.push(ext2.start); - } else { - extensions2.startInline = [ext2.start]; - } - } - } - } - if (ext2.childTokens) { - extensions2.childTokens[ext2.name] = ext2.childTokens; - } - }); - } - if (pack.renderer) { - const renderer = marked.defaults.renderer || new Renderer(); - for (const prop in pack.renderer) { - const prevRenderer = renderer[prop]; - renderer[prop] = (...args4) => { - let ret2 = pack.renderer[prop].apply(renderer, args4); - if (ret2 === false) { - ret2 = prevRenderer.apply(renderer, args4); - } - return ret2; - }; - } - opts.renderer = renderer; - } - if (pack.tokenizer) { - const tokenizer = marked.defaults.tokenizer || new Tokenizer(); - for (const prop in pack.tokenizer) { - const prevTokenizer = tokenizer[prop]; - tokenizer[prop] = (...args4) => { - let ret2 = pack.tokenizer[prop].apply(tokenizer, args4); - if (ret2 === false) { - ret2 = prevTokenizer.apply(tokenizer, args4); - } - return ret2; - }; - } - opts.tokenizer = tokenizer; - } - if (pack.walkTokens) { - const walkTokens2 = marked.defaults.walkTokens; - opts.walkTokens = function(token) { - pack.walkTokens.call(this, token); - if (walkTokens2) { - walkTokens2.call(this, token); - } - }; - } - if (hasExtensions) { - opts.extensions = extensions2; - } - marked.setOptions(opts); - }); - }; - marked.walkTokens = function(tokens, callback) { - for (const token of tokens) { - callback.call(marked, token); - switch (token.type) { - case "table": { - for (const cell of token.header) { - marked.walkTokens(cell.tokens, callback); - } - for (const row of token.rows) { - for (const cell of row) { - marked.walkTokens(cell.tokens, callback); - } - } - break; - } - case "list": { - marked.walkTokens(token.items, callback); - break; - } - default: { - if (marked.defaults.extensions && marked.defaults.extensions.childTokens && marked.defaults.extensions.childTokens[token.type]) { - marked.defaults.extensions.childTokens[token.type].forEach(function(childTokens) { - marked.walkTokens(token[childTokens], callback); - }); - } else if (token.tokens) { - marked.walkTokens(token.tokens, callback); - } - } - } - } - }; - marked.parseInline = function(src, opt) { - if (typeof src === "undefined" || src === null) { - throw new Error("marked.parseInline(): input parameter is undefined or null"); - } - if (typeof src !== "string") { - throw new Error("marked.parseInline(): input parameter is of type " + Object.prototype.toString.call(src) + ", string expected"); - } - opt = merge({}, marked.defaults, opt || {}); - checkSanitizeDeprecation(opt); - try { - const tokens = Lexer.lexInline(src, opt); - if (opt.walkTokens) { - marked.walkTokens(tokens, opt.walkTokens); - } - return Parser2.parseInline(tokens, opt); - } catch (e) { - e.message += "\nPlease report this to https://github.com/markedjs/marked."; - if (opt.silent) { - return "

    An error occurred:

    " + escape2(e.message + "", true) + "
    "; - } - throw e; - } - }; - marked.Parser = Parser2; - marked.parser = Parser2.parse; - marked.Renderer = Renderer; - marked.TextRenderer = TextRenderer; - marked.Lexer = Lexer; - marked.lexer = Lexer.lex; - marked.Tokenizer = Tokenizer; - marked.Slugger = Slugger; - marked.parse = marked; - options = marked.options; - setOptions = marked.setOptions; - use = marked.use; - walkTokens = marked.walkTokens; - parseInline = marked.parseInline; - parser = Parser2.parse; - lexer = Lexer.lex; - } -}); - -// ../lib/shared/src/common/markdown/markdown.ts -function escapeHTML(html) { - return html.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll('"', """).replaceAll("'", "'"); -} -var import_dompurify, import_core, highlightCodeSafe, renderMarkdown; -var init_markdown = __esm({ - "../lib/shared/src/common/markdown/markdown.ts"() { - "use strict"; - import_dompurify = __toESM(require_purify_cjs()); - import_core = __toESM(require_core2()); - init_marked_esm(); - highlightCodeSafe = (code, language) => { - try { - if (language === "plaintext" || language === "text") { - return escapeHTML(code); - } - if (language === "sourcegraph") { - return code; - } - if (language) { - return (0, import_core.highlight)(code, { language, ignoreIllegals: true }).value; - } - return (0, import_core.highlightAuto)(code).value; - } catch (error) { - console.error("Error syntax-highlighting hover markdown code block", error); - return escapeHTML(code); - } - }; - renderMarkdown = (markdown2, options2 = {}) => { - const tokenizer = new marked.Tokenizer(); - if (options2.disableAutolinks) { - tokenizer.url = () => void 0; - } - const rendered = marked(markdown2, { - gfm: true, - breaks: options2.breaks, - highlight: (code, language) => highlightCodeSafe(code, language), - renderer: options2.renderer, - headerPrefix: options2.headerPrefix ?? "", - tokenizer - }); - const dompurifyConfig = typeof options2.dompurifyConfig === "object" ? options2.dompurifyConfig : options2.plainText ? { - ALLOWED_TAGS: [], - ALLOWED_ATTR: [], - KEEP_CONTENT: true - } : { - USE_PROFILES: { html: true }, - FORBID_TAGS: ["style", "form", "input", "button"], - FORBID_ATTR: ["rel", "style", "method", "action"] - }; - if (options2.addTargetBlankToAllLinks) { - import_dompurify.default.addHook("afterSanitizeAttributes", (node) => { - if (node.tagName.toLowerCase() === "a" && node.getAttribute("href")) { - node.setAttribute("target", "_blank"); - node.setAttribute("rel", "noopener"); - } - }); - } - if (options2.wrapLinksWithCodyCommand) { - import_dompurify.default.addHook("afterSanitizeAttributes", (node) => { - const link = node.getAttribute("href"); - if (node.tagName.toLowerCase() === "a" && link && !link.startsWith("command:")) { - const encodedLink = encodeURIComponent(JSON.stringify(link)); - node.setAttribute("href", `command:_cody.vscode.open?${encodedLink}`); - } - }); - } - const result = options2.noDomPurify ? rendered : import_dompurify.default.sanitize(rendered, dompurifyConfig).trim(); - if (options2.addTargetBlankToAllLinks || options2.wrapLinksWithCodyCommand) { - import_dompurify.default.removeHook("afterSanitizeAttributes"); - } - return result; - }; - } -}); - -// ../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/bash.js -var require_bash = __commonJS({ - "../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/bash.js"(exports2, module2) { - function source(re) { - if (!re) - return null; - if (typeof re === "string") - return re; - return re.source; - } - function concat(...args3) { - const joined = args3.map((x) => source(x)).join(""); - return joined; - } - function bash2(hljs) { - const VAR = {}; - const BRACED_VAR = { - begin: /\$\{/, - end: /\}/, - contains: [ - "self", - { - begin: /:-/, - contains: [VAR] - } - // default values - ] - }; - Object.assign(VAR, { - className: "variable", - variants: [ - { begin: concat( - /\$[\w\d#@][\w\d_]*/, - // negative look-ahead tries to avoid matching patterns that are not - // Perl at all like $ident$, @ident@, etc. - `(?![\\w\\d])(?![$])` - ) }, - BRACED_VAR - ] - }); - const SUBST = { - className: "subst", - begin: /\$\(/, - end: /\)/, - contains: [hljs.BACKSLASH_ESCAPE] - }; - const HERE_DOC = { - begin: /<<-?\s*(?=\w+)/, - starts: { - contains: [ - hljs.END_SAME_AS_BEGIN({ - begin: /(\w+)/, - end: /(\w+)/, - className: "string" - }) - ] - } - }; - const QUOTE_STRING = { - className: "string", - begin: /"/, - end: /"/, - contains: [ - hljs.BACKSLASH_ESCAPE, - VAR, - SUBST - ] - }; - SUBST.contains.push(QUOTE_STRING); - const ESCAPED_QUOTE = { - className: "", - begin: /\\"/ - }; - const APOS_STRING = { - className: "string", - begin: /'/, - end: /'/ - }; - const ARITHMETIC = { - begin: /\$\(\(/, - end: /\)\)/, - contains: [ - { begin: /\d+#[0-9a-f]+/, className: "number" }, - hljs.NUMBER_MODE, - VAR - ] - }; - const SH_LIKE_SHELLS = [ - "fish", - "bash", - "zsh", - "sh", - "csh", - "ksh", - "tcsh", - "dash", - "scsh" - ]; - const KNOWN_SHEBANG = hljs.SHEBANG({ - binary: `(${SH_LIKE_SHELLS.join("|")})`, - relevance: 10 - }); - const FUNCTION = { - className: "function", - begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/, - returnBegin: true, - contains: [hljs.inherit(hljs.TITLE_MODE, { begin: /\w[\w\d_]*/ })], - relevance: 0 - }; - return { - name: "Bash", - aliases: ["sh", "zsh"], - keywords: { - $pattern: /\b[a-z._-]+\b/, - keyword: "if then else elif fi for while in do done case esac function", - literal: "true false", - built_in: ( - // Shell built-ins - // http://www.gnu.org/software/bash/manual/html_node/Shell-Builtin-Commands.html - "break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp" - ) - }, - contains: [ - KNOWN_SHEBANG, - // to catch known shells and boost relevancy - hljs.SHEBANG(), - // to catch unknown shells but still highlight the shebang - FUNCTION, - ARITHMETIC, - hljs.HASH_COMMENT_MODE, - HERE_DOC, - QUOTE_STRING, - ESCAPED_QUOTE, - APOS_STRING, - VAR - ] - }; - } - module2.exports = bash2; - } -}); - -// ../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/c-like.js -var require_c_like = __commonJS({ - "../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/c-like.js"(exports2, module2) { - function source(re) { - if (!re) - return null; - if (typeof re === "string") - return re; - return re.source; - } - function lookahead(re) { - return concat("(?=", re, ")"); - } - function optional(re) { - return concat("(", re, ")?"); - } - function concat(...args3) { - const joined = args3.map((x) => source(x)).join(""); - return joined; - } - function cPlusPlus(hljs) { - const C_LINE_COMMENT_MODE = hljs.COMMENT("//", "$", { - contains: [ - { - begin: /\\\n/ - } - ] - }); - const DECLTYPE_AUTO_RE = "decltype\\(auto\\)"; - const NAMESPACE_RE = "[a-zA-Z_]\\w*::"; - const TEMPLATE_ARGUMENT_RE = "<[^<>]+>"; - const FUNCTION_TYPE_RE = "(" + DECLTYPE_AUTO_RE + "|" + optional(NAMESPACE_RE) + "[a-zA-Z_]\\w*" + optional(TEMPLATE_ARGUMENT_RE) + ")"; - const CPP_PRIMITIVE_TYPES = { - className: "keyword", - begin: "\\b[a-z\\d_]*_t\\b" - }; - const CHARACTER_ESCAPES = "\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"; - const STRINGS = { - className: "string", - variants: [ - { - begin: '(u8?|U|L)?"', - end: '"', - illegal: "\\n", - contains: [hljs.BACKSLASH_ESCAPE] - }, - { - begin: "(u8?|U|L)?'(" + CHARACTER_ESCAPES + "|.)", - end: "'", - illegal: "." - }, - hljs.END_SAME_AS_BEGIN({ - begin: /(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/, - end: /\)([^()\\ ]{0,16})"/ - }) - ] - }; - const NUMBERS = { - className: "number", - variants: [ - { - begin: "\\b(0b[01']+)" - }, - { - begin: "(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)" - }, - { - begin: "(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)" - } - ], - relevance: 0 - }; - const PREPROCESSOR = { - className: "meta", - begin: /#\s*[a-z]+\b/, - end: /$/, - keywords: { - "meta-keyword": "if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include" - }, - contains: [ - { - begin: /\\\n/, - relevance: 0 - }, - hljs.inherit(STRINGS, { - className: "meta-string" - }), - { - className: "meta-string", - begin: /<.*?>/ - }, - C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE - ] - }; - const TITLE_MODE = { - className: "title", - begin: optional(NAMESPACE_RE) + hljs.IDENT_RE, - relevance: 0 - }; - const FUNCTION_TITLE = optional(NAMESPACE_RE) + hljs.IDENT_RE + "\\s*\\("; - const COMMON_CPP_HINTS = [ - "asin", - "atan2", - "atan", - "calloc", - "ceil", - "cosh", - "cos", - "exit", - "exp", - "fabs", - "floor", - "fmod", - "fprintf", - "fputs", - "free", - "frexp", - "auto_ptr", - "deque", - "list", - "queue", - "stack", - "vector", - "map", - "set", - "pair", - "bitset", - "multiset", - "multimap", - "unordered_set", - "fscanf", - "future", - "isalnum", - "isalpha", - "iscntrl", - "isdigit", - "isgraph", - "islower", - "isprint", - "ispunct", - "isspace", - "isupper", - "isxdigit", - "tolower", - "toupper", - "labs", - "ldexp", - "log10", - "log", - "malloc", - "realloc", - "memchr", - "memcmp", - "memcpy", - "memset", - "modf", - "pow", - "printf", - "putchar", - "puts", - "scanf", - "sinh", - "sin", - "snprintf", - "sprintf", - "sqrt", - "sscanf", - "strcat", - "strchr", - "strcmp", - "strcpy", - "strcspn", - "strlen", - "strncat", - "strncmp", - "strncpy", - "strpbrk", - "strrchr", - "strspn", - "strstr", - "tanh", - "tan", - "unordered_map", - "unordered_multiset", - "unordered_multimap", - "priority_queue", - "make_pair", - "array", - "shared_ptr", - "abort", - "terminate", - "abs", - "acos", - "vfprintf", - "vprintf", - "vsprintf", - "endl", - "initializer_list", - "unique_ptr", - "complex", - "imaginary", - "std", - "string", - "wstring", - "cin", - "cout", - "cerr", - "clog", - "stdin", - "stdout", - "stderr", - "stringstream", - "istringstream", - "ostringstream" - ]; - const CPP_KEYWORDS = { - keyword: "int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq", - built_in: "_Bool _Complex _Imaginary", - _relevance_hints: COMMON_CPP_HINTS, - literal: "true false nullptr NULL" - }; - const FUNCTION_DISPATCH = { - className: "function.dispatch", - relevance: 0, - keywords: CPP_KEYWORDS, - begin: concat( - /\b/, - /(?!decltype)/, - /(?!if)/, - /(?!for)/, - /(?!while)/, - hljs.IDENT_RE, - lookahead(/\s*\(/) - ) - }; - const EXPRESSION_CONTAINS = [ - FUNCTION_DISPATCH, - PREPROCESSOR, - CPP_PRIMITIVE_TYPES, - C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - NUMBERS, - STRINGS - ]; - const EXPRESSION_CONTEXT = { - // This mode covers expression context where we can't expect a function - // definition and shouldn't highlight anything that looks like one: - // `return some()`, `else if()`, `(x*sum(1, 2))` - variants: [ - { - begin: /=/, - end: /;/ - }, - { - begin: /\(/, - end: /\)/ - }, - { - beginKeywords: "new throw return else", - end: /;/ - } - ], - keywords: CPP_KEYWORDS, - contains: EXPRESSION_CONTAINS.concat([ - { - begin: /\(/, - end: /\)/, - keywords: CPP_KEYWORDS, - contains: EXPRESSION_CONTAINS.concat(["self"]), - relevance: 0 - } - ]), - relevance: 0 - }; - const FUNCTION_DECLARATION = { - className: "function", - begin: "(" + FUNCTION_TYPE_RE + "[\\*&\\s]+)+" + FUNCTION_TITLE, - returnBegin: true, - end: /[{;=]/, - excludeEnd: true, - keywords: CPP_KEYWORDS, - illegal: /[^\w\s\*&:<>.]/, - contains: [ - { - // to prevent it from being confused as the function title - begin: DECLTYPE_AUTO_RE, - keywords: CPP_KEYWORDS, - relevance: 0 - }, - { - begin: FUNCTION_TITLE, - returnBegin: true, - contains: [TITLE_MODE], - relevance: 0 - }, - // needed because we do not have look-behind on the below rule - // to prevent it from grabbing the final : in a :: pair - { - begin: /::/, - relevance: 0 - }, - // initializers - { - begin: /:/, - endsWithParent: true, - contains: [ - STRINGS, - NUMBERS - ] - }, - { - className: "params", - begin: /\(/, - end: /\)/, - keywords: CPP_KEYWORDS, - relevance: 0, - contains: [ - C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - STRINGS, - NUMBERS, - CPP_PRIMITIVE_TYPES, - // Count matching parentheses. - { - begin: /\(/, - end: /\)/, - keywords: CPP_KEYWORDS, - relevance: 0, - contains: [ - "self", - C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - STRINGS, - NUMBERS, - CPP_PRIMITIVE_TYPES - ] - } - ] - }, - CPP_PRIMITIVE_TYPES, - C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - PREPROCESSOR - ] - }; - return { - name: "C++", - aliases: [ - "cc", - "c++", - "h++", - "hpp", - "hh", - "hxx", - "cxx" - ], - keywords: CPP_KEYWORDS, - illegal: " rooms (9);` - begin: "\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<", - end: ">", - keywords: CPP_KEYWORDS, - contains: [ - "self", - CPP_PRIMITIVE_TYPES - ] - }, - { - begin: hljs.IDENT_RE + "::", - keywords: CPP_KEYWORDS - }, - { - className: "class", - beginKeywords: "enum class struct union", - end: /[{;:<>=]/, - contains: [ - { - beginKeywords: "final class struct" - }, - hljs.TITLE_MODE - ] - } - ] - ), - exports: { - preprocessor: PREPROCESSOR, - strings: STRINGS, - keywords: CPP_KEYWORDS - } - }; - } - function cLike2(hljs) { - const lang = cPlusPlus(hljs); - const C_ALIASES = [ - "c", - "h" - ]; - const CPP_ALIASES = [ - "cc", - "c++", - "h++", - "hpp", - "hh", - "hxx", - "cxx" - ]; - lang.disableAutodetect = true; - lang.aliases = []; - if (!hljs.getLanguage("c")) - lang.aliases.push(...C_ALIASES); - if (!hljs.getLanguage("cpp")) - lang.aliases.push(...CPP_ALIASES); - return lang; - } - module2.exports = cLike2; - } -}); - -// ../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/clojure.js -var require_clojure = __commonJS({ - "../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/clojure.js"(exports2, module2) { - function clojure2(hljs) { - const SYMBOLSTART = "a-zA-Z_\\-!.?+*=<>&#'"; - const SYMBOL_RE = "[" + SYMBOLSTART + "][" + SYMBOLSTART + "0-9/;:]*"; - const globals = "def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord"; - const keywords = { - $pattern: SYMBOL_RE, - "builtin-name": ( - // Clojure keywords - globals + " cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize" - ) - }; - const SIMPLE_NUMBER_RE = "[-+]?\\d+(\\.\\d+)?"; - const SYMBOL = { - begin: SYMBOL_RE, - relevance: 0 - }; - const NUMBER = { - className: "number", - begin: SIMPLE_NUMBER_RE, - relevance: 0 - }; - const STRING = hljs.inherit(hljs.QUOTE_STRING_MODE, { - illegal: null - }); - const COMMENT2 = hljs.COMMENT( - ";", - "$", - { - relevance: 0 - } - ); - const LITERAL = { - className: "literal", - begin: /\b(true|false|nil)\b/ - }; - const COLLECTION = { - begin: "[\\[\\{]", - end: "[\\]\\}]" - }; - const HINT = { - className: "comment", - begin: "\\^" + SYMBOL_RE - }; - const HINT_COL = hljs.COMMENT("\\^\\{", "\\}"); - const KEY = { - className: "symbol", - begin: "[:]{1,2}" + SYMBOL_RE - }; - const LIST = { - begin: "\\(", - end: "\\)" - }; - const BODY = { - endsWithParent: true, - relevance: 0 - }; - const NAME2 = { - keywords, - className: "name", - begin: SYMBOL_RE, - relevance: 0, - starts: BODY - }; - const DEFAULT_CONTAINS = [ - LIST, - STRING, - HINT, - HINT_COL, - COMMENT2, - KEY, - COLLECTION, - NUMBER, - LITERAL, - SYMBOL - ]; - const GLOBAL = { - beginKeywords: globals, - lexemes: SYMBOL_RE, - end: '(\\[|#|\\d|"|:|\\{|\\)|\\(|$)', - contains: [ - { - className: "title", - begin: SYMBOL_RE, - relevance: 0, - excludeEnd: true, - // we can only have a single title - endsParent: true - } - ].concat(DEFAULT_CONTAINS) - }; - LIST.contains = [ - hljs.COMMENT("comment", ""), - GLOBAL, - NAME2, - BODY - ]; - BODY.contains = DEFAULT_CONTAINS; - COLLECTION.contains = DEFAULT_CONTAINS; - HINT_COL.contains = [COLLECTION]; - return { - name: "Clojure", - aliases: ["clj"], - illegal: /\S/, - contains: [ - LIST, - STRING, - HINT, - HINT_COL, - COMMENT2, - KEY, - COLLECTION, - NUMBER, - LITERAL - ] - }; - } - module2.exports = clojure2; - } -}); - -// ../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/cpp.js -var require_cpp = __commonJS({ - "../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/cpp.js"(exports2, module2) { - function source(re) { - if (!re) - return null; - if (typeof re === "string") - return re; - return re.source; - } - function lookahead(re) { - return concat("(?=", re, ")"); - } - function optional(re) { - return concat("(", re, ")?"); - } - function concat(...args3) { - const joined = args3.map((x) => source(x)).join(""); - return joined; - } - function cpp2(hljs) { - const C_LINE_COMMENT_MODE = hljs.COMMENT("//", "$", { - contains: [ - { - begin: /\\\n/ - } - ] - }); - const DECLTYPE_AUTO_RE = "decltype\\(auto\\)"; - const NAMESPACE_RE = "[a-zA-Z_]\\w*::"; - const TEMPLATE_ARGUMENT_RE = "<[^<>]+>"; - const FUNCTION_TYPE_RE = "(" + DECLTYPE_AUTO_RE + "|" + optional(NAMESPACE_RE) + "[a-zA-Z_]\\w*" + optional(TEMPLATE_ARGUMENT_RE) + ")"; - const CPP_PRIMITIVE_TYPES = { - className: "keyword", - begin: "\\b[a-z\\d_]*_t\\b" - }; - const CHARACTER_ESCAPES = "\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"; - const STRINGS = { - className: "string", - variants: [ - { - begin: '(u8?|U|L)?"', - end: '"', - illegal: "\\n", - contains: [hljs.BACKSLASH_ESCAPE] - }, - { - begin: "(u8?|U|L)?'(" + CHARACTER_ESCAPES + "|.)", - end: "'", - illegal: "." - }, - hljs.END_SAME_AS_BEGIN({ - begin: /(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/, - end: /\)([^()\\ ]{0,16})"/ - }) - ] - }; - const NUMBERS = { - className: "number", - variants: [ - { - begin: "\\b(0b[01']+)" - }, - { - begin: "(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)" - }, - { - begin: "(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)" - } - ], - relevance: 0 - }; - const PREPROCESSOR = { - className: "meta", - begin: /#\s*[a-z]+\b/, - end: /$/, - keywords: { - "meta-keyword": "if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include" - }, - contains: [ - { - begin: /\\\n/, - relevance: 0 - }, - hljs.inherit(STRINGS, { - className: "meta-string" - }), - { - className: "meta-string", - begin: /<.*?>/ - }, - C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE - ] - }; - const TITLE_MODE = { - className: "title", - begin: optional(NAMESPACE_RE) + hljs.IDENT_RE, - relevance: 0 - }; - const FUNCTION_TITLE = optional(NAMESPACE_RE) + hljs.IDENT_RE + "\\s*\\("; - const COMMON_CPP_HINTS = [ - "asin", - "atan2", - "atan", - "calloc", - "ceil", - "cosh", - "cos", - "exit", - "exp", - "fabs", - "floor", - "fmod", - "fprintf", - "fputs", - "free", - "frexp", - "auto_ptr", - "deque", - "list", - "queue", - "stack", - "vector", - "map", - "set", - "pair", - "bitset", - "multiset", - "multimap", - "unordered_set", - "fscanf", - "future", - "isalnum", - "isalpha", - "iscntrl", - "isdigit", - "isgraph", - "islower", - "isprint", - "ispunct", - "isspace", - "isupper", - "isxdigit", - "tolower", - "toupper", - "labs", - "ldexp", - "log10", - "log", - "malloc", - "realloc", - "memchr", - "memcmp", - "memcpy", - "memset", - "modf", - "pow", - "printf", - "putchar", - "puts", - "scanf", - "sinh", - "sin", - "snprintf", - "sprintf", - "sqrt", - "sscanf", - "strcat", - "strchr", - "strcmp", - "strcpy", - "strcspn", - "strlen", - "strncat", - "strncmp", - "strncpy", - "strpbrk", - "strrchr", - "strspn", - "strstr", - "tanh", - "tan", - "unordered_map", - "unordered_multiset", - "unordered_multimap", - "priority_queue", - "make_pair", - "array", - "shared_ptr", - "abort", - "terminate", - "abs", - "acos", - "vfprintf", - "vprintf", - "vsprintf", - "endl", - "initializer_list", - "unique_ptr", - "complex", - "imaginary", - "std", - "string", - "wstring", - "cin", - "cout", - "cerr", - "clog", - "stdin", - "stdout", - "stderr", - "stringstream", - "istringstream", - "ostringstream" - ]; - const CPP_KEYWORDS = { - keyword: "int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq", - built_in: "_Bool _Complex _Imaginary", - _relevance_hints: COMMON_CPP_HINTS, - literal: "true false nullptr NULL" - }; - const FUNCTION_DISPATCH = { - className: "function.dispatch", - relevance: 0, - keywords: CPP_KEYWORDS, - begin: concat( - /\b/, - /(?!decltype)/, - /(?!if)/, - /(?!for)/, - /(?!while)/, - hljs.IDENT_RE, - lookahead(/\s*\(/) - ) - }; - const EXPRESSION_CONTAINS = [ - FUNCTION_DISPATCH, - PREPROCESSOR, - CPP_PRIMITIVE_TYPES, - C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - NUMBERS, - STRINGS - ]; - const EXPRESSION_CONTEXT = { - // This mode covers expression context where we can't expect a function - // definition and shouldn't highlight anything that looks like one: - // `return some()`, `else if()`, `(x*sum(1, 2))` - variants: [ - { - begin: /=/, - end: /;/ - }, - { - begin: /\(/, - end: /\)/ - }, - { - beginKeywords: "new throw return else", - end: /;/ - } - ], - keywords: CPP_KEYWORDS, - contains: EXPRESSION_CONTAINS.concat([ - { - begin: /\(/, - end: /\)/, - keywords: CPP_KEYWORDS, - contains: EXPRESSION_CONTAINS.concat(["self"]), - relevance: 0 - } - ]), - relevance: 0 - }; - const FUNCTION_DECLARATION = { - className: "function", - begin: "(" + FUNCTION_TYPE_RE + "[\\*&\\s]+)+" + FUNCTION_TITLE, - returnBegin: true, - end: /[{;=]/, - excludeEnd: true, - keywords: CPP_KEYWORDS, - illegal: /[^\w\s\*&:<>.]/, - contains: [ - { - // to prevent it from being confused as the function title - begin: DECLTYPE_AUTO_RE, - keywords: CPP_KEYWORDS, - relevance: 0 - }, - { - begin: FUNCTION_TITLE, - returnBegin: true, - contains: [TITLE_MODE], - relevance: 0 - }, - // needed because we do not have look-behind on the below rule - // to prevent it from grabbing the final : in a :: pair - { - begin: /::/, - relevance: 0 - }, - // initializers - { - begin: /:/, - endsWithParent: true, - contains: [ - STRINGS, - NUMBERS - ] - }, - { - className: "params", - begin: /\(/, - end: /\)/, - keywords: CPP_KEYWORDS, - relevance: 0, - contains: [ - C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - STRINGS, - NUMBERS, - CPP_PRIMITIVE_TYPES, - // Count matching parentheses. - { - begin: /\(/, - end: /\)/, - keywords: CPP_KEYWORDS, - relevance: 0, - contains: [ - "self", - C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - STRINGS, - NUMBERS, - CPP_PRIMITIVE_TYPES - ] - } - ] - }, - CPP_PRIMITIVE_TYPES, - C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - PREPROCESSOR - ] - }; - return { - name: "C++", - aliases: [ - "cc", - "c++", - "h++", - "hpp", - "hh", - "hxx", - "cxx" - ], - keywords: CPP_KEYWORDS, - illegal: " rooms (9);` - begin: "\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<", - end: ">", - keywords: CPP_KEYWORDS, - contains: [ - "self", - CPP_PRIMITIVE_TYPES - ] - }, - { - begin: hljs.IDENT_RE + "::", - keywords: CPP_KEYWORDS - }, - { - className: "class", - beginKeywords: "enum class struct union", - end: /[{;:<>=]/, - contains: [ - { - beginKeywords: "final class struct" - }, - hljs.TITLE_MODE - ] - } - ] - ), - exports: { - preprocessor: PREPROCESSOR, - strings: STRINGS, - keywords: CPP_KEYWORDS - } - }; - } - module2.exports = cpp2; - } -}); - -// ../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/csharp.js -var require_csharp = __commonJS({ - "../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/csharp.js"(exports2, module2) { - function csharp2(hljs) { - const BUILT_IN_KEYWORDS = [ - "bool", - "byte", - "char", - "decimal", - "delegate", - "double", - "dynamic", - "enum", - "float", - "int", - "long", - "nint", - "nuint", - "object", - "sbyte", - "short", - "string", - "ulong", - "uint", - "ushort" - ]; - const FUNCTION_MODIFIERS = [ - "public", - "private", - "protected", - "static", - "internal", - "protected", - "abstract", - "async", - "extern", - "override", - "unsafe", - "virtual", - "new", - "sealed", - "partial" - ]; - const LITERAL_KEYWORDS = [ - "default", - "false", - "null", - "true" - ]; - const NORMAL_KEYWORDS = [ - "abstract", - "as", - "base", - "break", - "case", - "class", - "const", - "continue", - "do", - "else", - "event", - "explicit", - "extern", - "finally", - "fixed", - "for", - "foreach", - "goto", - "if", - "implicit", - "in", - "interface", - "internal", - "is", - "lock", - "namespace", - "new", - "operator", - "out", - "override", - "params", - "private", - "protected", - "public", - "readonly", - "record", - "ref", - "return", - "sealed", - "sizeof", - "stackalloc", - "static", - "struct", - "switch", - "this", - "throw", - "try", - "typeof", - "unchecked", - "unsafe", - "using", - "virtual", - "void", - "volatile", - "while" - ]; - const CONTEXTUAL_KEYWORDS = [ - "add", - "alias", - "and", - "ascending", - "async", - "await", - "by", - "descending", - "equals", - "from", - "get", - "global", - "group", - "init", - "into", - "join", - "let", - "nameof", - "not", - "notnull", - "on", - "or", - "orderby", - "partial", - "remove", - "select", - "set", - "unmanaged", - "value|0", - "var", - "when", - "where", - "with", - "yield" - ]; - const KEYWORDS = { - keyword: NORMAL_KEYWORDS.concat(CONTEXTUAL_KEYWORDS), - built_in: BUILT_IN_KEYWORDS, - literal: LITERAL_KEYWORDS - }; - const TITLE_MODE = hljs.inherit(hljs.TITLE_MODE, { - begin: "[a-zA-Z](\\.?\\w)*" - }); - const NUMBERS = { - className: "number", - variants: [ - { - begin: "\\b(0b[01']+)" - }, - { - begin: "(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)" - }, - { - begin: "(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)" - } - ], - relevance: 0 - }; - const VERBATIM_STRING = { - className: "string", - begin: '@"', - end: '"', - contains: [ - { - begin: '""' - } - ] - }; - const VERBATIM_STRING_NO_LF = hljs.inherit(VERBATIM_STRING, { - illegal: /\n/ - }); - const SUBST = { - className: "subst", - begin: /\{/, - end: /\}/, - keywords: KEYWORDS - }; - const SUBST_NO_LF = hljs.inherit(SUBST, { - illegal: /\n/ - }); - const INTERPOLATED_STRING = { - className: "string", - begin: /\$"/, - end: '"', - illegal: /\n/, - contains: [ - { - begin: /\{\{/ - }, - { - begin: /\}\}/ - }, - hljs.BACKSLASH_ESCAPE, - SUBST_NO_LF - ] - }; - const INTERPOLATED_VERBATIM_STRING = { - className: "string", - begin: /\$@"/, - end: '"', - contains: [ - { - begin: /\{\{/ - }, - { - begin: /\}\}/ - }, - { - begin: '""' - }, - SUBST - ] - }; - const INTERPOLATED_VERBATIM_STRING_NO_LF = hljs.inherit(INTERPOLATED_VERBATIM_STRING, { - illegal: /\n/, - contains: [ - { - begin: /\{\{/ - }, - { - begin: /\}\}/ - }, - { - begin: '""' - }, - SUBST_NO_LF - ] - }); - SUBST.contains = [ - INTERPOLATED_VERBATIM_STRING, - INTERPOLATED_STRING, - VERBATIM_STRING, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - NUMBERS, - hljs.C_BLOCK_COMMENT_MODE - ]; - SUBST_NO_LF.contains = [ - INTERPOLATED_VERBATIM_STRING_NO_LF, - INTERPOLATED_STRING, - VERBATIM_STRING_NO_LF, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - NUMBERS, - hljs.inherit(hljs.C_BLOCK_COMMENT_MODE, { - illegal: /\n/ - }) - ]; - const STRING = { - variants: [ - INTERPOLATED_VERBATIM_STRING, - INTERPOLATED_STRING, - VERBATIM_STRING, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE - ] - }; - const GENERIC_MODIFIER = { - begin: "<", - end: ">", - contains: [ - { - beginKeywords: "in out" - }, - TITLE_MODE - ] - }; - const TYPE_IDENT_RE = hljs.IDENT_RE + "(<" + hljs.IDENT_RE + "(\\s*,\\s*" + hljs.IDENT_RE + ")*>)?(\\[\\])?"; - const AT_IDENTIFIER = { - // prevents expressions like `@class` from incorrect flagging - // `class` as a keyword - begin: "@" + hljs.IDENT_RE, - relevance: 0 - }; - return { - name: "C#", - aliases: [ - "cs", - "c#" - ], - keywords: KEYWORDS, - illegal: /::/, - contains: [ - hljs.COMMENT( - "///", - "$", - { - returnBegin: true, - contains: [ - { - className: "doctag", - variants: [ - { - begin: "///", - relevance: 0 - }, - { - begin: "" - }, - { - begin: "" - } - ] - } - ] - } - ), - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - { - className: "meta", - begin: "#", - end: "$", - keywords: { - "meta-keyword": "if else elif endif define undef warning error line region endregion pragma checksum" - } - }, - STRING, - NUMBERS, - { - beginKeywords: "class interface", - relevance: 0, - end: /[{;=]/, - illegal: /[^\s:,]/, - contains: [ - { - beginKeywords: "where class" - }, - TITLE_MODE, - GENERIC_MODIFIER, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE - ] - }, - { - beginKeywords: "namespace", - relevance: 0, - end: /[{;=]/, - illegal: /[^\s:]/, - contains: [ - TITLE_MODE, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE - ] - }, - { - beginKeywords: "record", - relevance: 0, - end: /[{;=]/, - illegal: /[^\s:]/, - contains: [ - TITLE_MODE, - GENERIC_MODIFIER, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE - ] - }, - { - // [Attributes("")] - className: "meta", - begin: "^\\s*\\[", - excludeBegin: true, - end: "\\]", - excludeEnd: true, - contains: [ - { - className: "meta-string", - begin: /"/, - end: /"/ - } - ] - }, - { - // Expression keywords prevent 'keyword Name(...)' from being - // recognized as a function definition - beginKeywords: "new return throw await else", - relevance: 0 - }, - { - className: "function", - begin: "(" + TYPE_IDENT_RE + "\\s+)+" + hljs.IDENT_RE + "\\s*(<.+>\\s*)?\\(", - returnBegin: true, - end: /\s*[{;=]/, - excludeEnd: true, - keywords: KEYWORDS, - contains: [ - // prevents these from being highlighted `title` - { - beginKeywords: FUNCTION_MODIFIERS.join(" "), - relevance: 0 - }, - { - begin: hljs.IDENT_RE + "\\s*(<.+>\\s*)?\\(", - returnBegin: true, - contains: [ - hljs.TITLE_MODE, - GENERIC_MODIFIER - ], - relevance: 0 - }, - { - className: "params", - begin: /\(/, - end: /\)/, - excludeBegin: true, - excludeEnd: true, - keywords: KEYWORDS, - relevance: 0, - contains: [ - STRING, - NUMBERS, - hljs.C_BLOCK_COMMENT_MODE - ] - }, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE - ] - }, - AT_IDENTIFIER - ] - }; - } - module2.exports = csharp2; - } -}); - -// ../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/css.js -var require_css = __commonJS({ - "../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/css.js"(exports2, module2) { - var MODES = (hljs) => { - return { - IMPORTANT: { - className: "meta", - begin: "!important" - }, - HEXCOLOR: { - className: "number", - begin: "#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})" - }, - ATTRIBUTE_SELECTOR_MODE: { - className: "selector-attr", - begin: /\[/, - end: /\]/, - illegal: "$", - contains: [ - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE - ] - } - }; - }; - var TAGS = [ - "a", - "abbr", - "address", - "article", - "aside", - "audio", - "b", - "blockquote", - "body", - "button", - "canvas", - "caption", - "cite", - "code", - "dd", - "del", - "details", - "dfn", - "div", - "dl", - "dt", - "em", - "fieldset", - "figcaption", - "figure", - "footer", - "form", - "h1", - "h2", - "h3", - "h4", - "h5", - "h6", - "header", - "hgroup", - "html", - "i", - "iframe", - "img", - "input", - "ins", - "kbd", - "label", - "legend", - "li", - "main", - "mark", - "menu", - "nav", - "object", - "ol", - "p", - "q", - "quote", - "samp", - "section", - "span", - "strong", - "summary", - "sup", - "table", - "tbody", - "td", - "textarea", - "tfoot", - "th", - "thead", - "time", - "tr", - "ul", - "var", - "video" - ]; - var MEDIA_FEATURES = [ - "any-hover", - "any-pointer", - "aspect-ratio", - "color", - "color-gamut", - "color-index", - "device-aspect-ratio", - "device-height", - "device-width", - "display-mode", - "forced-colors", - "grid", - "height", - "hover", - "inverted-colors", - "monochrome", - "orientation", - "overflow-block", - "overflow-inline", - "pointer", - "prefers-color-scheme", - "prefers-contrast", - "prefers-reduced-motion", - "prefers-reduced-transparency", - "resolution", - "scan", - "scripting", - "update", - "width", - // TODO: find a better solution? - "min-width", - "max-width", - "min-height", - "max-height" - ]; - var PSEUDO_CLASSES = [ - "active", - "any-link", - "blank", - "checked", - "current", - "default", - "defined", - "dir", - // dir() - "disabled", - "drop", - "empty", - "enabled", - "first", - "first-child", - "first-of-type", - "fullscreen", - "future", - "focus", - "focus-visible", - "focus-within", - "has", - // has() - "host", - // host or host() - "host-context", - // host-context() - "hover", - "indeterminate", - "in-range", - "invalid", - "is", - // is() - "lang", - // lang() - "last-child", - "last-of-type", - "left", - "link", - "local-link", - "not", - // not() - "nth-child", - // nth-child() - "nth-col", - // nth-col() - "nth-last-child", - // nth-last-child() - "nth-last-col", - // nth-last-col() - "nth-last-of-type", - //nth-last-of-type() - "nth-of-type", - //nth-of-type() - "only-child", - "only-of-type", - "optional", - "out-of-range", - "past", - "placeholder-shown", - "read-only", - "read-write", - "required", - "right", - "root", - "scope", - "target", - "target-within", - "user-invalid", - "valid", - "visited", - "where" - // where() - ]; - var PSEUDO_ELEMENTS = [ - "after", - "backdrop", - "before", - "cue", - "cue-region", - "first-letter", - "first-line", - "grammar-error", - "marker", - "part", - "placeholder", - "selection", - "slotted", - "spelling-error" - ]; - var ATTRIBUTES = [ - "align-content", - "align-items", - "align-self", - "animation", - "animation-delay", - "animation-direction", - "animation-duration", - "animation-fill-mode", - "animation-iteration-count", - "animation-name", - "animation-play-state", - "animation-timing-function", - "auto", - "backface-visibility", - "background", - "background-attachment", - "background-clip", - "background-color", - "background-image", - "background-origin", - "background-position", - "background-repeat", - "background-size", - "border", - "border-bottom", - "border-bottom-color", - "border-bottom-left-radius", - "border-bottom-right-radius", - "border-bottom-style", - "border-bottom-width", - "border-collapse", - "border-color", - "border-image", - "border-image-outset", - "border-image-repeat", - "border-image-slice", - "border-image-source", - "border-image-width", - "border-left", - "border-left-color", - "border-left-style", - "border-left-width", - "border-radius", - "border-right", - "border-right-color", - "border-right-style", - "border-right-width", - "border-spacing", - "border-style", - "border-top", - "border-top-color", - "border-top-left-radius", - "border-top-right-radius", - "border-top-style", - "border-top-width", - "border-width", - "bottom", - "box-decoration-break", - "box-shadow", - "box-sizing", - "break-after", - "break-before", - "break-inside", - "caption-side", - "clear", - "clip", - "clip-path", - "color", - "column-count", - "column-fill", - "column-gap", - "column-rule", - "column-rule-color", - "column-rule-style", - "column-rule-width", - "column-span", - "column-width", - "columns", - "content", - "counter-increment", - "counter-reset", - "cursor", - "direction", - "display", - "empty-cells", - "filter", - "flex", - "flex-basis", - "flex-direction", - "flex-flow", - "flex-grow", - "flex-shrink", - "flex-wrap", - "float", - "font", - "font-display", - "font-family", - "font-feature-settings", - "font-kerning", - "font-language-override", - "font-size", - "font-size-adjust", - "font-smoothing", - "font-stretch", - "font-style", - "font-variant", - "font-variant-ligatures", - "font-variation-settings", - "font-weight", - "height", - "hyphens", - "icon", - "image-orientation", - "image-rendering", - "image-resolution", - "ime-mode", - "inherit", - "initial", - "justify-content", - "left", - "letter-spacing", - "line-height", - "list-style", - "list-style-image", - "list-style-position", - "list-style-type", - "margin", - "margin-bottom", - "margin-left", - "margin-right", - "margin-top", - "marks", - "mask", - "max-height", - "max-width", - "min-height", - "min-width", - "nav-down", - "nav-index", - "nav-left", - "nav-right", - "nav-up", - "none", - "normal", - "object-fit", - "object-position", - "opacity", - "order", - "orphans", - "outline", - "outline-color", - "outline-offset", - "outline-style", - "outline-width", - "overflow", - "overflow-wrap", - "overflow-x", - "overflow-y", - "padding", - "padding-bottom", - "padding-left", - "padding-right", - "padding-top", - "page-break-after", - "page-break-before", - "page-break-inside", - "perspective", - "perspective-origin", - "pointer-events", - "position", - "quotes", - "resize", - "right", - "src", - // @font-face - "tab-size", - "table-layout", - "text-align", - "text-align-last", - "text-decoration", - "text-decoration-color", - "text-decoration-line", - "text-decoration-style", - "text-indent", - "text-overflow", - "text-rendering", - "text-shadow", - "text-transform", - "text-underline-position", - "top", - "transform", - "transform-origin", - "transform-style", - "transition", - "transition-delay", - "transition-duration", - "transition-property", - "transition-timing-function", - "unicode-bidi", - "vertical-align", - "visibility", - "white-space", - "widows", - "width", - "word-break", - "word-spacing", - "word-wrap", - "z-index" - // reverse makes sure longer attributes `font-weight` are matched fully - // instead of getting false positives on say `font` - ].reverse(); - function source(re) { - if (!re) - return null; - if (typeof re === "string") - return re; - return re.source; - } - function lookahead(re) { - return concat("(?=", re, ")"); - } - function concat(...args3) { - const joined = args3.map((x) => source(x)).join(""); - return joined; - } - function css2(hljs) { - const modes = MODES(hljs); - const FUNCTION_DISPATCH = { - className: "built_in", - begin: /[\w-]+(?=\()/ - }; - const VENDOR_PREFIX = { - begin: /-(webkit|moz|ms|o)-(?=[a-z])/ - }; - const AT_MODIFIERS = "and or not only"; - const AT_PROPERTY_RE = /@-?\w[\w]*(-\w+)*/; - const IDENT_RE = "[a-zA-Z-][a-zA-Z0-9_-]*"; - const STRINGS = [ - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE - ]; - return { - name: "CSS", - case_insensitive: true, - illegal: /[=|'\$]/, - keywords: { - keyframePosition: "from to" - }, - classNameAliases: { - // for visual continuity with `tag {}` and because we - // don't have a great class for this? - keyframePosition: "selector-tag" - }, - contains: [ - hljs.C_BLOCK_COMMENT_MODE, - VENDOR_PREFIX, - // to recognize keyframe 40% etc which are outside the scope of our - // attribute value mode - hljs.CSS_NUMBER_MODE, - { - className: "selector-id", - begin: /#[A-Za-z0-9_-]+/, - relevance: 0 - }, - { - className: "selector-class", - begin: "\\." + IDENT_RE, - relevance: 0 - }, - modes.ATTRIBUTE_SELECTOR_MODE, - { - className: "selector-pseudo", - variants: [ - { - begin: ":(" + PSEUDO_CLASSES.join("|") + ")" - }, - { - begin: "::(" + PSEUDO_ELEMENTS.join("|") + ")" - } - ] - }, - // we may actually need this (12/2020) - // { // pseudo-selector params - // begin: /\(/, - // end: /\)/, - // contains: [ hljs.CSS_NUMBER_MODE ] - // }, - { - className: "attribute", - begin: "\\b(" + ATTRIBUTES.join("|") + ")\\b" - }, - // attribute values - { - begin: ":", - end: "[;}]", - contains: [ - modes.HEXCOLOR, - modes.IMPORTANT, - hljs.CSS_NUMBER_MODE, - ...STRINGS, - // needed to highlight these as strings and to avoid issues with - // illegal characters that might be inside urls that would tigger the - // languages illegal stack - { - begin: /(url|data-uri)\(/, - end: /\)/, - relevance: 0, - // from keywords - keywords: { - built_in: "url data-uri" - }, - contains: [ - { - className: "string", - // any character other than `)` as in `url()` will be the start - // of a string, which ends with `)` (from the parent mode) - begin: /[^)]/, - endsWithParent: true, - excludeEnd: true - } - ] - }, - FUNCTION_DISPATCH - ] - }, - { - begin: lookahead(/@/), - end: "[{;]", - relevance: 0, - illegal: /:/, - // break on Less variables @var: ... - contains: [ - { - className: "keyword", - begin: AT_PROPERTY_RE - }, - { - begin: /\s/, - endsWithParent: true, - excludeEnd: true, - relevance: 0, - keywords: { - $pattern: /[a-z-]+/, - keyword: AT_MODIFIERS, - attribute: MEDIA_FEATURES.join(" ") - }, - contains: [ - { - begin: /[a-z-]+(?=:)/, - className: "attribute" - }, - ...STRINGS, - hljs.CSS_NUMBER_MODE - ] - } - ] - }, - { - className: "selector-tag", - begin: "\\b(" + TAGS.join("|") + ")\\b" - } - ] - }; - } - module2.exports = css2; - } -}); - -// ../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/dart.js -var require_dart = __commonJS({ - "../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/dart.js"(exports2, module2) { - function dart2(hljs) { - const SUBST = { - className: "subst", - variants: [{ - begin: "\\$[A-Za-z0-9_]+" - }] - }; - const BRACED_SUBST = { - className: "subst", - variants: [{ - begin: /\$\{/, - end: /\}/ - }], - keywords: "true false null this is new super" - }; - const STRING = { - className: "string", - variants: [ - { - begin: "r'''", - end: "'''" - }, - { - begin: 'r"""', - end: '"""' - }, - { - begin: "r'", - end: "'", - illegal: "\\n" - }, - { - begin: 'r"', - end: '"', - illegal: "\\n" - }, - { - begin: "'''", - end: "'''", - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST, - BRACED_SUBST - ] - }, - { - begin: '"""', - end: '"""', - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST, - BRACED_SUBST - ] - }, - { - begin: "'", - end: "'", - illegal: "\\n", - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST, - BRACED_SUBST - ] - }, - { - begin: '"', - end: '"', - illegal: "\\n", - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST, - BRACED_SUBST - ] - } - ] - }; - BRACED_SUBST.contains = [ - hljs.C_NUMBER_MODE, - STRING - ]; - const BUILT_IN_TYPES = [ - // dart:core - "Comparable", - "DateTime", - "Duration", - "Function", - "Iterable", - "Iterator", - "List", - "Map", - "Match", - "Object", - "Pattern", - "RegExp", - "Set", - "Stopwatch", - "String", - "StringBuffer", - "StringSink", - "Symbol", - "Type", - "Uri", - "bool", - "double", - "int", - "num", - // dart:html - "Element", - "ElementList" - ]; - const NULLABLE_BUILT_IN_TYPES = BUILT_IN_TYPES.map((e) => `${e}?`); - const KEYWORDS = { - keyword: "abstract as assert async await break case catch class const continue covariant default deferred do dynamic else enum export extends extension external factory false final finally for Function get hide if implements import in inferface is late library mixin new null on operator part required rethrow return set show static super switch sync this throw true try typedef var void while with yield", - built_in: BUILT_IN_TYPES.concat(NULLABLE_BUILT_IN_TYPES).concat([ - // dart:core - "Never", - "Null", - "dynamic", - "print", - // dart:html - "document", - "querySelector", - "querySelectorAll", - "window" - ]), - $pattern: /[A-Za-z][A-Za-z0-9_]*\??/ - }; - return { - name: "Dart", - keywords: KEYWORDS, - contains: [ - STRING, - hljs.COMMENT( - /\/\*\*(?!\/)/, - /\*\//, - { - subLanguage: "markdown", - relevance: 0 - } - ), - hljs.COMMENT( - /\/{3,} ?/, - /$/, - { - contains: [{ - subLanguage: "markdown", - begin: ".", - end: "$", - relevance: 0 - }] - } - ), - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - { - className: "class", - beginKeywords: "class interface", - end: /\{/, - excludeEnd: true, - contains: [ - { - beginKeywords: "extends implements" - }, - hljs.UNDERSCORE_TITLE_MODE - ] - }, - hljs.C_NUMBER_MODE, - { - className: "meta", - begin: "@[A-Za-z]+" - }, - { - begin: "=>" - // No markup, just a relevance booster - } - ] - }; - } - module2.exports = dart2; - } -}); - -// ../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/diff.js -var require_diff = __commonJS({ - "../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/diff.js"(exports2, module2) { - function diff2(hljs) { - return { - name: "Diff", - aliases: ["patch"], - contains: [ - { - className: "meta", - relevance: 10, - variants: [ - { - begin: /^@@ +-\d+,\d+ +\+\d+,\d+ +@@/ - }, - { - begin: /^\*\*\* +\d+,\d+ +\*\*\*\*$/ - }, - { - begin: /^--- +\d+,\d+ +----$/ - } - ] - }, - { - className: "comment", - variants: [ - { - begin: /Index: /, - end: /$/ - }, - { - begin: /^index/, - end: /$/ - }, - { - begin: /={3,}/, - end: /$/ - }, - { - begin: /^-{3}/, - end: /$/ - }, - { - begin: /^\*{3} /, - end: /$/ - }, - { - begin: /^\+{3}/, - end: /$/ - }, - { - begin: /^\*{15}$/ - }, - { - begin: /^diff --git/, - end: /$/ - } - ] - }, - { - className: "addition", - begin: /^\+/, - end: /$/ - }, - { - className: "deletion", - begin: /^-/, - end: /$/ - }, - { - className: "addition", - begin: /^!/, - end: /$/ - } - ] - }; - } - module2.exports = diff2; - } -}); - -// ../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/dockerfile.js -var require_dockerfile = __commonJS({ - "../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/dockerfile.js"(exports2, module2) { - function dockerfile2(hljs) { - return { - name: "Dockerfile", - aliases: ["docker"], - case_insensitive: true, - keywords: "from maintainer expose env arg user onbuild stopsignal", - contains: [ - hljs.HASH_COMMENT_MODE, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - hljs.NUMBER_MODE, - { - beginKeywords: "run cmd entrypoint volume add copy workdir label healthcheck shell", - starts: { - end: /[^\\]$/, - subLanguage: "bash" - } - } - ], - illegal: ">|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?"; - const ELIXIR_KEYWORDS = { - $pattern: ELIXIR_IDENT_RE, - keyword: "and false then defined module in return redo retry end for true self when next until do begin unless nil break not case cond alias while ensure or include use alias fn quote require import with|0" - }; - const SUBST = { - className: "subst", - begin: /#\{/, - end: /\}/, - keywords: ELIXIR_KEYWORDS - }; - const NUMBER = { - className: "number", - begin: "(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[1-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)", - relevance: 0 - }; - const SIGIL_DELIMITERS = `[/|([{<"']`; - const LOWERCASE_SIGIL = { - className: "string", - begin: "~[a-z](?=" + SIGIL_DELIMITERS + ")", - contains: [ - { - endsParent: true, - contains: [ - { - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST - ], - variants: [ - { - begin: /"/, - end: /"/ - }, - { - begin: /'/, - end: /'/ - }, - { - begin: /\//, - end: /\// - }, - { - begin: /\|/, - end: /\|/ - }, - { - begin: /\(/, - end: /\)/ - }, - { - begin: /\[/, - end: /\]/ - }, - { - begin: /\{/, - end: /\}/ - }, - { - begin: // - } - ] - } - ] - } - ] - }; - const UPCASE_SIGIL = { - className: "string", - begin: "~[A-Z](?=" + SIGIL_DELIMITERS + ")", - contains: [ - { - begin: /"/, - end: /"/ - }, - { - begin: /'/, - end: /'/ - }, - { - begin: /\//, - end: /\// - }, - { - begin: /\|/, - end: /\|/ - }, - { - begin: /\(/, - end: /\)/ - }, - { - begin: /\[/, - end: /\]/ - }, - { - begin: /\{/, - end: /\}/ - }, - { - begin: // - } - ] - }; - const STRING = { - className: "string", - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST - ], - variants: [ - { - begin: /"""/, - end: /"""/ - }, - { - begin: /'''/, - end: /'''/ - }, - { - begin: /~S"""/, - end: /"""/, - contains: [] - // override default - }, - { - begin: /~S"/, - end: /"/, - contains: [] - // override default - }, - { - begin: /~S'''/, - end: /'''/, - contains: [] - // override default - }, - { - begin: /~S'/, - end: /'/, - contains: [] - // override default - }, - { - begin: /'/, - end: /'/ - }, - { - begin: /"/, - end: /"/ - } - ] - }; - const FUNCTION = { - className: "function", - beginKeywords: "def defp defmacro", - end: /\B\b/, - // the mode is ended by the title - contains: [ - hljs.inherit(hljs.TITLE_MODE, { - begin: ELIXIR_IDENT_RE, - endsParent: true - }) - ] - }; - const CLASS = hljs.inherit(FUNCTION, { - className: "class", - beginKeywords: "defimpl defmodule defprotocol defrecord", - end: /\bdo\b|$|;/ - }); - const ELIXIR_DEFAULT_CONTAINS = [ - STRING, - UPCASE_SIGIL, - LOWERCASE_SIGIL, - hljs.HASH_COMMENT_MODE, - CLASS, - FUNCTION, - { - begin: "::" - }, - { - className: "symbol", - begin: ":(?![\\s:])", - contains: [ - STRING, - { - begin: ELIXIR_METHOD_RE - } - ], - relevance: 0 - }, - { - className: "symbol", - begin: ELIXIR_IDENT_RE + ":(?!:)", - relevance: 0 - }, - NUMBER, - { - className: "variable", - begin: "(\\$\\W)|((\\$|@@?)(\\w+))" - }, - { - begin: "->" - }, - { - // regexp container - begin: "(" + hljs.RE_STARTERS_RE + ")\\s*", - contains: [ - hljs.HASH_COMMENT_MODE, - { - // to prevent false regex triggers for the division function: - // /: - begin: /\/: (?=\d+\s*[,\]])/, - relevance: 0, - contains: [NUMBER] - }, - { - className: "regexp", - illegal: "\\n", - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST - ], - variants: [ - { - begin: "/", - end: "/[a-z]*" - }, - { - begin: "%r\\[", - end: "\\][a-z]*" - } - ] - } - ], - relevance: 0 - } - ]; - SUBST.contains = ELIXIR_DEFAULT_CONTAINS; - return { - name: "Elixir", - keywords: ELIXIR_KEYWORDS, - contains: ELIXIR_DEFAULT_CONTAINS - }; - } - module2.exports = elixir2; - } -}); - -// ../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/go.js -var require_go = __commonJS({ - "../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/go.js"(exports2, module2) { - function go(hljs) { - const GO_KEYWORDS = { - keyword: "break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune", - literal: "true false iota nil", - built_in: "append cap close complex copy imag len make new panic print println real recover delete" - }; - return { - name: "Go", - aliases: ["golang"], - keywords: GO_KEYWORDS, - illegal: "|<-" - } - ] - }; - } - module2.exports = haskell2; - } -}); - -// ../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/http.js -var require_http = __commonJS({ - "../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/http.js"(exports2, module2) { - function source(re) { - if (!re) - return null; - if (typeof re === "string") - return re; - return re.source; - } - function concat(...args3) { - const joined = args3.map((x) => source(x)).join(""); - return joined; - } - function http6(hljs) { - const VERSION4 = "HTTP/(2|1\\.[01])"; - const HEADER_NAME = /[A-Za-z][A-Za-z0-9-]*/; - const HEADER = { - className: "attribute", - begin: concat("^", HEADER_NAME, "(?=\\:\\s)"), - starts: { - contains: [ - { - className: "punctuation", - begin: /: /, - relevance: 0, - starts: { - end: "$", - relevance: 0 - } - } - ] - } - }; - const HEADERS_AND_BODY = [ - HEADER, - { - begin: "\\n\\n", - starts: { subLanguage: [], endsWithParent: true } - } - ]; - return { - name: "HTTP", - aliases: ["https"], - illegal: /\S/, - contains: [ - // response - { - begin: "^(?=" + VERSION4 + " \\d{3})", - end: /$/, - contains: [ - { - className: "meta", - begin: VERSION4 - }, - { - className: "number", - begin: "\\b\\d{3}\\b" - } - ], - starts: { - end: /\b\B/, - illegal: /\S/, - contains: HEADERS_AND_BODY - } - }, - // request - { - begin: "(?=^[A-Z]+ (.*?) " + VERSION4 + "$)", - end: /$/, - contains: [ - { - className: "string", - begin: " ", - end: " ", - excludeBegin: true, - excludeEnd: true - }, - { - className: "meta", - begin: VERSION4 - }, - { - className: "keyword", - begin: "[A-Z]+" - } - ], - starts: { - end: /\b\B/, - illegal: /\S/, - contains: HEADERS_AND_BODY - } - }, - // to allow headers to work even without a preamble - hljs.inherit(HEADER, { - relevance: 0 - }) - ] - }; - } - module2.exports = http6; - } -}); - -// ../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/java.js -var require_java = __commonJS({ - "../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/java.js"(exports2, module2) { - var decimalDigits = "[0-9](_*[0-9])*"; - var frac = `\\.(${decimalDigits})`; - var hexDigits = "[0-9a-fA-F](_*[0-9a-fA-F])*"; - var NUMERIC = { - className: "number", - variants: [ - // DecimalFloatingPointLiteral - // including ExponentPart - { begin: `(\\b(${decimalDigits})((${frac})|\\.)?|(${frac}))[eE][+-]?(${decimalDigits})[fFdD]?\\b` }, - // excluding ExponentPart - { begin: `\\b(${decimalDigits})((${frac})[fFdD]?\\b|\\.([fFdD]\\b)?)` }, - { begin: `(${frac})[fFdD]?\\b` }, - { begin: `\\b(${decimalDigits})[fFdD]\\b` }, - // HexadecimalFloatingPointLiteral - { begin: `\\b0[xX]((${hexDigits})\\.?|(${hexDigits})?\\.(${hexDigits}))[pP][+-]?(${decimalDigits})[fFdD]?\\b` }, - // DecimalIntegerLiteral - { begin: "\\b(0|[1-9](_*[0-9])*)[lL]?\\b" }, - // HexIntegerLiteral - { begin: `\\b0[xX](${hexDigits})[lL]?\\b` }, - // OctalIntegerLiteral - { begin: "\\b0(_*[0-7])*[lL]?\\b" }, - // BinaryIntegerLiteral - { begin: "\\b0[bB][01](_*[01])*[lL]?\\b" } - ], - relevance: 0 - }; - function java2(hljs) { - var JAVA_IDENT_RE = "[\xC0-\u02B8a-zA-Z_$][\xC0-\u02B8a-zA-Z_$0-9]*"; - var GENERIC_IDENT_RE = JAVA_IDENT_RE + "(<" + JAVA_IDENT_RE + "(\\s*,\\s*" + JAVA_IDENT_RE + ")*>)?"; - var KEYWORDS = "false synchronized int abstract float private char boolean var static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports do"; - var ANNOTATION = { - className: "meta", - begin: "@" + JAVA_IDENT_RE, - contains: [ - { - begin: /\(/, - end: /\)/, - contains: ["self"] - // allow nested () inside our annotation - } - ] - }; - const NUMBER = NUMERIC; - return { - name: "Java", - aliases: ["jsp"], - keywords: KEYWORDS, - illegal: /<\/|#/, - contains: [ - hljs.COMMENT( - "/\\*\\*", - "\\*/", - { - relevance: 0, - contains: [ - { - // eat up @'s in emails to prevent them to be recognized as doctags - begin: /\w+@/, - relevance: 0 - }, - { - className: "doctag", - begin: "@[A-Za-z]+" - } - ] - } - ), - // relevance boost - { - begin: /import java\.[a-z]+\./, - keywords: "import", - relevance: 2 - }, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - { - className: "class", - beginKeywords: "class interface enum", - end: /[{;=]/, - excludeEnd: true, - // TODO: can this be removed somehow? - // an extra boost because Java is more popular than other languages with - // this same syntax feature (this is just to preserve our tests passing - // for now) - relevance: 1, - keywords: "class interface enum", - illegal: /[:"\[\]]/, - contains: [ - { beginKeywords: "extends implements" }, - hljs.UNDERSCORE_TITLE_MODE - ] - }, - { - // Expression keywords prevent 'keyword Name(...)' from being - // recognized as a function definition - beginKeywords: "new throw return else", - relevance: 0 - }, - { - className: "class", - begin: "record\\s+" + hljs.UNDERSCORE_IDENT_RE + "\\s*\\(", - returnBegin: true, - excludeEnd: true, - end: /[{;=]/, - keywords: KEYWORDS, - contains: [ - { beginKeywords: "record" }, - { - begin: hljs.UNDERSCORE_IDENT_RE + "\\s*\\(", - returnBegin: true, - relevance: 0, - contains: [hljs.UNDERSCORE_TITLE_MODE] - }, - { - className: "params", - begin: /\(/, - end: /\)/, - keywords: KEYWORDS, - relevance: 0, - contains: [ - hljs.C_BLOCK_COMMENT_MODE - ] - }, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE - ] - }, - { - className: "function", - begin: "(" + GENERIC_IDENT_RE + "\\s+)+" + hljs.UNDERSCORE_IDENT_RE + "\\s*\\(", - returnBegin: true, - end: /[{;=]/, - excludeEnd: true, - keywords: KEYWORDS, - contains: [ - { - begin: hljs.UNDERSCORE_IDENT_RE + "\\s*\\(", - returnBegin: true, - relevance: 0, - contains: [hljs.UNDERSCORE_TITLE_MODE] - }, - { - className: "params", - begin: /\(/, - end: /\)/, - keywords: KEYWORDS, - relevance: 0, - contains: [ - ANNOTATION, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - NUMBER, - hljs.C_BLOCK_COMMENT_MODE - ] - }, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE - ] - }, - NUMBER, - ANNOTATION - ] - }; - } - module2.exports = java2; - } -}); - -// ../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/javascript.js -var require_javascript = __commonJS({ - "../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/javascript.js"(exports2, module2) { - var IDENT_RE = "[A-Za-z$_][0-9A-Za-z$_]*"; - var KEYWORDS = [ - "as", - // for exports - "in", - "of", - "if", - "for", - "while", - "finally", - "var", - "new", - "function", - "do", - "return", - "void", - "else", - "break", - "catch", - "instanceof", - "with", - "throw", - "case", - "default", - "try", - "switch", - "continue", - "typeof", - "delete", - "let", - "yield", - "const", - "class", - // JS handles these with a special rule - // "get", - // "set", - "debugger", - "async", - "await", - "static", - "import", - "from", - "export", - "extends" - ]; - var LITERALS2 = [ - "true", - "false", - "null", - "undefined", - "NaN", - "Infinity" - ]; - var TYPES = [ - "Intl", - "DataView", - "Number", - "Math", - "Date", - "String", - "RegExp", - "Object", - "Function", - "Boolean", - "Error", - "Symbol", - "Set", - "Map", - "WeakSet", - "WeakMap", - "Proxy", - "Reflect", - "JSON", - "Promise", - "Float64Array", - "Int16Array", - "Int32Array", - "Int8Array", - "Uint16Array", - "Uint32Array", - "Float32Array", - "Array", - "Uint8Array", - "Uint8ClampedArray", - "ArrayBuffer", - "BigInt64Array", - "BigUint64Array", - "BigInt" - ]; - var ERROR_TYPES = [ - "EvalError", - "InternalError", - "RangeError", - "ReferenceError", - "SyntaxError", - "TypeError", - "URIError" - ]; - var BUILT_IN_GLOBALS = [ - "setInterval", - "setTimeout", - "clearInterval", - "clearTimeout", - "require", - "exports", - "eval", - "isFinite", - "isNaN", - "parseFloat", - "parseInt", - "decodeURI", - "decodeURIComponent", - "encodeURI", - "encodeURIComponent", - "escape", - "unescape" - ]; - var BUILT_IN_VARIABLES = [ - "arguments", - "this", - "super", - "console", - "window", - "document", - "localStorage", - "module", - "global" - // Node.js - ]; - var BUILT_INS = [].concat( - BUILT_IN_GLOBALS, - BUILT_IN_VARIABLES, - TYPES, - ERROR_TYPES - ); - function source(re) { - if (!re) - return null; - if (typeof re === "string") - return re; - return re.source; - } - function lookahead(re) { - return concat("(?=", re, ")"); - } - function concat(...args3) { - const joined = args3.map((x) => source(x)).join(""); - return joined; - } - function javascript2(hljs) { - const hasClosingTag = (match2, { after }) => { - const tag = "", - end: "" - }; - const XML_TAG = { - begin: /<[A-Za-z0-9\\._:-]+/, - end: /\/[A-Za-z0-9\\._:-]+>|\/>/, - /** - * @param {RegExpMatchArray} match - * @param {CallbackResponse} response - */ - isTrulyOpeningTag: (match2, response) => { - const afterMatchIndex = match2[0].length + match2.index; - const nextChar = match2.input[afterMatchIndex]; - if (nextChar === "<") { - response.ignoreMatch(); - return; - } - if (nextChar === ">") { - if (!hasClosingTag(match2, { after: afterMatchIndex })) { - response.ignoreMatch(); - } - } - } - }; - const KEYWORDS$1 = { - $pattern: IDENT_RE, - keyword: KEYWORDS, - literal: LITERALS2, - built_in: BUILT_INS - }; - const decimalDigits = "[0-9](_?[0-9])*"; - const frac = `\\.(${decimalDigits})`; - const decimalInteger = `0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`; - const NUMBER = { - className: "number", - variants: [ - // DecimalLiteral - { begin: `(\\b(${decimalInteger})((${frac})|\\.)?|(${frac}))[eE][+-]?(${decimalDigits})\\b` }, - { begin: `\\b(${decimalInteger})\\b((${frac})\\b|\\.)?|(${frac})\\b` }, - // DecimalBigIntegerLiteral - { begin: `\\b(0|[1-9](_?[0-9])*)n\\b` }, - // NonDecimalIntegerLiteral - { begin: "\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b" }, - { begin: "\\b0[bB][0-1](_?[0-1])*n?\\b" }, - { begin: "\\b0[oO][0-7](_?[0-7])*n?\\b" }, - // LegacyOctalIntegerLiteral (does not include underscore separators) - // https://tc39.es/ecma262/#sec-additional-syntax-numeric-literals - { begin: "\\b0[0-7]+n?\\b" } - ], - relevance: 0 - }; - const SUBST = { - className: "subst", - begin: "\\$\\{", - end: "\\}", - keywords: KEYWORDS$1, - contains: [] - // defined later - }; - const HTML_TEMPLATE = { - begin: "html`", - end: "", - starts: { - end: "`", - returnEnd: false, - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST - ], - subLanguage: "xml" - } - }; - const CSS_TEMPLATE = { - begin: "css`", - end: "", - starts: { - end: "`", - returnEnd: false, - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST - ], - subLanguage: "css" - } - }; - const TEMPLATE_STRING = { - className: "string", - begin: "`", - end: "`", - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST - ] - }; - const JSDOC_COMMENT = hljs.COMMENT( - /\/\*\*(?!\/)/, - "\\*/", - { - relevance: 0, - contains: [ - { - className: "doctag", - begin: "@[A-Za-z]+", - contains: [ - { - className: "type", - begin: "\\{", - end: "\\}", - relevance: 0 - }, - { - className: "variable", - begin: IDENT_RE$1 + "(?=\\s*(-)|$)", - endsParent: true, - relevance: 0 - }, - // eat spaces (not newlines) so we can find - // types or variables - { - begin: /(?=[^\n])\s/, - relevance: 0 - } - ] - } - ] - } - ); - const COMMENT2 = { - className: "comment", - variants: [ - JSDOC_COMMENT, - hljs.C_BLOCK_COMMENT_MODE, - hljs.C_LINE_COMMENT_MODE - ] - }; - const SUBST_INTERNALS = [ - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - HTML_TEMPLATE, - CSS_TEMPLATE, - TEMPLATE_STRING, - NUMBER, - hljs.REGEXP_MODE - ]; - SUBST.contains = SUBST_INTERNALS.concat({ - // we need to pair up {} inside our subst to prevent - // it from ending too early by matching another } - begin: /\{/, - end: /\}/, - keywords: KEYWORDS$1, - contains: [ - "self" - ].concat(SUBST_INTERNALS) - }); - const SUBST_AND_COMMENTS = [].concat(COMMENT2, SUBST.contains); - const PARAMS_CONTAINS = SUBST_AND_COMMENTS.concat([ - // eat recursive parens in sub expressions - { - begin: /\(/, - end: /\)/, - keywords: KEYWORDS$1, - contains: ["self"].concat(SUBST_AND_COMMENTS) - } - ]); - const PARAMS = { - className: "params", - begin: /\(/, - end: /\)/, - excludeBegin: true, - excludeEnd: true, - keywords: KEYWORDS$1, - contains: PARAMS_CONTAINS - }; - return { - name: "Javascript", - aliases: ["js", "jsx", "mjs", "cjs"], - keywords: KEYWORDS$1, - // this will be extended by TypeScript - exports: { PARAMS_CONTAINS }, - illegal: /#(?![$_A-z])/, - contains: [ - hljs.SHEBANG({ - label: "shebang", - binary: "node", - relevance: 5 - }), - { - label: "use_strict", - className: "meta", - relevance: 10, - begin: /^\s*['"]use (strict|asm)['"]/ - }, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - HTML_TEMPLATE, - CSS_TEMPLATE, - TEMPLATE_STRING, - COMMENT2, - NUMBER, - { - // object attr container - begin: concat( - /[{,\n]\s*/, - // we need to look ahead to make sure that we actually have an - // attribute coming up so we don't steal a comma from a potential - // "value" container - // - // NOTE: this might not work how you think. We don't actually always - // enter this mode and stay. Instead it might merely match `, - // ` and then immediately end after the , because it - // fails to find any actual attrs. But this still does the job because - // it prevents the value contain rule from grabbing this instead and - // prevening this rule from firing when we actually DO have keys. - lookahead(concat( - // we also need to allow for multiple possible comments inbetween - // the first key:value pairing - /(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/, - IDENT_RE$1 + "\\s*:" - )) - ), - relevance: 0, - contains: [ - { - className: "attr", - begin: IDENT_RE$1 + lookahead("\\s*:"), - relevance: 0 - } - ] - }, - { - // "value" container - begin: "(" + hljs.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*", - keywords: "return throw case", - contains: [ - COMMENT2, - hljs.REGEXP_MODE, - { - className: "function", - // we have to count the parens to make sure we actually have the - // correct bounding ( ) before the =>. There could be any number of - // sub-expressions inside also surrounded by parens. - begin: "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + hljs.UNDERSCORE_IDENT_RE + ")\\s*=>", - returnBegin: true, - end: "\\s*=>", - contains: [ - { - className: "params", - variants: [ - { - begin: hljs.UNDERSCORE_IDENT_RE, - relevance: 0 - }, - { - className: null, - begin: /\(\s*\)/, - skip: true - }, - { - begin: /\(/, - end: /\)/, - excludeBegin: true, - excludeEnd: true, - keywords: KEYWORDS$1, - contains: PARAMS_CONTAINS - } - ] - } - ] - }, - { - // could be a comma delimited list of params to a function call - begin: /,/, - relevance: 0 - }, - { - className: "", - begin: /\s/, - end: /\s*/, - skip: true - }, - { - // JSX - variants: [ - { begin: FRAGMENT.begin, end: FRAGMENT.end }, - { - begin: XML_TAG.begin, - // we carefully check the opening tag to see if it truly - // is a tag and not a false positive - "on:begin": XML_TAG.isTrulyOpeningTag, - end: XML_TAG.end - } - ], - subLanguage: "xml", - contains: [ - { - begin: XML_TAG.begin, - end: XML_TAG.end, - skip: true, - contains: ["self"] - } - ] - } - ], - relevance: 0 - }, - { - className: "function", - beginKeywords: "function", - end: /[{;]/, - excludeEnd: true, - keywords: KEYWORDS$1, - contains: [ - "self", - hljs.inherit(hljs.TITLE_MODE, { begin: IDENT_RE$1 }), - PARAMS - ], - illegal: /%/ - }, - { - // prevent this from getting swallowed up by function - // since they appear "function like" - beginKeywords: "while if switch catch for" - }, - { - className: "function", - // we have to count the parens to make sure we actually have the correct - // bounding ( ). There could be any number of sub-expressions inside - // also surrounded by parens. - begin: hljs.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{", - // end parens - returnBegin: true, - contains: [ - PARAMS, - hljs.inherit(hljs.TITLE_MODE, { begin: IDENT_RE$1 }) - ] - }, - // hack: prevents detection of keywords in some circumstances - // .keyword() - // $keyword = x - { - variants: [ - { begin: "\\." + IDENT_RE$1 }, - { begin: "\\$" + IDENT_RE$1 } - ], - relevance: 0 - }, - { - // ES6 class - className: "class", - beginKeywords: "class", - end: /[{;=]/, - excludeEnd: true, - illegal: /[:"[\]]/, - contains: [ - { beginKeywords: "extends" }, - hljs.UNDERSCORE_TITLE_MODE - ] - }, - { - begin: /\b(?=constructor)/, - end: /[{;]/, - excludeEnd: true, - contains: [ - hljs.inherit(hljs.TITLE_MODE, { begin: IDENT_RE$1 }), - "self", - PARAMS - ] - }, - { - begin: "(get|set)\\s+(?=" + IDENT_RE$1 + "\\()", - end: /\{/, - keywords: "get set", - contains: [ - hljs.inherit(hljs.TITLE_MODE, { begin: IDENT_RE$1 }), - { begin: /\(\)/ }, - // eat to avoid empty params - PARAMS - ] - }, - { - begin: /\$[(.]/ - // relevance booster for a pattern common to JS libs: `$(something)` and `$.something` - } - ] - }; - } - module2.exports = javascript2; - } -}); - -// ../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/json.js -var require_json = __commonJS({ - "../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/json.js"(exports2, module2) { - function json2(hljs) { - const LITERALS2 = { - literal: "true false null" - }; - const ALLOWED_COMMENTS = [ - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE - ]; - const TYPES = [ - hljs.QUOTE_STRING_MODE, - hljs.C_NUMBER_MODE - ]; - const VALUE_CONTAINER = { - end: ",", - endsWithParent: true, - excludeEnd: true, - contains: TYPES, - keywords: LITERALS2 - }; - const OBJECT = { - begin: /\{/, - end: /\}/, - contains: [ - { - className: "attr", - begin: /"/, - end: /"/, - contains: [hljs.BACKSLASH_ESCAPE], - illegal: "\\n" - }, - hljs.inherit(VALUE_CONTAINER, { - begin: /:/ - }) - ].concat(ALLOWED_COMMENTS), - illegal: "\\S" - }; - const ARRAY = { - begin: "\\[", - end: "\\]", - contains: [hljs.inherit(VALUE_CONTAINER)], - // inherit is a workaround for a bug that makes shared modes with endsWithParent compile only the ending of one of the parents - illegal: "\\S" - }; - TYPES.push(OBJECT, ARRAY); - ALLOWED_COMMENTS.forEach(function(rule) { - TYPES.push(rule); - }); - return { - name: "JSON", - contains: TYPES, - keywords: LITERALS2, - illegal: "\\S" - }; - } - module2.exports = json2; - } -}); - -// ../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/kotlin.js -var require_kotlin = __commonJS({ - "../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/kotlin.js"(exports2, module2) { - var decimalDigits = "[0-9](_*[0-9])*"; - var frac = `\\.(${decimalDigits})`; - var hexDigits = "[0-9a-fA-F](_*[0-9a-fA-F])*"; - var NUMERIC = { - className: "number", - variants: [ - // DecimalFloatingPointLiteral - // including ExponentPart - { begin: `(\\b(${decimalDigits})((${frac})|\\.)?|(${frac}))[eE][+-]?(${decimalDigits})[fFdD]?\\b` }, - // excluding ExponentPart - { begin: `\\b(${decimalDigits})((${frac})[fFdD]?\\b|\\.([fFdD]\\b)?)` }, - { begin: `(${frac})[fFdD]?\\b` }, - { begin: `\\b(${decimalDigits})[fFdD]\\b` }, - // HexadecimalFloatingPointLiteral - { begin: `\\b0[xX]((${hexDigits})\\.?|(${hexDigits})?\\.(${hexDigits}))[pP][+-]?(${decimalDigits})[fFdD]?\\b` }, - // DecimalIntegerLiteral - { begin: "\\b(0|[1-9](_*[0-9])*)[lL]?\\b" }, - // HexIntegerLiteral - { begin: `\\b0[xX](${hexDigits})[lL]?\\b` }, - // OctalIntegerLiteral - { begin: "\\b0(_*[0-7])*[lL]?\\b" }, - // BinaryIntegerLiteral - { begin: "\\b0[bB][01](_*[01])*[lL]?\\b" } - ], - relevance: 0 - }; - function kotlin2(hljs) { - const KEYWORDS = { - keyword: "abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual", - built_in: "Byte Short Char Int Long Boolean Float Double Void Unit Nothing", - literal: "true false null" - }; - const KEYWORDS_WITH_LABEL = { - className: "keyword", - begin: /\b(break|continue|return|this)\b/, - starts: { - contains: [ - { - className: "symbol", - begin: /@\w+/ - } - ] - } - }; - const LABEL = { - className: "symbol", - begin: hljs.UNDERSCORE_IDENT_RE + "@" - }; - const SUBST = { - className: "subst", - begin: /\$\{/, - end: /\}/, - contains: [hljs.C_NUMBER_MODE] - }; - const VARIABLE = { - className: "variable", - begin: "\\$" + hljs.UNDERSCORE_IDENT_RE - }; - const STRING = { - className: "string", - variants: [ - { - begin: '"""', - end: '"""(?=[^"])', - contains: [ - VARIABLE, - SUBST - ] - }, - // Can't use built-in modes easily, as we want to use STRING in the meta - // context as 'meta-string' and there's no syntax to remove explicitly set - // classNames in built-in modes. - { - begin: "'", - end: "'", - illegal: /\n/, - contains: [hljs.BACKSLASH_ESCAPE] - }, - { - begin: '"', - end: '"', - illegal: /\n/, - contains: [ - hljs.BACKSLASH_ESCAPE, - VARIABLE, - SUBST - ] - } - ] - }; - SUBST.contains.push(STRING); - const ANNOTATION_USE_SITE = { - className: "meta", - begin: "@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*" + hljs.UNDERSCORE_IDENT_RE + ")?" - }; - const ANNOTATION = { - className: "meta", - begin: "@" + hljs.UNDERSCORE_IDENT_RE, - contains: [ - { - begin: /\(/, - end: /\)/, - contains: [ - hljs.inherit(STRING, { - className: "meta-string" - }) - ] - } - ] - }; - const KOTLIN_NUMBER_MODE = NUMERIC; - const KOTLIN_NESTED_COMMENT = hljs.COMMENT( - "/\\*", - "\\*/", - { - contains: [hljs.C_BLOCK_COMMENT_MODE] - } - ); - const KOTLIN_PAREN_TYPE = { - variants: [ - { - className: "type", - begin: hljs.UNDERSCORE_IDENT_RE - }, - { - begin: /\(/, - end: /\)/, - contains: [] - // defined later - } - ] - }; - const KOTLIN_PAREN_TYPE2 = KOTLIN_PAREN_TYPE; - KOTLIN_PAREN_TYPE2.variants[1].contains = [KOTLIN_PAREN_TYPE]; - KOTLIN_PAREN_TYPE.variants[1].contains = [KOTLIN_PAREN_TYPE2]; - return { - name: "Kotlin", - aliases: ["kt", "kts"], - keywords: KEYWORDS, - contains: [ - hljs.COMMENT( - "/\\*\\*", - "\\*/", - { - relevance: 0, - contains: [ - { - className: "doctag", - begin: "@[A-Za-z]+" - } - ] - } - ), - hljs.C_LINE_COMMENT_MODE, - KOTLIN_NESTED_COMMENT, - KEYWORDS_WITH_LABEL, - LABEL, - ANNOTATION_USE_SITE, - ANNOTATION, - { - className: "function", - beginKeywords: "fun", - end: "[(]|$", - returnBegin: true, - excludeEnd: true, - keywords: KEYWORDS, - relevance: 5, - contains: [ - { - begin: hljs.UNDERSCORE_IDENT_RE + "\\s*\\(", - returnBegin: true, - relevance: 0, - contains: [hljs.UNDERSCORE_TITLE_MODE] - }, - { - className: "type", - begin: //, - keywords: "reified", - relevance: 0 - }, - { - className: "params", - begin: /\(/, - end: /\)/, - endsParent: true, - keywords: KEYWORDS, - relevance: 0, - contains: [ - { - begin: /:/, - end: /[=,\/]/, - endsWithParent: true, - contains: [ - KOTLIN_PAREN_TYPE, - hljs.C_LINE_COMMENT_MODE, - KOTLIN_NESTED_COMMENT - ], - relevance: 0 - }, - hljs.C_LINE_COMMENT_MODE, - KOTLIN_NESTED_COMMENT, - ANNOTATION_USE_SITE, - ANNOTATION, - STRING, - hljs.C_NUMBER_MODE - ] - }, - KOTLIN_NESTED_COMMENT - ] - }, - { - className: "class", - beginKeywords: "class interface trait", - // remove 'trait' when removed from KEYWORDS - end: /[:\{(]|$/, - excludeEnd: true, - illegal: "extends implements", - contains: [ - { - beginKeywords: "public protected internal private constructor" - }, - hljs.UNDERSCORE_TITLE_MODE, - { - className: "type", - begin: //, - excludeBegin: true, - excludeEnd: true, - relevance: 0 - }, - { - className: "type", - begin: /[,:]\s*/, - end: /[<\(,]|$/, - excludeBegin: true, - returnEnd: true - }, - ANNOTATION_USE_SITE, - ANNOTATION - ] - }, - STRING, - { - className: "meta", - begin: "^#!/usr/bin/env", - end: "$", - illegal: "\n" - }, - KOTLIN_NUMBER_MODE - ] - }; - } - module2.exports = kotlin2; - } -}); - -// ../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/lua.js -var require_lua = __commonJS({ - "../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/lua.js"(exports2, module2) { - function lua2(hljs) { - const OPENING_LONG_BRACKET = "\\[=*\\["; - const CLOSING_LONG_BRACKET = "\\]=*\\]"; - const LONG_BRACKETS = { - begin: OPENING_LONG_BRACKET, - end: CLOSING_LONG_BRACKET, - contains: ["self"] - }; - const COMMENTS = [ - hljs.COMMENT("--(?!" + OPENING_LONG_BRACKET + ")", "$"), - hljs.COMMENT( - "--" + OPENING_LONG_BRACKET, - CLOSING_LONG_BRACKET, - { - contains: [LONG_BRACKETS], - relevance: 10 - } - ) - ]; - return { - name: "Lua", - keywords: { - $pattern: hljs.UNDERSCORE_IDENT_RE, - literal: "true false nil", - keyword: "and break do else elseif end for goto if in local not or repeat return then until while", - built_in: ( - // Metatags and globals: - "_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove" - ) - }, - contains: COMMENTS.concat([ - { - className: "function", - beginKeywords: "function", - end: "\\)", - contains: [ - hljs.inherit(hljs.TITLE_MODE, { - begin: "([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*" - }), - { - className: "params", - begin: "\\(", - endsWithParent: true, - contains: COMMENTS - } - ].concat(COMMENTS) - }, - hljs.C_NUMBER_MODE, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - { - className: "string", - begin: OPENING_LONG_BRACKET, - end: CLOSING_LONG_BRACKET, - contains: [LONG_BRACKETS], - relevance: 5 - } - ]) - }; - } - module2.exports = lua2; - } -}); - -// ../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/markdown.js -var require_markdown = __commonJS({ - "../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/markdown.js"(exports2, module2) { - function source(re) { - if (!re) - return null; - if (typeof re === "string") - return re; - return re.source; - } - function concat(...args3) { - const joined = args3.map((x) => source(x)).join(""); - return joined; - } - function markdown2(hljs) { - const INLINE_HTML = { - begin: /<\/?[A-Za-z_]/, - end: ">", - subLanguage: "xml", - relevance: 0 - }; - const HORIZONTAL_RULE = { - begin: "^[-\\*]{3,}", - end: "$" - }; - const CODE = { - className: "code", - variants: [ - // TODO: fix to allow these to work with sublanguage also - { - begin: "(`{3,})[^`](.|\\n)*?\\1`*[ ]*" - }, - { - begin: "(~{3,})[^~](.|\\n)*?\\1~*[ ]*" - }, - // needed to allow markdown as a sublanguage to work - { - begin: "```", - end: "```+[ ]*$" - }, - { - begin: "~~~", - end: "~~~+[ ]*$" - }, - { - begin: "`.+?`" - }, - { - begin: "(?=^( {4}|\\t))", - // use contains to gobble up multiple lines to allow the block to be whatever size - // but only have a single open/close tag vs one per line - contains: [ - { - begin: "^( {4}|\\t)", - end: "(\\n)$" - } - ], - relevance: 0 - } - ] - }; - const LIST = { - className: "bullet", - begin: "^[ ]*([*+-]|(\\d+\\.))(?=\\s+)", - end: "\\s+", - excludeEnd: true - }; - const LINK_REFERENCE = { - begin: /^\[[^\n]+\]:/, - returnBegin: true, - contains: [ - { - className: "symbol", - begin: /\[/, - end: /\]/, - excludeBegin: true, - excludeEnd: true - }, - { - className: "link", - begin: /:\s*/, - end: /$/, - excludeBegin: true - } - ] - }; - const URL_SCHEME = /[A-Za-z][A-Za-z0-9+.-]*/; - const LINK = { - variants: [ - // too much like nested array access in so many languages - // to have any real relevance - { - begin: /\[.+?\]\[.*?\]/, - relevance: 0 - }, - // popular internet URLs - { - begin: /\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/, - relevance: 2 - }, - { - begin: concat(/\[.+?\]\(/, URL_SCHEME, /:\/\/.*?\)/), - relevance: 2 - }, - // relative urls - { - begin: /\[.+?\]\([./?&#].*?\)/, - relevance: 1 - }, - // whatever else, lower relevance (might not be a link at all) - { - begin: /\[.+?\]\(.*?\)/, - relevance: 0 - } - ], - returnBegin: true, - contains: [ - { - className: "string", - relevance: 0, - begin: "\\[", - end: "\\]", - excludeBegin: true, - returnEnd: true - }, - { - className: "link", - relevance: 0, - begin: "\\]\\(", - end: "\\)", - excludeBegin: true, - excludeEnd: true - }, - { - className: "symbol", - relevance: 0, - begin: "\\]\\[", - end: "\\]", - excludeBegin: true, - excludeEnd: true - } - ] - }; - const BOLD = { - className: "strong", - contains: [], - // defined later - variants: [ - { - begin: /_{2}/, - end: /_{2}/ - }, - { - begin: /\*{2}/, - end: /\*{2}/ - } - ] - }; - const ITALIC = { - className: "emphasis", - contains: [], - // defined later - variants: [ - { - begin: /\*(?!\*)/, - end: /\*/ - }, - { - begin: /_(?!_)/, - end: /_/, - relevance: 0 - } - ] - }; - BOLD.contains.push(ITALIC); - ITALIC.contains.push(BOLD); - let CONTAINABLE = [ - INLINE_HTML, - LINK - ]; - BOLD.contains = BOLD.contains.concat(CONTAINABLE); - ITALIC.contains = ITALIC.contains.concat(CONTAINABLE); - CONTAINABLE = CONTAINABLE.concat(BOLD, ITALIC); - const HEADER = { - className: "section", - variants: [ - { - begin: "^#{1,6}", - end: "$", - contains: CONTAINABLE - }, - { - begin: "(?=^.+?\\n[=-]{2,}$)", - contains: [ - { - begin: "^[=-]*$" - }, - { - begin: "^", - end: "\\n", - contains: CONTAINABLE - } - ] - } - ] - }; - const BLOCKQUOTE = { - className: "quote", - begin: "^>\\s+", - contains: CONTAINABLE, - end: "$" - }; - return { - name: "Markdown", - aliases: [ - "md", - "mkdown", - "mkd" - ], - contains: [ - HEADER, - INLINE_HTML, - LIST, - BOLD, - ITALIC, - BLOCKQUOTE, - CODE, - HORIZONTAL_RULE, - LINK, - LINK_REFERENCE - ] - }; - } - module2.exports = markdown2; - } -}); - -// ../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/ocaml.js -var require_ocaml = __commonJS({ - "../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/ocaml.js"(exports2, module2) { - function ocaml2(hljs) { - return { - name: "OCaml", - aliases: ["ml"], - keywords: { - $pattern: "[a-z_]\\w*!?", - keyword: "and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value", - built_in: ( - /* built-in types */ - "array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref" - ), - literal: "true false" - }, - illegal: /\/\/|>>/, - contains: [ - { - className: "literal", - begin: "\\[(\\|\\|)?\\]|\\(\\)", - relevance: 0 - }, - hljs.COMMENT( - "\\(\\*", - "\\*\\)", - { - contains: ["self"] - } - ), - { - /* type variable */ - className: "symbol", - begin: "'[A-Za-z_](?!')[\\w']*" - /* the grammar is ambiguous on how 'a'b should be interpreted but not the compiler */ - }, - { - /* polymorphic variant */ - className: "type", - begin: "`[A-Z][\\w']*" - }, - { - /* module or constructor */ - className: "type", - begin: "\\b[A-Z][\\w']*", - relevance: 0 - }, - { - /* don't color identifiers, but safely catch all identifiers with '*/ - begin: "[a-z_]\\w*'[\\w']*", - relevance: 0 - }, - hljs.inherit(hljs.APOS_STRING_MODE, { className: "string", relevance: 0 }), - hljs.inherit(hljs.QUOTE_STRING_MODE, { illegal: null }), - { - className: "number", - begin: "\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)", - relevance: 0 - }, - { - begin: /->/ - // relevance booster - } - ] - }; - } - module2.exports = ocaml2; - } -}); - -// ../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/perl.js -var require_perl = __commonJS({ - "../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/perl.js"(exports2, module2) { - function source(re) { - if (!re) - return null; - if (typeof re === "string") - return re; - return re.source; - } - function concat(...args3) { - const joined = args3.map((x) => source(x)).join(""); - return joined; - } - function either(...args3) { - const joined = "(" + args3.map((x) => source(x)).join("|") + ")"; - return joined; - } - function perl2(hljs) { - const KEYWORDS = [ - "abs", - "accept", - "alarm", - "and", - "atan2", - "bind", - "binmode", - "bless", - "break", - "caller", - "chdir", - "chmod", - "chomp", - "chop", - "chown", - "chr", - "chroot", - "close", - "closedir", - "connect", - "continue", - "cos", - "crypt", - "dbmclose", - "dbmopen", - "defined", - "delete", - "die", - "do", - "dump", - "each", - "else", - "elsif", - "endgrent", - "endhostent", - "endnetent", - "endprotoent", - "endpwent", - "endservent", - "eof", - "eval", - "exec", - "exists", - "exit", - "exp", - "fcntl", - "fileno", - "flock", - "for", - "foreach", - "fork", - "format", - "formline", - "getc", - "getgrent", - "getgrgid", - "getgrnam", - "gethostbyaddr", - "gethostbyname", - "gethostent", - "getlogin", - "getnetbyaddr", - "getnetbyname", - "getnetent", - "getpeername", - "getpgrp", - "getpriority", - "getprotobyname", - "getprotobynumber", - "getprotoent", - "getpwent", - "getpwnam", - "getpwuid", - "getservbyname", - "getservbyport", - "getservent", - "getsockname", - "getsockopt", - "given", - "glob", - "gmtime", - "goto", - "grep", - "gt", - "hex", - "if", - "index", - "int", - "ioctl", - "join", - "keys", - "kill", - "last", - "lc", - "lcfirst", - "length", - "link", - "listen", - "local", - "localtime", - "log", - "lstat", - "lt", - "ma", - "map", - "mkdir", - "msgctl", - "msgget", - "msgrcv", - "msgsnd", - "my", - "ne", - "next", - "no", - "not", - "oct", - "open", - "opendir", - "or", - "ord", - "our", - "pack", - "package", - "pipe", - "pop", - "pos", - "print", - "printf", - "prototype", - "push", - "q|0", - "qq", - "quotemeta", - "qw", - "qx", - "rand", - "read", - "readdir", - "readline", - "readlink", - "readpipe", - "recv", - "redo", - "ref", - "rename", - "require", - "reset", - "return", - "reverse", - "rewinddir", - "rindex", - "rmdir", - "say", - "scalar", - "seek", - "seekdir", - "select", - "semctl", - "semget", - "semop", - "send", - "setgrent", - "sethostent", - "setnetent", - "setpgrp", - "setpriority", - "setprotoent", - "setpwent", - "setservent", - "setsockopt", - "shift", - "shmctl", - "shmget", - "shmread", - "shmwrite", - "shutdown", - "sin", - "sleep", - "socket", - "socketpair", - "sort", - "splice", - "split", - "sprintf", - "sqrt", - "srand", - "stat", - "state", - "study", - "sub", - "substr", - "symlink", - "syscall", - "sysopen", - "sysread", - "sysseek", - "system", - "syswrite", - "tell", - "telldir", - "tie", - "tied", - "time", - "times", - "tr", - "truncate", - "uc", - "ucfirst", - "umask", - "undef", - "unless", - "unlink", - "unpack", - "unshift", - "untie", - "until", - "use", - "utime", - "values", - "vec", - "wait", - "waitpid", - "wantarray", - "warn", - "when", - "while", - "write", - "x|0", - "xor", - "y|0" - ]; - const REGEX_MODIFIERS = /[dualxmsipngr]{0,12}/; - const PERL_KEYWORDS = { - $pattern: /[\w.]+/, - keyword: KEYWORDS.join(" ") - }; - const SUBST = { - className: "subst", - begin: "[$@]\\{", - end: "\\}", - keywords: PERL_KEYWORDS - }; - const METHOD = { - begin: /->\{/, - end: /\}/ - // contains defined later - }; - const VAR = { - variants: [ - { - begin: /\$\d/ - }, - { - begin: concat( - /[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/, - // negative look-ahead tries to avoid matching patterns that are not - // Perl at all like $ident$, @ident@, etc. - `(?![A-Za-z])(?![@$%])` - ) - }, - { - begin: /[$%@][^\s\w{]/, - relevance: 0 - } - ] - }; - const STRING_CONTAINS = [ - hljs.BACKSLASH_ESCAPE, - SUBST, - VAR - ]; - const REGEX_DELIMS = [ - /!/, - /\//, - /\|/, - /\?/, - /'/, - /"/, - // valid but infrequent and weird - /#/ - // valid but infrequent and weird - ]; - const PAIRED_DOUBLE_RE = (prefix, open, close = "\\1") => { - const middle = close === "\\1" ? close : concat(close, open); - return concat( - concat("(?:", prefix, ")"), - open, - /(?:\\.|[^\\\/])*?/, - middle, - /(?:\\.|[^\\\/])*?/, - close, - REGEX_MODIFIERS - ); - }; - const PAIRED_RE = (prefix, open, close) => { - return concat( - concat("(?:", prefix, ")"), - open, - /(?:\\.|[^\\\/])*?/, - close, - REGEX_MODIFIERS - ); - }; - const PERL_DEFAULT_CONTAINS = [ - VAR, - hljs.HASH_COMMENT_MODE, - hljs.COMMENT( - /^=\w/, - /=cut/, - { - endsWithParent: true - } - ), - METHOD, - { - className: "string", - contains: STRING_CONTAINS, - variants: [ - { - begin: "q[qwxr]?\\s*\\(", - end: "\\)", - relevance: 5 - }, - { - begin: "q[qwxr]?\\s*\\[", - end: "\\]", - relevance: 5 - }, - { - begin: "q[qwxr]?\\s*\\{", - end: "\\}", - relevance: 5 - }, - { - begin: "q[qwxr]?\\s*\\|", - end: "\\|", - relevance: 5 - }, - { - begin: "q[qwxr]?\\s*<", - end: ">", - relevance: 5 - }, - { - begin: "qw\\s+q", - end: "q", - relevance: 5 - }, - { - begin: "'", - end: "'", - contains: [hljs.BACKSLASH_ESCAPE] - }, - { - begin: '"', - end: '"' - }, - { - begin: "`", - end: "`", - contains: [hljs.BACKSLASH_ESCAPE] - }, - { - begin: /\{\w+\}/, - relevance: 0 - }, - { - begin: "-?\\w+\\s*=>", - relevance: 0 - } - ] - }, - { - className: "number", - begin: "(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b", - relevance: 0 - }, - { - // regexp container - begin: "(\\/\\/|" + hljs.RE_STARTERS_RE + "|\\b(split|return|print|reverse|grep)\\b)\\s*", - keywords: "split return print reverse grep", - relevance: 0, - contains: [ - hljs.HASH_COMMENT_MODE, - { - className: "regexp", - variants: [ - // allow matching common delimiters - { begin: PAIRED_DOUBLE_RE("s|tr|y", either(...REGEX_DELIMS)) }, - // and then paired delmis - { begin: PAIRED_DOUBLE_RE("s|tr|y", "\\(", "\\)") }, - { begin: PAIRED_DOUBLE_RE("s|tr|y", "\\[", "\\]") }, - { begin: PAIRED_DOUBLE_RE("s|tr|y", "\\{", "\\}") } - ], - relevance: 2 - }, - { - className: "regexp", - variants: [ - { - // could be a comment in many languages so do not count - // as relevant - begin: /(m|qr)\/\//, - relevance: 0 - }, - // prefix is optional with /regex/ - { begin: PAIRED_RE("(?:m|qr)?", /\//, /\//) }, - // allow matching common delimiters - { begin: PAIRED_RE("m|qr", either(...REGEX_DELIMS), /\1/) }, - // allow common paired delmins - { begin: PAIRED_RE("m|qr", /\(/, /\)/) }, - { begin: PAIRED_RE("m|qr", /\[/, /\]/) }, - { begin: PAIRED_RE("m|qr", /\{/, /\}/) } - ] - } - ] - }, - { - className: "function", - beginKeywords: "sub", - end: "(\\s*\\(.*?\\))?[;{]", - excludeEnd: true, - relevance: 5, - contains: [hljs.TITLE_MODE] - }, - { - begin: "-\\w\\b", - relevance: 0 - }, - { - begin: "^__DATA__$", - end: "^__END__$", - subLanguage: "mojolicious", - contains: [ - { - begin: "^@@.*", - end: "$", - className: "comment" - } - ] - } - ]; - SUBST.contains = PERL_DEFAULT_CONTAINS; - METHOD.contains = PERL_DEFAULT_CONTAINS; - return { - name: "Perl", - aliases: [ - "pl", - "pm" - ], - keywords: PERL_KEYWORDS, - contains: PERL_DEFAULT_CONTAINS - }; - } - module2.exports = perl2; - } -}); - -// ../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/php.js -var require_php = __commonJS({ - "../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/php.js"(exports2, module2) { - function php2(hljs) { - const VARIABLE = { - className: "variable", - begin: `\\$+[a-zA-Z_\x7F-\xFF][a-zA-Z0-9_\x7F-\xFF]*(?![A-Za-z0-9])(?![$])` - }; - const PREPROCESSOR = { - className: "meta", - variants: [ - { begin: /<\?php/, relevance: 10 }, - // boost for obvious PHP - { begin: /<\?[=]?/ }, - { begin: /\?>/ } - // end php tag - ] - }; - const SUBST = { - className: "subst", - variants: [ - { begin: /\$\w+/ }, - { begin: /\{\$/, end: /\}/ } - ] - }; - const SINGLE_QUOTED = hljs.inherit(hljs.APOS_STRING_MODE, { - illegal: null - }); - const DOUBLE_QUOTED = hljs.inherit(hljs.QUOTE_STRING_MODE, { - illegal: null, - contains: hljs.QUOTE_STRING_MODE.contains.concat(SUBST) - }); - const HEREDOC = hljs.END_SAME_AS_BEGIN({ - begin: /<<<[ \t]*(\w+)\n/, - end: /[ \t]*(\w+)\b/, - contains: hljs.QUOTE_STRING_MODE.contains.concat(SUBST) - }); - const STRING = { - className: "string", - contains: [hljs.BACKSLASH_ESCAPE, PREPROCESSOR], - variants: [ - hljs.inherit(SINGLE_QUOTED, { - begin: "b'", - end: "'" - }), - hljs.inherit(DOUBLE_QUOTED, { - begin: 'b"', - end: '"' - }), - DOUBLE_QUOTED, - SINGLE_QUOTED, - HEREDOC - ] - }; - const NUMBER = { - className: "number", - variants: [ - { begin: `\\b0b[01]+(?:_[01]+)*\\b` }, - // Binary w/ underscore support - { begin: `\\b0o[0-7]+(?:_[0-7]+)*\\b` }, - // Octals w/ underscore support - { begin: `\\b0x[\\da-f]+(?:_[\\da-f]+)*\\b` }, - // Hex w/ underscore support - // Decimals w/ underscore support, with optional fragments and scientific exponent (e) suffix. - { begin: `(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:e[+-]?\\d+)?` } - ], - relevance: 0 - }; - const KEYWORDS = { - keyword: ( - // Magic constants: - // - "__CLASS__ __DIR__ __FILE__ __FUNCTION__ __LINE__ __METHOD__ __NAMESPACE__ __TRAIT__ die echo exit include include_once print require require_once array abstract and as binary bool boolean break callable case catch class clone const continue declare default do double else elseif empty enddeclare endfor endforeach endif endswitch endwhile enum eval extends final finally float for foreach from global goto if implements instanceof insteadof int integer interface isset iterable list match|0 mixed new object or private protected public real return string switch throw trait try unset use var void while xor yield" - ), - literal: "false null true", - built_in: ( - // Standard PHP library: - // - "Error|0 AppendIterator ArgumentCountError ArithmeticError ArrayIterator ArrayObject AssertionError BadFunctionCallException BadMethodCallException CachingIterator CallbackFilterIterator CompileError Countable DirectoryIterator DivisionByZeroError DomainException EmptyIterator ErrorException Exception FilesystemIterator FilterIterator GlobIterator InfiniteIterator InvalidArgumentException IteratorIterator LengthException LimitIterator LogicException MultipleIterator NoRewindIterator OutOfBoundsException OutOfRangeException OuterIterator OverflowException ParentIterator ParseError RangeException RecursiveArrayIterator RecursiveCachingIterator RecursiveCallbackFilterIterator RecursiveDirectoryIterator RecursiveFilterIterator RecursiveIterator RecursiveIteratorIterator RecursiveRegexIterator RecursiveTreeIterator RegexIterator RuntimeException SeekableIterator SplDoublyLinkedList SplFileInfo SplFileObject SplFixedArray SplHeap SplMaxHeap SplMinHeap SplObjectStorage SplObserver SplObserver SplPriorityQueue SplQueue SplStack SplSubject SplSubject SplTempFileObject TypeError UnderflowException UnexpectedValueException UnhandledMatchError ArrayAccess Closure Generator Iterator IteratorAggregate Serializable Stringable Throwable Traversable WeakReference WeakMap Directory __PHP_Incomplete_Class parent php_user_filter self static stdClass" - ) - }; - return { - aliases: ["php3", "php4", "php5", "php6", "php7", "php8"], - case_insensitive: true, - keywords: KEYWORDS, - contains: [ - hljs.HASH_COMMENT_MODE, - hljs.COMMENT("//", "$", { contains: [PREPROCESSOR] }), - hljs.COMMENT( - "/\\*", - "\\*/", - { - contains: [ - { - className: "doctag", - begin: "@[A-Za-z]+" - } - ] - } - ), - hljs.COMMENT( - "__halt_compiler.+?;", - false, - { - endsWithParent: true, - keywords: "__halt_compiler" - } - ), - PREPROCESSOR, - { - className: "keyword", - begin: /\$this\b/ - }, - VARIABLE, - { - // swallow composed identifiers to avoid parsing them as keywords - begin: /(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/ - }, - { - className: "function", - relevance: 0, - beginKeywords: "fn function", - end: /[;{]/, - excludeEnd: true, - illegal: "[$%\\[]", - contains: [ - { - beginKeywords: "use" - }, - hljs.UNDERSCORE_TITLE_MODE, - { - begin: "=>", - // No markup, just a relevance booster - endsParent: true - }, - { - className: "params", - begin: "\\(", - end: "\\)", - excludeBegin: true, - excludeEnd: true, - keywords: KEYWORDS, - contains: [ - "self", - VARIABLE, - hljs.C_BLOCK_COMMENT_MODE, - STRING, - NUMBER - ] - } - ] - }, - { - className: "class", - variants: [ - { beginKeywords: "enum", illegal: /[($"]/ }, - { beginKeywords: "class interface trait", illegal: /[:($"]/ } - ], - relevance: 0, - end: /\{/, - excludeEnd: true, - contains: [ - { beginKeywords: "extends implements" }, - hljs.UNDERSCORE_TITLE_MODE - ] - }, - { - beginKeywords: "namespace", - relevance: 0, - end: ";", - illegal: /[.']/, - contains: [hljs.UNDERSCORE_TITLE_MODE] - }, - { - beginKeywords: "use", - relevance: 0, - end: ";", - contains: [hljs.UNDERSCORE_TITLE_MODE] - }, - STRING, - NUMBER - ] - }; - } - module2.exports = php2; - } -}); - -// ../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/python.js -var require_python = __commonJS({ - "../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/python.js"(exports2, module2) { - function source(re) { - if (!re) - return null; - if (typeof re === "string") - return re; - return re.source; - } - function lookahead(re) { - return concat("(?=", re, ")"); - } - function concat(...args3) { - const joined = args3.map((x) => source(x)).join(""); - return joined; - } - function python2(hljs) { - const RESERVED_WORDS = [ - "and", - "as", - "assert", - "async", - "await", - "break", - "class", - "continue", - "def", - "del", - "elif", - "else", - "except", - "finally", - "for", - "from", - "global", - "if", - "import", - "in", - "is", - "lambda", - "nonlocal|10", - "not", - "or", - "pass", - "raise", - "return", - "try", - "while", - "with", - "yield" - ]; - const BUILT_INS = [ - "__import__", - "abs", - "all", - "any", - "ascii", - "bin", - "bool", - "breakpoint", - "bytearray", - "bytes", - "callable", - "chr", - "classmethod", - "compile", - "complex", - "delattr", - "dict", - "dir", - "divmod", - "enumerate", - "eval", - "exec", - "filter", - "float", - "format", - "frozenset", - "getattr", - "globals", - "hasattr", - "hash", - "help", - "hex", - "id", - "input", - "int", - "isinstance", - "issubclass", - "iter", - "len", - "list", - "locals", - "map", - "max", - "memoryview", - "min", - "next", - "object", - "oct", - "open", - "ord", - "pow", - "print", - "property", - "range", - "repr", - "reversed", - "round", - "set", - "setattr", - "slice", - "sorted", - "staticmethod", - "str", - "sum", - "super", - "tuple", - "type", - "vars", - "zip" - ]; - const LITERALS2 = [ - "__debug__", - "Ellipsis", - "False", - "None", - "NotImplemented", - "True" - ]; - const TYPES = [ - "Any", - "Callable", - "Coroutine", - "Dict", - "List", - "Literal", - "Generic", - "Optional", - "Sequence", - "Set", - "Tuple", - "Type", - "Union" - ]; - const KEYWORDS = { - $pattern: /[A-Za-z]\w+|__\w+__/, - keyword: RESERVED_WORDS, - built_in: BUILT_INS, - literal: LITERALS2, - type: TYPES - }; - const PROMPT = { - className: "meta", - begin: /^(>>>|\.\.\.) / - }; - const SUBST = { - className: "subst", - begin: /\{/, - end: /\}/, - keywords: KEYWORDS, - illegal: /#/ - }; - const LITERAL_BRACKET = { - begin: /\{\{/, - relevance: 0 - }; - const STRING = { - className: "string", - contains: [hljs.BACKSLASH_ESCAPE], - variants: [ - { - begin: /([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/, - end: /'''/, - contains: [ - hljs.BACKSLASH_ESCAPE, - PROMPT - ], - relevance: 10 - }, - { - begin: /([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/, - end: /"""/, - contains: [ - hljs.BACKSLASH_ESCAPE, - PROMPT - ], - relevance: 10 - }, - { - begin: /([fF][rR]|[rR][fF]|[fF])'''/, - end: /'''/, - contains: [ - hljs.BACKSLASH_ESCAPE, - PROMPT, - LITERAL_BRACKET, - SUBST - ] - }, - { - begin: /([fF][rR]|[rR][fF]|[fF])"""/, - end: /"""/, - contains: [ - hljs.BACKSLASH_ESCAPE, - PROMPT, - LITERAL_BRACKET, - SUBST - ] - }, - { - begin: /([uU]|[rR])'/, - end: /'/, - relevance: 10 - }, - { - begin: /([uU]|[rR])"/, - end: /"/, - relevance: 10 - }, - { - begin: /([bB]|[bB][rR]|[rR][bB])'/, - end: /'/ - }, - { - begin: /([bB]|[bB][rR]|[rR][bB])"/, - end: /"/ - }, - { - begin: /([fF][rR]|[rR][fF]|[fF])'/, - end: /'/, - contains: [ - hljs.BACKSLASH_ESCAPE, - LITERAL_BRACKET, - SUBST - ] - }, - { - begin: /([fF][rR]|[rR][fF]|[fF])"/, - end: /"/, - contains: [ - hljs.BACKSLASH_ESCAPE, - LITERAL_BRACKET, - SUBST - ] - }, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE - ] - }; - const digitpart = "[0-9](_?[0-9])*"; - const pointfloat = `(\\b(${digitpart}))?\\.(${digitpart})|\\b(${digitpart})\\.`; - const NUMBER = { - className: "number", - relevance: 0, - variants: [ - // exponentfloat, pointfloat - // https://docs.python.org/3.9/reference/lexical_analysis.html#floating-point-literals - // optionally imaginary - // https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals - // Note: no leading \b because floats can start with a decimal point - // and we don't want to mishandle e.g. `fn(.5)`, - // no trailing \b for pointfloat because it can end with a decimal point - // and we don't want to mishandle e.g. `0..hex()`; this should be safe - // because both MUST contain a decimal point and so cannot be confused with - // the interior part of an identifier - { - begin: `(\\b(${digitpart})|(${pointfloat}))[eE][+-]?(${digitpart})[jJ]?\\b` - }, - { - begin: `(${pointfloat})[jJ]?` - }, - // decinteger, bininteger, octinteger, hexinteger - // https://docs.python.org/3.9/reference/lexical_analysis.html#integer-literals - // optionally "long" in Python 2 - // https://docs.python.org/2.7/reference/lexical_analysis.html#integer-and-long-integer-literals - // decinteger is optionally imaginary - // https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals - { - begin: "\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?\\b" - }, - { - begin: "\\b0[bB](_?[01])+[lL]?\\b" - }, - { - begin: "\\b0[oO](_?[0-7])+[lL]?\\b" - }, - { - begin: "\\b0[xX](_?[0-9a-fA-F])+[lL]?\\b" - }, - // imagnumber (digitpart-based) - // https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals - { - begin: `\\b(${digitpart})[jJ]\\b` - } - ] - }; - const COMMENT_TYPE = { - className: "comment", - begin: lookahead(/# type:/), - end: /$/, - keywords: KEYWORDS, - contains: [ - { - // prevent keywords from coloring `type` - begin: /# type:/ - }, - // comment within a datatype comment includes no keywords - { - begin: /#/, - end: /\b\B/, - endsWithParent: true - } - ] - }; - const PARAMS = { - className: "params", - variants: [ - // Exclude params in functions without params - { - className: "", - begin: /\(\s*\)/, - skip: true - }, - { - begin: /\(/, - end: /\)/, - excludeBegin: true, - excludeEnd: true, - keywords: KEYWORDS, - contains: [ - "self", - PROMPT, - NUMBER, - STRING, - hljs.HASH_COMMENT_MODE - ] - } - ] - }; - SUBST.contains = [ - STRING, - NUMBER, - PROMPT - ]; - return { - name: "Python", - aliases: [ - "py", - "gyp", - "ipython" - ], - keywords: KEYWORDS, - illegal: /(<\/|->|\?)|=>/, - contains: [ - PROMPT, - NUMBER, - { - // very common convention - begin: /\bself\b/ - }, - { - // eat "if" prior to string so that it won't accidentally be - // labeled as an f-string - beginKeywords: "if", - relevance: 0 - }, - STRING, - COMMENT_TYPE, - hljs.HASH_COMMENT_MODE, - { - variants: [ - { - className: "function", - beginKeywords: "def" - }, - { - className: "class", - beginKeywords: "class" - } - ], - end: /:/, - illegal: /[${=;\n,]/, - contains: [ - hljs.UNDERSCORE_TITLE_MODE, - PARAMS, - { - begin: /->/, - endsWithParent: true, - keywords: KEYWORDS - } - ] - }, - { - className: "meta", - begin: /^[\t ]*@/, - end: /(?=#)|$/, - contains: [ - NUMBER, - PARAMS, - STRING - ] - } - ] - }; - } - module2.exports = python2; - } -}); - -// ../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/r.js -var require_r = __commonJS({ - "../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/r.js"(exports2, module2) { - function source(re) { - if (!re) - return null; - if (typeof re === "string") - return re; - return re.source; - } - function lookahead(re) { - return concat("(?=", re, ")"); - } - function concat(...args3) { - const joined = args3.map((x) => source(x)).join(""); - return joined; - } - function r(hljs) { - const IDENT_RE = /(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/; - const SIMPLE_IDENT = /[a-zA-Z][a-zA-Z_0-9]*/; - return { - name: "R", - // only in Haskell, not R - illegal: /->/, - keywords: { - $pattern: IDENT_RE, - keyword: "function if in break next repeat else for while", - literal: "NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10", - built_in: ( - // Builtin constants - "LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm" - ) - }, - compilerExtensions: [ - // allow beforeMatch to act as a "qualifier" for the match - // the full match begin must be [beforeMatch][begin] - (mode, parent) => { - if (!mode.beforeMatch) - return; - if (mode.starts) - throw new Error("beforeMatch cannot be used with starts"); - const originalMode = Object.assign({}, mode); - Object.keys(mode).forEach((key) => { - delete mode[key]; - }); - mode.begin = concat(originalMode.beforeMatch, lookahead(originalMode.begin)); - mode.starts = { - relevance: 0, - contains: [ - Object.assign(originalMode, { endsParent: true }) - ] - }; - mode.relevance = 0; - delete originalMode.beforeMatch; - } - ], - contains: [ - // Roxygen comments - hljs.COMMENT( - /#'/, - /$/, - { - contains: [ - { - // Handle `@examples` separately to cause all subsequent code - // until the next `@`-tag on its own line to be kept as-is, - // preventing highlighting. This code is example R code, so nested - // doctags shouldn’t be treated as such. See - // `test/markup/r/roxygen.txt` for an example. - className: "doctag", - begin: "@examples", - starts: { - contains: [ - { begin: /\n/ }, - { - begin: /#'\s*(?=@[a-zA-Z]+)/, - endsParent: true - }, - { - begin: /#'/, - end: /$/, - excludeBegin: true - } - ] - } - }, - { - // Handle `@param` to highlight the parameter name following - // after. - className: "doctag", - begin: "@param", - end: /$/, - contains: [ - { - className: "variable", - variants: [ - { begin: IDENT_RE }, - { begin: /`(?:\\.|[^`\\])+`/ } - ], - endsParent: true - } - ] - }, - { - className: "doctag", - begin: /@[a-zA-Z]+/ - }, - { - className: "meta-keyword", - begin: /\\[a-zA-Z]+/ - } - ] - } - ), - hljs.HASH_COMMENT_MODE, - { - className: "string", - contains: [hljs.BACKSLASH_ESCAPE], - variants: [ - hljs.END_SAME_AS_BEGIN({ begin: /[rR]"(-*)\(/, end: /\)(-*)"/ }), - hljs.END_SAME_AS_BEGIN({ begin: /[rR]"(-*)\{/, end: /\}(-*)"/ }), - hljs.END_SAME_AS_BEGIN({ begin: /[rR]"(-*)\[/, end: /\](-*)"/ }), - hljs.END_SAME_AS_BEGIN({ begin: /[rR]'(-*)\(/, end: /\)(-*)'/ }), - hljs.END_SAME_AS_BEGIN({ begin: /[rR]'(-*)\{/, end: /\}(-*)'/ }), - hljs.END_SAME_AS_BEGIN({ begin: /[rR]'(-*)\[/, end: /\](-*)'/ }), - { begin: '"', end: '"', relevance: 0 }, - { begin: "'", end: "'", relevance: 0 } - ] - }, - { - className: "number", - relevance: 0, - beforeMatch: /([^a-zA-Z0-9._])/, - // not part of an identifier - variants: [ - // TODO: replace with negative look-behind when available - // { begin: /(? source(x)).join(""); - return joined; - } - function ruby2(hljs) { - const RUBY_METHOD_RE = "([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)"; - const RUBY_KEYWORDS = { - keyword: "and then defined module in return redo if BEGIN retry end for self when next until do begin unless END rescue else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor __FILE__", - built_in: "proc lambda", - literal: "true false nil" - }; - const YARDOCTAG = { - className: "doctag", - begin: "@[A-Za-z]+" - }; - const IRB_OBJECT = { - begin: "#<", - end: ">" - }; - const COMMENT_MODES = [ - hljs.COMMENT( - "#", - "$", - { - contains: [YARDOCTAG] - } - ), - hljs.COMMENT( - "^=begin", - "^=end", - { - contains: [YARDOCTAG], - relevance: 10 - } - ), - hljs.COMMENT("^__END__", "\\n$") - ]; - const SUBST = { - className: "subst", - begin: /#\{/, - end: /\}/, - keywords: RUBY_KEYWORDS - }; - const STRING = { - className: "string", - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST - ], - variants: [ - { - begin: /'/, - end: /'/ - }, - { - begin: /"/, - end: /"/ - }, - { - begin: /`/, - end: /`/ - }, - { - begin: /%[qQwWx]?\(/, - end: /\)/ - }, - { - begin: /%[qQwWx]?\[/, - end: /\]/ - }, - { - begin: /%[qQwWx]?\{/, - end: /\}/ - }, - { - begin: /%[qQwWx]?/ - }, - { - begin: /%[qQwWx]?\//, - end: /\// - }, - { - begin: /%[qQwWx]?%/, - end: /%/ - }, - { - begin: /%[qQwWx]?-/, - end: /-/ - }, - { - begin: /%[qQwWx]?\|/, - end: /\|/ - }, - // in the following expressions, \B in the beginning suppresses recognition of ?-sequences - // where ? is the last character of a preceding identifier, as in: `func?4` - { - begin: /\B\?(\\\d{1,3})/ - }, - { - begin: /\B\?(\\x[A-Fa-f0-9]{1,2})/ - }, - { - begin: /\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/ - }, - { - begin: /\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/ - }, - { - begin: /\B\?\\(c|C-)[\x20-\x7e]/ - }, - { - begin: /\B\?\\?\S/ - }, - { - // heredocs - begin: /<<[-~]?'?(\w+)\n(?:[^\n]*\n)*?\s*\1\b/, - returnBegin: true, - contains: [ - { - begin: /<<[-~]?'?/ - }, - hljs.END_SAME_AS_BEGIN({ - begin: /(\w+)/, - end: /(\w+)/, - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST - ] - }) - ] - } - ] - }; - const decimal = "[1-9](_?[0-9])*|0"; - const digits = "[0-9](_?[0-9])*"; - const NUMBER = { - className: "number", - relevance: 0, - variants: [ - // decimal integer/float, optionally exponential or rational, optionally imaginary - { - begin: `\\b(${decimal})(\\.(${digits}))?([eE][+-]?(${digits})|r)?i?\\b` - }, - // explicit decimal/binary/octal/hexadecimal integer, - // optionally rational and/or imaginary - { - begin: "\\b0[dD][0-9](_?[0-9])*r?i?\\b" - }, - { - begin: "\\b0[bB][0-1](_?[0-1])*r?i?\\b" - }, - { - begin: "\\b0[oO][0-7](_?[0-7])*r?i?\\b" - }, - { - begin: "\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b" - }, - // 0-prefixed implicit octal integer, optionally rational and/or imaginary - { - begin: "\\b0(_?[0-7])+r?i?\\b" - } - ] - }; - const PARAMS = { - className: "params", - begin: "\\(", - end: "\\)", - endsParent: true, - keywords: RUBY_KEYWORDS - }; - const RUBY_DEFAULT_CONTAINS = [ - STRING, - { - className: "class", - beginKeywords: "class module", - end: "$|;", - illegal: /=/, - contains: [ - hljs.inherit(hljs.TITLE_MODE, { - begin: "[A-Za-z_]\\w*(::\\w+)*(\\?|!)?" - }), - { - begin: "<\\s*", - contains: [ - { - begin: "(" + hljs.IDENT_RE + "::)?" + hljs.IDENT_RE, - // we already get points for <, we don't need poitns - // for the name also - relevance: 0 - } - ] - } - ].concat(COMMENT_MODES) - }, - { - className: "function", - // def method_name( - // def method_name; - // def method_name (end of line) - begin: concat(/def\s+/, lookahead(RUBY_METHOD_RE + "\\s*(\\(|;|$)")), - relevance: 0, - // relevance comes from kewords - keywords: "def", - end: "$|;", - contains: [ - hljs.inherit(hljs.TITLE_MODE, { - begin: RUBY_METHOD_RE - }), - PARAMS - ].concat(COMMENT_MODES) - }, - { - // swallow namespace qualifiers before symbols - begin: hljs.IDENT_RE + "::" - }, - { - className: "symbol", - begin: hljs.UNDERSCORE_IDENT_RE + "(!|\\?)?:", - relevance: 0 - }, - { - className: "symbol", - begin: ":(?!\\s)", - contains: [ - STRING, - { - begin: RUBY_METHOD_RE - } - ], - relevance: 0 - }, - NUMBER, - { - // negative-look forward attemps to prevent false matches like: - // @ident@ or $ident$ that might indicate this is not ruby at all - className: "variable", - begin: `(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])` - }, - { - className: "params", - begin: /\|/, - end: /\|/, - relevance: 0, - // this could be a lot of things (in other languages) other than params - keywords: RUBY_KEYWORDS - }, - { - // regexp container - begin: "(" + hljs.RE_STARTERS_RE + "|unless)\\s*", - keywords: "unless", - contains: [ - { - className: "regexp", - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST - ], - illegal: /\n/, - variants: [ - { - begin: "/", - end: "/[a-z]*" - }, - { - begin: /%r\{/, - end: /\}[a-z]*/ - }, - { - begin: "%r\\(", - end: "\\)[a-z]*" - }, - { - begin: "%r!", - end: "![a-z]*" - }, - { - begin: "%r\\[", - end: "\\][a-z]*" - } - ] - } - ].concat(IRB_OBJECT, COMMENT_MODES), - relevance: 0 - } - ].concat(IRB_OBJECT, COMMENT_MODES); - SUBST.contains = RUBY_DEFAULT_CONTAINS; - PARAMS.contains = RUBY_DEFAULT_CONTAINS; - const SIMPLE_PROMPT = "[>?]>"; - const DEFAULT_PROMPT = "[\\w#]+\\(\\w+\\):\\d+:\\d+>"; - const RVM_PROMPT = "(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"; - const IRB_DEFAULT = [ - { - begin: /^\s*=>/, - starts: { - end: "$", - contains: RUBY_DEFAULT_CONTAINS - } - }, - { - className: "meta", - begin: "^(" + SIMPLE_PROMPT + "|" + DEFAULT_PROMPT + "|" + RVM_PROMPT + ")(?=[ ])", - starts: { - end: "$", - contains: RUBY_DEFAULT_CONTAINS - } - } - ]; - COMMENT_MODES.unshift(IRB_OBJECT); - return { - name: "Ruby", - aliases: [ - "rb", - "gemspec", - "podspec", - "thor", - "irb" - ], - keywords: RUBY_KEYWORDS, - illegal: /\/\*/, - contains: [ - hljs.SHEBANG({ - binary: "ruby" - }) - ].concat(IRB_DEFAULT).concat(COMMENT_MODES).concat(RUBY_DEFAULT_CONTAINS) - }; - } - module2.exports = ruby2; - } -}); - -// ../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/rust.js -var require_rust = __commonJS({ - "../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/rust.js"(exports2, module2) { - function rust2(hljs) { - const NUM_SUFFIX = "([ui](8|16|32|64|128|size)|f(32|64))?"; - const KEYWORDS = "abstract as async await become box break const continue crate do dyn else enum extern false final fn for if impl in let loop macro match mod move mut override priv pub ref return self Self static struct super trait true try type typeof unsafe unsized use virtual where while yield"; - const BUILTINS = ( - // functions - "drop i8 i16 i32 i64 i128 isize u8 u16 u32 u64 u128 usize f32 f64 str char bool Box Option Result String Vec Copy Send Sized Sync Drop Fn FnMut FnOnce ToOwned Clone Debug PartialEq PartialOrd Eq Ord AsRef AsMut Into From Default Iterator Extend IntoIterator DoubleEndedIterator ExactSizeIterator SliceConcatExt ToString assert! assert_eq! bitflags! bytes! cfg! col! concat! concat_idents! debug_assert! debug_assert_eq! env! panic! file! format! format_args! include_bin! include_str! line! local_data_key! module_path! option_env! print! println! select! stringify! try! unimplemented! unreachable! vec! write! writeln! macro_rules! assert_ne! debug_assert_ne!" - ); - return { - name: "Rust", - aliases: ["rs"], - keywords: { - $pattern: hljs.IDENT_RE + "!?", - keyword: KEYWORDS, - literal: "true false Some None Ok Err", - built_in: BUILTINS - }, - illegal: "" - } - ] - }; - } - module2.exports = rust2; - } -}); - -// ../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/scala.js -var require_scala = __commonJS({ - "../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/scala.js"(exports2, module2) { - function scala2(hljs) { - const ANNOTATION = { - className: "meta", - begin: "@[A-Za-z]+" - }; - const SUBST = { - className: "subst", - variants: [ - { - begin: "\\$[A-Za-z0-9_]+" - }, - { - begin: /\$\{/, - end: /\}/ - } - ] - }; - const STRING = { - className: "string", - variants: [ - { - begin: '"""', - end: '"""' - }, - { - begin: '"', - end: '"', - illegal: "\\n", - contains: [hljs.BACKSLASH_ESCAPE] - }, - { - begin: '[a-z]+"', - end: '"', - illegal: "\\n", - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST - ] - }, - { - className: "string", - begin: '[a-z]+"""', - end: '"""', - contains: [SUBST], - relevance: 10 - } - ] - }; - const SYMBOL = { - className: "symbol", - begin: "'\\w[\\w\\d_]*(?!')" - }; - const TYPE4 = { - className: "type", - begin: "\\b[A-Z][A-Za-z0-9_]*", - relevance: 0 - }; - const NAME2 = { - className: "title", - begin: /[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/, - relevance: 0 - }; - const CLASS = { - className: "class", - beginKeywords: "class object trait type", - end: /[:={\[\n;]/, - excludeEnd: true, - contains: [ - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - { - beginKeywords: "extends with", - relevance: 10 - }, - { - begin: /\[/, - end: /\]/, - excludeBegin: true, - excludeEnd: true, - relevance: 0, - contains: [TYPE4] - }, - { - className: "params", - begin: /\(/, - end: /\)/, - excludeBegin: true, - excludeEnd: true, - relevance: 0, - contains: [TYPE4] - }, - NAME2 - ] - }; - const METHOD = { - className: "function", - beginKeywords: "def", - end: /[:={\[(\n;]/, - excludeEnd: true, - contains: [NAME2] - }; - return { - name: "Scala", - keywords: { - literal: "true false null", - keyword: "type yield lazy override def with val var sealed abstract private trait object if forSome for while throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit" - }, - contains: [ - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - STRING, - SYMBOL, - TYPE4, - METHOD, - CLASS, - hljs.C_NUMBER_MODE, - ANNOTATION - ] - }; - } - module2.exports = scala2; - } -}); - -// ../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/swift.js -var require_swift = __commonJS({ - "../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/swift.js"(exports2, module2) { - function source(re) { - if (!re) - return null; - if (typeof re === "string") - return re; - return re.source; - } - function lookahead(re) { - return concat("(?=", re, ")"); - } - function concat(...args3) { - const joined = args3.map((x) => source(x)).join(""); - return joined; - } - function either(...args3) { - const joined = "(" + args3.map((x) => source(x)).join("|") + ")"; - return joined; - } - var keywordWrapper = (keyword) => concat( - /\b/, - keyword, - /\w$/.test(keyword) ? /\b/ : /\B/ - ); - var dotKeywords = [ - "Protocol", - // contextual - "Type" - // contextual - ].map(keywordWrapper); - var optionalDotKeywords = [ - "init", - "self" - ].map(keywordWrapper); - var keywordTypes = [ - "Any", - "Self" - ]; - var keywords = [ - // strings below will be fed into the regular `keywords` engine while regex - // will result in additional modes being created to scan for those keywords to - // avoid conflicts with other rules - "associatedtype", - "async", - "await", - /as\?/, - // operator - /as!/, - // operator - "as", - // operator - "break", - "case", - "catch", - "class", - "continue", - "convenience", - // contextual - "default", - "defer", - "deinit", - "didSet", - // contextual - "do", - "dynamic", - // contextual - "else", - "enum", - "extension", - "fallthrough", - /fileprivate\(set\)/, - "fileprivate", - "final", - // contextual - "for", - "func", - "get", - // contextual - "guard", - "if", - "import", - "indirect", - // contextual - "infix", - // contextual - /init\?/, - /init!/, - "inout", - /internal\(set\)/, - "internal", - "in", - "is", - // operator - "lazy", - // contextual - "let", - "mutating", - // contextual - "nonmutating", - // contextual - /open\(set\)/, - // contextual - "open", - // contextual - "operator", - "optional", - // contextual - "override", - // contextual - "postfix", - // contextual - "precedencegroup", - "prefix", - // contextual - /private\(set\)/, - "private", - "protocol", - /public\(set\)/, - "public", - "repeat", - "required", - // contextual - "rethrows", - "return", - "set", - // contextual - "some", - // contextual - "static", - "struct", - "subscript", - "super", - "switch", - "throws", - "throw", - /try\?/, - // operator - /try!/, - // operator - "try", - // operator - "typealias", - /unowned\(safe\)/, - // contextual - /unowned\(unsafe\)/, - // contextual - "unowned", - // contextual - "var", - "weak", - // contextual - "where", - "while", - "willSet" - // contextual - ]; - var literals = [ - "false", - "nil", - "true" - ]; - var precedencegroupKeywords = [ - "assignment", - "associativity", - "higherThan", - "left", - "lowerThan", - "none", - "right" - ]; - var numberSignKeywords = [ - "#colorLiteral", - "#column", - "#dsohandle", - "#else", - "#elseif", - "#endif", - "#error", - "#file", - "#fileID", - "#fileLiteral", - "#filePath", - "#function", - "#if", - "#imageLiteral", - "#keyPath", - "#line", - "#selector", - "#sourceLocation", - "#warn_unqualified_access", - "#warning" - ]; - var builtIns = [ - "abs", - "all", - "any", - "assert", - "assertionFailure", - "debugPrint", - "dump", - "fatalError", - "getVaList", - "isKnownUniquelyReferenced", - "max", - "min", - "numericCast", - "pointwiseMax", - "pointwiseMin", - "precondition", - "preconditionFailure", - "print", - "readLine", - "repeatElement", - "sequence", - "stride", - "swap", - "swift_unboxFromSwiftValueWithType", - "transcode", - "type", - "unsafeBitCast", - "unsafeDowncast", - "withExtendedLifetime", - "withUnsafeMutablePointer", - "withUnsafePointer", - "withVaList", - "withoutActuallyEscaping", - "zip" - ]; - var operatorHead = either( - /[/=\-+!*%<>&|^~?]/, - /[\u00A1-\u00A7]/, - /[\u00A9\u00AB]/, - /[\u00AC\u00AE]/, - /[\u00B0\u00B1]/, - /[\u00B6\u00BB\u00BF\u00D7\u00F7]/, - /[\u2016-\u2017]/, - /[\u2020-\u2027]/, - /[\u2030-\u203E]/, - /[\u2041-\u2053]/, - /[\u2055-\u205E]/, - /[\u2190-\u23FF]/, - /[\u2500-\u2775]/, - /[\u2794-\u2BFF]/, - /[\u2E00-\u2E7F]/, - /[\u3001-\u3003]/, - /[\u3008-\u3020]/, - /[\u3030]/ - ); - var operatorCharacter = either( - operatorHead, - /[\u0300-\u036F]/, - /[\u1DC0-\u1DFF]/, - /[\u20D0-\u20FF]/, - /[\uFE00-\uFE0F]/, - /[\uFE20-\uFE2F]/ - // TODO: The following characters are also allowed, but the regex isn't supported yet. - // /[\u{E0100}-\u{E01EF}]/u - ); - var operator = concat(operatorHead, operatorCharacter, "*"); - var identifierHead = either( - /[a-zA-Z_]/, - /[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/, - /[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/, - /[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/, - /[\u1E00-\u1FFF]/, - /[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/, - /[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/, - /[\u2C00-\u2DFF\u2E80-\u2FFF]/, - /[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/, - /[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/, - /[\uFE47-\uFEFE\uFF00-\uFFFD]/ - // Should be /[\uFE47-\uFFFD]/, but we have to exclude FEFF. - // The following characters are also allowed, but the regexes aren't supported yet. - // /[\u{10000}-\u{1FFFD}\u{20000-\u{2FFFD}\u{30000}-\u{3FFFD}\u{40000}-\u{4FFFD}]/u, - // /[\u{50000}-\u{5FFFD}\u{60000-\u{6FFFD}\u{70000}-\u{7FFFD}\u{80000}-\u{8FFFD}]/u, - // /[\u{90000}-\u{9FFFD}\u{A0000-\u{AFFFD}\u{B0000}-\u{BFFFD}\u{C0000}-\u{CFFFD}]/u, - // /[\u{D0000}-\u{DFFFD}\u{E0000-\u{EFFFD}]/u - ); - var identifierCharacter = either( - identifierHead, - /\d/, - /[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/ - ); - var identifier = concat(identifierHead, identifierCharacter, "*"); - var typeIdentifier = concat(/[A-Z]/, identifierCharacter, "*"); - var keywordAttributes = [ - "autoclosure", - concat(/convention\(/, either("swift", "block", "c"), /\)/), - "discardableResult", - "dynamicCallable", - "dynamicMemberLookup", - "escaping", - "frozen", - "GKInspectable", - "IBAction", - "IBDesignable", - "IBInspectable", - "IBOutlet", - "IBSegueAction", - "inlinable", - "main", - "nonobjc", - "NSApplicationMain", - "NSCopying", - "NSManaged", - concat(/objc\(/, identifier, /\)/), - "objc", - "objcMembers", - "propertyWrapper", - "requires_stored_property_inits", - "testable", - "UIApplicationMain", - "unknown", - "usableFromInline" - ]; - var availabilityKeywords = [ - "iOS", - "iOSApplicationExtension", - "macOS", - "macOSApplicationExtension", - "macCatalyst", - "macCatalystApplicationExtension", - "watchOS", - "watchOSApplicationExtension", - "tvOS", - "tvOSApplicationExtension", - "swift" - ]; - function swift2(hljs) { - const WHITESPACE = { - match: /\s+/, - relevance: 0 - }; - const BLOCK_COMMENT = hljs.COMMENT( - "/\\*", - "\\*/", - { - contains: ["self"] - } - ); - const COMMENTS = [ - hljs.C_LINE_COMMENT_MODE, - BLOCK_COMMENT - ]; - const DOT_KEYWORD = { - className: "keyword", - begin: concat(/\./, lookahead(either(...dotKeywords, ...optionalDotKeywords))), - end: either(...dotKeywords, ...optionalDotKeywords), - excludeBegin: true - }; - const KEYWORD_GUARD = { - // Consume .keyword to prevent highlighting properties and methods as keywords. - match: concat(/\./, either(...keywords)), - relevance: 0 - }; - const PLAIN_KEYWORDS = keywords.filter((kw) => typeof kw === "string").concat(["_|0"]); - const REGEX_KEYWORDS = keywords.filter((kw) => typeof kw !== "string").concat(keywordTypes).map(keywordWrapper); - const KEYWORD = { - variants: [ - { - className: "keyword", - match: either(...REGEX_KEYWORDS, ...optionalDotKeywords) - } - ] - }; - const KEYWORDS = { - $pattern: either( - /\b\w+/, - // regular keywords - /#\w+/ - // number keywords - ), - keyword: PLAIN_KEYWORDS.concat(numberSignKeywords), - literal: literals - }; - const KEYWORD_MODES = [ - DOT_KEYWORD, - KEYWORD_GUARD, - KEYWORD - ]; - const BUILT_IN_GUARD = { - // Consume .built_in to prevent highlighting properties and methods. - match: concat(/\./, either(...builtIns)), - relevance: 0 - }; - const BUILT_IN = { - className: "built_in", - match: concat(/\b/, either(...builtIns), /(?=\()/) - }; - const BUILT_INS = [ - BUILT_IN_GUARD, - BUILT_IN - ]; - const OPERATOR_GUARD = { - // Prevent -> from being highlighting as an operator. - match: /->/, - relevance: 0 - }; - const OPERATOR = { - className: "operator", - relevance: 0, - variants: [ - { - match: operator - }, - { - // dot-operator: only operators that start with a dot are allowed to use dots as - // characters (..., ...<, .*, etc). So there rule here is: a dot followed by one or more - // characters that may also include dots. - match: `\\.(\\.|${operatorCharacter})+` - } - ] - }; - const OPERATORS = [ - OPERATOR_GUARD, - OPERATOR - ]; - const decimalDigits = "([0-9]_*)+"; - const hexDigits = "([0-9a-fA-F]_*)+"; - const NUMBER = { - className: "number", - relevance: 0, - variants: [ - // decimal floating-point-literal (subsumes decimal-literal) - { - match: `\\b(${decimalDigits})(\\.(${decimalDigits}))?([eE][+-]?(${decimalDigits}))?\\b` - }, - // hexadecimal floating-point-literal (subsumes hexadecimal-literal) - { - match: `\\b0x(${hexDigits})(\\.(${hexDigits}))?([pP][+-]?(${decimalDigits}))?\\b` - }, - // octal-literal - { - match: /\b0o([0-7]_*)+\b/ - }, - // binary-literal - { - match: /\b0b([01]_*)+\b/ - } - ] - }; - const ESCAPED_CHARACTER = (rawDelimiter = "") => ({ - className: "subst", - variants: [ - { - match: concat(/\\/, rawDelimiter, /[0\\tnr"']/) - }, - { - match: concat(/\\/, rawDelimiter, /u\{[0-9a-fA-F]{1,8}\}/) - } - ] - }); - const ESCAPED_NEWLINE = (rawDelimiter = "") => ({ - className: "subst", - match: concat(/\\/, rawDelimiter, /[\t ]*(?:[\r\n]|\r\n)/) - }); - const INTERPOLATION = (rawDelimiter = "") => ({ - className: "subst", - label: "interpol", - begin: concat(/\\/, rawDelimiter, /\(/), - end: /\)/ - }); - const MULTILINE_STRING = (rawDelimiter = "") => ({ - begin: concat(rawDelimiter, /"""/), - end: concat(/"""/, rawDelimiter), - contains: [ - ESCAPED_CHARACTER(rawDelimiter), - ESCAPED_NEWLINE(rawDelimiter), - INTERPOLATION(rawDelimiter) - ] - }); - const SINGLE_LINE_STRING = (rawDelimiter = "") => ({ - begin: concat(rawDelimiter, /"/), - end: concat(/"/, rawDelimiter), - contains: [ - ESCAPED_CHARACTER(rawDelimiter), - INTERPOLATION(rawDelimiter) - ] - }); - const STRING = { - className: "string", - variants: [ - MULTILINE_STRING(), - MULTILINE_STRING("#"), - MULTILINE_STRING("##"), - MULTILINE_STRING("###"), - SINGLE_LINE_STRING(), - SINGLE_LINE_STRING("#"), - SINGLE_LINE_STRING("##"), - SINGLE_LINE_STRING("###") - ] - }; - const QUOTED_IDENTIFIER = { - match: concat(/`/, identifier, /`/) - }; - const IMPLICIT_PARAMETER = { - className: "variable", - match: /\$\d+/ - }; - const PROPERTY_WRAPPER_PROJECTION = { - className: "variable", - match: `\\$${identifierCharacter}+` - }; - const IDENTIFIERS = [ - QUOTED_IDENTIFIER, - IMPLICIT_PARAMETER, - PROPERTY_WRAPPER_PROJECTION - ]; - const AVAILABLE_ATTRIBUTE = { - match: /(@|#)available/, - className: "keyword", - starts: { - contains: [ - { - begin: /\(/, - end: /\)/, - keywords: availabilityKeywords, - contains: [ - ...OPERATORS, - NUMBER, - STRING - ] - } - ] - } - }; - const KEYWORD_ATTRIBUTE = { - className: "keyword", - match: concat(/@/, either(...keywordAttributes)) - }; - const USER_DEFINED_ATTRIBUTE = { - className: "meta", - match: concat(/@/, identifier) - }; - const ATTRIBUTES = [ - AVAILABLE_ATTRIBUTE, - KEYWORD_ATTRIBUTE, - USER_DEFINED_ATTRIBUTE - ]; - const TYPE4 = { - match: lookahead(/\b[A-Z]/), - relevance: 0, - contains: [ - { - // Common Apple frameworks, for relevance boost - className: "type", - match: concat(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/, identifierCharacter, "+") - }, - { - // Type identifier - className: "type", - match: typeIdentifier, - relevance: 0 - }, - { - // Optional type - match: /[?!]+/, - relevance: 0 - }, - { - // Variadic parameter - match: /\.\.\./, - relevance: 0 - }, - { - // Protocol composition - match: concat(/\s+&\s+/, lookahead(typeIdentifier)), - relevance: 0 - } - ] - }; - const GENERIC_ARGUMENTS = { - begin: //, - keywords: KEYWORDS, - contains: [ - ...COMMENTS, - ...KEYWORD_MODES, - ...ATTRIBUTES, - OPERATOR_GUARD, - TYPE4 - ] - }; - TYPE4.contains.push(GENERIC_ARGUMENTS); - const TUPLE_ELEMENT_NAME = { - match: concat(identifier, /\s*:/), - keywords: "_|0", - relevance: 0 - }; - const TUPLE = { - begin: /\(/, - end: /\)/, - relevance: 0, - keywords: KEYWORDS, - contains: [ - "self", - TUPLE_ELEMENT_NAME, - ...COMMENTS, - ...KEYWORD_MODES, - ...BUILT_INS, - ...OPERATORS, - NUMBER, - STRING, - ...IDENTIFIERS, - ...ATTRIBUTES, - TYPE4 - ] - }; - const FUNC_PLUS_TITLE = { - beginKeywords: "func", - contains: [ - { - className: "title", - match: either(QUOTED_IDENTIFIER.match, identifier, operator), - // Required to make sure the opening < of the generic parameter clause - // isn't parsed as a second title. - endsParent: true, - relevance: 0 - }, - WHITESPACE - ] - }; - const GENERIC_PARAMETERS = { - begin: //, - contains: [ - ...COMMENTS, - TYPE4 - ] - }; - const FUNCTION_PARAMETER_NAME = { - begin: either( - lookahead(concat(identifier, /\s*:/)), - lookahead(concat(identifier, /\s+/, identifier, /\s*:/)) - ), - end: /:/, - relevance: 0, - contains: [ - { - className: "keyword", - match: /\b_\b/ - }, - { - className: "params", - match: identifier - } - ] - }; - const FUNCTION_PARAMETERS = { - begin: /\(/, - end: /\)/, - keywords: KEYWORDS, - contains: [ - FUNCTION_PARAMETER_NAME, - ...COMMENTS, - ...KEYWORD_MODES, - ...OPERATORS, - NUMBER, - STRING, - ...ATTRIBUTES, - TYPE4, - TUPLE - ], - endsParent: true, - illegal: /["']/ - }; - const FUNCTION = { - className: "function", - match: lookahead(/\bfunc\b/), - contains: [ - FUNC_PLUS_TITLE, - GENERIC_PARAMETERS, - FUNCTION_PARAMETERS, - WHITESPACE - ], - illegal: [ - /\[/, - /%/ - ] - }; - const INIT_SUBSCRIPT = { - className: "function", - match: /\b(subscript|init[?!]?)\s*(?=[<(])/, - keywords: { - keyword: "subscript init init? init!", - $pattern: /\w+[?!]?/ - }, - contains: [ - GENERIC_PARAMETERS, - FUNCTION_PARAMETERS, - WHITESPACE - ], - illegal: /\[|%/ - }; - const OPERATOR_DECLARATION = { - beginKeywords: "operator", - end: hljs.MATCH_NOTHING_RE, - contains: [ - { - className: "title", - match: operator, - endsParent: true, - relevance: 0 - } - ] - }; - const PRECEDENCEGROUP = { - beginKeywords: "precedencegroup", - end: hljs.MATCH_NOTHING_RE, - contains: [ - { - className: "title", - match: typeIdentifier, - relevance: 0 - }, - { - begin: /{/, - end: /}/, - relevance: 0, - endsParent: true, - keywords: [ - ...precedencegroupKeywords, - ...literals - ], - contains: [TYPE4] - } - ] - }; - for (const variant of STRING.variants) { - const interpolation = variant.contains.find((mode) => mode.label === "interpol"); - interpolation.keywords = KEYWORDS; - const submodes = [ - ...KEYWORD_MODES, - ...BUILT_INS, - ...OPERATORS, - NUMBER, - STRING, - ...IDENTIFIERS - ]; - interpolation.contains = [ - ...submodes, - { - begin: /\(/, - end: /\)/, - contains: [ - "self", - ...submodes - ] - } - ]; - } - return { - name: "Swift", - keywords: KEYWORDS, - contains: [ - ...COMMENTS, - FUNCTION, - INIT_SUBSCRIPT, - { - className: "class", - beginKeywords: "struct protocol class extension enum", - end: "\\{", - excludeEnd: true, - keywords: KEYWORDS, - contains: [ - hljs.inherit(hljs.TITLE_MODE, { - begin: /[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/ - }), - ...KEYWORD_MODES - ] - }, - OPERATOR_DECLARATION, - PRECEDENCEGROUP, - { - beginKeywords: "import", - end: /$/, - contains: [...COMMENTS], - relevance: 0 - }, - ...KEYWORD_MODES, - ...BUILT_INS, - ...OPERATORS, - NUMBER, - STRING, - ...IDENTIFIERS, - ...ATTRIBUTES, - TYPE4, - TUPLE - ] - }; - } - module2.exports = swift2; - } -}); - -// ../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/typescript.js -var require_typescript = __commonJS({ - "../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/typescript.js"(exports2, module2) { - var IDENT_RE = "[A-Za-z$_][0-9A-Za-z$_]*"; - var KEYWORDS = [ - "as", - // for exports - "in", - "of", - "if", - "for", - "while", - "finally", - "var", - "new", - "function", - "do", - "return", - "void", - "else", - "break", - "catch", - "instanceof", - "with", - "throw", - "case", - "default", - "try", - "switch", - "continue", - "typeof", - "delete", - "let", - "yield", - "const", - "class", - // JS handles these with a special rule - // "get", - // "set", - "debugger", - "async", - "await", - "static", - "import", - "from", - "export", - "extends" - ]; - var LITERALS2 = [ - "true", - "false", - "null", - "undefined", - "NaN", - "Infinity" - ]; - var TYPES = [ - "Intl", - "DataView", - "Number", - "Math", - "Date", - "String", - "RegExp", - "Object", - "Function", - "Boolean", - "Error", - "Symbol", - "Set", - "Map", - "WeakSet", - "WeakMap", - "Proxy", - "Reflect", - "JSON", - "Promise", - "Float64Array", - "Int16Array", - "Int32Array", - "Int8Array", - "Uint16Array", - "Uint32Array", - "Float32Array", - "Array", - "Uint8Array", - "Uint8ClampedArray", - "ArrayBuffer", - "BigInt64Array", - "BigUint64Array", - "BigInt" - ]; - var ERROR_TYPES = [ - "EvalError", - "InternalError", - "RangeError", - "ReferenceError", - "SyntaxError", - "TypeError", - "URIError" - ]; - var BUILT_IN_GLOBALS = [ - "setInterval", - "setTimeout", - "clearInterval", - "clearTimeout", - "require", - "exports", - "eval", - "isFinite", - "isNaN", - "parseFloat", - "parseInt", - "decodeURI", - "decodeURIComponent", - "encodeURI", - "encodeURIComponent", - "escape", - "unescape" - ]; - var BUILT_IN_VARIABLES = [ - "arguments", - "this", - "super", - "console", - "window", - "document", - "localStorage", - "module", - "global" - // Node.js - ]; - var BUILT_INS = [].concat( - BUILT_IN_GLOBALS, - BUILT_IN_VARIABLES, - TYPES, - ERROR_TYPES - ); - function source(re) { - if (!re) - return null; - if (typeof re === "string") - return re; - return re.source; - } - function lookahead(re) { - return concat("(?=", re, ")"); - } - function concat(...args3) { - const joined = args3.map((x) => source(x)).join(""); - return joined; - } - function javascript2(hljs) { - const hasClosingTag = (match2, { after }) => { - const tag = "", - end: "" - }; - const XML_TAG = { - begin: /<[A-Za-z0-9\\._:-]+/, - end: /\/[A-Za-z0-9\\._:-]+>|\/>/, - /** - * @param {RegExpMatchArray} match - * @param {CallbackResponse} response - */ - isTrulyOpeningTag: (match2, response) => { - const afterMatchIndex = match2[0].length + match2.index; - const nextChar = match2.input[afterMatchIndex]; - if (nextChar === "<") { - response.ignoreMatch(); - return; - } - if (nextChar === ">") { - if (!hasClosingTag(match2, { after: afterMatchIndex })) { - response.ignoreMatch(); - } - } - } - }; - const KEYWORDS$1 = { - $pattern: IDENT_RE, - keyword: KEYWORDS, - literal: LITERALS2, - built_in: BUILT_INS - }; - const decimalDigits = "[0-9](_?[0-9])*"; - const frac = `\\.(${decimalDigits})`; - const decimalInteger = `0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`; - const NUMBER = { - className: "number", - variants: [ - // DecimalLiteral - { begin: `(\\b(${decimalInteger})((${frac})|\\.)?|(${frac}))[eE][+-]?(${decimalDigits})\\b` }, - { begin: `\\b(${decimalInteger})\\b((${frac})\\b|\\.)?|(${frac})\\b` }, - // DecimalBigIntegerLiteral - { begin: `\\b(0|[1-9](_?[0-9])*)n\\b` }, - // NonDecimalIntegerLiteral - { begin: "\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b" }, - { begin: "\\b0[bB][0-1](_?[0-1])*n?\\b" }, - { begin: "\\b0[oO][0-7](_?[0-7])*n?\\b" }, - // LegacyOctalIntegerLiteral (does not include underscore separators) - // https://tc39.es/ecma262/#sec-additional-syntax-numeric-literals - { begin: "\\b0[0-7]+n?\\b" } - ], - relevance: 0 - }; - const SUBST = { - className: "subst", - begin: "\\$\\{", - end: "\\}", - keywords: KEYWORDS$1, - contains: [] - // defined later - }; - const HTML_TEMPLATE = { - begin: "html`", - end: "", - starts: { - end: "`", - returnEnd: false, - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST - ], - subLanguage: "xml" - } - }; - const CSS_TEMPLATE = { - begin: "css`", - end: "", - starts: { - end: "`", - returnEnd: false, - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST - ], - subLanguage: "css" - } - }; - const TEMPLATE_STRING = { - className: "string", - begin: "`", - end: "`", - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST - ] - }; - const JSDOC_COMMENT = hljs.COMMENT( - /\/\*\*(?!\/)/, - "\\*/", - { - relevance: 0, - contains: [ - { - className: "doctag", - begin: "@[A-Za-z]+", - contains: [ - { - className: "type", - begin: "\\{", - end: "\\}", - relevance: 0 - }, - { - className: "variable", - begin: IDENT_RE$1 + "(?=\\s*(-)|$)", - endsParent: true, - relevance: 0 - }, - // eat spaces (not newlines) so we can find - // types or variables - { - begin: /(?=[^\n])\s/, - relevance: 0 - } - ] - } - ] - } - ); - const COMMENT2 = { - className: "comment", - variants: [ - JSDOC_COMMENT, - hljs.C_BLOCK_COMMENT_MODE, - hljs.C_LINE_COMMENT_MODE - ] - }; - const SUBST_INTERNALS = [ - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - HTML_TEMPLATE, - CSS_TEMPLATE, - TEMPLATE_STRING, - NUMBER, - hljs.REGEXP_MODE - ]; - SUBST.contains = SUBST_INTERNALS.concat({ - // we need to pair up {} inside our subst to prevent - // it from ending too early by matching another } - begin: /\{/, - end: /\}/, - keywords: KEYWORDS$1, - contains: [ - "self" - ].concat(SUBST_INTERNALS) - }); - const SUBST_AND_COMMENTS = [].concat(COMMENT2, SUBST.contains); - const PARAMS_CONTAINS = SUBST_AND_COMMENTS.concat([ - // eat recursive parens in sub expressions - { - begin: /\(/, - end: /\)/, - keywords: KEYWORDS$1, - contains: ["self"].concat(SUBST_AND_COMMENTS) - } - ]); - const PARAMS = { - className: "params", - begin: /\(/, - end: /\)/, - excludeBegin: true, - excludeEnd: true, - keywords: KEYWORDS$1, - contains: PARAMS_CONTAINS - }; - return { - name: "Javascript", - aliases: ["js", "jsx", "mjs", "cjs"], - keywords: KEYWORDS$1, - // this will be extended by TypeScript - exports: { PARAMS_CONTAINS }, - illegal: /#(?![$_A-z])/, - contains: [ - hljs.SHEBANG({ - label: "shebang", - binary: "node", - relevance: 5 - }), - { - label: "use_strict", - className: "meta", - relevance: 10, - begin: /^\s*['"]use (strict|asm)['"]/ - }, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - HTML_TEMPLATE, - CSS_TEMPLATE, - TEMPLATE_STRING, - COMMENT2, - NUMBER, - { - // object attr container - begin: concat( - /[{,\n]\s*/, - // we need to look ahead to make sure that we actually have an - // attribute coming up so we don't steal a comma from a potential - // "value" container - // - // NOTE: this might not work how you think. We don't actually always - // enter this mode and stay. Instead it might merely match `, - // ` and then immediately end after the , because it - // fails to find any actual attrs. But this still does the job because - // it prevents the value contain rule from grabbing this instead and - // prevening this rule from firing when we actually DO have keys. - lookahead(concat( - // we also need to allow for multiple possible comments inbetween - // the first key:value pairing - /(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/, - IDENT_RE$1 + "\\s*:" - )) - ), - relevance: 0, - contains: [ - { - className: "attr", - begin: IDENT_RE$1 + lookahead("\\s*:"), - relevance: 0 - } - ] - }, - { - // "value" container - begin: "(" + hljs.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*", - keywords: "return throw case", - contains: [ - COMMENT2, - hljs.REGEXP_MODE, - { - className: "function", - // we have to count the parens to make sure we actually have the - // correct bounding ( ) before the =>. There could be any number of - // sub-expressions inside also surrounded by parens. - begin: "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + hljs.UNDERSCORE_IDENT_RE + ")\\s*=>", - returnBegin: true, - end: "\\s*=>", - contains: [ - { - className: "params", - variants: [ - { - begin: hljs.UNDERSCORE_IDENT_RE, - relevance: 0 - }, - { - className: null, - begin: /\(\s*\)/, - skip: true - }, - { - begin: /\(/, - end: /\)/, - excludeBegin: true, - excludeEnd: true, - keywords: KEYWORDS$1, - contains: PARAMS_CONTAINS - } - ] - } - ] - }, - { - // could be a comma delimited list of params to a function call - begin: /,/, - relevance: 0 - }, - { - className: "", - begin: /\s/, - end: /\s*/, - skip: true - }, - { - // JSX - variants: [ - { begin: FRAGMENT.begin, end: FRAGMENT.end }, - { - begin: XML_TAG.begin, - // we carefully check the opening tag to see if it truly - // is a tag and not a false positive - "on:begin": XML_TAG.isTrulyOpeningTag, - end: XML_TAG.end - } - ], - subLanguage: "xml", - contains: [ - { - begin: XML_TAG.begin, - end: XML_TAG.end, - skip: true, - contains: ["self"] - } - ] - } - ], - relevance: 0 - }, - { - className: "function", - beginKeywords: "function", - end: /[{;]/, - excludeEnd: true, - keywords: KEYWORDS$1, - contains: [ - "self", - hljs.inherit(hljs.TITLE_MODE, { begin: IDENT_RE$1 }), - PARAMS - ], - illegal: /%/ - }, - { - // prevent this from getting swallowed up by function - // since they appear "function like" - beginKeywords: "while if switch catch for" - }, - { - className: "function", - // we have to count the parens to make sure we actually have the correct - // bounding ( ). There could be any number of sub-expressions inside - // also surrounded by parens. - begin: hljs.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{", - // end parens - returnBegin: true, - contains: [ - PARAMS, - hljs.inherit(hljs.TITLE_MODE, { begin: IDENT_RE$1 }) - ] - }, - // hack: prevents detection of keywords in some circumstances - // .keyword() - // $keyword = x - { - variants: [ - { begin: "\\." + IDENT_RE$1 }, - { begin: "\\$" + IDENT_RE$1 } - ], - relevance: 0 - }, - { - // ES6 class - className: "class", - beginKeywords: "class", - end: /[{;=]/, - excludeEnd: true, - illegal: /[:"[\]]/, - contains: [ - { beginKeywords: "extends" }, - hljs.UNDERSCORE_TITLE_MODE - ] - }, - { - begin: /\b(?=constructor)/, - end: /[{;]/, - excludeEnd: true, - contains: [ - hljs.inherit(hljs.TITLE_MODE, { begin: IDENT_RE$1 }), - "self", - PARAMS - ] - }, - { - begin: "(get|set)\\s+(?=" + IDENT_RE$1 + "\\()", - end: /\{/, - keywords: "get set", - contains: [ - hljs.inherit(hljs.TITLE_MODE, { begin: IDENT_RE$1 }), - { begin: /\(\)/ }, - // eat to avoid empty params - PARAMS - ] - }, - { - begin: /\$[(.]/ - // relevance booster for a pattern common to JS libs: `$(something)` and `$.something` - } - ] - }; - } - function typescript2(hljs) { - const IDENT_RE$1 = IDENT_RE; - const NAMESPACE = { - beginKeywords: "namespace", - end: /\{/, - excludeEnd: true - }; - const INTERFACE = { - beginKeywords: "interface", - end: /\{/, - excludeEnd: true, - keywords: "interface extends" - }; - const USE_STRICT = { - className: "meta", - relevance: 10, - begin: /^\s*['"]use strict['"]/ - }; - const TYPES2 = [ - "any", - "void", - "number", - "boolean", - "string", - "object", - "never", - "enum" - ]; - const TS_SPECIFIC_KEYWORDS = [ - "type", - "namespace", - "typedef", - "interface", - "public", - "private", - "protected", - "implements", - "declare", - "abstract", - "readonly" - ]; - const KEYWORDS$1 = { - $pattern: IDENT_RE, - keyword: KEYWORDS.concat(TS_SPECIFIC_KEYWORDS), - literal: LITERALS2, - built_in: BUILT_INS.concat(TYPES2) - }; - const DECORATOR = { - className: "meta", - begin: "@" + IDENT_RE$1 - }; - const swapMode = (mode, label, replacement) => { - const indx = mode.contains.findIndex((m) => m.label === label); - if (indx === -1) { - throw new Error("can not find mode to replace"); - } - mode.contains.splice(indx, 1, replacement); - }; - const tsLanguage = javascript2(hljs); - Object.assign(tsLanguage.keywords, KEYWORDS$1); - tsLanguage.exports.PARAMS_CONTAINS.push(DECORATOR); - tsLanguage.contains = tsLanguage.contains.concat([ - DECORATOR, - NAMESPACE, - INTERFACE - ]); - swapMode(tsLanguage, "shebang", hljs.SHEBANG()); - swapMode(tsLanguage, "use_strict", USE_STRICT); - const functionDeclaration = tsLanguage.contains.find((m) => m.className === "function"); - functionDeclaration.relevance = 0; - Object.assign(tsLanguage, { - name: "TypeScript", - aliases: ["ts", "tsx"] - }); - return tsLanguage; - } - module2.exports = typescript2; - } -}); - -// ../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/xml.js -var require_xml = __commonJS({ - "../node_modules/.pnpm/highlight.js@10.7.3/node_modules/highlight.js/lib/languages/xml.js"(exports2, module2) { - function source(re) { - if (!re) - return null; - if (typeof re === "string") - return re; - return re.source; - } - function lookahead(re) { - return concat("(?=", re, ")"); - } - function optional(re) { - return concat("(", re, ")?"); - } - function concat(...args3) { - const joined = args3.map((x) => source(x)).join(""); - return joined; - } - function either(...args3) { - const joined = "(" + args3.map((x) => source(x)).join("|") + ")"; - return joined; - } - function xml2(hljs) { - const TAG_NAME_RE = concat(/[A-Z_]/, optional(/[A-Z0-9_.-]*:/), /[A-Z0-9_.-]*/); - const XML_IDENT_RE = /[A-Za-z0-9._:-]+/; - const XML_ENTITIES = { - className: "symbol", - begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/ - }; - const XML_META_KEYWORDS = { - begin: /\s/, - contains: [ - { - className: "meta-keyword", - begin: /#?[a-z_][a-z1-9_-]+/, - illegal: /\n/ - } - ] - }; - const XML_META_PAR_KEYWORDS = hljs.inherit(XML_META_KEYWORDS, { - begin: /\(/, - end: /\)/ - }); - const APOS_META_STRING_MODE = hljs.inherit(hljs.APOS_STRING_MODE, { - className: "meta-string" - }); - const QUOTE_META_STRING_MODE = hljs.inherit(hljs.QUOTE_STRING_MODE, { - className: "meta-string" - }); - const TAG_INTERNALS = { - endsWithParent: true, - illegal: /`]+/ - } - ] - } - ] - } - ] - }; - return { - name: "HTML, XML", - aliases: [ - "html", - "xhtml", - "rss", - "atom", - "xjb", - "xsd", - "xsl", - "plist", - "wsf", - "svg" - ], - case_insensitive: true, - contains: [ - { - className: "meta", - begin: //, - relevance: 10, - contains: [ - XML_META_KEYWORDS, - QUOTE_META_STRING_MODE, - APOS_META_STRING_MODE, - XML_META_PAR_KEYWORDS, - { - begin: /\[/, - end: /\]/, - contains: [ - { - className: "meta", - begin: //, - contains: [ - XML_META_KEYWORDS, - XML_META_PAR_KEYWORDS, - QUOTE_META_STRING_MODE, - APOS_META_STRING_MODE - ] - } - ] - } - ] - }, - hljs.COMMENT( - //, - { - relevance: 10 - } - ), - { - begin: //, - relevance: 10 - }, - XML_ENTITIES, - { - className: "meta", - begin: /<\?xml/, - end: /\?>/, - relevance: 10 - }, - { - className: "tag", - /* - The lookahead pattern (?=...) ensures that 'begin' only matches - ')/, - end: />/, - keywords: { - name: "style" - }, - contains: [TAG_INTERNALS], - starts: { - end: /<\/style>/, - returnEnd: true, - subLanguage: [ - "css", - "xml" - ] - } - }, - { - className: "tag", - // See the comment in the