From 2cce60645c06b4259f6076d4f60f44acd8f99f4c Mon Sep 17 00:00:00 2001 From: Gordon Bockus Date: Mon, 4 Dec 2023 17:18:46 -0600 Subject: [PATCH] chore: first pass at bundling core --- dist/exported.d.ts | 6871 +++ dist/exported.js | 94770 ++++++++++++++++++++++++++++++++ dist/pino-file.js | 2973 + dist/pino-pipeline-worker.js | 56 + dist/pino-pretty.js | 10396 ++++ dist/pino-worker.js | 7313 +++ dist/thread-stream-worker.js | 122 + package.json | 5 +- scripts/build.js | 41 + src/deviceOauthService.ts | 2 +- src/status/streamingClient.ts | 10 +- src/util/zipWriter.ts | 8 +- tsconfig.json | 1 + yarn.lock | 469 +- 14 files changed, 123022 insertions(+), 15 deletions(-) create mode 100644 dist/exported.d.ts create mode 100644 dist/exported.js create mode 100644 dist/pino-file.js create mode 100644 dist/pino-pipeline-worker.js create mode 100644 dist/pino-pretty.js create mode 100644 dist/pino-worker.js create mode 100644 dist/thread-stream-worker.js create mode 100644 scripts/build.js diff --git a/dist/exported.d.ts b/dist/exported.d.ts new file mode 100644 index 0000000000..a6a756d940 --- /dev/null +++ b/dist/exported.d.ts @@ -0,0 +1,6871 @@ +declare module '@salesforce/core/config/authInfoConfig' { + import { AuthFields } from '@salesforce/core/org/index'; + import { ConfigFile } from '@salesforce/core/config/configFile'; + /** + * An auth config file that stores information such as access tokens, usernames, etc., + * in the global sfdx directory (~/.sfdx). + * + * ``` + * const authInfo = await AuthInfoConfig.create(AuthInfoConfig.getOptions(username)); + * ``` + */ + export class AuthInfoConfig extends ConfigFile { + protected static encryptedKeys: RegExp[]; + /** + * Gets the config options for a given org ID. + * + * @param username The username for the org. + */ + static getOptions(username: string): ConfigFile.Options; + } +} +declare module '@salesforce/core/config/config' { + import { JsonPrimitive, Nullable } from '@salesforce/ts-types'; + import { OrgConfigProperties } from '@salesforce/core/org/orgConfigProperties'; + import { ConfigFile } from '@salesforce/core/config/configFile'; + import { ConfigContents, ConfigValue } from '@salesforce/core/config/configStore'; + /** + * Interface for meta information about config properties + */ + export interface ConfigPropertyMeta { + /** + * The config property name. + */ + key: string; + /** + * Description + */ + description: string; + /** + * Reference to the config data input validation. + */ + input?: ConfigPropertyMetaInput; + /** + * True if the property should be indirectly hidden from the user. + */ + hidden?: boolean; + /** + * True if the property values should be stored encrypted. + */ + encrypted?: boolean; + /** + * True if the property is deprecated + */ + deprecated?: boolean; + /** + * Reference to config property name that will eventually replace this one. + * Is only used if deprecated is set to true. + */ + newKey?: string; + } + /** + * Config property input validation + */ + export interface ConfigPropertyMetaInput { + /** + * Tests if the input value is valid and returns true if the input data is valid. + * + * @param value The input value. + */ + validator: (value: ConfigValue) => boolean; + /** + * The message to return in the error if the validation fails. + */ + failedMessage: string | ((value: ConfigValue) => string); + } + export enum SfConfigProperties { + /** + * Disables telemetry reporting + */ + DISABLE_TELEMETRY = 'disable-telemetry', + } + export const SF_ALLOWED_PROPERTIES: { + key: SfConfigProperties; + description: string; + input: { + validator: (value: ConfigValue) => boolean; + failedMessage: string; + }; + }[]; + export enum SfdxPropertyKeys { + /** + * Username associated with the default dev hub org. + * + * @deprecated Replaced by OrgConfigProperties.TARGET_DEV_HUB in v3 {@link https://github.com/forcedotcom/sfdx-core/blob/v3/MIGRATING_V2-V3.md#config} + * will remain in v3 for the foreseeable future so that `sfdx-core` can map between `sf` and `sfdx` config values + */ + DEFAULT_DEV_HUB_USERNAME = 'defaultdevhubusername', + /** + * Username associate with the default org. + * + * @deprecated Replaced by OrgConfigProperties.TARGET_ORG in v3 {@link https://github.com/forcedotcom/sfdx-core/blob/v3/MIGRATING_V2-V3.md#config} + * will remain in v3 for the foreseeable future so that `sfdx-core` can map between `sf` and `sfdx` config values + */ + DEFAULT_USERNAME = 'defaultusername', + /** + * The sid for the debugger configuration. + * + * @deprecated Replaced by OrgConfigProperties.ORG_ISV_DEBUGGER_SID in v3 {@link https://github.com/forcedotcom/sfdx-core/blob/v3/MIGRATING_V2-V3.md#config} + */ + ISV_DEBUGGER_SID = 'isvDebuggerSid', + /** + * The url for the debugger configuration. + * + * @deprecated Replaced by OrgConfigProperties.ORG_ISV_DEBUGGER_URL in v3 {@link https://github.com/forcedotcom/sfdx-core/blob/v3/MIGRATING_V2-V3.md#config} + */ + ISV_DEBUGGER_URL = 'isvDebuggerUrl', + /** + * The api version + * + * @deprecated Replaced by OrgConfigProperties.ORG_API_VERSION in v3 {@link https://github.com/forcedotcom/sfdx-core/blob/v3/MIGRATING_V2-V3.md#config} + */ + API_VERSION = 'apiVersion', + /** + * Disables telemetry reporting + * + * @deprecated Replaced by SfPropertyKeys.DISABLE_TELEMETRY in v3 {@link https://github.com/forcedotcom/sfdx-core/blob/v3/MIGRATING_V2-V3.md#config} + */ + DISABLE_TELEMETRY = 'disableTelemetry', + /** + * Custom templates repo or local location. + * + * @deprecated Replaced by OrgConfigProperties.ORG_CUSTOM_METADATA_TEMPLATES in v3 {@link https://github.com/forcedotcom/sfdx-core/blob/v3/MIGRATING_V2-V3.md#config} + */ + CUSTOM_ORG_METADATA_TEMPLATES = 'customOrgMetadataTemplates', + /** + * allows users to override the 10,000 result query limit + * + * @deprecated Replaced by OrgConfigProperties.ORG_MAX_QUERY_LIMIT in v3 {@link https://github.com/forcedotcom/sfdx-core/blob/v3/MIGRATING_V2-V3.md#config} + */ + MAX_QUERY_LIMIT = 'maxQueryLimit', + /** + * @deprecated + */ + REST_DEPLOY = 'restDeploy', + /** + * @deprecated Replaced by OrgConfigProperties.ORG_INSTANCE_URL in v3 {@link https://github.com/forcedotcom/sfdx-core/blob/v3/MIGRATING_V2-V3.md#config} + */ + INSTANCE_URL = 'instanceUrl', + } + export const SFDX_ALLOWED_PROPERTIES: ( + | { + key: SfdxPropertyKeys; + description: string; + newKey: OrgConfigProperties; + deprecated: boolean; + input: { + validator: (value: ConfigValue) => boolean; + failedMessage: string; + }; + encrypted?: undefined; + hidden?: undefined; + } + | { + key: SfdxPropertyKeys; + newKey: OrgConfigProperties; + deprecated: boolean; + description: string; + input?: undefined; + encrypted?: undefined; + hidden?: undefined; + } + | { + key: SfdxPropertyKeys; + newKey: OrgConfigProperties; + deprecated: boolean; + description: string; + encrypted: boolean; + input: { + validator: (value: ConfigValue) => boolean; + failedMessage: string; + }; + hidden?: undefined; + } + | { + key: SfdxPropertyKeys; + newKey: SfConfigProperties; + deprecated: boolean; + description: string; + input: { + validator: (value: ConfigValue) => boolean; + failedMessage: string; + }; + encrypted?: undefined; + hidden?: undefined; + } + | { + key: SfdxPropertyKeys; + description: string; + hidden: boolean; + newKey: string; + deprecated: boolean; + input: { + validator: (value: ConfigValue) => boolean; + failedMessage: string; + }; + encrypted?: undefined; + } + )[]; + export const SfProperty: { + [index: string]: ConfigPropertyMeta; + }; + export type ConfigProperties = { + [index: string]: JsonPrimitive; + }; + /** + * The files where sfdx config values are stored for projects and the global space. + * + * *Note:* It is not recommended to instantiate this object directly when resolving + * config values. Instead use {@link ConfigAggregator} + * + * ``` + * const localConfig = await Config.create(); + * localConfig.set('target-org', 'username@company.org'); + * await localConfig.write(); + * ``` + * https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_cli_config_values.htm + */ + export class Config extends ConfigFile { + private static allowedProperties; + private sfdxConfig; + constructor(options?: ConfigFile.Options); + /** + * Returns the default file name for a config file. + * + * **See** {@link CONFIG_FILE_NAME} + */ + static getFileName(): string; + /** + * Returns an array of objects representing the allowed config properties. + */ + static getAllowedProperties(): ConfigPropertyMeta[]; + /** + * Add an array of allowed config properties. + * + * @param metas Array of objects to set as the allowed config properties. + */ + static addAllowedProperties(metas: ConfigPropertyMeta[]): void; + /** + * The value of a supported config property. + * + * @param isGlobal True for a global config. False for a local config. + * @param propertyName The name of the property to set. + * @param value The property value. + */ + static update(isGlobal: boolean, propertyName: string, value?: ConfigValue): Promise; + /** + * Clear all the configured properties both local and global. + */ + static clear(): Promise; + static getPropertyConfigMeta(propertyName: string): Nullable; + private static propertyConfigMap; + /** + * Read, assign, and return the config contents. + */ + read(force?: boolean): Promise; + readSync(force?: boolean): ConfigProperties; + /** + * Writes Config properties taking into account encrypted properties. + * + * @param newContents The new Config value to persist. + */ + write(newContents?: ConfigProperties): Promise; + /** + * DO NOT CALL - The config file needs to encrypt values which can only be done asynchronously. + * Call {@link SfdxConfig.write} instead. + * + * **Throws** *{@link SfError}{ name: 'InvalidWriteError' }* Always. + * + * @param newContents Contents to write + */ + writeSync(newContents?: ConfigProperties): ConfigProperties; + /** + * Sets a value for a property. + * + * **Throws** *{@link SfError}{ name: 'UnknownConfigKeyError' }* An attempt to get a property that's not supported. + * **Throws** *{@link SfError}{ name: 'InvalidConfigValueError' }* If the input validator fails. + * + * @param key The property to set. + * @param value The value of the property. + */ + set(key: string, value: JsonPrimitive): ConfigProperties; + /** + * Unsets a value for a property. + * + * **Throws** *{@link SfError}{ name: 'UnknownConfigKeyError' }* If the input validator fails. + * + * @param key The property to unset. + */ + unset(key: string): boolean; + /** + * Get an individual property config. + * + * **Throws** *{@link SfError}{ name: 'UnknownConfigKeyError' }* An attempt to get a property that's not supported. + * + * @param propertyName The name of the property. + */ + getPropertyConfig(propertyName: string): ConfigPropertyMeta; + /** + * Initializer for supported config types. + */ + protected init(): Promise; + /** + * Encrypts and content properties that have a encryption attribute. + * + * @param encrypt `true` to encrypt. + */ + private cryptProperties; + } + export class SfdxConfig { + private options; + private config; + private sfdxPath; + constructor(options: ConfigFile.Options, config: Config); + /** + * If Global.SFDX_INTEROPERABILITY is enabled, merge the sfdx config into the sf config + */ + merge(config: ConfigProperties): ConfigProperties | undefined; + write(config?: import('@salesforce/ts-types').JsonMap): Promise; + private readSync; + private getSfdxPath; + /** + * If toNew is specified: migrate all deprecated configs with a newKey to the newKey. + * - For example, defaultusername will be renamed to target-org. + * + * If toOld is specified: migrate all deprecated configs back to their original key. + * - For example, target-org will be renamed to defaultusername. + */ + private translate; + } +} +declare module '@salesforce/core/config/configAggregator' { + import { AsyncOptionalCreatable } from '@salesforce/kit'; + import { AnyJson, Dictionary, JsonMap, Optional } from '@salesforce/ts-types'; + import { Config, ConfigPropertyMeta } from '@salesforce/core/config/config'; + /** + * Information about a config property. + */ + export interface ConfigInfo { + /** + * key The config key. + */ + key: string; + /** + * The location of the config property. + */ + location?: ConfigAggregator.Location; + /** + * The config value. + */ + value?: AnyJson; + /** + * The path of the config value. + */ + path?: string; + /** + * `true` if the config property is in the local project. + */ + isLocal: () => boolean; + /** + * `true` if the config property is in the global space. + */ + isGlobal: () => boolean; + /** + * `true` if the config property is an environment variable. + */ + isEnvVar: () => boolean; + /** + * True if the config property is deprecated. + */ + deprecated?: boolean; + } + /** + * Aggregate global and local project config files, as well as environment variables for + * `config.json`. The resolution happens in the following bottom-up order: + * + * 1. Environment variables (`SF_LOG_LEVEL`) + * 1. Workspace settings (`/.sf/config.json`) + * 1. Global settings (`$HOME/.sf/config.json`) + * + * Use {@link ConfigAggregator.create} to instantiate the aggregator. + * + * ``` + * const aggregator = await ConfigAggregator.create(); + * console.log(aggregator.getPropertyValue('target-org')); + * ``` + */ + export class ConfigAggregator extends AsyncOptionalCreatable { + protected static instance: AsyncOptionalCreatable; + protected static encrypted: boolean; + private allowedProperties; + private readonly localConfig?; + private readonly globalConfig; + private envVars; + /** + * **Do not directly construct instances of this class -- use {@link ConfigAggregator.create} instead.** + * + * @ignore + */ + constructor(options?: ConfigAggregator.Options); + private get config(); + static create

>( + this: new (options?: P) => T, + options?: P + ): Promise; + /** + * Get the info for a given key. If the ConfigAggregator was not asynchronously created OR + * the {@link ConfigAggregator.reload} was not called, the config value may be encrypted. + * + * @param key The config key. + */ + static getValue(key: string): ConfigInfo; + /** + * Get the static ConfigAggregator instance. If one doesn't exist, one will be created with + * the **encrypted** config values. Encrypted config values need to be resolved + * asynchronously by calling {@link ConfigAggregator.reload} + */ + private static getInstance; + /** + * Initialize this instances async dependencies. + */ + init(): Promise; + /** + * Get a resolved config property. + * If you use a deprecated property, a warning will be emitted and it will attempt to resolve the new property's value + * + * **Throws** *{@link SfError}{ name: 'UnknownConfigKeyError' }* An attempt to get a property that's not supported. + * + * @param key The key of the property. + */ + getPropertyValue(key: string): Optional; + /** + * Get a resolved config property meta. + * If the property is deprecated, it will return the new key's meta, if it exists, with a deprecation warning + * + * **Throws** *{@link SfError}{ name: 'UnknownConfigKeyError' }* An attempt to get a property that's not supported. + * + * @param key The key of the property. + */ + getPropertyMeta(key: string): ConfigPropertyMeta; + /** + * Get a resolved config property. + * If a property is deprecated, it will try to use the the new key, if there is a config there. + * + * @param key The key of the property. + * @param throwOnDeprecation True, if you want an error throw when reading a deprecated config + */ + getInfo(key: string, throwOnDeprecation?: boolean): ConfigInfo; + /** + * Gets a resolved config property location. + * + * For example, `getLocation('logLevel')` will return: + * 1. `Location.GLOBAL` if resolved to an environment variable. + * 1. `Location.LOCAL` if resolved to local project config. + * 1. `Location.ENVIRONMENT` if resolved to the global config. + * + * @param key The key of the property. + */ + getLocation(key: string): Optional; + /** + * Get a resolved file path or environment variable name of the property. + * + * For example, `getPath('logLevel')` will return: + * 1. `$SF_LOG_LEVEL` if resolved to an environment variable. + * 1. `./.sf/config.json` if resolved to the local config. + * 1. `~/.sf/config.json` if resolved to the global config. + * 1. `undefined`, if not resolved. + * + * **Note:** that the path returned may be the absolute path instead of + * relative paths such as `./` and `~/`. + * + * @param key The key of the property. + */ + getPath(key: string): Optional; + /** + * Get all resolved config property keys, values, locations, and paths. + * + * ``` + * > console.log(aggregator.getConfigInfo()); + * [ + * { key: 'logLevel', val: 'INFO', location: 'Environment', path: '$SF_LOG_LEVEL'} + * { key: 'target-org', val: '', location: 'Local', path: './.sf/config.json'} + * ] + * ``` + */ + getConfigInfo(): ConfigInfo[]; + /** + * Get the local project config instance. + */ + getLocalConfig(): Config | undefined; + /** + * Get the global config instance. + */ + getGlobalConfig(): Config; + /** + * Get the resolved config object from the local, global and environment config instances. + */ + getConfig(): JsonMap; + unsetByValue(key: string): Promise; + /** + * Get the config properties that are environment variables. + */ + getEnvVars(): Dictionary; + /** + * Re-read all property configurations from disk. + */ + reload(): Promise; + /** + * Add an allowed config property. + */ + addAllowedProperties(configMetas: ConfigPropertyMeta | ConfigPropertyMeta[]): void; + /** + * Set the allowed properties. + * + * @param properties The properties to set. + */ + protected setAllowedProperties(properties: ConfigPropertyMeta[]): void; + /** + * Get the allowed properties. + */ + protected getAllowedProperties(): ConfigPropertyMeta[]; + /** + * Loads all the properties and aggregates them according to location. + */ + protected loadProperties(): Promise; + /** + * Loads all the properties and aggregates them according to location. + */ + private loadPropertiesSync; + private resolveProperties; + } + export namespace ConfigAggregator { + /** + * An enum of all possible locations for a config value. + */ + const enum Location { + /** + * Represents the global config. + */ + GLOBAL = 'Global', + /** + * Represents the local project config. + */ + LOCAL = 'Local', + /** + * Represents environment variables. + */ + ENVIRONMENT = 'Environment', + } + type Options = { + customConfigMeta?: ConfigPropertyMeta[]; + }; + } +} +declare module '@salesforce/core/config/configFile' { + /// + import { Stats as fsStats } from 'fs'; + import { Logger } from '@salesforce/core/logger/logger'; + import { BaseConfigStore, ConfigContents } from '@salesforce/core/config/configStore'; + /** + * Represents a json config file used to manage settings and state. Global config + * files are stored in the home directory hidden state folder (.sfdx) and local config + * files are stored in the project path, either in the hidden state folder or wherever + * specified. + * + * ``` + * class MyConfig extends ConfigFile { + * public static getFileName(): string { + * return 'myConfigFilename.json'; + * } + * } + * const myConfig = await MyConfig.create({ + * isGlobal: true + * }); + * myConfig.set('mykey', 'myvalue'); + * await myConfig.write(); + * ``` + */ + export class ConfigFile< + T extends ConfigFile.Options = ConfigFile.Options, + P extends ConfigContents = ConfigContents + > extends BaseConfigStore { + protected hasRead: boolean; + protected logger: Logger; + private path; + /** + * Create an instance of a config file without reading the file. Call `read` or `readSync` + * after creating the ConfigFile OR instantiate with {@link ConfigFile.create} instead. + * + * @param options The options for the class instance + * @ignore + */ + constructor(options?: T); + /** + * Returns the config's filename. + */ + static getFileName(): string; + /** + * Returns the default options for the config file. + * + * @param isGlobal If the file should be stored globally or locally. + * @param filename The name of the config file. + */ + static getDefaultOptions(isGlobal?: boolean, filename?: string): ConfigFile.Options; + /** + * Helper used to determine what the local and global folder point to. Returns the file path of the root folder. + * + * @param isGlobal True if the config should be global. False for local. + */ + static resolveRootFolder(isGlobal: boolean): Promise; + /** + * Helper used to determine what the local and global folder point to. Returns the file path of the root folder. + * + * @param isGlobal True if the config should be global. False for local. + */ + static resolveRootFolderSync(isGlobal: boolean): string; + /** + * Determines if the config file is read/write accessible. Returns `true` if the user has capabilities specified + * by perm. + * + * @param {number} perm The permission. + * + * **See** {@link https://nodejs.org/dist/latest/docs/api/fs.html#fs_fs_access_path_mode_callback} + */ + access(perm?: number): Promise; + /** + * Determines if the config file is read/write accessible. Returns `true` if the user has capabilities specified + * by perm. + * + * @param {number} perm The permission. + * + * **See** {@link https://nodejs.org/dist/latest/docs/api/fs.html#fs_fs_access_path_mode_callback} + */ + accessSync(perm?: number): boolean; + /** + * Read the config file and set the config contents. Returns the config contents of the config file. As an + * optimization, files are only read once per process and updated in memory and via `write()`. To force + * a read from the filesystem pass `force=true`. + * **Throws** *{@link SfError}{ name: 'UnexpectedJsonFileFormat' }* There was a problem reading or parsing the file. + * + * @param [throwOnNotFound = false] Optionally indicate if a throw should occur on file read. + * @param [force = false] Optionally force the file to be read from disk even when already read within the process. + */ + read(throwOnNotFound?: boolean, force?: boolean): Promise

; + /** + * Read the config file and set the config contents. Returns the config contents of the config file. As an + * optimization, files are only read once per process and updated in memory and via `write()`. To force + * a read from the filesystem pass `force=true`. + * **Throws** *{@link SfError}{ name: 'UnexpectedJsonFileFormat' }* There was a problem reading or parsing the file. + * + * @param [throwOnNotFound = false] Optionally indicate if a throw should occur on file read. + * @param [force = false] Optionally force the file to be read from disk even when already read within the process. + */ + readSync(throwOnNotFound?: boolean, force?: boolean): P; + /** + * Write the config file with new contents. If no new contents are provided it will write the existing config + * contents that were set from {@link ConfigFile.read}, or an empty file if {@link ConfigFile.read} was not called. + * + * @param newContents The new contents of the file. + */ + write(newContents?: P): Promise

; + /** + * Write the config file with new contents. If no new contents are provided it will write the existing config + * contents that were set from {@link ConfigFile.read}, or an empty file if {@link ConfigFile.read} was not called. + * + * @param newContents The new contents of the file. + */ + writeSync(newContents?: P): P; + /** + * Check to see if the config file exists. Returns `true` if the config file exists and has access, false otherwise. + */ + exists(): Promise; + /** + * Check to see if the config file exists. Returns `true` if the config file exists and has access, false otherwise. + */ + existsSync(): boolean; + /** + * Get the stats of the file. Returns the stats of the file. + * + * {@link fs.stat} + */ + stat(): Promise; + /** + * Get the stats of the file. Returns the stats of the file. + * + * {@link fs.stat} + */ + statSync(): fsStats; + /** + * Delete the config file if it exists. + * + * **Throws** *`Error`{ name: 'TargetFileNotFound' }* If the {@link ConfigFile.getFilename} file is not found. + * {@link fs.unlink} + */ + unlink(): Promise; + /** + * Delete the config file if it exists. + * + * **Throws** *`Error`{ name: 'TargetFileNotFound' }* If the {@link ConfigFile.getFilename} file is not found. + * {@link fs.unlink} + */ + unlinkSync(): void; + /** + * Returns the absolute path to the config file. + * + * The first time getPath is called, the path is resolved and becomes immutable. This allows implementers to + * override options properties, like filePath, on the init method for async creation. If that is required for + * creation, the config files can not be synchronously created. + */ + getPath(): string; + /** + * Returns `true` if this config is using the global path, `false` otherwise. + */ + isGlobal(): boolean; + /** + * Used to initialize asynchronous components. + * + * **Throws** *`Error`{ code: 'ENOENT' }* If the {@link ConfigFile.getFilename} file is not found when + * options.throwOnNotFound is true. + */ + protected init(): Promise; + } + export namespace ConfigFile { + /** + * The interface for Config options. + */ + interface Options extends BaseConfigStore.Options { + /** + * The root folder where the config file is stored. + */ + rootFolder?: string; + /** + * The state folder where the config file is stored. + */ + stateFolder?: string; + /** + * The file name. + */ + filename?: string; + /** + * If the file is in the global or project directory. + */ + isGlobal?: boolean; + /** + * If the file is in the state folder or no (.sfdx). + */ + isState?: boolean; + /** + * The full file path where the config file is stored. + */ + filePath?: string; + /** + * Indicates if init should throw if the corresponding config file is not found. + */ + throwOnNotFound?: boolean; + } + } +} +declare module '@salesforce/core/config/configStore' { + import { AsyncOptionalCreatable } from '@salesforce/kit'; + import { AnyJson, Dictionary, JsonMap, Optional } from '@salesforce/ts-types'; + import { Crypto } from '@salesforce/core/crypto/crypto'; + /** + * The allowed types stored in a config store. + */ + export type ConfigValue = AnyJson; + /** + * The type of entries in a config store defined by the key and value type of {@link ConfigContents}. + */ + export type ConfigEntry = [string, ConfigValue]; + /** + * The type of content a config stores. + */ + export type ConfigContents = Dictionary; + export type Key

= Extract; + /** + * An interface for a config object with a persistent store. + */ + export interface ConfigStore

{ + entries(): ConfigEntry[]; + get>(key: K, decrypt: boolean): P[K]; + get(key: string, decrypt: boolean): T; + getKeysByValue(value: ConfigValue): Array>; + has(key: string): boolean; + keys(): Array>; + set>(key: K, value: P[K]): void; + set(key: string, value: T): void; + update>(key: K, value: Partial): void; + update(key: string, value: Partial): void; + unset(key: string): boolean; + unsetAll(keys: string[]): boolean; + clear(): void; + values(): ConfigValue[]; + forEach(actionFn: (key: string, value: ConfigValue) => void): void; + awaitEach(actionFn: (key: string, value: ConfigValue) => Promise): Promise; + getContents(): P; + setContents(contents?: P): void; + } + /** + * An abstract class that implements all the config management functions but + * none of the storage functions. + * + * **Note:** To see the interface, look in typescripts autocomplete help or the npm package's ConfigStore.d.ts file. + */ + export abstract class BaseConfigStore< + T extends BaseConfigStore.Options = BaseConfigStore.Options, + P extends ConfigContents = ConfigContents + > + extends AsyncOptionalCreatable + implements ConfigStore

+ { + protected static encryptedKeys: Array; + protected options: T; + protected crypto?: Crypto; + private contents; + private statics; + /** + * Constructor. + * + * @param options The options for the class instance. + * @ignore + */ + constructor(options?: T); + /** + * Returns an array of {@link ConfigEntry} for each element in the config. + */ + entries(): ConfigEntry[]; + /** + * Returns the value associated to the key, or undefined if there is none. + * + * @param key The key. Supports query key like `a.b[0]`. + * @param decrypt If it is an encrypted key, decrypt the value. + * If the value is an object, a clone will be returned. + */ + get>(key: K, decrypt?: boolean): P[K]; + get(key: string, decrypt?: boolean): V; + /** + * Returns the list of keys that contain a value. + * + * @param value The value to filter keys on. + */ + getKeysByValue(value: ConfigValue): Array>; + /** + * Returns a boolean asserting whether a value has been associated to the key in the config object or not. + * + * @param key The key. Supports query key like `a.b[0]`. + */ + has(key: string): boolean; + /** + * Returns an array that contains the keys for each element in the config object. + */ + keys(): Array>; + /** + * Sets the value for the key in the config object. This will override the existing value. + * To do a partial update, use {@link BaseConfigStore.update}. + * + * @param key The key. Supports query key like `a.b[0]`. + * @param value The value. + */ + set>(key: K, value: P[K]): void; + set(key: string, value: V): void; + /** + * Updates the value for the key in the config object. If the value is an object, it + * will be merged with the existing object. + * + * @param key The key. Supports query key like `a.b[0]`. + * @param value The value. + */ + update>(key: K, value: Partial): void; + update(key: string, value: Partial): void; + /** + * Returns `true` if an element in the config object existed and has been removed, or `false` if the element does not + * exist. {@link BaseConfigStore.has} will return false afterwards. + * + * @param key The key. Supports query key like `a.b[0]`. + */ + unset(key: string): boolean; + /** + * Returns `true` if all elements in the config object existed and have been removed, or `false` if all the elements + * do not exist (some may have been removed). {@link BaseConfigStore.has(key)} will return false afterwards. + * + * @param keys The keys. Supports query keys like `a.b[0]`. + */ + unsetAll(keys: string[]): boolean; + /** + * Removes all key/value pairs from the config object. + */ + clear(): void; + /** + * Returns an array that contains the values for each element in the config object. + */ + values(): ConfigValue[]; + /** + * Returns the entire config contents. + * + * *NOTE:* Data will still be encrypted unless decrypt is passed in. A clone of + * the data will be returned to prevent storing un-encrypted data in memory and + * potentially saving to the file system. + * + * @param decrypt: decrypt all data in the config. A clone of the data will be returned. + * + */ + getContents(decrypt?: boolean): P; + /** + * Sets the entire config contents. + * + * @param contents The contents. + */ + setContents(contents?: P): void; + /** + * Invokes `actionFn` once for each key-value pair present in the config object. + * + * @param {function} actionFn The function `(key: string, value: ConfigValue) => void` to be called for each element. + */ + forEach(actionFn: (key: string, value: ConfigValue) => void): void; + /** + * Asynchronously invokes `actionFn` once for each key-value pair present in the config object. + * + * @param {function} actionFn The function `(key: string, value: ConfigValue) => Promise` to be called for + * each element. + * @returns {Promise} + */ + awaitEach(actionFn: (key: string, value: ConfigValue) => Promise): Promise; + /** + * Convert the config object to a JSON object. Returns the config contents. + * Same as calling {@link ConfigStore.getContents} + */ + toObject(): JsonMap; + /** + * Convert an object to a {@link ConfigContents} and set it as the config contents. + * + * @param obj The object. + */ + setContentsFromObject(obj: U): void; + protected getEncryptedKeys(): Array; + /** + * This config file has encrypted keys and it should attempt to encrypt them. + * + * @returns Has encrypted keys + */ + protected hasEncryption(): boolean; + protected setMethod(contents: ConfigContents, key: string, value?: ConfigValue): void; + protected getMethod(contents: ConfigContents, key: string): Optional; + protected initialContents(): P; + /** + * Used to initialize asynchronous components. + */ + protected init(): Promise; + /** + * Initialize the crypto dependency. + */ + protected initCrypto(): Promise; + /** + * Closes the crypto dependency. Crypto should be close after it's used and no longer needed. + */ + protected clearCrypto(): Promise; + /** + * Should the given key be encrypted on set methods and decrypted on get methods. + * + * @param key The key. Supports query key like `a.b[0]`. + * @returns Should encrypt/decrypt + */ + protected isCryptoKey(key: string): string | RegExp | undefined; + protected encrypt(value: unknown): Optional; + protected decrypt(value: unknown): Optional; + /** + * Encrypt all values in a nested JsonMap. + * + * @param keyPaths: The complete path of the (nested) data + * @param data: The current (nested) data being worked on. + */ + protected recursiveEncrypt(data: J, parentKey?: string): J; + /** + * Decrypt all values in a nested JsonMap. + * + * @param keyPaths: The complete path of the (nested) data + * @param data: The current (nested) data being worked on. + */ + protected recursiveDecrypt(data: JsonMap, parentKey?: string): JsonMap; + /** + * Encrypt/Decrypt all values in a nested JsonMap. + * + * @param keyPaths: The complete path of the (nested) data + * @param data: The current (nested) data being worked on. + */ + private recursiveCrypto; + } + /** + * @ignore + */ + export namespace BaseConfigStore { + /** + * Options for the config store. + */ + interface Options { + /** + * Keys to encrypt. + * + * The preferred way to set encrypted keys is to use {@link BaseConfigStore.encryptedKeys} + * so they are constant for all instances of a Config class. However, this is useful for + * instantiating subclasses of ConfigStore on the fly (like {@link ConfigFile}) without + * defining a new class. + */ + encryptedKeys?: Array; + } + } +} +declare module '@salesforce/core/config/envVars' { + /// + import { Dictionary, Nullable } from '@salesforce/ts-types'; + import { Env } from '@salesforce/kit'; + export enum EnvironmentVariable { + 'FORCE_OPEN_URL' = 'FORCE_OPEN_URL', + 'FORCE_SHOW_SPINNER' = 'FORCE_SHOW_SPINNER', + 'FORCE_SPINNER_DELAY' = 'FORCE_SPINNER_DELAY', + 'HTTP_PROXY' = 'HTTP_PROXY', + 'HTTPS_PROXY' = 'HTTPS_PROXY', + 'NODE_EXTRA_CA_CERTS' = 'NODE_EXTRA_CA_CERTS', + 'NODE_TLS_REJECT_UNAUTHORIZED' = 'NODE_TLS_REJECT_UNAUTHORIZED', + 'SFDX_ACCESS_TOKEN' = 'SFDX_ACCESS_TOKEN', + 'SFDX_API_VERSION' = 'SFDX_API_VERSION', + 'SFDX_AUDIENCE_URL' = 'SFDX_AUDIENCE_URL', + 'SFDX_CODE_COVERAGE_REQUIREMENT' = 'SFDX_CODE_COVERAGE_REQUIREMENT', + 'SFDX_CONTENT_TYPE' = 'SFDX_CONTENT_TYPE', + 'SFDX_DEFAULTDEVHUBUSERNAME' = 'SFDX_DEFAULTDEVHUBUSERNAME', + 'SFDX_DEFAULTUSERNAME' = 'SFDX_DEFAULTUSERNAME', + 'SFDX_DISABLE_AUTOUPDATE' = 'SFDX_DISABLE_AUTOUPDATE', + 'SFDX_AUTOUPDATE_DISABLE' = 'SFDX_AUTOUPDATE_DISABLE', + 'SFDX_DISABLE_SOURCE_MEMBER_POLLING' = 'SFDX_DISABLE_SOURCE_MEMBER_POLLING', + 'SFDX_DISABLE_TELEMETRY' = 'SFDX_DISABLE_TELEMETRY', + 'SFDX_DNS_TIMEOUT' = 'SFDX_DNS_TIMEOUT', + 'SFDX_DOMAIN_RETRY' = 'SFDX_DOMAIN_RETRY', + 'SFDX_IMPROVED_CODE_COVERAGE' = 'SFDX_IMPROVED_CODE_COVERAGE', + 'SFDX_INSTANCE_URL' = 'SFDX_INSTANCE_URL', + 'SFDX_JSON_TO_STDOUT' = 'SFDX_JSON_TO_STDOUT', + 'SFDX_DISABLE_LOG_FILE' = 'SFDX_DISABLE_LOG_FILE', + 'SFDX_LOG_LEVEL' = 'SFDX_LOG_LEVEL', + 'SFDX_LOG_ROTATION_COUNT' = 'SFDX_LOG_ROTATION_COUNT', + 'SFDX_LOG_ROTATION_PERIOD' = 'SFDX_LOG_ROTATION_PERIOD', + 'SFDX_MAX_QUERY_LIMIT' = 'SFDX_MAX_QUERY_LIMIT', + 'SFDX_MDAPI_TEMP_DIR' = 'SFDX_MDAPI_TEMP_DIR', + 'SFDX_NPM_REGISTRY' = 'SFDX_NPM_REGISTRY', + 'SFDX_PRECOMPILE_ENABLE' = 'SFDX_PRECOMPILE_ENABLE', + 'SFDX_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_CREATE' = 'SFDX_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_CREATE', + 'SFDX_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_VERSION_CREATE' = 'SFDX_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_VERSION_CREATE', + 'SFDX_REST_DEPLOY' = 'SFDX_REST_DEPLOY', + 'SFDX_SOURCE_MEMBER_POLLING_TIMEOUT' = 'SFDX_SOURCE_MEMBER_POLLING_TIMEOUT', + 'SFDX_USE_GENERIC_UNIX_KEYCHAIN' = 'SFDX_USE_GENERIC_UNIX_KEYCHAIN', + 'SFDX_USE_PROGRESS_BAR' = 'SFDX_USE_PROGRESS_BAR', + 'SFDX_LAZY_LOAD_MODULES' = 'SFDX_LAZY_LOAD_MODULES', + 'SFDX_S3_HOST' = 'SFDX_S3_HOST', + 'SFDX_UPDATE_INSTRUCTIONS' = 'SFDX_UPDATE_INSTRUCTIONS', + 'SFDX_INSTALLER' = 'SFDX_INSTALLER', + 'SFDX_ENV' = 'SFDX_ENV', + 'SF_TARGET_ORG' = 'SF_TARGET_ORG', + 'SF_TARGET_DEV_HUB' = 'SF_TARGET_DEV_HUB', + 'SF_ACCESS_TOKEN' = 'SF_ACCESS_TOKEN', + 'SF_ORG_API_VERSION' = 'SF_ORG_API_VERSION', + 'SF_AUDIENCE_URL' = 'SF_AUDIENCE_URL', + 'SF_CODE_COVERAGE_REQUIREMENT' = 'SF_CODE_COVERAGE_REQUIREMENT', + 'SF_CONTENT_TYPE' = 'SF_CONTENT_TYPE', + 'SF_DISABLE_AUTOUPDATE' = 'SF_DISABLE_AUTOUPDATE', + 'SF_AUTOUPDATE_DISABLE' = 'SF_AUTOUPDATE_DISABLE', + 'SF_DISABLE_SOURCE_MEMBER_POLLING' = 'SF_DISABLE_SOURCE_MEMBER_POLLING', + 'SF_DISABLE_TELEMETRY' = 'SF_DISABLE_TELEMETRY', + 'SF_DNS_TIMEOUT' = 'SF_DNS_TIMEOUT', + 'SF_DOMAIN_RETRY' = 'SF_DOMAIN_RETRY', + 'SF_IMPROVED_CODE_COVERAGE' = 'SF_IMPROVED_CODE_COVERAGE', + 'SF_ORG_INSTANCE_URL' = 'SF_ORG_INSTANCE_URL', + 'SF_JSON_TO_STDOUT' = 'SF_JSON_TO_STDOUT', + 'SF_DISABLE_LOG_FILE' = 'SF_DISABLE_LOG_FILE', + 'SF_LOG_LEVEL' = 'SF_LOG_LEVEL', + 'SF_LOG_ROTATION_COUNT' = 'SF_LOG_ROTATION_COUNT', + 'SF_LOG_ROTATION_PERIOD' = 'SF_LOG_ROTATION_PERIOD', + 'SF_ORG_MAX_QUERY_LIMIT' = 'SF_ORG_MAX_QUERY_LIMIT', + 'SF_MDAPI_TEMP_DIR' = 'SF_MDAPI_TEMP_DIR', + 'SF_NPM_REGISTRY' = 'SF_NPM_REGISTRY', + 'SF_PRECOMPILE_ENABLE' = 'SF_PRECOMPILE_ENABLE', + 'SF_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_CREATE' = 'SF_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_CREATE', + 'SF_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_VERSION_CREATE' = 'SF_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_VERSION_CREATE', + 'SF_SOURCE_MEMBER_POLLING_TIMEOUT' = 'SF_SOURCE_MEMBER_POLLING_TIMEOUT', + 'SF_USE_GENERIC_UNIX_KEYCHAIN' = 'SF_USE_GENERIC_UNIX_KEYCHAIN', + 'SF_USE_PROGRESS_BAR' = 'SF_USE_PROGRESS_BAR', + 'SF_LAZY_LOAD_MODULES' = 'SF_LAZY_LOAD_MODULES', + 'SF_S3_HOST' = 'SF_S3_HOST', + 'SF_UPDATE_INSTRUCTIONS' = 'SF_UPDATE_INSTRUCTIONS', + 'SF_INSTALLER' = 'SF_INSTALLER', + 'SF_ENV' = 'SF_ENV', + } + type EnvMetaData = { + description: string; + /** the env has been renamed. synonymOf points to the new env */ + synonymOf: Nullable; + }; + type EnvType = { + [key in EnvironmentVariable]: EnvMetaData; + }; + export const SUPPORTED_ENV_VARS: EnvType; + export class EnvVars extends Env { + constructor(env?: NodeJS.ProcessEnv); + static propertyToEnvName(property: string, prefix?: string): string; + private static defaultPrefix; + getPropertyFromEnv(property: string, prefix?: string): Nullable; + asDictionary(): Dictionary; + asMap(): Map; + private resolve; + private get; + } + export const envVars: EnvVars; + export {}; +} +declare module '@salesforce/core/config/orgUsersConfig' { + import { ConfigFile } from '@salesforce/core/config/configFile'; + /** + * A config file that stores usernames for an org. + */ + export class OrgUsersConfig extends ConfigFile { + /** + * Constructor. + * **Do not directly construct instances of this class -- use {@link OrgUsersConfig.create} instead.** + * + * @param options The options for the class instance + * @ignore + */ + constructor(options?: OrgUsersConfig.Options); + /** + * Gets the config options for a given org ID. + * + * @param orgId The orgId. Generally this org would have multiple users configured. + */ + static getOptions(orgId: string): OrgUsersConfig.Options; + } + export namespace OrgUsersConfig { + /** + * The config file options. + */ + interface Options extends ConfigFile.Options { + /** + * The org id associated with this user. + */ + orgId: string; + } + } +} +declare module '@salesforce/core/config/sandboxOrgConfig' { + import { ConfigFile } from '@salesforce/core/config/configFile'; + /** + * A config file that stores usernames for an org. + */ + export class SandboxOrgConfig extends ConfigFile { + /** + * Constructor. + * **Do not directly construct instances of this class -- use {@link SandboxConfig.create} instead.** + * + * @param options The options for the class instance + * @ignore + */ + constructor(options?: SandboxOrgConfig.Options); + /** + * Gets the config options for a given org ID. + * + * @param orgId The orgId. Generally this org would have multiple users configured. + */ + static getOptions(orgId: string): SandboxOrgConfig.Options; + } + export namespace SandboxOrgConfig { + /** + * The config file options. + */ + interface Options extends ConfigFile.Options { + /** + * The org id associated with this sandbox. + */ + orgId: string; + } + enum Fields { + /** + * The username of the user who created the sandbox. + */ + PROD_ORG_USERNAME = 'prodOrgUsername', + } + } +} +declare module '@salesforce/core/config/sandboxProcessCache' { + import { SandboxProcessObject, SandboxRequest } from '@salesforce/core/org/index'; + import { TTLConfig } from '@salesforce/core/config/ttlConfig'; + export type SandboxRequestCacheEntry = { + alias?: string; + setDefault: boolean; + prodOrgUsername: string; + sandboxProcessObject: Partial; + sandboxRequest: Partial; + tracksSource?: boolean; + }; + export class SandboxRequestCache extends TTLConfig { + static getDefaultOptions(): TTLConfig.Options; + static unset(key: string): Promise; + static set(key: string, sandboxProcessObject: SandboxRequestCacheEntry): Promise; + static getFileName(): string; + } +} +declare module '@salesforce/core/config/tokensConfig' { + import { Optional } from '@salesforce/ts-types'; + import { SfTokens } from '@salesforce/core/stateAggregator/index'; + import { ConfigFile } from '@salesforce/core/config/configFile'; + import { ConfigContents, ConfigValue } from '@salesforce/core/config/configStore'; + export class TokensConfig extends ConfigFile { + protected static encryptedKeys: RegExp[]; + static getDefaultOptions(): ConfigFile.Options; + protected getMethod(contents: ConfigContents, key: string): Optional; + protected setMethod(contents: ConfigContents, key: string, value?: ConfigValue): void; + } +} +declare module '@salesforce/core/config/ttlConfig' { + import { Duration } from '@salesforce/kit'; + import { JsonMap, Nullable } from '@salesforce/ts-types'; + import { ConfigFile } from '@salesforce/core/config/configFile'; + /** + * A Time To Live configuration file where each entry is timestamped and removed once the TTL has expired. + * + * @example + * ``` + * import { Duration } from '@salesforce/kit'; + * const config = await TTLConfig.create({ + * isGlobal: false, + * ttl: Duration.days(1) + * }); + * ``` + */ + export class TTLConfig extends ConfigFile> { + set(key: string, value: Partial>): void; + getLatestEntry(): Nullable<[string, TTLConfig.Entry

]>; + getLatestKey(): Nullable; + isExpired( + dateTime: number, + value: P & { + timestamp: string; + } + ): boolean; + protected init(): Promise; + private timestamp; + } + export namespace TTLConfig { + type Options = ConfigFile.Options & { + ttl: Duration; + }; + type Entry = T & { + timestamp: string; + }; + type Contents = Record>; + } +} +declare module '@salesforce/core/crypto/crypto' { + import { AsyncOptionalCreatable } from '@salesforce/kit'; + import { KeyChain } from '@salesforce/core/crypto/keyChainImpl'; + interface CryptoOptions { + keychain?: KeyChain; + platform?: string; + retryStatus?: string; + noResetOnClose?: boolean; + } + /** + * Class for managing encrypting and decrypting private auth information. + */ + export class Crypto extends AsyncOptionalCreatable { + private key; + private options; + private noResetOnClose; + /** + * Constructor + * **Do not directly construct instances of this class -- use {@link Crypto.create} instead.** + * + * @param options The options for the class instance. + * @ignore + */ + constructor(options?: CryptoOptions); + /** + * Encrypts text. Returns the encrypted string or undefined if no string was passed. + * + * @param text The text to encrypt. + */ + encrypt(text: string): string; + /** + * Decrypts text. + * + * @param text The text to decrypt. + */ + decrypt(text: string): string; + /** + * Takes a best guess if the value provided was encrypted by {@link Crypto.encrypt} by + * checking the delimiter, tag length, and valid characters. + * + * @param text The text + * @returns true if the text is encrypted, false otherwise. + */ + isEncrypted(text?: string): boolean; + /** + * Clears the crypto state. This should be called in a finally block. + */ + close(): void; + /** + * Initialize async components. + */ + protected init(): Promise; + private getKeyChain; + } + export {}; +} +declare module '@salesforce/core/crypto/keyChain' { + import { KeyChain } from '@salesforce/core/crypto/keyChainImpl'; + /** + * Gets the os level keychain impl. + * + * @param platform The os platform. + * @ignore + */ + export const retrieveKeychain: (platform: string) => Promise; +} +declare module '@salesforce/core/crypto/keyChainImpl' { + /// + /// + /// + import * as childProcess from 'child_process'; + import * as nodeFs from 'fs'; + import { Nullable } from '@salesforce/ts-types'; + export type FsIfc = Pick; + /** + * Basic keychain interface. + */ + export interface PasswordStore { + /** + * Gets a password + * + * @param opts cli level password options. + * @param fn function callback for password. + * @param retryCount number of reties to get the password. + */ + getPassword( + opts: ProgramOpts, + fn: (error: Nullable, password?: string) => void, + retryCount?: number + ): Promise; + /** + * Sets a password. + * + * @param opts cli level password options. + * @param fn function callback for password. + */ + setPassword(opts: ProgramOpts, fn: (error: Nullable, contents?: SecretContents) => void): Promise; + } + /** + * @private + */ + export class KeychainAccess implements PasswordStore { + private osImpl; + private fsIfc; + /** + * Abstract prototype for general cross platform keychain interaction. + * + * @param osImpl The platform impl for (linux, darwin, windows). + * @param fsIfc The file system interface. + */ + constructor(osImpl: OsImpl, fsIfc: FsIfc); + /** + * Validates the os level program is executable. + */ + validateProgram(): Promise; + /** + * Returns a password using the native program for credential management. + * + * @param opts Options for the credential lookup. + * @param fn Callback function (err, password). + * @param retryCount Used internally to track the number of retries for getting a password out of the keychain. + */ + getPassword( + opts: ProgramOpts, + fn: (error: Nullable, password?: string) => void, + retryCount?: number + ): Promise; + /** + * Sets a password using the native program for credential management. + * + * @param opts Options for the credential lookup. + * @param fn Callback function (err, ConfigContents). + */ + setPassword(opts: ProgramOpts, fn: (error: Nullable, contents?: SecretContents) => void): Promise; + } + interface ProgramOpts { + account: string; + service: string; + password?: string; + } + interface OsImpl { + getProgram(): string; + getProgramOptions(opts: ProgramOpts): string[]; + getCommandFunc( + opts: ProgramOpts, + fn: (program: string, opts: string[]) => childProcess.ChildProcess + ): childProcess.ChildProcess; + onGetCommandClose( + code: number, + stdout: string, + stderr: string, + opts: ProgramOpts, + fn: (err: Nullable, result?: string) => void + ): Promise; + setProgramOptions(opts: ProgramOpts): string[]; + setCommandFunc( + opts: ProgramOpts, + fn: (program: string, opts: string[]) => childProcess.ChildProcess + ): childProcess.ChildProcess; + onSetCommandClose( + code: number, + stdout: string, + stderr: string, + opts: ProgramOpts, + fn: (err: Nullable) => void + ): Promise; + } + enum SecretField { + SERVICE = 'service', + ACCOUNT = 'account', + KEY = 'key', + } + type SecretContents = { + [SecretField.ACCOUNT]: string; + [SecretField.KEY]?: string; + [SecretField.SERVICE]: string; + }; + /** + * @@ignore + */ + export class GenericKeychainAccess implements PasswordStore { + getPassword(opts: ProgramOpts, fn: (error: Nullable, password?: string) => void): Promise; + setPassword(opts: ProgramOpts, fn: (error: Nullable, contents?: SecretContents) => void): Promise; + protected isValidFileAccess(cb: (error: Nullable) => Promise): Promise; + } + /** + * @ignore + */ + export class GenericUnixKeychainAccess extends GenericKeychainAccess { + protected isValidFileAccess(cb: (error: Nullable) => Promise): Promise; + } + /** + * @ignore + */ + export class GenericWindowsKeychainAccess extends GenericKeychainAccess { + protected isValidFileAccess(cb: (error: Nullable) => Promise): Promise; + } + /** + * @ignore + */ + export const keyChainImpl: { + generic_unix: GenericUnixKeychainAccess; + generic_windows: GenericWindowsKeychainAccess; + darwin: KeychainAccess; + linux: KeychainAccess; + validateProgram: ( + programPath: string, + fsIfc: FsIfc, + isExeIfc: (mode: number, gid: number, uid: number) => boolean + ) => Promise; + }; + export type KeyChain = GenericUnixKeychainAccess | GenericWindowsKeychainAccess | KeychainAccess; + export {}; +} +declare module '@salesforce/core/crypto/secureBuffer' { + /// + import { Optional } from '@salesforce/ts-types'; + /** + * Returns the intended type of the object to return. This is implementation specific. + * + * @param buffer A buffer containing the decrypted secret. + */ + export type DecipherCallback = (buffer: Buffer) => T; + /** + * Used to store and retrieve a sensitive information in memory. This is not meant for at rest encryption. + * + * ``` + * const sString: SecureBuffer = new SecureBuffer(); + * sString.consume(secretTextBuffer); + * const value: string = sString.value((buffer: Buffer): string => { + * const password: string = buffer.toString('utf8'); + * // doSomething with the password + * // returns something of type + * return testReturnValue; + * }); + * ``` + */ + export class SecureBuffer { + private key; + private iv; + private secret?; + /** + * Invokes a callback with a decrypted version of the buffer. + * + * @param cb The callback containing the decrypted buffer parameter that returns a desired. + * typed object. It's important to understand that once the callback goes out of scope the buffer parameters is + * overwritten with random data. Do not make a copy of this buffer and persist it! + */ + value(cb: DecipherCallback): Optional; + /** + * Overwrites the value of the encrypted secret with random data. + */ + clear(): void; + /** + * Consumes a buffer of data that's intended to be secret. + * + * @param buffer Data to encrypt. The input buffer is overwritten with random data after it's encrypted + * and assigned internally. + */ + consume(buffer: Buffer): void; + } +} +declare module '@salesforce/core/deviceOauthService' { + import { AsyncCreatable } from '@salesforce/kit'; + import { OAuth2Config } from 'jsforce'; + import { JsonMap, Nullable } from '@salesforce/ts-types'; + import { AuthInfo } from '@salesforce/core/org/index'; + export interface DeviceCodeResponse extends JsonMap { + device_code: string; + interval: number; + user_code: string; + verification_uri: string; + } + export interface DeviceCodePollingResponse extends JsonMap { + access_token: string; + refresh_token: string; + signature: string; + scope: string; + instance_url: string; + id: string; + token_type: string; + issued_at: string; + } + /** + * Handles device based login flows + * + * Usage: + * ``` + * const oauthConfig = { + * loginUrl: this.flags.instanceurl, + * clientId: this.flags.clientid, + * }; + * const deviceOauthService = await DeviceOauthService.create(oauthConfig); + * const loginData = await deviceOauthService.requestDeviceLogin(); + * console.log(loginData); + * const approval = await deviceOauthService.awaitDeviceApproval(loginData); + * const authInfo = await deviceOauthService.authorizeAndSave(approval); + * ``` + */ + export class DeviceOauthService extends AsyncCreatable { + static RESPONSE_TYPE: string; + static GRANT_TYPE: string; + static SCOPE: string; + private static POLLING_COUNT_MAX; + private logger; + private options; + private pollingCount; + constructor(options: OAuth2Config); + /** + * Begin the authorization flow by requesting the login + * + * @returns {Promise} + */ + requestDeviceLogin(): Promise; + /** + * Polls the server until successful response OR max attempts have been made + * + * @returns {Promise>} + */ + awaitDeviceApproval(loginData: DeviceCodeResponse): Promise>; + /** + * Creates and saves new AuthInfo + * + * @returns {Promise} + */ + authorizeAndSave(approval: DeviceCodePollingResponse): Promise; + protected init(): Promise; + private getLoginOptions; + private getPollingOptions; + private getDeviceFlowRequestUrl; + private poll; + private shouldContinuePolling; + private pollForDeviceApproval; + } +} +declare module '@salesforce/core/exported' { + export { OAuth2Config } from 'jsforce'; + export { ConfigFile } from '@salesforce/core/config/configFile'; + export { TTLConfig } from '@salesforce/core/config/ttlConfig'; + export { envVars, EnvironmentVariable, SUPPORTED_ENV_VARS, EnvVars } from '@salesforce/core/config/envVars'; + export { ConfigContents, ConfigEntry, ConfigStore, ConfigValue } from '@salesforce/core/config/configStore'; + export { SfTokens, StateAggregator } from '@salesforce/core/stateAggregator/index'; + export { + DeviceOauthService, + DeviceCodeResponse, + DeviceCodePollingResponse, + } from '@salesforce/core/deviceOauthService'; + export { OrgUsersConfig } from '@salesforce/core/config/orgUsersConfig'; + export { + ConfigPropertyMeta, + ConfigPropertyMetaInput, + Config, + SfdxPropertyKeys, + SfConfigProperties, + SFDX_ALLOWED_PROPERTIES, + SF_ALLOWED_PROPERTIES, + } from '@salesforce/core/config/config'; + export { SandboxRequestCacheEntry, SandboxRequestCache } from '@salesforce/core/config/sandboxProcessCache'; + export { ConfigInfo, ConfigAggregator } from '@salesforce/core/config/configAggregator'; + export { AuthFields, AuthInfo, AuthSideEffects, OrgAuthorization } from '@salesforce/core/org/authInfo'; + export { AuthRemover } from '@salesforce/core/org/authRemover'; + export { Connection, SFDX_HTTP_HEADERS } from '@salesforce/core/org/connection'; + export { Mode, Global } from '@salesforce/core/global'; + export { Lifecycle } from '@salesforce/core/lifecycleEvents'; + export { WebOAuthServer } from '@salesforce/core/webOAuthServer'; + export { SfdcUrl } from '@salesforce/core/util/sfdcUrl'; + export { getJwtAudienceUrl } from '@salesforce/core/util/getJwtAudienceUrl'; + export { + Fields, + FieldValue, + LoggerLevel, + LoggerLevelValue, + LogLine, + LoggerOptions, + Logger, + } from '@salesforce/core/logger/logger'; + export { Messages, StructuredMessage } from '@salesforce/core/messages'; + export { + Org, + SandboxProcessObject, + StatusEvent, + SandboxEvents, + SandboxUserAuthResponse, + SandboxUserAuthRequest, + SandboxRequest, + ResumeSandboxRequest, + OrgTypes, + ResultEvent, + ScratchOrgRequest, + } from '@salesforce/core/org/index'; + export { OrgConfigProperties, ORG_CONFIG_ALLOWED_PROPERTIES } from '@salesforce/core/org/orgConfigProperties'; + export { + PackageDir, + NamedPackageDir, + PackageDirDependency, + SfProject, + SfProjectJson, + } from '@salesforce/core/sfProject'; + export { SchemaValidator } from '@salesforce/core/schema/validator'; + export { SchemaPrinter } from '@salesforce/core/schema/printer'; + export { SfError } from '@salesforce/core/sfError'; + export { PollingClient } from '@salesforce/core/status/pollingClient'; + export { + CometClient, + CometSubscription, + StreamingClient, + StatusResult, + } from '@salesforce/core/status/streamingClient'; + export { MyDomainResolver } from '@salesforce/core/status/myDomainResolver'; + export { DefaultUserFields, REQUIRED_FIELDS, User, UserFields } from '@salesforce/core/org/user'; + export { PermissionSetAssignment, PermissionSetAssignmentFields } from '@salesforce/core/org/permissionSetAssignment'; + export { + ScratchOrgCreateOptions, + ScratchOrgCreateResult, + scratchOrgCreate, + scratchOrgResume, + } from '@salesforce/core/org/scratchOrgCreate'; + export { ScratchOrgInfo } from '@salesforce/core/org/scratchOrgTypes'; + export { + ScratchOrgLifecycleEvent, + scratchOrgLifecycleEventName, + scratchOrgLifecycleStages, + } from '@salesforce/core/org/scratchOrgLifecycleEvents'; + export { ScratchOrgCache } from '@salesforce/core/org/scratchOrgCache'; + export * from '@salesforce/core/util/sfdc'; + export * from '@salesforce/core/util/sfdcUrl'; +} +declare module '@salesforce/core/global' { + /** + * Represents an environment mode. Supports `production`, `development`, `demo`, and `test` + * with the default mode being `production`. + * + * To set the mode, `export SFDX_ENV=` in your current environment. + */ + export enum Mode { + PRODUCTION = 'production', + DEVELOPMENT = 'development', + DEMO = 'demo', + TEST = 'test', + } + /** + * Global constants, methods, and configuration. + */ + export class Global { + /** + * Enable interoperability between `.sfdx` and `.sf`. + * + * When @salesforce/core@v2 is deprecated and no longer used, this can be removed. + */ + static SFDX_INTEROPERABILITY: boolean; + /** + * The global folder in which sfdx state is stored. + */ + static readonly SFDX_STATE_FOLDER = '.sfdx'; + /** + * The global folder in which sf state is stored. + */ + static readonly SF_STATE_FOLDER = '.sf'; + /** + * The preferred global folder in which state is stored. + */ + static readonly STATE_FOLDER = '.sfdx'; + /** + * The full system path to the global sfdx state folder. + * + * **See** {@link Global.SFDX_STATE_FOLDER} + */ + static get SFDX_DIR(): string; + /** + * The full system path to the global sf state folder. + * + * **See** {@link Global.SF_STATE_FOLDER} + */ + static get SF_DIR(): string; + /** + * The full system path to the preferred global state folder + */ + static get DIR(): string; + /** + * Gets the current mode environment variable as a {@link Mode} instance. + * + * ``` + * console.log(Global.getEnvironmentMode() === Mode.PRODUCTION); + * ``` + */ + static getEnvironmentMode(): Mode; + /** + * Creates a directory within {@link Global.SFDX_DIR}, or {@link Global.SFDX_DIR} itself if the `dirPath` param + * is not provided. This is resolved or rejected when the directory creation operation has completed. + * + * @param dirPath The directory path to be created within {@link Global.SFDX_DIR}. + */ + static createDir(dirPath?: string): Promise; + } +} +declare module '@salesforce/core/lifecycleEvents' { + import { AnyJson } from '@salesforce/ts-types'; + type callback = (data: any) => Promise; + /** + * An asynchronous event listener and emitter that follows the singleton pattern. The singleton pattern allows lifecycle + * events to be emitted from deep within a library and still be consumed by any other library or tool. It allows other + * developers to react to certain situations or events in your library without them having to manually call the method themselves. + * + * An example might be transforming metadata before it is deployed to an environment. As long as an event was emitted from the + * deploy library and you were listening on that event in the same process, you could transform the metadata before the deploy + * regardless of where in the code that metadata was initiated. + * + * @example + * ``` + * // Listen for an event in a plugin hook + * Lifecycle.getInstance().on('deploy-metadata', transformMetadata) + * + * // Deep in the deploy code, fire the event for all libraries and plugins to hear. + * Lifecycle.getInstance().emit('deploy-metadata', metadataToBeDeployed); + * + * // if you don't need to await anything + * use `void Lifecycle.getInstance().emit('deploy-metadata', metadataToBeDeployed)` ; + * ``` + */ + export class Lifecycle { + private readonly listeners; + private readonly uniqueListeners; + static readonly telemetryEventName = 'telemetry'; + static readonly warningEventName = 'warning'; + private logger?; + private constructor(); + /** + * return the package.json version of the sfdx-core library. + */ + static staticVersion(): string; + /** + * Retrieve the singleton instance of this class so that all listeners and emitters can interact from any library or tool + */ + static getInstance(): Lifecycle; + /** + * return the package.json version of the sfdx-core library. + */ + version(): string; + /** + * Remove all listeners for a given event + * + * @param eventName The name of the event to remove listeners of + */ + removeAllListeners(eventName: string): void; + /** + * Get an array of listeners (callback functions) for a given event + * + * @param eventName The name of the event to get listeners of + */ + getListeners(eventName: string): callback[]; + /** + * Create a listener for the `telemetry` event + * + * @param cb The callback function to run when the event is emitted + */ + onTelemetry(cb: (data: Record) => Promise): void; + /** + * Create a listener for the `warning` event + * + * @param cb The callback function to run when the event is emitted + */ + onWarning(cb: (warning: string) => Promise): void; + /** + * Create a new listener for a given event + * + * @param eventName The name of the event that is being listened for + * @param cb The callback function to run when the event is emitted + * @param uniqueListenerIdentifier A unique identifier for the listener. If a listener with the same identifier is already registered, a new one will not be added + */ + on(eventName: string, cb: (data: T) => Promise, uniqueListenerIdentifier?: string): void; + /** + * Emit a `telemetry` event, causing all callback functions to be run in the order they were registered + * + * @param data The data to emit + */ + emitTelemetry(data: AnyJson): Promise; + /** + * Emit a `warning` event, causing all callback functions to be run in the order they were registered + * + * @param data The warning (string) to emit + */ + emitWarning(warning: string): Promise; + /** + * Emit a given event, causing all callback functions to be run in the order they were registered + * + * @param eventName The name of the event to emit + * @param data The argument to be passed to the callback function + */ + emit(eventName: string, data: T): Promise; + } + export {}; +} +declare module '@salesforce/core/logger/cleanup' { + /** + * New logger (Summer 2023) changes how file rotation works. Each day, the logger writes to a new file + * To get old files cleaned up, this can be called when a new root logger is instantiated + * based on CLEAN_ODDS, it could exit OR delete some old log files + * + * to start this without waiting, use void cleanup() + * + * accepts params to override the default behavior (used to cleanup huge log file during perf tests) + */ + export const cleanup: (maxMs?: number, force?: boolean) => Promise; + export const getOldLogFiles: (files: string[], maxMs?: number) => string[]; +} +declare module '@salesforce/core/logger/filters' { + export const HIDDEN = 'HIDDEN'; + /** + * + * @param args you *probably are passing this an object, but it can handle any type + * @returns + */ + export const filterSecrets: (...args: unknown[]) => unknown; +} +declare module '@salesforce/core/logger/logger' { + import { Logger as PinoLogger } from 'pino'; + /** + * The common set of `Logger` options. + */ + export interface LoggerOptions { + /** + * The logger name. + */ + name: string; + /** + * The desired log level. + */ + level?: LoggerLevelValue; + /** + * Create a logger with the fields set + */ + fields?: Fields; + /** log to memory instead of to a file. Intended for Unit Testing */ + useMemoryLogger?: boolean; + } + /** + * Standard `Logger` levels. + * + * **See** {@link https://getpino.io/#/docs/api?id=logger-level |Logger Levels} + */ + export enum LoggerLevel { + TRACE = 10, + DEBUG = 20, + INFO = 30, + WARN = 40, + ERROR = 50, + FATAL = 60, + } + /** + * Any numeric `Logger` level. + */ + export type LoggerLevelValue = LoggerLevel | number; + /** + * An object + */ + export type Fields = Record; + /** + * All possible field value types. + */ + export type FieldValue = string | number | boolean | Fields; + /** + * Log line interface + */ + export interface LogLine { + name: string; + hostname: string; + pid: string; + log: string; + level: number; + msg: string; + time: string; + v: number; + } + /** + * A logging abstraction powered by {@link https://github.com/pinojs/pino | Pino} that provides both a default + * logger configuration that will log to the default path, and a way to create custom loggers based on the same foundation. + * + * ``` + * // Gets the root sfdx logger + * const logger = await Logger.root(); + * + * // Creates a child logger of the root sfdx logger with custom fields applied + * const childLogger = await Logger.child('myRootChild', {tag: 'value'}); + * + * // Creates a custom logger unaffiliated with the root logger + * const myCustomLogger = new Logger('myCustomLogger'); + * + * // Creates a child of a custom logger unaffiliated with the root logger with custom fields applied + * const myCustomChildLogger = myCustomLogger.child('myCustomChild', {tag: 'value'}); + * + * // get a raw pino logger from the root instance of Logger + * // you can use these to avoid constructing another Logger wrapper class and to get better type support + * const logger = Logger.getRawRootLogger().child({name: 'foo', otherProp: 'bar'}); + * logger.info({some: 'stuff'}, 'a message'); + * + * + * // get a raw pino logger from the current instance + * const childLogger = await Logger.child('myRootChild', {tag: 'value'}); + * const logger = childLogger.getRawLogger(); + * ``` + * + * **See** https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_dev_cli_log_messages.htm + */ + export class Logger { + /** + * The name of the root sfdx `Logger`. + */ + static readonly ROOT_NAME = 'sf'; + /** + * The default `LoggerLevel` when constructing new `Logger` instances. + */ + static readonly DEFAULT_LEVEL = LoggerLevel.WARN; + /** + * A list of all lower case `LoggerLevel` names. + * + * **See** {@link LoggerLevel} + */ + static readonly LEVEL_NAMES: string[]; + private static rootLogger?; + private pinoLogger; + private memoryLogger?; + /** + * Constructs a new `Logger`. + * + * @param optionsOrName A set of `LoggerOptions` or name to use with the default options. + * + * **Throws** *{@link SfError}{ name: 'RedundantRootLoggerError' }* More than one attempt is made to construct the root + * `Logger`. + */ + constructor(optionsOrName: LoggerOptions | string); + /** + * + * Gets the root logger. It's a singleton + * See also getRawLogger if you don't need the root logger + */ + static root(): Promise; + /** + * Gets the root logger. It's a singleton + */ + static getRoot(): Logger; + /** + * Destroys the root `Logger`. + * + * @ignore + */ + static destroyRoot(): void; + /** + * Create a child of the root logger, inheriting this instance's configuration such as `level`, transports, etc. + * + * @param name The name of the child logger. + * @param fields Additional fields included in all log lines. + */ + static child(name: string, fields?: Fields): Promise; + /** + * Create a child of the root logger, inheriting this instance's configuration such as `level`, transports, etc. + * + * @param name The name of the child logger. + * @param fields Additional fields included in all log lines. + */ + static childFromRoot(name: string, fields?: Fields): Logger; + /** + * Gets a numeric `LoggerLevel` value by string name. + * + * @param {string} levelName The level name to convert to a `LoggerLevel` enum value. + * + * **Throws** *{@link SfError}{ name: 'UnrecognizedLoggerLevelNameError' }* The level name was not case-insensitively recognized as a valid `LoggerLevel` value. + * @see {@Link LoggerLevel} + */ + static getLevelByName(levelName: string): LoggerLevelValue; + /** get the bare (pino) logger instead of using the class hierarchy */ + static getRawRootLogger(): PinoLogger; + /** get the bare (pino) logger instead of using the class hierarchy */ + getRawLogger(): PinoLogger; + /** + * Gets the name of this logger. + */ + getName(): string; + /** + * Gets the current level of this logger. + */ + getLevel(): LoggerLevelValue; + /** + * Set the logging level of all streams for this logger. If a specific `level` is not provided, this method will + * attempt to read it from the environment variable `SFDX_LOG_LEVEL`, and if not found, + * {@link Logger.DEFAULT_LOG_LEVEL} will be used instead. For convenience `this` object is returned. + * + * @param {LoggerLevelValue} [level] The logger level. + * + * **Throws** *{@link SfError}{ name: 'UnrecognizedLoggerLevelNameError' }* A value of `level` read from `SFDX_LOG_LEVEL` + * was invalid. + * + * ``` + * // Sets the level from the environment or default value + * logger.setLevel() + * + * // Set the level from the INFO enum + * logger.setLevel(LoggerLevel.INFO) + * + * // Sets the level case-insensitively from a string value + * logger.setLevel(Logger.getLevelByName('info')) + * ``` + */ + setLevel(level?: LoggerLevelValue): Logger; + /** + * Compares the requested log level with the current log level. Returns true if + * the requested log level is greater than or equal to the current log level. + * + * @param level The requested log level to compare against the currently set log level. + */ + shouldLog(level: LoggerLevelValue): boolean; + /** + * Gets an array of log line objects. Each element is an object that corresponds to a log line. + */ + getBufferedRecords(): LogLine[]; + /** + * Reads a text blob of all the log lines contained in memory or the log file. + */ + readLogContentsAsText(): string; + /** + * Create a child logger, typically to add a few log record fields. For convenience this object is returned. + * + * @param name The name of the child logger that is emitted w/ log line. Will be prefixed with the parent logger name and `:` + * @param fields Additional fields included in all log lines for the child logger. + */ + child(name: string, fields?: Fields): Logger; + /** + * Add a field to all log lines for this logger. For convenience `this` object is returned. + * + * @param name The name of the field to add. + * @param value The value of the field to be logged. + */ + addField(name: string, value: FieldValue): Logger; + /** + * Logs at `trace` level with filtering applied. For convenience `this` object is returned. + * + * @param args Any number of arguments to be logged. + */ + trace(...args: any[]): Logger; + /** + * Logs at `debug` level with filtering applied. For convenience `this` object is returned. + * + * @param args Any number of arguments to be logged. + */ + debug(...args: unknown[]): Logger; + /** + * Logs at `debug` level with filtering applied. + * + * @param cb A callback that returns on array objects to be logged. + */ + debugCallback(cb: () => unknown[] | string): void; + /** + * Logs at `info` level with filtering applied. For convenience `this` object is returned. + * + * @param args Any number of arguments to be logged. + */ + info(...args: unknown[]): Logger; + /** + * Logs at `warn` level with filtering applied. For convenience `this` object is returned. + * + * @param args Any number of arguments to be logged. + */ + warn(...args: unknown[]): Logger; + /** + * Logs at `error` level with filtering applied. For convenience `this` object is returned. + * + * @param args Any number of arguments to be logged. + */ + error(...args: unknown[]): Logger; + /** + * Logs at `fatal` level with filtering applied. For convenience `this` object is returned. + * + * @param args Any number of arguments to be logged. + */ + fatal(...args: unknown[]): Logger; + } + export const computeLevel: (optionsLevel?: number | string) => string; +} +declare module '@salesforce/core/logger/memoryLogger' { + /// + import { Writable } from 'stream'; + /** + * Used by test setup to keep UT from writing to disk. + */ + export class MemoryLogger extends Writable { + loggedData: Array>; + constructor(); + _write(chunk: Record, encoding: string, callback: (err?: Error) => void): void; + } +} +declare module '@salesforce/core/logger/transformStream' { + /// + import { Transform } from 'stream'; + export default function (): Transform; +} +declare module '@salesforce/core/messageTransformer' { + import * as ts from 'typescript'; + /** + * + * @experimental + * transforms `messages` references from dynamic run-time to static compile-time values + */ + export const messageTransformer: () => ts.TransformerFactory; + export default messageTransformer; +} +declare module '@salesforce/core/messages' { + import { AnyJson } from '@salesforce/ts-types'; + import { SfError } from '@salesforce/core/sfError'; + export type Tokens = Array; + export type StructuredMessage = { + message: string; + name: string; + actions?: string[]; + }; + /** + * A loader function to return messages. + * + * @param locale The local set by the framework. + */ + export type LoaderFunction = (locale: string) => Messages; + export type StoredMessage = + | string + | string[] + | { + [s: string]: StoredMessage; + }; + export type StoredMessageMap = Map; + /** + * The core message framework manages messages and allows them to be accessible by + * all plugins and consumers of sfdx-core. It is set up to handle localization down + * the road at no additional effort to the consumer. Messages can be used for + * anything from user output (like the console), to error messages, to returned + * data from a method. + * + * Messages are loaded from loader functions. The loader functions will only run + * when a message is required. This prevents all messages from being loaded into memory at + * application startup. The functions can load from memory, a file, or a server. + * + * In the beginning of your app or file, add the loader functions to be used later. If using + * json or js files in a root messages directory (`/messages`), load the entire directory + * automatically with {@link Messages.importMessagesDirectory}. Message files must be the following formates. + * + * A `.json` file: + * ```json + * { + * "msgKey": "A message displayed in the user", + * "msgGroup": { + * "anotherMsgKey": "Another message displayed to the user" + * }, + * "listOfMessage": ["message1", "message2"] + * } + * ``` + * + * A `.js` file: + * ```javascript + * module.exports = { + * msgKey: 'A message displayed in the user', + * msgGroup: { + * anotherMsgKey: 'Another message displayed to the user' + * }, + * listOfMessage: ['message1', 'message2'] + * } + * ``` + * + * A `.md` file: + * ```markdown + * # msgKey + * A message displayed in the user + * + * # msgGroup.anotherMsgKey + * Another message displayed to the user + * + * # listOfMessage + * - message1 + * - message2 + * ``` + * + * The values support [util.format](https://nodejs.org/api/util.html#util_util_format_format_args) style strings + * that apply the tokens passed into {@link Message.getMessage} + * + * **Note:** When running unit tests individually, you may see errors that the messages aren't found. + * This is because `index.js` isn't loaded when tests run like they are when the package is required. + * To allow tests to run, import the message directory in each test (it will only + * do it once) or load the message file the test depends on individually. + * + * ```typescript + * // Create loader functions for all files in the messages directory + * Messages.importMessagesDirectory(__dirname); + * + * // Now you can use the messages from anywhere in your code or file. + * // If using importMessageDirectory, the bundle name is the file name. + * const messages: Messages = Messages.loadMessages(packageName, bundleName); + * + * // Messages now contains all the message in the bundleName file. + * messages.getMessage('authInfoCreationError'); + * ``` + */ + export class Messages { + readonly messages: StoredMessageMap; + private static loaders; + private static bundles; + /** + * The locale of the messages in this bundle. + */ + readonly locale: string; + /** + * The bundle name. + */ + readonly bundleName: string; + /** + * Create a new messages bundle. + * + * **Note:** Use {Messages.loadMessages} unless you are writing your own loader function. + * + * @param bundleName The bundle name. + * @param locale The locale. + * @param messages The messages. Can not be modified once created. + */ + constructor(bundleName: string, locale: string, messages: StoredMessageMap); + /** + * Internal readFile. Exposed for unit testing. Do not use util/fs.readFile as messages.js + * should have no internal dependencies. + * + * @param filePath read file target. + * @ignore + */ + static readFile: (filePath: string) => AnyJson; + /** + * Get the locale. This will always return 'en_US' but will return the + * machine's locale in the future. + */ + static getLocale(): string; + /** + * Set a custom loader function for a package and bundle that will be called on {@link Messages.loadMessages}. + * + * @param packageName The npm package name. + * @param bundle The name of the bundle. + * @param loader The loader function. + */ + static setLoaderFunction(packageName: string, bundle: string, loader: LoaderFunction): void; + /** + * Generate a file loading function. Use {@link Messages.importMessageFile} unless + * overriding the bundleName is required, then manually pass the loader + * function to {@link Messages.setLoaderFunction}. + * + * @param bundleName The name of the bundle. + * @param filePath The messages file path. + */ + static generateFileLoaderFunction(bundleName: string, filePath: string): LoaderFunction; + /** + * Add a single message file to the list of loading functions using the file name as the bundle name. + * The loader will only be added if the bundle name is not already taken. + * + * @param packageName The npm package name. + * @param filePath The path of the file. + */ + static importMessageFile(packageName: string, filePath: string): void; + /** + * Import all json and js files in a messages directory. Use the file name as the bundle key when + * {@link Messages.loadMessages} is called. By default, we're assuming the moduleDirectoryPart is a + * typescript project and will truncate to root path (where the package.json file is). If your messages + * directory is in another spot or you are not using typescript, pass in false for truncateToProjectPath. + * + * ``` + * // e.g. If your message directory is in the project root, you would do: + * Messages.importMessagesDirectory(__dirname); + * ``` + * + * @param moduleDirectoryPath The path to load the messages folder. + * @param truncateToProjectPath Will look for the messages directory in the project root (where the package.json file is located). + * i.e., the module is typescript and the messages folder is in the top level of the module directory. + * @param packageName The npm package name. Figured out from the root directory's package.json. + */ + static importMessagesDirectory( + moduleDirectoryPath: string, + truncateToProjectPath?: boolean, + packageName?: string + ): void; + /** + * Load messages for a given package and bundle. If the bundle is not already cached, use the loader function + * created from {@link Messages.setLoaderFunction} or {@link Messages.importMessagesDirectory}. + * + * ```typescript + * Messages.importMessagesDirectory(__dirname); + * const messages = Messages.loadMessages('packageName', 'bundleName'); + * ``` + * + * @param packageName The name of the npm package. + * @param bundleName The name of the bundle to load. + */ + static loadMessages(packageName: string, bundleName: string): Messages; + /** + * Check if a bundle already been loaded. + * + * @param packageName The npm package name. + * @param bundleName The bundle name. + */ + static isCached(packageName: string, bundleName: string): boolean; + /** + * Get a message using a message key and use the tokens as values for tokenization. + * + * If the key happens to be an array of messages, it will combine with OS.EOL. + * + * @param key The key of the message. + * @param tokens The values to substitute in the message. + * + * **See** https://nodejs.org/api/util.html#util_util_format_format_args + */ + getMessage(key: T, tokens?: Tokens): string; + /** + * Get messages using a message key and use the tokens as values for tokenization. + * + * This will return all messages if the key is an array in the messages file. + * + * ```json + * { + * "myKey": [ "message1", "message2" ] + * } + * ``` + * + * ```markdown + * # myKey + * * message1 + * * message2 + * ``` + * + * @param key The key of the messages. + * @param tokens The values to substitute in the message. + * + * **See** https://nodejs.org/api/util.html#util_util_format_format_args + */ + getMessages(key: T, tokens?: Tokens): string[]; + /** + * Convenience method to create errors using message labels. + * + * `error.name` will be the upper-cased key, remove prefixed `error.` and will always end in Error. + * `error.actions` will be loaded using `${key}.actions` if available. + * + * @param key The key of the error message. + * @param tokens The error message tokens. + * @param actionTokens The action messages tokens. + * @param exitCodeOrCause The exit code which will be used by SfdxCommand or the underlying error that caused this error to be raised. + * @param cause The underlying error that caused this error to be raised. + */ + createError( + key: T, + tokens?: Tokens, + actionTokens?: Tokens, + exitCodeOrCause?: number | Error, + cause?: Error + ): SfError; + /** + * Convenience method to create warning using message labels. + * + * `warning.name` will be the upper-cased key, remove prefixed `warning.` and will always end in Warning. + * `warning.actions` will be loaded using `${key}.actions` if available. + * + * @param key The key of the warning message. + * @param tokens The warning message tokens. + * @param actionTokens The action messages tokens. + */ + createWarning(key: T, tokens?: Tokens, actionTokens?: Tokens): StructuredMessage; + /** + * Convenience method to create info using message labels. + * + * `info.name` will be the upper-cased key, remove prefixed `info.` and will always end in Info. + * `info.actions` will be loaded using `${key}.actions` if available. + * + * @param key The key of the warning message. + * @param tokens The warning message tokens. + * @param actionTokens The action messages tokens. + */ + createInfo(key: T, tokens?: Tokens, actionTokens?: Tokens): StructuredMessage; + /** + * Formats message contents given a message type, key, tokens and actions tokens + * + * `.name` will be the upper-cased key, remove prefixed `.` and will always end in 'Error | Warning | Info. + * `.actions` will be loaded using `${key}.actions` if available. + * + * @param type The type of the message set must 'error' | 'warning' | 'info'. + * @param key The key of the warning message. + * @param tokens The warning message tokens. + * @param actionTokens The action messages tokens. + * @param preserveName Do not require that the name end in the type ('error' | 'warning' | 'info'). + */ + private formatMessageContents; + private getMessageWithMap; + } +} +declare module '@salesforce/core/org/authInfo' { + import { AsyncOptionalCreatable } from '@salesforce/kit'; + import { Nullable } from '@salesforce/ts-types'; + import { OAuth2Config, OAuth2 } from 'jsforce'; + import { Connection } from '@salesforce/core/org/connection'; + import { Org } from '@salesforce/core/org/org'; + /** + * Fields for authorization, org, and local information. + */ + export type AuthFields = { + accessToken?: string; + alias?: string; + authCode?: string; + clientId?: string; + clientSecret?: string; + created?: string; + createdOrgInstance?: string; + devHubUsername?: string; + instanceUrl?: string; + instanceApiVersion?: string; + instanceApiVersionLastRetrieved?: string; + isDevHub?: boolean; + loginUrl?: string; + orgId?: string; + password?: string; + privateKey?: string; + refreshToken?: string; + scratchAdminUsername?: string; + snapshot?: string; + userId?: string; + username?: string; + usernames?: string[]; + userProfileName?: string; + expirationDate?: string; + tracksSource?: boolean; + [Org.Fields.NAME]?: string; + [Org.Fields.INSTANCE_NAME]?: string; + [Org.Fields.NAMESPACE_PREFIX]?: Nullable; + [Org.Fields.IS_SANDBOX]?: boolean; + [Org.Fields.IS_SCRATCH]?: boolean; + [Org.Fields.TRIAL_EXPIRATION_DATE]?: Nullable; + }; + export type OrgAuthorization = { + orgId: string; + username: string; + oauthMethod: 'jwt' | 'web' | 'token' | 'unknown'; + aliases: Nullable; + configs: Nullable; + isScratchOrg?: boolean; + isDevHub?: boolean; + isSandbox?: boolean; + instanceUrl?: string; + accessToken?: string; + error?: string; + isExpired: boolean | 'unknown'; + }; + /** + * Options for access token flow. + */ + export interface AccessTokenOptions { + accessToken?: string; + loginUrl?: string; + instanceUrl?: string; + } + export type AuthSideEffects = { + alias?: string; + setDefault: boolean; + setDefaultDevHub: boolean; + setTracksSource?: boolean; + }; + export type JwtOAuth2Config = OAuth2Config & { + privateKey?: string; + privateKeyFile?: string; + authCode?: string; + refreshToken?: string; + username?: string; + }; + /** + * A function to update a refresh token when the access token is expired. + */ + export type RefreshFn = ( + conn: Connection, + callback: (err: Nullable, accessToken?: string, res?: Record) => Promise + ) => Promise; + /** + * Options for {@link Connection}. + */ + export type ConnectionOptions = AuthFields & { + /** + * OAuth options. + */ + oauth2?: Partial; + /** + * Refresh token callback. + */ + refreshFn?: RefreshFn; + }; + export const DEFAULT_CONNECTED_APP_INFO: { + clientId: string; + clientSecret: string; + }; + /** + * Handles persistence and fetching of user authentication information using + * JWT, OAuth, or refresh tokens. Sets up the refresh flows that jsForce will + * use to keep tokens active. An AuthInfo can also be created with an access + * token, but AuthInfos created with access tokens can't be persisted to disk. + * + * **See** [Authorization](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_auth.htm) + * + * **See** [Salesforce DX Usernames and Orgs](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_cli_usernames_orgs.htm) + * + * ``` + * // Creating a new authentication file. + * const authInfo = await AuthInfo.create({ + * username: myAdminUsername, + * oauth2Options: { + * loginUrl, authCode, clientId, clientSecret + * } + * ); + * authInfo.save(); + * + * // Creating an authorization info with an access token. + * const authInfo = await AuthInfo.create({ + * username: accessToken + * }); + * + * // Using an existing authentication file. + * const authInfo = await AuthInfo.create({ + * username: myAdminUsername + * }); + * + * // Using the AuthInfo + * const connection = await Connection.create({ authInfo }); + * ``` + */ + export class AuthInfo extends AsyncOptionalCreatable { + private usingAccessToken; + private logger; + private stateAggregator; + private username; + private options; + /** + * Constructor + * **Do not directly construct instances of this class -- use {@link AuthInfo.create} instead.** + * + * @param options The options for the class instance + */ + constructor(options?: AuthInfo.Options); + /** + * Returns the default instance url + * + * @returns {string} + */ + static getDefaultInstanceUrl(): string; + /** + * Get a list of all authorizations based on auth files stored in the global directory. + * One can supply a filter (see @param orgAuthFilter) and calling this function without + * a filter will return all authorizations. + * + * @param orgAuthFilter A predicate function that returns true for those org authorizations that are to be retained. + * + * @returns {Promise} + */ + static listAllAuthorizations(orgAuthFilter?: (orgAuth: OrgAuthorization) => boolean): Promise; + /** + * Returns true if one or more authentications are persisted. + */ + static hasAuthentications(): Promise; + /** + * Get the authorization URL. + * + * @param options The options to generate the URL. + */ + static getAuthorizationUrl( + options: JwtOAuth2Config & { + scope?: string; + }, + oauth2?: OAuth2 + ): string; + /** + * Parse a sfdx auth url, usually obtained by `authInfo.getSfdxAuthUrl`. + * + * @example + * ``` + * await AuthInfo.create(AuthInfo.parseSfdxAuthUrl(sfdxAuthUrl)); + * ``` + * @param sfdxAuthUrl + */ + static parseSfdxAuthUrl( + sfdxAuthUrl: string + ): Pick; + /** + * Given a set of decrypted fields and an authInfo, determine if the org belongs to an available + * dev hub, or if the org is a sandbox of another CLI authed production org. + * + * @param fields + * @param orgAuthInfo + */ + static identifyPossibleScratchOrgs(fields: AuthFields, orgAuthInfo: AuthInfo): Promise; + /** + * Find all dev hubs available in the local environment. + */ + static getDevHubAuthInfos(): Promise; + private static identifyPossibleSandbox; + /** + * Checks active scratch orgs to match by the ScratchOrg field (the 15-char org id) + * if you pass an 18-char scratchOrgId, it will be trimmed to 15-char for query purposes + * Throws is no matching scratch org is found + */ + private static queryScratchOrg; + /** + * Get the username. + */ + getUsername(): string; + /** + * Returns true if `this` is using the JWT flow. + */ + isJwt(): boolean; + /** + * Returns true if `this` is using an access token flow. + */ + isAccessTokenFlow(): boolean; + /** + * Returns true if `this` is using the oauth flow. + */ + isOauth(): boolean; + /** + * Returns true if `this` is using the refresh token flow. + */ + isRefreshTokenFlow(): boolean; + /** + * Updates the cache and persists the authentication fields (encrypted). + * + * @param authData New data to save. + */ + save(authData?: AuthFields): Promise; + /** + * Update the authorization fields, encrypting sensitive fields, but do not persist. + * For convenience `this` object is returned. + * + * @param authData Authorization fields to update. + */ + update(authData?: AuthFields): AuthInfo; + /** + * Get the auth fields (decrypted) needed to make a connection. + */ + getConnectionOptions(): ConnectionOptions; + getClientId(): string; + getRedirectUri(): string; + /** + * Get the authorization fields. + * + * @param decrypt Decrypt the fields. + */ + getFields(decrypt?: boolean): AuthFields; + /** + * Get the org front door (used for web based oauth flows) + */ + getOrgFrontDoorUrl(): string; + /** + * Returns true if this org is using access token auth. + */ + isUsingAccessToken(): boolean; + /** + * Get the SFDX Auth URL. + * + * **See** [SFDX Authorization](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_force_auth.htm#cli_reference_force_auth) + */ + getSfdxAuthUrl(): string; + /** + * Convenience function to handle typical side effects encountered when dealing with an AuthInfo. + * Given the values supplied in parameter sideEffects, this function will set auth alias, default auth + * and default dev hub. + * + * @param sideEffects - instance of AuthSideEffects + */ + handleAliasAndDefaultSettings(sideEffects: AuthSideEffects): Promise; + /** + * Set the target-env (default) or the target-dev-hub to the alias if + * it exists otherwise to the username. Method will try to set the local + * config first but will default to global config if that fails. + * + * @param options + */ + setAsDefault(options?: { org?: boolean; devHub?: boolean }): Promise; + /** + * Sets the provided alias to the username + * + * @param alias alias to set + */ + setAlias(alias: string): Promise; + /** + * Initializes an instance of the AuthInfo class. + */ + init(): Promise; + private getInstanceUrl; + /** + * Initialize this AuthInfo instance with the specified options. If options are not provided, initialize it from cache + * or by reading from the persistence store. For convenience `this` object is returned. + * + * @param options Options to be used for creating an OAuth2 instance. + * + * **Throws** *{@link SfError}{ name: 'NamedOrgNotFoundError' }* Org information does not exist. + * @returns {Promise} + */ + private initAuthOptions; + private loadDecryptedAuthFromConfig; + private isTokenOptions; + private refreshFn; + private readJwtKey; + private authJwt; + private tryJwtAuth; + private buildRefreshTokenConfig; + /** + * Performs an authCode exchange but the Oauth2 feature of jsforce is extended to include a code_challenge + * + * @param options The oauth options + * @param oauth2 The oauth2 extension that includes a code_challenge + */ + private exchangeToken; + private retrieveUserInfo; + /** + * Given an error while getting the User object, handle different possibilities of response.body. + * + * @param response + * @private + */ + private throwUserGetException; + private getNamespacePrefix; + /** + * Returns `true` if the org is a Dev Hub. + * + * Check access to the ScratchOrgInfo object to determine if the org is a dev hub. + */ + private determineIfDevHub; + } + export namespace AuthInfo { + /** + * Constructor options for AuthInfo. + */ + interface Options { + /** + * Org signup username. + */ + username?: string; + /** + * OAuth options. + */ + oauth2Options?: JwtOAuth2Config; + /** + * Options for the access token auth. + */ + accessTokenOptions?: AccessTokenOptions; + oauth2?: OAuth2; + /** + * In certain situations, a new auth info wants to use the connected app + * information from another parent org. Typically for scratch org or sandbox + * creation. + */ + parentUsername?: string; + isDevHub?: boolean; + } + } +} +declare module '@salesforce/core/org/authRemover' { + import { AsyncOptionalCreatable } from '@salesforce/kit'; + import { JsonMap } from '@salesforce/ts-types'; + import { AuthFields } from '@salesforce/core/org/index'; + /** + * Handles the removing of authorizations, which includes deleting the auth file + * in the global .sfdx folder, deleting any configs that are associated with the username/alias, + * and deleting any aliases associated with the username + * + * ``` + * const remover = await AuthRemover.create(); + * await remover.removeAuth('example@mycompany.com'); + * ``` + * + * ``` + * const remover = await AuthRemover.create(); + * await remover.removeAllAuths(); + * ``` + * + * ``` + * const remover = await AuthRemover.create(); + * const auth = await remover.findAuth( + * example@mycompany.com + * ); + * await remover.removeAuth(auth.username); + * ``` + */ + export class AuthRemover extends AsyncOptionalCreatable { + private config; + private stateAggregator; + private logger; + /** + * Removes the authentication and any configs or aliases associated with it + * + * @param usernameOrAlias the username or alias that you want to remove + */ + removeAuth(usernameOrAlias: string): Promise; + /** + * Removes all authentication files and any configs or aliases associated with them + */ + removeAllAuths(): Promise; + /** + * Finds authorization files for username/alias in the global .sfdx folder + * **Throws** *{@link SfError}{ name: 'TargetOrgNotSetError' }* if no target-org + * **Throws** *{@link SfError}{ name: 'NamedOrgNotFoundError' }* if specified user is not found + * + * @param usernameOrAlias username or alias of the auth you want to find, defaults to the configured target-org + * @returns {Promise} + */ + findAuth(usernameOrAlias?: string): Promise; + /** + * Finds all org authorizations in the global info file (.sf/sf.json) + * + * @returns {Record} + */ + findAllAuths(): Record; + protected init(): Promise; + /** + * Returns the username for a given alias if the alias exists. + * + * @param usernameOrAlias username or alias + * @returns {Promise} + */ + private resolveUsername; + /** + * @returns {string} + */ + private getTargetOrg; + /** + * Returns aliases for provided username + * + * @param username username that's been aliased + * @returns {Promise} + */ + private getAliases; + /** + * Unsets any configured values (both global and local) for provided username + * + * @param username username that you want to remove from config files + */ + private unsetConfigValues; + /** + * Unsets any aliases for provided username + * + * @param username username that you want to remove from aliases + */ + private unsetAliases; + private unsetTokens; + } +} +declare module '@salesforce/core/org/connection' { + /// + import { AsyncResult, DeployOptions, DeployResultLocator } from 'jsforce/api/metadata'; + import { JsonMap, Optional } from '@salesforce/ts-types'; + import { + Connection as JSForceConnection, + ConnectionConfig, + HttpRequest, + QueryOptions, + QueryResult, + Record, + Schema, + } from 'jsforce'; + import { Tooling as JSForceTooling } from 'jsforce/lib/api/tooling'; + import { StreamPromise } from 'jsforce/lib/util/promise'; + import { ConfigAggregator } from '@salesforce/core/config/configAggregator'; + import { AuthFields, AuthInfo } from '@salesforce/core/org/authInfo'; + export const SFDX_HTTP_HEADERS: { + 'content-type': string; + 'user-agent': string; + }; + export const DNS_ERROR_NAME = 'DomainNotFoundError'; + export type DeployOptionsWithRest = Partial & { + rest?: boolean; + }; + export interface Tooling extends JSForceTooling { + _logger: any; + } + /** + * Handles connections and requests to Salesforce Orgs. + * + * ``` + * // Uses latest API version + * const connection = await Connection.create({ + * authInfo: await AuthInfo.create({ username: 'myAdminUsername' }) + * }); + * connection.query('SELECT Name from Account'); + * + * // Use different API version + * connection.setApiVersion("42.0"); + * connection.query('SELECT Name from Account'); + * ``` + */ + export class Connection extends JSForceConnection { + private logger; + private options; + private username; + private hasResolved; + private maxApiVersion; + /** + * Constructor + * **Do not directly construct instances of this class -- use {@link Connection.create} instead.** + * + * @param options The options for the class instance. + * @ignore + */ + constructor(options: Connection.Options); + /** + * Tooling api reference. + */ + get tooling(): Tooling; + /** + * Creates an instance of a Connection. Performs additional async initializations. + * + * @param options Constructor options. + */ + static create( + this: new (options: Connection.Options) => Connection, + options: Connection.Options + ): Promise>; + /** + * Async initializer. + */ + init(): Promise; + /** + * deploy a zipped buffer from the SDRL with REST or SOAP + * + * @param zipInput data to deploy + * @param options JSForce deploy options + a boolean for rest + */ + deploy(zipInput: Buffer, options: DeployOptionsWithRest): Promise>; + /** + * Send REST API request with given HTTP request info, with connected session information + * and SFDX headers. + * + * @param request HTTP request object or URL to GET request. + * @param options HTTP API request options. + */ + request(request: string | HttpRequest, options?: JsonMap): StreamPromise; + /** + * The Force API base url for the instance. + */ + baseUrl(): string; + /** + * Retrieves the highest api version that is supported by the target server instance. + */ + retrieveMaxApiVersion(): Promise; + /** + * Use the latest API version available on `this.instanceUrl`. + */ + useLatestApiVersion(): Promise; + /** + * Verify that instance has a reachable DNS entry, otherwise will throw error + */ + isResolvable(): Promise; + /** + * Get the API version used for all connection requests. + */ + getApiVersion(): string; + /** + * Set the API version for all connection requests. + * + * **Throws** *{@link SfError}{ name: 'IncorrectAPIVersionError' }* Incorrect API version. + * + * @param version The API version. + */ + setApiVersion(version: string): void; + /** + * Getter for AuthInfo. + */ + getAuthInfo(): AuthInfo; + /** + * Getter for the AuthInfo fields. + */ + getAuthInfoFields(): AuthFields; + /** + * Getter for the auth fields. + */ + getConnectionOptions(): AuthFields; + /** + * Getter for the username of the Salesforce Org. + */ + getUsername(): Optional; + /** + * Returns true if this connection is using access token auth. + */ + isUsingAccessToken(): boolean; + /** + * Normalize a Salesforce url to include a instance information. + * + * @param url Partial url. + */ + normalizeUrl(url: string): string; + /** + * Executes a query and auto-fetches (i.e., "queryMore") all results. This is especially + * useful with large query result sizes, such as over 2000 records. The default maximum + * fetch size is 10,000 records. Modify this via the options argument. + * + * @param soql The SOQL string. + * @param queryOptions The query options. NOTE: the autoFetch option will always be true. + */ + autoFetchQuery( + soql: string, + queryOptions?: Partial< + QueryOptions & { + tooling: boolean; + } + > + ): Promise>; + /** + * Executes a query using either standard REST or Tooling API, returning a single record. + * Will throw if either zero records are found OR multiple records are found. + * + * @param soql The SOQL string. + * @param options The query options. + */ + singleRecordQuery(soql: string, options?: SingleRecordQueryOptions): Promise; + /** + * Executes a get request on the baseUrl to force an auth refresh + * Useful for the raw methods (request, requestRaw) that use the accessToken directly and don't handle refreshes + */ + refreshAuth(): Promise; + private getCachedApiVersion; + } + export const SingleRecordQueryErrors: { + NoRecords: string; + MultipleRecords: string; + }; + export interface SingleRecordQueryOptions { + tooling?: boolean; + returnChoicesOnMultiple?: boolean; + choiceField?: string; + } + export namespace Connection { + /** + * Connection Options. + */ + interface Options { + /** + * AuthInfo instance. + */ + authInfo: AuthInfo; + /** + * ConfigAggregator for getting defaults. + */ + configAggregator?: ConfigAggregator; + /** + * Additional connection parameters. + */ + connectionOptions?: ConnectionConfig; + } + } +} +declare module '@salesforce/core/org/index' { + export * from '@salesforce/core/org/authInfo'; + export * from '@salesforce/core/org/authRemover'; + export * from '@salesforce/core/org/connection'; + export * from '@salesforce/core/org/org'; + export * from '@salesforce/core/org/permissionSetAssignment'; + export * from '@salesforce/core/org/user'; +} +declare module '@salesforce/core/org/org' { + import { AsyncOptionalCreatable, Duration } from '@salesforce/kit'; + import { AnyJson, JsonMap, Nullable, Optional } from '@salesforce/ts-types'; + import { ConfigAggregator } from '@salesforce/core/config/configAggregator'; + import { OrgUsersConfig } from '@salesforce/core/config/orgUsersConfig'; + import { Connection } from '@salesforce/core/org/connection'; + import { AuthFields, AuthInfo } from '@salesforce/core/org/authInfo'; + import { ScratchOrgCreateOptions, ScratchOrgCreateResult } from '@salesforce/core/org/scratchOrgCreate'; + export type OrganizationInformation = { + Name: string; + InstanceName: string; + IsSandbox: boolean; + TrialExpirationDate: string | null; + NamespacePrefix: string | null; + }; + export enum OrgTypes { + Scratch = 'scratch', + Sandbox = 'sandbox', + } + export interface StatusEvent { + sandboxProcessObj: SandboxProcessObject; + interval: number; + remainingWait: number; + waitingOnAuth: boolean; + } + export interface ResultEvent { + sandboxProcessObj: SandboxProcessObject; + sandboxRes: SandboxUserAuthResponse; + } + export interface SandboxUserAuthRequest { + sandboxName: string; + clientId: string; + callbackUrl: string; + } + export enum SandboxEvents { + EVENT_STATUS = 'status', + EVENT_ASYNC_RESULT = 'asyncResult', + EVENT_RESULT = 'result', + EVENT_AUTH = 'auth', + EVENT_RESUME = 'resume', + EVENT_MULTIPLE_SBX_PROCESSES = 'multipleMatchingSbxProcesses', + } + export interface SandboxUserAuthResponse { + authUserName: string; + authCode: string; + instanceUrl: string; + loginUrl: string; + } + export function sandboxIsResumable(value: string): boolean; + export type SandboxProcessObject = { + Id: string; + Status: string; + SandboxName: string; + SandboxInfoId: string; + LicenseType: string; + CreatedDate: string; + SandboxOrganization?: string; + CopyProgress?: number; + SourceId?: string; + Description?: string; + ApexClassId?: string; + EndDate?: string; + }; + export type SandboxRequest = { + SandboxName: string; + LicenseType?: string; + /** Should match a SandboxInfoId, not a SandboxProcessId */ + SourceId?: string; + Description?: string; + }; + export type ResumeSandboxRequest = { + SandboxName?: string; + SandboxProcessObjId?: string; + }; + export type ScratchOrgRequest = Omit; + export type SandboxFields = { + sandboxOrgId: string; + prodOrgUsername: string; + sandboxName?: string; + sandboxUsername?: string; + sandboxProcessId?: string; + sandboxInfoId?: string; + timestamp?: string; + }; + /** + * Provides a way to manage a locally authenticated Org. + * + * **See** {@link AuthInfo} + * + * **See** {@link Connection} + * + * **See** {@link Aliases} + * + * **See** {@link Config} + * + * ``` + * // Email username + * const org1: Org = await Org.create({ aliasOrUsername: 'foo@example.com' }); + * // The target-org config property + * const org2: Org = await Org.create(); + * // Full Connection + * const org3: Org = await Org.create({ + * connection: await Connection.create({ + * authInfo: await AuthInfo.create({ username: 'username' }) + * }) + * }); + * ``` + * + * **See** https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_cli_usernames_orgs.htm + */ + export class Org extends AsyncOptionalCreatable { + private status; + private configAggregator; + private logger; + private connection; + private options; + private orgId?; + /** + * @ignore + */ + constructor(options?: Org.Options); + /** + * create a sandbox from a production org + * 'this' needs to be a production org with sandbox licenses available + * + * @param sandboxReq SandboxRequest options to create the sandbox with + * @param options Wait: The amount of time to wait before timing out, Interval: The time interval between polling + */ + createSandbox( + sandboxReq: SandboxRequest, + options?: { + wait?: Duration; + interval?: Duration; + async?: boolean; + } + ): Promise; + /** + * + * @param sandboxReq SandboxRequest options to create the sandbox with + * @param sourceSandboxName the name of the sandbox that your new sandbox will be based on + * @param options Wait: The amount of time to wait before timing out, defaults to 0, Interval: The time interval between polling defaults to 30 seconds + * @returns {SandboxProcessObject} the newly created sandbox process object + */ + cloneSandbox( + sandboxReq: SandboxRequest, + sourceSandboxName: string, + options: { + wait?: Duration; + interval?: Duration; + } + ): Promise; + /** + * Resume a sandbox creation from a production org. + * `this` needs to be a production org with sandbox licenses available. + * + * @param resumeSandboxRequest SandboxRequest options to create the sandbox with + * @param options Wait: The amount of time to wait (default: 0 minutes) before timing out, + * Interval: The time interval (default: 30 seconds) between polling + */ + resumeSandbox( + resumeSandboxRequest: ResumeSandboxRequest, + options?: { + wait?: Duration; + interval?: Duration; + async?: boolean; + } + ): Promise; + /** + * Creates a scratchOrg + * 'this' needs to be a valid dev-hub + * + * @param {options} ScratchOrgCreateOptions + * @returns {ScratchOrgCreateResult} + */ + scratchOrgCreate(options: ScratchOrgRequest): Promise; + /** + * Reports sandbox org creation status. If the org is ready, authenticates to the org. + * + * @param {sandboxname} string the sandbox name + * @param options Wait: The amount of time to wait before timing out, Interval: The time interval between polling + * @returns {SandboxProcessObject} the sandbox process object + */ + sandboxStatus( + sandboxname: string, + options: { + wait?: Duration; + interval?: Duration; + } + ): Promise; + /** + * Clean all data files in the org's data path. Usually /.sfdx/orgs/. + * + * @param orgDataPath A relative path other than "orgs/". + * @param throwWhenRemoveFails Should the remove org operations throw an error on failure? + */ + cleanLocalOrgData(orgDataPath?: string, throwWhenRemoveFails?: boolean): Promise; + /** + * @ignore + */ + retrieveOrgUsersConfig(): Promise; + /** + * Cleans up all org related artifacts including users, sandbox config (if a sandbox), source tracking files, and auth file. + * + * @param throwWhenRemoveFails Determines if the call should throw an error or fail silently. + */ + remove(throwWhenRemoveFails?: boolean): Promise; + /** + * Check if org is a sandbox org by checking its SandboxOrgConfig. + * + */ + isSandbox(): Promise; + /** + * Check that this org is a scratch org by asking the dev hub if it knows about it. + * + * **Throws** *{@link SfError}{ name: 'NotADevHubError' }* Not a Dev Hub. + * + * **Throws** *{@link SfError}{ name: 'NoResultsError' }* No results. + * + * @param devHubUsernameOrAlias The username or alias of the dev hub org. + */ + checkScratchOrg(devHubUsernameOrAlias?: string): Promise>; + /** + * Returns the Org object or null if this org is not affiliated with a Dev Hub (according to the local config). + */ + getDevHubOrg(): Promise>; + /** + * Returns `true` if the org is a Dev Hub. + * + * **Note** This relies on a cached value in the auth file. If that property + * is not cached, this method will **always return false even if the org is a + * dev hub**. If you need accuracy, use the {@link Org.determineIfDevHubOrg} method. + */ + isDevHubOrg(): boolean; + /** + * Will delete 'this' instance remotely and any files locally + * + * @param controllingOrg username or Org that 'this.devhub' or 'this.production' refers to. AKA a DevHub for a scratch org, or a Production Org for a sandbox + */ + deleteFrom(controllingOrg: string | Org): Promise; + /** + * Will delete 'this' instance remotely and any files locally + */ + delete(): Promise; + /** + * Returns `true` if the org is a Dev Hub. + * + * Use a cached value. If the cached value is not set, then check access to the + * ScratchOrgInfo object to determine if the org is a dev hub. + * + * @param forceServerCheck Ignore the cached value and go straight to the server + * which will be required if the org flips on the dev hub after the value is already + * cached locally. + */ + determineIfDevHubOrg(forceServerCheck?: boolean): Promise; + /** + * Returns `true` if the org is a scratch org. + * + * **Note** This relies on a cached value in the auth file. If that property + * is not cached, this method will **always return false even if the org is a + * scratch org**. If you need accuracy, use the {@link Org.determineIfScratch} method. + */ + isScratch(): boolean; + /** + * Returns `true` if the org uses source tracking. + * Side effect: updates files where the property doesn't currently exist + */ + tracksSource(): Promise; + /** + * Set the tracking property on the org's auth file + * + * @param value true or false (whether the org should use source tracking or not) + */ + setTracksSource(value: boolean): Promise; + /** + * Returns `true` if the org is a scratch org. + * + * Use a cached value. If the cached value is not set, then check + * `Organization.IsSandbox == true && Organization.TrialExpirationDate != null` + * using {@link Org.retrieveOrganizationInformation}. + */ + determineIfScratch(): Promise; + /** + * Returns `true` if the org is a sandbox. + * + * Use a cached value. If the cached value is not set, then check + * `Organization.IsSandbox == true && Organization.TrialExpirationDate == null` + * using {@link Org.retrieveOrganizationInformation}. + */ + determineIfSandbox(): Promise; + /** + * Retrieve a handful of fields from the Organization table in Salesforce. If this does not have the + * data you need, just use {@link Connection.singleRecordQuery} with `SELECT FROM Organization`. + * + * @returns org information + */ + retrieveOrganizationInformation(): Promise; + /** + * Some organization information is locally cached, such as if the org name or if it is a scratch org. + * This method populates/updates the filesystem from information retrieved from the org. + */ + updateLocalInformation(): Promise; + /** + * Refreshes the auth for this org's instance by calling HTTP GET on the baseUrl of the connection object. + */ + refreshAuth(): Promise; + /** + * Reads and returns the content of all user auth files for this org as an array. + */ + readUserAuthFiles(): Promise; + /** + * Adds a username to the user config for this org. For convenience `this` object is returned. + * + * ``` + * const org: Org = await Org.create({ + * connection: await Connection.create({ + * authInfo: await AuthInfo.create('foo@example.com') + * }) + * }); + * const userAuth: AuthInfo = await AuthInfo.create({ + * username: 'bar@example.com' + * }); + * await org.addUsername(userAuth); + * ``` + * + * @param {AuthInfo | string} auth The AuthInfo for the username to add. + */ + addUsername(auth: AuthInfo | string): Promise; + /** + * Removes a username from the user config for this object. For convenience `this` object is returned. + * + * **Throws** *{@link SfError}{ name: 'MissingAuthInfoError' }* Auth info is missing. + * + * @param {AuthInfo | string} auth The AuthInfo containing the username to remove. + */ + removeUsername(auth: AuthInfo | string): Promise; + /** + * set the sandbox config related to this given org + * + * @param orgId {string} orgId of the sandbox + * @param config {SandboxFields} config of the sandbox + */ + setSandboxConfig(orgId: string, config: SandboxFields): Promise; + /** + * get the sandbox config for the given orgId + * + * @param orgId {string} orgId of the sandbox + */ + getSandboxConfig(orgId: string): Promise>; + /** + * Retrieves the highest api version that is supported by the target server instance. If the apiVersion configured for + * Sfdx is greater than the one returned in this call an api version mismatch occurs. In the case of the CLI that + * results in a warning. + */ + retrieveMaxApiVersion(): Promise; + /** + * Returns the admin username used to create the org. + */ + getUsername(): Optional; + /** + * Returns the orgId for this org. + */ + getOrgId(): string; + /** + * Returns for the config aggregator. + */ + getConfigAggregator(): ConfigAggregator; + /** + * Returns an org field. Returns undefined if the field is not set or invalid. + */ + getField(key: Org.Fields): T; + /** + * Returns a map of requested fields. + */ + getFields(keys: Org.Fields[]): JsonMap; + /** + * Returns the JSForce connection for the org. + * side effect: If you pass it an apiVersion, it will set it on the Org + * so that future calls to getConnection() will also use that version. + * + * @param apiVersion The API version to use for the connection. + */ + getConnection(apiVersion?: string): Connection; + supportsSourceTracking(): Promise; + /** + * query SandboxProcess via sandbox name + * + * @param name SandboxName to query for + */ + querySandboxProcessBySandboxName(name: string): Promise; + /** + * query SandboxProcess via SandboxInfoId + * + * @param id SandboxInfoId to query for + */ + querySandboxProcessBySandboxInfoId(id: string): Promise; + /** + * query SandboxProcess via Id + * + * @param id SandboxProcessId to query for + */ + querySandboxProcessById(id: string): Promise; + /** + * query SandboxProcess via SandboxOrganization (sandbox Org ID) + * + * @param sandboxOrgId SandboxOrganization ID to query for + */ + querySandboxProcessByOrgId(sandboxOrgId: string): Promise; + /** + * Initialize async components. + */ + protected init(): Promise; + /** + * **Throws** *{@link SfError}{ name: 'NotSupportedError' }* Throws an unsupported error. + */ + protected getDefaultOptions(): Org.Options; + private getLocalDataDir; + /** + * Gets the sandboxProcessObject and then polls for it to complete. + * + * @param sandboxProcessName sanbox process name + * @param options { wait?: Duration; interval?: Duration } + * @returns {SandboxProcessObject} The SandboxProcessObject for the sandbox + */ + private authWithRetriesByName; + /** + * Polls the sandbox org for the sandboxProcessObject. + * + * @param sandboxProcessObj: The in-progress sandbox signup request + * @param options { wait?: Duration; interval?: Duration } + * @returns {SandboxProcessObject} + */ + private authWithRetries; + /** + * Query the sandbox for the SandboxProcessObject by sandbox name + * + * @param sandboxName The name of the sandbox to query + * @returns {SandboxProcessObject} The SandboxProcessObject for the sandbox + */ + private queryLatestSandboxProcessBySandboxName; + private queryProduction; + private destroySandbox; + private destroyScratchOrg; + /** + * this method will delete the sandbox org from the production org and clean up any local files + * + * @param prodOrg - Production org associated with this sandbox + * @private + */ + private deleteSandbox; + /** + * If this Org is a scratch org, calling this method will delete the scratch org from the DevHub and clean up any local files + * + * @param devHub - optional DevHub Org of the to-be-deleted scratch org + * @private + */ + private deleteScratchOrg; + /** + * Delete an auth info file from the local file system and any related cache information for + * this Org. You don't want to call this method directly. Instead consider calling Org.remove() + */ + private removeAuth; + /** + * Deletes the users config file + */ + private removeUsersConfig; + private manageDelete; + /** + * Remove the org users auth file. + * + * @param throwWhenRemoveFails true if manageDelete should throw or not if the deleted fails. + */ + private removeUsers; + private removeSandboxConfig; + private writeSandboxAuthFile; + private pollStatusAndAuth; + /** + * query SandboxProcess using supplied where clause + * + * @param where clause to query for + * @private + */ + private querySandboxProcess; + /** + * determines if the sandbox has successfully been created + * + * @param sandboxProcessObj sandbox signup progress + * @private + */ + private sandboxSignupComplete; + private validateWaitOptions; + /** + * removes source tracking files hosted in the project/.sf/orgs// + * + * @private + */ + private removeSourceTrackingFiles; + } + export namespace Org { + /** + * Constructor Options for and Org. + */ + interface Options { + aliasOrUsername?: string; + connection?: Connection; + aggregator?: ConfigAggregator; + isDevHub?: boolean; + } + /** + * Scratch Org status. + */ + enum Status { + /** + * The scratch org is active. + */ + ACTIVE = 'ACTIVE', + /** + * The scratch org has expired. + */ + EXPIRED = 'EXPIRED', + /** + * The org is a scratch Org but no dev hub is indicated. + */ + UNKNOWN = 'UNKNOWN', + /** + * The dev hub configuration is reporting an active Scratch org but the AuthInfo cannot be found. + */ + MISSING = 'MISSING', + } + /** + * Org Fields. + */ + enum Fields { + /** + * The org alias. + */ + ALIAS = 'alias', + CREATED = 'created', + NAME = 'name', + NAMESPACE_PREFIX = 'namespacePrefix', + INSTANCE_NAME = 'instanceName', + TRIAL_EXPIRATION_DATE = 'trailExpirationDate', + /** + * The Salesforce instance the org was created on. e.g. `cs42`. + */ + CREATED_ORG_INSTANCE = 'createdOrgInstance', + /** + * The username of the dev hub org that created this org. Only populated for scratch orgs. + */ + DEV_HUB_USERNAME = 'devHubUsername', + /** + * The full url of the instance the org lives on. + */ + INSTANCE_URL = 'instanceUrl', + /** + * Is the current org a dev hub org. e.g. They have access to the `ScratchOrgInfo` object. + */ + IS_DEV_HUB = 'isDevHub', + /** + * Is the current org a scratch org. e.g. Organization has IsSandbox == true and TrialExpirationDate != null. + */ + IS_SCRATCH = 'isScratch', + /** + * Is the current org a dev hub org. e.g. Organization has IsSandbox == true and TrialExpirationDate == null. + */ + IS_SANDBOX = 'isSandbox', + /** + * The login url of the org. e.g. `https://login.salesforce.com` or `https://test.salesforce.com`. + */ + LOGIN_URL = 'loginUrl', + /** + * The org ID. + */ + ORG_ID = 'orgId', + /** + * The `OrgStatus` of the org. + */ + STATUS = 'status', + /** + * The snapshot used to create the scratch org. + */ + SNAPSHOT = 'snapshot', + /** + * true: the org supports and wants source tracking + * false: the org opted out of tracking or can't support it + */ + TRACKS_SOURCE = 'tracksSource', + } + } +} +declare module '@salesforce/core/org/orgConfigProperties' { + import { ConfigValue } from '@salesforce/core/config/configStore'; + export enum OrgConfigProperties { + /** + * Username associate with the default org. + */ + TARGET_ORG = 'target-org', + /** + * Username associated with the default dev hub org. + */ + TARGET_DEV_HUB = 'target-dev-hub', + /** + * The api version + */ + ORG_API_VERSION = 'org-api-version', + /** + * Custom templates repo or local location. + */ + ORG_CUSTOM_METADATA_TEMPLATES = 'org-custom-metadata-templates', + /** + * Allows users to override the 10,000 result query limit. + */ + ORG_MAX_QUERY_LIMIT = 'org-max-query-limit', + /** + * The instance url of the org. + */ + ORG_INSTANCE_URL = 'org-instance-url', + /** + * The sid for the debugger configuration. + */ + ORG_ISV_DEBUGGER_SID = 'org-isv-debugger-sid', + /** + * The url for the debugger configuration. + */ + ORG_ISV_DEBUGGER_URL = 'org-isv-debugger-url', + } + export const ORG_CONFIG_ALLOWED_PROPERTIES: ( + | { + key: OrgConfigProperties; + description: string; + input?: undefined; + hidden?: undefined; + encrypted?: undefined; + } + | { + key: OrgConfigProperties; + description: string; + input: { + validator: (value: ConfigValue) => boolean; + failedMessage: string; + }; + hidden?: undefined; + encrypted?: undefined; + } + | { + key: OrgConfigProperties; + description: string; + hidden: boolean; + input: { + validator: (value: ConfigValue) => boolean; + failedMessage: string; + }; + encrypted?: undefined; + } + | { + key: OrgConfigProperties; + description: string; + encrypted: boolean; + input: { + validator: (value: ConfigValue) => boolean; + failedMessage: string; + }; + hidden?: undefined; + } + )[]; +} +declare module '@salesforce/core/org/permissionSetAssignment' { + import { Org } from '@salesforce/core/org/org'; + /** + * Map of fields name for a permission set assignment + */ + export interface PermissionSetAssignmentFields { + assigneeId: string; + permissionSetId: string; + } + /** + * A class for assigning a Salesforce User to one or more permission sets. + */ + export class PermissionSetAssignment { + private logger; + private org; + private constructor(); + /** + * Creates a new instance of PermissionSetAssignment. + * + * @param org The target org for the assignment. + */ + static init(org: Org): Promise; + /** + * Assigns a user to one or more permission sets. + * + * @param id A user id + * @param permSetString An array of permission set names. + */ + create(id: string, permSetString: string): Promise; + /** + * Parses a permission set name based on if it has a namespace or not. + * + * @param permSetString The permission set string. + */ + private parsePermissionSetString; + } +} +declare module '@salesforce/core/org/scratchOrgCache' { + import { JsonMap } from '@salesforce/ts-types'; + import { TTLConfig } from '@salesforce/core/config/ttlConfig'; + export type CachedOptions = { + hubUsername: string; + /** stores the scratch definition, including settings/objectSettings */ + definitionjson: JsonMap; + hubBaseUrl: string; + /** may be required for auth*/ + clientSecret?: string; + signupTargetLoginUrlConfig?: string; + apiVersion?: string; + alias?: string; + setDefault?: boolean; + tracksSource?: boolean; + }; + export class ScratchOrgCache extends TTLConfig { + static getFileName(): string; + static getDefaultOptions(): TTLConfig.Options; + static unset(key: string): Promise; + } +} +declare module '@salesforce/core/org/scratchOrgCreate' { + import { Duration } from '@salesforce/kit'; + import { Org } from '@salesforce/core/org/org'; + import { ScratchOrgInfo } from '@salesforce/core/org/scratchOrgTypes'; + import { AuthFields, AuthInfo } from '@salesforce/core/org/authInfo'; + export const DEFAULT_STREAM_TIMEOUT_MINUTES = 6; + export interface ScratchOrgCreateResult { + username?: string; + scratchOrgInfo?: ScratchOrgInfo; + authInfo?: AuthInfo; + authFields?: AuthFields; + warnings: string[]; + } + export interface ScratchOrgCreateOptions { + /** the environment hub org */ + hubOrg: Org; + /** The connected app consumer key. */ + connectedAppConsumerKey?: string; + /** duration of the scratch org (in days) (default:1, min:1, max:30) */ + durationDays?: number; + /** create the scratch org with no namespace */ + nonamespace?: boolean; + /** create the scratch org with no second-generation package ancestors */ + noancestors?: boolean; + /** the streaming client socket timeout (in minutes) must be an instance of the Duration utility class (default:6) */ + wait?: Duration; + /** number of scratch org auth retries after scratch org is successfully signed up (default:0, min:0, max:10) */ + retry?: number; + /** target server instance API version */ + apiversion?: string; + /** + * org definition in JSON format, stringified + * + * @deprecated use orgConfig + */ + definitionjson?: string; + /** + * path to an org definition file + * + * @deprecated use orgConfig + * */ + definitionfile?: string; + /** overrides definitionjson */ + orgConfig?: Record; + /** OAuth client secret of personal connected app */ + clientSecret?: string; + /** alias to set for the created org */ + alias?: string; + /** after complete, set the org as the default */ + setDefault?: boolean; + /** if false, do not use source tracking for this scratch org */ + tracksSource?: boolean; + } + export const scratchOrgResume: (jobId: string) => Promise; + export const scratchOrgCreate: (options: ScratchOrgCreateOptions) => Promise; +} +declare module '@salesforce/core/org/scratchOrgErrorCodes' { + import { Optional } from '@salesforce/ts-types'; + import { ScratchOrgInfo } from '@salesforce/core/org/scratchOrgTypes'; + import { ScratchOrgCache } from '@salesforce/core/org/scratchOrgCache'; + export const validateScratchOrgInfoForResume: ({ + jobId, + scratchOrgInfo, + cache, + hubUsername, + }: { + jobId: string; + scratchOrgInfo: ScratchOrgInfo; + cache: ScratchOrgCache; + hubUsername: string; + }) => Promise; + export const checkScratchOrgInfoForErrors: ( + orgInfo: Optional, + hubUsername: Optional + ) => Promise; +} +declare module '@salesforce/core/org/scratchOrgFeatureDeprecation' { + interface FeatureTypes { + simpleFeatureMapping: { + [key: string]: string[]; + }; + quantifiedFeatureMapping: Record; + deprecatedFeatures: string[]; + } + export class ScratchOrgFeatureDeprecation { + private featureTypes; + constructor(options?: FeatureTypes); + /** + * Gets list of feature warnings that should be logged + * + * @param features The requested features. + * @returns List of string feature warnings. + */ + getFeatureWarnings(features: string | string[]): string[]; + /** + * Removes all deprecated features for the organization. + * + * @param features List of features to filter + * @returns feature array with proper mapping. + */ + filterDeprecatedFeatures(features: string[]): string[]; + } + export {}; +} +declare module '@salesforce/core/org/scratchOrgInfoApi' { + import { Duration } from '@salesforce/kit'; + import { SaveResult } from 'jsforce'; + import { AuthInfo } from '@salesforce/core/org/authInfo'; + import { Org } from '@salesforce/core/org/org'; + import SettingsGenerator from '@salesforce/core/org/scratchOrgSettingsGenerator'; + import { ScratchOrgInfo } from '@salesforce/core/org/scratchOrgTypes'; + export interface JsForceError extends Error { + errorCode: string; + fields: string[]; + } + /** + * + * @param hubOrg Org + * @param id Record ID for the ScratchOrgInfoObject + * @returns Promise + */ + export const queryScratchOrgInfo: (hubOrg: Org, id: string) => Promise; + /** + * after we successfully signup an org we need to trade the auth token for access and refresh token. + * + * scratchOrgInfoComplete - The completed ScratchOrgInfo which should contain an access token. + * hubOrg - the environment hub org + * clientSecret - The OAuth client secret. May be null for JWT OAuth flow. + * signupTargetLoginUrlConfig - Login url + * retry - auth retry attempts + * + * @returns {Promise} + */ + export const authorizeScratchOrg: (options: { + scratchOrgInfoComplete: ScratchOrgInfo; + hubOrg: Org; + clientSecret?: string; + signupTargetLoginUrlConfig?: string; + retry?: number; + }) => Promise; + /** + * This extracts orgPrefs/settings from the user input and performs a basic scratchOrgInfo request. + * + * @param hubOrg - the environment hub org + * @param scratchOrgRequest - An object containing the fields of the ScratchOrgInfo + * @param settings - An object containing org settings + * @returns {Promise} + */ + export const requestScratchOrgCreation: ( + hubOrg: Org, + scratchOrgRequest: ScratchOrgInfo, + settings: SettingsGenerator + ) => Promise; + /** + * This retrieves the ScratchOrgInfo, polling until the status is Active or Error + * + * @param hubOrg + * @param scratchOrgInfoId - the id of the scratchOrgInfo that we are retrieving + * @param timeout - A Duration object + * @returns {Promise} + */ + export const pollForScratchOrgInfo: ( + hubOrg: Org, + scratchOrgInfoId: string, + timeout?: Duration + ) => Promise; + /** + * Deploy settings to the newly created scratch org + * + * @param scratchOrg an instance of the Org class + * @param orgSettings an instance of the SettingsGenerator class + * @param apiVersion the api version (used when created the package.xml) + */ + export const deploySettings: ( + scratchOrg: Org, + orgSettings: SettingsGenerator, + apiVersion: string, + timeout?: Duration + ) => Promise; + /** + * + * @param scratchOrgAuthInfo an AuthInfo class from the scratch org + * @returns AuthInfo + */ + export const resolveUrl: (scratchOrgAuthInfo: AuthInfo) => Promise; + export const updateRevisionCounterToZero: (scratchOrg: Org) => Promise; +} +declare module '@salesforce/core/org/scratchOrgInfoGenerator' { + import { SfProjectJson } from '@salesforce/core/sfProject'; + import { Org } from '@salesforce/core/org/org'; + import { ScratchOrgInfo } from '@salesforce/core/org/scratchOrgTypes'; + type PartialScratchOrgInfo = Pick< + ScratchOrgInfo, + | 'ConnectedAppConsumerKey' + | 'AuthCode' + | 'Snapshot' + | 'Status' + | 'LoginUrl' + | 'SignupEmail' + | 'SignupUsername' + | 'SignupInstance' + | 'Username' + >; + export interface ScratchOrgInfoPayload extends PartialScratchOrgInfo { + orgName: string; + package2AncestorIds: string; + features: string | string[]; + connectedAppConsumerKey: string; + namespace: string; + connectedAppCallbackUrl: string; + durationDays: number; + } + /** + * Generates the package2AncestorIds scratch org property + * + * @param scratchOrgInfo - the scratchOrgInfo passed in by the user + * @param projectJson - sfProjectJson + * @param hubOrg - the hub org, in case we need to do queries + */ + export const getAncestorIds: ( + scratchOrgInfo: ScratchOrgInfoPayload, + projectJson: SfProjectJson, + hubOrg: Org + ) => Promise; + /** + * Takes in a scratchOrgInfo and fills in the missing fields + * + * @param hubOrg the environment hub org + * @param scratchOrgInfoPayload - the scratchOrgInfo passed in by the user + * @param nonamespace create the scratch org with no namespace + * @param ignoreAncestorIds true if the sfdx-project.json ancestorId keys should be ignored + */ + export const generateScratchOrgInfo: ({ + hubOrg, + scratchOrgInfoPayload, + nonamespace, + ignoreAncestorIds, + }: { + hubOrg: Org; + scratchOrgInfoPayload: ScratchOrgInfoPayload; + nonamespace?: boolean | undefined; + ignoreAncestorIds?: boolean | undefined; + }) => Promise; + /** + * Returns a valid signup json + * + * definitionjson org definition in JSON format + * definitionfile path to an org definition file + * connectedAppConsumerKey The connected app consumer key. May be null for JWT OAuth flow. + * durationdays duration of the scratch org (in days) (default:1, min:1, max:30) + * nonamespace create the scratch org with no namespace + * noancestors do not include second-generation package ancestors in the scratch org + * orgConfig overrides definitionjson + * + * @returns scratchOrgInfoPayload: ScratchOrgInfoPayload; + ignoreAncestorIds: boolean; + warnings: string[]; + */ + export const getScratchOrgInfoPayload: (options: { + durationDays: number; + definitionjson?: string; + definitionfile?: string; + connectedAppConsumerKey?: string; + nonamespace?: boolean; + noancestors?: boolean; + orgConfig?: Record; + }) => Promise<{ + scratchOrgInfoPayload: ScratchOrgInfoPayload; + ignoreAncestorIds: boolean; + warnings: string[]; + }>; + export {}; +} +declare module '@salesforce/core/org/scratchOrgLifecycleEvents' { + import { AuthFields } from '@salesforce/core/org/authInfo'; + import { ScratchOrgInfo } from '@salesforce/core/org/scratchOrgTypes'; + export const scratchOrgLifecycleEventName = 'scratchOrgLifecycleEvent'; + export const scratchOrgLifecycleStages: readonly [ + 'prepare request', + 'send request', + 'wait for org', + 'available', + 'authenticate', + 'deploy settings', + 'done' + ]; + export interface ScratchOrgLifecycleEvent { + stage: (typeof scratchOrgLifecycleStages)[number]; + scratchOrgInfo?: ScratchOrgInfo; + } + export const emit: (event: ScratchOrgLifecycleEvent) => Promise; + export const emitPostOrgCreate: (authFields: AuthFields) => Promise; +} +declare module '@salesforce/core/org/scratchOrgSettingsGenerator' { + import { Duration } from '@salesforce/kit'; + import { JsonMap } from '@salesforce/ts-types'; + import { ScratchOrgInfo, ObjectSetting } from '@salesforce/core/org/scratchOrgTypes'; + import { Org } from '@salesforce/core/org/org'; + export enum RequestStatus { + Pending = 'Pending', + InProgress = 'InProgress', + Succeeded = 'Succeeded', + SucceededPartial = 'SucceededPartial', + Failed = 'Failed', + Canceling = 'Canceling', + Canceled = 'Canceled', + } + export interface SettingType { + members: string[]; + name: 'CustomObject' | 'RecordType' | 'BusinessProcess' | 'Settings'; + } + export interface PackageFile { + '@': { + xmlns: string; + }; + types: SettingType[]; + version: string; + } + export const createObjectFileContent: ({ + allRecordTypes, + allBusinessProcesses, + apiVersion, + settingData, + objectSettingsData, + }: { + allRecordTypes?: string[] | undefined; + allBusinessProcesses?: string[] | undefined; + apiVersion: string; + settingData?: Record | undefined; + objectSettingsData?: + | { + [objectName: string]: ObjectSetting; + } + | undefined; + }) => PackageFile; + export const createRecordTypeAndBusinessProcessFileContent: ( + objectName: string, + json: Record, + allRecordTypes: string[], + allBusinessProcesses: string[] + ) => JsonMap; + /** + * Helper class for dealing with the settings that are defined in a scratch definition file. This class knows how to extract the + * settings from the definition, how to expand them into a MD directory and how to generate a package.xml. + */ + export default class SettingsGenerator { + private settingData?; + private objectSettingsData?; + private logger; + private writer; + private allRecordTypes; + private allBusinessProcesses; + private readonly shapeDirName; + private readonly packageFilePath; + constructor(options?: { mdApiTmpDir?: string; shapeDirName?: string; asDirectory?: boolean }); + /** extract the settings from the scratch def file, if they are present. */ + extract(scratchDef: ScratchOrgInfo): Promise<{ + settings: Record | undefined; + objectSettings: + | { + [objectName: string]: ObjectSetting; + } + | undefined; + }>; + /** True if we are currently tracking setting or object setting data. */ + hasSettings(): boolean; + /** Create temporary deploy directory used to upload the scratch org shape. + * This will create the dir, all of the .setting files and minimal object files needed for objectSettings + */ + createDeploy(): Promise; + /** + * Deploys the settings to the org. + */ + deploySettingsViaFolder(scratchOrg: Org, apiVersion: string, timeout?: Duration): Promise; + createDeployPackageContents(apiVersion: string): Promise; + getShapeDirName(): string; + /** + * Returns the destination where the writer placed the settings content. + * + */ + getDestinationPath(): string | undefined; + private writeObjectSettingsIfNeeded; + private writeSettingsIfNeeded; + } +} +declare module '@salesforce/core/org/scratchOrgTypes' { + import { JsonMap } from '@salesforce/ts-types'; + export interface ScratchOrgInfo { + AdminEmail?: string; + readonly CreatedDate?: string; + ConnectedAppCallbackUrl?: string; + ConnectedAppConsumerKey?: string; + Country?: string; + Description?: string; + DurationDays?: number; + Edition?: string; + readonly ErrorCode?: string; + readonly ExpirationDate?: string; + Features?: string; + HasSampleData?: boolean; + readonly Id?: string; + Language?: string; + LoginUrl: string; + readonly Name?: string; + Namespace?: string; + OrgName?: string; + Release?: 'Current' | 'Previous' | 'Preview'; + readonly ScratchOrg?: string; + SourceOrg?: string; + readonly AuthCode: string; + Snapshot?: string; + readonly Status: 'New' | 'Creating' | 'Active' | 'Error' | 'Deleted'; + readonly SignupEmail: string; + readonly SignupUsername: string; + readonly SignupInstance: string; + Username: string; + settings?: Record; + objectSettings?: { + [objectName: string]: ObjectSetting; + }; + orgPreferences?: { + enabled: string[]; + disabled: string[]; + }; + } + export interface ObjectSetting extends JsonMap { + sharingModel?: string; + defaultRecordType?: string; + } +} +declare module '@salesforce/core/org/user' { + import { AsyncCreatable } from '@salesforce/kit'; + import { SecureBuffer } from '@salesforce/core/crypto/secureBuffer'; + import { Org } from '@salesforce/core/org/org'; + import { AuthInfo } from '@salesforce/core/org/authInfo'; + /** + * A Map of Required Salesforce User fields. + */ + export const REQUIRED_FIELDS: { + id: string; + username: string; + lastName: string; + alias: string; + timeZoneSidKey: string; + localeSidKey: string; + emailEncodingKey: string; + profileId: string; + languageLocaleKey: string; + email: string; + }; + /** + * Required fields type needed to represent a Salesforce User object. + * + * **See** https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_user.htm + */ + export type UserFields = { + -readonly [K in keyof typeof REQUIRED_FIELDS]: string; + }; + /** + * Provides a default set of fields values that can be used to create a user. This is handy for + * software development purposes. + * + * ``` + * const connection: Connection = await Connection.create({ + * authInfo: await AuthInfo.create({ username: 'user@example.com' }) + * }); + * const org: Org = await Org.create({ connection }); + * const options: DefaultUserFields.Options = { + * templateUser: org.getUsername() + * }; + * const fields = (await DefaultUserFields.create(options)).getFields(); + * ``` + */ + export class DefaultUserFields extends AsyncCreatable { + private logger; + private userFields; + private options; + /** + * @ignore + */ + constructor(options: DefaultUserFields.Options); + /** + * Get user fields. + */ + getFields(): UserFields; + /** + * Initialize asynchronous components. + */ + protected init(): Promise; + } + export namespace DefaultUserFields { + /** + * Used to initialize default values for fields based on a templateUser user. This user will be part of the + * Standard User profile. + */ + interface Options { + templateUser: string; + newUserName?: string; + } + } + export interface PasswordConditions { + length: number; + complexity: number; + } + /** + * A class for creating a User, generating a password for a user, and assigning a user to one or more permission sets. + * See methods for examples. + */ + export class User extends AsyncCreatable { + private org; + private logger; + /** + * @ignore + */ + constructor(options: User.Options); + /** + * Generate default password for a user. Returns An encrypted buffer containing a utf8 encoded password. + */ + static generatePasswordUtf8(passwordCondition?: PasswordConditions): SecureBuffer; + /** + * Initialize a new instance of a user and return it. + */ + init(): Promise; + /** + * Assigns a password to a user. For a user to have the ability to assign their own password, the org needs the + * following org feature: EnableSetPasswordInApi. + * + * @param info The AuthInfo object for user to assign the password to. + * @param password [throwWhenRemoveFails = User.generatePasswordUtf8()] A SecureBuffer containing the new password. + */ + assignPassword(info: AuthInfo, password?: SecureBuffer): Promise; + /** + * Methods to assign one or more permission set names to a user. + * + * @param id The Salesforce id of the user to assign the permission set to. + * @param permsetNames An array of permission set names. + * + * ``` + * const username = 'user@example.com'; + * const connection: Connection = await Connection.create({ + * authInfo: await AuthInfo.create({ username }) + * }); + * const org = await Org.create({ connection }); + * const user: User = await User.create({ org }); + * const fields: UserFields = await user.retrieve(username); + * await user.assignPermissionSets(fields.id, ['sfdx', 'approver']); + * ``` + */ + assignPermissionSets(id: string, permsetNames: string[]): Promise; + /** + * Method for creating a new User. + * + * By default scratch orgs only allow creating 2 additional users. Work with Salesforce Customer Service to increase + * user limits. + * + * The Org Preferences required to increase the number of users are: + * Standard User Licenses + * Salesforce CRM Content User + * + * @param fields The required fields for creating a user. + * + * ``` + * const connection: Connection = await Connection.create({ + * authInfo: await AuthInfo.create({ username: 'user@example.com' }) + * }); + * const org = await Org.create({ connection }); + * + * const defaultUserFields = await DefaultUserFields.create({ templateUser: 'devhub_user@example.com' }); + * const user: User = await User.create({ org }); + * const info: AuthInfo = await user.createUser(defaultUserFields.getFields()); + * ``` + */ + createUser(fields: UserFields): Promise; + /** + * Method to retrieve the UserFields for a user. + * + * @param username The username of the user. + * + * ``` + * const username = 'boris@thecat.com'; + * const connection: Connection = await Connection.create({ + * authInfo: await AuthInfo.create({ username }) + * }); + * const org = await Org.create({ connection }); + * const user: User = await User.create({ org }); + * const fields: UserFields = await user.retrieve(username); + * ``` + */ + retrieve(username: string): Promise; + /** + * Helper method that verifies the server's User object is available and if so allows persisting the Auth information. + * + * @param newUserAuthInfo The AuthInfo for the new user. + */ + private describeUserAndSave; + /** + * Helper that makes a REST request to create the user, and update additional required fields. + * + * @param fields The configuration the new user should have. + */ + private createUserInternal; + private rawRequest; + /** + * Update the remaining required fields for the user. + * + * @param fields The fields for the user. + */ + private updateRequiredUserFields; + } + export namespace User { + /** + * Used to initialize default values for fields based on a templateUser user. This user will be part of the + * Standard User profile. + */ + interface Options { + org: Org; + } + } +} +declare module '@salesforce/core/schema/printer' { + import { JsonMap } from '@salesforce/ts-types'; + import { Logger } from '@salesforce/core/logger/logger'; + /** + * Renders schema properties. By default, this is simply an identity transform. Subclasses may provide more + * interesting decorations of each values, such as ANSI coloring. + * + * @deprecated + * + */ + export class SchemaPropertyRenderer { + /** + * Renders a name. + * + * @param name The name value to render. + */ + renderName(name: string): string; + /** + * Renders a title. + * + * @param title The title value to render. + */ + renderTitle(title: string): string; + /** + * Renders a description. + * + * @param description The description value to render. + */ + renderDescription(description: string): string; + /** + * Renders a type. + * + * @param propertyType The type value to render. + */ + renderType(propertyType: string): string; + } + /** + * Prints a JSON schema in a human-friendly format. + * + * @deprecated + * remaining reference: https://github.com/salesforcecli/plugin-data/blob/cc1bdfa2c707f93a6da96beea8117b25f9612d4a/src/commands/data/import/tree.ts#L75 + * + * ``` + * import chalk from 'chalk'; + * class MyPropertyRenderer extends SchemaPropertyRenderer { + * renderName(name) { return chalk.bold.blue(name); } + * } + * + * const printer = new SchemaPrinter(logger, schema, new MyPropertyRenderer()); + * printer.getLines().forEach(console.log); + * ``` + */ + export class SchemaPrinter { + private schema; + private propertyRenderer; + private logger; + private lines; + /** + * Constructs a new `SchemaPrinter`. + * + * @param logger The logger to use when emitting the printed schema. + * @param schema The schema to print. + * @param propertyRenderer The property renderer. + */ + constructor(logger: Logger, schema: JsonMap, propertyRenderer?: SchemaPropertyRenderer); + /** + * Gets a read-only array of ready-to-display lines. + */ + getLines(): readonly string[]; + /** + * Gets a ready-to-display line by index. + * + * @param index The line index to get. + */ + getLine(index: number): string; + /** + * Prints the accumulated set of schema lines as info log lines to the logger. + */ + print(): void; + private addFn; + private parseProperty; + } +} +declare module '@salesforce/core/schema/validator' { + import { AnyJson, JsonMap } from '@salesforce/ts-types'; + import { Logger } from '@salesforce/core/logger/logger'; + /** + * Loads a JSON schema and performs validations against JSON objects. + */ + export class SchemaValidator { + private schemaPath; + private readonly schemasDir; + private readonly logger; + private schema?; + /** + * Creates a new `SchemaValidator` instance given a logger and path to a schema file. + * + * @param logger An {@link Logger} instance on which to base this class's logger. + * @param schemaPath The path to the schema file to load and use for validation. + */ + constructor(logger: Logger, schemaPath: string); + /** + * Loads a JSON schema from the `schemaPath` parameter provided at instantiation. + */ + load(): Promise; + /** + * Loads a JSON schema from the `schemaPath` parameter provided at instantiation. + */ + loadSync(): JsonMap; + /** + * Performs validation of JSON data against the schema located at the `schemaPath` value provided + * at instantiation. + * + * **Throws** *{@link SfError}{ name: 'ValidationSchemaFieldError' }* If there are known validations errors. + * **Throws** *{@link SfError}{ name: 'ValidationSchemaUnknownError' }* If there are unknown validations errors. + * + * @param json A JSON value to validate against this instance's target schema. + * @returns The validated JSON data. + */ + validate(json: AnyJson): Promise; + /** + * Performs validation of JSON data against the schema located at the `schemaPath` value provided + * at instantiation. + * + * **Throws** *{@link SfError}{ name: 'ValidationSchemaFieldError' }* If there are known validations errors. + * **Throws** *{@link SfError}{ name: 'ValidationSchemaUnknownError' }* If there are unknown validations errors. + * + * @param json A JSON value to validate against this instance's target schema. + * @returns The validated JSON data. + */ + validateSync(json: T): T; + /** + * Loads local, external schemas from URIs in the same directory as the local schema file. + * Does not support loading from remote URIs. + * Returns a map of external schema local URIs to loaded schema JSON objects. + * + * @param schema The main schema to look up references ($ref) in. + * @returns An array of found referenced schemas. + */ + private loadExternalSchemas; + /** + * Load another schema relative to the primary schema when referenced. Only supports local schema URIs. + * + * @param uri The first segment of the $ref schema. + */ + private loadExternalSchema; + /** + * Get a string representation of the schema validation errors. + * Adds additional (human friendly) information to certain errors. + * + * @param errors An array of AJV (DefinedError) objects. + */ + private getErrorsText; + } +} +declare module '@salesforce/core/sfError' { + import { NamedError } from '@salesforce/kit'; + import { JsonMap } from '@salesforce/ts-types'; + /** + * A generalized sfdx error which also contains an action. The action is used in the + * CLI to help guide users past the error. + * + * To throw an error in a synchronous function you must either pass the error message and actions + * directly to the constructor, e.g. + * + * ``` + * // To load a message bundle (Note that __dirname should contain a messages folder) + * Messages.importMessagesDirectory(__dirname); + * const messages = Messages.load('myPackageName', 'myBundleName'); + * + * // To throw a non-bundle based error: + * throw new SfError(message.getMessage('myError'), 'MyErrorName'); + * ``` + */ + export class SfError extends NamedError { + #private; + /** + * Action messages. Hints to the users regarding what can be done to fix related issues. + */ + actions?: string[]; + /** + * SfdxCommand can return this process exit code. + */ + exitCode: number; + /** + * The related context for this error. + */ + context?: string; + data?: unknown; + /** + * Create an SfError. + * + * @param message The error message. + * @param name The error name. Defaults to 'SfError'. + * @param actions The action message(s). + * @param exitCodeOrCause The exit code which will be used by SfdxCommand or he underlying error that caused this error to be raised. + * @param cause The underlying error that caused this error to be raised. + */ + constructor(message: string, name?: string, actions?: string[], exitCodeOrCause?: number | Error, cause?: Error); + get code(): string | undefined | any; + set code(code: string); + /** + * Convert an Error to an SfError. + * + * @param err The error to convert. + */ + static wrap(err: Error | string): SfError; + /** + * Sets the context of the error. For convenience `this` object is returned. + * + * @param context The command name. + */ + setContext(context: string): SfError; + /** + * An additional payload for the error. For convenience `this` object is returned. + * + * @param data The payload data. + */ + setData(data: unknown): SfError; + /** + * Convert an {@link SfError} state to an object. Returns a plain object representing the state of this error. + */ + toObject(): JsonMap; + } +} +declare module '@salesforce/core/sfProject' { + import { Dictionary, JsonMap, Nullable, Optional } from '@salesforce/ts-types'; + import { ConfigFile } from '@salesforce/core/config/configFile'; + import { ConfigContents } from '@salesforce/core/config/configStore'; + export type PackageDirDependency = { + [k: string]: unknown; + package: string; + versionNumber?: string; + }; + export type PackageDir = { + ancestorId?: string; + ancestorVersion?: string; + default?: boolean; + definitionFile?: string; + dependencies?: PackageDirDependency[]; + includeProfileUserLicenses?: boolean; + package?: string; + path: string; + postInstallScript?: string; + postInstallUrl?: string; + releaseNotesUrl?: string; + scopeProfiles?: boolean; + uninstallScript?: string; + versionDescription?: string; + versionName?: string; + versionNumber?: string; + }; + export type NamedPackageDir = PackageDir & { + /** + * The [normalized](https://nodejs.org/api/path.html#path_path_normalize_path) path used as the package name. + */ + name: string; + /** + * The absolute path of the package. + */ + fullPath: string; + }; + export type ProjectJson = ConfigContents & { + packageDirectories: PackageDir[]; + namespace?: string; + sourceApiVersion?: string; + sfdcLoginUrl?: string; + signupTargetLoginUrl?: string; + oauthLocalPort?: number; + plugins?: { + [k: string]: unknown; + }; + packageAliases?: { + [k: string]: string; + }; + }; + /** + * The sfdx-project.json config object. This file determines if a folder is a valid sfdx project. + * + * *Note:* Any non-standard (not owned by Salesforce) properties stored in sfdx-project.json should + * be in a top level property that represents your project or plugin. + * + * ``` + * const project = await SfProject.resolve(); + * const projectJson = await project.resolveProjectConfig(); + * const myPluginProperties = projectJson.get('myplugin') || {}; + * myPluginProperties.myprop = 'someValue'; + * projectJson.set('myplugin', myPluginProperties); + * await projectJson.write(); + * ``` + * + * **See** [force:project:create](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_ws_create_new.htm) + */ + export class SfProjectJson extends ConfigFile { + static BLOCKLIST: string[]; + static getFileName(): string; + static getDefaultOptions(isGlobal?: boolean): ConfigFile.Options; + read(): Promise; + readSync(): ConfigContents; + write(newContents?: ConfigContents): Promise; + writeSync(newContents?: ConfigContents): ConfigContents; + getContents(): ProjectJson; + getDefaultOptions(options?: ConfigFile.Options): ConfigFile.Options; + /** + * Validates sfdx-project.json against the schema. + * + * Set the `SFDX_PROJECT_JSON_VALIDATION` environment variable to `true` to throw an error when schema validation fails. + * A warning is logged by default when the file is invalid. + * + * ***See*** [sfdx-project.schema.json] ((https://github.com/forcedotcom/schemas/blob/main/sfdx-project.schema.json) + */ + schemaValidate(): Promise; + /** + * Returns the `packageDirectories` within sfdx-project.json, first reading + * and validating the file if necessary. + */ + getPackageDirectories(): Promise; + /** + * Validates sfdx-project.json against the schema. + * + * Set the `SFDX_PROJECT_JSON_VALIDATION` environment variable to `true` to throw an error when schema validation fails. + * A warning is logged by default when the file is invalid. + * + * ***See*** [sfdx-project.schema.json] ((https://github.com/forcedotcom/schemas/blob/main/sfdx-project.schema.json) + */ + schemaValidateSync(): void; + /** + * Returns a read-only list of `packageDirectories` within sfdx-project.json, first reading + * and validating the file if necessary. i.e. modifying this array will not affect the + * sfdx-project.json file. + */ + getPackageDirectoriesSync(): NamedPackageDir[]; + /** + * Returns a read-only list of `packageDirectories` within sfdx-project.json, first reading + * and validating the file if necessary. i.e. modifying this array will not affect the + * sfdx-project.json file. + * + * There can be multiple packages in packageDirectories that point to the same directory. + * This method only returns one packageDirectory entry per unique directory path. This is + * useful when doing source operations based on directories but probably not as useful + * for packaging operations that want to do something for each package entry. + */ + getUniquePackageDirectories(): NamedPackageDir[]; + /** + * Get a list of the unique package names from within sfdx-project.json. Use {@link SfProject.getUniquePackageDirectories} + * for data other than the names. + */ + getUniquePackageNames(): string[]; + /** + * Has package directories defined in the project. + */ + hasPackages(): boolean; + /** + * Has multiple package directories (MPD) defined in the project. + */ + hasMultiplePackages(): boolean; + /** + * Has at least one package alias defined in the project. + */ + hasPackageAliases(): Promise; + /** + * Get package aliases defined in the project. + */ + getPackageAliases(): Nullable>; + /** + * Add a package alias to the project. + * If the alias already exists, it will be overwritten. + * + * @param alias + * @param id + */ + addPackageAlias(alias: string, id: string): void; + /** + * Add a package directory to the project. + * If the package directory already exists, the new directory + * properties will be merged with the existing properties. + * + * @param packageDir + */ + addPackageDirectory(packageDir: NamedPackageDir): void; + private doesPackageExist; + private validateKeys; + } + /** + * Represents an SFDX project directory. This directory contains a {@link SfProjectJson} config file as well as + * a hidden .sfdx folder that contains all the other local project config files. + * + * ``` + * const project = await SfProject.resolve(); + * const projectJson = await project.resolveProjectConfig(); + * console.log(projectJson.sfdcLoginUrl); + * ``` + */ + export class SfProject { + private path; + private static instances; + private projectConfig; + private sfProjectJson; + private sfProjectJsonGlobal; + private packageDirectories?; + private activePackage; + private packageAliases; + /** + * Do not directly construct instances of this class -- use {@link SfProject.resolve} instead. + * + * @ignore + */ + protected constructor(path: string); + /** + * Get a Project from a given path or from the working directory. + * + * @param path The path of the project. + * + * **Throws** *{@link SfError}{ name: 'InvalidProjectWorkspaceError' }* If the current folder is not located in a workspace. + */ + static resolve(path?: string): Promise; + /** + * Get a Project from a given path or from the working directory. + * + * @param path The path of the project. + * + * **Throws** *{@link SfError}{ name: 'InvalidProjectWorkspaceError' }* If the current folder is not located in a workspace. + */ + static getInstance(path?: string): SfProject; + /** + * Performs an upward directory search for an sfdx project file. Returns the absolute path to the project. + * + * @param dir The directory path to start traversing from. + * + * **Throws** *{@link SfError}{ name: 'InvalidProjectWorkspaceError' }* If the current folder is not located in a workspace. + * + * **See** {@link traverseForFile} + * + * **See** [process.cwd()](https://nodejs.org/api/process.html#process_process_cwd) + */ + static resolveProjectPath(dir?: string): Promise; + /** + * Performs a synchronous upward directory search for an sfdx project file. Returns the absolute path to the project. + * + * @param dir The directory path to start traversing from. + * + * **Throws** *{@link SfError}{ name: 'InvalidProjectWorkspaceError' }* If the current folder is not located in a workspace. + * + * **See** {@link traverseForFileSync} + * + * **See** [process.cwd()](https://nodejs.org/api/process.html#process_process_cwd) + */ + static resolveProjectPathSync(dir?: string): string; + /** + * Returns the project path. + */ + getPath(): string; + /** + * Get the sfdx-project.json config. The global sfdx-project.json is used for user defaults + * that are not checked in to the project specific file. + * + * *Note:* When reading values from {@link SfProjectJson}, it is recommended to use + * {@link SfProject.resolveProjectConfig} instead. + * + * @param isGlobal True to get the global project file, otherwise the local project config. + */ + retrieveSfProjectJson(isGlobal?: boolean): Promise; + /** + * Get the sfdx-project.json config. The global sfdx-project.json is used for user defaults + * that are not checked in to the project specific file. + * + * *Note:* When reading values from {@link SfProjectJson}, it is recommended to use + * {@link SfProject.resolveProjectConfig} instead. + * + * This is the sync method of {@link SfProject.resolveSfProjectJson} + * + * @param isGlobal True to get the global project file, otherwise the local project config. + */ + getSfProjectJson(isGlobal?: boolean): SfProjectJson; + /** + * Returns a read-only list of `packageDirectories` within sfdx-project.json, first reading + * and validating the file if necessary. i.e. modifying this array will not affect the + * sfdx-project.json file. + */ + getPackageDirectories(): NamedPackageDir[]; + /** + * Returns a read-only list of `packageDirectories` within sfdx-project.json, first reading + * and validating the file if necessary. i.e. modifying this array will not affect the + * sfdx-project.json file. + * + * There can be multiple packages in packageDirectories that point to the same directory. + * This method only returns one packageDirectory entry per unique directory path. This is + * useful when doing source operations based on directories but probably not as useful + * for packaging operations that want to do something for each package entry. + */ + getUniquePackageDirectories(): NamedPackageDir[]; + /** + * Get a list of the unique package names from within sfdx-project.json. Use {@link SfProject.getUniquePackageDirectories} + * for data other than the names. + */ + getUniquePackageNames(): string[]; + /** + * Returns the package from a file path. + * + * @param path A file path. E.g. /Users/jsmith/projects/ebikes-lwc/force-app/apex/my-cls.cls + */ + getPackageFromPath(path: string): Optional; + /** + * Returns the package name, E.g. 'force-app', from a file path. + * + * @param path A file path. E.g. /Users/jsmith/projects/ebikes-lwc/force-app/apex/my-cls.cls + */ + getPackageNameFromPath(path: string): Optional; + /** + * Returns the package directory. + * + * @param packageName Name of the package directory. E.g., 'force-app' + */ + getPackage(packageName: string): Optional; + /** + * Returns the package directory. + * + * @param packageName Name of the package directory. E.g., 'force-app' + */ + findPackage(predicate: (packageDir: NamedPackageDir) => boolean): Optional; + /** + * Returns the absolute path of the package directory ending with the path separator. + * E.g., /Users/jsmith/projects/ebikes-lwc/force-app/ + * + * @param packageName Name of the package directory. E.g., 'force-app' + */ + getPackagePath(packageName: string): Optional; + /** + * Has package directories defined in the project. + */ + hasPackages(): boolean; + /** + * Has multiple package directories (MPD) defined in the project. + */ + hasMultiplePackages(): boolean; + /** + * Get the currently activated package on the project. This has no implication on sfdx-project.json + * but is useful for keeping track of package and source specific options in a process. + */ + getActivePackage(): Nullable; + /** + * Set the currently activated package on the project. This has no implication on sfdx-project.json + * but is useful for keeping track of package and source specific options in a process. + * + * @param packageName The package name to activate. E.g. 'force-app' + */ + setActivePackage(packageName: Nullable): void; + /** + * Get the project's default package directory defined in sfdx-project.json using first 'default: true' + * found. The first entry is returned if no default is specified. + */ + getDefaultPackage(): NamedPackageDir; + /** + * The project config is resolved from local and global {@link SfProjectJson}, + * {@link ConfigAggregator}, and a set of defaults. It is recommended to use + * this when reading values from SfProjectJson. + * + * The global {@link SfProjectJson} is used to allow the user to provide default values they + * may not want checked into their project's source. + * + * @returns A resolved config object that contains a bunch of different + * properties, including some 3rd party custom properties. + */ + resolveProjectConfig(): Promise; + hasPackageAliases(): Promise; + /** + * Returns a read-only list of `packageDirectories` within sfdx-project.json, first reading + * and validating the file if necessary. i.e. modifying this array will not affect the + * sfdx-project.json file. + */ + getPackageAliases(): Nullable>; + getPackageIdFromAlias(alias: string): Optional; + getAliasesFromPackageId(id: string): string[]; + } +} +declare module '@salesforce/core/stateAggregator/accessors/aliasAccessor' { + import { AsyncOptionalCreatable } from '@salesforce/kit'; + import { Nullable } from '@salesforce/ts-types'; + import { AuthFields } from '@salesforce/core/org/authInfo'; + import { ConfigContents } from '@salesforce/core/config/configStore'; + import { SfToken } from '@salesforce/core/stateAggregator/accessors/tokenAccessor'; + export type Aliasable = string | (Partial & Partial); + export const DEFAULT_GROUP = 'orgs'; + export const FILENAME = 'alias.json'; + export class AliasAccessor extends AsyncOptionalCreatable { + private fileLocation; + /** orgs is the default group */ + private aliasStore; + /** + * Returns all the aliases for all the values + */ + getAll(): ConfigContents; + /** + * Returns all the aliases for a given entity + * + * @param entity the aliasable entity that you want to get the aliases of + */ + getAll(entity: Aliasable): string[]; + /** + * Returns the first alias found for a given entity + * + * @param entity the aliasable entity that you want to get the alias of + */ + get(entity: Aliasable): Nullable; + /** + * Returns the value that corresponds to the given alias if it exists + * + * @param alias the alias that corresponds to a value + */ + getValue(alias: string): Nullable; + /** + * Returns the username that corresponds to the given alias if it exists + * + * @param alias the alias that corresponds to a username + */ + getUsername(alias: string): Nullable; + /** + * If the provided string is an alias, it returns the corresponding username. + * If the provided string is not an alias, we assume that the provided string + * is the username and return it. + * + * This method is helpful when you don't know if the string you have is a username + * or an alias. + * + * @param usernameOrAlias a string that might be a username or might be an alias + */ + resolveUsername(usernameOrAlias: string): string; + /** + * If the provided string is an alias, return it. + * If the provided string is not an alias, return the username of the provided alias + * + * This method is helpful when you don't know if the string you have is a username + * or an alias. + * + * @param usernameOrAlias a string that might be a username or might be an alias + */ + resolveAlias(usernameOrAlias: string): string | undefined; + /** + * Set an alias for the given aliasable entity. Writes to the file + * + * @deprecated use setAndSave + * @param alias the alias you want to set + * @param entity the aliasable entity that's being aliased + */ + set(alias: string, entity: Aliasable): void; + /** + * Set an alias for the given aliasable entity. Writes to the file + * + * @param alias the alias you want to set + * @param entity the aliasable entity that's being aliased + */ + setAndSave(alias: string, entity: Aliasable): Promise; + /** + * Unset the given alias. Writes to the file + * + * @deprecated use unsetAndSave + * + */ + unset(alias: string): void; + /** + * Unset the given alias(es). Writes to the file + * + */ + unsetAndSave(alias: string): Promise; + /** + * Unsets all the aliases for the given entity. + * + * @deprecated use unsetValuesAndSave + * + * @param entity the aliasable entity for which you want to unset all aliases + */ + unsetAll(entity: Aliasable): void; + /** + * Unset all the aliases for the given array of entity. + * + * @param entity the aliasable entity for which you want to unset all aliases + */ + unsetValuesAndSave(aliasees: Aliasable[]): Promise; + /** + * @deprecated the set/unset methods now write to the file when called. Use (un)setAndSave instead of calling (un)set and then calling write() + */ + write(): Promise; + /** + * Returns true if the provided alias exists + * + * @param alias the alias you want to check + */ + has(alias: string): boolean; + protected init(): Promise; + /** + * go to the fileSystem and read the file, storing a copy in the class's store + * if the file doesn't exist, create it empty + */ + private readFileToAliasStore; + private saveAliasStoreToFile; + /** + * @deprecated use the async version of this method instead + * provided for the legacy sync set/unset methods. */ + private readFileToAliasStoreSync; + /** + * @deprecated use the async version of this method instead + * provided for the legacy sync set/unset methods */ + private saveAliasStoreToFileSync; + } + export const getFileLocation: () => string; +} +declare module '@salesforce/core/stateAggregator/accessors/orgAccessor' { + /// + import * as fs from 'fs'; + import { Nullable } from '@salesforce/ts-types'; + import { AsyncOptionalCreatable } from '@salesforce/kit'; + import { AuthInfoConfig } from '@salesforce/core/config/authInfoConfig'; + import { AuthFields } from '@salesforce/core/org/index'; + import { ConfigFile } from '@salesforce/core/config/configFile'; + import { ConfigContents } from '@salesforce/core/config/configStore'; + export abstract class BaseOrgAccessor extends AsyncOptionalCreatable { + private configs; + private contents; + private logger; + /** + * Read the auth file for the given username. Once the file has been read, it can be re-accessed with the `get` method. + * + * @param username username to read + * @param decrypt if true, decrypt encrypted values + * @param throwOnNotFound throw if file is not found for username + */ + read(username: string, decrypt?: boolean, throwOnNotFound?: boolean): Promise>; + /** + * Read all the auth files under the global state directory + * + * @param decrypt if true, decrypt encrypted values + */ + readAll(decrypt?: boolean): Promise; + get(username: string, decrypt?: boolean, throwOnNotFound?: true): P; + /** + * Return the contents of all the auth files from cache. The `read` or `readAll` methods must be called first in order to populate the cache. + * + * @param decrypt if true, decrypt encrypted values + * @returns + */ + getAll(decrypt?: boolean): P[]; + /** + * Returns true if the username has been cached. + * + * @param username + */ + has(username: string): boolean; + /** + * Returns true if there is an auth file for the given username. The `read` or `readAll` methods must be called first in order to populate the cache. + * + * @param username + */ + exists(username: string): Promise; + /** + * Return the file stats for a given userame's auth file. + * + * @param username + */ + stat(username: string): Promise>; + /** + * Returns true if there is an auth file for the given username + * + * @param username + */ + hasFile(username: string): Promise; + /** + * Return all auth files under the global state directory. + */ + list(): Promise; + /** + * Set the contents for a given username. + * + * @param username + * @param org + */ + set(username: string, org: P): void; + /** + * Update the contents for a given username. + * + * @param username + * @param org + */ + update(username: string, org: Partial

): void; + /** + * Delete the auth file for a given username. + * + * @param username + */ + remove(username: string): Promise; + /** + * Write the contents of the auth file for a given username. + * + * @param username + */ + write(username: string): Promise>; + protected init(): Promise; + private getAllFiles; + private parseUsername; + private parseFilename; + protected abstract initAuthFile(username: string, throwOnNotFound?: boolean): Promise; + protected abstract getFileRegex(): RegExp; + protected abstract getFileExtension(): string; + } + export class OrgAccessor extends BaseOrgAccessor { + protected initAuthFile(username: string, throwOnNotFound?: boolean): Promise; + protected getFileRegex(): RegExp; + protected getFileExtension(): string; + } +} +declare module '@salesforce/core/stateAggregator/accessors/sandboxAccessor' { + import { SandboxOrgConfig } from '@salesforce/core/config/sandboxOrgConfig'; + import { SandboxFields } from '@salesforce/core/org/index'; + import { BaseOrgAccessor } from '@salesforce/core/stateAggregator/accessors/orgAccessor'; + export class SandboxAccessor extends BaseOrgAccessor { + protected initAuthFile(username: string, throwOnNotFound?: boolean): Promise; + protected getFileRegex(): RegExp; + protected getFileExtension(): string; + } +} +declare module '@salesforce/core/stateAggregator/accessors/tokenAccessor' { + import { AsyncOptionalCreatable } from '@salesforce/kit'; + import { JsonMap, Optional } from '@salesforce/ts-types'; + export type SfToken = { + token: string; + url: string; + user?: string; + timestamp: string; + } & JsonMap; + export type SfTokens = { + [key: string]: SfToken; + }; + export class TokenAccessor extends AsyncOptionalCreatable { + private config; + /** + * Return all tokens. + * + * @param decrypt + * @returns {SfTokens} + */ + getAll(decrypt?: boolean): SfTokens; + /** + * Return a token for the provided name. + * + * @param name + * @param decrypt + * @returns {Optional} + */ + get(name: string, decrypt?: boolean): Optional; + /** + * Return true if a given name has a token associated with it. + * + * @param name + * @returns {boolean} + */ + has(name: string): boolean; + /** + * Set the token for the provided name. + * + * @param name + * @param token + */ + set(name: string, token: Partial): void; + /** + * Update the token for the provided name. + * + * @param name + * @param token + */ + update(name: string, token: Partial): void; + /** + * Unet the token for the provided name. + * + * @param name + */ + unset(name: string): void; + /** + * Write the contents to the token file. + * + * @returns {Promise} + */ + write(): Promise; + protected init(): Promise; + } +} +declare module '@salesforce/core/stateAggregator/index' { + export * from '@salesforce/core/stateAggregator/accessors/orgAccessor'; + export * from '@salesforce/core/stateAggregator/accessors/aliasAccessor'; + export * from '@salesforce/core/stateAggregator/accessors/tokenAccessor'; + export * from '@salesforce/core/stateAggregator/stateAggregator'; +} +declare module '@salesforce/core/stateAggregator/stateAggregator' { + import { AsyncOptionalCreatable } from '@salesforce/kit'; + import { AliasAccessor } from '@salesforce/core/stateAggregator/accessors/aliasAccessor'; + import { OrgAccessor } from '@salesforce/core/stateAggregator/accessors/orgAccessor'; + import { SandboxAccessor } from '@salesforce/core/stateAggregator/accessors/sandboxAccessor'; + import { TokenAccessor } from '@salesforce/core/stateAggregator/accessors/tokenAccessor'; + export class StateAggregator extends AsyncOptionalCreatable { + private static instanceMap; + aliases: AliasAccessor; + orgs: OrgAccessor; + sandboxes: SandboxAccessor; + tokens: TokenAccessor; + /** + * Reuse a StateAggregator if one was already created for the current global state directory + * Otherwise, create one and adds it to map for future reuse. + * HomeDir might be stubbed in tests + */ + static getInstance(): Promise; + /** + * Clear the cache to force reading from disk. + * + * *NOTE: Only call this method if you must and you know what you are doing.* + */ + static clearInstance(path?: string): void; + protected init(): Promise; + } +} +declare module '@salesforce/core/status/myDomainResolver' { + /// + import { URL } from 'url'; + import { AsyncOptionalCreatable, Duration } from '@salesforce/kit'; + /** + * A class used to resolve MyDomains. After a ScratchOrg is created its host name my not be propagated to the + * Salesforce DNS service. This service is not exclusive to Salesforce My Domain URL and could be used for any hostname. + * + * ``` + * (async () => { + * const options: MyDomainResolver.Options = { + * url: new URL('http://mydomain.salesforce.com'), + * timeout: Duration.minutes(5), + * frequency: Duration.seconds(10) + * }; + * const resolver: MyDomainResolver = await MyDomainResolver.create(options); + * const ipAddress: AnyJson = await resolver.resolve(); + * console.log(`Successfully resolved host: ${options.url} to address: ${ipAddress}`); + * })(); + * ``` + */ + export class MyDomainResolver extends AsyncOptionalCreatable { + static DEFAULT_DOMAIN: URL; + private logger; + private options; + /** + * Constructor + * **Do not directly construct instances of this class -- use {@link MyDomainResolver.create} instead.** + * + * @param options The options for the class instance + */ + constructor(options?: MyDomainResolver.Options); + getTimeout(): Duration; + getFrequency(): Duration; + /** + * Method that performs the dns lookup of the host. If the lookup fails the internal polling client will try again + * given the optional interval. Returns the resolved ip address. + * + * If SFDX_DISABLE_DNS_CHECK environment variable is set to true, it will immediately return the host without + * executing the dns loookup. + */ + resolve(): Promise; + getCnames(): Promise; + /** + * Used to initialize asynchronous components. + */ + protected init(): Promise; + } + export namespace MyDomainResolver { + /** + * Options for the MyDomain DNS resolver. + */ + interface Options { + /** + * The host to resolve. + */ + url: URL; + /** + * The retry interval. + */ + timeout?: Duration; + /** + * The retry timeout. + */ + frequency?: Duration; + } + } +} +declare module '@salesforce/core/status/pollingClient' { + import { AsyncOptionalCreatable, Duration } from '@salesforce/kit'; + import { AnyJson } from '@salesforce/ts-types'; + import { Logger } from '@salesforce/core/logger/logger'; + import { StatusResult } from '@salesforce/core/status/types'; + /** + * This is a polling client that can be used to poll the status of long running tasks. It can be used as a replacement + * for Streaming when streaming topics are not available or when streaming handshakes are failing. Why wouldn't you + * want to use this? It can impact Salesforce API usage. + * + * ``` + * const options: PollingClient.Options = { + * async poll(): Promise { + * return Promise.resolve({ completed: true, payload: 'Hello World' }); + * }, + * frequency: Duration.milliseconds(10), + * timeout: Duration.minutes(1) + * }; + * const client = await PollingClient.create(options); + * const pollResult = await client.subscribe(); + * console.log(`pollResult: ${pollResult}`); + * ``` + */ + export class PollingClient extends AsyncOptionalCreatable { + protected logger: Logger; + private options; + /** + * Constructor + * + * @param options Polling client options + * @ignore + */ + constructor(options?: PollingClient.Options); + /** + * Asynchronous initializer. + */ + init(): Promise; + /** + * Returns a promise to call the specified polling function using the interval and timeout specified + * in the polling options. + */ + subscribe(): Promise; + } + export namespace PollingClient { + /** + * Options for the polling client. + */ + interface Options { + /** + * Polling function. + */ + poll: () => Promise; + /** + * How frequent should the polling function be called. + */ + frequency: Duration; + /** + * Hard timeout for polling. + */ + timeout: Duration; + /** + * Change the name of the timeout error. + * + * ``` + * if (err.name === 'MyChangedName) ... + * ``` + */ + timeoutErrorName?: string; + } + /** + * Default options set for polling. The default options specify a timeout of 3 minutes and polling frequency of 15 + * seconds; + */ + class DefaultPollingOptions implements PollingClient.Options { + frequency: Duration; + poll: () => Promise; + timeout: Duration; + /** + * constructor + * + * @param poll The function used for polling status. + * {@link StatusResult} + */ + constructor(poll: () => Promise); + } + } +} +declare module '@salesforce/core/status/streamingClient' { + import { AsyncOptionalCreatable, Duration, Env } from '@salesforce/kit/lib'; + import { AnyJson } from '@salesforce/ts-types/lib'; + import { Org } from '@salesforce/core/org/org'; + import { + CometClient, + CometSubscription, + Message, + StatusResult, + StreamingExtension, + StreamProcessor, + } from '@salesforce/core/status/types'; + export { CometClient, CometSubscription, Message, StatusResult, StreamingExtension, StreamProcessor }; + /** + * Inner streaming client interface. This implements the Cometd behavior. + * Also allows for mocking the functional behavior. + */ + export interface StreamingClientIfc { + /** + * Returns a comet client implementation. + * + * @param url The target url of the streaming service endpoint. + */ + getCometClient: (url: string) => CometClient; + /** + * Sets the logger function for the CometClient. + * + * @param logLine A log message passed to the the assigned function. + */ + setLogger: (logLine: (message: string) => void) => void; + } + /** + * Api wrapper to support Salesforce streaming. The client contains an internal implementation of a cometd specification. + * + * Salesforce client and timeout information + * + * Streaming API imposes two timeouts, as supported in the Bayeux protocol. + * + * Socket timeout: 110 seconds + * A client receives events (JSON-formatted HTTP responses) while it waits on a connection. If no events are generated + * and the client is still waiting, the connection times out after 110 seconds and the server closes the connection. + * Clients should reconnect before two minutes to avoid the connection timeout. + * + * Reconnect timeout: 40 seconds + * After receiving the events, a client needs to reconnect to receive the next set of events. If the reconnection + * doesn't happen within 40 seconds, the server expires the subscription and the connection is closed. If this happens, + * the client must start again and handshake, subscribe, and connect. Each Streaming API client logs into an instance + * and maintains a session. When the client handshakes, connects, or subscribes, the session timeout is restarted. A + * client session times out if the client doesn’t reconnect to the server within 40 seconds after receiving a response + * (an event, subscribe result, and so on). + * + * Note that these timeouts apply to the Streaming API client session and not the Salesforce authentication session. If + * the client session times out, the authentication session remains active until the organization-specific timeout + * policy goes into effect. + * + * ``` + * const streamProcessor = (message: JsonMap): StatusResult => { + * const payload = ensureJsonMap(message.payload); + * const id = ensureString(payload.id); + * + * if (payload.status !== 'Active') { + * return { completed: false }; + * } + * + * return { + * completed: true, + * payload: id + * }; + * }; + * + * const org = await Org.create(); + * const options = new StreamingClient.DefaultOptions(org, 'MyPushTopics', streamProcessor); + * + * const asyncStatusClient = await StreamingClient.create(options); + * + * await asyncStatusClient.handshake(); + * + * const info: RequestInfo = { + * method: 'POST', + * url: `${org.getField(OrgFields.INSTANCE_URL)}/SomeService`, + * headers: { HEADER: 'HEADER_VALUE'}, + * body: 'My content' + * }; + * + * await asyncStatusClient.subscribe(async () => { + * const connection = await org.getConnection(); + * // Now that we are subscribed, we can initiate the request that will cause the events to start streaming. + * const requestResponse: JsonCollection = await connection.request(info); + * const id = ensureJsonMap(requestResponse).id; + * console.log(`this.id: ${JSON.stringify(ensureString(id), null, 4)}`); + * }); + * ``` + */ + export class StreamingClient extends AsyncOptionalCreatable { + private readonly targetUrl; + private readonly options; + private logger; + private cometClient; + /** + * Constructor + * + * @param options Streaming client options + * {@link AsyncCreatable.create} + */ + constructor(options?: StreamingClient.Options); + /** + * Asynchronous initializer. + */ + init(): Promise; + /** + * Allows replaying of of Streaming events starting with replayId. + * + * @param replayId The starting message id to replay from. + */ + replay(replayId: number): void; + /** + * Provides a convenient way to handshake with the server endpoint before trying to subscribe. + */ + handshake(): Promise; + /** + * Subscribe to streaming events. When the streaming processor that's set in the options completes execution it + * returns a payload in the StatusResult object. The payload is just echoed here for convenience. + * + * **Throws** *{@link SfError}{ name: '{@link StreamingClient.TimeoutErrorType.SUBSCRIBE}'}* When the subscribe timeout occurs. + * + * @param streamInit This function should call the platform apis that result in streaming updates on push topics. + * {@link StatusResult} + */ + subscribe(streamInit?: () => Promise): Promise; + /** + * Handler for incoming streaming messages. + * + * @param message The message to process. + * @param cb The callback. Failure to call this can cause the internal comet client to hang. + */ + private incoming; + private doTimeout; + private disconnectClient; + private disconnect; + /** + * Simple inner log wrapper + * + * @param message The message to log + */ + private log; + } + export namespace StreamingClient { + /** + * Options for the StreamingClient + * + * @interface + */ + interface Options { + /** + * The org streaming target. + */ + org: Org; + /** + * The hard timeout that happens with subscribe + */ + subscribeTimeout: Duration; + /** + * The hard timeout that happens with a handshake. + */ + handshakeTimeout: Duration; + /** + * The streaming channel aka topic + */ + channel: string; + /** + * The salesforce api version + */ + apiVersion: string; + /** + * The function for processing streaming messages + */ + streamProcessor: StreamProcessor; + /** + * The function for build the inner client impl. Allows for mocking. + */ + streamingImpl: StreamingClientIfc; + } + /** + * Default Streaming Options. Uses Faye as the cometd impl. + */ + class DefaultOptions implements StreamingClient.Options { + static readonly SFDX_ENABLE_FAYE_COOKIES_ALLOW_ALL_PATHS = 'SFDX_ENABLE_FAYE_REQUEST_RESPONSE_LOGGING'; + static readonly SFDX_ENABLE_FAYE_REQUEST_RESPONSE_LOGGING = 'SFDX_ENABLE_FAYE_REQUEST_RESPONSE_LOGGING'; + static readonly DEFAULT_SUBSCRIBE_TIMEOUT: Duration; + static readonly DEFAULT_HANDSHAKE_TIMEOUT: Duration; + apiVersion: string; + org: Org; + streamProcessor: StreamProcessor; + subscribeTimeout: Duration; + handshakeTimeout: Duration; + channel: string; + streamingImpl: StreamingClientIfc; + /** + * Constructor for DefaultStreamingOptions + * + * @param org The streaming target org + * @param channel The streaming channel or topic. If the topic is a system topic then api 36.0 is used. + * System topics are deprecated. + * @param streamProcessor The function called that can process streaming messages. + * @param envDep + * @see {@link StatusResult} + */ + constructor(org: Org, channel: string, streamProcessor: StreamProcessor, envDep?: Env); + /** + * Setter for the subscribe timeout. + * + * **Throws** An error if the newTime is less than the default time. + * + * @param newTime The new subscribe timeout. + * {@link DefaultOptions.DEFAULT_SUBSCRIBE_TIMEOUT} + */ + setSubscribeTimeout(newTime: Duration): void; + /** + * Setter for the handshake timeout. + * + * **Throws** An error if the newTime is less than the default time. + * + * @param newTime The new handshake timeout + * {@link DefaultOptions.DEFAULT_HANDSHAKE_TIMEOUT} + */ + setHandshakeTimeout(newTime: Duration): void; + } + /** + * Connection state + * + * @see {@link StreamingClient.handshake} + */ + enum ConnectionState { + /** + * Used to indicated that the streaming client is connected. + */ + CONNECTED = 0, + } + /** + * Indicators to test error names for StreamingTimeouts + */ + enum TimeoutErrorType { + /** + * To indicate the error occurred on handshake + */ + HANDSHAKE = 'GenericHandshakeTimeoutError', + /** + * To indicate the error occurred on subscribe + */ + SUBSCRIBE = 'GenericTimeoutError', + } + } +} +declare module '@salesforce/core/status/types' { + /// + import { EventEmitter } from 'events'; + import { AnyFunction, AnyJson, JsonMap } from '@salesforce/ts-types'; + export type Message = JsonMap; + export type Callback = (...args: any[]) => T; + export interface StatusResult { + /** + * If the result of the streaming or polling client is expected to return a result + */ + payload?: AnyJson; + /** + * Indicates to the streaming or polling client that the subscriber has what its needs. If `true` the client will end + * the messaging exchanges with the endpoint. + */ + completed: boolean; + } + /** + * The subscription object returned from the cometd subscribe object. + */ + export interface CometSubscription { + callback(callback: () => void): void; + errback(callback: (error: Error) => void): void; + } + /** + * Types for defining extensions. + */ + export interface StreamingExtension { + /** + * Extension for outgoing message. + * + * @param message The message. + * @param callback The callback to invoke after the message is processed. + */ + outgoing?: (message: JsonMap, callback: AnyFunction) => void; + /** + * Extension for the incoming message. + * + * @param message The message. + * @param callback The callback to invoke after the message is processed. + */ + incoming?: (message: JsonMap, callback: AnyFunction) => void; + } + /** + * Function type for processing messages + */ + export type StreamProcessor = (message: JsonMap) => StatusResult; + /** + * Comet client interface. The is to allow for mocking the inner streaming Cometd implementation. + * The Faye implementation is used by default but it could be used to adapt another Cometd impl. + */ + export abstract class CometClient extends EventEmitter { + /** + * Disable polling features. + * + * @param label Polling feature label. + */ + abstract disable(label: string): void; + /** + * Add a custom extension to the underlying client. + * + * @param extension The json function for the extension. + */ + abstract addExtension(extension: StreamingExtension): void; + /** + * Sets an http header name/value. + * + * @param name The header name. + * @param value The header value. + */ + abstract setHeader(name: string, value: string): void; + /** + * handshake with the streaming channel + * + * @param callback Callback for the handshake when it successfully completes. The handshake should throw + * errors when errors are encountered. + */ + abstract handshake(callback: () => void): void; + /** + * Subscribes to Comet topics. Subscribe should perform a handshake if one hasn't been performed yet. + * + * @param channel The topic to subscribe to. + * @param callback The callback to execute once a message has been received. + */ + abstract subscribe(channel: string, callback: (message: JsonMap) => void): CometSubscription; + /** + * Method to call to disconnect the client from the server. + */ + abstract disconnect(): void; + } +} +declare module '@salesforce/core/testSetup' { + /// + import { EventEmitter } from 'events'; + import { SinonSandbox, SinonStatic, SinonStub } from 'sinon'; + import { AnyJson, JsonMap, Optional } from '@salesforce/ts-types'; + import { ConfigContents } from '@salesforce/core/config/configStore'; + import { Connection } from '@salesforce/core/org/connection'; + import { Logger } from '@salesforce/core/logger/logger'; + import { SfError } from '@salesforce/core/sfError'; + import { CometClient, CometSubscription, Message, StreamingExtension } from '@salesforce/core/status/streamingClient'; + import { AuthFields, SandboxFields } from '@salesforce/core/org/index'; + /** + * Different parts of the system that are mocked out. They can be restored for + * individual tests. Test's stubs should always go on the DEFAULT which is exposed + * on the TestContext. + */ + export interface SandboxTypes { + DEFAULT: SinonSandbox; + CRYPTO: SinonSandbox; + CONFIG: SinonSandbox; + PROJECT: SinonSandbox; + CONNECTION: SinonSandbox; + FS: SinonSandbox; + ORGS: SinonSandbox; + } + /** + * Different hooks into {@link ConfigFile} used for testing instead of doing file IO. + */ + export interface ConfigStub { + /** + * readFn A function that controls all aspect of {@link ConfigFile.read}. For example, it won't set the contents + * unless explicitly done. Only use this if you know what you are doing. Use retrieveContents + * instead. + */ + readFn?: () => Promise; + /** + * A function that controls all aspects of {@link ConfigFile.write}. For example, it won't read the contents unless + * explicitly done. Only use this if you know what you are doing. Use updateContents instead. + */ + writeFn?: (contents?: AnyJson) => Promise; + /** + * The contents that are used with @{link ConfigFile.readSync} and @{link ConfigFile.read}. If retrieveContents is set, + * it will use that instead of @{link ConfigFile.read} but NOT @{link ConfigFile.readSync}. This will also contain the + * new config when @{link ConfigFile.write} or @{link ConfigFile.writeSync} is called. This will persist through config instances, + * such as {@link Alias.update} and {@link Alias.fetch}. + */ + contents?: ConfigContents; + /** + * A function to conditionally read based on the config instance. The `this` value will be the config instance. + */ + retrieveContents?: () => Promise; + /** + * A function to conditionally set based on the config instance. The `this` value will be the config instance. + */ + updateContents?: () => Promise; + } + /** + * Instantiate a @salesforce/core test context. + */ + export class TestContext { + /** + * The default sandbox is cleared out before each test run. + * + * **See** [sinon sandbox]{@link https://sinonjs.org/releases/v14/sandbox/}. + */ + SANDBOX: SinonSandbox; + /** + * An object of different sandboxes. Used when + * needing to restore parts of the system for customized testing. + */ + SANDBOXES: SandboxTypes; + /** + * The test logger that is used when {@link Logger.child} is used anywhere. It uses memory logging. + */ + TEST_LOGGER: Logger; + /** + * id A unique id for the test run. + */ + id: string; + /** + * An object used in tests that interact with config files. + */ + configStubs: { + [configName: string]: Optional; + AuthInfoConfig?: ConfigStub; + Config?: ConfigStub; + SfProjectJson?: ConfigStub; + TokensConfig?: ConfigStub; + OrgUsersConfig?: ConfigStub; + }; + /** + * A record of stubs created during instantiation. + */ + stubs: Record; + constructor(options?: { sinon?: SinonStatic; sandbox?: SinonSandbox; setup?: boolean }); + /** + * Generate unique string. + */ + uniqid(): string; + /** + * A function used when resolving the local path. Calls localPathResolverSync by default. + * + * @param uid Unique id. + */ + localPathRetriever(uid: string): Promise; + /** + * A function used when resolving the local path. + * + * @param uid Unique id. + */ + localPathRetrieverSync(uid: string): string; + /** + * A function used when resolving the global path. Calls globalPathResolverSync by default. + * + * @param uid Unique id. + */ + globalPathRetriever(uid: string): Promise; + /** + * A function used when resolving the global path. + * + * @param uid Unique id. + */ + globalPathRetrieverSync(uid: string): string; + /** + * A function used for resolving paths. Calls localPathRetriever and globalPathRetriever. + * + * @param isGlobal `true` if the config is global. + * @param uid user id. + */ + rootPathRetriever(isGlobal: boolean, uid?: string): Promise; + /** + * A function used for resolving paths. Calls localPathRetrieverSync and globalPathRetrieverSync. + * + * @param isGlobal `true` if the config is global. + * @param uid user id. + */ + rootPathRetrieverSync(isGlobal: boolean, uid?: string): string; + /** + * Used to mock http request to Salesforce. + * + * @param request An HttpRequest. + * @param options Additional options. + * + * **See** {@link Connection.request} + */ + fakeConnectionRequest(request: AnyJson, options?: AnyJson): Promise; + /** + * Gets a config stub contents by name. + * + * @param name The name of the config. + * @param group If the config supports groups. + */ + getConfigStubContents(name: string, group?: string): ConfigContents; + /** + * Sets a config stub contents by name + * + * @param name The name of the config stub. + * @param value The actual stub contents. The Mock data. + */ + setConfigStubContents(name: string, value: ConfigContents): void; + /** + * Set stubs for working in the context of a SfProject + */ + inProject(inProject?: boolean): void; + /** + * Stub salesforce org authorizations. + */ + stubAuths(...orgs: MockTestOrgData[]): Promise; + /** + * Stub salesforce user authorizations. + * + * @param users The users to stub. + * The key is the username of the admin user and it must be included in the users array in order to obtain the orgId key for the remaining users. + * The admin user is excluded from the users array. + * + */ + stubUsers(users: Record): void; + /** + * Stub salesforce sandbox authorizations. + */ + stubSandboxes(...sandboxes: MockTestSandboxData[]): Promise; + /** + * Stub the aliases in the global aliases config file. + */ + stubAliases(aliases: Record, group?: string): void; + /** + * Stub contents in the config file. + */ + stubConfig(config: Record): Promise; + /** + * Stub the tokens in the global token config file. + */ + stubTokens(tokens: Record): void; + restore(): void; + init(): void; + /** + * Add beforeEach and afterEach hooks to init the stubs and restore them. + * This is called automatically when the class is instantiated unless the setup option is set to false. + */ + setup(): void; + private requireSinon; + } + /** + * A function to generate a unique id and return it in the context of a template, if supplied. + * + * A template is a string that can contain `${%s}` to be replaced with a unique id. + * If the template contains the "%s" placeholder, it will be replaced with the unique id otherwise the id will be appended to the template. + * + * @param options an object with the following properties: + * - template: a template string. + * - length: the length of the unique id as presented in hexadecimal. + */ + export function uniqid(options?: { template?: string; length?: number }): string; + /** + * Instantiate a @salesforce/core test context. This is automatically created by `const $$ = testSetup()` + * but is useful if you don't want to have a global stub of @salesforce/core and you want to isolate it to + * a single describe. + * + * **Note:** Call `stubContext` in your beforeEach to have clean stubs of @salesforce/core every test run. + * + * @example + * ``` + * const $$ = instantiateContext(); + * + * beforeEach(() => { + * $$.init() + * }); + * + * afterEach(() => { + * $$.restore(); + * }); + * ``` + * @param sinon + */ + export const instantiateContext: (sinon?: SinonStatic) => TestContext; + /** + * Stub a @salesforce/core test context. This will mock out logging to a file, config file reading and writing, + * local and global path resolution, and http request using connection (soon)*. + * + * This is automatically stubbed in the global beforeEach created by + * `const $$ = testSetup()` but is useful if you don't want to have a global stub of @salesforce/core and you + * want to isolate it to a single describe. + * + * **Note:** Always call `restoreContext` in your afterEach. + * + * @example + * ``` + * const $$ = instantiateContext(); + * + * beforeEach(() => { + * $$.init() + * }); + * + * afterEach(() => { + * $$.restore(); + * }); + * ``` + * @param testContext + */ + export const stubContext: (testContext: TestContext) => Record; + /** + * Restore a @salesforce/core test context. This is automatically stubbed in the global beforeEach created by + * `const $$ = testSetup()` but is useful if you don't want to have a global stub of @salesforce/core and you + * want to isolate it to a single describe. + * + * @example + * ``` + * const $$ = instantiateContext(); + * + * beforeEach(() => { + * $$.init() + * }); + * + * afterEach(() => { + * $$.restore(); + * }); + * ``` + * @param testContext + */ + export const restoreContext: (testContext: TestContext) => void; + /** + * A pre-canned error for try/catch testing. + * + * **See** {@link shouldThrow} + */ + export const unexpectedResult: SfError; + /** + * Use for this testing pattern: + * ``` + * try { + * await call() + * assert.fail("this should never happen"); + * } catch (e) { + * ... + * } + * + * Just do this + * + * try { + * await shouldThrow(call()); // If this succeeds unexpectedResultError is thrown. + * } catch(e) { + * ... + * } + * ``` + * + * @param f The async function that is expected to throw. + */ + export function shouldThrow(f: Promise, message?: string): Promise; + /** + * Use for this testing pattern: + * ``` + * try { + * call() + * assert.fail("this should never happen"); + * } catch (e) { + * ... + * } + * + * Just do this + * + * try { + * shouldThrowSync(call); // If this succeeds unexpectedResultError is thrown. + * } catch(e) { + * ... + * } + * ``` + * + * @param f The function that is expected to throw. + */ + export function shouldThrowSync(f: () => unknown, message?: string): never; + /** + * A helper to determine if a subscription will use callback or errorback. + * Enable errback to simulate a subscription failure. + */ + export enum StreamingMockSubscriptionCall { + CALLBACK = 0, + ERRORBACK = 1, + } + /** + * Additional subscription options for the StreamingMock. + */ + export interface StreamingMockCometSubscriptionOptions { + /** + * Target URL. + */ + url: string; + /** + * Simple id to associate with this instance. + */ + id: string; + /** + * What is the subscription outcome a successful callback or an error?. + */ + subscriptionCall: StreamingMockSubscriptionCall; + /** + * If it's an error that states what that error should be. + */ + subscriptionErrbackError?: SfError; + /** + * A list of messages to playback for the client. One message per process tick. + */ + messagePlaylist?: Message[]; + } + /** + * Simulates a comet subscription to a streaming channel. + */ + export class StreamingMockCometSubscription extends EventEmitter implements CometSubscription { + static SUBSCRIPTION_COMPLETE: string; + static SUBSCRIPTION_FAILED: string; + private options; + constructor(options: StreamingMockCometSubscriptionOptions); + /** + * Sets up a streaming subscription callback to occur after the setTimeout event loop phase. + * + * @param callback The function to invoke. + */ + callback(callback: () => void): void; + /** + * Sets up a streaming subscription errback to occur after the setTimeout event loop phase. + * + * @param callback The function to invoke. + */ + errback(callback: (error: Error) => void): void; + } + /** + * Simulates a comet client. To the core streaming client this mocks the internal comet impl. + * The uses setTimeout(0ms) event loop phase just so the client can simulate actual streaming without the response + * latency. + */ + export class StreamingMockCometClient extends CometClient { + private readonly options; + /** + * Constructor + * + * @param {StreamingMockCometSubscriptionOptions} options Extends the StreamingClient options. + */ + constructor(options: StreamingMockCometSubscriptionOptions); + /** + * Fake addExtension. Does nothing. + */ + addExtension(extension: StreamingExtension): void; + /** + * Fake disable. Does nothing. + */ + disable(label: string): void; + /** + * Fake handshake that invoke callback after the setTimeout event phase. + * + * @param callback The function to invoke. + */ + handshake(callback: () => void): void; + /** + * Fake setHeader. Does nothing, + */ + setHeader(name: string, value: string): void; + /** + * Fake subscription that completed after the setTimout event phase. + * + * @param channel The streaming channel. + * @param callback The function to invoke after the subscription completes. + */ + subscribe(channel: string, callback: (message: Message) => void): CometSubscription; + /** + * Fake disconnect. Does Nothing. + */ + disconnect(): Promise; + } + type MockUserInfo = { + Id: string; + Username: string; + LastName: string; + Alias: string; + Configs: string[] | undefined; + TimeZoneSidKey: string; + LocaleSidKey: string; + EmailEncodingKey: string; + ProfileId: string; + LanguageLocaleKey: string; + Email: string; + }; + /** + * Mock class for Salesforce Orgs. + * + * @example + * ``` + * const testOrg = new MockTestOrgData(); + * await $$.stubAuths(testOrg) + * ``` + */ + export class MockTestOrgData { + testId: string; + aliases?: string[]; + configs?: string[]; + username: string; + devHubUsername?: string; + orgId: string; + loginUrl: string; + instanceUrl: string; + clientId: string; + clientSecret: string; + authcode: string; + accessToken: string; + refreshToken: string | undefined; + tracksSource: boolean | undefined; + userId: string; + redirectUri: string; + isDevHub?: boolean; + isScratchOrg?: boolean; + isExpired?: boolean | 'unknown'; + password?: string; + namespacePrefix?: string; + constructor( + id?: string, + options?: { + username: string; + } + ); + /** + * Add devhub username to properties. + */ + createDevHubUsername(username: string): void; + /** + * Mark this org as a devhub. + */ + makeDevHub(): void; + /** + * Returns a MockTestOrgData that represents a user created in the org. + */ + createUser(user: string): MockTestOrgData; + /** + * Return mock user information based on this org. + */ + getMockUserInfo(): MockUserInfo; + /** + * Return the auth config file contents. + */ + getConfig(): Promise; + /** + * Return the Connection for the org. + */ + getConnection(): Promise; + } + /** + * Mock class for Salesforce Sandboxes. + * + * @example + * ``` + * const testOrg = new MockTestSandboxData(); + * await $$.stubSandboxes(testOrg) + * ``` + */ + export class MockTestSandboxData { + id: string; + sandboxOrgId: string; + prodOrgUsername: string; + sandboxName?: string; + username?: string; + constructor( + id?: string, + options?: Partial<{ + prodOrgUsername: string; + name: string; + username: string; + }> + ); + /** + * Return the auth config file contents. + */ + getConfig(): Promise; + } + export {}; +} +declare module '@salesforce/core/util/cache' { + export class Cache extends Map { + #private; + private constructor(); + static get hits(): number; + static get lookups(): number; + static instance(): Cache; + static set(key: string, value: V): void; + static get(key: string): V | undefined; + static disable(): void; + static enable(): void; + } +} +declare module '@salesforce/core/util/checkLightningDomain' { + export default function checkLightningDomain(url: string): Promise; +} +declare module '@salesforce/core/util/directoryWriter' { + /// + /// + import { Readable } from 'stream'; + import { StructuredWriter } from '@salesforce/core/util/structuredWriter'; + export class DirectoryWriter implements StructuredWriter { + private readonly rootDestination?; + constructor(rootDestination?: string | undefined); + get buffer(): Buffer; + addToStore(contents: string | Readable | Buffer, targetPath: string): Promise; + finalize(): Promise; + getDestinationPath(): string | undefined; + } +} +declare module '@salesforce/core/util/getJwtAudienceUrl' { + import { OAuth2Config } from 'jsforce'; + export function getJwtAudienceUrl( + options: OAuth2Config & { + createdOrgInstance?: string; + } + ): Promise; +} +declare module '@salesforce/core/util/internal' { + import { Optional } from '@salesforce/ts-types'; + /** + * The name of the project config file. + * + * @ignore + */ + export const SFDX_PROJECT_JSON = 'sfdx-project.json'; + /** + * Performs an upward directory search for an sfdx project file. Returns the absolute path to the project. + * + * **See** {@link SFDX_PROJECT_JSON} + * + * **See** {@link traverseForFile} + * + * **Throws** *{@link SfError}{ name: 'InvalidProjectWorkspaceError' }* If the current folder is not located in a workspace. + * + * @param dir The directory path to start traversing from. + * @ignore + */ + export function resolveProjectPath(dir?: string): Promise; + /** + * Performs a synchronous upward directory search for an sfdx project file. Returns the absolute path to the project. + * + * **See** {@link SFDX_PROJECT_JSON} + * + * **See** {@link traverseForFile} + * + * **Throws** *{@link SfError}{ name: 'InvalidProjectWorkspaceError' }* If the current folder is not located in a workspace. + * + * @param dir The directory path to start traversing from. + * @ignore + */ + export function resolveProjectPathSync(dir?: string): string; + /** + * These methods were moved from the deprecated 'fs' module in v2 and are only used in sfdx-core above + * + * They were migrated into the 'traverse' constant in order to stub them in unit tests + */ + export const traverse: { + /** + * Searches a file path in an ascending manner (until reaching the filesystem root) for the first occurrence a + * specific file name. Resolves with the directory path containing the located file, or `null` if the file was + * not found. + * + * @param dir The directory path in which to start the upward search. + * @param file The file name to look for. + */ + forFile: (dir: string, file: string) => Promise>; + /** + * Searches a file path synchronously in an ascending manner (until reaching the filesystem root) for the first occurrence a + * specific file name. Resolves with the directory path containing the located file, or `null` if the file was + * not found. + * + * @param dir The directory path in which to start the upward search. + * @param file The file name to look for. + */ + forFileSync: (dir: string, file: string) => Optional; + }; +} +declare module '@salesforce/core/util/jsonXmlTools' { + import { JsonMap } from '@salesforce/ts-types'; + import { IOptions } from 'js2xmlparser/lib/options'; + export interface JSONasXML { + json: JsonMap; + type: string; + options?: IOptions; + } + export interface WriteJSONasXMLInputs extends JSONasXML { + path: string; + } + export const standardOptions: IOptions; + export const writeJSONasXML: ({ path, json, type, options }: WriteJSONasXMLInputs) => Promise; + export const JsonAsXml: ({ json, type, options }: JSONasXML) => string; + export const fixExistingDollarSign: (existing: WriteJSONasXMLInputs['json']) => Record; +} +declare module '@salesforce/core/util/mapKeys' { + /** + * Use mapKeys to convert object keys to another format using the specified conversion function. + * + * E.g., to deep convert all object keys to camelCase: mapKeys(myObj, _.camelCase, true) + * to shallow convert object keys to lower case: mapKeys(myObj, _.toLower) + * + * NOTE: This mutates the object passed in for conversion. + * + * @param target - {Object} The object to convert the keys + * @param converter - {Function} The function that converts the object key + * @param deep - {boolean} Whether to do a deep object key conversion + * @return {Object} - the object with the converted keys + */ + export default function mapKeys( + obj: T, + converter: (key: string) => string, + deep?: boolean + ): Record; +} +declare module '@salesforce/core/util/sfdc' { + import { JsonMap, Optional } from '@salesforce/ts-types'; + /** + * Converts an 18 character Salesforce ID to 15 characters. + * + * @param id The id to convert. + */ + export function trimTo15(id: string): string; + export function trimTo15(id?: undefined): undefined; + export function trimTo15(id: string | undefined): string | undefined; + /** + * Tests whether an API version matches the format `i.0`. + * + * @param value The API version as a string. + */ + export const validateApiVersion: (value: string) => boolean; + /** + * Tests whether an email matches the format `me@my.org` + * + * @param value The email as a string. + */ + export const validateEmail: (value: string) => boolean; + /** + * + * @deprecated use `new SfdcUrl(url).isInternalUrl()` + * Tests whether a given url is an internal Salesforce domain + * + * @param url + */ + export const isInternalUrl: (url: string) => boolean; + /** + * Tests whether a Salesforce ID is in the correct format, a 15- or 18-character length string with only letters and numbers + * + * @param value The ID as a string. + */ + export const validateSalesforceId: (value: string) => boolean; + /** + * Tests whether a path is in the correct format; the value doesn't include the characters "[", "]", "?", "<", ">", "?", "|" + * + * @param value The path as a string. + */ + export const validatePathDoesNotContainInvalidChars: (value: string) => boolean; + /** + * @deprecated + * // TODO: move this to a module-scope function in sfProject + * Returns the first key within the object that has an upper case first letter. + * + * @param data The object in which to check key casing. + * @param sectionBlocklist properties in the object to exclude from the search. e.g. a blocklist of `["a"]` and data of `{ "a": { "B" : "b"}}` would ignore `B` because it is in the object value under `a`. + */ + export const findUpperCaseKeys: (data?: JsonMap, sectionBlocklist?: string[]) => Optional; + export const accessTokenRegex: RegExp; + export const sfdxAuthUrlRegex: RegExp; + /** + * Tests whether a given string is an access token + * + * @param value + */ + export const matchesAccessToken: (value: string) => boolean; +} +declare module '@salesforce/core/util/sfdcUrl' { + /// + import { URL } from 'url'; + export function getLoginAudienceCombos(audienceUrl: string, loginUrl: string): Array<[string, string]>; + export class SfdcUrl extends URL { + /** + * Salesforce URLs + */ + static readonly SANDBOX = 'https://test.salesforce.com'; + static readonly PRODUCTION = 'https://login.salesforce.com'; + private static readonly cache; + private logger; + constructor(input: string | URL, base?: string | URL); + static isValidUrl(input: string | URL): boolean; + /** + * Returns the appropriate jwt audience url for this url + * Use SFDX_AUDIENCE_URL env var to override the audience url + * + * @param createdOrgInstance The Salesforce instance the org was created on. e.g. `cs42` + * @return {Promise} The audience url + */ + getJwtAudienceUrl(createdOrgInstance?: string): Promise; + /** + * Tests whether this url contains a Salesforce owned domain + * + * @return {boolean} true if this is a salesforce domain + */ + isSalesforceDomain(): boolean; + /** + * Tests whether this url is an internal Salesforce domain + * + * @returns {boolean} true if this is an internal domain + */ + isInternalUrl(): boolean; + /** + * Tests whether this url runs on a local machine + * + * @returns {boolean} true if this is a local machine + */ + isLocalUrl(): boolean; + toLightningDomain(): string; + /** + * Tests whether this url has the lightning domain extension + * This method that performs the dns lookup of the host. If the lookup fails the internal polling (1 second), client will try again until timeout + * If SFDX_DOMAIN_RETRY environment variable is set (number) it overrides the default timeout duration (240 seconds) + * + * @returns {Promise} The resolved ip address or never + * @throws {@link SfError} If can't resolve DNS. + */ + checkLightningDomain(): Promise; + /** + * Method that performs the dns lookup of the host. If the lookup fails the internal polling (1 second), client will try again until timeout + * If SFDX_DOMAIN_RETRY environment variable is set (number) it overrides the default timeout duration (240 seconds) + * + * @returns the resolved ip address. + * @throws {@link SfError} If can't resolve DNS. + */ + lookup(): Promise; + /** + * Test whether this url represents a lightning domain + * + * @returns {boolean} true if this domain is a lightning domain + */ + isLightningDomain(): boolean; + } +} +declare module '@salesforce/core/util/structuredWriter' { + /// + /// + import { Readable } from 'stream'; + export interface StructuredWriter { + addToStore(contents: string | Readable | Buffer, path: string): Promise; + finalize(): Promise; + getDestinationPath(): string | undefined; + get buffer(): Buffer; + } +} +declare module '@salesforce/core/util/unwrapArray' { + export const unwrapArray: (args: unknown) => unknown; +} +declare module '@salesforce/core/util/zipWriter' { + /// + /// + import { Readable, Writable } from 'stream'; + import { StructuredWriter } from '@salesforce/core/util/structuredWriter'; + export class ZipWriter extends Writable implements StructuredWriter { + private readonly rootDestination?; + private zip; + private zipBuffer?; + private logger; + constructor(rootDestination?: string | undefined); + get buffer(): Buffer; + addToStore(contents: string | Readable | Buffer, path: string): Promise; + finalize(): Promise; + getDestinationPath(): string | undefined; + } +} +declare module '@salesforce/core/webOAuthServer' { + /// + import * as http from 'http'; + import { AsyncCreatable } from '@salesforce/kit'; + import { AuthInfo } from '@salesforce/core/org/index'; + import { JwtOAuth2Config } from '@salesforce/core/org/authInfo'; + /** + * Handles the creation of a web server for web based login flows. + * + * Usage: + * ``` + * const oauthConfig = { + * loginUrl: this.flags.instanceurl, + * clientId: this.flags.clientid, + * }; + * + * const oauthServer = await WebOAuthServer.create({ oauthConfig }); + * await oauthServer.start(); + * await open(oauthServer.getAuthorizationUrl(), { wait: false }); + * const authInfo = await oauthServer.authorizeAndSave(); + * ``` + */ + export class WebOAuthServer extends AsyncCreatable { + static DEFAULT_PORT: number; + private authUrl; + private logger; + private webServer; + private oauth2; + private oauthConfig; + private oauthError; + constructor(options: WebOAuthServer.Options); + /** + * Returns the configured oauthLocalPort or the WebOAuthServer.DEFAULT_PORT + * + * @returns {Promise} + */ + static determineOauthPort(): Promise; + /** + * Returns the authorization url that's used for the login flow + * + * @returns {string} + */ + getAuthorizationUrl(): string; + /** + * Executes the oauth request and creates a new AuthInfo when successful + * + * @returns {Promise} + */ + authorizeAndSave(): Promise; + /** + * Starts the web server + */ + start(): Promise; + protected init(): Promise; + /** + * Executes the oauth request + * + * @returns {Promise} + */ + private executeOauthRequest; + /** + * Parses the auth code from the request url + * + * @param response the http response + * @param request the http request + * @returns {Nullable} + */ + private parseAuthCodeFromRequest; + /** + * Closes the request + * + * @param request the http request + */ + private closeRequest; + /** + * Validates that the state param in the auth url matches the state + * param in the http request + * + * @param request the http request + */ + private validateState; + } + export namespace WebOAuthServer { + interface Options { + oauthConfig: JwtOAuth2Config; + } + type Request = http.IncomingMessage & { + query: { + code: string; + state: string; + error?: string; + error_description?: string; + }; + }; + } + /** + * Handles the actions specific to the http server + */ + export class WebServer extends AsyncCreatable { + static DEFAULT_CLIENT_SOCKET_TIMEOUT: number; + server: http.Server; + port: number; + host: string; + private logger; + private sockets; + private redirectStatus; + constructor(options: WebServer.Options); + /** + * Starts the http server after checking that the port is open + */ + start(): Promise; + /** + * Closes the http server and all open sockets + */ + close(): void; + /** + * sends a response error. + * + * @param status the statusCode for the response. + * @param message the message for the http body. + * @param response the response to write the error to. + */ + sendError(status: number, message: string, response: http.ServerResponse): void; + /** + * sends a response redirect. + * + * @param status the statusCode for the response. + * @param url the url to redirect to. + * @param response the response to write the redirect to. + */ + doRedirect(status: number, url: string, response: http.ServerResponse): void; + /** + * sends a response to the browser reporting an error. + * + * @param error the oauth error + * @param response the HTTP response. + */ + reportError(error: Error, response: http.ServerResponse): void; + /** + * sends a response to the browser reporting the success. + * + * @param response the HTTP response. + */ + reportSuccess(response: http.ServerResponse): void; + handleSuccess(response: http.ServerResponse): Promise; + handleError(response: http.ServerResponse): Promise; + protected init(): Promise; + private handleRedirect; + /** + * Make sure we can't open a socket on the localhost/host port. It's important because we don't want to send + * auth tokens to a random strange port listener. We want to make sure we can startup our server first. + * + * @private + */ + private checkOsPort; + /** + * check and get the socket timeout form what was set in process.env.SFDX_HTTP_SOCKET_TIMEOUT + * + * @returns {number} - represents the socket timeout in ms + * @private + */ + private getSocketTimeout; + } + namespace WebServer { + interface Options { + port?: number; + host?: string; + } + } + export {}; +} +declare module '@salesforce/core' { + import main = require('@salesforce/core/src/exported'); + export = main; +} diff --git a/dist/exported.js b/dist/exported.js new file mode 100644 index 0000000000..2bfff2e16c --- /dev/null +++ b/dist/exported.js @@ -0,0 +1,94770 @@ +'use strict'; +var dAe = Object.create; +var T6 = Object.defineProperty; +var fAe = Object.getOwnPropertyDescriptor; +var mAe = Object.getOwnPropertyNames; +var hAe = Object.getPrototypeOf, + gAe = Object.prototype.hasOwnProperty; +var Tn = (e, t) => () => (e && (t = e((e = 0))), t); +var d = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), + Q7 = (e, t) => { + for (var r in t) T6(e, r, { get: t[r], enumerable: !0 }); + }, + kU = (e, t, r, n) => { + if ((t && typeof t == 'object') || typeof t == 'function') + for (let a of mAe(t)) + !gAe.call(e, a) && a !== r && T6(e, a, { get: () => t[a], enumerable: !(n = fAe(t, a)) || n.enumerable }); + return e; + }; +var W = (e, t, r) => ( + (r = e != null ? dAe(hAe(e)) : {}), + kU(t || !e || !e.__esModule ? T6(r, 'default', { value: e, enumerable: !0 }) : r, e) + ), + Zn = (e) => kU(T6({}, '__esModule', { value: !0 }), e); +var $1 = d((lt) => { + 'use strict'; + Object.defineProperty(lt, '__esModule', { value: !0 }); + lt.isKeyOf = + lt.isJsonArray = + lt.isJsonMap = + lt.isAnyJson = + lt.isArrayLike = + lt.isArray = + lt.isClassAssignableTo = + lt.isInstance = + lt.isDictionary = + lt.isPlainObject = + lt.isFunction = + lt.isObject = + lt.isBoolean = + lt.isNumber = + lt.isString = + void 0; + function Z7(e) { + return typeof e == 'string'; + } + lt.isString = Z7; + function AU(e) { + return typeof e == 'number'; + } + lt.isNumber = AU; + function IU(e) { + return typeof e == 'boolean'; + } + lt.isBoolean = IU; + function C6(e) { + return e != null && (typeof e == 'object' || typeof e == 'function'); + } + lt.isObject = C6; + function eE(e) { + return typeof e == 'function'; + } + lt.isFunction = eE; + function k6(e) { + let t = (n) => C6(n) && Object.prototype.toString.call(n) === '[object Object]'; + if (!t(e)) return !1; + let r = e.constructor; + return !(!eE(r) || !t(r.prototype) || !r.prototype.hasOwnProperty('isPrototypeOf')); + } + lt.isPlainObject = k6; + function vAe(e) { + return k6(e); + } + lt.isDictionary = vAe; + function yAe(e, t) { + return e instanceof t; + } + lt.isInstance = yAe; + function bAe(e, t) { + return e === t || (((n, a) => C6(n) && a in n)(e, 'prototype') && e.prototype instanceof t); + } + lt.isClassAssignableTo = bAe; + function tE(e) { + return Array.isArray(e); + } + lt.isArray = tE; + function _Ae(e) { + let t = (r) => C6(r) && 'length' in r; + return !eE(e) && (Z7(e) || t(e)); + } + lt.isArrayLike = _Ae; + function wAe(e) { + return e === null || Z7(e) || AU(e) || IU(e) || k6(e) || tE(e); + } + lt.isAnyJson = wAe; + function SAe(e) { + return k6(e); + } + lt.isJsonMap = SAe; + function EAe(e) { + return tE(e); + } + lt.isJsonArray = EAe; + function xAe(e, t) { + return Object.keys(e).includes(t); + } + lt.isKeyOf = xAe; +}); +var wc = d((Jt) => { + 'use strict'; + Object.defineProperty(Jt, '__esModule', { value: !0 }); + Jt.asJsonArray = + Jt.asJsonMap = + Jt.asFunction = + Jt.asArray = + Jt.asInstance = + Jt.asDictionary = + Jt.asPlainObject = + Jt.asObject = + Jt.asBoolean = + Jt.asNumber = + Jt.asString = + void 0; + var yo = $1(); + function OAe(e, t) { + return (0, yo.isString)(e) ? e : t; + } + Jt.asString = OAe; + function TAe(e, t) { + return (0, yo.isNumber)(e) ? e : t; + } + Jt.asNumber = TAe; + function CAe(e, t) { + return (0, yo.isBoolean)(e) ? e : t; + } + Jt.asBoolean = CAe; + function kAe(e, t) { + return (0, yo.isObject)(e) ? e : t; + } + Jt.asObject = kAe; + function AAe(e, t) { + return (0, yo.isPlainObject)(e) ? e : t; + } + Jt.asPlainObject = AAe; + function IAe(e, t) { + return (0, yo.isDictionary)(e) ? e : t; + } + Jt.asDictionary = IAe; + function PAe(e, t, r) { + return (0, yo.isInstance)(e, t) ? e : r; + } + Jt.asInstance = PAe; + function RAe(e, t) { + return (0, yo.isArray)(e) ? e : t; + } + Jt.asArray = RAe; + function jAe(e, t) { + return (0, yo.isFunction)(e) ? e : t; + } + Jt.asFunction = jAe; + function DAe(e, t) { + return (0, yo.isJsonMap)(e) ? e : t; + } + Jt.asJsonMap = DAe; + function NAe(e, t) { + return (0, yo.isJsonArray)(e) ? e : t; + } + Jt.asJsonArray = NAe; +}); +var A6 = d((os) => { + 'use strict'; + Object.defineProperty(os, '__esModule', { value: !0 }); + os.JsonCloneError = os.UnexpectedValueTypeError = os.AssertionFailedError = os.NamedError = void 0; + var Wf = class extends Error { + constructor(t, r) { + super(r), (this.name = t); + } + }; + os.NamedError = Wf; + var rE = class extends Wf { + constructor(t) { + super('AssertionFailedError', t); + } + }; + os.AssertionFailedError = rE; + var iE = class extends Wf { + constructor(t) { + super('UnexpectedValueTypeError', t); + } + }; + os.UnexpectedValueTypeError = iE; + var nE = class extends Wf { + constructor(t) { + super('JsonCloneError', t.message); + } + }; + os.JsonCloneError = nE; +}); +var I6 = d((Pu) => { + 'use strict'; + Object.defineProperty(Pu, '__esModule', { value: !0 }); + Pu.toJsonArray = Pu.toJsonMap = Pu.toAnyJson = void 0; + var qAe = A6(), + PU = wc(); + function aE(e, t) { + try { + return e !== void 0 ? JSON.parse(JSON.stringify(e)) : t; + } catch (r) { + throw new qAe.JsonCloneError(r); + } + } + Pu.toAnyJson = aE; + function FAe(e, t) { + return (0, PU.asJsonMap)(aE(e)) ?? t; + } + Pu.toJsonMap = FAe; + function LAe(e, t) { + return (0, PU.asJsonArray)(aE(e)) ?? t; + } + Pu.toJsonArray = LAe; +}); +var jU = d((gt) => { + 'use strict'; + Object.defineProperty(gt, '__esModule', { value: !0 }); + gt.assertJsonArray = + gt.assertJsonMap = + gt.assertAnyJson = + gt.assertFunction = + gt.assertArray = + gt.assertInstance = + gt.assertDictionary = + gt.assertPlainObject = + gt.assertObject = + gt.assertBoolean = + gt.assertNumber = + gt.assertString = + gt.assertNonNull = + gt.assert = + void 0; + var MAe = A6(), + bo = wc(), + UAe = I6(); + function RU(e, t) { + if (!e) throw new MAe.AssertionFailedError(t ?? 'Assertion condition was false'); + } + gt.assert = RU; + function ea(e, t) { + RU(e != null, t ?? 'Value is not defined'); + } + gt.assertNonNull = ea; + function $Ae(e, t) { + ea((0, bo.asString)(e), t ?? 'Value is not a string'); + } + gt.assertString = $Ae; + function BAe(e, t) { + ea((0, bo.asNumber)(e), t ?? 'Value is not a number'); + } + gt.assertNumber = BAe; + function VAe(e, t) { + ea((0, bo.asBoolean)(e), t ?? 'Value is not a boolean'); + } + gt.assertBoolean = VAe; + function zAe(e, t) { + ea((0, bo.asObject)(e), t ?? 'Value is not an object'); + } + gt.assertObject = zAe; + function HAe(e, t) { + ea((0, bo.asPlainObject)(e), t ?? 'Value is not a plain object'); + } + gt.assertPlainObject = HAe; + function GAe(e, t) { + ea((0, bo.asDictionary)(e), t ?? 'Value is not a dictionary object'); + } + gt.assertDictionary = GAe; + function WAe(e, t, r) { + ea((0, bo.asInstance)(e, t), r ?? `Value is not an instance of ${t.name}`); + } + gt.assertInstance = WAe; + function KAe(e, t) { + ea((0, bo.asArray)(e), t ?? 'Value is not an array'); + } + gt.assertArray = KAe; + function XAe(e, t) { + ea((0, bo.asFunction)(e), t ?? 'Value is not a function'); + } + gt.assertFunction = XAe; + function JAe(e, t) { + ea((0, UAe.toAnyJson)(e), t ?? 'Value is not a JSON-compatible value type'); + } + gt.assertAnyJson = JAe; + function YAe(e, t) { + ea((0, bo.asJsonMap)(e), t ?? 'Value is not a JsonMap'); + } + gt.assertJsonMap = YAe; + function QAe(e, t) { + ea((0, bo.asJsonArray)(e), t ?? 'Value is not a JsonArray'); + } + gt.assertJsonArray = QAe; +}); +var sE = d((Ru) => { + 'use strict'; + Object.defineProperty(Ru, '__esModule', { value: !0 }); + Ru.coerceJsonArray = Ru.coerceJsonMap = Ru.coerceAnyJson = void 0; + var DU = wc(), + ZAe = $1(); + function oE(e, t) { + return (0, ZAe.isAnyJson)(e) ? e : t; + } + Ru.coerceAnyJson = oE; + function eIe(e, t) { + return (0, DU.asJsonMap)(oE(e)) ?? t; + } + Ru.coerceJsonMap = eIe; + function tIe(e, t) { + return (0, DU.asJsonArray)(oE(e)) ?? t; + } + Ru.coerceJsonArray = tIe; +}); +var NU = d((St) => { + 'use strict'; + Object.defineProperty(St, '__esModule', { value: !0 }); + St.ensureJsonArray = + St.ensureJsonMap = + St.ensureAnyJson = + St.ensureFunction = + St.ensureArray = + St.ensureInstance = + St.ensureDictionary = + St.ensurePlainObject = + St.ensureObject = + St.ensureBoolean = + St.ensureNumber = + St.ensureString = + St.ensure = + void 0; + var rIe = A6(), + _o = wc(), + iIe = I6(); + function ta(e, t) { + if (e == null) throw new rIe.UnexpectedValueTypeError(t ?? 'Value is not defined'); + return e; + } + St.ensure = ta; + function nIe(e, t) { + return ta((0, _o.asString)(e), t ?? 'Value is not a string'); + } + St.ensureString = nIe; + function aIe(e, t) { + return ta((0, _o.asNumber)(e), t ?? 'Value is not a number'); + } + St.ensureNumber = aIe; + function oIe(e, t) { + return ta((0, _o.asBoolean)(e), t ?? 'Value is not a boolean'); + } + St.ensureBoolean = oIe; + function sIe(e, t) { + return ta((0, _o.asObject)(e), t ?? 'Value is not an object'); + } + St.ensureObject = sIe; + function lIe(e, t) { + return ta((0, _o.asPlainObject)(e), t ?? 'Value is not a plain object'); + } + St.ensurePlainObject = lIe; + function uIe(e, t) { + return ta((0, _o.asDictionary)(e), t ?? 'Value is not a dictionary object'); + } + St.ensureDictionary = uIe; + function pIe(e, t, r) { + return ta((0, _o.asInstance)(e, t), r ?? `Value is not an instance of ${t.name}`); + } + St.ensureInstance = pIe; + function cIe(e, t) { + return ta((0, _o.asArray)(e), t ?? 'Value is not an array'); + } + St.ensureArray = cIe; + function dIe(e, t) { + return ta((0, _o.asFunction)(e), t ?? 'Value is not a function'); + } + St.ensureFunction = dIe; + function fIe(e, t) { + return ta((0, iIe.toAnyJson)(e), t ?? 'Value is not a JSON-compatible value type'); + } + St.ensureAnyJson = fIe; + function mIe(e, t) { + return ta((0, _o.asJsonMap)(e), t ?? 'Value is not a JsonMap'); + } + St.ensureJsonMap = mIe; + function hIe(e, t) { + return ta((0, _o.asJsonArray)(e), t ?? 'Value is not a JsonArray'); + } + St.ensureJsonArray = hIe; +}); +var uE = d((Et) => { + 'use strict'; + Object.defineProperty(Et, '__esModule', { value: !0 }); + Et.hasJsonArray = + Et.hasJsonMap = + Et.hasAnyJson = + Et.hasFunction = + Et.hasArray = + Et.hasInstance = + Et.hasDictionary = + Et.hasPlainObject = + Et.hasObject = + Et.hasBoolean = + Et.hasNumber = + Et.hasString = + Et.has = + void 0; + var ra = $1(); + function wo(e, t) { + return (0, ra.isObject)(e) && ((0, ra.isArray)(t) ? t.every((r) => r in e) : t in e); + } + Et.has = wo; + function gIe(e, t) { + return wo(e, t) && (0, ra.isString)(e[t]); + } + Et.hasString = gIe; + function vIe(e, t) { + return wo(e, t) && (0, ra.isNumber)(e[t]); + } + Et.hasNumber = vIe; + function yIe(e, t) { + return wo(e, t) && (0, ra.isBoolean)(e[t]); + } + Et.hasBoolean = yIe; + function bIe(e, t) { + return wo(e, t) && (0, ra.isObject)(e[t]); + } + Et.hasObject = bIe; + function _Ie(e, t) { + return wo(e, t) && (0, ra.isPlainObject)(e[t]); + } + Et.hasPlainObject = _Ie; + function wIe(e, t) { + return wo(e, t) && (0, ra.isDictionary)(e[t]); + } + Et.hasDictionary = wIe; + function SIe(e, t, r) { + return wo(e, t) && e[t] instanceof r; + } + Et.hasInstance = SIe; + function EIe(e, t) { + return wo(e, t) && (0, ra.isArray)(e[t]); + } + Et.hasArray = EIe; + function xIe(e, t) { + return wo(e, t) && (0, ra.isFunction)(e[t]); + } + Et.hasFunction = xIe; + function lE(e, t) { + return wo(e, t) && (0, ra.isAnyJson)(e[t]); + } + Et.hasAnyJson = lE; + function OIe(e, t) { + return lE(e, t) && (0, ra.isJsonMap)(e[t]); + } + Et.hasJsonMap = OIe; + function TIe(e, t) { + return lE(e, t) && (0, ra.isJsonArray)(e[t]); + } + Et.hasJsonArray = TIe; +}); +var qU = d((P6) => { + 'use strict'; + Object.defineProperty(P6, '__esModule', { value: !0 }); + P6.valueOrDefault = void 0; + function CIe(e, t) { + return e != null || t === void 0 ? e : t; + } + P6.valueOrDefault = CIe; +}); +var FU = d((xt) => { + 'use strict'; + Object.defineProperty(xt, '__esModule', { value: !0 }); + xt.getJsonArray = + xt.getJsonMap = + xt.getAnyJson = + xt.getFunction = + xt.getArray = + xt.getInstance = + xt.getDictionary = + xt.getPlainObject = + xt.getObject = + xt.getBoolean = + xt.getNumber = + xt.getString = + xt.get = + void 0; + var So = wc(), + kIe = sE(), + AIe = uE(), + ia = qU(); + function Eo(e, t, r) { + return (0, ia.valueOrDefault)( + t + .split(/['"]/) + .reduce((n, a, o) => (o % 2 === 1 ? [...n, a] : [...n, ...a.split(/[.[\]]/)]), []) + .filter((n) => !!n) + .reduce((n, a) => ((0, AIe.has)(n, a) ? n[a] : void 0), e), + r + ); + } + xt.get = Eo; + function IIe(e, t, r) { + return (0, ia.valueOrDefault)((0, So.asString)(Eo(e, t)), r); + } + xt.getString = IIe; + function PIe(e, t, r) { + return (0, ia.valueOrDefault)((0, So.asNumber)(Eo(e, t)), r); + } + xt.getNumber = PIe; + function RIe(e, t, r) { + return (0, ia.valueOrDefault)((0, So.asBoolean)(Eo(e, t)), r); + } + xt.getBoolean = RIe; + function jIe(e, t, r) { + return (0, ia.valueOrDefault)((0, So.asObject)(Eo(e, t)), r); + } + xt.getObject = jIe; + function DIe(e, t, r) { + return (0, ia.valueOrDefault)((0, So.asPlainObject)(Eo(e, t)), r); + } + xt.getPlainObject = DIe; + function NIe(e, t, r) { + return (0, ia.valueOrDefault)((0, So.asDictionary)(Eo(e, t)), r); + } + xt.getDictionary = NIe; + function qIe(e, t, r, n) { + return (0, ia.valueOrDefault)((0, So.asInstance)(Eo(e, t), r), n); + } + xt.getInstance = qIe; + function FIe(e, t, r) { + return (0, ia.valueOrDefault)((0, So.asArray)(Eo(e, t)), r); + } + xt.getArray = FIe; + function LIe(e, t, r) { + return (0, ia.valueOrDefault)((0, So.asFunction)(Eo(e, t)), r); + } + xt.getFunction = LIe; + function pE(e, t, r) { + return (0, ia.valueOrDefault)((0, kIe.coerceAnyJson)(Eo(e, t)), r); + } + xt.getAnyJson = pE; + function MIe(e, t, r) { + return (0, ia.valueOrDefault)((0, So.asJsonMap)(pE(e, t)), r); + } + xt.getJsonMap = MIe; + function UIe(e, t, r) { + return (0, ia.valueOrDefault)((0, So.asJsonArray)(pE(e, t)), r); + } + xt.getJsonArray = UIe; +}); +var MU = d((Cn) => { + 'use strict'; + Object.defineProperty(Cn, '__esModule', { value: !0 }); + Cn.definiteValuesOf = Cn.definiteKeysOf = Cn.definiteEntriesOf = Cn.valuesOf = Cn.entriesOf = Cn.keysOf = void 0; + function $Ie(e) { + return Object.keys(e ?? {}); + } + Cn.keysOf = $Ie; + function LU(e) { + return Object.entries(e ?? {}); + } + Cn.entriesOf = LU; + function BIe(e) { + return Object.values(e ?? {}); + } + Cn.valuesOf = BIe; + function cE(e) { + return LU(e).filter((t) => t[1] != null); + } + Cn.definiteEntriesOf = cE; + function VIe(e) { + return cE(e).map((t) => t[0]); + } + Cn.definiteKeysOf = VIe; + function zIe(e) { + return cE(e).map((t) => t[1]); + } + Cn.definiteValuesOf = zIe; +}); +var UU = d((sn) => { + 'use strict'; + var HIe = + (sn && sn.__createBinding) || + (Object.create + ? function (e, t, r, n) { + n === void 0 && (n = r); + var a = Object.getOwnPropertyDescriptor(t, r); + (!a || ('get' in a ? !t.__esModule : a.writable || a.configurable)) && + (a = { + enumerable: !0, + get: function () { + return t[r]; + }, + }), + Object.defineProperty(e, n, a); + } + : function (e, t, r, n) { + n === void 0 && (n = r), (e[n] = t[r]); + }), + bl = + (sn && sn.__exportStar) || + function (e, t) { + for (var r in e) r !== 'default' && !Object.prototype.hasOwnProperty.call(t, r) && HIe(t, e, r); + }; + Object.defineProperty(sn, '__esModule', { value: !0 }); + bl(wc(), sn); + bl(jU(), sn); + bl(sE(), sn); + bl(NU(), sn); + bl(FU(), sn); + bl(uE(), sn); + bl($1(), sn); + bl(MU(), sn); + bl(I6(), sn); +}); +var BU = d(($U) => { + 'use strict'; + Object.defineProperty($U, '__esModule', { value: !0 }); +}); +var zU = d((VU) => { + 'use strict'; + Object.defineProperty(VU, '__esModule', { value: !0 }); +}); +var GU = d((HU) => { + 'use strict'; + Object.defineProperty(HU, '__esModule', { value: !0 }); +}); +var KU = d((WU) => { + 'use strict'; + Object.defineProperty(WU, '__esModule', { value: !0 }); +}); +var JU = d((XU) => { + 'use strict'; + Object.defineProperty(XU, '__esModule', { value: !0 }); +}); +var QU = d((YU) => { + 'use strict'; + Object.defineProperty(YU, '__esModule', { value: !0 }); +}); +var e$ = d((ZU) => { + 'use strict'; + Object.defineProperty(ZU, '__esModule', { value: !0 }); +}); +var t$ = d((na) => { + 'use strict'; + var GIe = + (na && na.__createBinding) || + (Object.create + ? function (e, t, r, n) { + n === void 0 && (n = r); + var a = Object.getOwnPropertyDescriptor(t, r); + (!a || ('get' in a ? !t.__esModule : a.writable || a.configurable)) && + (a = { + enumerable: !0, + get: function () { + return t[r]; + }, + }), + Object.defineProperty(e, n, a); + } + : function (e, t, r, n) { + n === void 0 && (n = r), (e[n] = t[r]); + }), + Sc = + (na && na.__exportStar) || + function (e, t) { + for (var r in e) r !== 'default' && !Object.prototype.hasOwnProperty.call(t, r) && GIe(t, e, r); + }; + Object.defineProperty(na, '__esModule', { value: !0 }); + Sc(BU(), na); + Sc(zU(), na); + Sc(GU(), na); + Sc(KU(), na); + Sc(JU(), na); + Sc(QU(), na); + Sc(e$(), na); +}); +var Be = d((ju) => { + 'use strict'; + var WIe = + (ju && ju.__createBinding) || + (Object.create + ? function (e, t, r, n) { + n === void 0 && (n = r); + var a = Object.getOwnPropertyDescriptor(t, r); + (!a || ('get' in a ? !t.__esModule : a.writable || a.configurable)) && + (a = { + enumerable: !0, + get: function () { + return t[r]; + }, + }), + Object.defineProperty(e, n, a); + } + : function (e, t, r, n) { + n === void 0 && (n = r), (e[n] = t[r]); + }), + r$ = + (ju && ju.__exportStar) || + function (e, t) { + for (var r in e) r !== 'default' && !Object.prototype.hasOwnProperty.call(t, r) && WIe(t, e, r); + }; + Object.defineProperty(ju, '__esModule', { value: !0 }); + r$(UU(), ju); + r$(t$(), ju); +}); +var i$ = d((Kf) => { + 'use strict'; + Object.defineProperty(Kf, '__esModule', { value: !0 }); + Kf.AsyncOptionalCreatable = Kf.AsyncCreatable = void 0; + var dE = class { + constructor(t) {} + static async create(t) { + let r = new this(t); + return await r.init(), r; + } + }; + Kf.AsyncCreatable = dE; + var fE = class { + constructor(t) {} + static async create(t) { + let r = new this(t); + return await r.init(), r; + } + }; + Kf.AsyncOptionalCreatable = fE; +}); +var mE = d((Du) => { + 'use strict'; + Object.defineProperty(Du, '__esModule', { value: !0 }); + Du.sleep = Du.Duration = void 0; + var Aa = class e { + constructor(t, r = e.Unit.MINUTES) { + (this.quantity = t), (this.unit = r); + } + get minutes() { + switch (this.unit) { + case e.Unit.MILLISECONDS: + return Math.round(this.quantity / e.MILLIS_IN_SECONDS / e.SECONDS_IN_MINUTE); + case e.Unit.SECONDS: + return Math.round(this.quantity / e.SECONDS_IN_MINUTE); + case e.Unit.MINUTES: + return this.quantity; + case e.Unit.HOURS: + return this.quantity * e.MINUTES_IN_HOUR; + case e.Unit.DAYS: + return this.quantity * e.MINUTES_IN_HOUR * e.HOURS_IN_DAY; + case e.Unit.WEEKS: + return this.quantity * e.MINUTES_IN_HOUR * e.HOURS_IN_DAY * e.DAYS_IN_WEEK; + } + } + get hours() { + switch (this.unit) { + case e.Unit.MILLISECONDS: + return Math.round(this.quantity / e.MILLIS_IN_SECONDS / e.SECONDS_IN_MINUTE / e.MINUTES_IN_HOUR); + case e.Unit.SECONDS: + return Math.round(this.quantity / e.SECONDS_IN_MINUTE / e.MINUTES_IN_HOUR); + case e.Unit.MINUTES: + return Math.round(this.quantity / e.MINUTES_IN_HOUR); + case e.Unit.HOURS: + return this.quantity; + case e.Unit.DAYS: + return this.quantity * e.HOURS_IN_DAY; + case e.Unit.WEEKS: + return this.quantity * e.HOURS_IN_DAY * e.DAYS_IN_WEEK; + } + } + get milliseconds() { + switch (this.unit) { + case e.Unit.MILLISECONDS: + return this.quantity; + case e.Unit.SECONDS: + return this.quantity * e.MILLIS_IN_SECONDS; + case e.Unit.MINUTES: + return this.quantity * e.MILLIS_IN_SECONDS * e.SECONDS_IN_MINUTE; + case e.Unit.HOURS: + return this.quantity * e.MILLIS_IN_SECONDS * e.SECONDS_IN_MINUTE * e.MINUTES_IN_HOUR; + case e.Unit.DAYS: + return this.quantity * e.MILLIS_IN_SECONDS * e.SECONDS_IN_MINUTE * e.MINUTES_IN_HOUR * e.HOURS_IN_DAY; + case e.Unit.WEEKS: + return ( + this.quantity * + e.MILLIS_IN_SECONDS * + e.SECONDS_IN_MINUTE * + e.MINUTES_IN_HOUR * + e.HOURS_IN_DAY * + e.DAYS_IN_WEEK + ); + } + } + get seconds() { + switch (this.unit) { + case e.Unit.MILLISECONDS: + return Math.round(this.quantity / e.MILLIS_IN_SECONDS); + case e.Unit.SECONDS: + return this.quantity; + case e.Unit.MINUTES: + return this.quantity * e.SECONDS_IN_MINUTE; + case e.Unit.HOURS: + return this.quantity * e.SECONDS_IN_MINUTE * e.MINUTES_IN_HOUR; + case e.Unit.DAYS: + return this.quantity * e.SECONDS_IN_MINUTE * e.MINUTES_IN_HOUR * e.HOURS_IN_DAY; + case e.Unit.WEEKS: + return this.quantity * e.SECONDS_IN_MINUTE * e.MINUTES_IN_HOUR * e.HOURS_IN_DAY * e.DAYS_IN_WEEK; + } + } + get days() { + switch (this.unit) { + case e.Unit.MILLISECONDS: + return Math.round( + this.quantity / e.MILLIS_IN_SECONDS / e.SECONDS_IN_MINUTE / e.MINUTES_IN_HOUR / e.HOURS_IN_DAY + ); + case e.Unit.SECONDS: + return Math.round(this.quantity / e.SECONDS_IN_MINUTE / e.MINUTES_IN_HOUR / e.HOURS_IN_DAY); + case e.Unit.MINUTES: + return Math.round(this.quantity / e.MINUTES_IN_HOUR / e.HOURS_IN_DAY); + case e.Unit.HOURS: + return Math.round(this.quantity / e.HOURS_IN_DAY); + case e.Unit.DAYS: + return this.quantity; + case e.Unit.WEEKS: + return this.quantity * e.DAYS_IN_WEEK; + } + } + get weeks() { + switch (this.unit) { + case e.Unit.MILLISECONDS: + return Math.round( + this.quantity / + e.MILLIS_IN_SECONDS / + e.SECONDS_IN_MINUTE / + e.MINUTES_IN_HOUR / + e.HOURS_IN_DAY / + e.DAYS_IN_WEEK + ); + case e.Unit.SECONDS: + return Math.round(this.quantity / e.SECONDS_IN_MINUTE / e.MINUTES_IN_HOUR / e.HOURS_IN_DAY / e.DAYS_IN_WEEK); + case e.Unit.MINUTES: + return Math.round(this.quantity / e.MINUTES_IN_HOUR / e.HOURS_IN_DAY / e.DAYS_IN_WEEK); + case e.Unit.HOURS: + return Math.round(this.quantity / e.HOURS_IN_DAY / e.DAYS_IN_WEEK); + case e.Unit.DAYS: + return Math.round(this.quantity / e.DAYS_IN_WEEK); + case e.Unit.WEEKS: + return this.quantity; + } + } + static milliseconds(t) { + return new e(t, e.Unit.MILLISECONDS); + } + static seconds(t) { + return new e(t, e.Unit.SECONDS); + } + static minutes(t) { + return new e(t, e.Unit.MINUTES); + } + static hours(t) { + return new e(t, e.Unit.HOURS); + } + static days(t) { + return new e(t, e.Unit.DAYS); + } + static weeks(t) { + return new e(t, e.Unit.WEEKS); + } + toString() { + return this.pluralize(); + } + pluralize(t = this.quantity, r = this.unit) { + let n = e.Unit[r].toLowerCase(); + return t === 1 ? `${t} ${n.slice(0, n.length - 1)}` : `${t} ${n}`; + } + }; + Du.Duration = Aa; + Aa.MILLIS_IN_SECONDS = 1e3; + Aa.SECONDS_IN_MINUTE = 60; + Aa.MINUTES_IN_HOUR = 60; + Aa.HOURS_IN_DAY = 24; + Aa.DAYS_IN_WEEK = 7; + (function (e) { + let t; + (function (r) { + (r[(r.MINUTES = 0)] = 'MINUTES'), + (r[(r.MILLISECONDS = 1)] = 'MILLISECONDS'), + (r[(r.SECONDS = 2)] = 'SECONDS'), + (r[(r.HOURS = 3)] = 'HOURS'), + (r[(r.DAYS = 4)] = 'DAYS'), + (r[(r.WEEKS = 5)] = 'WEEKS'); + })((t = e.Unit || (e.Unit = {}))); + })((Aa = Du.Duration || (Du.Duration = {}))); + function KIe(e, t = Aa.Unit.MILLISECONDS) { + let r = e instanceof Aa ? e : new Aa(e, t), + n, + a, + o = () => { + n && (clearTimeout(n), (n = void 0), a()); + }, + s = new Promise((l) => { + (a = l), (n = setTimeout(o, r.milliseconds)); + }); + return Object.assign(s, { interrupt: o }); + } + Du.sleep = KIe; +}); +var R6 = d((Ia) => { + 'use strict'; + Object.defineProperty(Ia, '__esModule', { value: !0 }); + Ia.InvalidDefaultEnvValueError = + Ia.JsonDataFormatError = + Ia.JsonStringifyError = + Ia.JsonParseError = + Ia.NamedError = + void 0; + var Ec = class extends Error { + constructor(t, r, n) { + typeof r == 'string' ? (super(r), (this.cause = n)) : (super(), (this.cause = r)), (this.name = t); + } + get fullStack() { + let t = this.stack, + r = this.cause?.fullStack ?? this.cause?.stack; + return ( + r && + (t = `${ + t + ? t + + ` +` + : '' + }Caused by: ${r}`), + t + ); + } + }; + Ia.NamedError = Ec; + var hE = class e extends Ec { + constructor(t, r, n, a) { + super('JsonParseError', e.format(t, r, n, a), t), (this.path = r), (this.line = n), (this.errorPortion = a); + } + static create(t, r, n) { + let a = /position (\d+)/.exec(t.message); + if (!a) return new e(t, n); + let o = parseInt(a[1], 10), + s = 20, + l = Math.max(0, o - s), + u = Math.min(r.length, o + s), + p = r.slice(l, u), + c = r.slice(0, o).split(` +`).length; + return new e(t, n, c, p); + } + static format(t, r, n, a) { + return n == null + ? t.message || 'Unknown cause' + : `Parse error in file ${r ?? 'unknown'} on line ${n} +${a ?? t.message}`; + } + }; + Ia.JsonParseError = hE; + var gE = class extends Ec { + constructor(t) { + super('JsonStringifyError', t); + } + }; + Ia.JsonStringifyError = gE; + var vE = class extends Ec { + constructor(t) { + super('JsonDataFormatError', t); + } + }; + Ia.JsonDataFormatError = vE; + var yE = class extends Ec { + constructor(t) { + super('InvalidDefaultEnvValueError', t); + } + }; + Ia.InvalidDefaultEnvValueError = yE; +}); +var n$ = d((Xf, B1) => { + (function () { + function e(g, E, I) { + switch (I.length) { + case 0: + return g.call(E); + case 1: + return g.call(E, I[0]); + case 2: + return g.call(E, I[0], I[1]); + case 3: + return g.call(E, I[0], I[1], I[2]); + } + return g.apply(E, I); + } + function t(g, E, I, F) { + for (var B = -1, X = g == null ? 0 : g.length; ++B < X; ) { + var H = g[B]; + E(F, H, I(H), g); + } + return F; + } + function r(g, E) { + for (var I = -1, F = g == null ? 0 : g.length; ++I < F && E(g[I], I, g) !== !1; ); + } + function n(g, E) { + for (var I = -1, F = g == null ? 0 : g.length, B = 0, X = []; ++I < F; ) { + var H = g[I]; + E(H, I, g) && (X[B++] = H); + } + return X; + } + function a(g, E) { + for (var I = -1, F = g == null ? 0 : g.length, B = Array(F); ++I < F; ) B[I] = E(g[I], I, g); + return B; + } + function o(g, E) { + for (var I = -1, F = E.length, B = g.length; ++I < F; ) g[B + I] = E[I]; + return g; + } + function s(g, E) { + for (var I = -1, F = g == null ? 0 : g.length; ++I < F; ) if (E(g[I], I, g)) return !0; + return !1; + } + function l(g, E, I) { + var F; + return ( + I(g, function (B, X, H) { + if (E(B, X, H)) return (F = X), !1; + }), + F + ); + } + function u(g) { + return function (E) { + return E == null ? se : E[g]; + }; + } + function p(g, E) { + var I = g.length; + for (g.sort(E); I--; ) g[I] = g[I].c; + return g; + } + function c(g) { + return function (E) { + return g(E); + }; + } + function f(g, E) { + return a(E, function (I) { + return g[I]; + }); + } + function h(g) { + var E = -1, + I = Array(g.size); + return ( + g.forEach(function (F, B) { + I[++E] = [B, F]; + }), + I + ); + } + function m(g) { + var E = Object; + return function (I) { + return g(E(I)); + }; + } + function v(g) { + var E = -1, + I = Array(g.size); + return ( + g.forEach(function (F) { + I[++E] = F; + }), + I + ); + } + function y() {} + function S(g) { + var E = -1, + I = g == null ? 0 : g.length; + for (this.clear(); ++E < I; ) { + var F = g[E]; + this.set(F[0], F[1]); + } + } + function w(g) { + var E = -1, + I = g == null ? 0 : g.length; + for (this.clear(); ++E < I; ) { + var F = g[E]; + this.set(F[0], F[1]); + } + } + function O(g) { + var E = -1, + I = g == null ? 0 : g.length; + for (this.clear(); ++E < I; ) { + var F = g[E]; + this.set(F[0], F[1]); + } + } + function x(g) { + var E = -1, + I = g == null ? 0 : g.length; + for (this.__data__ = new O(); ++E < I; ) this.add(g[E]); + } + function _(g) { + this.size = (this.__data__ = new w(g)).size; + } + function b(g, E) { + var I = Vi(g), + F = !I && Hf(g), + B = !I && !F && Gf(g), + X = !I && !F && !B && S6(g); + if ((I = I || F || B || X)) { + for (var F = g.length, be = String, H = -1, re = Array(F); ++H < F; ) re[H] = be(H); + F = re; + } else F = []; + var de, + be = F.length; + for (de in g) + (!E && !Ti.call(g, de)) || + (I && + (de == 'length' || + (B && (de == 'offset' || de == 'parent')) || + (X && (de == 'buffer' || de == 'byteLength' || de == 'byteOffset')) || + Mf(de, be))) || + F.push(de); + return F; + } + function T(g, E, I) { + ((I === se || hl(g[E], I)) && (I !== se || E in g)) || U(g, E, I); + } + function R(g, E, I) { + var F = g[E]; + (Ti.call(g, E) && hl(F, I) && (I !== se || E in g)) || U(g, E, I); + } + function C(g, E) { + for (var I = g.length; I--; ) if (hl(g[I][0], E)) return I; + return -1; + } + function N(g, E, I, F) { + return ( + SU(g, function (B, X, H) { + E(F, B, I(B), H); + }), + F + ); + } + function A(g, E) { + return g && ns(E, ct(E), g); + } + function j(g, E) { + return g && ns(E, $e(E), g); + } + function U(g, E, I) { + E == '__proto__' && _6 ? _6(g, E, { configurable: !0, enumerable: !0, value: I, writable: !0 }) : (g[E] = I); + } + function z(g, E, I, F, B, X) { + var H, + re = 1 & E, + Re = 2 & E, + de = 4 & E; + if ((I && (H = B ? I(g, F, B, X) : I(g)), H !== se)) return H; + if (!$(g)) return g; + if ((F = Vi(g))) { + if (((H = m6(g)), !re)) return cc(g, H); + } else { + var be = vo(g), + Je = be == '[object Function]' || be == '[object GeneratorFunction]'; + if (Gf(g)) return pl(g, re); + if (be == '[object Object]' || be == '[object Arguments]' || (Je && !B)) { + if (((H = Re || Je ? {} : Jn(g)), !re)) return Re ? R7(g, j(H, g)) : dc(g, A(H, g)); + } else { + if (!st[be]) return B ? g : {}; + H = N7(g, be, re); + } + } + if ((X || (X = new _()), (B = X.get(g)))) return B; + if ((X.set(g, H), CU(g))) + return ( + g.forEach(function (Xt) { + H.add(z(Xt, E, I, Xt, g, X)); + }), + H + ); + if (TU(g)) + return ( + g.forEach(function (Xt, Fr) { + H.set(Fr, z(Xt, E, I, Fr, g, X)); + }), + H + ); + var Re = de ? (Re ? I1 : Lf) : Re ? $e : ct, + Mt = F ? se : Re(g); + return ( + r(Mt || g, function (Xt, Fr) { + Mt && ((Fr = Xt), (Xt = g[Fr])), R(H, Fr, z(Xt, E, I, Fr, g, X)); + }), + H + ); + } + function K(g, E, I) { + for (var F = -1, B = g.length; ++F < B; ) { + var X = g[F], + H = E(X); + if (H != null && (re === se ? H === H && !Te(H) : I(H, re))) + var re = H, + de = X; + } + return de; + } + function te(g, E, I, F, B) { + var X = -1, + H = g.length; + for (I || (I = q7), B || (B = []); ++X < H; ) { + var re = g[X]; + 0 < E && I(re) ? (1 < E ? te(re, E - 1, I, F, B) : o(B, re)) : F || (B[B.length] = re); + } + return B; + } + function J(g, E) { + return g && EU(g, E, ct); + } + function ie(g, E) { + E = Ta(E, g); + for (var I = 0, F = E.length; g != null && I < F; ) g = g[fl(E[I++])]; + return I && I == F ? g : se; + } + function oe(g, E, I) { + return (E = E(g)), Vi(g) ? E : o(E, I(g)); + } + function he(g) { + if (g == null) g = g === se ? '[object Undefined]' : '[object Null]'; + else if (bc && bc in Object(g)) { + var E = Ti.call(g, bc), + I = g[bc]; + try { + g[bc] = se; + var F = !0; + } catch {} + var B = $7.call(g); + F && (E ? (g[bc] = I) : delete g[bc]), (g = B); + } else g = $7.call(g); + return g; + } + function hr(g, E) { + return g > E; + } + function xr(g) { + return V(g) && he(g) == '[object Arguments]'; + } + function Mi(g, E, I, F, B) { + if (g === E) E = !0; + else if (g == null || E == null || (!V(g) && !V(E))) E = g !== g && E !== E; + else + e: { + var X = Vi(g), + be = Vi(E), + H = X ? '[object Array]' : vo(g), + re = be ? '[object Array]' : vo(E), + H = H == '[object Arguments]' ? '[object Object]' : H, + re = re == '[object Arguments]' ? '[object Object]' : re, + de = H == '[object Object]', + be = re == '[object Object]'; + if ((re = H == re) && Gf(g)) { + if (!Gf(E)) { + E = !1; + break e; + } + (X = !0), (de = !1); + } + if (re && !de) B || (B = new _()), (E = X || S6(g) ? Ca(g, E, I, F, Mi, B) : fc(g, E, H, I, F, Mi, B)); + else { + if (!(1 & I) && ((X = de && Ti.call(g, '__wrapped__')), (H = be && Ti.call(E, '__wrapped__')), X || H)) { + (g = X ? g.value() : g), (E = H ? E.value() : E), B || (B = new _()), (E = Mi(g, E, I, F, B)); + break e; + } + if (re) + t: if ( + (B || (B = new _()), (X = 1 & I), (H = Lf(g)), (be = H.length), (re = Lf(E).length), be == re || X) + ) { + for (de = be; de--; ) { + var Je = H[de]; + if (!(X ? Je in E : Ti.call(E, Je))) { + E = !1; + break t; + } + } + if ((re = B.get(g)) && B.get(E)) E = re == E; + else { + (re = !0), B.set(g, E), B.set(E, g); + for (var Re = X; ++de < be; ) { + var Je = H[de], + Mt = g[Je], + Xt = E[Je]; + if (F) var Fr = X ? F(Xt, Mt, Je, E, g, B) : F(Mt, Xt, Je, g, E, B); + if (Fr === se ? Mt !== Xt && !Mi(Mt, Xt, I, F, B) : !Fr) { + re = !1; + break; + } + Re || (Re = Je == 'constructor'); + } + re && + !Re && + ((I = g.constructor), + (F = E.constructor), + I != F && + 'constructor' in g && + 'constructor' in E && + !(typeof I == 'function' && I instanceof I && typeof F == 'function' && F instanceof F) && + (re = !1)), + B.delete(g), + B.delete(E), + (E = re); + } + } else E = !1; + else E = !1; + } + } + return E; + } + function Oa(g) { + return V(g) && vo(g) == '[object Map]'; + } + function Se(g, E) { + var I = E.length, + F = I; + if (g == null) return !F; + for (g = Object(g); I--; ) { + var B = E[I]; + if (B[2] ? B[1] !== g[B[0]] : !(B[0] in g)) return !1; + } + for (; ++I < F; ) { + var B = E[I], + X = B[0], + H = g[X], + re = B[1]; + if (B[2]) { + if (H === se && !(X in g)) return !1; + } else if (((B = new _()), se === void 0 ? !Mi(re, H, 3, void 0, B) : 1)) return !1; + } + return !0; + } + function Or(g) { + return V(g) && vo(g) == '[object Set]'; + } + function P(g) { + return V(g) && L(g.length) && !!ft[he(g)]; + } + function k(g) { + return typeof g == 'function' + ? g + : g == null + ? ci + : typeof g == 'object' + ? Vi(g) + ? ht(g[0], g[1]) + : Ae(g) + : $i(g); + } + function G(g, E) { + return g < E; + } + function M(g, E) { + var I = -1, + F = co(g) ? Array(g.length) : []; + return ( + SU(g, function (B, X, H) { + F[++I] = E(B, X, H); + }), + F + ); + } + function Ae(g) { + var E = D7(g); + return E.length == 1 && E[0][2] + ? dl(E[0][0], E[0][1]) + : function (I) { + return I === g || Se(I, E); + }; + } + function ht(g, E) { + return P1(g) && E === E && !$(E) + ? dl(fl(g), E) + : function (I) { + var F = At(I, g); + return F === se && F === E ? We(I, g) : Mi(E, F, 3); + }; + } + function wt(g, E, I, F, B) { + g !== E && + EU( + E, + function (X, H) { + if ($(X)) { + B || (B = new _()); + var re = B, + de = H == '__proto__' ? se : g[H], + be = H == '__proto__' ? se : E[H], + Je = re.get(be); + if (Je) T(g, H, Je); + else { + var Je = F ? F(de, be, H + '', g, E, re) : se, + Re = Je === se; + if (Re) { + var Mt = Vi(be), + Xt = !Mt && Gf(be), + Fr = !Mt && !Xt && S6(be), + Je = be; + Mt || Xt || Fr + ? Vi(de) + ? (Je = de) + : q(de) + ? (Je = cc(de)) + : Xt + ? ((Re = !1), (Je = pl(be, !0))) + : Fr + ? ((Re = !1), (Je = Zr(be, !0))) + : (Je = []) + : ae(be) || Hf(be) + ? ((Je = de), Hf(de) ? (Je = Dt(de)) : (!$(de) || (I && D(de))) && (Je = Jn(be))) + : (Re = !1); + } + Re && (re.set(be, Je), wt(Je, be, I, F, re), re.delete(be)), T(g, H, Je); + } + } else + (re = F ? F(H == '__proto__' ? se : g[H], X, H + '', g, E, B) : se), re === se && (re = X), T(g, H, re); + }, + $e + ); + } + function nr(g, E) { + var I = [], + F = -1; + return ( + (E = a(E.length ? E : [ci], c(ka()))), + p( + M(g, function (B) { + return { + a: a(E, function (X) { + return X(B); + }), + b: ++F, + c: B, + }; + }), + function (B, X) { + var H; + e: { + H = -1; + for (var re = B.a, de = X.a, be = re.length, Je = I.length; ++H < be; ) { + var Re; + t: { + Re = re[H]; + var Mt = de[H]; + if (Re !== Mt) { + var Xt = Re !== se, + Fr = Re === null, + _c = Re === Re, + E6 = Te(Re), + J7 = Mt !== se, + Y7 = Mt === null, + x6 = Mt === Mt, + O6 = Te(Mt); + if ( + (!Y7 && !O6 && !E6 && Re > Mt) || + (E6 && J7 && x6 && !Y7 && !O6) || + (Fr && J7 && x6) || + (!Xt && x6) || + !_c + ) { + Re = 1; + break t; + } + if ( + (!Fr && !E6 && !O6 && Re < Mt) || + (O6 && Xt && _c && !Fr && !E6) || + (Y7 && Xt && _c) || + (!J7 && _c) || + !x6 + ) { + Re = -1; + break t; + } + } + Re = 0; + } + if (Re) { + H = H >= Je ? Re : Re * (I[H] == 'desc' ? -1 : 1); + break e; + } + } + H = B.b - X.b; + } + return H; + } + ) + ); + } + function kt(g) { + return function (E) { + return ie(E, g); + }; + } + function Oi(g) { + return OU(h6(g, void 0, ci), g + ''); + } + function bt(g) { + if (typeof g == 'string') return g; + if (Vi(g)) return a(g, bt) + ''; + if (Te(g)) return wU ? wU.call(g) : ''; + var E = g + ''; + return E == '0' && 1 / g == -On ? '-0' : E; + } + function Yr(g, E) { + E = Ta(E, g); + var I; + if (2 > E.length) I = g; + else { + I = E; + var F = 0, + B = -1, + X = -1, + H = I.length; + for ( + 0 > F && (F = -F > H ? 0 : H + F), + B = B > H ? H : B, + 0 > B && (B += H), + H = F > B ? 0 : (B - F) >>> 0, + F >>>= 0, + B = Array(H); + ++X < H; + + ) + B[X] = I[X + F]; + I = ie(g, B); + } + (g = I), g == null || delete g[fl(j1(E))]; + } + function Ta(g, E) { + return Vi(g) ? g : P1(g, E) ? [g] : oAe(ar(g)); + } + function pl(g, E) { + if (E) return g.slice(); + var I = g.length, + I = vU ? vU(I) : new g.constructor(I); + return g.copy(I), I; + } + function Qr(g) { + var E = new g.constructor(g.byteLength); + return new F1(E).set(new F1(g)), E; + } + function Zr(g, E) { + return new g.constructor(E ? Qr(g.buffer) : g.buffer, g.byteOffset, g.length); + } + function cc(g, E) { + var I = -1, + F = g.length; + for (E || (E = Array(F)); ++I < F; ) E[I] = g[I]; + return E; + } + function ns(g, E, I) { + var F = !I; + I || (I = {}); + for (var B = -1, X = E.length; ++B < X; ) { + var H = E[B], + re = se; + re === se && (re = g[H]), F ? U(I, H, re) : R(I, H, re); + } + return I; + } + function dc(g, E) { + return ns(g, X7(g), E); + } + function R7(g, E) { + return ns(g, xU(g), E); + } + function j7(g) { + return ae(g) ? se : g; + } + function Ca(g, E, I, F, B, X) { + var H = 1 & I, + re = g.length, + de = E.length; + if (re != de && !(H && de > re)) return !1; + if ((de = X.get(g)) && X.get(E)) return de == E; + var de = -1, + be = !0, + Je = 2 & I ? new x() : se; + for (X.set(g, E), X.set(E, g); ++de < re; ) { + var Re = g[de], + Mt = E[de]; + if (F) var Xt = H ? F(Mt, Re, de, E, g, X) : F(Re, Mt, de, g, E, X); + if (Xt !== se) { + if (Xt) continue; + be = !1; + break; + } + if (Je) { + if ( + !s(E, function (Fr, _c) { + if (!Je.has(_c) && (Re === Fr || B(Re, Fr, I, F, X))) return Je.push(_c); + }) + ) { + be = !1; + break; + } + } else if (Re !== Mt && !B(Re, Mt, I, F, X)) { + be = !1; + break; + } + } + return X.delete(g), X.delete(E), be; + } + function fc(g, E, I, F, B, X, H) { + switch (I) { + case '[object DataView]': + if (g.byteLength != E.byteLength || g.byteOffset != E.byteOffset) break; + (g = g.buffer), (E = E.buffer); + case '[object ArrayBuffer]': + if (g.byteLength != E.byteLength || !X(new F1(g), new F1(E))) break; + return !0; + case '[object Boolean]': + case '[object Date]': + case '[object Number]': + return hl(+g, +E); + case '[object Error]': + return g.name == E.name && g.message == E.message; + case '[object RegExp]': + case '[object String]': + return g == E + ''; + case '[object Map]': + var re = h; + case '[object Set]': + if ((re || (re = v), g.size != E.size && !(1 & F))) break; + return (I = H.get(g)) ? I == E : ((F |= 2), H.set(g, E), (E = Ca(re(g), re(E), F, B, X, H)), H.delete(g), E); + case '[object Symbol]': + if (U1) return U1.call(g) == U1.call(E); + } + return !1; + } + function Lf(g) { + return oe(g, ct, X7); + } + function I1(g) { + return oe(g, $e, xU); + } + function ka() { + var g = y.iteratee || dt, + g = g === dt ? k : g; + return arguments.length ? g(arguments[0], arguments[1]) : g; + } + function mc(g, E) { + var I = g.__data__, + F = typeof E; + return (F == 'string' || F == 'number' || F == 'symbol' || F == 'boolean' ? E !== '__proto__' : E === null) + ? I[typeof E == 'string' ? 'string' : 'hash'] + : I.map; + } + function D7(g) { + for (var E = ct(g), I = E.length; I--; ) { + var F = E[I], + B = g[F]; + E[I] = [F, B, B === B && !$(B)]; + } + return E; + } + function cl(g, E) { + var I = g == null ? se : g[E]; + return !(!$(I) || (U7 && U7 in I)) && (D(I) ? gU : F7).test(ml(I)) ? I : se; + } + function m6(g) { + var E = g.length, + I = new g.constructor(E); + return E && typeof g[0] == 'string' && Ti.call(g, 'index') && ((I.index = g.index), (I.input = g.input)), I; + } + function Jn(g) { + return typeof g.constructor != 'function' || R1(g) ? {} : nAe(B7(g)); + } + function N7(g, E, I) { + var F = g.constructor; + switch (E) { + case '[object ArrayBuffer]': + return Qr(g); + case '[object Boolean]': + case '[object Date]': + return new F(+g); + case '[object DataView]': + return (E = I ? Qr(g.buffer) : g.buffer), new g.constructor(E, g.byteOffset, g.byteLength); + case '[object Float32Array]': + case '[object Float64Array]': + case '[object Int8Array]': + case '[object Int16Array]': + case '[object Int32Array]': + case '[object Uint8Array]': + case '[object Uint8ClampedArray]': + case '[object Uint16Array]': + case '[object Uint32Array]': + return Zr(g, I); + case '[object Map]': + return new F(); + case '[object Number]': + case '[object String]': + return new F(g); + case '[object RegExp]': + return (E = new g.constructor(g.source, ku.exec(g))), (E.lastIndex = g.lastIndex), E; + case '[object Set]': + return new F(); + case '[object Symbol]': + return U1 ? Object(U1.call(g)) : {}; + } + } + function q7(g) { + return Vi(g) || Hf(g) || !!(_U && g && g[_U]); + } + function Mf(g, E) { + var I = typeof g; + return ( + (E = E ?? 9007199254740991), + !!E && (I == 'number' || (I != 'symbol' && v6.test(g))) && -1 < g && g % 1 == 0 && g < E + ); + } + function Z(g, E, I) { + if (!$(I)) return !1; + var F = typeof E; + return !!(F == 'number' ? co(I) && Mf(E, I.length) : F == 'string' && E in I) && hl(I[E], g); + } + function P1(g, E) { + if (Vi(g)) return !1; + var I = typeof g; + return ( + !(I != 'number' && I != 'symbol' && I != 'boolean' && g != null && !Te(g)) || + Bf.test(g) || + !$f.test(g) || + (E != null && g in Object(E)) + ); + } + function R1(g) { + var E = g && g.constructor; + return g === ((typeof E == 'function' && E.prototype) || Iu); + } + function dl(g, E) { + return function (I) { + return I != null && I[g] === E && (E !== se || g in Object(I)); + }; + } + function h6(g, E, I) { + return ( + (E = z7(E === se ? g.length - 1 : E, 0)), + function () { + for (var F = arguments, B = -1, X = z7(F.length - E, 0), H = Array(X); ++B < X; ) H[B] = F[E + B]; + for (B = -1, X = Array(E + 1); ++B < E; ) X[B] = F[B]; + return (X[E] = I(H)), e(g, this, X); + } + ); + } + function fl(g) { + if (typeof g == 'string' || Te(g)) return g; + var E = g + ''; + return E == '0' && 1 / g == -On ? '-0' : E; + } + function ml(g) { + if (g != null) { + try { + return zf.call(g); + } catch {} + return g + ''; + } + return ''; + } + function Uf(g) { + return g != null && g.length ? te(g, 1) : []; + } + function j1(g) { + var E = g == null ? 0 : g.length; + return E ? g[E - 1] : se; + } + function g6(g, E) { + var I; + if (typeof E != 'function') throw new TypeError('Expected a function'); + return ( + (g = Kt(g)), + function () { + return 0 < --g && (I = E.apply(this, arguments)), 1 >= g && (E = se), I; + } + ); + } + function hc(g, E) { + function I() { + var F = arguments, + B = E ? E.apply(this, F) : F[0], + X = I.cache; + return X.has(B) ? X.get(B) : ((F = g.apply(this, F)), (I.cache = X.set(B, F) || X), F); + } + if (typeof g != 'function' || (E != null && typeof E != 'function')) throw new TypeError('Expected a function'); + return (I.cache = new (hc.Cache || O)()), I; + } + function hl(g, E) { + return g === E || (g !== g && E !== E); + } + function co(g) { + return g != null && L(g.length) && !D(g); + } + function q(g) { + return V(g) && co(g); + } + function D(g) { + return ( + !!$(g) && + ((g = he(g)), + g == '[object Function]' || + g == '[object GeneratorFunction]' || + g == '[object AsyncFunction]' || + g == '[object Proxy]') + ); + } + function L(g) { + return typeof g == 'number' && -1 < g && g % 1 == 0 && 9007199254740991 >= g; + } + function $(g) { + var E = typeof g; + return g != null && (E == 'object' || E == 'function'); + } + function V(g) { + return g != null && typeof g == 'object'; + } + function ae(g) { + return ( + !(!V(g) || he(g) != '[object Object]') && + ((g = B7(g)), + g === null || + ((g = Ti.call(g, 'constructor') && g.constructor), + typeof g == 'function' && g instanceof g && zf.call(g) == hU)) + ); + } + function xe(g) { + return typeof g == 'string' || (!Vi(g) && V(g) && he(g) == '[object String]'); + } + function Te(g) { + return typeof g == 'symbol' || (V(g) && he(g) == '[object Symbol]'); + } + function Ze(g) { + return g + ? ((g = Me(g)), g === On || g === -On ? 17976931348623157e292 * (0 > g ? -1 : 1) : g === g ? g : 0) + : g === 0 + ? g + : 0; + } + function Kt(g) { + g = Ze(g); + var E = g % 1; + return g === g ? (E ? g - E : g) : 0; + } + function Me(g) { + if (typeof g == 'number') return g; + if (Te(g)) return Ou; + if ( + ($(g) && ((g = typeof g.valueOf == 'function' ? g.valueOf() : g), (g = $(g) ? g + '' : g)), + typeof g != 'string') + ) + return g === 0 ? g : +g; + g = g.replace(Cu, ''); + var E = gl.test(g); + return E || L7.test(g) ? gc(g.slice(2), E ? 2 : 8) : D1.test(g) ? Ou : +g; + } + function Dt(g) { + return ns(g, $e(g)); + } + function ar(g) { + return g == null ? '' : bt(g); + } + function At(g, E, I) { + return (g = g == null ? se : ie(g, E)), g === se ? I : g; + } + function We(g, E) { + var I; + if ((I = g != null)) { + I = g; + var F; + F = Ta(E, I); + for (var B = -1, X = F.length, H = !1; ++B < X; ) { + var re = fl(F[B]); + if (!(H = I != null && I != null && re in Object(I))) break; + I = I[re]; + } + H || ++B != X ? (I = H) : ((X = I == null ? 0 : I.length), (I = !!X && L(X) && Mf(re, X) && (Vi(I) || Hf(I)))); + } + return I; + } + function ct(g) { + if (co(g)) g = b(g); + else if (R1(g)) { + var E, + I = []; + for (E in Object(g)) Ti.call(g, E) && E != 'constructor' && I.push(E); + g = I; + } else g = Yke(g); + return g; + } + function $e(g) { + if (co(g)) g = b(g, !0); + else if ($(g)) { + var E, + I = R1(g), + F = []; + for (E in g) (E != 'constructor' || (!I && Ti.call(g, E))) && F.push(E); + g = F; + } else { + if (((E = []), g != null)) for (I in Object(g)) E.push(I); + g = E; + } + return g; + } + function as(g) { + return g == null ? [] : f(g, ct(g)); + } + function Ui(g) { + return function () { + return g; + }; + } + function ci(g) { + return g; + } + function dt(g) { + return k(typeof g == 'function' ? g : z(g, 1)); + } + function $i(g) { + return P1(g) ? u(fl(g)) : kt(g); + } + function Bi() { + return []; + } + function Yn() { + return !1; + } + var se, + On = 1 / 0, + Ou = NaN, + $f = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, + Bf = /^\w*$/, + Tu = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, + Cu = /^\s+|\s+$/g, + fo = /\\(\\)?/g, + ku = /\w*$/, + D1 = /^[-+]0x[0-9a-f]+$/i, + gl = /^0b[01]+$/i, + F7 = /^\[object .+?Constructor\]$/, + L7 = /^0o[0-7]+$/i, + v6 = /^(?:0|[1-9]\d*)$/, + ft = {}; + (ft['[object Float32Array]'] = + ft['[object Float64Array]'] = + ft['[object Int8Array]'] = + ft['[object Int16Array]'] = + ft['[object Int32Array]'] = + ft['[object Uint8Array]'] = + ft['[object Uint8ClampedArray]'] = + ft['[object Uint16Array]'] = + ft['[object Uint32Array]'] = + !0), + (ft['[object Arguments]'] = + ft['[object Array]'] = + ft['[object ArrayBuffer]'] = + ft['[object Boolean]'] = + ft['[object DataView]'] = + ft['[object Date]'] = + ft['[object Error]'] = + ft['[object Function]'] = + ft['[object Map]'] = + ft['[object Number]'] = + ft['[object Object]'] = + ft['[object RegExp]'] = + ft['[object Set]'] = + ft['[object String]'] = + ft['[object WeakMap]'] = + !1); + var st = {}; + (st['[object Arguments]'] = + st['[object Array]'] = + st['[object ArrayBuffer]'] = + st['[object DataView]'] = + st['[object Boolean]'] = + st['[object Date]'] = + st['[object Float32Array]'] = + st['[object Float64Array]'] = + st['[object Int8Array]'] = + st['[object Int16Array]'] = + st['[object Int32Array]'] = + st['[object Map]'] = + st['[object Number]'] = + st['[object Object]'] = + st['[object RegExp]'] = + st['[object Set]'] = + st['[object String]'] = + st['[object Symbol]'] = + st['[object Uint8Array]'] = + st['[object Uint8ClampedArray]'] = + st['[object Uint16Array]'] = + st['[object Uint32Array]'] = + !0), + (st['[object Error]'] = st['[object Function]'] = st['[object WeakMap]'] = !1); + var mo, + gc = parseInt, + y6 = typeof global == 'object' && global && global.Object === Object && global, + b6 = typeof self == 'object' && self && self.Object === Object && self, + ho = y6 || b6 || Function('return this')(), + Qn = typeof Xf == 'object' && Xf && !Xf.nodeType && Xf, + go = Qn && typeof B1 == 'object' && B1 && !B1.nodeType && B1, + Vf = go && go.exports === Qn, + Au = Vf && y6.process; + e: { + try { + mo = Au && Au.binding && Au.binding('util'); + break e; + } catch {} + mo = void 0; + } + var vl = mo && mo.isMap, + M7 = mo && mo.isSet, + yl = mo && mo.isTypedArray, + vc = Array.prototype, + Iu = Object.prototype, + N1 = ho['__core-js_shared__'], + zf = Function.prototype.toString, + Ti = Iu.hasOwnProperty, + U7 = (function () { + var g = /[^.]+$/.exec((N1 && N1.keys && N1.keys.IE_PROTO) || ''); + return g ? 'Symbol(src)_1.' + g : ''; + })(), + $7 = Iu.toString, + hU = zf.call(Object), + gU = RegExp( + '^' + + zf + .call(Ti) + .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&') + .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + + '$' + ), + q1 = Vf ? ho.Buffer : se, + yc = ho.Symbol, + F1 = ho.Uint8Array, + vU = q1 ? q1.f : se, + B7 = m(Object.getPrototypeOf), + yU = Object.create, + bU = Iu.propertyIsEnumerable, + Xke = vc.splice, + _U = yc ? yc.isConcatSpreadable : se, + bc = yc ? yc.toStringTag : se, + _6 = (function () { + try { + var g = cl(Object, 'defineProperty'); + return g({}, '', {}), g; + } catch {} + })(), + V7 = Object.getOwnPropertySymbols, + Jke = q1 ? q1.isBuffer : se, + Yke = m(Object.keys), + z7 = Math.max, + Qke = Date.now, + H7 = cl(ho, 'DataView'), + L1 = cl(ho, 'Map'), + G7 = cl(ho, 'Promise'), + W7 = cl(ho, 'Set'), + K7 = cl(ho, 'WeakMap'), + M1 = cl(Object, 'create'), + Zke = ml(H7), + eAe = ml(L1), + tAe = ml(G7), + rAe = ml(W7), + iAe = ml(K7), + w6 = yc ? yc.prototype : se, + U1 = w6 ? w6.valueOf : se, + wU = w6 ? w6.toString : se, + nAe = (function () { + function g() {} + return function (E) { + return $(E) ? (yU ? yU(E) : ((g.prototype = E), (E = new g()), (g.prototype = se), E)) : {}; + }; + })(); + (S.prototype.clear = function () { + (this.__data__ = M1 ? M1(null) : {}), (this.size = 0); + }), + (S.prototype.delete = function (g) { + return (g = this.has(g) && delete this.__data__[g]), (this.size -= g ? 1 : 0), g; + }), + (S.prototype.get = function (g) { + var E = this.__data__; + return M1 ? ((g = E[g]), g === '__lodash_hash_undefined__' ? se : g) : Ti.call(E, g) ? E[g] : se; + }), + (S.prototype.has = function (g) { + var E = this.__data__; + return M1 ? E[g] !== se : Ti.call(E, g); + }), + (S.prototype.set = function (g, E) { + var I = this.__data__; + return (this.size += this.has(g) ? 0 : 1), (I[g] = M1 && E === se ? '__lodash_hash_undefined__' : E), this; + }), + (w.prototype.clear = function () { + (this.__data__ = []), (this.size = 0); + }), + (w.prototype.delete = function (g) { + var E = this.__data__; + return (g = C(E, g)), !(0 > g) && (g == E.length - 1 ? E.pop() : Xke.call(E, g, 1), --this.size, !0); + }), + (w.prototype.get = function (g) { + var E = this.__data__; + return (g = C(E, g)), 0 > g ? se : E[g][1]; + }), + (w.prototype.has = function (g) { + return -1 < C(this.__data__, g); + }), + (w.prototype.set = function (g, E) { + var I = this.__data__, + F = C(I, g); + return 0 > F ? (++this.size, I.push([g, E])) : (I[F][1] = E), this; + }), + (O.prototype.clear = function () { + (this.size = 0), (this.__data__ = { hash: new S(), map: new (L1 || w)(), string: new S() }); + }), + (O.prototype.delete = function (g) { + return (g = mc(this, g).delete(g)), (this.size -= g ? 1 : 0), g; + }), + (O.prototype.get = function (g) { + return mc(this, g).get(g); + }), + (O.prototype.has = function (g) { + return mc(this, g).has(g); + }), + (O.prototype.set = function (g, E) { + var I = mc(this, g), + F = I.size; + return I.set(g, E), (this.size += I.size == F ? 0 : 1), this; + }), + (x.prototype.add = x.prototype.push = + function (g) { + return this.__data__.set(g, '__lodash_hash_undefined__'), this; + }), + (x.prototype.has = function (g) { + return this.__data__.has(g); + }), + (_.prototype.clear = function () { + (this.__data__ = new w()), (this.size = 0); + }), + (_.prototype.delete = function (g) { + var E = this.__data__; + return (g = E.delete(g)), (this.size = E.size), g; + }), + (_.prototype.get = function (g) { + return this.__data__.get(g); + }), + (_.prototype.has = function (g) { + return this.__data__.has(g); + }), + (_.prototype.set = function (g, E) { + var I = this.__data__; + if (I instanceof w) { + var F = I.__data__; + if (!L1 || 199 > F.length) return F.push([g, E]), (this.size = ++I.size), this; + I = this.__data__ = new O(F); + } + return I.set(g, E), (this.size = I.size), this; + }); + var SU = (function (g, E) { + return function (I, F) { + if (I == null) return I; + if (!co(I)) return g(I, F); + for (var B = I.length, X = E ? B : -1, H = Object(I); (E ? X-- : ++X < B) && F(H[X], X, H) !== !1; ); + return I; + }; + })(J), + EU = (function (g) { + return function (E, I, F) { + var B = -1, + X = Object(E); + F = F(E); + for (var H = F.length; H--; ) { + var re = F[g ? H : ++B]; + if (I(X[re], re, X) === !1) break; + } + return E; + }; + })(), + aAe = _6 + ? function (g, E) { + return _6(g, 'toString', { configurable: !0, enumerable: !1, value: Ui(E), writable: !0 }); + } + : ci, + X7 = V7 + ? function (g) { + return g == null + ? [] + : ((g = Object(g)), + n(V7(g), function (E) { + return bU.call(g, E); + })); + } + : Bi, + xU = V7 + ? function (g) { + for (var E = []; g; ) o(E, X7(g)), (g = B7(g)); + return E; + } + : Bi, + vo = he; + ((H7 && vo(new H7(new ArrayBuffer(1))) != '[object DataView]') || + (L1 && vo(new L1()) != '[object Map]') || + (G7 && vo(G7.resolve()) != '[object Promise]') || + (W7 && vo(new W7()) != '[object Set]') || + (K7 && vo(new K7()) != '[object WeakMap]')) && + (vo = function (g) { + var E = he(g); + if ((g = (g = E == '[object Object]' ? g.constructor : se) ? ml(g) : '')) + switch (g) { + case Zke: + return '[object DataView]'; + case eAe: + return '[object Map]'; + case tAe: + return '[object Promise]'; + case rAe: + return '[object Set]'; + case iAe: + return '[object WeakMap]'; + } + return E; + }); + var OU = (function (g) { + var E = 0, + I = 0; + return function () { + var F = Qke(), + B = 16 - (F - I); + if (((I = F), 0 < B)) { + if (800 <= ++E) return arguments[0]; + } else E = 0; + return g.apply(se, arguments); + }; + })(aAe), + oAe = (function (g) { + g = hc(g, function (I) { + return E.size === 500 && E.clear(), I; + }); + var E = g.cache; + return g; + })(function (g) { + var E = []; + return ( + g.charCodeAt(0) === 46 && E.push(''), + g.replace(Tu, function (I, F, B, X) { + E.push(B ? X.replace(fo, '$1') : F || I); + }), + E + ); + }), + sAe = (function (g, E) { + return function (I, F) { + var B = Vi(I) ? t : N, + X = E ? E() : {}; + return B(I, g, ka(F, 2), X); + }; + })(function (g, E, I) { + U(g, I, E); + }), + lAe = Oi(function (g, E) { + if (g == null) return []; + var I = E.length; + return 1 < I && Z(g, E[0], E[1]) ? (E = []) : 2 < I && Z(E[0], E[1], E[2]) && (E = [E[0]]), nr(g, te(E, 1)); + }); + hc.Cache = O; + var Hf = xr( + (function () { + return arguments; + })() + ) + ? xr + : function (g) { + return V(g) && Ti.call(g, 'callee') && !bU.call(g, 'callee'); + }, + Vi = Array.isArray, + Gf = Jke || Yn, + TU = vl ? c(vl) : Oa, + CU = M7 ? c(M7) : Or, + S6 = yl ? c(yl) : P, + uAe = Oi(function (g, E) { + g = Object(g); + var I = -1, + F = E.length, + B = 2 < F ? E[2] : se; + for (B && Z(E[0], E[1], B) && (F = 1); ++I < F; ) + for (var B = E[I], X = $e(B), H = -1, re = X.length; ++H < re; ) { + var de = X[H], + be = g[de]; + (be === se || (hl(be, Iu[de]) && !Ti.call(g, de))) && (g[de] = B[de]); + } + return g; + }), + pAe = (function (g) { + return Oi(function (E, I) { + var F = -1, + B = I.length, + H = 1 < B ? I[B - 1] : se, + X = 2 < B ? I[2] : se, + H = 3 < g.length && typeof H == 'function' ? (B--, H) : se; + for (X && Z(I[0], I[1], X) && ((H = 3 > B ? se : H), (B = 1)), E = Object(E); ++F < B; ) + (X = I[F]) && g(E, X, F, H); + return E; + }); + })(function (g, E, I) { + wt(g, E, I); + }), + cAe = (function (g) { + return OU(h6(g, se, Uf), g + ''); + })(function (g, E) { + var I = {}; + if (g == null) return I; + var F = !1; + (E = a(E, function (X) { + return (X = Ta(X, g)), F || (F = 1 < X.length), X; + })), + ns(g, I1(g), I), + F && (I = z(I, 7, j7)); + for (var B = E.length; B--; ) Yr(I, E[B]); + return I; + }); + (y.before = g6), + (y.constant = Ui), + (y.defaults = uAe), + (y.flatten = Uf), + (y.iteratee = dt), + (y.keyBy = sAe), + (y.keys = ct), + (y.keysIn = $e), + (y.mapKeys = function (g, E) { + var I = {}; + return ( + (E = ka(E, 3)), + J(g, function (F, B, X) { + U(I, E(F, B, X), F); + }), + I + ); + }), + (y.memoize = hc), + (y.merge = pAe), + (y.omit = cAe), + (y.once = function (g) { + return g6(2, g); + }), + (y.property = $i), + (y.set = function (g, E, I) { + if (g != null && $(g)) { + E = Ta(E, g); + for (var F = -1, B = E.length, X = B - 1, H = g; H != null && ++F < B; ) { + var re = fl(E[F]), + de = I; + if (F != X) { + var be = H[re], + de = se; + de === se && (de = $(be) ? be : Mf(E[F + 1]) ? [] : {}); + } + R(H, re, de), (H = H[re]); + } + } + return g; + }), + (y.sortBy = lAe), + (y.toPlainObject = Dt), + (y.values = as), + (y.eq = hl), + (y.findKey = function (g, E) { + return l(g, ka(E, 3), J); + }), + (y.get = At), + (y.hasIn = We), + (y.identity = ci), + (y.includes = function (g, E, I, F) { + if (((g = co(g) ? g : as(g)), (I = I && !F ? Kt(I) : 0), (F = g.length), 0 > I && (I = z7(F + I, 0)), xe(g))) + g = I <= F && -1 < g.indexOf(E, I); + else { + if ((F = !!F)) { + if (E === E) + e: { + for (I -= 1, F = g.length; ++I < F; ) + if (g[I] === E) { + g = I; + break e; + } + g = -1; + } + else + e: { + for (E = g.length, I += -1; ++I < E; ) + if (((F = g[I]), F !== F)) { + g = I; + break e; + } + g = -1; + } + F = -1 < g; + } + g = F; + } + return g; + }), + (y.isArguments = Hf), + (y.isArray = Vi), + (y.isArrayLike = co), + (y.isArrayLikeObject = q), + (y.isBuffer = Gf), + (y.isFunction = D), + (y.isLength = L), + (y.isMap = TU), + (y.isObject = $), + (y.isObjectLike = V), + (y.isPlainObject = ae), + (y.isSet = CU), + (y.isString = xe), + (y.isSymbol = Te), + (y.isTypedArray = S6), + (y.last = j1), + (y.maxBy = function (g, E) { + return g && g.length ? K(g, ka(E, 2), hr) : se; + }), + (y.minBy = function (g, E) { + return g && g.length ? K(g, ka(E, 2), G) : se; + }), + (y.stubArray = Bi), + (y.stubFalse = Yn), + (y.toFinite = Ze), + (y.toInteger = Kt), + (y.toNumber = Me), + (y.toString = ar), + (y.VERSION = '4.17.5'), + go && (((go.exports = y)._ = y), (Qn._ = y)); + }).call(Xf); +}); +var a$ = d((Ot) => { + 'use strict'; + Object.defineProperty(Ot, '__esModule', { value: !0 }); + Ot.toNumber = + Ot.sortBy = + Ot.set = + Ot.once = + Ot.omit = + Ot.merge = + Ot.maxBy = + Ot.minBy = + Ot.mapKeys = + Ot.keyBy = + Ot.includes = + Ot.findKey = + Ot.defaults = + void 0; + var aa = n$(); + function XIe(e, ...t) { + return aa.defaults(e, ...t); + } + Ot.defaults = XIe; + function JIe(e, t) { + return aa.findKey(e, t); + } + Ot.findKey = JIe; + function YIe(e, t, r) { + return aa.includes(e, t, r); + } + Ot.includes = YIe; + function QIe(e, t) { + return aa.keyBy(e, t); + } + Ot.keyBy = QIe; + function ZIe(e, t) { + return aa.mapKeys(e, t); + } + Ot.mapKeys = ZIe; + function ePe(e, t) { + return aa.minBy(e, t); + } + Ot.minBy = ePe; + function tPe(e, t) { + return aa.maxBy(e, t); + } + Ot.maxBy = tPe; + function rPe(e, ...t) { + return aa.merge(e, ...t); + } + Ot.merge = rPe; + function iPe(e, ...t) { + return aa.omit(e, ...t); + } + Ot.omit = iPe; + function nPe(e) { + return aa.once(e); + } + Ot.once = nPe; + function aPe(e, t, r) { + return aa.set(e, t, r); + } + Ot.set = aPe; + function oPe(e, ...t) { + return aa.sortBy(e, ...t); + } + Ot.sortBy = oPe; + function sPe(e) { + return aa.toNumber(e); + } + Ot.toNumber = sPe; +}); +var o$ = d((kn) => { + 'use strict'; + Object.defineProperty(kn, '__esModule', { value: !0 }); + kn.toBoolean = kn.upperFirst = kn.snakeCase = kn.camelCaseToTitleCase = kn.lowerFirst = kn.isEmpty = void 0; + var V1 = Be(); + function lPe(e) { + return e == null + ? !0 + : !( + (0, V1.isNumber)(e) || + (0, V1.isBoolean)(e) || + ((0, V1.isArrayLike)(e) && e.length > 0) || + ((0, V1.hasNumber)(e, 'size') && e.size > 0) || + ((0, V1.isObject)(e) && Object.keys(e).length > 0) + ); + } + kn.isEmpty = lPe; + function uPe(e) { + return e && e.charAt(0).toLowerCase() + e.slice(1); + } + kn.lowerFirst = uPe; + function pPe(e) { + return e + .replace(/(^\w|\s\w)/g, (t) => t.toUpperCase()) + .replace(/([A-Z][a-z]+)/g, ' $1') + .replace(/\s{2,}/g, ' ') + .trim(); + } + kn.camelCaseToTitleCase = pPe; + function cPe(e) { + return e + ?.replace(/([a-z])([A-Z])/g, '$1_$2') + .toLowerCase() + .replace(/\W/g, '_') + .replace(/^_+|_+$/g, ''); + } + kn.snakeCase = cPe; + function dPe(e) { + return e && e.charAt(0).toUpperCase() + e.slice(1); + } + kn.upperFirst = dPe; + function fPe(e) { + switch (typeof e) { + case 'boolean': + return e; + case 'string': + return e.toLowerCase() === 'true' || e === '1'; + default: + return !1; + } + } + kn.toBoolean = fPe; +}); +var bE = d((Nu) => { + 'use strict'; + var mPe = + (Nu && Nu.__createBinding) || + (Object.create + ? function (e, t, r, n) { + n === void 0 && (n = r); + var a = Object.getOwnPropertyDescriptor(t, r); + (!a || ('get' in a ? !t.__esModule : a.writable || a.configurable)) && + (a = { + enumerable: !0, + get: function () { + return t[r]; + }, + }), + Object.defineProperty(e, n, a); + } + : function (e, t, r, n) { + n === void 0 && (n = r), (e[n] = t[r]); + }), + s$ = + (Nu && Nu.__exportStar) || + function (e, t) { + for (var r in e) r !== 'default' && !Object.prototype.hasOwnProperty.call(t, r) && mPe(t, e, r); + }; + Object.defineProperty(Nu, '__esModule', { value: !0 }); + s$(a$(), Nu); + s$(o$(), Nu); +}); +var u$ = d((Jf) => { + 'use strict'; + Object.defineProperty(Jf, '__esModule', { value: !0 }); + Jf.env = Jf.Env = void 0; + var z1 = Be(), + hPe = R6(), + l$ = bE(), + j6 = class { + constructor(t = process?.env || {}) { + (this.store = t), (this.store = t); + } + getString(t, r) { + return this.store[t] ?? r; + } + getStringIn(t, r, n) { + let a = new RegExp(r.join('|'), 'i'); + if (n && !a.test(n.toString())) { + let s = r.join(', '); + throw new hPe.InvalidDefaultEnvValueError(`${n} is not a member of ${s}`); + } + let o = this.getString(t); + return o && a.test(o) ? o : n; + } + getKeyOf(t, r, n, a) { + let o, s; + if ( + (typeof n == 'function' ? (a = n) : (s = n), + s === void 0 + ? (o = this.getStringIn(t, Object.keys(r))) + : (a && (s = a(s)), (o = this.getStringIn(t, Object.keys(r), s))), + !!o && (typeof a == 'function' && (o = a(o)), (0, z1.isKeyOf)(r, o))) + ) + return o; + } + setString(t, r) { + if (r == null) { + this.unset(t); + return; + } + this.store[t] = r; + } + getList(t, r) { + let n = this.getString(t); + return n ? n.split(',') : r; + } + setList(t, r) { + if (r == null) { + this.unset(t); + return; + } + this.setString(t, r.join(',')); + } + getBoolean(t, r = !1) { + let n = this.getString(t, r.toString()); + return (0, l$.toBoolean)(n); + } + setBoolean(t, r) { + if (r == null) { + this.unset(t); + return; + } + this.setString(t, r.toString()); + } + getNumber(t, r) { + let n = this.getString(t); + if (n) { + let a = (0, l$.toNumber)(n); + return isNaN(a) && (0, z1.isNumber)(r) ? r : a; + } + return (0, z1.isNumber)(r) ? r : void 0; + } + setNumber(t, r) { + if (r == null) { + this.unset(t); + return; + } + this.setString(t, (0, z1.isNumber)(r) ? String(r) : r); + } + unset(t) { + delete this.store[t]; + } + entries() { + return (0, z1.definiteEntriesOf)(this.store); + } + }; + Jf.Env = j6; + Jf.env = new j6(); +}); +var d$ = d((Pa) => { + 'use strict'; + Object.defineProperty(Pa, '__esModule', { value: !0 }); + Pa.jsonIncludes = Pa.getJsonValuesByName = Pa.cloneJson = Pa.parseJsonMap = Pa.parseJson = void 0; + var qu = Be(), + _E = R6(); + function p$(e, t, r = !0) { + (e = e.trim()), !r && e.length === 0 && (e = '{}'); + try { + return JSON.parse(e); + } catch (n) { + throw _E.JsonParseError.create(n, e, t); + } + } + Pa.parseJson = p$; + function gPe(e, t, r) { + let n = p$(e, t, r); + if (n === null || (0, qu.isJsonArray)(n) || typeof n != 'object') + throw new _E.JsonDataFormatError('Expected parsed JSON data to be an object'); + return n; + } + Pa.parseJsonMap = gPe; + function vPe(e) { + try { + return JSON.parse(JSON.stringify(e)); + } catch (t) { + throw t instanceof SyntaxError || t instanceof TypeError ? new _E.JsonStringifyError(t) : t; + } + } + Pa.cloneJson = vPe; + function c$(e, t) { + let r = []; + Object.prototype.hasOwnProperty.call(e, t) && r.push(e[t]); + let n = (a) => { + (0, qu.isJsonMap)(a) && (r = r.concat(c$(a, t))); + }; + return Object.values(e).forEach((a) => ((0, qu.isJsonArray)(a) ? a.forEach(n) : n(a))), r; + } + Pa.getJsonValuesByName = c$; + function yPe(e, t) { + return e == null || t === void 0 || (0, qu.isNumber)(e) || (0, qu.isBoolean)(e) + ? !1 + : (0, qu.isJsonMap)(e) + ? Object.values(e).includes(t) + : (0, qu.isJsonArray)(e) || (0, qu.isString)(t) + ? e.includes(t) + : !1; + } + Pa.jsonIncludes = yPe; +}); +var wE = d((D6) => { + 'use strict'; + Object.defineProperty(D6, '__esModule', { value: !0 }); + D6.ensureArray = void 0; + var bPe = (e) => (e != null ? (Array.isArray(e) ? e : [e]) : []); + D6.ensureArray = bPe; +}); +var m$ = d((Yf) => { + 'use strict'; + var f$ = + (Yf && Yf.__classPrivateFieldGet) || + function (e, t, r, n) { + if (r === 'a' && !n) throw new TypeError('Private accessor was defined without a getter'); + if (typeof t == 'function' ? e !== t || !n : !t.has(e)) + throw new TypeError('Cannot read private member from an object whose class did not declare it'); + return r === 'm' ? n : r === 'a' ? n.call(e) : n ? n.value : t.get(e); + }, + N6; + Object.defineProperty(Yf, '__esModule', { value: !0 }); + Yf.ThrottledPromiseAll = void 0; + var _Pe = wE(), + wPe = mE(), + SPe = () => !1, + SE = class { + constructor(t = { concurrency: 1 }) { + N6.set(this, []), + (this.queue = []), + (this.concurrency = t.concurrency), + (this.wait = t.timeout ?? wPe.Duration.milliseconds(0)), + (this.cancel = t.cancel ?? SPe); + } + get results() { + return f$(this, N6, 'f') + .sort((t, r) => (t?.index ?? 0) - (r?.index ?? 0)) + .map((t) => t?.result); + } + add(t, r) { + (0, _Pe.ensureArray)(t).forEach((n) => this.queue.push({ source: n, producer: r })); + } + async all() { + let t; + this.wait.milliseconds > 0 && + (this.timeout || + (t = new Promise((r, n) => { + this.timeout = setTimeout(() => { + try { + this.timeout && clearTimeout(this.timeout), + this.stop(), + n(new Error(`PromiseQueue timed out after ${this.wait.milliseconds} milliseconds`)); + } catch (a) { + n(a); + } + }, this.wait.milliseconds); + }))); + try { + return t ? await Promise.race([this.dequeue(), t]) : await this.dequeue(), this.stop(), this.results; + } catch (r) { + throw (this.stop(), r); + } + } + stop() { + this.timeout && clearTimeout(this.timeout), this.queue.splice(0, this.queue.length); + } + async dequeue() { + let t = new Map(), + r = 0; + for (; this.queue.length > 0 || t.size > 0; ) { + if (this.cancel()) throw (this.stop(), new Error('PromiseQueue: Cancelled')); + for (; t.size < this.concurrency; ) { + let o = this.queue.shift(); + if (!o) break; + let s = { ...o, index: r++ }; + t.set( + s.index, + s + .producer(o.source, this) + .then((l) => ({ index: s.index, result: l })) + .catch((l) => Promise.reject(l)) + ); + } + let n = await Promise.race(t.values()), + a = n?.index ?? -1; + if (!t.has(a)) throw new Error(`PromiseQueue: Could not find index ${n?.index} in pool`); + t.delete(a), f$(this, N6, 'f').push(n); + } + } + }; + Yf.ThrottledPromiseAll = SE; + N6 = new WeakMap(); +}); +var h$ = d((ss) => { + 'use strict'; + Object.defineProperty(ss, '__esModule', { value: !0 }); + ss.settleAll = ss.isRejected = ss.isFulfilled = void 0; + var EPe = (e) => e.status === 'fulfilled'; + ss.isFulfilled = EPe; + var xPe = (e) => e.status === 'rejected'; + ss.isRejected = xPe; + async function OPe(e) { + let t = await Promise.allSettled(e); + return { + fulfilled: t.filter(ss.isFulfilled).map((r) => r.value), + rejected: t.filter(ss.isRejected).map((r) => r.reason), + }; + } + ss.settleAll = OPe; +}); +var qe = d((ln) => { + 'use strict'; + var TPe = + (ln && ln.__createBinding) || + (Object.create + ? function (e, t, r, n) { + n === void 0 && (n = r); + var a = Object.getOwnPropertyDescriptor(t, r); + (!a || ('get' in a ? !t.__esModule : a.writable || a.configurable)) && + (a = { + enumerable: !0, + get: function () { + return t[r]; + }, + }), + Object.defineProperty(e, n, a); + } + : function (e, t, r, n) { + n === void 0 && (n = r), (e[n] = t[r]); + }), + _l = + (ln && ln.__exportStar) || + function (e, t) { + for (var r in e) r !== 'default' && !Object.prototype.hasOwnProperty.call(t, r) && TPe(t, e, r); + }; + Object.defineProperty(ln, '__esModule', { value: !0 }); + _l(i$(), ln); + _l(mE(), ln); + _l(u$(), ln); + _l(R6(), ln); + _l(d$(), ln); + _l(bE(), ln); + _l(wE(), ln); + _l(m$(), ln); + _l(h$(), ln); +}); +var g$, + q6, + Q, + Ut = Tn(() => { + 'use strict'; + (g$ = W(qe())), + (q6 = W(Be())), + (Q = class e extends g$.NamedError { + constructor(r, n, a, o, s) { + s = o instanceof Error ? o : s; + super(n ?? 'SfError', r || n, s); + (this.actions = a), typeof o == 'number' ? (this.exitCode = o) : (this.exitCode = 1); + } + #e; + get code() { + return this.#e ?? this.name; + } + set code(r) { + this.#e = r; + } + static wrap(r) { + if ((0, q6.isString)(r)) return new e(r); + if (r instanceof e) return r; + let n = new e(r.message, r.name, void 0, r); + return (0, q6.hasString)(r, 'code') && (n.code = r.code), n; + } + setContext(r) { + return (this.context = r), this; + } + setData(r) { + return (this.data = r), this; + } + toObject() { + let r = { + name: this.name, + message: this.message || this.name, + exitCode: this.exitCode, + actions: this.actions, + }; + return this.context && (r.context = this.context), this.data && (r.data = this.data), r; + } + }); + }); +var It = d((sqt, b$) => { + var F6 = function (e) { + return e && e.Math == Math && e; + }; + b$.exports = + F6(typeof globalThis == 'object' && globalThis) || + F6(typeof window == 'object' && window) || + F6(typeof self == 'object' && self) || + F6(typeof global == 'object' && global) || + (function () { + return this; + })() || + Function('return this')(); +}); +var vt = d((lqt, _$) => { + _$.exports = function (e) { + try { + return !!e(); + } catch { + return !0; + } + }; +}); +var H1 = d((uqt, w$) => { + var jPe = vt(); + w$.exports = !jPe(function () { + var e = function () {}.bind(); + return typeof e != 'function' || e.hasOwnProperty('prototype'); + }); +}); +var Qf = d((pqt, O$) => { + var DPe = H1(), + x$ = Function.prototype, + S$ = x$.apply, + E$ = x$.call; + O$.exports = + (typeof Reflect == 'object' && Reflect.apply) || + (DPe + ? E$.bind(S$) + : function () { + return E$.apply(S$, arguments); + }); +}); +var OE = d((cqt, k$) => { + var T$ = H1(), + C$ = Function.prototype, + xE = C$.call, + NPe = T$ && C$.bind.bind(xE, xE); + k$.exports = function (e) { + return T$ + ? NPe(e) + : function () { + return xE.apply(e, arguments); + }; + }; +}); +var wl = d((dqt, I$) => { + var A$ = OE(), + qPe = A$({}.toString), + FPe = A$(''.slice); + I$.exports = function (e) { + return FPe(qPe(e), 8, -1); + }; +}); +var _t = d((fqt, P$) => { + var LPe = wl(), + MPe = OE(); + P$.exports = function (e) { + if (LPe(e) === 'Function') return MPe(e); + }; +}); +var CE = d((mqt, R$) => { + var TE = typeof document == 'object' && document.all, + UPe = typeof TE > 'u' && TE !== void 0; + R$.exports = { all: TE, IS_HTMLDDA: UPe }; +}); +var $t = d((hqt, D$) => { + var j$ = CE(), + $Pe = j$.all; + D$.exports = j$.IS_HTMLDDA + ? function (e) { + return typeof e == 'function' || e === $Pe; + } + : function (e) { + return typeof e == 'function'; + }; +}); +var di = d((gqt, N$) => { + var BPe = vt(); + N$.exports = !BPe(function () { + return ( + Object.defineProperty({}, 1, { + get: function () { + return 7; + }, + })[1] != 7 + ); + }); +}); +var Tr = d((vqt, q$) => { + var VPe = H1(), + L6 = Function.prototype.call; + q$.exports = VPe + ? L6.bind(L6) + : function () { + return L6.apply(L6, arguments); + }; +}); +var M6 = d((M$) => { + 'use strict'; + var F$ = {}.propertyIsEnumerable, + L$ = Object.getOwnPropertyDescriptor, + zPe = L$ && !F$.call({ 1: 2 }, 1); + M$.f = zPe + ? function (t) { + var r = L$(this, t); + return !!r && r.enumerable; + } + : F$; +}); +var Fu = d((bqt, U$) => { + U$.exports = function (e, t) { + return { enumerable: !(e & 1), configurable: !(e & 2), writable: !(e & 4), value: t }; + }; +}); +var U6 = d((_qt, $$) => { + var HPe = _t(), + GPe = vt(), + WPe = wl(), + kE = Object, + KPe = HPe(''.split); + $$.exports = GPe(function () { + return !kE('z').propertyIsEnumerable(0); + }) + ? function (e) { + return WPe(e) == 'String' ? KPe(e, '') : kE(e); + } + : kE; +}); +var Lu = d((wqt, B$) => { + B$.exports = function (e) { + return e == null; + }; +}); +var Zf = d((Sqt, V$) => { + var XPe = Lu(), + JPe = TypeError; + V$.exports = function (e) { + if (XPe(e)) throw JPe("Can't call method on " + e); + return e; + }; +}); +var Ra = d((Eqt, z$) => { + var YPe = U6(), + QPe = Zf(); + z$.exports = function (e) { + return YPe(QPe(e)); + }; +}); +var Lr = d((xqt, W$) => { + var H$ = $t(), + G$ = CE(), + ZPe = G$.all; + W$.exports = G$.IS_HTMLDDA + ? function (e) { + return typeof e == 'object' ? e !== null : H$(e) || e === ZPe; + } + : function (e) { + return typeof e == 'object' ? e !== null : H$(e); + }; +}); +var or = d((Oqt, K$) => { + K$.exports = {}; +}); +var un = d((Tqt, J$) => { + var AE = or(), + IE = It(), + eRe = $t(), + X$ = function (e) { + return eRe(e) ? e : void 0; + }; + J$.exports = function (e, t) { + return arguments.length < 2 ? X$(AE[e]) || X$(IE[e]) : (AE[e] && AE[e][t]) || (IE[e] && IE[e][t]); + }; +}); +var ei = d((Cqt, Y$) => { + var tRe = _t(); + Y$.exports = tRe({}.isPrototypeOf); +}); +var Sl = d((kqt, Q$) => { + var rRe = un(); + Q$.exports = rRe('navigator', 'userAgent') || ''; +}); +var Oc = d((Aqt, nB) => { + var iB = It(), + PE = Sl(), + Z$ = iB.process, + eB = iB.Deno, + tB = (Z$ && Z$.versions) || (eB && eB.version), + rB = tB && tB.v8, + xo, + $6; + rB && ((xo = rB.split('.')), ($6 = xo[0] > 0 && xo[0] < 4 ? 1 : +(xo[0] + xo[1]))); + !$6 && + PE && + ((xo = PE.match(/Edge\/(\d+)/)), (!xo || xo[1] >= 74) && ((xo = PE.match(/Chrome\/(\d+)/)), xo && ($6 = +xo[1]))); + nB.exports = $6; +}); +var Tc = d((Iqt, oB) => { + var aB = Oc(), + iRe = vt(); + oB.exports = + !!Object.getOwnPropertySymbols && + !iRe(function () { + var e = Symbol(); + return !String(e) || !(Object(e) instanceof Symbol) || (!Symbol.sham && aB && aB < 41); + }); +}); +var RE = d((Pqt, sB) => { + var nRe = Tc(); + sB.exports = nRe && !Symbol.sham && typeof Symbol.iterator == 'symbol'; +}); +var G1 = d((Rqt, lB) => { + var aRe = un(), + oRe = $t(), + sRe = ei(), + lRe = RE(), + uRe = Object; + lB.exports = lRe + ? function (e) { + return typeof e == 'symbol'; + } + : function (e) { + var t = aRe('Symbol'); + return oRe(t) && sRe(t.prototype, uRe(e)); + }; +}); +var Cc = d((jqt, uB) => { + var pRe = String; + uB.exports = function (e) { + try { + return pRe(e); + } catch { + return 'Object'; + } + }; +}); +var zi = d((Dqt, pB) => { + var cRe = $t(), + dRe = Cc(), + fRe = TypeError; + pB.exports = function (e) { + if (cRe(e)) return e; + throw fRe(dRe(e) + ' is not a function'); + }; +}); +var B6 = d((Nqt, cB) => { + var mRe = zi(), + hRe = Lu(); + cB.exports = function (e, t) { + var r = e[t]; + return hRe(r) ? void 0 : mRe(r); + }; +}); +var fB = d((qqt, dB) => { + var jE = Tr(), + DE = $t(), + NE = Lr(), + gRe = TypeError; + dB.exports = function (e, t) { + var r, n; + if ( + (t === 'string' && DE((r = e.toString)) && !NE((n = jE(r, e)))) || + (DE((r = e.valueOf)) && !NE((n = jE(r, e)))) || + (t !== 'string' && DE((r = e.toString)) && !NE((n = jE(r, e)))) + ) + return n; + throw gRe("Can't convert object to primitive value"); + }; +}); +var Oo = d((Fqt, mB) => { + mB.exports = !0; +}); +var vB = d((Lqt, gB) => { + var hB = It(), + vRe = Object.defineProperty; + gB.exports = function (e, t) { + try { + vRe(hB, e, { value: t, configurable: !0, writable: !0 }); + } catch { + hB[e] = t; + } + return t; + }; +}); +var V6 = d((Mqt, bB) => { + var yRe = It(), + bRe = vB(), + yB = '__core-js_shared__', + _Re = yRe[yB] || bRe(yB, {}); + bB.exports = _Re; +}); +var em = d((Uqt, wB) => { + var wRe = Oo(), + _B = V6(); + (wB.exports = function (e, t) { + return _B[e] || (_B[e] = t !== void 0 ? t : {}); + })('versions', []).push({ + version: '3.25.5', + mode: wRe ? 'pure' : 'global', + copyright: '\xA9 2014-2022 Denis Pushkarev (zloirock.ru)', + license: 'https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE', + source: 'https://github.com/zloirock/core-js', + }); +}); +var El = d(($qt, SB) => { + var SRe = Zf(), + ERe = Object; + SB.exports = function (e) { + return ERe(SRe(e)); + }; +}); +var ti = d((Bqt, EB) => { + var xRe = _t(), + ORe = El(), + TRe = xRe({}.hasOwnProperty); + EB.exports = + Object.hasOwn || + function (t, r) { + return TRe(ORe(t), r); + }; +}); +var W1 = d((Vqt, xB) => { + var CRe = _t(), + kRe = 0, + ARe = Math.random(), + IRe = CRe((1).toString); + xB.exports = function (e) { + return 'Symbol(' + (e === void 0 ? '' : e) + ')_' + IRe(++kRe + ARe, 36); + }; +}); +var Yt = d((zqt, AB) => { + var PRe = It(), + RRe = em(), + OB = ti(), + jRe = W1(), + TB = Tc(), + kB = RE(), + tm = RRe('wks'), + kc = PRe.Symbol, + CB = kc && kc.for, + DRe = kB ? kc : (kc && kc.withoutSetter) || jRe; + AB.exports = function (e) { + if (!OB(tm, e) || !(TB || typeof tm[e] == 'string')) { + var t = 'Symbol.' + e; + TB && OB(kc, e) ? (tm[e] = kc[e]) : kB && CB ? (tm[e] = CB(t)) : (tm[e] = DRe(t)); + } + return tm[e]; + }; +}); +var jB = d((Hqt, RB) => { + var NRe = Tr(), + IB = Lr(), + PB = G1(), + qRe = B6(), + FRe = fB(), + LRe = Yt(), + MRe = TypeError, + URe = LRe('toPrimitive'); + RB.exports = function (e, t) { + if (!IB(e) || PB(e)) return e; + var r = qRe(e, URe), + n; + if (r) { + if ((t === void 0 && (t = 'default'), (n = NRe(r, e, t)), !IB(n) || PB(n))) return n; + throw MRe("Can't convert object to primitive value"); + } + return t === void 0 && (t = 'number'), FRe(e, t); + }; +}); +var K1 = d((Gqt, DB) => { + var $Re = jB(), + BRe = G1(); + DB.exports = function (e) { + var t = $Re(e, 'string'); + return BRe(t) ? t : t + ''; + }; +}); +var z6 = d((Wqt, qB) => { + var VRe = It(), + NB = Lr(), + qE = VRe.document, + zRe = NB(qE) && NB(qE.createElement); + qB.exports = function (e) { + return zRe ? qE.createElement(e) : {}; + }; +}); +var FE = d((Kqt, FB) => { + var HRe = di(), + GRe = vt(), + WRe = z6(); + FB.exports = + !HRe && + !GRe(function () { + return ( + Object.defineProperty(WRe('div'), 'a', { + get: function () { + return 7; + }, + }).a != 7 + ); + }); +}); +var Ac = d((MB) => { + var KRe = di(), + XRe = Tr(), + JRe = M6(), + YRe = Fu(), + QRe = Ra(), + ZRe = K1(), + eje = ti(), + tje = FE(), + LB = Object.getOwnPropertyDescriptor; + MB.f = KRe + ? LB + : function (t, r) { + if (((t = QRe(t)), (r = ZRe(r)), tje)) + try { + return LB(t, r); + } catch {} + if (eje(t, r)) return YRe(!XRe(JRe.f, t, r), t[r]); + }; +}); +var LE = d((Jqt, UB) => { + var rje = vt(), + ije = $t(), + nje = /#|\.prototype\./, + X1 = function (e, t) { + var r = oje[aje(e)]; + return r == lje ? !0 : r == sje ? !1 : ije(t) ? rje(t) : !!t; + }, + aje = (X1.normalize = function (e) { + return String(e).replace(nje, '.').toLowerCase(); + }), + oje = (X1.data = {}), + sje = (X1.NATIVE = 'N'), + lje = (X1.POLYFILL = 'P'); + UB.exports = X1; +}); +var Mu = d((Yqt, BB) => { + var $B = _t(), + uje = zi(), + pje = H1(), + cje = $B($B.bind); + BB.exports = function (e, t) { + return ( + uje(e), + t === void 0 + ? e + : pje + ? cje(e, t) + : function () { + return e.apply(t, arguments); + } + ); + }; +}); +var ME = d((Qqt, VB) => { + var dje = di(), + fje = vt(); + VB.exports = + dje && + fje(function () { + return Object.defineProperty(function () {}, 'prototype', { value: 42, writable: !1 }).prototype != 42; + }); +}); +var Hi = d((Zqt, zB) => { + var mje = Lr(), + hje = String, + gje = TypeError; + zB.exports = function (e) { + if (mje(e)) return e; + throw gje(hje(e) + ' is not an object'); + }; +}); +var In = d((GB) => { + var vje = di(), + yje = FE(), + bje = ME(), + H6 = Hi(), + HB = K1(), + _je = TypeError, + UE = Object.defineProperty, + wje = Object.getOwnPropertyDescriptor, + $E = 'enumerable', + BE = 'configurable', + VE = 'writable'; + GB.f = vje + ? bje + ? function (t, r, n) { + if ( + (H6(t), + (r = HB(r)), + H6(n), + typeof t == 'function' && r === 'prototype' && 'value' in n && VE in n && !n[VE]) + ) { + var a = wje(t, r); + a && + a[VE] && + ((t[r] = n.value), + (n = { configurable: BE in n ? n[BE] : a[BE], enumerable: $E in n ? n[$E] : a[$E], writable: !1 })); + } + return UE(t, r, n); + } + : UE + : function (t, r, n) { + if ((H6(t), (r = HB(r)), H6(n), yje)) + try { + return UE(t, r, n); + } catch {} + if ('get' in n || 'set' in n) throw _je('Accessors not supported'); + return 'value' in n && (t[r] = n.value), t; + }; +}); +var ps = d((tFt, WB) => { + var Sje = di(), + Eje = In(), + xje = Fu(); + WB.exports = Sje + ? function (e, t, r) { + return Eje.f(e, t, xje(1, r)); + } + : function (e, t, r) { + return (e[t] = r), e; + }; +}); +var ve = d((rFt, XB) => { + 'use strict'; + var G6 = It(), + Oje = Qf(), + Tje = _t(), + Cje = $t(), + kje = Ac().f, + Aje = LE(), + rm = or(), + Ije = Mu(), + im = ps(), + KB = ti(), + Pje = function (e) { + var t = function (r, n, a) { + if (this instanceof t) { + switch (arguments.length) { + case 0: + return new e(); + case 1: + return new e(r); + case 2: + return new e(r, n); + } + return new e(r, n, a); + } + return Oje(e, this, arguments); + }; + return (t.prototype = e.prototype), t; + }; + XB.exports = function (e, t) { + var r = e.target, + n = e.global, + a = e.stat, + o = e.proto, + s = n ? G6 : a ? G6[r] : (G6[r] || {}).prototype, + l = n ? rm : rm[r] || im(rm, r, {})[r], + u = l.prototype, + p, + c, + f, + h, + m, + v, + y, + S, + w; + for (h in t) + (p = Aje(n ? h : r + (a ? '.' : '#') + h, e.forced)), + (c = !p && s && KB(s, h)), + (v = l[h]), + c && (e.dontCallGetSet ? ((w = kje(s, h)), (y = w && w.value)) : (y = s[h])), + (m = c && y ? y : t[h]), + !(c && typeof v == typeof m) && + (e.bind && c ? (S = Ije(m, G6)) : e.wrap && c ? (S = Pje(m)) : o && Cje(m) ? (S = Tje(m)) : (S = m), + (e.sham || (m && m.sham) || (v && v.sham)) && im(S, 'sham', !0), + im(l, h, S), + o && + ((f = r + 'Prototype'), KB(rm, f) || im(rm, f, {}), im(rm[f], h, m), e.real && u && !u[h] && im(u, h, m))); + }; +}); +var YB = d((iFt, JB) => { + var Rje = Math.ceil, + jje = Math.floor; + JB.exports = + Math.trunc || + function (t) { + var r = +t; + return (r > 0 ? jje : Rje)(r); + }; +}); +var W6 = d((nFt, QB) => { + var Dje = YB(); + QB.exports = function (e) { + var t = +e; + return t !== t || t === 0 ? 0 : Dje(t); + }; +}); +var K6 = d((aFt, ZB) => { + var Nje = W6(), + qje = Math.max, + Fje = Math.min; + ZB.exports = function (e, t) { + var r = Nje(e); + return r < 0 ? qje(r + t, 0) : Fje(r, t); + }; +}); +var tV = d((oFt, eV) => { + var Lje = W6(), + Mje = Math.min; + eV.exports = function (e) { + return e > 0 ? Mje(Lje(e), 9007199254740991) : 0; + }; +}); +var xl = d((sFt, rV) => { + var Uje = tV(); + rV.exports = function (e) { + return Uje(e.length); + }; +}); +var X6 = d((lFt, nV) => { + var $je = Ra(), + Bje = K6(), + Vje = xl(), + iV = function (e) { + return function (t, r, n) { + var a = $je(t), + o = Vje(a), + s = Bje(n, o), + l; + if (e && r != r) { + for (; o > s; ) if (((l = a[s++]), l != l)) return !0; + } else for (; o > s; s++) if ((e || s in a) && a[s] === r) return e || s || 0; + return !e && -1; + }; + }; + nV.exports = { includes: iV(!0), indexOf: iV(!1) }; +}); +var nm = d((uFt, aV) => { + aV.exports = {}; +}); +var HE = d((pFt, sV) => { + var zje = _t(), + zE = ti(), + Hje = Ra(), + Gje = X6().indexOf, + Wje = nm(), + oV = zje([].push); + sV.exports = function (e, t) { + var r = Hje(e), + n = 0, + a = [], + o; + for (o in r) !zE(Wje, o) && zE(r, o) && oV(a, o); + for (; t.length > n; ) zE(r, (o = t[n++])) && (~Gje(a, o) || oV(a, o)); + return a; + }; +}); +var J6 = d((cFt, lV) => { + lV.exports = [ + 'constructor', + 'hasOwnProperty', + 'isPrototypeOf', + 'propertyIsEnumerable', + 'toLocaleString', + 'toString', + 'valueOf', + ]; +}); +var J1 = d((dFt, uV) => { + var Kje = HE(), + Xje = J6(); + uV.exports = + Object.keys || + function (t) { + return Kje(t, Xje); + }; +}); +var cV = d(() => { + var Jje = ve(), + Yje = El(), + pV = J1(), + Qje = vt(), + Zje = Qje(function () { + pV(1); + }); + Jje( + { target: 'Object', stat: !0, forced: Zje }, + { + keys: function (t) { + return pV(Yje(t)); + }, + } + ); +}); +var fV = d((hFt, dV) => { + cV(); + var eDe = or(); + dV.exports = eDe.Object.keys; +}); +var GE = d((gFt, mV) => { + var tDe = fV(); + mV.exports = tDe; +}); +var Ve = d((vFt, hV) => { + hV.exports = GE(); +}); +var Y6 = d((yFt, gV) => { + gV.exports = function () {}; +}); +var Ic = d((bFt, vV) => { + vV.exports = {}; +}); +var WE = d((_Ft, bV) => { + var rDe = It(), + iDe = $t(), + yV = rDe.WeakMap; + bV.exports = iDe(yV) && /native code/.test(String(yV)); +}); +var Y1 = d((wFt, wV) => { + var nDe = em(), + aDe = W1(), + _V = nDe('keys'); + wV.exports = function (e) { + return _V[e] || (_V[e] = aDe(e)); + }; +}); +var Ol = d((SFt, xV) => { + var oDe = WE(), + EV = It(), + sDe = Lr(), + lDe = ps(), + KE = ti(), + XE = V6(), + uDe = Y1(), + pDe = nm(), + SV = 'Object already initialized', + JE = EV.TypeError, + cDe = EV.WeakMap, + Q6, + Q1, + Z6, + dDe = function (e) { + return Z6(e) ? Q1(e) : Q6(e, {}); + }, + fDe = function (e) { + return function (t) { + var r; + if (!sDe(t) || (r = Q1(t)).type !== e) throw JE('Incompatible receiver, ' + e + ' required'); + return r; + }; + }; + oDe || XE.state + ? ((To = XE.state || (XE.state = new cDe())), + (To.get = To.get), + (To.has = To.has), + (To.set = To.set), + (Q6 = function (e, t) { + if (To.has(e)) throw JE(SV); + return (t.facade = e), To.set(e, t), t; + }), + (Q1 = function (e) { + return To.get(e) || {}; + }), + (Z6 = function (e) { + return To.has(e); + })) + : ((Pc = uDe('state')), + (pDe[Pc] = !0), + (Q6 = function (e, t) { + if (KE(e, Pc)) throw JE(SV); + return (t.facade = e), lDe(e, Pc, t), t; + }), + (Q1 = function (e) { + return KE(e, Pc) ? e[Pc] : {}; + }), + (Z6 = function (e) { + return KE(e, Pc); + })); + var To, Pc; + xV.exports = { set: Q6, get: Q1, has: Z6, enforce: dDe, getterFor: fDe }; +}); +var ZE = d((EFt, TV) => { + var YE = di(), + mDe = ti(), + OV = Function.prototype, + hDe = YE && Object.getOwnPropertyDescriptor, + QE = mDe(OV, 'name'), + gDe = QE && function () {}.name === 'something', + vDe = QE && (!YE || (YE && hDe(OV, 'name').configurable)); + TV.exports = { EXISTS: QE, PROPER: gDe, CONFIGURABLE: vDe }; +}); +var e4 = d((CV) => { + var yDe = di(), + bDe = ME(), + _De = In(), + wDe = Hi(), + SDe = Ra(), + EDe = J1(); + CV.f = + yDe && !bDe + ? Object.defineProperties + : function (t, r) { + wDe(t); + for (var n = SDe(r), a = EDe(r), o = a.length, s = 0, l; o > s; ) _De.f(t, (l = a[s++]), n[l]); + return t; + }; +}); +var ex = d((OFt, kV) => { + var xDe = un(); + kV.exports = xDe('document', 'documentElement'); +}); +var am = d((TFt, NV) => { + var ODe = Hi(), + TDe = e4(), + AV = J6(), + CDe = nm(), + kDe = ex(), + ADe = z6(), + IDe = Y1(), + IV = '>', + PV = '<', + rx = 'prototype', + ix = 'script', + jV = IDe('IE_PROTO'), + tx = function () {}, + DV = function (e) { + return PV + ix + IV + e + PV + '/' + ix + IV; + }, + RV = function (e) { + e.write(DV('')), e.close(); + var t = e.parentWindow.Object; + return (e = null), t; + }, + PDe = function () { + var e = ADe('iframe'), + t = 'java' + ix + ':', + r; + return ( + (e.style.display = 'none'), + kDe.appendChild(e), + (e.src = String(t)), + (r = e.contentWindow.document), + r.open(), + r.write(DV('document.F=Object')), + r.close(), + r.F + ); + }, + t4, + r4 = function () { + try { + t4 = new ActiveXObject('htmlfile'); + } catch {} + r4 = typeof document < 'u' ? (document.domain && t4 ? RV(t4) : PDe()) : RV(t4); + for (var e = AV.length; e--; ) delete r4[rx][AV[e]]; + return r4(); + }; + CDe[jV] = !0; + NV.exports = + Object.create || + function (t, r) { + var n; + return ( + t !== null ? ((tx[rx] = ODe(t)), (n = new tx()), (tx[rx] = null), (n[jV] = t)) : (n = r4()), + r === void 0 ? n : TDe.f(n, r) + ); + }; +}); +var FV = d((CFt, qV) => { + var RDe = vt(); + qV.exports = !RDe(function () { + function e() {} + return (e.prototype.constructor = null), Object.getPrototypeOf(new e()) !== e.prototype; + }); +}); +var i4 = d((kFt, MV) => { + var jDe = ti(), + DDe = $t(), + NDe = El(), + qDe = Y1(), + FDe = FV(), + LV = qDe('IE_PROTO'), + nx = Object, + LDe = nx.prototype; + MV.exports = FDe + ? nx.getPrototypeOf + : function (e) { + var t = NDe(e); + if (jDe(t, LV)) return t[LV]; + var r = t.constructor; + return DDe(r) && t instanceof r ? r.prototype : t instanceof nx ? LDe : null; + }; +}); +var Tl = d((AFt, UV) => { + var MDe = ps(); + UV.exports = function (e, t, r, n) { + return n && n.enumerable ? (e[t] = r) : MDe(e, t, r), e; + }; +}); +var lx = d((IFt, VV) => { + 'use strict'; + var UDe = vt(), + $De = $t(), + BDe = Lr(), + VDe = am(), + $V = i4(), + zDe = Tl(), + HDe = Yt(), + GDe = Oo(), + sx = HDe('iterator'), + BV = !1, + Cl, + ax, + ox; + [].keys && ((ox = [].keys()), 'next' in ox ? ((ax = $V($V(ox))), ax !== Object.prototype && (Cl = ax)) : (BV = !0)); + var WDe = + !BDe(Cl) || + UDe(function () { + var e = {}; + return Cl[sx].call(e) !== e; + }); + WDe ? (Cl = {}) : GDe && (Cl = VDe(Cl)); + $De(Cl[sx]) || + zDe(Cl, sx, function () { + return this; + }); + VV.exports = { IteratorPrototype: Cl, BUGGY_SAFARI_ITERATORS: BV }; +}); +var n4 = d((PFt, HV) => { + var KDe = Yt(), + XDe = KDe('toStringTag'), + zV = {}; + zV[XDe] = 'z'; + HV.exports = String(zV) === '[object z]'; +}); +var Uu = d((RFt, GV) => { + var JDe = n4(), + YDe = $t(), + a4 = wl(), + QDe = Yt(), + ZDe = QDe('toStringTag'), + eNe = Object, + tNe = + a4( + (function () { + return arguments; + })() + ) == 'Arguments', + rNe = function (e, t) { + try { + return e[t]; + } catch {} + }; + GV.exports = JDe + ? a4 + : function (e) { + var t, r, n; + return e === void 0 + ? 'Undefined' + : e === null + ? 'Null' + : typeof (r = rNe((t = eNe(e)), ZDe)) == 'string' + ? r + : tNe + ? a4(t) + : (n = a4(t)) == 'Object' && YDe(t.callee) + ? 'Arguments' + : n; + }; +}); +var KV = d((jFt, WV) => { + 'use strict'; + var iNe = n4(), + nNe = Uu(); + WV.exports = iNe + ? {}.toString + : function () { + return '[object ' + nNe(this) + ']'; + }; +}); +var $u = d((DFt, JV) => { + var aNe = n4(), + oNe = In().f, + sNe = ps(), + lNe = ti(), + uNe = KV(), + pNe = Yt(), + XV = pNe('toStringTag'); + JV.exports = function (e, t, r, n) { + if (e) { + var a = r ? e : e.prototype; + lNe(a, XV) || oNe(a, XV, { configurable: !0, value: t }), n && !aNe && sNe(a, 'toString', uNe); + } + }; +}); +var QV = d((NFt, YV) => { + 'use strict'; + var cNe = lx().IteratorPrototype, + dNe = am(), + fNe = Fu(), + mNe = $u(), + hNe = Ic(), + gNe = function () { + return this; + }; + YV.exports = function (e, t, r, n) { + var a = t + ' Iterator'; + return (e.prototype = dNe(cNe, { next: fNe(+!n, r) })), mNe(e, a, !1, !0), (hNe[a] = gNe), e; + }; +}); +var ez = d((qFt, ZV) => { + var vNe = $t(), + yNe = String, + bNe = TypeError; + ZV.exports = function (e) { + if (typeof e == 'object' || vNe(e)) return e; + throw bNe("Can't set " + yNe(e) + ' as a prototype'); + }; +}); +var o4 = d((FFt, tz) => { + var _Ne = _t(), + wNe = Hi(), + SNe = ez(); + tz.exports = + Object.setPrototypeOf || + ('__proto__' in {} + ? (function () { + var e = !1, + t = {}, + r; + try { + (r = _Ne(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set)), + r(t, []), + (e = t instanceof Array); + } catch {} + return function (a, o) { + return wNe(a), SNe(o), e ? r(a, o) : (a.__proto__ = o), a; + }; + })() + : void 0); +}); +var u4 = d((LFt, cz) => { + 'use strict'; + var ENe = ve(), + xNe = Tr(), + s4 = Oo(), + uz = ZE(), + ONe = $t(), + TNe = QV(), + rz = i4(), + iz = o4(), + CNe = $u(), + kNe = ps(), + ux = Tl(), + ANe = Yt(), + nz = Ic(), + pz = lx(), + INe = uz.PROPER, + PNe = uz.CONFIGURABLE, + az = pz.IteratorPrototype, + l4 = pz.BUGGY_SAFARI_ITERATORS, + Z1 = ANe('iterator'), + oz = 'keys', + e0 = 'values', + sz = 'entries', + lz = function () { + return this; + }; + cz.exports = function (e, t, r, n, a, o, s) { + TNe(r, t, n); + var l = function (w) { + if (w === a && h) return h; + if (!l4 && w in c) return c[w]; + switch (w) { + case oz: + return function () { + return new r(this, w); + }; + case e0: + return function () { + return new r(this, w); + }; + case sz: + return function () { + return new r(this, w); + }; + } + return function () { + return new r(this); + }; + }, + u = t + ' Iterator', + p = !1, + c = e.prototype, + f = c[Z1] || c['@@iterator'] || (a && c[a]), + h = (!l4 && f) || l(a), + m = (t == 'Array' && c.entries) || f, + v, + y, + S; + if ( + (m && + ((v = rz(m.call(new e()))), + v !== Object.prototype && + v.next && + (!s4 && rz(v) !== az && (iz ? iz(v, az) : ONe(v[Z1]) || ux(v, Z1, lz)), + CNe(v, u, !0, !0), + s4 && (nz[u] = lz))), + INe && + a == e0 && + f && + f.name !== e0 && + (!s4 && PNe + ? kNe(c, 'name', e0) + : ((p = !0), + (h = function () { + return xNe(f, this); + }))), + a) + ) + if (((y = { values: l(e0), keys: o ? h : l(oz), entries: l(sz) }), s)) + for (S in y) (l4 || p || !(S in c)) && ux(c, S, y[S]); + else ENe({ target: t, proto: !0, forced: l4 || p }, y); + return (!s4 || s) && c[Z1] !== h && ux(c, Z1, h, { name: a }), (nz[t] = h), y; + }; +}); +var p4 = d((MFt, dz) => { + dz.exports = function (e, t) { + return { value: e, done: t }; + }; +}); +var Rc = d((UFt, vz) => { + 'use strict'; + var RNe = Ra(), + px = Y6(), + fz = Ic(), + hz = Ol(), + jNe = In().f, + DNe = u4(), + c4 = p4(), + NNe = Oo(), + qNe = di(), + gz = 'Array Iterator', + FNe = hz.set, + LNe = hz.getterFor(gz); + vz.exports = DNe( + Array, + 'Array', + function (e, t) { + FNe(this, { type: gz, target: RNe(e), index: 0, kind: t }); + }, + function () { + var e = LNe(this), + t = e.target, + r = e.kind, + n = e.index++; + return !t || n >= t.length + ? ((e.target = void 0), c4(void 0, !0)) + : r == 'keys' + ? c4(n, !1) + : r == 'values' + ? c4(t[n], !1) + : c4([n, t[n]], !1); + }, + 'values' + ); + var mz = (fz.Arguments = fz.Array); + px('keys'); + px('values'); + px('entries'); + if (!NNe && qNe && mz.name !== 'values') + try { + jNe(mz, 'name', { value: 'values' }); + } catch {} +}); +var bz = d(($Ft, yz) => { + yz.exports = { + CSSRuleList: 0, + CSSStyleDeclaration: 0, + CSSValueList: 0, + ClientRectList: 0, + DOMRectList: 0, + DOMStringList: 0, + DOMTokenList: 1, + DataTransferItemList: 0, + FileList: 0, + HTMLAllCollection: 0, + HTMLCollection: 0, + HTMLFormElement: 0, + HTMLSelectElement: 0, + MediaList: 0, + MimeTypeArray: 0, + NamedNodeMap: 0, + NodeList: 1, + PaintRequestList: 0, + Plugin: 0, + PluginArray: 0, + SVGLengthList: 0, + SVGNumberList: 0, + SVGPathSegList: 0, + SVGPointList: 0, + SVGStringList: 0, + SVGTransformList: 0, + SourceBufferList: 0, + StyleSheetList: 0, + TextTrackCueList: 0, + TextTrackList: 0, + TouchList: 0, + }; +}); +var Bu = d(() => { + Rc(); + var MNe = bz(), + UNe = It(), + $Ne = Uu(), + BNe = ps(), + _z = Ic(), + VNe = Yt(), + wz = VNe('toStringTag'); + for (d4 in MNe) + (cx = UNe[d4]), (f4 = cx && cx.prototype), f4 && $Ne(f4) !== wz && BNe(f4, wz, d4), (_z[d4] = _z.Array); + var cx, f4, d4; +}); +var jc = d((zFt, Sz) => { + var zNe = wl(); + Sz.exports = + Array.isArray || + function (t) { + return zNe(t) == 'Array'; + }; +}); +var fx = d((HFt, Ez) => { + var HNe = _t(), + GNe = $t(), + dx = V6(), + WNe = HNe(Function.toString); + GNe(dx.inspectSource) || + (dx.inspectSource = function (e) { + return WNe(e); + }); + Ez.exports = dx.inspectSource; +}); +var m4 = d((GFt, kz) => { + var KNe = _t(), + XNe = vt(), + xz = $t(), + JNe = Uu(), + YNe = un(), + QNe = fx(), + Oz = function () {}, + ZNe = [], + Tz = YNe('Reflect', 'construct'), + mx = /^\s*(?:class|function)\b/, + eqe = KNe(mx.exec), + tqe = !mx.exec(Oz), + t0 = function (t) { + if (!xz(t)) return !1; + try { + return Tz(Oz, ZNe, t), !0; + } catch { + return !1; + } + }, + Cz = function (t) { + if (!xz(t)) return !1; + switch (JNe(t)) { + case 'AsyncFunction': + case 'GeneratorFunction': + case 'AsyncGeneratorFunction': + return !1; + } + try { + return tqe || !!eqe(mx, QNe(t)); + } catch { + return !0; + } + }; + Cz.sham = !0; + kz.exports = + !Tz || + XNe(function () { + var e; + return ( + t0(t0.call) || + !t0(Object) || + !t0(function () { + e = !0; + }) || + e + ); + }) + ? Cz + : t0; +}); +var Rz = d((WFt, Pz) => { + var Az = jc(), + rqe = m4(), + iqe = Lr(), + nqe = Yt(), + aqe = nqe('species'), + Iz = Array; + Pz.exports = function (e) { + var t; + return ( + Az(e) && + ((t = e.constructor), + rqe(t) && (t === Iz || Az(t.prototype)) ? (t = void 0) : iqe(t) && ((t = t[aqe]), t === null && (t = void 0))), + t === void 0 ? Iz : t + ); + }; +}); +var hx = d((KFt, jz) => { + var oqe = Rz(); + jz.exports = function (e, t) { + return new (oqe(e))(t === 0 ? 0 : t); + }; +}); +var zu = d((XFt, Nz) => { + var sqe = Mu(), + lqe = _t(), + uqe = U6(), + pqe = El(), + cqe = xl(), + dqe = hx(), + Dz = lqe([].push), + Vu = function (e) { + var t = e == 1, + r = e == 2, + n = e == 3, + a = e == 4, + o = e == 6, + s = e == 7, + l = e == 5 || o; + return function (u, p, c, f) { + for ( + var h = pqe(u), + m = uqe(h), + v = sqe(p, c), + y = cqe(m), + S = 0, + w = f || dqe, + O = t ? w(u, y) : r || s ? w(u, 0) : void 0, + x, + _; + y > S; + S++ + ) + if ((l || S in m) && ((x = m[S]), (_ = v(x, S, h)), e)) + if (t) O[S] = _; + else if (_) + switch (e) { + case 3: + return !0; + case 5: + return x; + case 6: + return S; + case 2: + Dz(O, x); + } + else + switch (e) { + case 4: + return !1; + case 7: + Dz(O, x); + } + return o ? -1 : n || a ? a : O; + }; + }; + Nz.exports = { + forEach: Vu(0), + map: Vu(1), + filter: Vu(2), + some: Vu(3), + every: Vu(4), + find: Vu(5), + findIndex: Vu(6), + filterReject: Vu(7), + }; +}); +var r0 = d((JFt, qz) => { + 'use strict'; + var fqe = vt(); + qz.exports = function (e, t) { + var r = [][e]; + return ( + !!r && + fqe(function () { + r.call( + null, + t || + function () { + return 1; + }, + 1 + ); + }) + ); + }; +}); +var Lz = d((YFt, Fz) => { + 'use strict'; + var mqe = zu().forEach, + hqe = r0(), + gqe = hqe('forEach'); + Fz.exports = gqe + ? [].forEach + : function (t) { + return mqe(this, t, arguments.length > 1 ? arguments[1] : void 0); + }; +}); +var Uz = d(() => { + 'use strict'; + var vqe = ve(), + Mz = Lz(); + vqe({ target: 'Array', proto: !0, forced: [].forEach != Mz }, { forEach: Mz }); +}); +var pn = d((eLt, $z) => { + var yqe = or(); + $z.exports = function (e) { + return yqe[e + 'Prototype']; + }; +}); +var Vz = d((tLt, Bz) => { + Uz(); + var bqe = pn(); + Bz.exports = bqe('Array').forEach; +}); +var Hz = d((rLt, zz) => { + var _qe = Vz(); + zz.exports = _qe; +}); +var Wz = d((iLt, Gz) => { + Bu(); + var wqe = Uu(), + Sqe = ti(), + Eqe = ei(), + xqe = Hz(), + gx = Array.prototype, + Oqe = { DOMTokenList: !0, NodeList: !0 }; + Gz.exports = function (e) { + var t = e.forEach; + return e === gx || (Eqe(gx, e) && t === gx.forEach) || Sqe(Oqe, wqe(e)) ? xqe : t; + }; +}); +var Bt = d((nLt, Kz) => { + Kz.exports = Wz(); +}); +var Ce = d((aLt, i0) => { + function Tqe(e) { + return e && e.__esModule ? e : { default: e }; + } + (i0.exports = Tqe), (i0.exports.__esModule = !0), (i0.exports.default = i0.exports); +}); +var Jz = d(() => { + var Cqe = ve(), + kqe = di(), + Xz = In().f; + Cqe({ target: 'Object', stat: !0, forced: Object.defineProperty !== Xz, sham: !kqe }, { defineProperty: Xz }); +}); +var Zz = d((lLt, Qz) => { + Jz(); + var Aqe = or(), + Yz = Aqe.Object, + Iqe = (Qz.exports = function (t, r, n) { + return Yz.defineProperty(t, r, n); + }); + Yz.defineProperty.sham && (Iqe.sham = !0); +}); +var vx = d((uLt, eH) => { + var Pqe = Zz(); + eH.exports = Pqe; +}); +var ge = d((pLt, tH) => { + tH.exports = vx(); +}); +var iH = d((cLt, rH) => { + var Rqe = TypeError, + jqe = 9007199254740991; + rH.exports = function (e) { + if (e > jqe) throw Rqe('Maximum allowed index exceeded'); + return e; + }; +}); +var n0 = d((dLt, nH) => { + 'use strict'; + var Dqe = K1(), + Nqe = In(), + qqe = Fu(); + nH.exports = function (e, t, r) { + var n = Dqe(t); + n in e ? Nqe.f(e, n, qqe(0, r)) : (e[n] = r); + }; +}); +var a0 = d((fLt, aH) => { + var Fqe = vt(), + Lqe = Yt(), + Mqe = Oc(), + Uqe = Lqe('species'); + aH.exports = function (e) { + return ( + Mqe >= 51 || + !Fqe(function () { + var t = [], + r = (t.constructor = {}); + return ( + (r[Uqe] = function () { + return { foo: 1 }; + }), + t[e](Boolean).foo !== 1 + ); + }) + ); + }; +}); +var yx = d(() => { + 'use strict'; + var $qe = ve(), + Bqe = vt(), + Vqe = jc(), + zqe = Lr(), + Hqe = El(), + Gqe = xl(), + oH = iH(), + sH = n0(), + Wqe = hx(), + Kqe = a0(), + Xqe = Yt(), + Jqe = Oc(), + lH = Xqe('isConcatSpreadable'), + Yqe = + Jqe >= 51 || + !Bqe(function () { + var e = []; + return (e[lH] = !1), e.concat()[0] !== e; + }), + Qqe = Kqe('concat'), + Zqe = function (e) { + if (!zqe(e)) return !1; + var t = e[lH]; + return t !== void 0 ? !!t : Vqe(e); + }, + eFe = !Yqe || !Qqe; + $qe( + { target: 'Array', proto: !0, arity: 1, forced: eFe }, + { + concat: function (t) { + var r = Hqe(this), + n = Wqe(r, 0), + a = 0, + o, + s, + l, + u, + p; + for (o = -1, l = arguments.length; o < l; o++) + if (((p = o === -1 ? r : arguments[o]), Zqe(p))) + for (u = Gqe(p), oH(a + u), s = 0; s < u; s++, a++) s in p && sH(n, a, p[s]); + else oH(a + 1), sH(n, a++, p); + return (n.length = a), n; + }, + } + ); +}); +var Dc = d(() => {}); +var cs = d((yLt, uH) => { + var tFe = Uu(), + rFe = String; + uH.exports = function (e) { + if (tFe(e) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string'); + return rFe(e); + }; +}); +var o0 = d((pH) => { + var iFe = HE(), + nFe = J6(), + aFe = nFe.concat('length', 'prototype'); + pH.f = + Object.getOwnPropertyNames || + function (t) { + return iFe(t, aFe); + }; +}); +var bx = d((_Lt, dH) => { + var cH = K6(), + oFe = xl(), + sFe = n0(), + lFe = Array, + uFe = Math.max; + dH.exports = function (e, t, r) { + for (var n = oFe(e), a = cH(t, n), o = cH(r === void 0 ? n : r, n), s = lFe(uFe(o - a, 0)), l = 0; a < o; a++, l++) + sFe(s, l, e[a]); + return (s.length = l), s; + }; +}); +var _x = d((wLt, hH) => { + var pFe = wl(), + cFe = Ra(), + fH = o0().f, + dFe = bx(), + mH = typeof window == 'object' && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [], + fFe = function (e) { + try { + return fH(e); + } catch { + return dFe(mH); + } + }; + hH.exports.f = function (t) { + return mH && pFe(t) == 'Window' ? fFe(t) : fH(cFe(t)); + }; +}); +var h4 = d((gH) => { + gH.f = Object.getOwnPropertySymbols; +}); +var s0 = d((vH) => { + var mFe = Yt(); + vH.f = mFe; +}); +var sr = d((xLt, bH) => { + var yH = or(), + hFe = ti(), + gFe = s0(), + vFe = In().f; + bH.exports = function (e) { + var t = yH.Symbol || (yH.Symbol = {}); + hFe(t, e) || vFe(t, e, { value: gFe.f(e) }); + }; +}); +var wx = d((OLt, _H) => { + var yFe = Tr(), + bFe = un(), + _Fe = Yt(), + wFe = Tl(); + _H.exports = function () { + var e = bFe('Symbol'), + t = e && e.prototype, + r = t && t.valueOf, + n = _Fe('toPrimitive'); + t && + !t[n] && + wFe( + t, + n, + function (a) { + return yFe(r, this); + }, + { arity: 1 } + ); + }; +}); +var qH = d(() => { + 'use strict'; + var g4 = ve(), + Ix = It(), + Px = Tr(), + SFe = _t(), + EFe = Oo(), + om = di(), + sm = Tc(), + xFe = vt(), + fi = ti(), + OFe = ei(), + Ox = Hi(), + v4 = Ra(), + Rx = K1(), + TFe = cs(), + Tx = Fu(), + u0 = am(), + EH = J1(), + CFe = o0(), + xH = _x(), + kFe = h4(), + OH = Ac(), + TH = In(), + AFe = e4(), + CH = M6(), + Sx = Tl(), + jx = em(), + IFe = Y1(), + kH = nm(), + wH = W1(), + PFe = Yt(), + RFe = s0(), + jFe = sr(), + DFe = wx(), + NFe = $u(), + AH = Ol(), + y4 = zu().forEach, + Pn = IFe('hidden'), + b4 = 'Symbol', + p0 = 'prototype', + qFe = AH.set, + SH = AH.getterFor(b4), + ja = Object[p0], + Nc = Ix.Symbol, + l0 = Nc && Nc[p0], + FFe = Ix.TypeError, + Ex = Ix.QObject, + IH = OH.f, + Hu = TH.f, + PH = xH.f, + LFe = CH.f, + RH = SFe([].push), + kl = jx('symbols'), + c0 = jx('op-symbols'), + MFe = jx('wks'), + Cx = !Ex || !Ex[p0] || !Ex[p0].findChild, + kx = + om && + xFe(function () { + return ( + u0( + Hu({}, 'a', { + get: function () { + return Hu(this, 'a', { value: 7 }).a; + }, + }) + ).a != 7 + ); + }) + ? function (e, t, r) { + var n = IH(ja, t); + n && delete ja[t], Hu(e, t, r), n && e !== ja && Hu(ja, t, n); + } + : Hu, + xx = function (e, t) { + var r = (kl[e] = u0(l0)); + return qFe(r, { type: b4, tag: e, description: t }), om || (r.description = t), r; + }, + _4 = function (t, r, n) { + t === ja && _4(c0, r, n), Ox(t); + var a = Rx(r); + return ( + Ox(n), + fi(kl, a) + ? (n.enumerable + ? (fi(t, Pn) && t[Pn][a] && (t[Pn][a] = !1), (n = u0(n, { enumerable: Tx(0, !1) }))) + : (fi(t, Pn) || Hu(t, Pn, Tx(1, {})), (t[Pn][a] = !0)), + kx(t, a, n)) + : Hu(t, a, n) + ); + }, + Dx = function (t, r) { + Ox(t); + var n = v4(r), + a = EH(n).concat(NH(n)); + return ( + y4(a, function (o) { + (!om || Px(Ax, n, o)) && _4(t, o, n[o]); + }), + t + ); + }, + UFe = function (t, r) { + return r === void 0 ? u0(t) : Dx(u0(t), r); + }, + Ax = function (t) { + var r = Rx(t), + n = Px(LFe, this, r); + return this === ja && fi(kl, r) && !fi(c0, r) + ? !1 + : n || !fi(this, r) || !fi(kl, r) || (fi(this, Pn) && this[Pn][r]) + ? n + : !0; + }, + jH = function (t, r) { + var n = v4(t), + a = Rx(r); + if (!(n === ja && fi(kl, a) && !fi(c0, a))) { + var o = IH(n, a); + return o && fi(kl, a) && !(fi(n, Pn) && n[Pn][a]) && (o.enumerable = !0), o; + } + }, + DH = function (t) { + var r = PH(v4(t)), + n = []; + return ( + y4(r, function (a) { + !fi(kl, a) && !fi(kH, a) && RH(n, a); + }), + n + ); + }, + NH = function (e) { + var t = e === ja, + r = PH(t ? c0 : v4(e)), + n = []; + return ( + y4(r, function (a) { + fi(kl, a) && (!t || fi(ja, a)) && RH(n, kl[a]); + }), + n + ); + }; + sm || + ((Nc = function () { + if (OFe(l0, this)) throw FFe('Symbol is not a constructor'); + var t = !arguments.length || arguments[0] === void 0 ? void 0 : TFe(arguments[0]), + r = wH(t), + n = function (a) { + this === ja && Px(n, c0, a), fi(this, Pn) && fi(this[Pn], r) && (this[Pn][r] = !1), kx(this, r, Tx(1, a)); + }; + return om && Cx && kx(ja, r, { configurable: !0, set: n }), xx(r, t); + }), + (l0 = Nc[p0]), + Sx(l0, 'toString', function () { + return SH(this).tag; + }), + Sx(Nc, 'withoutSetter', function (e) { + return xx(wH(e), e); + }), + (CH.f = Ax), + (TH.f = _4), + (AFe.f = Dx), + (OH.f = jH), + (CFe.f = xH.f = DH), + (kFe.f = NH), + (RFe.f = function (e) { + return xx(PFe(e), e); + }), + om && + (Hu(l0, 'description', { + configurable: !0, + get: function () { + return SH(this).description; + }, + }), + EFe || Sx(ja, 'propertyIsEnumerable', Ax, { unsafe: !0 }))); + g4({ global: !0, constructor: !0, wrap: !0, forced: !sm, sham: !sm }, { Symbol: Nc }); + y4(EH(MFe), function (e) { + jFe(e); + }); + g4( + { target: b4, stat: !0, forced: !sm }, + { + useSetter: function () { + Cx = !0; + }, + useSimple: function () { + Cx = !1; + }, + } + ); + g4( + { target: 'Object', stat: !0, forced: !sm, sham: !om }, + { create: UFe, defineProperty: _4, defineProperties: Dx, getOwnPropertyDescriptor: jH } + ); + g4({ target: 'Object', stat: !0, forced: !sm }, { getOwnPropertyNames: DH }); + DFe(); + NFe(Nc, b4); + kH[Pn] = !0; +}); +var Nx = d((kLt, FH) => { + var $Fe = Tc(); + FH.exports = $Fe && !!Symbol.for && !!Symbol.keyFor; +}); +var MH = d(() => { + var BFe = ve(), + VFe = un(), + zFe = ti(), + HFe = cs(), + LH = em(), + GFe = Nx(), + qx = LH('string-to-symbol-registry'), + WFe = LH('symbol-to-string-registry'); + BFe( + { target: 'Symbol', stat: !0, forced: !GFe }, + { + for: function (e) { + var t = HFe(e); + if (zFe(qx, t)) return qx[t]; + var r = VFe('Symbol')(t); + return (qx[t] = r), (WFe[r] = t), r; + }, + } + ); +}); +var $H = d(() => { + var KFe = ve(), + XFe = ti(), + JFe = G1(), + YFe = Cc(), + QFe = em(), + ZFe = Nx(), + UH = QFe('symbol-to-string-registry'); + KFe( + { target: 'Symbol', stat: !0, forced: !ZFe }, + { + keyFor: function (t) { + if (!JFe(t)) throw TypeError(YFe(t) + ' is not a symbol'); + if (XFe(UH, t)) return UH[t]; + }, + } + ); +}); +var lm = d((jLt, BH) => { + var eLe = _t(); + BH.exports = eLe([].slice); +}); +var Fx = d(() => { + var tLe = ve(), + XH = un(), + JH = Qf(), + rLe = Tr(), + d0 = _t(), + YH = vt(), + iLe = jc(), + nLe = $t(), + aLe = Lr(), + VH = G1(), + QH = lm(), + oLe = Tc(), + Gu = XH('JSON', 'stringify'), + w4 = d0(/./.exec), + zH = d0(''.charAt), + sLe = d0(''.charCodeAt), + lLe = d0(''.replace), + uLe = d0((1).toString), + pLe = /[\uD800-\uDFFF]/g, + HH = /^[\uD800-\uDBFF]$/, + GH = /^[\uDC00-\uDFFF]$/, + WH = + !oLe || + YH(function () { + var e = XH('Symbol')(); + return Gu([e]) != '[null]' || Gu({ a: e }) != '{}' || Gu(Object(e)) != '{}'; + }), + KH = YH(function () { + return Gu('\uDF06\uD834') !== '"\\udf06\\ud834"' || Gu('\uDEAD') !== '"\\udead"'; + }), + cLe = function (e, t) { + var r = QH(arguments), + n = t; + if (!((!aLe(t) && e === void 0) || VH(e))) + return ( + iLe(t) || + (t = function (a, o) { + if ((nLe(n) && (o = rLe(n, this, a, o)), !VH(o))) return o; + }), + (r[1] = t), + JH(Gu, null, r) + ); + }, + dLe = function (e, t, r) { + var n = zH(r, t - 1), + a = zH(r, t + 1); + return (w4(HH, e) && !w4(GH, a)) || (w4(GH, e) && !w4(HH, n)) ? '\\u' + uLe(sLe(e, 0), 16) : e; + }; + Gu && + tLe( + { target: 'JSON', stat: !0, arity: 3, forced: WH || KH }, + { + stringify: function (t, r, n) { + var a = QH(arguments), + o = JH(WH ? cLe : Gu, null, a); + return KH && typeof o == 'string' ? lLe(o, pLe, dLe) : o; + }, + } + ); +}); +var eG = d(() => { + var fLe = ve(), + mLe = Tc(), + hLe = vt(), + ZH = h4(), + gLe = El(), + vLe = + !mLe || + hLe(function () { + ZH.f(1); + }); + fLe( + { target: 'Object', stat: !0, forced: vLe }, + { + getOwnPropertySymbols: function (t) { + var r = ZH.f; + return r ? r(gLe(t)) : []; + }, + } + ); +}); +var Lx = d(() => { + qH(); + MH(); + $H(); + Fx(); + eG(); +}); +var tG = d(() => { + var yLe = sr(); + yLe('asyncIterator'); +}); +var rG = d(() => {}); +var iG = d(() => { + var bLe = sr(); + bLe('hasInstance'); +}); +var nG = d(() => { + var _Le = sr(); + _Le('isConcatSpreadable'); +}); +var Mx = d(() => { + var wLe = sr(); + wLe('iterator'); +}); +var aG = d(() => { + var SLe = sr(); + SLe('match'); +}); +var oG = d(() => { + var ELe = sr(); + ELe('matchAll'); +}); +var sG = d(() => { + var xLe = sr(); + xLe('replace'); +}); +var lG = d(() => { + var OLe = sr(); + OLe('search'); +}); +var uG = d(() => { + var TLe = sr(); + TLe('species'); +}); +var pG = d(() => { + var CLe = sr(); + CLe('split'); +}); +var Ux = d(() => { + var kLe = sr(), + ALe = wx(); + kLe('toPrimitive'); + ALe(); +}); +var cG = d(() => { + var ILe = un(), + PLe = sr(), + RLe = $u(); + PLe('toStringTag'); + RLe(ILe('Symbol'), 'Symbol'); +}); +var dG = d(() => { + var jLe = sr(); + jLe('unscopables'); +}); +var fG = d(() => { + var DLe = It(), + NLe = $u(); + NLe(DLe.JSON, 'JSON', !0); +}); +var mG = d(() => {}); +var hG = d(() => {}); +var vG = d((_Mt, gG) => { + yx(); + Dc(); + Lx(); + tG(); + rG(); + iG(); + nG(); + Mx(); + aG(); + oG(); + sG(); + lG(); + uG(); + pG(); + Ux(); + cG(); + dG(); + fG(); + mG(); + hG(); + var qLe = or(); + gG.exports = qLe.Symbol; +}); +var bG = d((wMt, yG) => { + var FLe = vG(); + Bu(); + yG.exports = FLe; +}); +var wG = d((SMt, _G) => { + var LLe = bG(); + _G.exports = LLe; +}); +var SG = d(() => { + var MLe = sr(); + MLe('asyncDispose'); +}); +var EG = d(() => { + var ULe = sr(); + ULe('dispose'); +}); +var xG = d(() => { + var $Le = sr(); + $Le('matcher'); +}); +var OG = d(() => { + var BLe = sr(); + BLe('metadataKey'); +}); +var TG = d(() => { + var VLe = sr(); + VLe('observable'); +}); +var CG = d(() => { + var zLe = sr(); + zLe('metadata'); +}); +var kG = d(() => { + var HLe = sr(); + HLe('patternMatch'); +}); +var AG = d(() => { + var GLe = sr(); + GLe('replaceAll'); +}); +var PG = d((MMt, IG) => { + var WLe = wG(); + SG(); + EG(); + xG(); + OG(); + TG(); + CG(); + kG(); + AG(); + IG.exports = WLe; +}); +var jG = d((UMt, RG) => { + RG.exports = PG(); +}); +var NG = d(($Mt, DG) => { + DG.exports = jG(); +}); +var MG = d((BMt, LG) => { + var $x = _t(), + KLe = W6(), + XLe = cs(), + JLe = Zf(), + YLe = $x(''.charAt), + qG = $x(''.charCodeAt), + QLe = $x(''.slice), + FG = function (e) { + return function (t, r) { + var n = XLe(JLe(t)), + a = KLe(r), + o = n.length, + s, + l; + return a < 0 || a >= o + ? e + ? '' + : void 0 + : ((s = qG(n, a)), + s < 55296 || s > 56319 || a + 1 === o || (l = qG(n, a + 1)) < 56320 || l > 57343 + ? e + ? YLe(n, a) + : s + : e + ? QLe(n, a, a + 2) + : ((s - 55296) << 10) + (l - 56320) + 65536); + }; + }; + LG.exports = { codeAt: FG(!1), charAt: FG(!0) }; +}); +var f0 = d(() => { + 'use strict'; + var ZLe = MG().charAt, + eMe = cs(), + $G = Ol(), + tMe = u4(), + UG = p4(), + BG = 'String Iterator', + rMe = $G.set, + iMe = $G.getterFor(BG); + tMe( + String, + 'String', + function (e) { + rMe(this, { type: BG, string: eMe(e), index: 0 }); + }, + function () { + var t = iMe(this), + r = t.string, + n = t.index, + a; + return n >= r.length ? UG(void 0, !0) : ((a = ZLe(r, n)), (t.index += a.length), UG(a, !1)); + } + ); +}); +var zG = d((HMt, VG) => { + Rc(); + Dc(); + f0(); + Mx(); + var nMe = s0(); + VG.exports = nMe.f('iterator'); +}); +var GG = d((GMt, HG) => { + var aMe = zG(); + Bu(); + HG.exports = aMe; +}); +var KG = d((WMt, WG) => { + var oMe = GG(); + WG.exports = oMe; +}); +var JG = d((KMt, XG) => { + var sMe = KG(); + XG.exports = sMe; +}); +var QG = d((XMt, YG) => { + YG.exports = JG(); +}); +var eW = d((JMt, ZG) => { + ZG.exports = QG(); +}); +var tW = d((YMt, Al) => { + var S4 = NG(), + lMe = eW(); + function Bx(e) { + '@babel/helpers - typeof'; + return ( + (Al.exports = Bx = + typeof S4 == 'function' && typeof lMe == 'symbol' + ? function (t) { + return typeof t; + } + : function (t) { + return t && typeof S4 == 'function' && t.constructor === S4 && t !== S4.prototype ? 'symbol' : typeof t; + }), + (Al.exports.__esModule = !0), + (Al.exports.default = Al.exports), + Bx(e) + ); + } + (Al.exports = Bx), (Al.exports.__esModule = !0), (Al.exports.default = Al.exports); +}); +var E4 = d((QMt, rW) => { + var uMe = Tl(); + rW.exports = function (e, t, r) { + for (var n in t) r && r.unsafe && e[n] ? (e[n] = t[n]) : uMe(e, n, t[n], r); + return e; + }; +}); +var nW = d((ZMt, iW) => { + var pMe = vt(); + iW.exports = pMe(function () { + if (typeof ArrayBuffer == 'function') { + var e = new ArrayBuffer(8); + Object.isExtensible(e) && Object.defineProperty(e, 'a', { value: 8 }); + } + }); +}); +var Vx = d((eUt, oW) => { + var cMe = vt(), + dMe = Lr(), + fMe = wl(), + aW = nW(), + x4 = Object.isExtensible, + mMe = cMe(function () { + x4(1); + }); + oW.exports = + mMe || aW + ? function (t) { + return !dMe(t) || (aW && fMe(t) == 'ArrayBuffer') ? !1 : x4 ? x4(t) : !0; + } + : x4; +}); +var lW = d((tUt, sW) => { + var hMe = vt(); + sW.exports = !hMe(function () { + return Object.isExtensible(Object.preventExtensions({})); + }); +}); +var m0 = d((rUt, cW) => { + var gMe = ve(), + vMe = _t(), + yMe = nm(), + bMe = Lr(), + zx = ti(), + _Me = In().f, + uW = o0(), + wMe = _x(), + Hx = Vx(), + SMe = W1(), + EMe = lW(), + pW = !1, + Il = SMe('meta'), + xMe = 0, + Gx = function (e) { + _Me(e, Il, { value: { objectID: 'O' + xMe++, weakData: {} } }); + }, + OMe = function (e, t) { + if (!bMe(e)) return typeof e == 'symbol' ? e : (typeof e == 'string' ? 'S' : 'P') + e; + if (!zx(e, Il)) { + if (!Hx(e)) return 'F'; + if (!t) return 'E'; + Gx(e); + } + return e[Il].objectID; + }, + TMe = function (e, t) { + if (!zx(e, Il)) { + if (!Hx(e)) return !0; + if (!t) return !1; + Gx(e); + } + return e[Il].weakData; + }, + CMe = function (e) { + return EMe && pW && Hx(e) && !zx(e, Il) && Gx(e), e; + }, + kMe = function () { + (AMe.enable = function () {}), (pW = !0); + var e = uW.f, + t = vMe([].splice), + r = {}; + (r[Il] = 1), + e(r).length && + ((uW.f = function (n) { + for (var a = e(n), o = 0, s = a.length; o < s; o++) + if (a[o] === Il) { + t(a, o, 1); + break; + } + return a; + }), + gMe({ target: 'Object', stat: !0, forced: !0 }, { getOwnPropertyNames: wMe.f })); + }, + AMe = (cW.exports = { enable: kMe, fastKey: OMe, getWeakData: TMe, onFreeze: CMe }); + yMe[Il] = !0; +}); +var fW = d((iUt, dW) => { + var IMe = Yt(), + PMe = Ic(), + RMe = IMe('iterator'), + jMe = Array.prototype; + dW.exports = function (e) { + return e !== void 0 && (PMe.Array === e || jMe[RMe] === e); + }; +}); +var Wx = d((nUt, hW) => { + var DMe = Uu(), + mW = B6(), + NMe = Lu(), + qMe = Ic(), + FMe = Yt(), + LMe = FMe('iterator'); + hW.exports = function (e) { + if (!NMe(e)) return mW(e, LMe) || mW(e, '@@iterator') || qMe[DMe(e)]; + }; +}); +var vW = d((aUt, gW) => { + var MMe = Tr(), + UMe = zi(), + $Me = Hi(), + BMe = Cc(), + VMe = Wx(), + zMe = TypeError; + gW.exports = function (e, t) { + var r = arguments.length < 2 ? VMe(e) : t; + if (UMe(r)) return $Me(MMe(r, e)); + throw zMe(BMe(e) + ' is not iterable'); + }; +}); +var _W = d((oUt, bW) => { + var HMe = Tr(), + yW = Hi(), + GMe = B6(); + bW.exports = function (e, t, r) { + var n, a; + yW(e); + try { + if (((n = GMe(e, 'return')), !n)) { + if (t === 'throw') throw r; + return r; + } + n = HMe(n, e); + } catch (o) { + (a = !0), (n = o); + } + if (t === 'throw') throw r; + if (a) throw n; + return yW(n), r; + }; +}); +var ds = d((sUt, xW) => { + var WMe = Mu(), + KMe = Tr(), + XMe = Hi(), + JMe = Cc(), + YMe = fW(), + QMe = xl(), + wW = ei(), + ZMe = vW(), + eUe = Wx(), + SW = _W(), + tUe = TypeError, + O4 = function (e, t) { + (this.stopped = e), (this.result = t); + }, + EW = O4.prototype; + xW.exports = function (e, t, r) { + var n = r && r.that, + a = !!(r && r.AS_ENTRIES), + o = !!(r && r.IS_RECORD), + s = !!(r && r.IS_ITERATOR), + l = !!(r && r.INTERRUPTED), + u = WMe(t, n), + p, + c, + f, + h, + m, + v, + y, + S = function (O) { + return p && SW(p, 'normal', O), new O4(!0, O); + }, + w = function (O) { + return a ? (XMe(O), l ? u(O[0], O[1], S) : u(O[0], O[1])) : l ? u(O, S) : u(O); + }; + if (o) p = e.iterator; + else if (s) p = e; + else { + if (((c = eUe(e)), !c)) throw tUe(JMe(e) + ' is not iterable'); + if (YMe(c)) { + for (f = 0, h = QMe(e); h > f; f++) if (((m = w(e[f])), m && wW(EW, m))) return m; + return new O4(!1); + } + p = ZMe(e, c); + } + for (v = o ? e.next : p.next; !(y = KMe(v, p)).done; ) { + try { + m = w(y.value); + } catch (O) { + SW(p, 'throw', O); + } + if (typeof m == 'object' && m && wW(EW, m)) return m; + } + return new O4(!1); + }; +}); +var h0 = d((lUt, OW) => { + var rUe = ei(), + iUe = TypeError; + OW.exports = function (e, t) { + if (rUe(t, e)) return e; + throw iUe('Incorrect invocation'); + }; +}); +var Kx = d((uUt, CW) => { + 'use strict'; + var nUe = ve(), + aUe = It(), + oUe = m0(), + sUe = vt(), + lUe = ps(), + uUe = ds(), + pUe = h0(), + cUe = $t(), + dUe = Lr(), + fUe = $u(), + mUe = In().f, + hUe = zu().forEach, + gUe = di(), + TW = Ol(), + vUe = TW.set, + yUe = TW.getterFor; + CW.exports = function (e, t, r) { + var n = e.indexOf('Map') !== -1, + a = e.indexOf('Weak') !== -1, + o = n ? 'set' : 'add', + s = aUe[e], + l = s && s.prototype, + u = {}, + p; + if ( + !gUe || + !cUe(s) || + !( + a || + (l.forEach && + !sUe(function () { + new s().entries().next(); + })) + ) + ) + (p = r.getConstructor(t, e, n, o)), oUe.enable(); + else { + p = t(function (h, m) { + vUe(pUe(h, c), { type: e, collection: new s() }), m != null && uUe(m, h[o], { that: h, AS_ENTRIES: n }); + }); + var c = p.prototype, + f = yUe(e); + hUe(['add', 'clear', 'delete', 'forEach', 'get', 'has', 'set', 'keys', 'values', 'entries'], function (h) { + var m = h == 'add' || h == 'set'; + h in l && + !(a && h == 'clear') && + lUe(c, h, function (v, y) { + var S = f(this).collection; + if (!m && a && !dUe(v)) return h == 'get' ? void 0 : !1; + var w = S[h](v === 0 ? 0 : v, y); + return m ? this : w; + }); + }), + a || + mUe(c, 'size', { + configurable: !0, + get: function () { + return f(this).collection.size; + }, + }); + } + return fUe(p, e, !1, !0), (u[e] = p), nUe({ global: !0, forced: !0 }, u), a || r.setStrong(p, e, n), p; + }; +}); +var DW = d((pUt, jW) => { + 'use strict'; + var bUe = _t(), + kW = E4(), + T4 = m0().getWeakData, + _Ue = h0(), + wUe = Hi(), + SUe = Lu(), + Xx = Lr(), + EUe = ds(), + IW = zu(), + AW = ti(), + PW = Ol(), + xUe = PW.set, + OUe = PW.getterFor, + TUe = IW.find, + CUe = IW.findIndex, + kUe = bUe([].splice), + AUe = 0, + C4 = function (e) { + return e.frozen || (e.frozen = new RW()); + }, + RW = function () { + this.entries = []; + }, + Jx = function (e, t) { + return TUe(e.entries, function (r) { + return r[0] === t; + }); + }; + RW.prototype = { + get: function (e) { + var t = Jx(this, e); + if (t) return t[1]; + }, + has: function (e) { + return !!Jx(this, e); + }, + set: function (e, t) { + var r = Jx(this, e); + r ? (r[1] = t) : this.entries.push([e, t]); + }, + delete: function (e) { + var t = CUe(this.entries, function (r) { + return r[0] === e; + }); + return ~t && kUe(this.entries, t, 1), !!~t; + }, + }; + jW.exports = { + getConstructor: function (e, t, r, n) { + var a = e(function (u, p) { + _Ue(u, o), xUe(u, { type: t, id: AUe++, frozen: void 0 }), SUe(p) || EUe(p, u[n], { that: u, AS_ENTRIES: r }); + }), + o = a.prototype, + s = OUe(t), + l = function (u, p, c) { + var f = s(u), + h = T4(wUe(p), !0); + return h === !0 ? C4(f).set(p, c) : (h[f.id] = c), u; + }; + return ( + kW(o, { + delete: function (u) { + var p = s(this); + if (!Xx(u)) return !1; + var c = T4(u); + return c === !0 ? C4(p).delete(u) : c && AW(c, p.id) && delete c[p.id]; + }, + has: function (p) { + var c = s(this); + if (!Xx(p)) return !1; + var f = T4(p); + return f === !0 ? C4(c).has(p) : f && AW(f, c.id); + }, + }), + kW( + o, + r + ? { + get: function (p) { + var c = s(this); + if (Xx(p)) { + var f = T4(p); + return f === !0 ? C4(c).get(p) : f ? f[c.id] : void 0; + } + }, + set: function (p, c) { + return l(this, p, c); + }, + } + : { + add: function (p) { + return l(this, p, !0); + }, + } + ), + a + ); + }, + }; +}); +var LW = d(() => { + 'use strict'; + var NW = It(), + k4 = _t(), + IUe = E4(), + PUe = m0(), + RUe = Kx(), + qW = DW(), + A4 = Lr(), + I4 = Vx(), + P4 = Ol().enforce, + jUe = WE(), + DUe = !NW.ActiveXObject && 'ActiveXObject' in NW, + g0, + FW = function (e) { + return function () { + return e(this, arguments.length ? arguments[0] : void 0); + }; + }, + NUe = RUe('WeakMap', FW, qW); + jUe && + DUe && + ((g0 = qW.getConstructor(FW, 'WeakMap', !0)), + PUe.enable(), + (um = NUe.prototype), + (Yx = k4(um.delete)), + (v0 = k4(um.has)), + (Qx = k4(um.get)), + (Zx = k4(um.set)), + IUe(um, { + delete: function (e) { + if (A4(e) && !I4(e)) { + var t = P4(this); + return t.frozen || (t.frozen = new g0()), Yx(this, e) || t.frozen.delete(e); + } + return Yx(this, e); + }, + has: function (t) { + if (A4(t) && !I4(t)) { + var r = P4(this); + return r.frozen || (r.frozen = new g0()), v0(this, t) || r.frozen.has(t); + } + return v0(this, t); + }, + get: function (t) { + if (A4(t) && !I4(t)) { + var r = P4(this); + return r.frozen || (r.frozen = new g0()), v0(this, t) ? Qx(this, t) : r.frozen.get(t); + } + return Qx(this, t); + }, + set: function (t, r) { + if (A4(t) && !I4(t)) { + var n = P4(this); + n.frozen || (n.frozen = new g0()), v0(this, t) ? Zx(this, t, r) : n.frozen.set(t, r); + } else Zx(this, t, r); + return this; + }, + })); + var um, Yx, v0, Qx, Zx; +}); +var MW = d(() => { + LW(); +}); +var $W = d((hUt, UW) => { + Rc(); + Dc(); + MW(); + var qUe = or(); + UW.exports = qUe.WeakMap; +}); +var eO = d((gUt, BW) => { + var FUe = $W(); + Bu(); + BW.exports = FUe; +}); +var zW = d((vUt, VW) => { + var LUe = eO(); + VW.exports = LUe; +}); +var GW = d((yUt, HW) => { + 'use strict'; + var R4 = Tr(), + tO = zi(), + MUe = Hi(); + HW.exports = function (t, r) { + var n = MUe(this), + a = tO(n.get), + o = tO(n.has), + s = tO(n.set), + l, + u; + return R4(o, n, t) + ? ((l = R4(a, n, t)), 'update' in r && ((l = r.update(l, t, n)), R4(s, n, t, l)), l) + : ((u = r.insert(t, n)), R4(s, n, t, u), u); + }; +}); +var WW = d(() => { + 'use strict'; + var UUe = ve(), + $Ue = GW(); + UUe({ target: 'WeakMap', proto: !0, real: !0, forced: !0 }, { emplace: $Ue }); +}); +var rO = d((wUt, KW) => { + var BUe = m4(), + VUe = Cc(), + zUe = TypeError; + KW.exports = function (e) { + if (BUe(e)) return e; + throw zUe(VUe(e) + ' is not a constructor'); + }; +}); +var QW = d((SUt, YW) => { + 'use strict'; + var HUe = Mu(), + GUe = Tr(), + WUe = zi(), + KUe = rO(), + XUe = Lu(), + XW = ds(), + JW = [].push; + YW.exports = function (t) { + var r = arguments.length, + n = r > 1 ? arguments[1] : void 0, + a, + o, + s, + l; + return ( + KUe(this), + (a = n !== void 0), + a && WUe(n), + XUe(t) + ? new this() + : ((o = []), + a + ? ((s = 0), + (l = HUe(n, r > 2 ? arguments[2] : void 0)), + XW(t, function (u) { + GUe(JW, o, l(u, s++)); + })) + : XW(t, JW, { that: o }), + new this(o)) + ); + }; +}); +var ZW = d(() => { + var JUe = ve(), + YUe = QW(); + JUe({ target: 'WeakMap', stat: !0, forced: !0 }, { from: YUe }); +}); +var tK = d((OUt, eK) => { + 'use strict'; + var QUe = lm(); + eK.exports = function () { + return new this(QUe(arguments)); + }; +}); +var rK = d(() => { + var ZUe = ve(), + e$e = tK(); + ZUe({ target: 'WeakMap', stat: !0, forced: !0 }, { of: e$e }); +}); +var nK = d((kUt, iK) => { + 'use strict'; + var t$e = Tr(), + r$e = zi(), + i$e = Hi(); + iK.exports = function () { + for (var t = i$e(this), r = r$e(t.delete), n = !0, a, o = 0, s = arguments.length; o < s; o++) + (a = t$e(r, t, arguments[o])), (n = n && a); + return !!n; + }; +}); +var aK = d(() => { + 'use strict'; + var n$e = ve(), + a$e = nK(); + n$e({ target: 'WeakMap', proto: !0, real: !0, forced: !0 }, { deleteAll: a$e }); +}); +var sK = d((PUt, oK) => { + 'use strict'; + var j4 = Tr(), + iO = zi(), + D4 = $t(), + o$e = Hi(), + s$e = TypeError; + oK.exports = function (t, r) { + var n = o$e(this), + a = iO(n.get), + o = iO(n.has), + s = iO(n.set), + l = arguments.length > 2 ? arguments[2] : void 0, + u; + if (!D4(r) && !D4(l)) throw s$e('At least one callback required'); + return ( + j4(o, n, t) ? ((u = j4(a, n, t)), D4(r) && ((u = r(u)), j4(s, n, t, u))) : D4(l) && ((u = l()), j4(s, n, t, u)), u + ); + }; +}); +var lK = d(() => { + 'use strict'; + var l$e = ve(), + u$e = sK(); + l$e({ target: 'WeakMap', proto: !0, real: !0, forced: !0 }, { upsert: u$e }); +}); +var pK = d((DUt, uK) => { + var p$e = zW(); + f0(); + WW(); + ZW(); + rK(); + aK(); + lK(); + uK.exports = p$e; +}); +var dK = d((NUt, cK) => { + cK.exports = pK(); +}); +var mK = d((qUt, fK) => { + fK.exports = dK(); +}); +var gK = d((FUt, hK) => { + var c$e = vx(); + hK.exports = c$e; +}); +var yK = d((LUt, vK) => { + var d$e = gK(); + vK.exports = d$e; +}); +var _K = d((MUt, bK) => { + bK.exports = yK(); +}); +var nO = d((UUt, wK) => { + wK.exports = _K(); +}); +var xK = d(() => { + var f$e = ve(), + m$e = vt(), + h$e = Ra(), + SK = Ac().f, + EK = di(), + g$e = m$e(function () { + SK(1); + }), + v$e = !EK || g$e; + f$e( + { target: 'Object', stat: !0, forced: v$e, sham: !EK }, + { + getOwnPropertyDescriptor: function (t, r) { + return SK(h$e(t), r); + }, + } + ); +}); +var CK = d((VUt, TK) => { + xK(); + var y$e = or(), + OK = y$e.Object, + b$e = (TK.exports = function (t, r) { + return OK.getOwnPropertyDescriptor(t, r); + }); + OK.getOwnPropertyDescriptor.sham && (b$e.sham = !0); +}); +var aO = d((zUt, kK) => { + var _$e = CK(); + kK.exports = _$e; +}); +var IK = d((HUt, AK) => { + var w$e = aO(); + AK.exports = w$e; +}); +var RK = d((GUt, PK) => { + var S$e = IK(); + PK.exports = S$e; +}); +var DK = d((WUt, jK) => { + jK.exports = RK(); +}); +var qK = d((KUt, NK) => { + NK.exports = DK(); +}); +var Pl = d((XUt, y0) => { + var E$e = tW().default, + oO = mK(), + FK = nO(), + LK = qK(); + function MK(e) { + if (typeof oO != 'function') return null; + var t = new oO(), + r = new oO(); + return (MK = function (a) { + return a ? r : t; + })(e); + } + function x$e(e, t) { + if (!t && e && e.__esModule) return e; + if (e === null || (E$e(e) !== 'object' && typeof e != 'function')) return { default: e }; + var r = MK(t); + if (r && r.has(e)) return r.get(e); + var n = {}, + a = FK && LK; + for (var o in e) + if (o !== 'default' && Object.prototype.hasOwnProperty.call(e, o)) { + var s = a ? LK(e, o) : null; + s && (s.get || s.set) ? FK(n, o, s) : (n[o] = e[o]); + } + return (n.default = e), r && r.set(e, n), n; + } + (y0.exports = x$e), (y0.exports.__esModule = !0), (y0.exports.default = y0.exports); +}); +var Mr = d((JUt, UK) => { + UK.exports = function (e) { + try { + return !!e(); + } catch { + return !0; + } + }; +}); +var b0 = d((YUt, $K) => { + var O$e = Mr(); + $K.exports = !O$e(function () { + var e = function () {}.bind(); + return typeof e != 'function' || e.hasOwnProperty('prototype'); + }); +}); +var lO = d((QUt, zK) => { + var BK = b0(), + VK = Function.prototype, + sO = VK.call, + T$e = BK && VK.bind.bind(sO, sO); + zK.exports = function (e) { + return BK + ? T$e(e) + : function () { + return sO.apply(e, arguments); + }; + }; +}); +var pm = d((ZUt, GK) => { + var HK = lO(), + C$e = HK({}.toString), + k$e = HK(''.slice); + GK.exports = function (e) { + return k$e(C$e(e), 8, -1); + }; +}); +var mi = d((e$t, WK) => { + var A$e = pm(), + I$e = lO(); + WK.exports = function (e) { + if (A$e(e) === 'Function') return I$e(e); + }; +}); +var XK = d((t$t, KK) => { + var P$e = mi(), + R$e = Mr(), + j$e = pm(), + uO = Object, + D$e = P$e(''.split); + KK.exports = R$e(function () { + return !uO('z').propertyIsEnumerable(0); + }) + ? function (e) { + return j$e(e) == 'String' ? D$e(e, '') : uO(e); + } + : uO; +}); +var cm = d((r$t, JK) => { + JK.exports = function (e) { + return e == null; + }; +}); +var _0 = d((i$t, YK) => { + var N$e = cm(), + q$e = TypeError; + YK.exports = function (e) { + if (N$e(e)) throw q$e("Can't call method on " + e); + return e; + }; +}); +var dm = d((n$t, QK) => { + var F$e = XK(), + L$e = _0(); + QK.exports = function (e) { + return F$e(L$e(e)); + }; +}); +var Cr = d((a$t, ZK) => { + var N4 = function (e) { + return e && e.Math == Math && e; + }; + ZK.exports = + N4(typeof globalThis == 'object' && globalThis) || + N4(typeof window == 'object' && window) || + N4(typeof self == 'object' && self) || + N4(typeof global == 'object' && global) || + (function () { + return this; + })() || + Function('return this')(); +}); +var Rl = d((o$t, eX) => { + eX.exports = !1; +}); +var q4 = d((s$t, rX) => { + var tX = Cr(), + M$e = Object.defineProperty; + rX.exports = function (e, t) { + try { + M$e(tX, e, { value: t, configurable: !0, writable: !0 }); + } catch { + tX[e] = t; + } + return t; + }; +}); +var F4 = d((l$t, nX) => { + var U$e = Cr(), + $$e = q4(), + iX = '__core-js_shared__', + B$e = U$e[iX] || $$e(iX, {}); + nX.exports = B$e; +}); +var L4 = d((u$t, oX) => { + var V$e = Rl(), + aX = F4(); + (oX.exports = function (e, t) { + return aX[e] || (aX[e] = t !== void 0 ? t : {}); + })('versions', []).push({ + version: '3.25.5', + mode: V$e ? 'pure' : 'global', + copyright: '\xA9 2014-2022 Denis Pushkarev (zloirock.ru)', + license: 'https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE', + source: 'https://github.com/zloirock/core-js', + }); +}); +var w0 = d((p$t, sX) => { + var z$e = _0(), + H$e = Object; + sX.exports = function (e) { + return H$e(z$e(e)); + }; +}); +var Co = d((c$t, lX) => { + var G$e = mi(), + W$e = w0(), + K$e = G$e({}.hasOwnProperty); + lX.exports = + Object.hasOwn || + function (t, r) { + return K$e(W$e(t), r); + }; +}); +var pO = d((d$t, uX) => { + var X$e = mi(), + J$e = 0, + Y$e = Math.random(), + Q$e = X$e((1).toString); + uX.exports = function (e) { + return 'Symbol(' + (e === void 0 ? '' : e) + ')_' + Q$e(++J$e + Y$e, 36); + }; +}); +var dO = d((f$t, pX) => { + var cO = typeof document == 'object' && document.all, + Z$e = typeof cO > 'u' && cO !== void 0; + pX.exports = { all: cO, IS_HTMLDDA: Z$e }; +}); +var lr = d((m$t, dX) => { + var cX = dO(), + eBe = cX.all; + dX.exports = cX.IS_HTMLDDA + ? function (e) { + return typeof e == 'function' || e === eBe; + } + : function (e) { + return typeof e == 'function'; + }; +}); +var jl = d((h$t, fX) => { + var fO = Cr(), + tBe = lr(), + rBe = function (e) { + return tBe(e) ? e : void 0; + }; + fX.exports = function (e, t) { + return arguments.length < 2 ? rBe(fO[e]) : fO[e] && fO[e][t]; + }; +}); +var Wu = d((g$t, mX) => { + var iBe = jl(); + mX.exports = iBe('navigator', 'userAgent') || ''; +}); +var U4 = d((v$t, _X) => { + var bX = Cr(), + mO = Wu(), + hX = bX.process, + gX = bX.Deno, + vX = (hX && hX.versions) || (gX && gX.version), + yX = vX && vX.v8, + ko, + M4; + yX && ((ko = yX.split('.')), (M4 = ko[0] > 0 && ko[0] < 4 ? 1 : +(ko[0] + ko[1]))); + !M4 && + mO && + ((ko = mO.match(/Edge\/(\d+)/)), (!ko || ko[1] >= 74) && ((ko = mO.match(/Chrome\/(\d+)/)), ko && (M4 = +ko[1]))); + _X.exports = M4; +}); +var hO = d((y$t, SX) => { + var wX = U4(), + nBe = Mr(); + SX.exports = + !!Object.getOwnPropertySymbols && + !nBe(function () { + var e = Symbol(); + return !String(e) || !(Object(e) instanceof Symbol) || (!Symbol.sham && wX && wX < 41); + }); +}); +var gO = d((b$t, EX) => { + var aBe = hO(); + EX.exports = aBe && !Symbol.sham && typeof Symbol.iterator == 'symbol'; +}); +var Gi = d((_$t, kX) => { + var oBe = Cr(), + sBe = L4(), + xX = Co(), + lBe = pO(), + OX = hO(), + CX = gO(), + fm = sBe('wks'), + qc = oBe.Symbol, + TX = qc && qc.for, + uBe = CX ? qc : (qc && qc.withoutSetter) || lBe; + kX.exports = function (e) { + if (!xX(fm, e) || !(OX || typeof fm[e] == 'string')) { + var t = 'Symbol.' + e; + OX && xX(qc, e) ? (fm[e] = qc[e]) : CX && TX ? (fm[e] = TX(t)) : (fm[e] = uBe(t)); + } + return fm[e]; + }; +}); +var Dl = d((w$t, PX) => { + var AX = lr(), + IX = dO(), + pBe = IX.all; + PX.exports = IX.IS_HTMLDDA + ? function (e) { + return typeof e == 'object' ? e !== null : AX(e) || e === pBe; + } + : function (e) { + return typeof e == 'object' ? e !== null : AX(e); + }; +}); +var Rn = d((S$t, RX) => { + var cBe = Dl(), + dBe = String, + fBe = TypeError; + RX.exports = function (e) { + if (cBe(e)) return e; + throw fBe(dBe(e) + ' is not an object'); + }; +}); +var Ao = d((E$t, jX) => { + var mBe = Mr(); + jX.exports = !mBe(function () { + return ( + Object.defineProperty({}, 1, { + get: function () { + return 7; + }, + })[1] != 7 + ); + }); +}); +var vO = d((x$t, DX) => { + var hBe = Ao(), + gBe = Mr(); + DX.exports = + hBe && + gBe(function () { + return Object.defineProperty(function () {}, 'prototype', { value: 42, writable: !1 }).prototype != 42; + }); +}); +var $4 = d((O$t, qX) => { + var vBe = Cr(), + NX = Dl(), + yO = vBe.document, + yBe = NX(yO) && NX(yO.createElement); + qX.exports = function (e) { + return yBe ? yO.createElement(e) : {}; + }; +}); +var bO = d((T$t, FX) => { + var bBe = Ao(), + _Be = Mr(), + wBe = $4(); + FX.exports = + !bBe && + !_Be(function () { + return ( + Object.defineProperty(wBe('div'), 'a', { + get: function () { + return 7; + }, + }).a != 7 + ); + }); +}); +var Wi = d((C$t, LX) => { + var SBe = b0(), + B4 = Function.prototype.call; + LX.exports = SBe + ? B4.bind(B4) + : function () { + return B4.apply(B4, arguments); + }; +}); +var V4 = d((k$t, MX) => { + var EBe = mi(); + MX.exports = EBe({}.isPrototypeOf); +}); +var _O = d((A$t, UX) => { + var xBe = jl(), + OBe = lr(), + TBe = V4(), + CBe = gO(), + kBe = Object; + UX.exports = CBe + ? function (e) { + return typeof e == 'symbol'; + } + : function (e) { + var t = xBe('Symbol'); + return OBe(t) && TBe(t.prototype, kBe(e)); + }; +}); +var mm = d((I$t, $X) => { + var ABe = String; + $X.exports = function (e) { + try { + return ABe(e); + } catch { + return 'Object'; + } + }; +}); +var Nl = d((P$t, BX) => { + var IBe = lr(), + PBe = mm(), + RBe = TypeError; + BX.exports = function (e) { + if (IBe(e)) return e; + throw RBe(PBe(e) + ' is not a function'); + }; +}); +var S0 = d((R$t, VX) => { + var jBe = Nl(), + DBe = cm(); + VX.exports = function (e, t) { + var r = e[t]; + return DBe(r) ? void 0 : jBe(r); + }; +}); +var HX = d((j$t, zX) => { + var wO = Wi(), + SO = lr(), + EO = Dl(), + NBe = TypeError; + zX.exports = function (e, t) { + var r, n; + if ( + (t === 'string' && SO((r = e.toString)) && !EO((n = wO(r, e)))) || + (SO((r = e.valueOf)) && !EO((n = wO(r, e)))) || + (t !== 'string' && SO((r = e.toString)) && !EO((n = wO(r, e)))) + ) + return n; + throw NBe("Can't convert object to primitive value"); + }; +}); +var XX = d((D$t, KX) => { + var qBe = Wi(), + GX = Dl(), + WX = _O(), + FBe = S0(), + LBe = HX(), + MBe = Gi(), + UBe = TypeError, + $Be = MBe('toPrimitive'); + KX.exports = function (e, t) { + if (!GX(e) || WX(e)) return e; + var r = FBe(e, $Be), + n; + if (r) { + if ((t === void 0 && (t = 'default'), (n = qBe(r, e, t)), !GX(n) || WX(n))) return n; + throw UBe("Can't convert object to primitive value"); + } + return t === void 0 && (t = 'number'), LBe(e, t); + }; +}); +var z4 = d((N$t, JX) => { + var BBe = XX(), + VBe = _O(); + JX.exports = function (e) { + var t = BBe(e, 'string'); + return VBe(t) ? t : t + ''; + }; +}); +var fs = d((QX) => { + var zBe = Ao(), + HBe = bO(), + GBe = vO(), + H4 = Rn(), + YX = z4(), + WBe = TypeError, + xO = Object.defineProperty, + KBe = Object.getOwnPropertyDescriptor, + OO = 'enumerable', + TO = 'configurable', + CO = 'writable'; + QX.f = zBe + ? GBe + ? function (t, r, n) { + if ( + (H4(t), + (r = YX(r)), + H4(n), + typeof t == 'function' && r === 'prototype' && 'value' in n && CO in n && !n[CO]) + ) { + var a = KBe(t, r); + a && + a[CO] && + ((t[r] = n.value), + (n = { configurable: TO in n ? n[TO] : a[TO], enumerable: OO in n ? n[OO] : a[OO], writable: !1 })); + } + return xO(t, r, n); + } + : xO + : function (t, r, n) { + if ((H4(t), (r = YX(r)), H4(n), HBe)) + try { + return xO(t, r, n); + } catch {} + if ('get' in n || 'set' in n) throw WBe('Accessors not supported'); + return 'value' in n && (t[r] = n.value), t; + }; +}); +var eJ = d((F$t, ZX) => { + var XBe = Math.ceil, + JBe = Math.floor; + ZX.exports = + Math.trunc || + function (t) { + var r = +t; + return (r > 0 ? JBe : XBe)(r); + }; +}); +var E0 = d((L$t, tJ) => { + var YBe = eJ(); + tJ.exports = function (e) { + var t = +e; + return t !== t || t === 0 ? 0 : YBe(t); + }; +}); +var kO = d((M$t, rJ) => { + var QBe = E0(), + ZBe = Math.max, + eVe = Math.min; + rJ.exports = function (e, t) { + var r = QBe(e); + return r < 0 ? ZBe(r + t, 0) : eVe(r, t); + }; +}); +var AO = d((U$t, iJ) => { + var tVe = E0(), + rVe = Math.min; + iJ.exports = function (e) { + return e > 0 ? rVe(tVe(e), 9007199254740991) : 0; + }; +}); +var x0 = d(($$t, nJ) => { + var iVe = AO(); + nJ.exports = function (e) { + return iVe(e.length); + }; +}); +var sJ = d((B$t, oJ) => { + var nVe = dm(), + aVe = kO(), + oVe = x0(), + aJ = function (e) { + return function (t, r, n) { + var a = nVe(t), + o = oVe(a), + s = aVe(n, o), + l; + if (e && r != r) { + for (; o > s; ) if (((l = a[s++]), l != l)) return !0; + } else for (; o > s; s++) if ((e || s in a) && a[s] === r) return e || s || 0; + return !e && -1; + }; + }; + oJ.exports = { includes: aJ(!0), indexOf: aJ(!1) }; +}); +var G4 = d((V$t, lJ) => { + lJ.exports = {}; +}); +var PO = d((z$t, pJ) => { + var sVe = mi(), + IO = Co(), + lVe = dm(), + uVe = sJ().indexOf, + pVe = G4(), + uJ = sVe([].push); + pJ.exports = function (e, t) { + var r = lVe(e), + n = 0, + a = [], + o; + for (o in r) !IO(pVe, o) && IO(r, o) && uJ(a, o); + for (; t.length > n; ) IO(r, (o = t[n++])) && (~uVe(a, o) || uJ(a, o)); + return a; + }; +}); +var W4 = d((H$t, cJ) => { + cJ.exports = [ + 'constructor', + 'hasOwnProperty', + 'isPrototypeOf', + 'propertyIsEnumerable', + 'toLocaleString', + 'toString', + 'valueOf', + ]; +}); +var fJ = d((G$t, dJ) => { + var cVe = PO(), + dVe = W4(); + dJ.exports = + Object.keys || + function (t) { + return cVe(t, dVe); + }; +}); +var hJ = d((mJ) => { + var fVe = Ao(), + mVe = vO(), + hVe = fs(), + gVe = Rn(), + vVe = dm(), + yVe = fJ(); + mJ.f = + fVe && !mVe + ? Object.defineProperties + : function (t, r) { + gVe(t); + for (var n = vVe(r), a = yVe(r), o = a.length, s = 0, l; o > s; ) hVe.f(t, (l = a[s++]), n[l]); + return t; + }; +}); +var RO = d((K$t, gJ) => { + var bVe = jl(); + gJ.exports = bVe('document', 'documentElement'); +}); +var K4 = d((X$t, yJ) => { + var _Ve = L4(), + wVe = pO(), + vJ = _Ve('keys'); + yJ.exports = function (e) { + return vJ[e] || (vJ[e] = wVe(e)); + }; +}); +var O0 = d((J$t, OJ) => { + var SVe = Rn(), + EVe = hJ(), + bJ = W4(), + xVe = G4(), + OVe = RO(), + TVe = $4(), + CVe = K4(), + _J = '>', + wJ = '<', + DO = 'prototype', + NO = 'script', + EJ = CVe('IE_PROTO'), + jO = function () {}, + xJ = function (e) { + return wJ + NO + _J + e + wJ + '/' + NO + _J; + }, + SJ = function (e) { + e.write(xJ('')), e.close(); + var t = e.parentWindow.Object; + return (e = null), t; + }, + kVe = function () { + var e = TVe('iframe'), + t = 'java' + NO + ':', + r; + return ( + (e.style.display = 'none'), + OVe.appendChild(e), + (e.src = String(t)), + (r = e.contentWindow.document), + r.open(), + r.write(xJ('document.F=Object')), + r.close(), + r.F + ); + }, + X4, + J4 = function () { + try { + X4 = new ActiveXObject('htmlfile'); + } catch {} + J4 = typeof document < 'u' ? (document.domain && X4 ? SJ(X4) : kVe()) : SJ(X4); + for (var e = bJ.length; e--; ) delete J4[DO][bJ[e]]; + return J4(); + }; + xVe[EJ] = !0; + OJ.exports = + Object.create || + function (t, r) { + var n; + return ( + t !== null ? ((jO[DO] = SVe(t)), (n = new jO()), (jO[DO] = null), (n[EJ] = t)) : (n = J4()), + r === void 0 ? n : EVe.f(n, r) + ); + }; +}); +var CJ = d((Y$t, TJ) => { + var AVe = Gi(), + IVe = O0(), + PVe = fs().f, + qO = AVe('unscopables'), + FO = Array.prototype; + FO[qO] == null && PVe(FO, qO, { configurable: !0, value: IVe(null) }); + TJ.exports = function (e) { + FO[qO][e] = !0; + }; +}); +var hm = d((Q$t, kJ) => { + kJ.exports = {}; +}); +var PJ = d((Z$t, IJ) => { + var RVe = Cr(), + jVe = lr(), + AJ = RVe.WeakMap; + IJ.exports = jVe(AJ) && /native code/.test(String(AJ)); +}); +var T0 = d((eBt, RJ) => { + RJ.exports = function (e, t) { + return { enumerable: !(e & 1), configurable: !(e & 2), writable: !(e & 4), value: t }; + }; +}); +var C0 = d((tBt, jJ) => { + var DVe = Ao(), + NVe = fs(), + qVe = T0(); + jJ.exports = DVe + ? function (e, t, r) { + return NVe.f(e, t, qVe(1, r)); + } + : function (e, t, r) { + return (e[t] = r), e; + }; +}); +var A0 = d((rBt, qJ) => { + var FVe = PJ(), + NJ = Cr(), + LVe = Dl(), + MVe = C0(), + LO = Co(), + MO = F4(), + UVe = K4(), + $Ve = G4(), + DJ = 'Object already initialized', + UO = NJ.TypeError, + BVe = NJ.WeakMap, + Y4, + k0, + Q4, + VVe = function (e) { + return Q4(e) ? k0(e) : Y4(e, {}); + }, + zVe = function (e) { + return function (t) { + var r; + if (!LVe(t) || (r = k0(t)).type !== e) throw UO('Incompatible receiver, ' + e + ' required'); + return r; + }; + }; + FVe || MO.state + ? ((Io = MO.state || (MO.state = new BVe())), + (Io.get = Io.get), + (Io.has = Io.has), + (Io.set = Io.set), + (Y4 = function (e, t) { + if (Io.has(e)) throw UO(DJ); + return (t.facade = e), Io.set(e, t), t; + }), + (k0 = function (e) { + return Io.get(e) || {}; + }), + (Q4 = function (e) { + return Io.has(e); + })) + : ((Fc = UVe('state')), + ($Ve[Fc] = !0), + (Y4 = function (e, t) { + if (LO(e, Fc)) throw UO(DJ); + return (t.facade = e), MVe(e, Fc, t), t; + }), + (k0 = function (e) { + return LO(e, Fc) ? e[Fc] : {}; + }), + (Q4 = function (e) { + return LO(e, Fc); + })); + var Io, Fc; + qJ.exports = { set: Y4, get: k0, has: Q4, enforce: VVe, getterFor: zVe }; +}); +var UJ = d((MJ) => { + 'use strict'; + var FJ = {}.propertyIsEnumerable, + LJ = Object.getOwnPropertyDescriptor, + HVe = LJ && !FJ.call({ 1: 2 }, 1); + MJ.f = HVe + ? function (t) { + var r = LJ(this, t); + return !!r && r.enumerable; + } + : FJ; +}); +var Z4 = d((BJ) => { + var GVe = Ao(), + WVe = Wi(), + KVe = UJ(), + XVe = T0(), + JVe = dm(), + YVe = z4(), + QVe = Co(), + ZVe = bO(), + $J = Object.getOwnPropertyDescriptor; + BJ.f = GVe + ? $J + : function (t, r) { + if (((t = JVe(t)), (r = YVe(r)), ZVe)) + try { + return $J(t, r); + } catch {} + if (QVe(t, r)) return XVe(!WVe(KVe.f, t, r), t[r]); + }; +}); +var VO = d((aBt, zJ) => { + var $O = Ao(), + eze = Co(), + VJ = Function.prototype, + tze = $O && Object.getOwnPropertyDescriptor, + BO = eze(VJ, 'name'), + rze = BO && function () {}.name === 'something', + ize = BO && (!$O || ($O && tze(VJ, 'name').configurable)); + zJ.exports = { EXISTS: BO, PROPER: rze, CONFIGURABLE: ize }; +}); +var e_ = d((oBt, HJ) => { + var nze = mi(), + aze = lr(), + zO = F4(), + oze = nze(Function.toString); + aze(zO.inspectSource) || + (zO.inspectSource = function (e) { + return oze(e); + }); + HJ.exports = zO.inspectSource; +}); +var KJ = d((sBt, WJ) => { + var sze = Mr(), + lze = lr(), + t_ = Co(), + HO = Ao(), + uze = VO().CONFIGURABLE, + pze = e_(), + GJ = A0(), + cze = GJ.enforce, + dze = GJ.get, + r_ = Object.defineProperty, + fze = + HO && + !sze(function () { + return r_(function () {}, 'length', { value: 8 }).length !== 8; + }), + mze = String(String).split('String'), + hze = (WJ.exports = function (e, t, r) { + String(t).slice(0, 7) === 'Symbol(' && (t = '[' + String(t).replace(/^Symbol\(([^)]*)\)/, '$1') + ']'), + r && r.getter && (t = 'get ' + t), + r && r.setter && (t = 'set ' + t), + (!t_(e, 'name') || (uze && e.name !== t)) && + (HO ? r_(e, 'name', { value: t, configurable: !0 }) : (e.name = t)), + fze && r && t_(r, 'arity') && e.length !== r.arity && r_(e, 'length', { value: r.arity }); + try { + r && t_(r, 'constructor') && r.constructor + ? HO && r_(e, 'prototype', { writable: !1 }) + : e.prototype && (e.prototype = void 0); + } catch {} + var n = cze(e); + return t_(n, 'source') || (n.source = mze.join(typeof t == 'string' ? t : '')), e; + }); + Function.prototype.toString = hze(function () { + return (lze(this) && dze(this).source) || pze(this); + }, 'toString'); +}); +var Lc = d((lBt, XJ) => { + var gze = lr(), + vze = fs(), + yze = KJ(), + bze = q4(); + XJ.exports = function (e, t, r, n) { + n || (n = {}); + var a = n.enumerable, + o = n.name !== void 0 ? n.name : t; + if ((gze(r) && yze(r, o, n), n.global)) a ? (e[t] = r) : bze(t, r); + else { + try { + n.unsafe ? e[t] && (a = !0) : delete e[t]; + } catch {} + a + ? (e[t] = r) + : vze.f(e, t, { value: r, enumerable: !1, configurable: !n.nonConfigurable, writable: !n.nonWritable }); + } + return e; + }; +}); +var YJ = d((JJ) => { + var _ze = PO(), + wze = W4(), + Sze = wze.concat('length', 'prototype'); + JJ.f = + Object.getOwnPropertyNames || + function (t) { + return _ze(t, Sze); + }; +}); +var ZJ = d((QJ) => { + QJ.f = Object.getOwnPropertySymbols; +}); +var tY = d((cBt, eY) => { + var Eze = jl(), + xze = mi(), + Oze = YJ(), + Tze = ZJ(), + Cze = Rn(), + kze = xze([].concat); + eY.exports = + Eze('Reflect', 'ownKeys') || + function (t) { + var r = Oze.f(Cze(t)), + n = Tze.f; + return n ? kze(r, n(t)) : r; + }; +}); +var nY = d((dBt, iY) => { + var rY = Co(), + Aze = tY(), + Ize = Z4(), + Pze = fs(); + iY.exports = function (e, t, r) { + for (var n = Aze(t), a = Pze.f, o = Ize.f, s = 0; s < n.length; s++) { + var l = n[s]; + !rY(e, l) && !(r && rY(r, l)) && a(e, l, o(t, l)); + } + }; +}); +var GO = d((fBt, aY) => { + var Rze = Mr(), + jze = lr(), + Dze = /#|\.prototype\./, + I0 = function (e, t) { + var r = qze[Nze(e)]; + return r == Lze ? !0 : r == Fze ? !1 : jze(t) ? Rze(t) : !!t; + }, + Nze = (I0.normalize = function (e) { + return String(e).replace(Dze, '.').toLowerCase(); + }), + qze = (I0.data = {}), + Fze = (I0.NATIVE = 'N'), + Lze = (I0.POLYFILL = 'P'); + aY.exports = I0; +}); +var Po = d((mBt, oY) => { + var WO = Cr(), + Mze = Z4().f, + Uze = C0(), + $ze = Lc(), + Bze = q4(), + Vze = nY(), + zze = GO(); + oY.exports = function (e, t) { + var r = e.target, + n = e.global, + a = e.stat, + o, + s, + l, + u, + p, + c; + if ((n ? (s = WO) : a ? (s = WO[r] || Bze(r, {})) : (s = (WO[r] || {}).prototype), s)) + for (l in t) { + if ( + ((p = t[l]), + e.dontCallGetSet ? ((c = Mze(s, l)), (u = c && c.value)) : (u = s[l]), + (o = zze(n ? l : r + (a ? '.' : '#') + l, e.forced)), + !o && u !== void 0) + ) { + if (typeof p == typeof u) continue; + Vze(p, u); + } + (e.sham || (u && u.sham)) && Uze(p, 'sham', !0), $ze(s, l, p, e); + } + }; +}); +var lY = d((hBt, sY) => { + var Hze = Mr(); + sY.exports = !Hze(function () { + function e() {} + return (e.prototype.constructor = null), Object.getPrototypeOf(new e()) !== e.prototype; + }); +}); +var XO = d((gBt, pY) => { + var Gze = Co(), + Wze = lr(), + Kze = w0(), + Xze = K4(), + Jze = lY(), + uY = Xze('IE_PROTO'), + KO = Object, + Yze = KO.prototype; + pY.exports = Jze + ? KO.getPrototypeOf + : function (e) { + var t = Kze(e); + if (Gze(t, uY)) return t[uY]; + var r = t.constructor; + return Wze(r) && t instanceof r ? r.prototype : t instanceof KO ? Yze : null; + }; +}); +var ZO = d((vBt, fY) => { + 'use strict'; + var Qze = Mr(), + Zze = lr(), + eHe = Dl(), + tHe = O0(), + cY = XO(), + rHe = Lc(), + iHe = Gi(), + nHe = Rl(), + QO = iHe('iterator'), + dY = !1, + ql, + JO, + YO; + [].keys && ((YO = [].keys()), 'next' in YO ? ((JO = cY(cY(YO))), JO !== Object.prototype && (ql = JO)) : (dY = !0)); + var aHe = + !eHe(ql) || + Qze(function () { + var e = {}; + return ql[QO].call(e) !== e; + }); + aHe ? (ql = {}) : nHe && (ql = tHe(ql)); + Zze(ql[QO]) || + rHe(ql, QO, function () { + return this; + }); + fY.exports = { IteratorPrototype: ql, BUGGY_SAFARI_ITERATORS: dY }; +}); +var i_ = d((yBt, hY) => { + var oHe = fs().f, + sHe = Co(), + lHe = Gi(), + mY = lHe('toStringTag'); + hY.exports = function (e, t, r) { + e && !r && (e = e.prototype), e && !sHe(e, mY) && oHe(e, mY, { configurable: !0, value: t }); + }; +}); +var vY = d((bBt, gY) => { + 'use strict'; + var uHe = ZO().IteratorPrototype, + pHe = O0(), + cHe = T0(), + dHe = i_(), + fHe = hm(), + mHe = function () { + return this; + }; + gY.exports = function (e, t, r, n) { + var a = t + ' Iterator'; + return (e.prototype = pHe(uHe, { next: cHe(+!n, r) })), dHe(e, a, !1, !0), (fHe[a] = mHe), e; + }; +}); +var bY = d((_Bt, yY) => { + var hHe = lr(), + gHe = String, + vHe = TypeError; + yY.exports = function (e) { + if (typeof e == 'object' || hHe(e)) return e; + throw vHe("Can't set " + gHe(e) + ' as a prototype'); + }; +}); +var eT = d((wBt, _Y) => { + var yHe = mi(), + bHe = Rn(), + _He = bY(); + _Y.exports = + Object.setPrototypeOf || + ('__proto__' in {} + ? (function () { + var e = !1, + t = {}, + r; + try { + (r = yHe(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set)), + r(t, []), + (e = t instanceof Array); + } catch {} + return function (a, o) { + return bHe(a), _He(o), e ? r(a, o) : (a.__proto__ = o), a; + }; + })() + : void 0); +}); +var PY = d((SBt, IY) => { + 'use strict'; + var wHe = Po(), + SHe = Wi(), + n_ = Rl(), + kY = VO(), + EHe = lr(), + xHe = vY(), + wY = XO(), + SY = eT(), + OHe = i_(), + THe = C0(), + tT = Lc(), + CHe = Gi(), + EY = hm(), + AY = ZO(), + kHe = kY.PROPER, + AHe = kY.CONFIGURABLE, + xY = AY.IteratorPrototype, + a_ = AY.BUGGY_SAFARI_ITERATORS, + P0 = CHe('iterator'), + OY = 'keys', + R0 = 'values', + TY = 'entries', + CY = function () { + return this; + }; + IY.exports = function (e, t, r, n, a, o, s) { + xHe(r, t, n); + var l = function (w) { + if (w === a && h) return h; + if (!a_ && w in c) return c[w]; + switch (w) { + case OY: + return function () { + return new r(this, w); + }; + case R0: + return function () { + return new r(this, w); + }; + case TY: + return function () { + return new r(this, w); + }; + } + return function () { + return new r(this); + }; + }, + u = t + ' Iterator', + p = !1, + c = e.prototype, + f = c[P0] || c['@@iterator'] || (a && c[a]), + h = (!a_ && f) || l(a), + m = (t == 'Array' && c.entries) || f, + v, + y, + S; + if ( + (m && + ((v = wY(m.call(new e()))), + v !== Object.prototype && + v.next && + (!n_ && wY(v) !== xY && (SY ? SY(v, xY) : EHe(v[P0]) || tT(v, P0, CY)), + OHe(v, u, !0, !0), + n_ && (EY[u] = CY))), + kHe && + a == R0 && + f && + f.name !== R0 && + (!n_ && AHe + ? THe(c, 'name', R0) + : ((p = !0), + (h = function () { + return SHe(f, this); + }))), + a) + ) + if (((y = { values: l(R0), keys: o ? h : l(OY), entries: l(TY) }), s)) + for (S in y) (a_ || p || !(S in c)) && tT(c, S, y[S]); + else wHe({ target: t, proto: !0, forced: a_ || p }, y); + return (!n_ || s) && c[P0] !== h && tT(c, P0, h, { name: a }), (EY[t] = h), y; + }; +}); +var jY = d((EBt, RY) => { + RY.exports = function (e, t) { + return { value: e, done: t }; + }; +}); +var kr = d((xBt, LY) => { + 'use strict'; + var IHe = dm(), + rT = CJ(), + DY = hm(), + qY = A0(), + PHe = fs().f, + RHe = PY(), + o_ = jY(), + jHe = Rl(), + DHe = Ao(), + FY = 'Array Iterator', + NHe = qY.set, + qHe = qY.getterFor(FY); + LY.exports = RHe( + Array, + 'Array', + function (e, t) { + NHe(this, { type: FY, target: IHe(e), index: 0, kind: t }); + }, + function () { + var e = qHe(this), + t = e.target, + r = e.kind, + n = e.index++; + return !t || n >= t.length + ? ((e.target = void 0), o_(void 0, !0)) + : r == 'keys' + ? o_(n, !1) + : r == 'values' + ? o_(t[n], !1) + : o_([n, t[n]], !1); + }, + 'values' + ); + var NY = (DY.Arguments = DY.Array); + rT('keys'); + rT('values'); + rT('entries'); + if (!jHe && DHe && NY.name !== 'values') + try { + PHe(NY, 'name', { value: 'values' }); + } catch {} +}); +var Ye = d((OBt, j0) => { + var FHe = nO(); + function LHe(e, t, r) { + return t in e ? FHe(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : (e[t] = r), e; + } + (j0.exports = LHe), (j0.exports.__esModule = !0), (j0.exports.default = j0.exports); +}); +var iT = d((s_) => { + 'use strict'; + var MHe = ge(); + MHe(s_, '__esModule', { value: !0 }); + s_.default = void 0; + var UHe = '2.0.0-beta.8'; + s_.default = UHe; +}); +var MY = d(() => {}); +var $Y = d((ABt, UY) => { + MY(); + Ux(); + var $He = s0(); + UY.exports = $He.f('toPrimitive'); +}); +var VY = d((IBt, BY) => { + var BHe = $Y(); + BY.exports = BHe; +}); +var HY = d((PBt, zY) => { + zY.exports = VY(); +}); +var WY = d(() => { + var VHe = ve(), + zHe = di(), + GY = e4().f; + VHe({ target: 'Object', stat: !0, forced: Object.defineProperties !== GY, sham: !zHe }, { defineProperties: GY }); +}); +var JY = d((DBt, XY) => { + WY(); + var HHe = or(), + KY = HHe.Object, + GHe = (XY.exports = function (t, r) { + return KY.defineProperties(t, r); + }); + KY.defineProperties.sham && (GHe.sham = !0); +}); +var QY = d((NBt, YY) => { + var WHe = JY(); + YY.exports = WHe; +}); +var Ur = d((qBt, ZY) => { + ZY.exports = QY(); +}); +var nT = d((FBt, eQ) => { + var KHe = un(), + XHe = _t(), + JHe = o0(), + YHe = h4(), + QHe = Hi(), + ZHe = XHe([].concat); + eQ.exports = + KHe('Reflect', 'ownKeys') || + function (t) { + var r = JHe.f(QHe(t)), + n = YHe.f; + return n ? ZHe(r, n(t)) : r; + }; +}); +var tQ = d(() => { + var eGe = ve(), + tGe = di(), + rGe = nT(), + iGe = Ra(), + nGe = Ac(), + aGe = n0(); + eGe( + { target: 'Object', stat: !0, sham: !tGe }, + { + getOwnPropertyDescriptors: function (t) { + for (var r = iGe(t), n = nGe.f, a = rGe(r), o = {}, s = 0, l, u; a.length > s; ) + (u = n(r, (l = a[s++]))), u !== void 0 && aGe(o, l, u); + return o; + }, + } + ); +}); +var iQ = d((UBt, rQ) => { + tQ(); + var oGe = or(); + rQ.exports = oGe.Object.getOwnPropertyDescriptors; +}); +var aQ = d(($Bt, nQ) => { + var sGe = iQ(); + nQ.exports = sGe; +}); +var $r = d((BBt, oQ) => { + oQ.exports = aQ(); +}); +var Br = d((VBt, sQ) => { + sQ.exports = aO(); +}); +var lQ = d(() => { + 'use strict'; + var lGe = ve(), + uGe = zu().filter, + pGe = a0(), + cGe = pGe('filter'); + lGe( + { target: 'Array', proto: !0, forced: !cGe }, + { + filter: function (t) { + return uGe(this, t, arguments.length > 1 ? arguments[1] : void 0); + }, + } + ); +}); +var pQ = d((GBt, uQ) => { + lQ(); + var dGe = pn(); + uQ.exports = dGe('Array').filter; +}); +var dQ = d((WBt, cQ) => { + var fGe = ei(), + mGe = pQ(), + aT = Array.prototype; + cQ.exports = function (e) { + var t = e.filter; + return e === aT || (fGe(aT, e) && t === aT.filter) ? mGe : t; + }; +}); +var mQ = d((KBt, fQ) => { + var hGe = dQ(); + fQ.exports = hGe; +}); +var Qt = d((XBt, hQ) => { + hQ.exports = mQ(); +}); +var vQ = d((JBt, gQ) => { + Lx(); + var gGe = or(); + gQ.exports = gGe.Object.getOwnPropertySymbols; +}); +var oT = d((YBt, yQ) => { + var vGe = vQ(); + yQ.exports = vGe; +}); +var Vr = d((QBt, bQ) => { + bQ.exports = oT(); +}); +var D0 = d((ZBt, _Q) => { + var yGe = pm(), + bGe = Cr(); + _Q.exports = yGe(bGe.process) == 'process'; +}); +var EQ = d((eVt, SQ) => { + 'use strict'; + var _Ge = jl(), + wGe = fs(), + SGe = Gi(), + EGe = Ao(), + wQ = SGe('species'); + SQ.exports = function (e) { + var t = _Ge(e), + r = wGe.f; + EGe && + t && + !t[wQ] && + r(t, wQ, { + configurable: !0, + get: function () { + return this; + }, + }); + }; +}); +var OQ = d((tVt, xQ) => { + var xGe = V4(), + OGe = TypeError; + xQ.exports = function (e, t) { + if (xGe(t, e)) return e; + throw OGe('Incorrect invocation'); + }; +}); +var kQ = d((rVt, CQ) => { + var TGe = Gi(), + CGe = TGe('toStringTag'), + TQ = {}; + TQ[CGe] = 'z'; + CQ.exports = String(TQ) === '[object z]'; +}); +var u_ = d((iVt, AQ) => { + var kGe = kQ(), + AGe = lr(), + l_ = pm(), + IGe = Gi(), + PGe = IGe('toStringTag'), + RGe = Object, + jGe = + l_( + (function () { + return arguments; + })() + ) == 'Arguments', + DGe = function (e, t) { + try { + return e[t]; + } catch {} + }; + AQ.exports = kGe + ? l_ + : function (e) { + var t, r, n; + return e === void 0 + ? 'Undefined' + : e === null + ? 'Null' + : typeof (r = DGe((t = RGe(e)), PGe)) == 'string' + ? r + : jGe + ? l_(t) + : (n = l_(t)) == 'Object' && AGe(t.callee) + ? 'Arguments' + : n; + }; +}); +var NQ = d((nVt, DQ) => { + var NGe = mi(), + qGe = Mr(), + IQ = lr(), + FGe = u_(), + LGe = jl(), + MGe = e_(), + PQ = function () {}, + UGe = [], + RQ = LGe('Reflect', 'construct'), + sT = /^\s*(?:class|function)\b/, + $Ge = NGe(sT.exec), + BGe = !sT.exec(PQ), + N0 = function (t) { + if (!IQ(t)) return !1; + try { + return RQ(PQ, UGe, t), !0; + } catch { + return !1; + } + }, + jQ = function (t) { + if (!IQ(t)) return !1; + switch (FGe(t)) { + case 'AsyncFunction': + case 'GeneratorFunction': + case 'AsyncGeneratorFunction': + return !1; + } + try { + return BGe || !!$Ge(sT, MGe(t)); + } catch { + return !0; + } + }; + jQ.sham = !0; + DQ.exports = + !RQ || + qGe(function () { + var e; + return ( + N0(N0.call) || + !N0(Object) || + !N0(function () { + e = !0; + }) || + e + ); + }) + ? jQ + : N0; +}); +var FQ = d((aVt, qQ) => { + var VGe = NQ(), + zGe = mm(), + HGe = TypeError; + qQ.exports = function (e) { + if (VGe(e)) return e; + throw HGe(zGe(e) + ' is not a constructor'); + }; +}); +var UQ = d((oVt, MQ) => { + var LQ = Rn(), + GGe = FQ(), + WGe = cm(), + KGe = Gi(), + XGe = KGe('species'); + MQ.exports = function (e, t) { + var r = LQ(e).constructor, + n; + return r === void 0 || WGe((n = LQ(r)[XGe])) ? t : GGe(n); + }; +}); +var lT = d((sVt, zQ) => { + var JGe = b0(), + VQ = Function.prototype, + $Q = VQ.apply, + BQ = VQ.call; + zQ.exports = + (typeof Reflect == 'object' && Reflect.apply) || + (JGe + ? BQ.bind($Q) + : function () { + return BQ.apply($Q, arguments); + }); +}); +var p_ = d((lVt, GQ) => { + var HQ = mi(), + YGe = Nl(), + QGe = b0(), + ZGe = HQ(HQ.bind); + GQ.exports = function (e, t) { + return ( + YGe(e), + t === void 0 + ? e + : QGe + ? ZGe(e, t) + : function () { + return e.apply(t, arguments); + } + ); + }; +}); +var KQ = d((uVt, WQ) => { + var eWe = mi(); + WQ.exports = eWe([].slice); +}); +var JQ = d((pVt, XQ) => { + var tWe = TypeError; + XQ.exports = function (e, t) { + if (e < t) throw tWe('Not enough arguments'); + return e; + }; +}); +var uT = d((cVt, YQ) => { + var rWe = Wu(); + YQ.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(rWe); +}); +var yT = d((dVt, aZ) => { + var oa = Cr(), + iWe = lT(), + nWe = p_(), + QQ = lr(), + aWe = Co(), + oWe = Mr(), + ZQ = RO(), + sWe = KQ(), + eZ = $4(), + lWe = JQ(), + uWe = uT(), + pWe = D0(), + hT = oa.setImmediate, + gT = oa.clearImmediate, + cWe = oa.process, + pT = oa.Dispatch, + dWe = oa.Function, + tZ = oa.MessageChannel, + fWe = oa.String, + cT = 0, + q0 = {}, + rZ = 'onreadystatechange', + F0, + Mc, + dT, + fT; + try { + F0 = oa.location; + } catch {} + var vT = function (e) { + if (aWe(q0, e)) { + var t = q0[e]; + delete q0[e], t(); + } + }, + mT = function (e) { + return function () { + vT(e); + }; + }, + iZ = function (e) { + vT(e.data); + }, + nZ = function (e) { + oa.postMessage(fWe(e), F0.protocol + '//' + F0.host); + }; + (!hT || !gT) && + ((hT = function (t) { + lWe(arguments.length, 1); + var r = QQ(t) ? t : dWe(t), + n = sWe(arguments, 1); + return ( + (q0[++cT] = function () { + iWe(r, void 0, n); + }), + Mc(cT), + cT + ); + }), + (gT = function (t) { + delete q0[t]; + }), + pWe + ? (Mc = function (e) { + cWe.nextTick(mT(e)); + }) + : pT && pT.now + ? (Mc = function (e) { + pT.now(mT(e)); + }) + : tZ && !uWe + ? ((dT = new tZ()), (fT = dT.port2), (dT.port1.onmessage = iZ), (Mc = nWe(fT.postMessage, fT))) + : oa.addEventListener && QQ(oa.postMessage) && !oa.importScripts && F0 && F0.protocol !== 'file:' && !oWe(nZ) + ? ((Mc = nZ), oa.addEventListener('message', iZ, !1)) + : rZ in eZ('script') + ? (Mc = function (e) { + ZQ.appendChild(eZ('script'))[rZ] = function () { + ZQ.removeChild(this), vT(e); + }; + }) + : (Mc = function (e) { + setTimeout(mT(e), 0); + })); + aZ.exports = { set: hT, clear: gT }; +}); +var sZ = d((fVt, oZ) => { + var mWe = Wu(), + hWe = Cr(); + oZ.exports = /ipad|iphone|ipod/i.test(mWe) && hWe.Pebble !== void 0; +}); +var uZ = d((mVt, lZ) => { + var gWe = Wu(); + lZ.exports = /web0s(?!.*chrome)/i.test(gWe); +}); +var yZ = d((hVt, vZ) => { + var $c = Cr(), + pZ = p_(), + vWe = Z4().f, + bT = yT().set, + yWe = uT(), + bWe = sZ(), + _We = uZ(), + _T = D0(), + cZ = $c.MutationObserver || $c.WebKitMutationObserver, + dZ = $c.document, + fZ = $c.process, + c_ = $c.Promise, + mZ = vWe($c, 'queueMicrotask'), + gZ = mZ && mZ.value, + L0, + Uc, + M0, + gm, + wT, + ST, + d_, + hZ; + gZ || + ((L0 = function () { + var e, t; + for (_T && (e = fZ.domain) && e.exit(); Uc; ) { + (t = Uc.fn), (Uc = Uc.next); + try { + t(); + } catch (r) { + throw (Uc ? gm() : (M0 = void 0), r); + } + } + (M0 = void 0), e && e.enter(); + }), + !yWe && !_T && !_We && cZ && dZ + ? ((wT = !0), + (ST = dZ.createTextNode('')), + new cZ(L0).observe(ST, { characterData: !0 }), + (gm = function () { + ST.data = wT = !wT; + })) + : !bWe && c_ && c_.resolve + ? ((d_ = c_.resolve(void 0)), + (d_.constructor = c_), + (hZ = pZ(d_.then, d_)), + (gm = function () { + hZ(L0); + })) + : _T + ? (gm = function () { + fZ.nextTick(L0); + }) + : ((bT = pZ(bT, $c)), + (gm = function () { + bT(L0); + }))); + vZ.exports = + gZ || + function (e) { + var t = { fn: e, next: void 0 }; + M0 && (M0.next = t), Uc || ((Uc = t), gm()), (M0 = t); + }; +}); +var _Z = d((gVt, bZ) => { + var wWe = Cr(); + bZ.exports = function (e, t) { + var r = wWe.console; + r && r.error && (arguments.length == 1 ? r.error(e) : r.error(e, t)); + }; +}); +var f_ = d((vVt, wZ) => { + wZ.exports = function (e) { + try { + return { error: !1, value: e() }; + } catch (t) { + return { error: !0, value: t }; + } + }; +}); +var xZ = d((yVt, EZ) => { + var SZ = function () { + (this.head = null), (this.tail = null); + }; + SZ.prototype = { + add: function (e) { + var t = { item: e, next: null }; + this.head ? (this.tail.next = t) : (this.head = t), (this.tail = t); + }, + get: function () { + var e = this.head; + if (e) return (this.head = e.next), this.tail === e && (this.tail = null), e.item; + }, + }; + EZ.exports = SZ; +}); +var vm = d((bVt, OZ) => { + var SWe = Cr(); + OZ.exports = SWe.Promise; +}); +var ET = d((_Vt, TZ) => { + TZ.exports = typeof Deno == 'object' && Deno && typeof Deno.version == 'object'; +}); +var kZ = d((wVt, CZ) => { + var EWe = ET(), + xWe = D0(); + CZ.exports = !EWe && !xWe && typeof window == 'object' && typeof document == 'object'; +}); +var ym = d((SVt, PZ) => { + var OWe = Cr(), + U0 = vm(), + TWe = lr(), + CWe = GO(), + kWe = e_(), + AWe = Gi(), + IWe = kZ(), + PWe = ET(), + RWe = Rl(), + xT = U4(), + AZ = U0 && U0.prototype, + jWe = AWe('species'), + OT = !1, + IZ = TWe(OWe.PromiseRejectionEvent), + DWe = CWe('Promise', function () { + var e = kWe(U0), + t = e !== String(U0); + if ((!t && xT === 66) || (RWe && !(AZ.catch && AZ.finally))) return !0; + if (!xT || xT < 51 || !/native code/.test(e)) { + var r = new U0(function (o) { + o(1); + }), + n = function (o) { + o( + function () {}, + function () {} + ); + }, + a = (r.constructor = {}); + if (((a[jWe] = n), (OT = r.then(function () {}) instanceof n), !OT)) return !0; + } + return !t && (IWe || PWe) && !IZ; + }); + PZ.exports = { CONSTRUCTOR: DWe, REJECTION_EVENT: IZ, SUBCLASSING: OT }; +}); +var bm = d((EVt, jZ) => { + 'use strict'; + var RZ = Nl(), + NWe = TypeError, + qWe = function (e) { + var t, r; + (this.promise = new e(function (n, a) { + if (t !== void 0 || r !== void 0) throw NWe('Bad Promise constructor'); + (t = n), (r = a); + })), + (this.resolve = RZ(t)), + (this.reject = RZ(r)); + }; + jZ.exports.f = function (e) { + return new qWe(e); + }; +}); +var QZ = d(() => { + 'use strict'; + var FWe = Po(), + LWe = Rl(), + v_ = D0(), + Ku = Cr(), + Em = Wi(), + DZ = Lc(), + NZ = eT(), + MWe = i_(), + UWe = EQ(), + $We = Nl(), + g_ = lr(), + BWe = Dl(), + VWe = OQ(), + zWe = UQ(), + UZ = yT().set, + IT = yZ(), + HWe = _Z(), + GWe = f_(), + WWe = xZ(), + $Z = A0(), + y_ = vm(), + PT = ym(), + BZ = bm(), + b_ = 'Promise', + VZ = PT.CONSTRUCTOR, + KWe = PT.REJECTION_EVENT, + XWe = PT.SUBCLASSING, + TT = $Z.getterFor(b_), + JWe = $Z.set, + _m = y_ && y_.prototype, + Bc = y_, + m_ = _m, + zZ = Ku.TypeError, + CT = Ku.document, + RT = Ku.process, + kT = BZ.f, + YWe = kT, + QWe = !!(CT && CT.createEvent && Ku.dispatchEvent), + HZ = 'unhandledrejection', + ZWe = 'rejectionhandled', + qZ = 0, + GZ = 1, + eKe = 2, + jT = 1, + WZ = 2, + h_, + FZ, + tKe, + LZ, + KZ = function (e) { + var t; + return BWe(e) && g_((t = e.then)) ? t : !1; + }, + XZ = function (e, t) { + var r = t.value, + n = t.state == GZ, + a = n ? e.ok : e.fail, + o = e.resolve, + s = e.reject, + l = e.domain, + u, + p, + c; + try { + a + ? (n || (t.rejection === WZ && iKe(t), (t.rejection = jT)), + a === !0 ? (u = r) : (l && l.enter(), (u = a(r)), l && (l.exit(), (c = !0))), + u === e.promise ? s(zZ('Promise-chain cycle')) : (p = KZ(u)) ? Em(p, u, o, s) : o(u)) + : s(r); + } catch (f) { + l && !c && l.exit(), s(f); + } + }, + JZ = function (e, t) { + e.notified || + ((e.notified = !0), + IT(function () { + for (var r = e.reactions, n; (n = r.get()); ) XZ(n, e); + (e.notified = !1), t && !e.rejection && rKe(e); + })); + }, + YZ = function (e, t, r) { + var n, a; + QWe + ? ((n = CT.createEvent('Event')), (n.promise = t), (n.reason = r), n.initEvent(e, !1, !0), Ku.dispatchEvent(n)) + : (n = { promise: t, reason: r }), + !KWe && (a = Ku['on' + e]) ? a(n) : e === HZ && HWe('Unhandled promise rejection', r); + }, + rKe = function (e) { + Em(UZ, Ku, function () { + var t = e.facade, + r = e.value, + n = MZ(e), + a; + if ( + n && + ((a = GWe(function () { + v_ ? RT.emit('unhandledRejection', r, t) : YZ(HZ, t, r); + })), + (e.rejection = v_ || MZ(e) ? WZ : jT), + a.error) + ) + throw a.value; + }); + }, + MZ = function (e) { + return e.rejection !== jT && !e.parent; + }, + iKe = function (e) { + Em(UZ, Ku, function () { + var t = e.facade; + v_ ? RT.emit('rejectionHandled', t) : YZ(ZWe, t, e.value); + }); + }, + wm = function (e, t, r) { + return function (n) { + e(t, n, r); + }; + }, + Sm = function (e, t, r) { + e.done || ((e.done = !0), r && (e = r), (e.value = t), (e.state = eKe), JZ(e, !0)); + }, + AT = function (e, t, r) { + if (!e.done) { + (e.done = !0), r && (e = r); + try { + if (e.facade === t) throw zZ("Promise can't be resolved itself"); + var n = KZ(t); + n + ? IT(function () { + var a = { done: !1 }; + try { + Em(n, t, wm(AT, a, e), wm(Sm, a, e)); + } catch (o) { + Sm(a, o, e); + } + }) + : ((e.value = t), (e.state = GZ), JZ(e, !1)); + } catch (a) { + Sm({ done: !1 }, a, e); + } + } + }; + if ( + VZ && + ((Bc = function (t) { + VWe(this, m_), $We(t), Em(h_, this); + var r = TT(this); + try { + t(wm(AT, r), wm(Sm, r)); + } catch (n) { + Sm(r, n); + } + }), + (m_ = Bc.prototype), + (h_ = function (t) { + JWe(this, { + type: b_, + done: !1, + notified: !1, + parent: !1, + reactions: new WWe(), + rejection: !1, + state: qZ, + value: void 0, + }); + }), + (h_.prototype = DZ(m_, 'then', function (t, r) { + var n = TT(this), + a = kT(zWe(this, Bc)); + return ( + (n.parent = !0), + (a.ok = g_(t) ? t : !0), + (a.fail = g_(r) && r), + (a.domain = v_ ? RT.domain : void 0), + n.state == qZ + ? n.reactions.add(a) + : IT(function () { + XZ(a, n); + }), + a.promise + ); + })), + (FZ = function () { + var e = new h_(), + t = TT(e); + (this.promise = e), (this.resolve = wm(AT, t)), (this.reject = wm(Sm, t)); + }), + (BZ.f = kT = + function (e) { + return e === Bc || e === tKe ? new FZ(e) : YWe(e); + }), + !LWe && g_(y_) && _m !== Object.prototype) + ) { + (LZ = _m.then), + XWe || + DZ( + _m, + 'then', + function (t, r) { + var n = this; + return new Bc(function (a, o) { + Em(LZ, n, a, o); + }).then(t, r); + }, + { unsafe: !0 } + ); + try { + delete _m.constructor; + } catch {} + NZ && NZ(_m, m_); + } + FWe({ global: !0, constructor: !0, wrap: !0, forced: VZ }, { Promise: Bc }); + MWe(Bc, b_, !1, !0); + UWe(b_); +}); +var eee = d((TVt, ZZ) => { + var nKe = Gi(), + aKe = hm(), + oKe = nKe('iterator'), + sKe = Array.prototype; + ZZ.exports = function (e) { + return e !== void 0 && (aKe.Array === e || sKe[oKe] === e); + }; +}); +var DT = d((CVt, ree) => { + var lKe = u_(), + tee = S0(), + uKe = cm(), + pKe = hm(), + cKe = Gi(), + dKe = cKe('iterator'); + ree.exports = function (e) { + if (!uKe(e)) return tee(e, dKe) || tee(e, '@@iterator') || pKe[lKe(e)]; + }; +}); +var nee = d((kVt, iee) => { + var fKe = Wi(), + mKe = Nl(), + hKe = Rn(), + gKe = mm(), + vKe = DT(), + yKe = TypeError; + iee.exports = function (e, t) { + var r = arguments.length < 2 ? vKe(e) : t; + if (mKe(r)) return hKe(fKe(r, e)); + throw yKe(gKe(e) + ' is not iterable'); + }; +}); +var see = d((AVt, oee) => { + var bKe = Wi(), + aee = Rn(), + _Ke = S0(); + oee.exports = function (e, t, r) { + var n, a; + aee(e); + try { + if (((n = _Ke(e, 'return')), !n)) { + if (t === 'throw') throw r; + return r; + } + n = bKe(n, e); + } catch (o) { + (a = !0), (n = o); + } + if (t === 'throw') throw r; + if (a) throw n; + return aee(n), r; + }; +}); +var NT = d((IVt, cee) => { + var wKe = p_(), + SKe = Wi(), + EKe = Rn(), + xKe = mm(), + OKe = eee(), + TKe = x0(), + lee = V4(), + CKe = nee(), + kKe = DT(), + uee = see(), + AKe = TypeError, + __ = function (e, t) { + (this.stopped = e), (this.result = t); + }, + pee = __.prototype; + cee.exports = function (e, t, r) { + var n = r && r.that, + a = !!(r && r.AS_ENTRIES), + o = !!(r && r.IS_RECORD), + s = !!(r && r.IS_ITERATOR), + l = !!(r && r.INTERRUPTED), + u = wKe(t, n), + p, + c, + f, + h, + m, + v, + y, + S = function (O) { + return p && uee(p, 'normal', O), new __(!0, O); + }, + w = function (O) { + return a ? (EKe(O), l ? u(O[0], O[1], S) : u(O[0], O[1])) : l ? u(O, S) : u(O); + }; + if (o) p = e.iterator; + else if (s) p = e; + else { + if (((c = kKe(e)), !c)) throw AKe(xKe(e) + ' is not iterable'); + if (OKe(c)) { + for (f = 0, h = TKe(e); h > f; f++) if (((m = w(e[f])), m && lee(pee, m))) return m; + return new __(!1); + } + p = CKe(e, c); + } + for (v = o ? e.next : p.next; !(y = SKe(v, p)).done; ) { + try { + m = w(y.value); + } catch (O) { + uee(p, 'throw', O); + } + if (typeof m == 'object' && m && lee(pee, m)) return m; + } + return new __(!1); + }; +}); +var gee = d((PVt, hee) => { + var IKe = Gi(), + fee = IKe('iterator'), + mee = !1; + try { + (dee = 0), + (qT = { + next: function () { + return { done: !!dee++ }; + }, + return: function () { + mee = !0; + }, + }), + (qT[fee] = function () { + return this; + }), + Array.from(qT, function () { + throw 2; + }); + } catch {} + var dee, qT; + hee.exports = function (e, t) { + if (!t && !mee) return !1; + var r = !1; + try { + var n = {}; + (n[fee] = function () { + return { + next: function () { + return { done: (r = !0) }; + }, + }; + }), + e(n); + } catch {} + return r; + }; +}); +var FT = d((RVt, vee) => { + var PKe = vm(), + RKe = gee(), + jKe = ym().CONSTRUCTOR; + vee.exports = + jKe || + !RKe(function (e) { + PKe.all(e).then(void 0, function () {}); + }); +}); +var yee = d(() => { + 'use strict'; + var DKe = Po(), + NKe = Wi(), + qKe = Nl(), + FKe = bm(), + LKe = f_(), + MKe = NT(), + UKe = FT(); + DKe( + { target: 'Promise', stat: !0, forced: UKe }, + { + all: function (t) { + var r = this, + n = FKe.f(r), + a = n.resolve, + o = n.reject, + s = LKe(function () { + var l = qKe(r.resolve), + u = [], + p = 0, + c = 1; + MKe(t, function (f) { + var h = p++, + m = !1; + c++, + NKe(l, r, f).then(function (v) { + m || ((m = !0), (u[h] = v), --c || a(u)); + }, o); + }), + --c || a(u); + }); + return s.error && o(s.value), n.promise; + }, + } + ); +}); +var _ee = d(() => { + 'use strict'; + var $Ke = Po(), + BKe = Rl(), + VKe = ym().CONSTRUCTOR, + MT = vm(), + zKe = jl(), + HKe = lr(), + GKe = Lc(), + bee = MT && MT.prototype; + $Ke( + { target: 'Promise', proto: !0, forced: VKe, real: !0 }, + { + catch: function (e) { + return this.then(void 0, e); + }, + } + ); + !BKe && HKe(MT) && ((LT = zKe('Promise').prototype.catch), bee.catch !== LT && GKe(bee, 'catch', LT, { unsafe: !0 })); + var LT; +}); +var wee = d(() => { + 'use strict'; + var WKe = Po(), + KKe = Wi(), + XKe = Nl(), + JKe = bm(), + YKe = f_(), + QKe = NT(), + ZKe = FT(); + WKe( + { target: 'Promise', stat: !0, forced: ZKe }, + { + race: function (t) { + var r = this, + n = JKe.f(r), + a = n.reject, + o = YKe(function () { + var s = XKe(r.resolve); + QKe(t, function (l) { + KKe(s, r, l).then(n.resolve, a); + }); + }); + return o.error && a(o.value), n.promise; + }, + } + ); +}); +var See = d(() => { + 'use strict'; + var eXe = Po(), + tXe = Wi(), + rXe = bm(), + iXe = ym().CONSTRUCTOR; + eXe( + { target: 'Promise', stat: !0, forced: iXe }, + { + reject: function (t) { + var r = rXe.f(this); + return tXe(r.reject, void 0, t), r.promise; + }, + } + ); +}); +var xee = d(($Vt, Eee) => { + var nXe = Rn(), + aXe = Dl(), + oXe = bm(); + Eee.exports = function (e, t) { + if ((nXe(e), aXe(t) && t.constructor === e)) return t; + var r = oXe.f(e), + n = r.resolve; + return n(t), r.promise; + }; +}); +var Cee = d(() => { + 'use strict'; + var sXe = Po(), + lXe = jl(), + Oee = Rl(), + uXe = vm(), + Tee = ym().CONSTRUCTOR, + pXe = xee(), + cXe = lXe('Promise'), + dXe = Oee && !Tee; + sXe( + { target: 'Promise', stat: !0, forced: Oee || Tee }, + { + resolve: function (t) { + return pXe(dXe && this === cXe ? uXe : this, t); + }, + } + ); +}); +var Zt = d(() => { + QZ(); + yee(); + _ee(); + wee(); + See(); + Cee(); +}); +var $0 = d((GVt, kee) => { + var fXe = u_(), + mXe = String; + kee.exports = function (e) { + if (fXe(e) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string'); + return mXe(e); + }; +}); +var Iee = d((WVt, Aee) => { + 'use strict'; + var hXe = Rn(); + Aee.exports = function () { + var e = hXe(this), + t = ''; + return ( + e.hasIndices && (t += 'd'), + e.global && (t += 'g'), + e.ignoreCase && (t += 'i'), + e.multiline && (t += 'm'), + e.dotAll && (t += 's'), + e.unicode && (t += 'u'), + e.unicodeSets && (t += 'v'), + e.sticky && (t += 'y'), + t + ); + }; +}); +var Ree = d((KVt, Pee) => { + var UT = Mr(), + gXe = Cr(), + $T = gXe.RegExp, + BT = UT(function () { + var e = $T('a', 'y'); + return (e.lastIndex = 2), e.exec('abcd') != null; + }), + vXe = + BT || + UT(function () { + return !$T('a', 'y').sticky; + }), + yXe = + BT || + UT(function () { + var e = $T('^r', 'gy'); + return (e.lastIndex = 2), e.exec('str') != null; + }); + Pee.exports = { BROKEN_CARET: yXe, MISSED_STICKY: vXe, UNSUPPORTED_Y: BT }; +}); +var Dee = d((XVt, jee) => { + var bXe = Mr(), + _Xe = Cr(), + wXe = _Xe.RegExp; + jee.exports = bXe(function () { + var e = wXe('.', 's'); + return !( + e.dotAll && + e.exec(` +`) && + e.flags === 's' + ); + }); +}); +var qee = d((JVt, Nee) => { + var SXe = Mr(), + EXe = Cr(), + xXe = EXe.RegExp; + Nee.exports = SXe(function () { + var e = xXe('(?b)', 'g'); + return e.exec('b').groups.a !== 'b' || 'b'.replace(e, '$c') !== 'bc'; + }); +}); +var E_ = d((YVt, Lee) => { + 'use strict'; + var xm = Wi(), + S_ = mi(), + OXe = $0(), + TXe = Iee(), + CXe = Ree(), + kXe = L4(), + AXe = O0(), + IXe = A0().get, + PXe = Dee(), + RXe = qee(), + jXe = kXe('native-string-replace', String.prototype.replace), + w_ = RegExp.prototype.exec, + zT = w_, + DXe = S_(''.charAt), + NXe = S_(''.indexOf), + qXe = S_(''.replace), + VT = S_(''.slice), + HT = (function () { + var e = /a/, + t = /b*/g; + return xm(w_, e, 'a'), xm(w_, t, 'a'), e.lastIndex !== 0 || t.lastIndex !== 0; + })(), + Fee = CXe.BROKEN_CARET, + GT = /()??/.exec('')[1] !== void 0, + FXe = HT || GT || Fee || PXe || RXe; + FXe && + (zT = function (t) { + var r = this, + n = IXe(r), + a = OXe(t), + o = n.raw, + s, + l, + u, + p, + c, + f, + h; + if (o) return (o.lastIndex = r.lastIndex), (s = xm(zT, o, a)), (r.lastIndex = o.lastIndex), s; + var m = n.groups, + v = Fee && r.sticky, + y = xm(TXe, r), + S = r.source, + w = 0, + O = a; + if ( + (v && + ((y = qXe(y, 'y', '')), + NXe(y, 'g') === -1 && (y += 'g'), + (O = VT(a, r.lastIndex)), + r.lastIndex > 0 && + (!r.multiline || + (r.multiline && + DXe(a, r.lastIndex - 1) !== + ` +`)) && + ((S = '(?: ' + S + ')'), (O = ' ' + O), w++), + (l = new RegExp('^(?:' + S + ')', y))), + GT && (l = new RegExp('^' + S + '$(?!\\s)', y)), + HT && (u = r.lastIndex), + (p = xm(w_, v ? l : r, O)), + v + ? p + ? ((p.input = VT(p.input, w)), (p[0] = VT(p[0], w)), (p.index = r.lastIndex), (r.lastIndex += p[0].length)) + : (r.lastIndex = 0) + : HT && p && (r.lastIndex = r.global ? p.index + p[0].length : u), + GT && + p && + p.length > 1 && + xm(jXe, p[0], l, function () { + for (c = 1; c < arguments.length - 2; c++) arguments[c] === void 0 && (p[c] = void 0); + }), + p && m) + ) + for (p.groups = f = AXe(null), c = 0; c < m.length; c++) (h = m[c]), (f[h[0]] = p[h[1]]); + return p; + }); + Lee.exports = zT; +}); +var Uee = d(() => { + 'use strict'; + var LXe = Po(), + Mee = E_(); + LXe({ target: 'RegExp', proto: !0, forced: /./.exec !== Mee }, { exec: Mee }); +}); +var Gee = d((ezt, Hee) => { + 'use strict'; + Uee(); + var $ee = mi(), + Bee = Lc(), + MXe = E_(), + Vee = Mr(), + zee = Gi(), + UXe = C0(), + $Xe = zee('species'), + WT = RegExp.prototype; + Hee.exports = function (e, t, r, n) { + var a = zee(e), + o = !Vee(function () { + var p = {}; + return ( + (p[a] = function () { + return 7; + }), + ''[e](p) != 7 + ); + }), + s = + o && + !Vee(function () { + var p = !1, + c = /a/; + return ( + e === 'split' && + ((c = {}), + (c.constructor = {}), + (c.constructor[$Xe] = function () { + return c; + }), + (c.flags = ''), + (c[a] = /./[a])), + (c.exec = function () { + return (p = !0), null; + }), + c[a](''), + !p + ); + }); + if (!o || !s || r) { + var l = $ee(/./[a]), + u = t(a, ''[e], function (p, c, f, h, m) { + var v = $ee(p), + y = c.exec; + return y === MXe || y === WT.exec + ? o && !m + ? { done: !0, value: l(c, f, h) } + : { done: !0, value: v(f, c, h) } + : { done: !1 }; + }); + Bee(String.prototype, e, u[0]), Bee(WT, a, u[1]); + } + n && UXe(WT[a], 'sham', !0); + }; +}); +var Jee = d((tzt, Xee) => { + var KT = mi(), + BXe = E0(), + VXe = $0(), + zXe = _0(), + HXe = KT(''.charAt), + Wee = KT(''.charCodeAt), + GXe = KT(''.slice), + Kee = function (e) { + return function (t, r) { + var n = VXe(zXe(t)), + a = BXe(r), + o = n.length, + s, + l; + return a < 0 || a >= o + ? e + ? '' + : void 0 + : ((s = Wee(n, a)), + s < 55296 || s > 56319 || a + 1 === o || (l = Wee(n, a + 1)) < 56320 || l > 57343 + ? e + ? HXe(n, a) + : s + : e + ? GXe(n, a, a + 2) + : ((s - 55296) << 10) + (l - 56320) + 65536); + }; + }; + Xee.exports = { codeAt: Kee(!1), charAt: Kee(!0) }; +}); +var Qee = d((rzt, Yee) => { + 'use strict'; + var WXe = Jee().charAt; + Yee.exports = function (e, t, r) { + return t + (r ? WXe(e, t).length : 1); + }; +}); +var ete = d((izt, Zee) => { + var YT = mi(), + KXe = w0(), + XXe = Math.floor, + XT = YT(''.charAt), + JXe = YT(''.replace), + JT = YT(''.slice), + YXe = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, + QXe = /\$([$&'`]|\d{1,2})/g; + Zee.exports = function (e, t, r, n, a, o) { + var s = r + e.length, + l = n.length, + u = QXe; + return ( + a !== void 0 && ((a = KXe(a)), (u = YXe)), + JXe(o, u, function (p, c) { + var f; + switch (XT(c, 0)) { + case '$': + return '$'; + case '&': + return e; + case '`': + return JT(t, 0, r); + case "'": + return JT(t, s); + case '<': + f = a[JT(c, 1, -1)]; + break; + default: + var h = +c; + if (h === 0) return p; + if (h > l) { + var m = XXe(h / 10); + return m === 0 ? p : m <= l ? (n[m - 1] === void 0 ? XT(c, 1) : n[m - 1] + XT(c, 1)) : p; + } + f = n[h - 1]; + } + return f === void 0 ? '' : f; + }) + ); + }; +}); +var ite = d((nzt, rte) => { + var tte = Wi(), + ZXe = Rn(), + eJe = lr(), + tJe = pm(), + rJe = E_(), + iJe = TypeError; + rte.exports = function (e, t) { + var r = e.exec; + if (eJe(r)) { + var n = tte(r, e, t); + return n !== null && ZXe(n), n; + } + if (tJe(e) === 'RegExp') return tte(rJe, e, t); + throw iJe('RegExp#exec called on incompatible receiver'); + }; +}); +var Vc = d(() => { + 'use strict'; + var nJe = lT(), + nte = Wi(), + x_ = mi(), + aJe = Gee(), + oJe = Mr(), + sJe = Rn(), + lJe = lr(), + uJe = cm(), + pJe = E0(), + cJe = AO(), + Om = $0(), + dJe = _0(), + fJe = Qee(), + mJe = S0(), + hJe = ete(), + gJe = ite(), + vJe = Gi(), + ZT = vJe('replace'), + yJe = Math.max, + bJe = Math.min, + _Je = x_([].concat), + QT = x_([].push), + ate = x_(''.indexOf), + ote = x_(''.slice), + wJe = function (e) { + return e === void 0 ? e : String(e); + }, + SJe = (function () { + return 'a'.replace(/./, '$0') === '$0'; + })(), + ste = (function () { + return /./[ZT] ? /./[ZT]('a', '$0') === '' : !1; + })(), + EJe = !oJe(function () { + var e = /./; + return ( + (e.exec = function () { + var t = []; + return (t.groups = { a: '7' }), t; + }), + ''.replace(e, '$') !== '7' + ); + }); + aJe( + 'replace', + function (e, t, r) { + var n = ste ? '$' : '$0'; + return [ + function (o, s) { + var l = dJe(this), + u = uJe(o) ? void 0 : mJe(o, ZT); + return u ? nte(u, o, l, s) : nte(t, Om(l), o, s); + }, + function (a, o) { + var s = sJe(this), + l = Om(a); + if (typeof o == 'string' && ate(o, n) === -1 && ate(o, '$<') === -1) { + var u = r(t, s, l, o); + if (u.done) return u.value; + } + var p = lJe(o); + p || (o = Om(o)); + var c = s.global; + if (c) { + var f = s.unicode; + s.lastIndex = 0; + } + for (var h = []; ; ) { + var m = gJe(s, l); + if (m === null || (QT(h, m), !c)) break; + var v = Om(m[0]); + v === '' && (s.lastIndex = fJe(l, cJe(s.lastIndex), f)); + } + for (var y = '', S = 0, w = 0; w < h.length; w++) { + m = h[w]; + for (var O = Om(m[0]), x = yJe(bJe(pJe(m.index), l.length), 0), _ = [], b = 1; b < m.length; b++) + QT(_, wJe(m[b])); + var T = m.groups; + if (p) { + var R = _Je([O], _, x, l); + T !== void 0 && QT(R, T); + var C = Om(nJe(o, void 0, R)); + } else C = hJe(O, l, x, _, T, o); + x >= S && ((y += ote(l, S, x) + C), (S = x + O.length)); + } + return y + ote(l, S); + }, + ]; + }, + !EJe || !SJe || ste + ); +}); +var eC = d((szt, pte) => { + var xJe = di(), + ute = _t(), + OJe = J1(), + TJe = Ra(), + CJe = M6().f, + kJe = ute(CJe), + AJe = ute([].push), + lte = function (e) { + return function (t) { + for (var r = TJe(t), n = OJe(r), a = n.length, o = 0, s = [], l; a > o; ) + (l = n[o++]), (!xJe || kJe(r, l)) && AJe(s, e ? [l, r[l]] : r[l]); + return s; + }; + }; + pte.exports = { entries: lte(!0), values: lte(!1) }; +}); +var cte = d(() => { + var IJe = ve(), + PJe = eC().entries; + IJe( + { target: 'Object', stat: !0 }, + { + entries: function (t) { + return PJe(t); + }, + } + ); +}); +var fte = d((pzt, dte) => { + cte(); + var RJe = or(); + dte.exports = RJe.Object.entries; +}); +var hte = d((czt, mte) => { + var jJe = fte(); + mte.exports = jJe; +}); +var O_ = d((dzt, gte) => { + gte.exports = hte(); +}); +var yte = d((fzt, vte) => { + var DJe = oT(); + vte.exports = DJe; +}); +var _te = d((mzt, bte) => { + var NJe = yte(); + bte.exports = NJe; +}); +var Ste = d((hzt, wte) => { + wte.exports = _te(); +}); +var xte = d((gzt, Ete) => { + Ete.exports = Ste(); +}); +var Tte = d(() => { + 'use strict'; + var qJe = ve(), + FJe = _t(), + LJe = X6().indexOf, + MJe = r0(), + tC = FJe([].indexOf), + Ote = !!tC && 1 / tC([1], 1, -0) < 0, + UJe = MJe('indexOf'); + qJe( + { target: 'Array', proto: !0, forced: Ote || !UJe }, + { + indexOf: function (t) { + var r = arguments.length > 1 ? arguments[1] : void 0; + return Ote ? tC(this, t, r) || 0 : LJe(this, t, r); + }, + } + ); +}); +var kte = d((bzt, Cte) => { + Tte(); + var $Je = pn(); + Cte.exports = $Je('Array').indexOf; +}); +var Ite = d((_zt, Ate) => { + var BJe = ei(), + VJe = kte(), + rC = Array.prototype; + Ate.exports = function (e) { + var t = e.indexOf; + return e === rC || (BJe(rC, e) && t === rC.indexOf) ? VJe : t; + }; +}); +var iC = d((wzt, Pte) => { + var zJe = Ite(); + Pte.exports = zJe; +}); +var jte = d((Szt, Rte) => { + var HJe = iC(); + Rte.exports = HJe; +}); +var Nte = d((Ezt, Dte) => { + var GJe = jte(); + Dte.exports = GJe; +}); +var Fte = d((xzt, qte) => { + qte.exports = Nte(); +}); +var nC = d((Ozt, Lte) => { + Lte.exports = Fte(); +}); +var Ute = d((Tzt, Mte) => { + var WJe = GE(); + Mte.exports = WJe; +}); +var Bte = d((Czt, $te) => { + var KJe = Ute(); + $te.exports = KJe; +}); +var zte = d((kzt, Vte) => { + Vte.exports = Bte(); +}); +var Gte = d((Azt, Hte) => { + Hte.exports = zte(); +}); +var Wte = d((Izt, B0) => { + var XJe = Gte(), + JJe = nC(); + function YJe(e, t) { + if (e == null) return {}; + var r = {}, + n = XJe(e), + a, + o; + for (o = 0; o < n.length; o++) (a = n[o]), !(JJe(t).call(t, a) >= 0) && (r[a] = e[a]); + return r; + } + (B0.exports = YJe), (B0.exports.__esModule = !0), (B0.exports.default = B0.exports); +}); +var Ro = d((Pzt, V0) => { + var Kte = xte(), + QJe = nC(), + ZJe = Wte(); + function eYe(e, t) { + if (e == null) return {}; + var r = ZJe(e, t), + n, + a; + if (Kte) { + var o = Kte(e); + for (a = 0; a < o.length; a++) + (n = o[a]), !(QJe(t).call(t, n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (r[n] = e[n]); + } + return r; + } + (V0.exports = eYe), (V0.exports.__esModule = !0), (V0.exports.default = V0.exports); +}); +var Xte = d(() => { + 'use strict'; + var tYe = ve(), + rYe = zu().map, + iYe = a0(), + nYe = iYe('map'); + tYe( + { target: 'Array', proto: !0, forced: !nYe }, + { + map: function (t) { + return rYe(this, t, arguments.length > 1 ? arguments[1] : void 0); + }, + } + ); +}); +var Yte = d((Dzt, Jte) => { + Xte(); + var aYe = pn(); + Jte.exports = aYe('Array').map; +}); +var Zte = d((Nzt, Qte) => { + var oYe = ei(), + sYe = Yte(), + aC = Array.prototype; + Qte.exports = function (e) { + var t = e.map; + return e === aC || (oYe(aC, e) && t === aC.map) ? sYe : t; + }; +}); +var tre = d((qzt, ere) => { + var lYe = Zte(); + ere.exports = lYe; +}); +var jn = d((Fzt, rre) => { + rre.exports = tre(); +}); +var ire = d(() => { + var uYe = ve(), + pYe = jc(); + uYe({ target: 'Array', stat: !0 }, { isArray: pYe }); +}); +var are = d((Uzt, nre) => { + ire(); + var cYe = or(); + nre.exports = cYe.Array.isArray; +}); +var sre = d(($zt, ore) => { + var dYe = are(); + ore.exports = dYe; +}); +var Da = d((Bzt, lre) => { + lre.exports = sre(); +}); +var Xu = d((Vzt, ure) => { + ure.exports = iC(); +}); +var cre = d((zzt, pre) => { + Fx(); + var oC = or(), + fYe = Qf(); + oC.JSON || (oC.JSON = { stringify: JSON.stringify }); + pre.exports = function (t, r, n) { + return fYe(oC.JSON.stringify, null, arguments); + }; +}); +var fre = d((Hzt, dre) => { + var mYe = cre(); + dre.exports = mYe; +}); +var sa = d((Gzt, mre) => { + mre.exports = fre(); +}); +var T_ = d((Wzt, hre) => { + hre.exports = ` +\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`; +}); +var lC = d((Kzt, vre) => { + var hYe = _t(), + gYe = Zf(), + vYe = cs(), + yYe = T_(), + gre = hYe(''.replace), + C_ = '[' + yYe + ']', + bYe = RegExp('^' + C_ + C_ + '*'), + _Ye = RegExp(C_ + C_ + '*$'), + sC = function (e) { + return function (t) { + var r = vYe(gYe(t)); + return e & 1 && (r = gre(r, bYe, '')), e & 2 && (r = gre(r, _Ye, '')), r; + }; + }; + vre.exports = { start: sC(1), end: sC(2), trim: sC(3) }; +}); +var xre = d((Xzt, Ere) => { + var wre = It(), + wYe = vt(), + SYe = _t(), + EYe = cs(), + xYe = lC().trim, + yre = T_(), + z0 = wre.parseInt, + bre = wre.Symbol, + _re = bre && bre.iterator, + Sre = /^[+-]?0x/i, + OYe = SYe(Sre.exec), + TYe = + z0(yre + '08') !== 8 || + z0(yre + '0x16') !== 22 || + (_re && + !wYe(function () { + z0(Object(_re)); + })); + Ere.exports = TYe + ? function (t, r) { + var n = xYe(EYe(t)); + return z0(n, r >>> 0 || (OYe(Sre, n) ? 16 : 10)); + } + : z0; +}); +var Tre = d(() => { + var CYe = ve(), + Ore = xre(); + CYe({ global: !0, forced: parseInt != Ore }, { parseInt: Ore }); +}); +var kre = d((Qzt, Cre) => { + Tre(); + var kYe = or(); + Cre.exports = kYe.parseInt; +}); +var Ire = d((Zzt, Are) => { + var AYe = kre(); + Are.exports = AYe; +}); +var Tm = d((eHt, Pre) => { + Pre.exports = Ire(); +}); +var Dre = d((tHt, jre) => { + var Rre = ti(), + IYe = nT(), + PYe = Ac(), + RYe = In(); + jre.exports = function (e, t, r) { + for (var n = IYe(t), a = RYe.f, o = PYe.f, s = 0; s < n.length; s++) { + var l = n[s]; + !Rre(e, l) && !(r && Rre(r, l)) && a(e, l, o(t, l)); + } + }; +}); +var Lre = d((rHt, Fre) => { + var jYe = _t(), + Nre = Error, + DYe = jYe(''.replace), + NYe = (function (e) { + return String(Nre(e).stack); + })('zxcasd'), + qre = /\n\s*at [^:]*:[^\n]*/, + qYe = qre.test(NYe); + Fre.exports = function (e, t) { + if (qYe && typeof e == 'string' && !Nre.prepareStackTrace) for (; t--; ) e = DYe(e, qre, ''); + return e; + }; +}); +var Ure = d((iHt, Mre) => { + var FYe = Lr(), + LYe = ps(); + Mre.exports = function (e, t) { + FYe(t) && 'cause' in t && LYe(e, 'cause', t.cause); + }; +}); +var Bre = d((nHt, $re) => { + var MYe = cs(); + $re.exports = function (e, t) { + return e === void 0 ? (arguments.length < 2 ? '' : t) : MYe(e); + }; +}); +var zre = d((aHt, Vre) => { + var UYe = vt(), + $Ye = Fu(); + Vre.exports = !UYe(function () { + var e = Error('a'); + return 'stack' in e ? (Object.defineProperty(e, 'stack', $Ye(1, 7)), e.stack !== 7) : !0; + }); +}); +var Gre = d(() => { + 'use strict'; + var BYe = ve(), + VYe = ei(), + zYe = i4(), + A_ = o4(), + HYe = Dre(), + Hre = am(), + k_ = ps(), + uC = Fu(), + GYe = Lre(), + WYe = Ure(), + KYe = ds(), + XYe = Bre(), + JYe = Yt(), + YYe = zre(), + QYe = JYe('toStringTag'), + I_ = Error, + ZYe = [].push, + H0 = function (t, r) { + var n = arguments.length > 2 ? arguments[2] : void 0, + a = VYe(pC, this), + o; + A_ ? (o = A_(I_(), a ? zYe(this) : pC)) : ((o = a ? this : Hre(pC)), k_(o, QYe, 'Error')), + r !== void 0 && k_(o, 'message', XYe(r)), + YYe && k_(o, 'stack', GYe(o.stack, 1)), + WYe(o, n); + var s = []; + return KYe(t, ZYe, { that: s }), k_(o, 'errors', s), o; + }; + A_ ? A_(H0, I_) : HYe(H0, I_, { name: !0 }); + var pC = (H0.prototype = Hre(I_.prototype, { + constructor: uC(1, H0), + message: uC(1, ''), + name: uC(1, 'AggregateError'), + })); + BYe({ global: !0, constructor: !0, arity: 2 }, { AggregateError: H0 }); +}); +var Wre = d(() => { + Gre(); +}); +var Cm = d((pHt, Kre) => { + var eQe = wl(), + tQe = It(); + Kre.exports = eQe(tQe.process) == 'process'; +}); +var cC = d((cHt, Jre) => { + 'use strict'; + var rQe = un(), + iQe = In(), + nQe = Yt(), + aQe = di(), + Xre = nQe('species'); + Jre.exports = function (e) { + var t = rQe(e), + r = iQe.f; + aQe && + t && + !t[Xre] && + r(t, Xre, { + configurable: !0, + get: function () { + return this; + }, + }); + }; +}); +var dC = d((dHt, Qre) => { + var Yre = Hi(), + oQe = rO(), + sQe = Lu(), + lQe = Yt(), + uQe = lQe('species'); + Qre.exports = function (e, t) { + var r = Yre(e).constructor, + n; + return r === void 0 || sQe((n = Yre(r)[uQe])) ? t : oQe(n); + }; +}); +var fC = d((fHt, Zre) => { + var pQe = TypeError; + Zre.exports = function (e, t) { + if (e < t) throw pQe('Not enough arguments'); + return e; + }; +}); +var mC = d((mHt, eie) => { + var cQe = Sl(); + eie.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(cQe); +}); +var EC = d((hHt, lie) => { + var la = It(), + dQe = Qf(), + fQe = Mu(), + tie = $t(), + mQe = ti(), + hQe = vt(), + rie = ex(), + gQe = lm(), + iie = z6(), + vQe = fC(), + yQe = mC(), + bQe = Cm(), + _C = la.setImmediate, + wC = la.clearImmediate, + _Qe = la.process, + hC = la.Dispatch, + wQe = la.Function, + nie = la.MessageChannel, + SQe = la.String, + gC = 0, + G0 = {}, + aie = 'onreadystatechange', + W0, + zc, + vC, + yC; + try { + W0 = la.location; + } catch {} + var SC = function (e) { + if (mQe(G0, e)) { + var t = G0[e]; + delete G0[e], t(); + } + }, + bC = function (e) { + return function () { + SC(e); + }; + }, + oie = function (e) { + SC(e.data); + }, + sie = function (e) { + la.postMessage(SQe(e), W0.protocol + '//' + W0.host); + }; + (!_C || !wC) && + ((_C = function (t) { + vQe(arguments.length, 1); + var r = tie(t) ? t : wQe(t), + n = gQe(arguments, 1); + return ( + (G0[++gC] = function () { + dQe(r, void 0, n); + }), + zc(gC), + gC + ); + }), + (wC = function (t) { + delete G0[t]; + }), + bQe + ? (zc = function (e) { + _Qe.nextTick(bC(e)); + }) + : hC && hC.now + ? (zc = function (e) { + hC.now(bC(e)); + }) + : nie && !yQe + ? ((vC = new nie()), (yC = vC.port2), (vC.port1.onmessage = oie), (zc = fQe(yC.postMessage, yC))) + : la.addEventListener && tie(la.postMessage) && !la.importScripts && W0 && W0.protocol !== 'file:' && !hQe(sie) + ? ((zc = sie), la.addEventListener('message', oie, !1)) + : aie in iie('script') + ? (zc = function (e) { + rie.appendChild(iie('script'))[aie] = function () { + rie.removeChild(this), SC(e); + }; + }) + : (zc = function (e) { + setTimeout(bC(e), 0); + })); + lie.exports = { set: _C, clear: wC }; +}); +var pie = d((gHt, uie) => { + var EQe = Sl(), + xQe = It(); + uie.exports = /ipad|iphone|ipod/i.test(EQe) && xQe.Pebble !== void 0; +}); +var die = d((vHt, cie) => { + var OQe = Sl(); + cie.exports = /web0s(?!.*chrome)/i.test(OQe); +}); +var wie = d((yHt, _ie) => { + var Gc = It(), + fie = Mu(), + TQe = Ac().f, + xC = EC().set, + CQe = mC(), + kQe = pie(), + AQe = die(), + OC = Cm(), + mie = Gc.MutationObserver || Gc.WebKitMutationObserver, + hie = Gc.document, + gie = Gc.process, + P_ = Gc.Promise, + vie = TQe(Gc, 'queueMicrotask'), + bie = vie && vie.value, + K0, + Hc, + X0, + km, + TC, + CC, + R_, + yie; + bie || + ((K0 = function () { + var e, t; + for (OC && (e = gie.domain) && e.exit(); Hc; ) { + (t = Hc.fn), (Hc = Hc.next); + try { + t(); + } catch (r) { + throw (Hc ? km() : (X0 = void 0), r); + } + } + (X0 = void 0), e && e.enter(); + }), + !CQe && !OC && !AQe && mie && hie + ? ((TC = !0), + (CC = hie.createTextNode('')), + new mie(K0).observe(CC, { characterData: !0 }), + (km = function () { + CC.data = TC = !TC; + })) + : !kQe && P_ && P_.resolve + ? ((R_ = P_.resolve(void 0)), + (R_.constructor = P_), + (yie = fie(R_.then, R_)), + (km = function () { + yie(K0); + })) + : OC + ? (km = function () { + gie.nextTick(K0); + }) + : ((xC = fie(xC, Gc)), + (km = function () { + xC(K0); + }))); + _ie.exports = + bie || + function (e) { + var t = { fn: e, next: void 0 }; + X0 && (X0.next = t), Hc || ((Hc = t), km()), (X0 = t); + }; +}); +var Eie = d((bHt, Sie) => { + var IQe = It(); + Sie.exports = function (e, t) { + var r = IQe.console; + r && r.error && (arguments.length == 1 ? r.error(e) : r.error(e, t)); + }; +}); +var Am = d((_Ht, xie) => { + xie.exports = function (e) { + try { + return { error: !1, value: e() }; + } catch (t) { + return { error: !0, value: t }; + } + }; +}); +var Cie = d((wHt, Tie) => { + var Oie = function () { + (this.head = null), (this.tail = null); + }; + Oie.prototype = { + add: function (e) { + var t = { item: e, next: null }; + this.head ? (this.tail.next = t) : (this.head = t), (this.tail = t); + }, + get: function () { + var e = this.head; + if (e) return (this.head = e.next), this.tail === e && (this.tail = null), e.item; + }, + }; + Tie.exports = Oie; +}); +var Wc = d((SHt, kie) => { + var PQe = It(); + kie.exports = PQe.Promise; +}); +var kC = d((EHt, Aie) => { + Aie.exports = typeof Deno == 'object' && Deno && typeof Deno.version == 'object'; +}); +var Pie = d((xHt, Iie) => { + var RQe = kC(), + jQe = Cm(); + Iie.exports = !RQe && !jQe && typeof window == 'object' && typeof document == 'object'; +}); +var Im = d((OHt, Die) => { + var DQe = It(), + J0 = Wc(), + NQe = $t(), + qQe = LE(), + FQe = fx(), + LQe = Yt(), + MQe = Pie(), + UQe = kC(), + $Qe = Oo(), + AC = Oc(), + Rie = J0 && J0.prototype, + BQe = LQe('species'), + IC = !1, + jie = NQe(DQe.PromiseRejectionEvent), + VQe = qQe('Promise', function () { + var e = FQe(J0), + t = e !== String(J0); + if ((!t && AC === 66) || ($Qe && !(Rie.catch && Rie.finally))) return !0; + if (!AC || AC < 51 || !/native code/.test(e)) { + var r = new J0(function (o) { + o(1); + }), + n = function (o) { + o( + function () {}, + function () {} + ); + }, + a = (r.constructor = {}); + if (((a[BQe] = n), (IC = r.then(function () {}) instanceof n), !IC)) return !0; + } + return !t && (MQe || UQe) && !jie; + }); + Die.exports = { CONSTRUCTOR: VQe, REJECTION_EVENT: jie, SUBCLASSING: IC }; +}); +var Ju = d((THt, qie) => { + 'use strict'; + var Nie = zi(), + zQe = TypeError, + HQe = function (e) { + var t, r; + (this.promise = new e(function (n, a) { + if (t !== void 0 || r !== void 0) throw zQe('Bad Promise constructor'); + (t = n), (r = a); + })), + (this.resolve = Nie(t)), + (this.reject = Nie(r)); + }; + qie.exports.f = function (e) { + return new HQe(e); + }; +}); +var tne = d(() => { + 'use strict'; + var GQe = ve(), + WQe = Oo(), + q_ = Cm(), + Yu = It(), + Dm = Tr(), + Fie = Tl(), + Lie = o4(), + KQe = $u(), + XQe = cC(), + JQe = zi(), + N_ = $t(), + YQe = Lr(), + QQe = h0(), + ZQe = dC(), + Vie = EC().set, + NC = wie(), + eZe = Eie(), + tZe = Am(), + rZe = Cie(), + zie = Ol(), + F_ = Wc(), + qC = Im(), + Hie = Ju(), + L_ = 'Promise', + Gie = qC.CONSTRUCTOR, + iZe = qC.REJECTION_EVENT, + nZe = qC.SUBCLASSING, + PC = zie.getterFor(L_), + aZe = zie.set, + Pm = F_ && F_.prototype, + Kc = F_, + j_ = Pm, + Wie = Yu.TypeError, + RC = Yu.document, + FC = Yu.process, + jC = Hie.f, + oZe = jC, + sZe = !!(RC && RC.createEvent && Yu.dispatchEvent), + Kie = 'unhandledrejection', + lZe = 'rejectionhandled', + Mie = 0, + Xie = 1, + uZe = 2, + LC = 1, + Jie = 2, + D_, + Uie, + pZe, + $ie, + Yie = function (e) { + var t; + return YQe(e) && N_((t = e.then)) ? t : !1; + }, + Qie = function (e, t) { + var r = t.value, + n = t.state == Xie, + a = n ? e.ok : e.fail, + o = e.resolve, + s = e.reject, + l = e.domain, + u, + p, + c; + try { + a + ? (n || (t.rejection === Jie && dZe(t), (t.rejection = LC)), + a === !0 ? (u = r) : (l && l.enter(), (u = a(r)), l && (l.exit(), (c = !0))), + u === e.promise ? s(Wie('Promise-chain cycle')) : (p = Yie(u)) ? Dm(p, u, o, s) : o(u)) + : s(r); + } catch (f) { + l && !c && l.exit(), s(f); + } + }, + Zie = function (e, t) { + e.notified || + ((e.notified = !0), + NC(function () { + for (var r = e.reactions, n; (n = r.get()); ) Qie(n, e); + (e.notified = !1), t && !e.rejection && cZe(e); + })); + }, + ene = function (e, t, r) { + var n, a; + sZe + ? ((n = RC.createEvent('Event')), (n.promise = t), (n.reason = r), n.initEvent(e, !1, !0), Yu.dispatchEvent(n)) + : (n = { promise: t, reason: r }), + !iZe && (a = Yu['on' + e]) ? a(n) : e === Kie && eZe('Unhandled promise rejection', r); + }, + cZe = function (e) { + Dm(Vie, Yu, function () { + var t = e.facade, + r = e.value, + n = Bie(e), + a; + if ( + n && + ((a = tZe(function () { + q_ ? FC.emit('unhandledRejection', r, t) : ene(Kie, t, r); + })), + (e.rejection = q_ || Bie(e) ? Jie : LC), + a.error) + ) + throw a.value; + }); + }, + Bie = function (e) { + return e.rejection !== LC && !e.parent; + }, + dZe = function (e) { + Dm(Vie, Yu, function () { + var t = e.facade; + q_ ? FC.emit('rejectionHandled', t) : ene(lZe, t, e.value); + }); + }, + Rm = function (e, t, r) { + return function (n) { + e(t, n, r); + }; + }, + jm = function (e, t, r) { + e.done || ((e.done = !0), r && (e = r), (e.value = t), (e.state = uZe), Zie(e, !0)); + }, + DC = function (e, t, r) { + if (!e.done) { + (e.done = !0), r && (e = r); + try { + if (e.facade === t) throw Wie("Promise can't be resolved itself"); + var n = Yie(t); + n + ? NC(function () { + var a = { done: !1 }; + try { + Dm(n, t, Rm(DC, a, e), Rm(jm, a, e)); + } catch (o) { + jm(a, o, e); + } + }) + : ((e.value = t), (e.state = Xie), Zie(e, !1)); + } catch (a) { + jm({ done: !1 }, a, e); + } + } + }; + if ( + Gie && + ((Kc = function (t) { + QQe(this, j_), JQe(t), Dm(D_, this); + var r = PC(this); + try { + t(Rm(DC, r), Rm(jm, r)); + } catch (n) { + jm(r, n); + } + }), + (j_ = Kc.prototype), + (D_ = function (t) { + aZe(this, { + type: L_, + done: !1, + notified: !1, + parent: !1, + reactions: new rZe(), + rejection: !1, + state: Mie, + value: void 0, + }); + }), + (D_.prototype = Fie(j_, 'then', function (t, r) { + var n = PC(this), + a = jC(ZQe(this, Kc)); + return ( + (n.parent = !0), + (a.ok = N_(t) ? t : !0), + (a.fail = N_(r) && r), + (a.domain = q_ ? FC.domain : void 0), + n.state == Mie + ? n.reactions.add(a) + : NC(function () { + Qie(a, n); + }), + a.promise + ); + })), + (Uie = function () { + var e = new D_(), + t = PC(e); + (this.promise = e), (this.resolve = Rm(DC, t)), (this.reject = Rm(jm, t)); + }), + (Hie.f = jC = + function (e) { + return e === Kc || e === pZe ? new Uie(e) : oZe(e); + }), + !WQe && N_(F_) && Pm !== Object.prototype) + ) { + ($ie = Pm.then), + nZe || + Fie( + Pm, + 'then', + function (t, r) { + var n = this; + return new Kc(function (a, o) { + Dm($ie, n, a, o); + }).then(t, r); + }, + { unsafe: !0 } + ); + try { + delete Pm.constructor; + } catch {} + Lie && Lie(Pm, j_); + } + GQe({ global: !0, constructor: !0, wrap: !0, forced: Gie }, { Promise: Kc }); + KQe(Kc, L_, !1, !0); + XQe(L_); +}); +var one = d((AHt, ane) => { + var fZe = Yt(), + ine = fZe('iterator'), + nne = !1; + try { + (rne = 0), + (MC = { + next: function () { + return { done: !!rne++ }; + }, + return: function () { + nne = !0; + }, + }), + (MC[ine] = function () { + return this; + }), + Array.from(MC, function () { + throw 2; + }); + } catch {} + var rne, MC; + ane.exports = function (e, t) { + if (!t && !nne) return !1; + var r = !1; + try { + var n = {}; + (n[ine] = function () { + return { + next: function () { + return { done: (r = !0) }; + }, + }; + }), + e(n); + } catch {} + return r; + }; +}); +var UC = d((IHt, sne) => { + var mZe = Wc(), + hZe = one(), + gZe = Im().CONSTRUCTOR; + sne.exports = + gZe || + !hZe(function (e) { + mZe.all(e).then(void 0, function () {}); + }); +}); +var lne = d(() => { + 'use strict'; + var vZe = ve(), + yZe = Tr(), + bZe = zi(), + _Ze = Ju(), + wZe = Am(), + SZe = ds(), + EZe = UC(); + vZe( + { target: 'Promise', stat: !0, forced: EZe }, + { + all: function (t) { + var r = this, + n = _Ze.f(r), + a = n.resolve, + o = n.reject, + s = wZe(function () { + var l = bZe(r.resolve), + u = [], + p = 0, + c = 1; + SZe(t, function (f) { + var h = p++, + m = !1; + c++, + yZe(l, r, f).then(function (v) { + m || ((m = !0), (u[h] = v), --c || a(u)); + }, o); + }), + --c || a(u); + }); + return s.error && o(s.value), n.promise; + }, + } + ); +}); +var pne = d(() => { + 'use strict'; + var xZe = ve(), + OZe = Oo(), + TZe = Im().CONSTRUCTOR, + BC = Wc(), + CZe = un(), + kZe = $t(), + AZe = Tl(), + une = BC && BC.prototype; + xZe( + { target: 'Promise', proto: !0, forced: TZe, real: !0 }, + { + catch: function (e) { + return this.then(void 0, e); + }, + } + ); + !OZe && kZe(BC) && (($C = CZe('Promise').prototype.catch), une.catch !== $C && AZe(une, 'catch', $C, { unsafe: !0 })); + var $C; +}); +var cne = d(() => { + 'use strict'; + var IZe = ve(), + PZe = Tr(), + RZe = zi(), + jZe = Ju(), + DZe = Am(), + NZe = ds(), + qZe = UC(); + IZe( + { target: 'Promise', stat: !0, forced: qZe }, + { + race: function (t) { + var r = this, + n = jZe.f(r), + a = n.reject, + o = DZe(function () { + var s = RZe(r.resolve); + NZe(t, function (l) { + PZe(s, r, l).then(n.resolve, a); + }); + }); + return o.error && a(o.value), n.promise; + }, + } + ); +}); +var dne = d(() => { + 'use strict'; + var FZe = ve(), + LZe = Tr(), + MZe = Ju(), + UZe = Im().CONSTRUCTOR; + FZe( + { target: 'Promise', stat: !0, forced: UZe }, + { + reject: function (t) { + var r = MZe.f(this); + return LZe(r.reject, void 0, t), r.promise; + }, + } + ); +}); +var VC = d((MHt, fne) => { + var $Ze = Hi(), + BZe = Lr(), + VZe = Ju(); + fne.exports = function (e, t) { + if (($Ze(e), BZe(t) && t.constructor === e)) return t; + var r = VZe.f(e), + n = r.resolve; + return n(t), r.promise; + }; +}); +var gne = d(() => { + 'use strict'; + var zZe = ve(), + HZe = un(), + mne = Oo(), + GZe = Wc(), + hne = Im().CONSTRUCTOR, + WZe = VC(), + KZe = HZe('Promise'), + XZe = mne && !hne; + zZe( + { target: 'Promise', stat: !0, forced: mne || hne }, + { + resolve: function (t) { + return WZe(XZe && this === KZe ? GZe : this, t); + }, + } + ); +}); +var vne = d(() => { + tne(); + lne(); + pne(); + cne(); + dne(); + gne(); +}); +var yne = d(() => { + 'use strict'; + var JZe = ve(), + YZe = Tr(), + QZe = zi(), + ZZe = Ju(), + eet = Am(), + tet = ds(); + JZe( + { target: 'Promise', stat: !0 }, + { + allSettled: function (t) { + var r = this, + n = ZZe.f(r), + a = n.resolve, + o = n.reject, + s = eet(function () { + var l = QZe(r.resolve), + u = [], + p = 0, + c = 1; + tet(t, function (f) { + var h = p++, + m = !1; + c++, + YZe(l, r, f).then( + function (v) { + m || ((m = !0), (u[h] = { status: 'fulfilled', value: v }), --c || a(u)); + }, + function (v) { + m || ((m = !0), (u[h] = { status: 'rejected', reason: v }), --c || a(u)); + } + ); + }), + --c || a(u); + }); + return s.error && o(s.value), n.promise; + }, + } + ); +}); +var _ne = d(() => { + 'use strict'; + var ret = ve(), + iet = Tr(), + net = zi(), + aet = un(), + oet = Ju(), + set = Am(), + uet = ds(), + bne = 'No one promise resolved'; + ret( + { target: 'Promise', stat: !0 }, + { + any: function (t) { + var r = this, + n = aet('AggregateError'), + a = oet.f(r), + o = a.resolve, + s = a.reject, + l = set(function () { + var u = net(r.resolve), + p = [], + c = 0, + f = 1, + h = !1; + uet(t, function (m) { + var v = c++, + y = !1; + f++, + iet(u, r, m).then( + function (S) { + y || h || ((h = !0), o(S)); + }, + function (S) { + y || h || ((y = !0), (p[v] = S), --f || s(new n(p, bne))); + } + ); + }), + --f || s(new n(p, bne)); + }); + return l.error && s(l.value), a.promise; + }, + } + ); +}); +var xne = d(() => { + 'use strict'; + var pet = ve(), + cet = Oo(), + M_ = Wc(), + det = vt(), + Sne = un(), + Ene = $t(), + fet = dC(), + wne = VC(), + met = Tl(), + HC = M_ && M_.prototype, + het = + !!M_ && + det(function () { + HC.finally.call({ then: function () {} }, function () {}); + }); + pet( + { target: 'Promise', proto: !0, real: !0, forced: het }, + { + finally: function (e) { + var t = fet(this, Sne('Promise')), + r = Ene(e); + return this.then( + r + ? function (n) { + return wne(t, e()).then(function () { + return n; + }); + } + : e, + r + ? function (n) { + return wne(t, e()).then(function () { + throw n; + }); + } + : e + ); + }, + } + ); + !cet && + Ene(M_) && + ((zC = Sne('Promise').prototype.finally), HC.finally !== zC && met(HC, 'finally', zC, { unsafe: !0 })); + var zC; +}); +var Tne = d((JHt, One) => { + Wre(); + Rc(); + Dc(); + vne(); + yne(); + _ne(); + xne(); + f0(); + var get = or(); + One.exports = get.Promise; +}); +var kne = d((YHt, Cne) => { + var vet = Tne(); + Bu(); + Cne.exports = vet; +}); +var cn = d((QHt, Ane) => { + Ane.exports = kne(); +}); +var Rne = d(() => { + 'use strict'; + var yet = ve(), + Ine = jc(), + bet = m4(), + _et = Lr(), + Pne = K6(), + wet = xl(), + Eet = Ra(), + xet = n0(), + Oet = Yt(), + Tet = a0(), + Cet = lm(), + ket = Tet('slice'), + Aet = Oet('species'), + GC = Array, + Iet = Math.max; + yet( + { target: 'Array', proto: !0, forced: !ket }, + { + slice: function (t, r) { + var n = Eet(this), + a = wet(n), + o = Pne(t, a), + s = Pne(r === void 0 ? a : r, a), + l, + u, + p; + if ( + Ine(n) && + ((l = n.constructor), + bet(l) && (l === GC || Ine(l.prototype)) + ? (l = void 0) + : _et(l) && ((l = l[Aet]), l === null && (l = void 0)), + l === GC || l === void 0) + ) + return Cet(n, o, s); + for (u = new (l === void 0 ? GC : l)(Iet(s - o, 0)), p = 0; o < s; o++, p++) o in n && xet(u, p, n[o]); + return (u.length = p), u; + }, + } + ); +}); +var Dne = d((tGt, jne) => { + Rne(); + var Pet = pn(); + jne.exports = Pet('Array').slice; +}); +var qne = d((rGt, Nne) => { + var Ret = ei(), + jet = Dne(), + WC = Array.prototype; + Nne.exports = function (e) { + var t = e.slice; + return e === WC || (Ret(WC, e) && t === WC.slice) ? jet : t; + }; +}); +var Lne = d((iGt, Fne) => { + var Det = qne(); + Fne.exports = Det; +}); +var U_ = d((nGt, Mne) => { + Mne.exports = Lne(); +}); +var $ne = d(() => { + var Net = ve(), + qet = _t(), + Une = Date, + Fet = qet(Une.prototype.getTime); + Net( + { target: 'Date', stat: !0 }, + { + now: function () { + return Fet(new Une()); + }, + } + ); +}); +var Vne = d((sGt, Bne) => { + $ne(); + var Let = or(); + Bne.exports = Let.Date.now; +}); +var Hne = d((lGt, zne) => { + var Met = Vne(); + zne.exports = Met; +}); +var Nm = d((uGt, Gne) => { + Gne.exports = Hne(); +}); +var Kne = d((pGt, Wne) => { + Rc(); + Dc(); + var Uet = pn(); + Wne.exports = Uet('Array').keys; +}); +var Jne = d((cGt, Xne) => { + var $et = Kne(); + Xne.exports = $et; +}); +var Qne = d((dGt, Yne) => { + Bu(); + var Bet = Uu(), + Vet = ti(), + zet = ei(), + Het = Jne(), + KC = Array.prototype, + Get = { DOMTokenList: !0, NodeList: !0 }; + Yne.exports = function (e) { + var t = e.keys; + return e === KC || (zet(KC, e) && t === KC.keys) || Vet(Get, Bet(e)) ? Het : t; + }; +}); +var eae = d((fGt, Zne) => { + Zne.exports = Qne(); +}); +var iae = d((mGt, rae) => { + 'use strict'; + var gr = {}; + rae.exports = gr; + function tae(e) { + return e < 0 ? -1 : 1; + } + function Wet(e) { + return e % 1 === 0.5 && !(e & 1) ? Math.floor(e) : Math.round(e); + } + function Qu(e, t) { + t.unsigned || --e; + let r = t.unsigned ? 0 : -Math.pow(2, e), + n = Math.pow(2, e) - 1, + a = t.moduloBitLength ? Math.pow(2, t.moduloBitLength) : Math.pow(2, e), + o = t.moduloBitLength ? Math.pow(2, t.moduloBitLength - 1) : Math.pow(2, e - 1); + return function (s, l) { + l || (l = {}); + let u = +s; + if (l.enforceRange) { + if (!Number.isFinite(u)) throw new TypeError('Argument is not a finite number'); + if (((u = tae(u) * Math.floor(Math.abs(u))), u < r || u > n)) + throw new TypeError('Argument is not in byte range'); + return u; + } + if (!isNaN(u) && l.clamp) return (u = Wet(u)), u < r && (u = r), u > n && (u = n), u; + if (!Number.isFinite(u) || u === 0) return 0; + if (((u = tae(u) * Math.floor(Math.abs(u))), (u = u % a), !t.unsigned && u >= o)) return u - a; + if (t.unsigned) { + if (u < 0) u += a; + else if (u === -0) return 0; + } + return u; + }; + } + gr.void = function () {}; + gr.boolean = function (e) { + return !!e; + }; + gr.byte = Qu(8, { unsigned: !1 }); + gr.octet = Qu(8, { unsigned: !0 }); + gr.short = Qu(16, { unsigned: !1 }); + gr['unsigned short'] = Qu(16, { unsigned: !0 }); + gr.long = Qu(32, { unsigned: !1 }); + gr['unsigned long'] = Qu(32, { unsigned: !0 }); + gr['long long'] = Qu(32, { unsigned: !1, moduloBitLength: 64 }); + gr['unsigned long long'] = Qu(32, { unsigned: !0, moduloBitLength: 64 }); + gr.double = function (e) { + let t = +e; + if (!Number.isFinite(t)) throw new TypeError('Argument is not a finite floating-point value'); + return t; + }; + gr['unrestricted double'] = function (e) { + let t = +e; + if (isNaN(t)) throw new TypeError('Argument is NaN'); + return t; + }; + gr.float = gr.double; + gr['unrestricted float'] = gr['unrestricted double']; + gr.DOMString = function (e, t) { + return t || (t = {}), t.treatNullAsEmptyString && e === null ? '' : String(e); + }; + gr.ByteString = function (e, t) { + let r = String(e), + n; + for (let a = 0; (n = r.codePointAt(a)) !== void 0; ++a) + if (n > 255) throw new TypeError('Argument is not a valid bytestring'); + return r; + }; + gr.USVString = function (e) { + let t = String(e), + r = t.length, + n = []; + for (let a = 0; a < r; ++a) { + let o = t.charCodeAt(a); + if (o < 55296 || o > 57343) n.push(String.fromCodePoint(o)); + else if (56320 <= o && o <= 57343) n.push(String.fromCodePoint(65533)); + else if (a === r - 1) n.push(String.fromCodePoint(65533)); + else { + let s = t.charCodeAt(a + 1); + if (56320 <= s && s <= 57343) { + let l = o & 1023, + u = s & 1023; + n.push(String.fromCodePoint(65536 + 1024 * l + u)), ++a; + } else n.push(String.fromCodePoint(65533)); + } + } + return n.join(''); + }; + gr.Date = function (e, t) { + if (!(e instanceof Date)) throw new TypeError('Argument is not a Date object'); + if (!isNaN(e)) return e; + }; + gr.RegExp = function (e, t) { + return e instanceof RegExp || (e = new RegExp(e)), e; + }; +}); +var nae = d((hGt, Zu) => { + 'use strict'; + Zu.exports.mixin = function (t, r) { + let n = Object.getOwnPropertyNames(r); + for (let a = 0; a < n.length; ++a) Object.defineProperty(t, n[a], Object.getOwnPropertyDescriptor(r, n[a])); + }; + Zu.exports.wrapperSymbol = Symbol('wrapper'); + Zu.exports.implSymbol = Symbol('impl'); + Zu.exports.wrapperForImpl = function (e) { + return e[Zu.exports.wrapperSymbol]; + }; + Zu.exports.implForWrapper = function (e) { + return e[Zu.exports.implSymbol]; + }; +}); +var aae = d((gGt, Ket) => { + Ket.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'], + ]; +}); +var cae = d((vGt, B_) => { + 'use strict'; + var sae = require('punycode'), + oae = aae(), + qm = { TRANSITIONAL: 0, NONTRANSITIONAL: 1 }; + function lae(e) { + return e + .split('\0') + .map(function (t) { + return t.normalize('NFC'); + }) + .join('\0'); + } + function uae(e) { + for (var t = 0, r = oae.length - 1; t <= r; ) { + var n = Math.floor((t + r) / 2), + a = oae[n]; + if (a[0][0] <= e && a[0][1] >= e) return a; + a[0][0] > e ? (r = n - 1) : (t = n + 1); + } + return null; + } + var Xet = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g; + function pae(e) { + return e.replace(Xet, '_').length; + } + function Jet(e, t, r) { + for (var n = !1, a = '', o = pae(e), s = 0; s < o; ++s) { + var l = e.codePointAt(s), + u = uae(l); + switch (u[1]) { + case 'disallowed': + (n = !0), (a += String.fromCodePoint(l)); + break; + case 'ignored': + break; + case 'mapped': + a += String.fromCodePoint.apply(String, u[2]); + break; + case 'deviation': + r === qm.TRANSITIONAL ? (a += String.fromCodePoint.apply(String, u[2])) : (a += String.fromCodePoint(l)); + break; + case 'valid': + a += String.fromCodePoint(l); + break; + case 'disallowed_STD3_mapped': + t ? ((n = !0), (a += String.fromCodePoint(l))) : (a += String.fromCodePoint.apply(String, u[2])); + break; + case 'disallowed_STD3_valid': + t && (n = !0), (a += String.fromCodePoint(l)); + break; + } + } + return { string: a, error: n }; + } + var Yet = + /[\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 Qet(e, t) { + e.substr(0, 4) === 'xn--' && ((e = sae.toUnicode(e)), (t = qm.NONTRANSITIONAL)); + var r = !1; + (lae(e) !== e || + (e[3] === '-' && e[4] === '-') || + e[0] === '-' || + e[e.length - 1] === '-' || + e.indexOf('.') !== -1 || + e.search(Yet) === 0) && + (r = !0); + for (var n = pae(e), a = 0; a < n; ++a) { + var o = uae(e.codePointAt(a)); + if ( + ($_ === qm.TRANSITIONAL && o[1] !== 'valid') || + ($_ === qm.NONTRANSITIONAL && o[1] !== 'valid' && o[1] !== 'deviation') + ) { + r = !0; + break; + } + } + return { label: e, error: r }; + } + function $_(e, t, r) { + var n = Jet(e, t, r); + n.string = lae(n.string); + for (var a = n.string.split('.'), o = 0; o < a.length; ++o) + try { + var s = Qet(a[o]); + (a[o] = s.label), (n.error = n.error || s.error); + } catch { + n.error = !0; + } + return { string: a.join('.'), error: n.error }; + } + B_.exports.toASCII = function (e, t, r, n) { + var a = $_(e, t, r), + o = a.string.split('.'); + if ( + ((o = o.map(function (u) { + try { + return sae.toASCII(u); + } catch { + return (a.error = !0), u; + } + })), + n) + ) { + var s = o.slice(0, o.length - 1).join('.').length; + (s.length > 253 || s.length === 0) && (a.error = !0); + for (var l = 0; l < o.length; ++l) + if (o.length > 63 || o.length === 0) { + a.error = !0; + break; + } + } + return a.error ? null : o.join('.'); + }; + B_.exports.toUnicode = function (e, t) { + var r = $_(e, t, qm.NONTRANSITIONAL); + return { domain: r.string, error: r.error }; + }; + B_.exports.PROCESSING_OPTIONS = qm; +}); +var ms = d((yGt, ua) => { + 'use strict'; + var Fm = require('punycode'), + dae = cae(), + gae = { ftp: 21, file: null, gopher: 70, http: 80, https: 443, ws: 80, wss: 443 }, + Ue = Symbol('failure'); + function fae(e) { + return Fm.ucs2.decode(e).length; + } + function mae(e, t) { + let r = e[t]; + return isNaN(r) ? void 0 : String.fromCodePoint(r); + } + function Y0(e) { + return e >= 48 && e <= 57; + } + function Q0(e) { + return (e >= 65 && e <= 90) || (e >= 97 && e <= 122); + } + function Zet(e) { + return Q0(e) || Y0(e); + } + function jo(e) { + return Y0(e) || (e >= 65 && e <= 70) || (e >= 97 && e <= 102); + } + function hae(e) { + return e === '.' || e.toLowerCase() === '%2e'; + } + function ett(e) { + return (e = e.toLowerCase()), e === '..' || e === '%2e.' || e === '.%2e' || e === '%2e%2e'; + } + function ttt(e, t) { + return Q0(e) && (t === 58 || t === 124); + } + function vae(e) { + return e.length === 2 && Q0(e.codePointAt(0)) && (e[1] === ':' || e[1] === '|'); + } + function rtt(e) { + return e.length === 2 && Q0(e.codePointAt(0)) && e[1] === ':'; + } + function itt(e) { + return e.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/) !== -1; + } + function ntt(e) { + return e.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/) !== -1; + } + function XC(e) { + return gae[e] !== void 0; + } + function ri(e) { + return XC(e.scheme); + } + function att(e) { + return gae[e]; + } + function yae(e) { + let t = e.toString(16).toUpperCase(); + return t.length === 1 && (t = '0' + t), '%' + t; + } + function ott(e) { + let t = new Buffer(e), + r = ''; + for (let n = 0; n < t.length; ++n) r += yae(t[n]); + return r; + } + function stt(e) { + let t = new Buffer(e), + r = []; + for (let n = 0; n < t.length; ++n) + t[n] !== 37 + ? r.push(t[n]) + : t[n] === 37 && jo(t[n + 1]) && jo(t[n + 2]) + ? (r.push(parseInt(t.slice(n + 1, n + 3).toString(), 16)), (n += 2)) + : r.push(t[n]); + return new Buffer(r).toString(); + } + function V_(e) { + return e <= 31 || e > 126; + } + var ltt = new Set([32, 34, 35, 60, 62, 63, 96, 123, 125]); + function bae(e) { + return V_(e) || ltt.has(e); + } + var utt = new Set([47, 58, 59, 61, 64, 91, 92, 93, 94, 124]); + function YC(e) { + return bae(e) || utt.has(e); + } + function Xc(e, t) { + let r = String.fromCodePoint(e); + return t(e) ? ott(r) : r; + } + function ptt(e) { + let t = 10; + return ( + e.length >= 2 && e.charAt(0) === '0' && e.charAt(1).toLowerCase() === 'x' + ? ((e = e.substring(2)), (t = 16)) + : e.length >= 2 && e.charAt(0) === '0' && ((e = e.substring(1)), (t = 8)), + e === '' ? 0 : (t === 10 ? /[^0-9]/ : t === 16 ? /[^0-9A-Fa-f]/ : /[^0-7]/).test(e) ? Ue : parseInt(e, t) + ); + } + function ctt(e) { + let t = e.split('.'); + if ((t[t.length - 1] === '' && t.length > 1 && t.pop(), t.length > 4)) return e; + let r = []; + for (let o of t) { + if (o === '') return e; + let s = ptt(o); + if (s === Ue) return e; + r.push(s); + } + for (let o = 0; o < r.length - 1; ++o) if (r[o] > 255) return Ue; + if (r[r.length - 1] >= Math.pow(256, 5 - r.length)) return Ue; + let n = r.pop(), + a = 0; + for (let o of r) (n += o * Math.pow(256, 3 - a)), ++a; + return n; + } + function dtt(e) { + let t = '', + r = e; + for (let n = 1; n <= 4; ++n) (t = String(r % 256) + t), n !== 4 && (t = '.' + t), (r = Math.floor(r / 256)); + return t; + } + function ftt(e) { + let t = [0, 0, 0, 0, 0, 0, 0, 0], + r = 0, + n = null, + a = 0; + if (((e = Fm.ucs2.decode(e)), e[a] === 58)) { + if (e[a + 1] !== 58) return Ue; + (a += 2), ++r, (n = r); + } + for (; a < e.length; ) { + if (r === 8) return Ue; + if (e[a] === 58) { + if (n !== null) return Ue; + ++a, ++r, (n = r); + continue; + } + let o = 0, + s = 0; + for (; s < 4 && jo(e[a]); ) (o = o * 16 + parseInt(mae(e, a), 16)), ++a, ++s; + if (e[a] === 46) { + if (s === 0 || ((a -= s), r > 6)) return Ue; + let l = 0; + for (; e[a] !== void 0; ) { + let u = null; + if (l > 0) + if (e[a] === 46 && l < 4) ++a; + else return Ue; + if (!Y0(e[a])) return Ue; + for (; Y0(e[a]); ) { + let p = parseInt(mae(e, a)); + if (u === null) u = p; + else { + if (u === 0) return Ue; + u = u * 10 + p; + } + if (u > 255) return Ue; + ++a; + } + (t[r] = t[r] * 256 + u), ++l, (l === 2 || l === 4) && ++r; + } + if (l !== 4) return Ue; + break; + } else if (e[a] === 58) { + if ((++a, e[a] === void 0)) return Ue; + } else if (e[a] !== void 0) return Ue; + (t[r] = o), ++r; + } + if (n !== null) { + let o = r - n; + for (r = 7; r !== 0 && o > 0; ) { + let s = t[n + o - 1]; + (t[n + o - 1] = t[r]), (t[r] = s), --r, --o; + } + } else if (n === null && r !== 8) return Ue; + return t; + } + function mtt(e) { + let t = '', + n = gtt(e).idx, + a = !1; + for (let o = 0; o <= 7; ++o) + if (!(a && e[o] === 0)) { + if ((a && (a = !1), n === o)) { + (t += o === 0 ? '::' : ':'), (a = !0); + continue; + } + (t += e[o].toString(16)), o !== 7 && (t += ':'); + } + return t; + } + function JC(e, t) { + if (e[0] === '[') return e[e.length - 1] !== ']' ? Ue : ftt(e.substring(1, e.length - 1)); + if (!t) return htt(e); + let r = stt(e), + n = dae.toASCII(r, !1, dae.PROCESSING_OPTIONS.NONTRANSITIONAL, !1); + if (n === null || itt(n)) return Ue; + let a = ctt(n); + return typeof a == 'number' || a === Ue ? a : n; + } + function htt(e) { + if (ntt(e)) return Ue; + let t = '', + r = Fm.ucs2.decode(e); + for (let n = 0; n < r.length; ++n) t += Xc(r[n], V_); + return t; + } + function gtt(e) { + let t = null, + r = 1, + n = null, + a = 0; + for (let o = 0; o < e.length; ++o) + e[o] !== 0 ? (a > r && ((t = n), (r = a)), (n = null), (a = 0)) : (n === null && (n = o), ++a); + return a > r && ((t = n), (r = a)), { idx: t, len: r }; + } + function QC(e) { + return typeof e == 'number' ? dtt(e) : e instanceof Array ? '[' + mtt(e) + ']' : e; + } + function vtt(e) { + return e.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g, ''); + } + function ytt(e) { + return e.replace(/\u0009|\u000A|\u000D/g, ''); + } + function _ae(e) { + let t = e.path; + t.length !== 0 && ((e.scheme === 'file' && t.length === 1 && _tt(t[0])) || t.pop()); + } + function wae(e) { + return e.username !== '' || e.password !== ''; + } + function btt(e) { + return e.host === null || e.host === '' || e.cannotBeABaseURL || e.scheme === 'file'; + } + function _tt(e) { + return /^[A-Za-z]:$/.test(e); + } + function vr(e, t, r, n, a) { + if ( + ((this.pointer = 0), + (this.input = e), + (this.base = t || null), + (this.encodingOverride = r || 'utf-8'), + (this.stateOverride = a), + (this.url = n), + (this.failure = !1), + (this.parseError = !1), + !this.url) + ) { + this.url = { + scheme: '', + username: '', + password: '', + host: null, + port: null, + path: [], + query: null, + fragment: null, + cannotBeABaseURL: !1, + }; + let s = vtt(this.input); + s !== this.input && (this.parseError = !0), (this.input = s); + } + let o = ytt(this.input); + for ( + o !== this.input && (this.parseError = !0), + this.input = o, + this.state = a || 'scheme start', + this.buffer = '', + this.atFlag = !1, + this.arrFlag = !1, + this.passwordTokenSeenFlag = !1, + this.input = Fm.ucs2.decode(this.input); + this.pointer <= this.input.length; + ++this.pointer + ) { + let s = this.input[this.pointer], + l = isNaN(s) ? void 0 : String.fromCodePoint(s), + u = this['parse ' + this.state](s, l); + if (u) { + if (u === Ue) { + this.failure = !0; + break; + } + } else break; + } + } + vr.prototype['parse scheme start'] = function (t, r) { + if (Q0(t)) (this.buffer += r.toLowerCase()), (this.state = 'scheme'); + else if (!this.stateOverride) (this.state = 'no scheme'), --this.pointer; + else return (this.parseError = !0), Ue; + return !0; + }; + vr.prototype['parse scheme'] = function (t, r) { + if (Zet(t) || t === 43 || t === 45 || t === 46) this.buffer += r.toLowerCase(); + else if (t === 58) { + if ( + (this.stateOverride && + ((ri(this.url) && !XC(this.buffer)) || + (!ri(this.url) && XC(this.buffer)) || + ((wae(this.url) || this.url.port !== null) && this.buffer === 'file') || + (this.url.scheme === 'file' && (this.url.host === '' || this.url.host === null)))) || + ((this.url.scheme = this.buffer), (this.buffer = ''), this.stateOverride) + ) + return !1; + this.url.scheme === 'file' + ? ((this.input[this.pointer + 1] !== 47 || this.input[this.pointer + 2] !== 47) && (this.parseError = !0), + (this.state = 'file')) + : ri(this.url) && this.base !== null && this.base.scheme === this.url.scheme + ? (this.state = 'special relative or authority') + : ri(this.url) + ? (this.state = 'special authority slashes') + : this.input[this.pointer + 1] === 47 + ? ((this.state = 'path or authority'), ++this.pointer) + : ((this.url.cannotBeABaseURL = !0), 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 return (this.parseError = !0), Ue; + return !0; + }; + vr.prototype['parse no scheme'] = function (t) { + return this.base === null || (this.base.cannotBeABaseURL && t !== 35) + ? Ue + : (this.base.cannotBeABaseURL && t === 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 = !0), + (this.state = 'fragment')) + : this.base.scheme === 'file' + ? ((this.state = 'file'), --this.pointer) + : ((this.state = 'relative'), --this.pointer), + !0); + }; + vr.prototype['parse special relative or authority'] = function (t) { + return ( + t === 47 && this.input[this.pointer + 1] === 47 + ? ((this.state = 'special authority ignore slashes'), ++this.pointer) + : ((this.parseError = !0), (this.state = 'relative'), --this.pointer), + !0 + ); + }; + vr.prototype['parse path or authority'] = function (t) { + return t === 47 ? (this.state = 'authority') : ((this.state = 'path'), --this.pointer), !0; + }; + vr.prototype['parse relative'] = function (t) { + return ( + (this.url.scheme = this.base.scheme), + isNaN(t) + ? ((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)) + : t === 47 + ? (this.state = 'relative slash') + : t === 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')) + : t === 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')) + : ri(this.url) && t === 92 + ? ((this.parseError = !0), (this.state = 'relative slash')) + : ((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), + !0 + ); + }; + vr.prototype['parse relative slash'] = function (t) { + return ( + ri(this.url) && (t === 47 || t === 92) + ? (t === 92 && (this.parseError = !0), (this.state = 'special authority ignore slashes')) + : t === 47 + ? (this.state = 'authority') + : ((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), + !0 + ); + }; + vr.prototype['parse special authority slashes'] = function (t) { + return ( + t === 47 && this.input[this.pointer + 1] === 47 + ? ((this.state = 'special authority ignore slashes'), ++this.pointer) + : ((this.parseError = !0), (this.state = 'special authority ignore slashes'), --this.pointer), + !0 + ); + }; + vr.prototype['parse special authority ignore slashes'] = function (t) { + return t !== 47 && t !== 92 ? ((this.state = 'authority'), --this.pointer) : (this.parseError = !0), !0; + }; + vr.prototype['parse authority'] = function (t, r) { + if (t === 64) { + (this.parseError = !0), this.atFlag && (this.buffer = '%40' + this.buffer), (this.atFlag = !0); + let n = fae(this.buffer); + for (let a = 0; a < n; ++a) { + let o = this.buffer.codePointAt(a); + if (o === 58 && !this.passwordTokenSeenFlag) { + this.passwordTokenSeenFlag = !0; + continue; + } + let s = Xc(o, YC); + this.passwordTokenSeenFlag ? (this.url.password += s) : (this.url.username += s); + } + this.buffer = ''; + } else if (isNaN(t) || t === 47 || t === 63 || t === 35 || (ri(this.url) && t === 92)) { + if (this.atFlag && this.buffer === '') return (this.parseError = !0), Ue; + (this.pointer -= fae(this.buffer) + 1), (this.buffer = ''), (this.state = 'host'); + } else this.buffer += r; + return !0; + }; + vr.prototype['parse hostname'] = vr.prototype['parse host'] = function (t, r) { + if (this.stateOverride && this.url.scheme === 'file') --this.pointer, (this.state = 'file host'); + else if (t === 58 && !this.arrFlag) { + if (this.buffer === '') return (this.parseError = !0), Ue; + let n = JC(this.buffer, ri(this.url)); + if (n === Ue) return Ue; + if (((this.url.host = n), (this.buffer = ''), (this.state = 'port'), this.stateOverride === 'hostname')) + return !1; + } else if (isNaN(t) || t === 47 || t === 63 || t === 35 || (ri(this.url) && t === 92)) { + if ((--this.pointer, ri(this.url) && this.buffer === '')) return (this.parseError = !0), Ue; + if (this.stateOverride && this.buffer === '' && (wae(this.url) || this.url.port !== null)) + return (this.parseError = !0), !1; + let n = JC(this.buffer, ri(this.url)); + if (n === Ue) return Ue; + if (((this.url.host = n), (this.buffer = ''), (this.state = 'path start'), this.stateOverride)) return !1; + } else t === 91 ? (this.arrFlag = !0) : t === 93 && (this.arrFlag = !1), (this.buffer += r); + return !0; + }; + vr.prototype['parse port'] = function (t, r) { + if (Y0(t)) this.buffer += r; + else if (isNaN(t) || t === 47 || t === 63 || t === 35 || (ri(this.url) && t === 92) || this.stateOverride) { + if (this.buffer !== '') { + let n = parseInt(this.buffer); + if (n > Math.pow(2, 16) - 1) return (this.parseError = !0), Ue; + (this.url.port = n === att(this.url.scheme) ? null : n), (this.buffer = ''); + } + if (this.stateOverride) return !1; + (this.state = 'path start'), --this.pointer; + } else return (this.parseError = !0), Ue; + return !0; + }; + var wtt = new Set([47, 92, 63, 35]); + vr.prototype['parse file'] = function (t) { + return ( + (this.url.scheme = 'file'), + t === 47 || t === 92 + ? (t === 92 && (this.parseError = !0), (this.state = 'file slash')) + : this.base !== null && this.base.scheme === 'file' + ? isNaN(t) + ? ((this.url.host = this.base.host), + (this.url.path = this.base.path.slice()), + (this.url.query = this.base.query)) + : t === 63 + ? ((this.url.host = this.base.host), + (this.url.path = this.base.path.slice()), + (this.url.query = ''), + (this.state = 'query')) + : t === 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')) + : (this.input.length - this.pointer - 1 === 0 || + !ttt(t, this.input[this.pointer + 1]) || + (this.input.length - this.pointer - 1 >= 2 && !wtt.has(this.input[this.pointer + 2])) + ? ((this.url.host = this.base.host), (this.url.path = this.base.path.slice()), _ae(this.url)) + : (this.parseError = !0), + (this.state = 'path'), + --this.pointer) + : ((this.state = 'path'), --this.pointer), + !0 + ); + }; + vr.prototype['parse file slash'] = function (t) { + return ( + t === 47 || t === 92 + ? (t === 92 && (this.parseError = !0), (this.state = 'file host')) + : (this.base !== null && + this.base.scheme === 'file' && + (rtt(this.base.path[0]) ? this.url.path.push(this.base.path[0]) : (this.url.host = this.base.host)), + (this.state = 'path'), + --this.pointer), + !0 + ); + }; + vr.prototype['parse file host'] = function (t, r) { + if (isNaN(t) || t === 47 || t === 92 || t === 63 || t === 35) + if ((--this.pointer, !this.stateOverride && vae(this.buffer))) (this.parseError = !0), (this.state = 'path'); + else if (this.buffer === '') { + if (((this.url.host = ''), this.stateOverride)) return !1; + this.state = 'path start'; + } else { + let n = JC(this.buffer, ri(this.url)); + if (n === Ue) return Ue; + if ((n === 'localhost' && (n = ''), (this.url.host = n), this.stateOverride)) return !1; + (this.buffer = ''), (this.state = 'path start'); + } + else this.buffer += r; + return !0; + }; + vr.prototype['parse path start'] = function (t) { + return ( + ri(this.url) + ? (t === 92 && (this.parseError = !0), (this.state = 'path'), t !== 47 && t !== 92 && --this.pointer) + : !this.stateOverride && t === 63 + ? ((this.url.query = ''), (this.state = 'query')) + : !this.stateOverride && t === 35 + ? ((this.url.fragment = ''), (this.state = 'fragment')) + : t !== void 0 && ((this.state = 'path'), t !== 47 && --this.pointer), + !0 + ); + }; + vr.prototype['parse path'] = function (t) { + if (isNaN(t) || t === 47 || (ri(this.url) && t === 92) || (!this.stateOverride && (t === 63 || t === 35))) { + if ( + (ri(this.url) && t === 92 && (this.parseError = !0), + ett(this.buffer) + ? (_ae(this.url), t !== 47 && !(ri(this.url) && t === 92) && this.url.path.push('')) + : hae(this.buffer) && t !== 47 && !(ri(this.url) && t === 92) + ? this.url.path.push('') + : hae(this.buffer) || + (this.url.scheme === 'file' && + this.url.path.length === 0 && + vae(this.buffer) && + (this.url.host !== '' && this.url.host !== null && ((this.parseError = !0), (this.url.host = '')), + (this.buffer = this.buffer[0] + ':')), + this.url.path.push(this.buffer)), + (this.buffer = ''), + this.url.scheme === 'file' && (t === void 0 || t === 63 || t === 35)) + ) + for (; this.url.path.length > 1 && this.url.path[0] === ''; ) (this.parseError = !0), this.url.path.shift(); + t === 63 && ((this.url.query = ''), (this.state = 'query')), + t === 35 && ((this.url.fragment = ''), (this.state = 'fragment')); + } else + t === 37 && (!jo(this.input[this.pointer + 1]) || !jo(this.input[this.pointer + 2])) && (this.parseError = !0), + (this.buffer += Xc(t, bae)); + return !0; + }; + vr.prototype['parse cannot-be-a-base-URL path'] = function (t) { + return ( + t === 63 + ? ((this.url.query = ''), (this.state = 'query')) + : t === 35 + ? ((this.url.fragment = ''), (this.state = 'fragment')) + : (!isNaN(t) && t !== 37 && (this.parseError = !0), + t === 37 && + (!jo(this.input[this.pointer + 1]) || !jo(this.input[this.pointer + 2])) && + (this.parseError = !0), + isNaN(t) || (this.url.path[0] = this.url.path[0] + Xc(t, V_))), + !0 + ); + }; + vr.prototype['parse query'] = function (t, r) { + if (isNaN(t) || (!this.stateOverride && t === 35)) { + (!ri(this.url) || this.url.scheme === 'ws' || this.url.scheme === 'wss') && (this.encodingOverride = 'utf-8'); + let n = new Buffer(this.buffer); + for (let a = 0; a < n.length; ++a) + n[a] < 33 || n[a] > 126 || n[a] === 34 || n[a] === 35 || n[a] === 60 || n[a] === 62 + ? (this.url.query += yae(n[a])) + : (this.url.query += String.fromCodePoint(n[a])); + (this.buffer = ''), t === 35 && ((this.url.fragment = ''), (this.state = 'fragment')); + } else + t === 37 && (!jo(this.input[this.pointer + 1]) || !jo(this.input[this.pointer + 2])) && (this.parseError = !0), + (this.buffer += r); + return !0; + }; + vr.prototype['parse fragment'] = function (t) { + return ( + isNaN(t) || + (t === 0 + ? (this.parseError = !0) + : (t === 37 && + (!jo(this.input[this.pointer + 1]) || !jo(this.input[this.pointer + 2])) && + (this.parseError = !0), + (this.url.fragment += Xc(t, V_)))), + !0 + ); + }; + function Stt(e, t) { + let r = e.scheme + ':'; + if ( + (e.host !== null + ? ((r += '//'), + (e.username !== '' || e.password !== '') && + ((r += e.username), e.password !== '' && (r += ':' + e.password), (r += '@')), + (r += QC(e.host)), + e.port !== null && (r += ':' + e.port)) + : e.host === null && e.scheme === 'file' && (r += '//'), + e.cannotBeABaseURL) + ) + r += e.path[0]; + else for (let n of e.path) r += '/' + n; + return e.query !== null && (r += '?' + e.query), !t && e.fragment !== null && (r += '#' + e.fragment), r; + } + function Ett(e) { + let t = e.scheme + '://'; + return (t += QC(e.host)), e.port !== null && (t += ':' + e.port), t; + } + ua.exports.serializeURL = Stt; + ua.exports.serializeURLOrigin = function (e) { + switch (e.scheme) { + case 'blob': + try { + return ua.exports.serializeURLOrigin(ua.exports.parseURL(e.path[0])); + } catch { + return 'null'; + } + case 'ftp': + case 'gopher': + case 'http': + case 'https': + case 'ws': + case 'wss': + return Ett({ scheme: e.scheme, host: e.host, port: e.port }); + case 'file': + return 'file://'; + default: + return 'null'; + } + }; + ua.exports.basicURLParse = function (e, t) { + t === void 0 && (t = {}); + let r = new vr(e, t.baseURL, t.encodingOverride, t.url, t.stateOverride); + return r.failure ? 'failure' : r.url; + }; + ua.exports.setTheUsername = function (e, t) { + e.username = ''; + let r = Fm.ucs2.decode(t); + for (let n = 0; n < r.length; ++n) e.username += Xc(r[n], YC); + }; + ua.exports.setThePassword = function (e, t) { + e.password = ''; + let r = Fm.ucs2.decode(t); + for (let n = 0; n < r.length; ++n) e.password += Xc(r[n], YC); + }; + ua.exports.serializeHost = QC; + ua.exports.cannotHaveAUsernamePasswordPort = btt; + ua.exports.serializeInteger = function (e) { + return String(e); + }; + ua.exports.parseURL = function (e, t) { + return ( + t === void 0 && (t = {}), + ua.exports.basicURLParse(e, { baseURL: t.baseURL, encodingOverride: t.encodingOverride }) + ); + }; +}); +var Eae = d((Sae) => { + 'use strict'; + var yr = ms(); + Sae.implementation = class { + constructor(t) { + let r = t[0], + n = t[1], + a = null; + if (n !== void 0 && ((a = yr.basicURLParse(n)), a === 'failure')) throw new TypeError('Invalid base URL'); + let o = yr.basicURLParse(r, { baseURL: a }); + if (o === 'failure') throw new TypeError('Invalid URL'); + this._url = o; + } + get href() { + return yr.serializeURL(this._url); + } + set href(t) { + let r = yr.basicURLParse(t); + if (r === 'failure') throw new TypeError('Invalid URL'); + this._url = r; + } + get origin() { + return yr.serializeURLOrigin(this._url); + } + get protocol() { + return this._url.scheme + ':'; + } + set protocol(t) { + yr.basicURLParse(t + ':', { url: this._url, stateOverride: 'scheme start' }); + } + get username() { + return this._url.username; + } + set username(t) { + yr.cannotHaveAUsernamePasswordPort(this._url) || yr.setTheUsername(this._url, t); + } + get password() { + return this._url.password; + } + set password(t) { + yr.cannotHaveAUsernamePasswordPort(this._url) || yr.setThePassword(this._url, t); + } + get host() { + let t = this._url; + return t.host === null + ? '' + : t.port === null + ? yr.serializeHost(t.host) + : yr.serializeHost(t.host) + ':' + yr.serializeInteger(t.port); + } + set host(t) { + this._url.cannotBeABaseURL || yr.basicURLParse(t, { url: this._url, stateOverride: 'host' }); + } + get hostname() { + return this._url.host === null ? '' : yr.serializeHost(this._url.host); + } + set hostname(t) { + this._url.cannotBeABaseURL || yr.basicURLParse(t, { url: this._url, stateOverride: 'hostname' }); + } + get port() { + return this._url.port === null ? '' : yr.serializeInteger(this._url.port); + } + set port(t) { + yr.cannotHaveAUsernamePasswordPort(this._url) || + (t === '' ? (this._url.port = null) : yr.basicURLParse(t, { url: this._url, stateOverride: 'port' })); + } + get pathname() { + return this._url.cannotBeABaseURL + ? this._url.path[0] + : this._url.path.length === 0 + ? '' + : '/' + this._url.path.join('/'); + } + set pathname(t) { + this._url.cannotBeABaseURL || + ((this._url.path = []), yr.basicURLParse(t, { url: this._url, stateOverride: 'path start' })); + } + get search() { + return this._url.query === null || this._url.query === '' ? '' : '?' + this._url.query; + } + set search(t) { + let r = this._url; + if (t === '') { + r.query = null; + return; + } + let n = t[0] === '?' ? t.substring(1) : t; + (r.query = ''), yr.basicURLParse(n, { url: r, stateOverride: 'query' }); + } + get hash() { + return this._url.fragment === null || this._url.fragment === '' ? '' : '#' + this._url.fragment; + } + set hash(t) { + if (t === '') { + this._url.fragment = null; + return; + } + let r = t[0] === '#' ? t.substring(1) : t; + (this._url.fragment = ''), yr.basicURLParse(r, { url: this._url, stateOverride: 'fragment' }); + } + toJSON() { + return this.href; + } + }; +}); +var Tae = d((wGt, Z0) => { + 'use strict'; + var Na = iae(), + Oae = nae(), + xae = Eae(), + Pt = Oae.implSymbol; + function hi(e) { + if (!this || this[Pt] || !(this instanceof hi)) + 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.'); + let t = []; + for (let r = 0; r < arguments.length && r < 2; ++r) t[r] = arguments[r]; + (t[0] = Na.USVString(t[0])), t[1] !== void 0 && (t[1] = Na.USVString(t[1])), Z0.exports.setup(this, t); + } + hi.prototype.toJSON = function () { + if (!this || !Z0.exports.is(this)) throw new TypeError('Illegal invocation'); + let t = []; + for (let r = 0; r < arguments.length && r < 0; ++r) t[r] = arguments[r]; + return this[Pt].toJSON.apply(this[Pt], t); + }; + Object.defineProperty(hi.prototype, 'href', { + get() { + return this[Pt].href; + }, + set(e) { + (e = Na.USVString(e)), (this[Pt].href = e); + }, + enumerable: !0, + configurable: !0, + }); + hi.prototype.toString = function () { + if (!this || !Z0.exports.is(this)) throw new TypeError('Illegal invocation'); + return this.href; + }; + Object.defineProperty(hi.prototype, 'origin', { + get() { + return this[Pt].origin; + }, + enumerable: !0, + configurable: !0, + }); + Object.defineProperty(hi.prototype, 'protocol', { + get() { + return this[Pt].protocol; + }, + set(e) { + (e = Na.USVString(e)), (this[Pt].protocol = e); + }, + enumerable: !0, + configurable: !0, + }); + Object.defineProperty(hi.prototype, 'username', { + get() { + return this[Pt].username; + }, + set(e) { + (e = Na.USVString(e)), (this[Pt].username = e); + }, + enumerable: !0, + configurable: !0, + }); + Object.defineProperty(hi.prototype, 'password', { + get() { + return this[Pt].password; + }, + set(e) { + (e = Na.USVString(e)), (this[Pt].password = e); + }, + enumerable: !0, + configurable: !0, + }); + Object.defineProperty(hi.prototype, 'host', { + get() { + return this[Pt].host; + }, + set(e) { + (e = Na.USVString(e)), (this[Pt].host = e); + }, + enumerable: !0, + configurable: !0, + }); + Object.defineProperty(hi.prototype, 'hostname', { + get() { + return this[Pt].hostname; + }, + set(e) { + (e = Na.USVString(e)), (this[Pt].hostname = e); + }, + enumerable: !0, + configurable: !0, + }); + Object.defineProperty(hi.prototype, 'port', { + get() { + return this[Pt].port; + }, + set(e) { + (e = Na.USVString(e)), (this[Pt].port = e); + }, + enumerable: !0, + configurable: !0, + }); + Object.defineProperty(hi.prototype, 'pathname', { + get() { + return this[Pt].pathname; + }, + set(e) { + (e = Na.USVString(e)), (this[Pt].pathname = e); + }, + enumerable: !0, + configurable: !0, + }); + Object.defineProperty(hi.prototype, 'search', { + get() { + return this[Pt].search; + }, + set(e) { + (e = Na.USVString(e)), (this[Pt].search = e); + }, + enumerable: !0, + configurable: !0, + }); + Object.defineProperty(hi.prototype, 'hash', { + get() { + return this[Pt].hash; + }, + set(e) { + (e = Na.USVString(e)), (this[Pt].hash = e); + }, + enumerable: !0, + configurable: !0, + }); + Z0.exports = { + is(e) { + return !!e && e[Pt] instanceof xae.implementation; + }, + create(e, t) { + let r = Object.create(hi.prototype); + return this.setup(r, e, t), r; + }, + setup(e, t, r) { + r || (r = {}), (r.wrapper = e), (e[Pt] = new xae.implementation(t, r)), (e[Pt][Oae.wrapperSymbol] = e); + }, + interface: hi, + expose: { Window: { URL: hi }, Worker: { URL: hi } }, + }; +}); +var Cae = d((hs) => { + 'use strict'; + hs.URL = Tae().interface; + hs.serializeURL = ms().serializeURL; + hs.serializeURLOrigin = ms().serializeURLOrigin; + hs.basicURLParse = ms().basicURLParse; + hs.setTheUsername = ms().setTheUsername; + hs.setThePassword = ms().setThePassword; + hs.serializeHost = ms().serializeHost; + hs.serializeInteger = ms().serializeInteger; + hs.parseURL = ms().parseURL; +}); +var Mae = d((gs, Lae) => { + 'use strict'; + Object.defineProperty(gs, '__esModule', { value: !0 }); + function Um(e) { + return e && typeof e == 'object' && 'default' in e ? e.default : e; + } + var Do = Um(require('stream')), + Pae = Um(require('http')), + H_ = Um(require('url')), + Rae = Um(Cae()), + xtt = Um(require('https')), + Jc = Um(require('zlib')), + Ott = Do.Readable, + Fl = Symbol('buffer'), + ZC = Symbol('type'), + tv = class e { + constructor() { + this[ZC] = ''; + let t = arguments[0], + r = arguments[1], + n = [], + a = 0; + if (t) { + let s = t, + l = Number(s.length); + for (let u = 0; u < l; u++) { + let p = s[u], + c; + p instanceof Buffer + ? (c = p) + : ArrayBuffer.isView(p) + ? (c = Buffer.from(p.buffer, p.byteOffset, p.byteLength)) + : p instanceof ArrayBuffer + ? (c = Buffer.from(p)) + : p instanceof e + ? (c = p[Fl]) + : (c = Buffer.from(typeof p == 'string' ? p : String(p))), + (a += c.length), + n.push(c); + } + } + this[Fl] = Buffer.concat(n); + let o = r && r.type !== void 0 && String(r.type).toLowerCase(); + o && !/[^\u0020-\u007E]/.test(o) && (this[ZC] = o); + } + get size() { + return this[Fl].length; + } + get type() { + return this[ZC]; + } + text() { + return Promise.resolve(this[Fl].toString()); + } + arrayBuffer() { + let t = this[Fl], + r = t.buffer.slice(t.byteOffset, t.byteOffset + t.byteLength); + return Promise.resolve(r); + } + stream() { + let t = new Ott(); + return (t._read = function () {}), t.push(this[Fl]), t.push(null), t; + } + toString() { + return '[object Blob]'; + } + slice() { + let t = this.size, + r = arguments[0], + n = arguments[1], + a, + o; + r === void 0 ? (a = 0) : r < 0 ? (a = Math.max(t + r, 0)) : (a = Math.min(r, t)), + n === void 0 ? (o = t) : n < 0 ? (o = Math.max(t + n, 0)) : (o = Math.min(n, t)); + let s = Math.max(o - a, 0), + u = this[Fl].slice(a, a + s), + p = new e([], { type: arguments[2] }); + return (p[Fl] = u), p; + } + }; + Object.defineProperties(tv.prototype, { + size: { enumerable: !0 }, + type: { enumerable: !0 }, + slice: { enumerable: !0 }, + }); + Object.defineProperty(tv.prototype, Symbol.toStringTag, { + value: 'Blob', + writable: !1, + enumerable: !1, + configurable: !0, + }); + function Ci(e, t, r) { + Error.call(this, e), + (this.message = e), + (this.type = t), + r && (this.code = this.errno = r.code), + Error.captureStackTrace(this, this.constructor); + } + Ci.prototype = Object.create(Error.prototype); + Ci.prototype.constructor = Ci; + Ci.prototype.name = 'FetchError'; + var ik; + try { + ik = require('encoding').convert; + } catch {} + var Ml = Symbol('Body internals'), + kae = Do.PassThrough; + function gi(e) { + var t = this, + r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, + n = r.size; + let a = n === void 0 ? 0 : n; + var o = r.timeout; + let s = o === void 0 ? 0 : o; + e == null + ? (e = null) + : jae(e) + ? (e = Buffer.from(e.toString())) + : nv(e) || + Buffer.isBuffer(e) || + (Object.prototype.toString.call(e) === '[object ArrayBuffer]' + ? (e = Buffer.from(e)) + : ArrayBuffer.isView(e) + ? (e = Buffer.from(e.buffer, e.byteOffset, e.byteLength)) + : e instanceof Do || (e = Buffer.from(String(e)))), + (this[Ml] = { body: e, disturbed: !1, error: null }), + (this.size = a), + (this.timeout = s), + e instanceof Do && + e.on('error', function (l) { + let u = + l.name === 'AbortError' + ? l + : new Ci(`Invalid response body while trying to fetch ${t.url}: ${l.message}`, 'system', l); + t[Ml].error = u; + }); + } + gi.prototype = { + get body() { + return this[Ml].body; + }, + get bodyUsed() { + return this[Ml].disturbed; + }, + arrayBuffer() { + return Lm.call(this).then(function (e) { + return e.buffer.slice(e.byteOffset, e.byteOffset + e.byteLength); + }); + }, + blob() { + let e = (this.headers && this.headers.get('content-type')) || ''; + return Lm.call(this).then(function (t) { + return Object.assign(new tv([], { type: e.toLowerCase() }), { [Fl]: t }); + }); + }, + json() { + var e = this; + return Lm.call(this).then(function (t) { + try { + return JSON.parse(t.toString()); + } catch (r) { + return gi.Promise.reject( + new Ci(`invalid json response body at ${e.url} reason: ${r.message}`, 'invalid-json') + ); + } + }); + }, + text() { + return Lm.call(this).then(function (e) { + return e.toString(); + }); + }, + buffer() { + return Lm.call(this); + }, + textConverted() { + var e = this; + return Lm.call(this).then(function (t) { + return Ttt(t, e.headers); + }); + }, + }; + Object.defineProperties(gi.prototype, { + body: { enumerable: !0 }, + bodyUsed: { enumerable: !0 }, + arrayBuffer: { enumerable: !0 }, + blob: { enumerable: !0 }, + json: { enumerable: !0 }, + text: { enumerable: !0 }, + }); + gi.mixIn = function (e) { + for (let t of Object.getOwnPropertyNames(gi.prototype)) + if (!(t in e)) { + let r = Object.getOwnPropertyDescriptor(gi.prototype, t); + Object.defineProperty(e, t, r); + } + }; + function Lm() { + var e = this; + if (this[Ml].disturbed) return gi.Promise.reject(new TypeError(`body used already for: ${this.url}`)); + if (((this[Ml].disturbed = !0), this[Ml].error)) return gi.Promise.reject(this[Ml].error); + let t = this.body; + if (t === null) return gi.Promise.resolve(Buffer.alloc(0)); + if ((nv(t) && (t = t.stream()), Buffer.isBuffer(t))) return gi.Promise.resolve(t); + if (!(t instanceof Do)) return gi.Promise.resolve(Buffer.alloc(0)); + let r = [], + n = 0, + a = !1; + return new gi.Promise(function (o, s) { + let l; + e.timeout && + (l = setTimeout(function () { + (a = !0), s(new Ci(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`, 'body-timeout')); + }, e.timeout)), + t.on('error', function (u) { + u.name === 'AbortError' + ? ((a = !0), s(u)) + : s(new Ci(`Invalid response body while trying to fetch ${e.url}: ${u.message}`, 'system', u)); + }), + t.on('data', function (u) { + if (!(a || u === null)) { + if (e.size && n + u.length > e.size) { + (a = !0), s(new Ci(`content size at ${e.url} over limit: ${e.size}`, 'max-size')); + return; + } + (n += u.length), r.push(u); + } + }), + t.on('end', function () { + if (!a) { + clearTimeout(l); + try { + o(Buffer.concat(r, n)); + } catch (u) { + s(new Ci(`Could not create Buffer from response body for ${e.url}: ${u.message}`, 'system', u)); + } + } + }); + }); + } + function Ttt(e, t) { + if (typeof ik != 'function') + throw new Error('The package `encoding` must be installed to use the textConverted() function'); + let r = t.get('content-type'), + n = 'utf-8', + a, + o; + return ( + r && (a = /charset=([^;]*)/i.exec(r)), + (o = e.slice(0, 1024).toString()), + !a && o && (a = / 0 && arguments[0] !== void 0 ? arguments[0] : void 0; + if (((this[Ar] = Object.create(null)), t instanceof e)) { + let r = t.raw(), + n = Object.keys(r); + for (let a of n) for (let o of r[a]) this.append(a, o); + return; + } + if (t != null) + if (typeof t == 'object') { + let r = t[Symbol.iterator]; + if (r != null) { + if (typeof r != 'function') throw new TypeError('Header pairs must be iterable'); + let n = []; + for (let a of t) { + if (typeof a != 'object' || typeof a[Symbol.iterator] != 'function') + throw new TypeError('Each header pair must be iterable'); + n.push(Array.from(a)); + } + for (let a of n) { + if (a.length !== 2) throw new TypeError('Each header pair must be a name/value tuple'); + this.append(a[0], a[1]); + } + } else + for (let n of Object.keys(t)) { + let a = t[n]; + this.append(n, a); + } + } else throw new TypeError('Provided initializer must be an object'); + } + get(t) { + (t = `${t}`), ev(t); + let r = Mm(this[Ar], t); + return r === void 0 ? null : this[Ar][r].join(', '); + } + forEach(t) { + let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : void 0, + n = ak(this), + a = 0; + for (; a < n.length; ) { + var o = n[a]; + let s = o[0], + l = o[1]; + t.call(r, l, s, this), (n = ak(this)), a++; + } + } + set(t, r) { + (t = `${t}`), (r = `${r}`), ev(t), Aae(r); + let n = Mm(this[Ar], t); + this[Ar][n !== void 0 ? n : t] = [r]; + } + append(t, r) { + (t = `${t}`), (r = `${r}`), ev(t), Aae(r); + let n = Mm(this[Ar], t); + n !== void 0 ? this[Ar][n].push(r) : (this[Ar][t] = [r]); + } + has(t) { + return (t = `${t}`), ev(t), Mm(this[Ar], t) !== void 0; + } + delete(t) { + (t = `${t}`), ev(t); + let r = Mm(this[Ar], t); + r !== void 0 && delete this[Ar][r]; + } + raw() { + return this[Ar]; + } + keys() { + return ek(this, 'key'); + } + values() { + return ek(this, 'value'); + } + [Symbol.iterator]() { + return ek(this, 'key+value'); + } + }; + Fa.prototype.entries = Fa.prototype[Symbol.iterator]; + Object.defineProperty(Fa.prototype, Symbol.toStringTag, { + value: 'Headers', + writable: !1, + enumerable: !1, + configurable: !0, + }); + Object.defineProperties(Fa.prototype, { + get: { enumerable: !0 }, + forEach: { enumerable: !0 }, + set: { enumerable: !0 }, + append: { enumerable: !0 }, + has: { enumerable: !0 }, + delete: { enumerable: !0 }, + keys: { enumerable: !0 }, + values: { enumerable: !0 }, + entries: { enumerable: !0 }, + }); + function ak(e) { + let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 'key+value'; + return Object.keys(e[Ar]) + .sort() + .map( + t === 'key' + ? function (n) { + return n.toLowerCase(); + } + : t === 'value' + ? function (n) { + return e[Ar][n].join(', '); + } + : function (n) { + return [n.toLowerCase(), e[Ar][n].join(', ')]; + } + ); + } + var ok = Symbol('internal'); + function ek(e, t) { + let r = Object.create(sk); + return (r[ok] = { target: e, kind: t, index: 0 }), r; + } + var sk = Object.setPrototypeOf( + { + next() { + if (!this || Object.getPrototypeOf(this) !== sk) + throw new TypeError('Value of `this` is not a HeadersIterator'); + var e = this[ok]; + let t = e.target, + r = e.kind, + n = e.index, + a = ak(t, r), + o = a.length; + return n >= o ? { value: void 0, done: !0 } : ((this[ok].index = n + 1), { value: a[n], done: !1 }); + }, + }, + Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())) + ); + Object.defineProperty(sk, Symbol.toStringTag, { + value: 'HeadersIterator', + writable: !1, + enumerable: !1, + configurable: !0, + }); + function ktt(e) { + let t = Object.assign({ __proto__: null }, e[Ar]), + r = Mm(e[Ar], 'Host'); + return r !== void 0 && (t[r] = t[r][0]), t; + } + function Att(e) { + let t = new Fa(); + for (let r of Object.keys(e)) + if (!Fae.test(r)) + if (Array.isArray(e[r])) + for (let n of e[r]) nk.test(n) || (t[Ar][r] === void 0 ? (t[Ar][r] = [n]) : t[Ar][r].push(n)); + else nk.test(e[r]) || (t[Ar][r] = [e[r]]); + return t; + } + var ep = Symbol('Response internals'), + Itt = Pae.STATUS_CODES, + qa = class e { + constructor() { + let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null, + r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + gi.call(this, t, r); + let n = r.status || 200, + a = new Fa(r.headers); + if (t != null && !a.has('Content-Type')) { + let o = Nae(t); + o && a.append('Content-Type', o); + } + this[ep] = { url: r.url, status: n, statusText: r.statusText || Itt[n], headers: a, counter: r.counter }; + } + get url() { + return this[ep].url || ''; + } + get status() { + return this[ep].status; + } + get ok() { + return this[ep].status >= 200 && this[ep].status < 300; + } + get redirected() { + return this[ep].counter > 0; + } + get statusText() { + return this[ep].statusText; + } + get headers() { + return this[ep].headers; + } + clone() { + return new e(Dae(this), { + url: this.url, + status: this.status, + statusText: this.statusText, + headers: this.headers, + ok: this.ok, + redirected: this.redirected, + }); + } + }; + gi.mixIn(qa.prototype); + Object.defineProperties(qa.prototype, { + url: { enumerable: !0 }, + status: { enumerable: !0 }, + ok: { enumerable: !0 }, + redirected: { enumerable: !0 }, + statusText: { enumerable: !0 }, + headers: { enumerable: !0 }, + clone: { enumerable: !0 }, + }); + Object.defineProperty(qa.prototype, Symbol.toStringTag, { + value: 'Response', + writable: !1, + enumerable: !1, + configurable: !0, + }); + var Ll = Symbol('Request internals'), + Ptt = H_.URL || Rae.URL, + Rtt = H_.parse, + jtt = H_.format; + function tk(e) { + return /^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(e) && (e = new Ptt(e).toString()), Rtt(e); + } + var Dtt = 'destroy' in Do.Readable.prototype; + function z_(e) { + return typeof e == 'object' && typeof e[Ll] == 'object'; + } + function Ntt(e) { + let t = e && typeof e == 'object' && Object.getPrototypeOf(e); + return !!(t && t.constructor.name === 'AbortSignal'); + } + var rp = class e { + constructor(t) { + let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, + n; + z_(t) ? (n = tk(t.url)) : (t && t.href ? (n = tk(t.href)) : (n = tk(`${t}`)), (t = {})); + let a = r.method || t.method || 'GET'; + if (((a = a.toUpperCase()), (r.body != null || (z_(t) && t.body !== null)) && (a === 'GET' || a === 'HEAD'))) + throw new TypeError('Request with GET/HEAD method cannot have body'); + let o = r.body != null ? r.body : z_(t) && t.body !== null ? Dae(t) : null; + gi.call(this, o, { timeout: r.timeout || t.timeout || 0, size: r.size || t.size || 0 }); + let s = new Fa(r.headers || t.headers || {}); + if (o != null && !s.has('Content-Type')) { + let u = Nae(o); + u && s.append('Content-Type', u); + } + let l = z_(t) ? t.signal : null; + if (('signal' in r && (l = r.signal), l != null && !Ntt(l))) + throw new TypeError('Expected signal to be an instanceof AbortSignal'); + (this[Ll] = { method: a, redirect: r.redirect || t.redirect || 'follow', headers: s, parsedURL: n, signal: l }), + (this.follow = r.follow !== void 0 ? r.follow : t.follow !== void 0 ? t.follow : 20), + (this.compress = r.compress !== void 0 ? r.compress : t.compress !== void 0 ? t.compress : !0), + (this.counter = r.counter || t.counter || 0), + (this.agent = r.agent || t.agent); + } + get method() { + return this[Ll].method; + } + get url() { + return jtt(this[Ll].parsedURL); + } + get headers() { + return this[Ll].headers; + } + get redirect() { + return this[Ll].redirect; + } + get signal() { + return this[Ll].signal; + } + clone() { + return new e(this); + } + }; + gi.mixIn(rp.prototype); + Object.defineProperty(rp.prototype, Symbol.toStringTag, { + value: 'Request', + writable: !1, + enumerable: !1, + configurable: !0, + }); + Object.defineProperties(rp.prototype, { + method: { enumerable: !0 }, + url: { enumerable: !0 }, + headers: { enumerable: !0 }, + redirect: { enumerable: !0 }, + clone: { enumerable: !0 }, + signal: { enumerable: !0 }, + }); + function qtt(e) { + let t = e[Ll].parsedURL, + r = new Fa(e[Ll].headers); + if ((r.has('Accept') || r.set('Accept', '*/*'), !t.protocol || !t.hostname)) + throw new TypeError('Only absolute URLs are supported'); + if (!/^https?:$/.test(t.protocol)) throw new TypeError('Only HTTP(S) protocols are supported'); + if (e.signal && e.body instanceof Do.Readable && !Dtt) + throw new Error('Cancellation of streamed requests with AbortSignal is not supported in node < 8'); + let n = null; + if ((e.body == null && /^(POST|PUT)$/i.test(e.method) && (n = '0'), e.body != null)) { + let o = qae(e); + typeof o == 'number' && (n = String(o)); + } + n && r.set('Content-Length', n), + r.has('User-Agent') || r.set('User-Agent', 'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'), + e.compress && !r.has('Accept-Encoding') && r.set('Accept-Encoding', 'gzip,deflate'); + let a = e.agent; + return ( + typeof a == 'function' && (a = a(t)), + !r.has('Connection') && !a && r.set('Connection', 'close'), + Object.assign({}, t, { method: e.method, headers: ktt(r), agent: a }) + ); + } + function rv(e) { + Error.call(this, e), (this.type = 'aborted'), (this.message = e), Error.captureStackTrace(this, this.constructor); + } + rv.prototype = Object.create(Error.prototype); + rv.prototype.constructor = rv; + rv.prototype.name = 'AbortError'; + var iv = H_.URL || Rae.URL, + Iae = Do.PassThrough, + Ftt = function (t, r) { + let n = new iv(r).hostname, + a = new iv(t).hostname; + return n === a || (n[n.length - a.length - 1] === '.' && n.endsWith(a)); + }, + Ltt = function (t, r) { + let n = new iv(r).protocol, + a = new iv(t).protocol; + return n === a; + }; + function tp(e, t) { + if (!tp.Promise) throw new Error('native promise missing, set fetch.Promise to your favorite alternative'); + return ( + (gi.Promise = tp.Promise), + new tp.Promise(function (r, n) { + let a = new rp(e, t), + o = qtt(a), + s = (o.protocol === 'https:' ? xtt : Pae).request, + l = a.signal, + u = null, + p = function () { + let y = new rv('The user aborted a request.'); + n(y), a.body && a.body instanceof Do.Readable && rk(a.body, y), !(!u || !u.body) && u.body.emit('error', y); + }; + if (l && l.aborted) { + p(); + return; + } + let c = function () { + p(), m(); + }, + f = s(o), + h; + l && l.addEventListener('abort', c); + function m() { + f.abort(), l && l.removeEventListener('abort', c), clearTimeout(h); + } + a.timeout && + f.once('socket', function (v) { + h = setTimeout(function () { + n(new Ci(`network timeout at: ${a.url}`, 'request-timeout')), m(); + }, a.timeout); + }), + f.on('error', function (v) { + n(new Ci(`request to ${a.url} failed, reason: ${v.message}`, 'system', v)), + u && u.body && rk(u.body, v), + m(); + }), + Mtt(f, function (v) { + (l && l.aborted) || (u && u.body && rk(u.body, v)); + }), + parseInt(process.version.substring(1)) < 14 && + f.on('socket', function (v) { + v.addListener('close', function (y) { + let S = v.listenerCount('data') > 0; + if (u && S && !y && !(l && l.aborted)) { + let w = new Error('Premature close'); + (w.code = 'ERR_STREAM_PREMATURE_CLOSE'), u.body.emit('error', w); + } + }); + }), + f.on('response', function (v) { + clearTimeout(h); + let y = Att(v.headers); + if (tp.isRedirect(v.statusCode)) { + let _ = y.get('Location'), + b = null; + try { + b = _ === null ? null : new iv(_, a.url).toString(); + } catch { + if (a.redirect !== 'manual') { + n(new Ci(`uri requested responds with an invalid redirect URL: ${_}`, 'invalid-redirect')), m(); + return; + } + } + switch (a.redirect) { + case 'error': + n( + new Ci( + `uri requested responds with a redirect, redirect mode is set to error: ${a.url}`, + 'no-redirect' + ) + ), + m(); + return; + case 'manual': + if (b !== null) + try { + y.set('Location', b); + } catch (R) { + n(R); + } + break; + case 'follow': + if (b === null) break; + if (a.counter >= a.follow) { + n(new Ci(`maximum redirect reached at: ${a.url}`, 'max-redirect')), m(); + return; + } + let T = { + headers: new Fa(a.headers), + follow: a.follow, + counter: a.counter + 1, + agent: a.agent, + compress: a.compress, + method: a.method, + body: a.body, + signal: a.signal, + timeout: a.timeout, + size: a.size, + }; + if (!Ftt(a.url, b) || !Ltt(a.url, b)) + for (let R of ['authorization', 'www-authenticate', 'cookie', 'cookie2']) T.headers.delete(R); + if (v.statusCode !== 303 && a.body && qae(a) === null) { + n(new Ci('Cannot follow redirect with body being a readable stream', 'unsupported-redirect')), m(); + return; + } + (v.statusCode === 303 || ((v.statusCode === 301 || v.statusCode === 302) && a.method === 'POST')) && + ((T.method = 'GET'), (T.body = void 0), T.headers.delete('content-length')), + r(tp(new rp(b, T))), + m(); + return; + } + } + v.once('end', function () { + l && l.removeEventListener('abort', c); + }); + let S = v.pipe(new Iae()), + w = { + url: a.url, + status: v.statusCode, + statusText: v.statusMessage, + headers: y, + size: a.size, + timeout: a.timeout, + counter: a.counter, + }, + O = y.get('Content-Encoding'); + if (!a.compress || a.method === 'HEAD' || O === null || v.statusCode === 204 || v.statusCode === 304) { + (u = new qa(S, w)), r(u); + return; + } + let x = { flush: Jc.Z_SYNC_FLUSH, finishFlush: Jc.Z_SYNC_FLUSH }; + if (O == 'gzip' || O == 'x-gzip') { + (S = S.pipe(Jc.createGunzip(x))), (u = new qa(S, w)), r(u); + return; + } + if (O == 'deflate' || O == 'x-deflate') { + let _ = v.pipe(new Iae()); + _.once('data', function (b) { + (b[0] & 15) === 8 ? (S = S.pipe(Jc.createInflate())) : (S = S.pipe(Jc.createInflateRaw())), + (u = new qa(S, w)), + r(u); + }), + _.on('end', function () { + u || ((u = new qa(S, w)), r(u)); + }); + return; + } + if (O == 'br' && typeof Jc.createBrotliDecompress == 'function') { + (S = S.pipe(Jc.createBrotliDecompress())), (u = new qa(S, w)), r(u); + return; + } + (u = new qa(S, w)), r(u); + }), + Ctt(f, a); + }) + ); + } + function Mtt(e, t) { + let r; + e.on('socket', function (n) { + r = n; + }), + e.on('response', function (n) { + let a = n.headers; + a['transfer-encoding'] === 'chunked' && + !a['content-length'] && + n.once('close', function (o) { + if (r.listenerCount('data') > 0 && !o) { + let l = new Error('Premature close'); + (l.code = 'ERR_STREAM_PREMATURE_CLOSE'), t(l); + } + }); + }); + } + function rk(e, t) { + e.destroy ? e.destroy(t) : (e.emit('error', t), e.end()); + } + tp.isRedirect = function (e) { + return e === 301 || e === 302 || e === 303 || e === 307 || e === 308; + }; + tp.Promise = global.Promise; + Lae.exports = gs = tp; + Object.defineProperty(gs, '__esModule', { value: !0 }); + gs.default = gs; + gs.Headers = Fa; + gs.Request = rp; + gs.Response = qa; + gs.FetchError = Ci; +}); +var Xae = d((sv, ov) => { + 'use strict'; + Object.defineProperty(sv, '__esModule', { value: !0 }); + var Hae = new WeakMap(), + lk = new WeakMap(); + function Vt(e) { + let t = Hae.get(e); + return console.assert(t != null, "'this' is expected an Event object, but got", e), t; + } + function Uae(e) { + if (e.passiveListener != null) { + typeof console < 'u' && + typeof console.error == 'function' && + console.error('Unable to preventDefault inside passive event listener invocation.', e.passiveListener); + return; + } + e.event.cancelable && ((e.canceled = !0), typeof e.event.preventDefault == 'function' && e.event.preventDefault()); + } + function $m(e, t) { + Hae.set(this, { + eventTarget: e, + event: t, + eventPhase: 2, + currentTarget: e, + canceled: !1, + stopped: !1, + immediateStopped: !1, + passiveListener: null, + timeStamp: t.timeStamp || Date.now(), + }), + Object.defineProperty(this, 'isTrusted', { value: !1, enumerable: !0 }); + let r = Object.keys(t); + for (let n = 0; n < r.length; ++n) { + let a = r[n]; + a in this || Object.defineProperty(this, a, Gae(a)); + } + } + $m.prototype = { + get type() { + return Vt(this).event.type; + }, + get target() { + return Vt(this).eventTarget; + }, + get currentTarget() { + return Vt(this).currentTarget; + }, + composedPath() { + let e = Vt(this).currentTarget; + return e == null ? [] : [e]; + }, + get NONE() { + return 0; + }, + get CAPTURING_PHASE() { + return 1; + }, + get AT_TARGET() { + return 2; + }, + get BUBBLING_PHASE() { + return 3; + }, + get eventPhase() { + return Vt(this).eventPhase; + }, + stopPropagation() { + let e = Vt(this); + (e.stopped = !0), typeof e.event.stopPropagation == 'function' && e.event.stopPropagation(); + }, + stopImmediatePropagation() { + let e = Vt(this); + (e.stopped = !0), + (e.immediateStopped = !0), + typeof e.event.stopImmediatePropagation == 'function' && e.event.stopImmediatePropagation(); + }, + get bubbles() { + return !!Vt(this).event.bubbles; + }, + get cancelable() { + return !!Vt(this).event.cancelable; + }, + preventDefault() { + Uae(Vt(this)); + }, + get defaultPrevented() { + return Vt(this).canceled; + }, + get composed() { + return !!Vt(this).event.composed; + }, + get timeStamp() { + return Vt(this).timeStamp; + }, + get srcElement() { + return Vt(this).eventTarget; + }, + get cancelBubble() { + return Vt(this).stopped; + }, + set cancelBubble(e) { + if (!e) return; + let t = Vt(this); + (t.stopped = !0), typeof t.event.cancelBubble == 'boolean' && (t.event.cancelBubble = !0); + }, + get returnValue() { + return !Vt(this).canceled; + }, + set returnValue(e) { + e || Uae(Vt(this)); + }, + initEvent() {}, + }; + Object.defineProperty($m.prototype, 'constructor', { value: $m, configurable: !0, writable: !0 }); + typeof window < 'u' && + typeof window.Event < 'u' && + (Object.setPrototypeOf($m.prototype, window.Event.prototype), lk.set(window.Event.prototype, $m)); + function Gae(e) { + return { + get() { + return Vt(this).event[e]; + }, + set(t) { + Vt(this).event[e] = t; + }, + configurable: !0, + enumerable: !0, + }; + } + function Utt(e) { + return { + value() { + let t = Vt(this).event; + return t[e].apply(t, arguments); + }, + configurable: !0, + enumerable: !0, + }; + } + function $tt(e, t) { + let r = Object.keys(t); + if (r.length === 0) return e; + function n(a, o) { + e.call(this, a, o); + } + n.prototype = Object.create(e.prototype, { constructor: { value: n, configurable: !0, writable: !0 } }); + for (let a = 0; a < r.length; ++a) { + let o = r[a]; + if (!(o in e.prototype)) { + let l = typeof Object.getOwnPropertyDescriptor(t, o).value == 'function'; + Object.defineProperty(n.prototype, o, l ? Utt(o) : Gae(o)); + } + } + return n; + } + function Wae(e) { + if (e == null || e === Object.prototype) return $m; + let t = lk.get(e); + return t == null && ((t = $tt(Wae(Object.getPrototypeOf(e)), e)), lk.set(e, t)), t; + } + function Btt(e, t) { + let r = Wae(Object.getPrototypeOf(t)); + return new r(e, t); + } + function Vtt(e) { + return Vt(e).immediateStopped; + } + function ztt(e, t) { + Vt(e).eventPhase = t; + } + function Htt(e, t) { + Vt(e).currentTarget = t; + } + function $ae(e, t) { + Vt(e).passiveListener = t; + } + var Kae = new WeakMap(), + Bae = 1, + Vae = 2, + G_ = 3; + function W_(e) { + return e !== null && typeof e == 'object'; + } + function av(e) { + let t = Kae.get(e); + if (t == null) throw new TypeError("'this' is expected an EventTarget object, but got another value."); + return t; + } + function Gtt(e) { + return { + get() { + let r = av(this).get(e); + for (; r != null; ) { + if (r.listenerType === G_) return r.listener; + r = r.next; + } + return null; + }, + set(t) { + typeof t != 'function' && !W_(t) && (t = null); + let r = av(this), + n = null, + a = r.get(e); + for (; a != null; ) + a.listenerType === G_ + ? n !== null + ? (n.next = a.next) + : a.next !== null + ? r.set(e, a.next) + : r.delete(e) + : (n = a), + (a = a.next); + if (t !== null) { + let o = { listener: t, listenerType: G_, passive: !1, once: !1, next: null }; + n === null ? r.set(e, o) : (n.next = o); + } + }, + configurable: !0, + enumerable: !0, + }; + } + function uk(e, t) { + Object.defineProperty(e, `on${t}`, Gtt(t)); + } + function zae(e) { + function t() { + No.call(this); + } + t.prototype = Object.create(No.prototype, { constructor: { value: t, configurable: !0, writable: !0 } }); + for (let r = 0; r < e.length; ++r) uk(t.prototype, e[r]); + return t; + } + function No() { + if (this instanceof No) { + Kae.set(this, new Map()); + return; + } + if (arguments.length === 1 && Array.isArray(arguments[0])) return zae(arguments[0]); + if (arguments.length > 0) { + let e = new Array(arguments.length); + for (let t = 0; t < arguments.length; ++t) e[t] = arguments[t]; + return zae(e); + } + throw new TypeError('Cannot call a class as a function'); + } + No.prototype = { + addEventListener(e, t, r) { + if (t == null) return; + if (typeof t != 'function' && !W_(t)) throw new TypeError("'listener' should be a function or an object."); + let n = av(this), + a = W_(r), + s = (a ? !!r.capture : !!r) ? Bae : Vae, + l = { listener: t, listenerType: s, passive: a && !!r.passive, once: a && !!r.once, next: null }, + u = n.get(e); + if (u === void 0) { + n.set(e, l); + return; + } + let p = null; + for (; u != null; ) { + if (u.listener === t && u.listenerType === s) return; + (p = u), (u = u.next); + } + p.next = l; + }, + removeEventListener(e, t, r) { + if (t == null) return; + let n = av(this), + o = (W_(r) ? !!r.capture : !!r) ? Bae : Vae, + s = null, + l = n.get(e); + for (; l != null; ) { + if (l.listener === t && l.listenerType === o) { + s !== null ? (s.next = l.next) : l.next !== null ? n.set(e, l.next) : n.delete(e); + return; + } + (s = l), (l = l.next); + } + }, + dispatchEvent(e) { + if (e == null || typeof e.type != 'string') throw new TypeError('"event.type" should be a string.'); + let t = av(this), + r = e.type, + n = t.get(r); + if (n == null) return !0; + let a = Btt(this, e), + o = null; + for (; n != null; ) { + if ( + (n.once ? (o !== null ? (o.next = n.next) : n.next !== null ? t.set(r, n.next) : t.delete(r)) : (o = n), + $ae(a, n.passive ? n.listener : null), + typeof n.listener == 'function') + ) + try { + n.listener.call(this, a); + } catch (s) { + typeof console < 'u' && typeof console.error == 'function' && console.error(s); + } + else n.listenerType !== G_ && typeof n.listener.handleEvent == 'function' && n.listener.handleEvent(a); + if (Vtt(a)) break; + n = n.next; + } + return $ae(a, null), ztt(a, 0), Htt(a, null), !a.defaultPrevented; + }, + }; + Object.defineProperty(No.prototype, 'constructor', { value: No, configurable: !0, writable: !0 }); + typeof window < 'u' && + typeof window.EventTarget < 'u' && + Object.setPrototypeOf(No.prototype, window.EventTarget.prototype); + sv.defineEventAttribute = uk; + sv.EventTarget = No; + sv.default = No; + ov.exports = No; + ov.exports.EventTarget = ov.exports.default = No; + ov.exports.defineEventAttribute = uk; +}); +var Qae = d((uv, lv) => { + 'use strict'; + Object.defineProperty(uv, '__esModule', { value: !0 }); + var pk = Xae(), + ip = class extends pk.EventTarget { + constructor() { + throw (super(), new TypeError('AbortSignal cannot be constructed directly')); + } + get aborted() { + let t = K_.get(this); + if (typeof t != 'boolean') + throw new TypeError( + `Expected 'this' to be an 'AbortSignal' object, but got ${this === null ? 'null' : typeof this}` + ); + return t; + } + }; + pk.defineEventAttribute(ip.prototype, 'abort'); + function Wtt() { + let e = Object.create(ip.prototype); + return pk.EventTarget.call(e), K_.set(e, !1), e; + } + function Ktt(e) { + K_.get(e) === !1 && (K_.set(e, !0), e.dispatchEvent({ type: 'abort' })); + } + var K_ = new WeakMap(); + Object.defineProperties(ip.prototype, { aborted: { enumerable: !0 } }); + typeof Symbol == 'function' && + typeof Symbol.toStringTag == 'symbol' && + Object.defineProperty(ip.prototype, Symbol.toStringTag, { configurable: !0, value: 'AbortSignal' }); + var np = class { + constructor() { + Yae.set(this, Wtt()); + } + get signal() { + return Jae(this); + } + abort() { + Ktt(Jae(this)); + } + }, + Yae = new WeakMap(); + function Jae(e) { + let t = Yae.get(e); + if (t == null) + throw new TypeError( + `Expected 'this' to be an 'AbortController' object, but got ${e === null ? 'null' : typeof e}` + ); + return t; + } + Object.defineProperties(np.prototype, { signal: { enumerable: !0 }, abort: { enumerable: !0 } }); + typeof Symbol == 'function' && + typeof Symbol.toStringTag == 'symbol' && + Object.defineProperty(np.prototype, Symbol.toStringTag, { configurable: !0, value: 'AbortController' }); + uv.AbortController = np; + uv.AbortSignal = ip; + uv.default = np; + lv.exports = np; + lv.exports.AbortController = lv.exports.default = np; + lv.exports.AbortSignal = ip; +}); +var eoe = d((EGt, Zae) => { + var Bm = 1e3, + Vm = Bm * 60, + zm = Vm * 60, + Yc = zm * 24, + Xtt = Yc * 7, + Jtt = Yc * 365.25; + Zae.exports = function (e, t) { + t = t || {}; + var r = typeof e; + if (r === 'string' && e.length > 0) return Ytt(e); + if (r === 'number' && isFinite(e)) return t.long ? Ztt(e) : Qtt(e); + throw new Error('val is not a non-empty string or a valid number. val=' + JSON.stringify(e)); + }; + function Ytt(e) { + if (((e = String(e)), !(e.length > 100))) { + var t = + /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec( + e + ); + if (t) { + var r = parseFloat(t[1]), + n = (t[2] || 'ms').toLowerCase(); + switch (n) { + case 'years': + case 'year': + case 'yrs': + case 'yr': + case 'y': + return r * Jtt; + case 'weeks': + case 'week': + case 'w': + return r * Xtt; + case 'days': + case 'day': + case 'd': + return r * Yc; + case 'hours': + case 'hour': + case 'hrs': + case 'hr': + case 'h': + return r * zm; + case 'minutes': + case 'minute': + case 'mins': + case 'min': + case 'm': + return r * Vm; + case 'seconds': + case 'second': + case 'secs': + case 'sec': + case 's': + return r * Bm; + case 'milliseconds': + case 'millisecond': + case 'msecs': + case 'msec': + case 'ms': + return r; + default: + return; + } + } + } + } + function Qtt(e) { + var t = Math.abs(e); + return t >= Yc + ? Math.round(e / Yc) + 'd' + : t >= zm + ? Math.round(e / zm) + 'h' + : t >= Vm + ? Math.round(e / Vm) + 'm' + : t >= Bm + ? Math.round(e / Bm) + 's' + : e + 'ms'; + } + function Ztt(e) { + var t = Math.abs(e); + return t >= Yc + ? X_(e, t, Yc, 'day') + : t >= zm + ? X_(e, t, zm, 'hour') + : t >= Vm + ? X_(e, t, Vm, 'minute') + : t >= Bm + ? X_(e, t, Bm, 'second') + : e + ' ms'; + } + function X_(e, t, r, n) { + var a = t >= r * 1.5; + return Math.round(e / r) + ' ' + n + (a ? 's' : ''); + } +}); +var ck = d((xGt, toe) => { + function ert(e) { + (r.debug = r), + (r.default = r), + (r.coerce = u), + (r.disable = o), + (r.enable = a), + (r.enabled = s), + (r.humanize = eoe()), + (r.destroy = p), + Object.keys(e).forEach((c) => { + r[c] = e[c]; + }), + (r.names = []), + (r.skips = []), + (r.formatters = {}); + function t(c) { + let f = 0; + for (let h = 0; h < c.length; h++) (f = (f << 5) - f + c.charCodeAt(h)), (f |= 0); + return r.colors[Math.abs(f) % r.colors.length]; + } + r.selectColor = t; + function r(c) { + let f, + h = null, + m, + v; + function y(...S) { + if (!y.enabled) return; + let w = y, + O = Number(new Date()), + x = O - (f || O); + (w.diff = x), + (w.prev = f), + (w.curr = O), + (f = O), + (S[0] = r.coerce(S[0])), + typeof S[0] != 'string' && S.unshift('%O'); + let _ = 0; + (S[0] = S[0].replace(/%([a-zA-Z%])/g, (T, R) => { + if (T === '%%') return '%'; + _++; + let C = r.formatters[R]; + if (typeof C == 'function') { + let N = S[_]; + (T = C.call(w, N)), S.splice(_, 1), _--; + } + return T; + })), + r.formatArgs.call(w, S), + (w.log || r.log).apply(w, S); + } + return ( + (y.namespace = c), + (y.useColors = r.useColors()), + (y.color = r.selectColor(c)), + (y.extend = n), + (y.destroy = r.destroy), + Object.defineProperty(y, 'enabled', { + enumerable: !0, + configurable: !1, + get: () => (h !== null ? h : (m !== r.namespaces && ((m = r.namespaces), (v = r.enabled(c))), v)), + set: (S) => { + h = S; + }, + }), + typeof r.init == 'function' && r.init(y), + y + ); + } + function n(c, f) { + let h = r(this.namespace + (typeof f > 'u' ? ':' : f) + c); + return (h.log = this.log), h; + } + function a(c) { + r.save(c), (r.namespaces = c), (r.names = []), (r.skips = []); + let f, + h = (typeof c == 'string' ? c : '').split(/[\s,]+/), + m = h.length; + for (f = 0; f < m; f++) + h[f] && + ((c = h[f].replace(/\*/g, '.*?')), + c[0] === '-' ? r.skips.push(new RegExp('^' + c.slice(1) + '$')) : r.names.push(new RegExp('^' + c + '$'))); + } + function o() { + let c = [...r.names.map(l), ...r.skips.map(l).map((f) => '-' + f)].join(','); + return r.enable(''), c; + } + function s(c) { + if (c[c.length - 1] === '*') return !0; + let f, h; + for (f = 0, h = r.skips.length; f < h; f++) if (r.skips[f].test(c)) return !1; + for (f = 0, h = r.names.length; f < h; f++) if (r.names[f].test(c)) return !0; + return !1; + } + function l(c) { + return c + .toString() + .substring(2, c.toString().length - 2) + .replace(/\.\*\?$/, '*'); + } + function u(c) { + return c instanceof Error ? c.stack || c.message : c; + } + function p() { + console.warn( + 'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.' + ); + } + return r.enable(r.load()), r; + } + toe.exports = ert; +}); +var roe = d((pa, J_) => { + pa.formatArgs = rrt; + pa.save = irt; + pa.load = nrt; + pa.useColors = trt; + pa.storage = art(); + pa.destroy = (() => { + let e = !1; + return () => { + e || + ((e = !0), + console.warn( + 'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.' + )); + }; + })(); + pa.colors = [ + '#0000CC', + '#0000FF', + '#0033CC', + '#0033FF', + '#0066CC', + '#0066FF', + '#0099CC', + '#0099FF', + '#00CC00', + '#00CC33', + '#00CC66', + '#00CC99', + '#00CCCC', + '#00CCFF', + '#3300CC', + '#3300FF', + '#3333CC', + '#3333FF', + '#3366CC', + '#3366FF', + '#3399CC', + '#3399FF', + '#33CC00', + '#33CC33', + '#33CC66', + '#33CC99', + '#33CCCC', + '#33CCFF', + '#6600CC', + '#6600FF', + '#6633CC', + '#6633FF', + '#66CC00', + '#66CC33', + '#9900CC', + '#9900FF', + '#9933CC', + '#9933FF', + '#99CC00', + '#99CC33', + '#CC0000', + '#CC0033', + '#CC0066', + '#CC0099', + '#CC00CC', + '#CC00FF', + '#CC3300', + '#CC3333', + '#CC3366', + '#CC3399', + '#CC33CC', + '#CC33FF', + '#CC6600', + '#CC6633', + '#CC9900', + '#CC9933', + '#CCCC00', + '#CCCC33', + '#FF0000', + '#FF0033', + '#FF0066', + '#FF0099', + '#FF00CC', + '#FF00FF', + '#FF3300', + '#FF3333', + '#FF3366', + '#FF3399', + '#FF33CC', + '#FF33FF', + '#FF6600', + '#FF6633', + '#FF9900', + '#FF9933', + '#FFCC00', + '#FFCC33', + ]; + function trt() { + return typeof window < 'u' && window.process && (window.process.type === 'renderer' || window.process.__nwjs) + ? !0 + : typeof navigator < 'u' && + navigator.userAgent && + navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/) + ? !1 + : (typeof document < 'u' && + document.documentElement && + document.documentElement.style && + document.documentElement.style.WebkitAppearance) || + (typeof window < 'u' && + window.console && + (window.console.firebug || (window.console.exception && window.console.table))) || + (typeof navigator < 'u' && + navigator.userAgent && + navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && + parseInt(RegExp.$1, 10) >= 31) || + (typeof navigator < 'u' && + navigator.userAgent && + navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)); + } + function rrt(e) { + if ( + ((e[0] = + (this.useColors ? '%c' : '') + + this.namespace + + (this.useColors ? ' %c' : ' ') + + e[0] + + (this.useColors ? '%c ' : ' ') + + '+' + + J_.exports.humanize(this.diff)), + !this.useColors) + ) + return; + let t = 'color: ' + this.color; + e.splice(1, 0, t, 'color: inherit'); + let r = 0, + n = 0; + e[0].replace(/%[a-zA-Z%]/g, (a) => { + a !== '%%' && (r++, a === '%c' && (n = r)); + }), + e.splice(n, 0, t); + } + pa.log = console.debug || console.log || (() => {}); + function irt(e) { + try { + e ? pa.storage.setItem('debug', e) : pa.storage.removeItem('debug'); + } catch {} + } + function nrt() { + let e; + try { + e = pa.storage.getItem('debug'); + } catch {} + return !e && typeof process < 'u' && 'env' in process && (e = process.env.DEBUG), e; + } + function art() { + try { + return localStorage; + } catch {} + } + J_.exports = ck()(pa); + var { formatters: ort } = J_.exports; + ort.j = function (e) { + try { + return JSON.stringify(e); + } catch (t) { + return '[UnexpectedJSONParseError]: ' + t.message; + } + }; +}); +var noe = d((OGt, ioe) => { + 'use strict'; + ioe.exports = (e, t = process.argv) => { + let r = e.startsWith('-') ? '' : e.length === 1 ? '-' : '--', + n = t.indexOf(r + e), + a = t.indexOf('--'); + return n !== -1 && (a === -1 || n < a); + }; +}); +var soe = d((TGt, ooe) => { + 'use strict'; + var srt = require('os'), + aoe = require('tty'), + La = noe(), + { env: vi } = process, + ap; + La('no-color') || La('no-colors') || La('color=false') || La('color=never') + ? (ap = 0) + : (La('color') || La('colors') || La('color=true') || La('color=always')) && (ap = 1); + 'FORCE_COLOR' in vi && + (vi.FORCE_COLOR === 'true' + ? (ap = 1) + : vi.FORCE_COLOR === 'false' + ? (ap = 0) + : (ap = vi.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(vi.FORCE_COLOR, 10), 3))); + function dk(e) { + return e === 0 ? !1 : { level: e, hasBasic: !0, has256: e >= 2, has16m: e >= 3 }; + } + function fk(e, t) { + if (ap === 0) return 0; + if (La('color=16m') || La('color=full') || La('color=truecolor')) return 3; + if (La('color=256')) return 2; + if (e && !t && ap === void 0) return 0; + let r = ap || 0; + if (vi.TERM === 'dumb') return r; + if (process.platform === 'win32') { + let n = srt.release().split('.'); + return Number(n[0]) >= 10 && Number(n[2]) >= 10586 ? (Number(n[2]) >= 14931 ? 3 : 2) : 1; + } + if ('CI' in vi) + return ['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE'].some((n) => n in vi) || + vi.CI_NAME === 'codeship' + ? 1 + : r; + if ('TEAMCITY_VERSION' in vi) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(vi.TEAMCITY_VERSION) ? 1 : 0; + if (vi.COLORTERM === 'truecolor') return 3; + if ('TERM_PROGRAM' in vi) { + let n = parseInt((vi.TERM_PROGRAM_VERSION || '').split('.')[0], 10); + switch (vi.TERM_PROGRAM) { + case 'iTerm.app': + return n >= 3 ? 3 : 2; + case 'Apple_Terminal': + return 2; + } + } + return /-256(color)?$/i.test(vi.TERM) + ? 2 + : /^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(vi.TERM) || 'COLORTERM' in vi + ? 1 + : r; + } + function lrt(e) { + let t = fk(e, e && e.isTTY); + return dk(t); + } + ooe.exports = { supportsColor: lrt, stdout: dk(fk(!0, aoe.isatty(1))), stderr: dk(fk(!0, aoe.isatty(2))) }; +}); +var uoe = d((ki, Q_) => { + var urt = require('tty'), + Y_ = require('util'); + ki.init = grt; + ki.log = frt; + ki.formatArgs = crt; + ki.save = mrt; + ki.load = hrt; + ki.useColors = prt; + ki.destroy = Y_.deprecate(() => {}, + 'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'); + ki.colors = [6, 2, 3, 4, 5, 1]; + try { + let e = soe(); + e && + (e.stderr || e).level >= 2 && + (ki.colors = [ + 20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62, 63, 68, 69, 74, 75, 76, 77, 78, 79, 80, 81, + 92, 93, 98, 99, 112, 113, 128, 129, 134, 135, 148, 149, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, + 171, 172, 173, 178, 179, 184, 185, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 214, + 215, 220, 221, + ]); + } catch {} + ki.inspectOpts = Object.keys(process.env) + .filter((e) => /^debug_/i.test(e)) + .reduce((e, t) => { + let r = t + .substring(6) + .toLowerCase() + .replace(/_([a-z])/g, (a, o) => o.toUpperCase()), + n = process.env[t]; + return ( + /^(yes|on|true|enabled)$/i.test(n) + ? (n = !0) + : /^(no|off|false|disabled)$/i.test(n) + ? (n = !1) + : n === 'null' + ? (n = null) + : (n = Number(n)), + (e[r] = n), + e + ); + }, {}); + function prt() { + return 'colors' in ki.inspectOpts ? !!ki.inspectOpts.colors : urt.isatty(process.stderr.fd); + } + function crt(e) { + let { namespace: t, useColors: r } = this; + if (r) { + let n = this.color, + a = '\x1B[3' + (n < 8 ? n : '8;5;' + n), + o = ` ${a};1m${t} \x1B[0m`; + (e[0] = + o + + e[0] + .split( + ` +` + ) + .join( + ` +` + o + )), + e.push(a + 'm+' + Q_.exports.humanize(this.diff) + '\x1B[0m'); + } else e[0] = drt() + t + ' ' + e[0]; + } + function drt() { + return ki.inspectOpts.hideDate ? '' : new Date().toISOString() + ' '; + } + function frt(...e) { + return process.stderr.write( + Y_.format(...e) + + ` +` + ); + } + function mrt(e) { + e ? (process.env.DEBUG = e) : delete process.env.DEBUG; + } + function hrt() { + return process.env.DEBUG; + } + function grt(e) { + e.inspectOpts = {}; + let t = Object.keys(ki.inspectOpts); + for (let r = 0; r < t.length; r++) e.inspectOpts[t[r]] = ki.inspectOpts[t[r]]; + } + Q_.exports = ck()(ki); + var { formatters: loe } = Q_.exports; + loe.o = function (e) { + return ( + (this.inspectOpts.colors = this.useColors), + Y_.inspect(e, this.inspectOpts) + .split( + ` +` + ) + .map((t) => t.trim()) + .join(' ') + ); + }; + loe.O = function (e) { + return (this.inspectOpts.colors = this.useColors), Y_.inspect(e, this.inspectOpts); + }; +}); +var Z_ = d((CGt, mk) => { + typeof process > 'u' || process.type === 'renderer' || process.browser === !0 || process.__nwjs + ? (mk.exports = roe()) + : (mk.exports = uoe()); +}); +var poe = d((hk) => { + 'use strict'; + Object.defineProperty(hk, '__esModule', { value: !0 }); + function vrt(e) { + return function (t, r) { + return new Promise((n, a) => { + e.call(this, t, r, (o, s) => { + o ? a(o) : n(s); + }); + }); + }; + } + hk.default = vrt; +}); +var foe = d((vk, doe) => { + 'use strict'; + var coe = + (vk && vk.__importDefault) || + function (e) { + return e && e.__esModule ? e : { default: e }; + }, + yrt = require('events'), + brt = coe(Z_()), + _rt = coe(poe()), + pv = brt.default('agent-base'); + function wrt(e) { + return !!e && typeof e.addRequest == 'function'; + } + function gk() { + let { stack: e } = new Error(); + return typeof e != 'string' + ? !1 + : e + .split( + ` +` + ) + .some((t) => t.indexOf('(https.js:') !== -1 || t.indexOf('node:https:') !== -1); + } + function ew(e, t) { + return new ew.Agent(e, t); + } + (function (e) { + class t extends yrt.EventEmitter { + constructor(n, a) { + super(); + let o = a; + typeof n == 'function' ? (this.callback = n) : n && (o = n), + (this.timeout = null), + o && typeof o.timeout == 'number' && (this.timeout = o.timeout), + (this.maxFreeSockets = 1), + (this.maxSockets = 1), + (this.maxTotalSockets = 1 / 0), + (this.sockets = {}), + (this.freeSockets = {}), + (this.requests = {}), + (this.options = {}); + } + get defaultPort() { + return typeof this.explicitDefaultPort == 'number' ? this.explicitDefaultPort : gk() ? 443 : 80; + } + set defaultPort(n) { + this.explicitDefaultPort = n; + } + get protocol() { + return typeof this.explicitProtocol == 'string' ? this.explicitProtocol : gk() ? 'https:' : 'http:'; + } + set protocol(n) { + this.explicitProtocol = n; + } + callback(n, a, o) { + throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`'); + } + addRequest(n, a) { + let o = Object.assign({}, a); + typeof o.secureEndpoint != 'boolean' && (o.secureEndpoint = gk()), + o.host == null && (o.host = 'localhost'), + o.port == null && (o.port = o.secureEndpoint ? 443 : 80), + o.protocol == null && (o.protocol = o.secureEndpoint ? 'https:' : 'http:'), + o.host && o.path && delete o.path, + delete o.agent, + delete o.hostname, + delete o._defaultAgent, + delete o.defaultPort, + delete o.createConnection, + (n._last = !0), + (n.shouldKeepAlive = !1); + let s = !1, + l = null, + u = o.timeout || this.timeout, + p = (m) => { + n._hadError || (n.emit('error', m), (n._hadError = !0)); + }, + c = () => { + (l = null), (s = !0); + let m = new Error(`A "socket" was not created for HTTP request before ${u}ms`); + (m.code = 'ETIMEOUT'), p(m); + }, + f = (m) => { + s || (l !== null && (clearTimeout(l), (l = null)), p(m)); + }, + h = (m) => { + if (s) return; + if ((l != null && (clearTimeout(l), (l = null)), wrt(m))) { + pv('Callback returned another Agent instance %o', m.constructor.name), m.addRequest(n, o); + return; + } + if (m) { + m.once('free', () => { + this.freeSocket(m, o); + }), + n.onSocket(m); + return; + } + let v = new Error(`no Duplex stream was returned to agent-base for \`${n.method} ${n.path}\``); + p(v); + }; + if (typeof this.callback != 'function') { + p(new Error('`callback` is not defined')); + return; + } + this.promisifiedCallback || + (this.callback.length >= 3 + ? (pv('Converting legacy callback function to promise'), + (this.promisifiedCallback = _rt.default(this.callback))) + : (this.promisifiedCallback = this.callback)), + typeof u == 'number' && u > 0 && (l = setTimeout(c, u)), + 'port' in o && typeof o.port != 'number' && (o.port = Number(o.port)); + try { + pv('Resolving socket for %o request: %o', o.protocol, `${n.method} ${n.path}`), + Promise.resolve(this.promisifiedCallback(n, o)).then(h, f); + } catch (m) { + Promise.reject(m).catch(f); + } + } + freeSocket(n, a) { + pv('Freeing socket %o %o', n.constructor.name, a), n.destroy(); + } + destroy() { + pv('Destroying agent %o', this.constructor.name); + } + } + (e.Agent = t), (e.prototype = e.Agent.prototype); + })(ew || (ew = {})); + doe.exports = ew; +}); +var moe = d((dv) => { + 'use strict'; + var Srt = + (dv && dv.__importDefault) || + function (e) { + return e && e.__esModule ? e : { default: e }; + }; + Object.defineProperty(dv, '__esModule', { value: !0 }); + var Ert = Srt(Z_()), + cv = Ert.default('https-proxy-agent:parse-proxy-response'); + function xrt(e) { + return new Promise((t, r) => { + let n = 0, + a = []; + function o() { + let f = e.read(); + f ? c(f) : e.once('readable', o); + } + function s() { + e.removeListener('end', u), + e.removeListener('error', p), + e.removeListener('close', l), + e.removeListener('readable', o); + } + function l(f) { + cv('onclose had error %o', f); + } + function u() { + cv('onend'); + } + function p(f) { + s(), cv('onerror %o', f), r(f); + } + function c(f) { + a.push(f), (n += f.length); + let h = Buffer.concat(a, n); + if ( + h.indexOf(`\r +\r +`) === -1 + ) { + cv('have not received end of HTTP headers yet...'), o(); + return; + } + let v = h.toString( + 'ascii', + 0, + h.indexOf(`\r +`) + ), + y = +v.split(' ')[1]; + cv('got proxy server response: %o', v), t({ statusCode: y, buffered: h }); + } + e.on('error', p), e.on('close', l), e.on('end', u), o(); + }); + } + dv.default = xrt; +}); +var voe = d((Qc) => { + 'use strict'; + var Ort = + (Qc && Qc.__awaiter) || + function (e, t, r, n) { + function a(o) { + return o instanceof r + ? o + : new r(function (s) { + s(o); + }); + } + return new (r || (r = Promise))(function (o, s) { + function l(c) { + try { + p(n.next(c)); + } catch (f) { + s(f); + } + } + function u(c) { + try { + p(n.throw(c)); + } catch (f) { + s(f); + } + } + function p(c) { + c.done ? o(c.value) : a(c.value).then(l, u); + } + p((n = n.apply(e, t || [])).next()); + }); + }, + Hm = + (Qc && Qc.__importDefault) || + function (e) { + return e && e.__esModule ? e : { default: e }; + }; + Object.defineProperty(Qc, '__esModule', { value: !0 }); + var hoe = Hm(require('net')), + goe = Hm(require('tls')), + Trt = Hm(require('url')), + Crt = Hm(require('assert')), + krt = Hm(Z_()), + Art = foe(), + Irt = Hm(moe()), + fv = krt.default('https-proxy-agent:agent'), + yk = class extends Art.Agent { + constructor(t) { + let r; + if ((typeof t == 'string' ? (r = Trt.default.parse(t)) : (r = t), !r)) + throw new Error('an HTTP(S) proxy server `host` and `port` must be specified!'); + fv('creating new HttpsProxyAgent instance: %o', r), super(r); + let n = Object.assign({}, r); + (this.secureProxy = r.secureProxy || jrt(n.protocol)), + (n.host = n.hostname || n.host), + typeof n.port == 'string' && (n.port = parseInt(n.port, 10)), + !n.port && n.host && (n.port = this.secureProxy ? 443 : 80), + this.secureProxy && !('ALPNProtocols' in n) && (n.ALPNProtocols = ['http 1.1']), + n.host && n.path && (delete n.path, delete n.pathname), + (this.proxy = n); + } + callback(t, r) { + return Ort(this, void 0, void 0, function* () { + let { proxy: n, secureProxy: a } = this, + o; + a + ? (fv('Creating `tls.Socket`: %o', n), (o = goe.default.connect(n))) + : (fv('Creating `net.Socket`: %o', n), (o = hoe.default.connect(n))); + let s = Object.assign({}, n.headers), + u = `CONNECT ${`${r.host}:${r.port}`} HTTP/1.1\r +`; + n.auth && (s['Proxy-Authorization'] = `Basic ${Buffer.from(n.auth).toString('base64')}`); + let { host: p, port: c, secureEndpoint: f } = r; + Rrt(c, f) || (p += `:${c}`), (s.Host = p), (s.Connection = 'close'); + for (let S of Object.keys(s)) + u += `${S}: ${s[S]}\r +`; + let h = Irt.default(o); + o.write(`${u}\r +`); + let { statusCode: m, buffered: v } = yield h; + if (m === 200) { + if ((t.once('socket', Prt), r.secureEndpoint)) { + fv('Upgrading socket connection to TLS'); + let S = r.servername || r.host; + return goe.default.connect( + Object.assign(Object.assign({}, Drt(r, 'host', 'hostname', 'path', 'port')), { + socket: o, + servername: S, + }) + ); + } + return o; + } + o.destroy(); + let y = new hoe.default.Socket({ writable: !1 }); + return ( + (y.readable = !0), + t.once('socket', (S) => { + fv('replaying proxy buffer for failed request'), + Crt.default(S.listenerCount('data') > 0), + S.push(v), + S.push(null); + }), + y + ); + }); + } + }; + Qc.default = yk; + function Prt(e) { + e.resume(); + } + function Rrt(e, t) { + return !!((!t && e === 80) || (t && e === 443)); + } + function jrt(e) { + return typeof e == 'string' ? /^https:?$/i.test(e) : !1; + } + function Drt(e, ...t) { + let r = {}, + n; + for (n in e) t.includes(n) || (r[n] = e[n]); + return r; + } +}); +var boe = d((wk, yoe) => { + 'use strict'; + var Nrt = + (wk && wk.__importDefault) || + function (e) { + return e && e.__esModule ? e : { default: e }; + }, + bk = Nrt(voe()); + function _k(e) { + return new bk.default(e); + } + (function (e) { + (e.HttpsProxyAgent = bk.default), (e.prototype = bk.default.prototype); + })(_k || (_k = {})); + yoe.exports = _k; +}); +var Ooe = d((PGt, xoe) => { + 'use strict'; + var qrt = In().f, + Frt = am(), + _oe = E4(), + Lrt = Mu(), + Mrt = h0(), + Urt = Lu(), + $rt = ds(), + Brt = u4(), + tw = p4(), + Vrt = cC(), + mv = di(), + woe = m0().fastKey, + Eoe = Ol(), + Soe = Eoe.set, + Sk = Eoe.getterFor; + xoe.exports = { + getConstructor: function (e, t, r, n) { + var a = e(function (p, c) { + Mrt(p, o), + Soe(p, { type: t, index: Frt(null), first: void 0, last: void 0, size: 0 }), + mv || (p.size = 0), + Urt(c) || $rt(c, p[n], { that: p, AS_ENTRIES: r }); + }), + o = a.prototype, + s = Sk(t), + l = function (p, c, f) { + var h = s(p), + m = u(p, c), + v, + y; + return ( + m + ? (m.value = f) + : ((h.last = m = + { index: (y = woe(c, !0)), key: c, value: f, previous: (v = h.last), next: void 0, removed: !1 }), + h.first || (h.first = m), + v && (v.next = m), + mv ? h.size++ : p.size++, + y !== 'F' && (h.index[y] = m)), + p + ); + }, + u = function (p, c) { + var f = s(p), + h = woe(c), + m; + if (h !== 'F') return f.index[h]; + for (m = f.first; m; m = m.next) if (m.key == c) return m; + }; + return ( + _oe(o, { + clear: function () { + for (var c = this, f = s(c), h = f.index, m = f.first; m; ) + (m.removed = !0), m.previous && (m.previous = m.previous.next = void 0), delete h[m.index], (m = m.next); + (f.first = f.last = void 0), mv ? (f.size = 0) : (c.size = 0); + }, + delete: function (p) { + var c = this, + f = s(c), + h = u(c, p); + if (h) { + var m = h.next, + v = h.previous; + delete f.index[h.index], + (h.removed = !0), + v && (v.next = m), + m && (m.previous = v), + f.first == h && (f.first = m), + f.last == h && (f.last = v), + mv ? f.size-- : c.size--; + } + return !!h; + }, + forEach: function (c) { + for ( + var f = s(this), h = Lrt(c, arguments.length > 1 ? arguments[1] : void 0), m; + (m = m ? m.next : f.first); + + ) + for (h(m.value, m.key, this); m && m.removed; ) m = m.previous; + }, + has: function (c) { + return !!u(this, c); + }, + }), + _oe( + o, + r + ? { + get: function (c) { + var f = u(this, c); + return f && f.value; + }, + set: function (c, f) { + return l(this, c === 0 ? 0 : c, f); + }, + } + : { + add: function (c) { + return l(this, (c = c === 0 ? 0 : c), c); + }, + } + ), + mv && + qrt(o, 'size', { + get: function () { + return s(this).size; + }, + }), + a + ); + }, + setStrong: function (e, t, r) { + var n = t + ' Iterator', + a = Sk(t), + o = Sk(n); + Brt( + e, + t, + function (s, l) { + Soe(this, { type: n, target: s, state: a(s), kind: l, last: void 0 }); + }, + function () { + for (var s = o(this), l = s.kind, u = s.last; u && u.removed; ) u = u.previous; + return !s.target || !(s.last = u = u ? u.next : s.state.first) + ? ((s.target = void 0), tw(void 0, !0)) + : l == 'keys' + ? tw(u.key, !1) + : l == 'values' + ? tw(u.value, !1) + : tw([u.key, u.value], !1); + }, + r ? 'entries' : 'values', + !r, + !0 + ), + Vrt(t); + }, + }; +}); +var Toe = d(() => { + 'use strict'; + var zrt = Kx(), + Hrt = Ooe(); + zrt( + 'Set', + function (e) { + return function () { + return e(this, arguments.length ? arguments[0] : void 0); + }; + }, + Hrt + ); +}); +var Coe = d(() => { + Toe(); +}); +var Aoe = d((qGt, koe) => { + Rc(); + Dc(); + Coe(); + f0(); + var Grt = or(); + koe.exports = Grt.Set; +}); +var Poe = d((FGt, Ioe) => { + var Wrt = Aoe(); + Bu(); + Ioe.exports = Wrt; +}); +var joe = d((LGt, Roe) => { + Roe.exports = Poe(); +}); +var xk = d((MGt, Noe) => { + var Ek = It(), + Krt = Qf(), + Xrt = $t(), + Jrt = Sl(), + Yrt = lm(), + Qrt = fC(), + Zrt = /MSIE .\./.test(Jrt), + eit = Ek.Function, + Doe = function (e) { + return Zrt + ? function (t, r) { + var n = Qrt(arguments.length, 1) > 2, + a = Xrt(t) ? t : eit(t), + o = n ? Yrt(arguments, 2) : void 0; + return e( + n + ? function () { + Krt(a, this, o); + } + : a, + r + ); + } + : e; + }; + Noe.exports = { setTimeout: Doe(Ek.setTimeout), setInterval: Doe(Ek.setInterval) }; +}); +var Foe = d(() => { + var tit = ve(), + rit = It(), + qoe = xk().setInterval; + tit({ global: !0, bind: !0, forced: rit.setInterval !== qoe }, { setInterval: qoe }); +}); +var Moe = d(() => { + var iit = ve(), + nit = It(), + Loe = xk().setTimeout; + iit({ global: !0, bind: !0, forced: nit.setTimeout !== Loe }, { setTimeout: Loe }); +}); +var Ok = d(() => { + Foe(); + Moe(); +}); +var $oe = d((GGt, Uoe) => { + Ok(); + var ait = or(); + Uoe.exports = ait.setTimeout; +}); +var Gm = d((WGt, Boe) => { + Boe.exports = $oe(); +}); +var zoe = d((KGt, Voe) => { + yx(); + var oit = pn(); + Voe.exports = oit('Array').concat; +}); +var Goe = d((XGt, Hoe) => { + var sit = ei(), + lit = zoe(), + Tk = Array.prototype; + Hoe.exports = function (e) { + var t = e.concat; + return e === Tk || (sit(Tk, e) && t === Tk.concat) ? lit : t; + }; +}); +var Koe = d((JGt, Woe) => { + var uit = Goe(); + Woe.exports = uit; +}); +var hv = d((YGt, Xoe) => { + Xoe.exports = Koe(); +}); +var vv = d((gv) => { + 'use strict'; + var iw = Ce(), + pit = ge(); + kr(); + Zt(); + pit(gv, '__esModule', { value: !0 }); + gv.createLazyStream = fit; + gv.readAll = mit; + gv.concatStreamsAsDuplex = Yoe; + var cit = iw(cn()), + dit = iw(jn()), + Joe = iw(hv()), + Ck = iw(Ye()), + rw = require('stream'); + function fit() { + let e = new rw.PassThrough(), + t = new rw.PassThrough(), + r = Yoe(e, t), + n = !1; + return { + stream: r, + setStream: (o) => { + if (n) throw new Error('stream is already piped to actual stream'); + (n = !0), e.pipe(o).pipe(t); + }, + }; + } + var kk = class extends rw.Writable { + constructor() { + super(), (0, Ck.default)(this, '_buf', void 0), (this._buf = Buffer.alloc(0)); + } + _write(t, r, n) { + (this._buf = (0, Joe.default)(Buffer).call(Buffer, [this._buf, t])), n(); + } + _writev(t, r) { + (this._buf = (0, Joe.default)(Buffer).call(Buffer, [ + this._buf, + ...(0, dit.default)(t).call(t, ({ chunk: n }) => n), + ])), + r(); + } + toString(t = 'utf-8') { + return this._buf.toString(t); + } + }; + async function mit(e, t = 'utf-8') { + return new cit.default((r, n) => { + let a = new kk(); + e.on('error', n) + .pipe(a) + .on('finish', () => r(a.toString(t))); + }); + } + var Ak = class extends rw.Duplex { + constructor(t, r, n = {}) { + var a, o; + super({ + writableObjectMode: (a = n.writableObjectMode) !== null && a !== void 0 ? a : t.writableObjectMode, + readableObjectMode: (o = n.readableObjectMode) !== null && o !== void 0 ? o : r.readableObjectMode, + }), + (0, Ck.default)(this, '_writable', void 0), + (0, Ck.default)(this, '_readable', void 0), + (this._writable = t), + (this._readable = r), + t.once('finish', () => { + this.end(); + }), + this.once('finish', () => { + t.end(); + }), + r.on('readable', () => { + this._readStream(); + }), + r.once('end', () => { + this.push(null); + }), + t.on('error', (s) => this.emit('error', s)), + r.on('error', (s) => this.emit('error', s)); + } + _write(t, r, n) { + this._writable.write(t, r, n); + } + _read(t) { + this._readStream(t); + } + _readStream(t) { + let r; + for (; (r = this._readable.read(t)) !== null; ) this.push(r); + } + }; + function Yoe(e, t, r) { + return new Ak(e, t, r); + } +}); +var ese = d((ZGt, Zoe) => { + var Qoe = require('stream').Stream, + hit = require('util'); + Zoe.exports = qo; + function qo() { + (this.source = null), + (this.dataSize = 0), + (this.maxDataSize = 1024 * 1024), + (this.pauseStream = !0), + (this._maxDataSizeExceeded = !1), + (this._released = !1), + (this._bufferedEvents = []); + } + hit.inherits(qo, Qoe); + qo.create = function (e, t) { + var r = new this(); + t = t || {}; + for (var n in t) r[n] = t[n]; + r.source = e; + var a = e.emit; + return ( + (e.emit = function () { + return r._handleEmit(arguments), a.apply(e, arguments); + }), + e.on('error', function () {}), + r.pauseStream && e.pause(), + r + ); + }; + Object.defineProperty(qo.prototype, 'readable', { + configurable: !0, + enumerable: !0, + get: function () { + return this.source.readable; + }, + }); + qo.prototype.setEncoding = function () { + return this.source.setEncoding.apply(this.source, arguments); + }; + qo.prototype.resume = function () { + this._released || this.release(), this.source.resume(); + }; + qo.prototype.pause = function () { + this.source.pause(); + }; + qo.prototype.release = function () { + (this._released = !0), + this._bufferedEvents.forEach( + function (e) { + this.emit.apply(this, e); + }.bind(this) + ), + (this._bufferedEvents = []); + }; + qo.prototype.pipe = function () { + var e = Qoe.prototype.pipe.apply(this, arguments); + return this.resume(), e; + }; + qo.prototype._handleEmit = function (e) { + if (this._released) { + this.emit.apply(this, e); + return; + } + e[0] === 'data' && ((this.dataSize += e[1].length), this._checkIfMaxDataSizeExceeded()), + this._bufferedEvents.push(e); + }; + qo.prototype._checkIfMaxDataSizeExceeded = function () { + if (!this._maxDataSizeExceeded && !(this.dataSize <= this.maxDataSize)) { + this._maxDataSizeExceeded = !0; + var e = 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.'; + this.emit('error', new Error(e)); + } + }; +}); +var nse = d((eWt, ise) => { + var git = require('util'), + rse = require('stream').Stream, + tse = ese(); + ise.exports = br; + function br() { + (this.writable = !1), + (this.readable = !0), + (this.dataSize = 0), + (this.maxDataSize = 2 * 1024 * 1024), + (this.pauseStreams = !0), + (this._released = !1), + (this._streams = []), + (this._currentStream = null), + (this._insideLoop = !1), + (this._pendingNext = !1); + } + git.inherits(br, rse); + br.create = function (e) { + var t = new this(); + e = e || {}; + for (var r in e) t[r] = e[r]; + return t; + }; + br.isStreamLike = function (e) { + return ( + typeof e != 'function' && + typeof e != 'string' && + typeof e != 'boolean' && + typeof e != 'number' && + !Buffer.isBuffer(e) + ); + }; + br.prototype.append = function (e) { + var t = br.isStreamLike(e); + if (t) { + if (!(e instanceof tse)) { + var r = tse.create(e, { maxDataSize: 1 / 0, pauseStream: this.pauseStreams }); + e.on('data', this._checkDataSize.bind(this)), (e = r); + } + this._handleErrors(e), this.pauseStreams && e.pause(); + } + return this._streams.push(e), this; + }; + br.prototype.pipe = function (e, t) { + return rse.prototype.pipe.call(this, e, t), this.resume(), e; + }; + br.prototype._getNext = function () { + if (((this._currentStream = null), this._insideLoop)) { + this._pendingNext = !0; + return; + } + this._insideLoop = !0; + try { + do (this._pendingNext = !1), this._realGetNext(); + while (this._pendingNext); + } finally { + this._insideLoop = !1; + } + }; + br.prototype._realGetNext = function () { + var e = this._streams.shift(); + if (typeof e > 'u') { + this.end(); + return; + } + if (typeof e != 'function') { + this._pipeNext(e); + return; + } + var t = e; + t( + function (r) { + var n = br.isStreamLike(r); + n && (r.on('data', this._checkDataSize.bind(this)), this._handleErrors(r)), this._pipeNext(r); + }.bind(this) + ); + }; + br.prototype._pipeNext = function (e) { + this._currentStream = e; + var t = br.isStreamLike(e); + if (t) { + e.on('end', this._getNext.bind(this)), e.pipe(this, { end: !1 }); + return; + } + var r = e; + this.write(r), this._getNext(); + }; + br.prototype._handleErrors = function (e) { + var t = this; + e.on('error', function (r) { + t._emitError(r); + }); + }; + br.prototype.write = function (e) { + this.emit('data', e); + }; + br.prototype.pause = function () { + this.pauseStreams && + (this.pauseStreams && + this._currentStream && + typeof this._currentStream.pause == 'function' && + this._currentStream.pause(), + this.emit('pause')); + }; + br.prototype.resume = function () { + this._released || ((this._released = !0), (this.writable = !0), this._getNext()), + this.pauseStreams && + this._currentStream && + typeof this._currentStream.resume == 'function' && + this._currentStream.resume(), + this.emit('resume'); + }; + br.prototype.end = function () { + this._reset(), this.emit('end'); + }; + br.prototype.destroy = function () { + this._reset(), this.emit('close'); + }; + br.prototype._reset = function () { + (this.writable = !1), (this._streams = []), (this._currentStream = null); + }; + br.prototype._checkDataSize = function () { + if ((this._updateDataSize(), !(this.dataSize <= this.maxDataSize))) { + var e = 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.'; + this._emitError(new Error(e)); + } + }; + br.prototype._updateDataSize = function () { + this.dataSize = 0; + var e = this; + this._streams.forEach(function (t) { + t.dataSize && (e.dataSize += t.dataSize); + }), + this._currentStream && this._currentStream.dataSize && (this.dataSize += this._currentStream.dataSize); + }; + br.prototype._emitError = function (e) { + this._reset(), this.emit('error', e); + }; +}); +var ase = d((tWt, vit) => { + vit.exports = { + 'application/1d-interleaved-parityfec': { source: 'iana' }, + 'application/3gpdash-qoe-report+xml': { source: 'iana', charset: 'UTF-8', compressible: !0 }, + 'application/3gpp-ims+xml': { source: 'iana', compressible: !0 }, + 'application/3gpphal+json': { source: 'iana', compressible: !0 }, + 'application/3gpphalforms+json': { source: 'iana', compressible: !0 }, + 'application/a2l': { source: 'iana' }, + 'application/ace+cbor': { source: 'iana' }, + 'application/activemessage': { source: 'iana' }, + 'application/activity+json': { source: 'iana', compressible: !0 }, + 'application/alto-costmap+json': { source: 'iana', compressible: !0 }, + 'application/alto-costmapfilter+json': { source: 'iana', compressible: !0 }, + 'application/alto-directory+json': { source: 'iana', compressible: !0 }, + 'application/alto-endpointcost+json': { source: 'iana', compressible: !0 }, + 'application/alto-endpointcostparams+json': { source: 'iana', compressible: !0 }, + 'application/alto-endpointprop+json': { source: 'iana', compressible: !0 }, + 'application/alto-endpointpropparams+json': { source: 'iana', compressible: !0 }, + 'application/alto-error+json': { source: 'iana', compressible: !0 }, + 'application/alto-networkmap+json': { source: 'iana', compressible: !0 }, + 'application/alto-networkmapfilter+json': { source: 'iana', compressible: !0 }, + 'application/alto-updatestreamcontrol+json': { source: 'iana', compressible: !0 }, + 'application/alto-updatestreamparams+json': { source: 'iana', compressible: !0 }, + 'application/aml': { source: 'iana' }, + 'application/andrew-inset': { source: 'iana', extensions: ['ez'] }, + 'application/applefile': { source: 'iana' }, + 'application/applixware': { source: 'apache', extensions: ['aw'] }, + 'application/at+jwt': { source: 'iana' }, + 'application/atf': { source: 'iana' }, + 'application/atfx': { source: 'iana' }, + 'application/atom+xml': { source: 'iana', compressible: !0, extensions: ['atom'] }, + 'application/atomcat+xml': { source: 'iana', compressible: !0, extensions: ['atomcat'] }, + 'application/atomdeleted+xml': { source: 'iana', compressible: !0, extensions: ['atomdeleted'] }, + 'application/atomicmail': { source: 'iana' }, + 'application/atomsvc+xml': { source: 'iana', compressible: !0, extensions: ['atomsvc'] }, + 'application/atsc-dwd+xml': { source: 'iana', compressible: !0, extensions: ['dwd'] }, + 'application/atsc-dynamic-event-message': { source: 'iana' }, + 'application/atsc-held+xml': { source: 'iana', compressible: !0, extensions: ['held'] }, + 'application/atsc-rdt+json': { source: 'iana', compressible: !0 }, + 'application/atsc-rsat+xml': { source: 'iana', compressible: !0, extensions: ['rsat'] }, + 'application/atxml': { source: 'iana' }, + 'application/auth-policy+xml': { source: 'iana', compressible: !0 }, + 'application/bacnet-xdd+zip': { source: 'iana', compressible: !1 }, + 'application/batch-smtp': { source: 'iana' }, + 'application/bdoc': { compressible: !1, extensions: ['bdoc'] }, + 'application/beep+xml': { source: 'iana', charset: 'UTF-8', compressible: !0 }, + 'application/calendar+json': { source: 'iana', compressible: !0 }, + 'application/calendar+xml': { source: 'iana', compressible: !0, extensions: ['xcs'] }, + 'application/call-completion': { source: 'iana' }, + 'application/cals-1840': { source: 'iana' }, + 'application/captive+json': { source: 'iana', compressible: !0 }, + 'application/cbor': { source: 'iana' }, + 'application/cbor-seq': { source: 'iana' }, + 'application/cccex': { source: 'iana' }, + 'application/ccmp+xml': { source: 'iana', compressible: !0 }, + 'application/ccxml+xml': { source: 'iana', compressible: !0, extensions: ['ccxml'] }, + 'application/cdfx+xml': { source: 'iana', compressible: !0, extensions: ['cdfx'] }, + 'application/cdmi-capability': { source: 'iana', extensions: ['cdmia'] }, + 'application/cdmi-container': { source: 'iana', extensions: ['cdmic'] }, + 'application/cdmi-domain': { source: 'iana', extensions: ['cdmid'] }, + 'application/cdmi-object': { source: 'iana', extensions: ['cdmio'] }, + 'application/cdmi-queue': { source: 'iana', extensions: ['cdmiq'] }, + 'application/cdni': { source: 'iana' }, + 'application/cea': { source: 'iana' }, + 'application/cea-2018+xml': { source: 'iana', compressible: !0 }, + 'application/cellml+xml': { source: 'iana', compressible: !0 }, + 'application/cfw': { source: 'iana' }, + 'application/city+json': { source: 'iana', compressible: !0 }, + 'application/clr': { source: 'iana' }, + 'application/clue+xml': { source: 'iana', compressible: !0 }, + 'application/clue_info+xml': { source: 'iana', compressible: !0 }, + 'application/cms': { source: 'iana' }, + 'application/cnrp+xml': { source: 'iana', compressible: !0 }, + 'application/coap-group+json': { source: 'iana', compressible: !0 }, + 'application/coap-payload': { source: 'iana' }, + 'application/commonground': { source: 'iana' }, + 'application/conference-info+xml': { source: 'iana', compressible: !0 }, + 'application/cose': { source: 'iana' }, + 'application/cose-key': { source: 'iana' }, + 'application/cose-key-set': { source: 'iana' }, + 'application/cpl+xml': { source: 'iana', compressible: !0, extensions: ['cpl'] }, + 'application/csrattrs': { source: 'iana' }, + 'application/csta+xml': { source: 'iana', compressible: !0 }, + 'application/cstadata+xml': { source: 'iana', compressible: !0 }, + 'application/csvm+json': { source: 'iana', compressible: !0 }, + 'application/cu-seeme': { source: 'apache', extensions: ['cu'] }, + 'application/cwt': { source: 'iana' }, + 'application/cybercash': { source: 'iana' }, + 'application/dart': { compressible: !0 }, + 'application/dash+xml': { source: 'iana', compressible: !0, extensions: ['mpd'] }, + 'application/dash-patch+xml': { source: 'iana', compressible: !0, extensions: ['mpp'] }, + 'application/dashdelta': { source: 'iana' }, + 'application/davmount+xml': { source: 'iana', compressible: !0, extensions: ['davmount'] }, + 'application/dca-rft': { source: 'iana' }, + 'application/dcd': { source: 'iana' }, + 'application/dec-dx': { source: 'iana' }, + 'application/dialog-info+xml': { source: 'iana', compressible: !0 }, + 'application/dicom': { source: 'iana' }, + 'application/dicom+json': { source: 'iana', compressible: !0 }, + 'application/dicom+xml': { source: 'iana', compressible: !0 }, + 'application/dii': { source: 'iana' }, + 'application/dit': { source: 'iana' }, + 'application/dns': { source: 'iana' }, + 'application/dns+json': { source: 'iana', compressible: !0 }, + 'application/dns-message': { source: 'iana' }, + 'application/docbook+xml': { source: 'apache', compressible: !0, extensions: ['dbk'] }, + 'application/dots+cbor': { source: 'iana' }, + 'application/dskpp+xml': { source: 'iana', compressible: !0 }, + 'application/dssc+der': { source: 'iana', extensions: ['dssc'] }, + 'application/dssc+xml': { source: 'iana', compressible: !0, extensions: ['xdssc'] }, + 'application/dvcs': { source: 'iana' }, + 'application/ecmascript': { source: 'iana', compressible: !0, extensions: ['es', 'ecma'] }, + 'application/edi-consent': { source: 'iana' }, + 'application/edi-x12': { source: 'iana', compressible: !1 }, + 'application/edifact': { source: 'iana', compressible: !1 }, + 'application/efi': { source: 'iana' }, + 'application/elm+json': { source: 'iana', charset: 'UTF-8', compressible: !0 }, + 'application/elm+xml': { source: 'iana', compressible: !0 }, + 'application/emergencycalldata.cap+xml': { source: 'iana', charset: 'UTF-8', compressible: !0 }, + 'application/emergencycalldata.comment+xml': { source: 'iana', compressible: !0 }, + 'application/emergencycalldata.control+xml': { source: 'iana', compressible: !0 }, + 'application/emergencycalldata.deviceinfo+xml': { source: 'iana', compressible: !0 }, + 'application/emergencycalldata.ecall.msd': { source: 'iana' }, + 'application/emergencycalldata.providerinfo+xml': { source: 'iana', compressible: !0 }, + 'application/emergencycalldata.serviceinfo+xml': { source: 'iana', compressible: !0 }, + 'application/emergencycalldata.subscriberinfo+xml': { source: 'iana', compressible: !0 }, + 'application/emergencycalldata.veds+xml': { source: 'iana', compressible: !0 }, + 'application/emma+xml': { source: 'iana', compressible: !0, extensions: ['emma'] }, + 'application/emotionml+xml': { source: 'iana', compressible: !0, extensions: ['emotionml'] }, + 'application/encaprtp': { source: 'iana' }, + 'application/epp+xml': { source: 'iana', compressible: !0 }, + 'application/epub+zip': { source: 'iana', compressible: !1, extensions: ['epub'] }, + 'application/eshop': { source: 'iana' }, + 'application/exi': { source: 'iana', extensions: ['exi'] }, + 'application/expect-ct-report+json': { source: 'iana', compressible: !0 }, + 'application/express': { source: 'iana', extensions: ['exp'] }, + 'application/fastinfoset': { source: 'iana' }, + 'application/fastsoap': { source: 'iana' }, + 'application/fdt+xml': { source: 'iana', compressible: !0, extensions: ['fdt'] }, + 'application/fhir+json': { source: 'iana', charset: 'UTF-8', compressible: !0 }, + 'application/fhir+xml': { source: 'iana', charset: 'UTF-8', compressible: !0 }, + 'application/fido.trusted-apps+json': { compressible: !0 }, + 'application/fits': { source: 'iana' }, + 'application/flexfec': { source: 'iana' }, + 'application/font-sfnt': { source: 'iana' }, + 'application/font-tdpfr': { source: 'iana', extensions: ['pfr'] }, + 'application/font-woff': { source: 'iana', compressible: !1 }, + 'application/framework-attributes+xml': { source: 'iana', compressible: !0 }, + 'application/geo+json': { source: 'iana', compressible: !0, extensions: ['geojson'] }, + 'application/geo+json-seq': { source: 'iana' }, + 'application/geopackage+sqlite3': { source: 'iana' }, + 'application/geoxacml+xml': { source: 'iana', compressible: !0 }, + 'application/gltf-buffer': { source: 'iana' }, + 'application/gml+xml': { source: 'iana', compressible: !0, extensions: ['gml'] }, + 'application/gpx+xml': { source: 'apache', compressible: !0, extensions: ['gpx'] }, + 'application/gxf': { source: 'apache', extensions: ['gxf'] }, + 'application/gzip': { source: 'iana', compressible: !1, extensions: ['gz'] }, + 'application/h224': { source: 'iana' }, + 'application/held+xml': { source: 'iana', compressible: !0 }, + 'application/hjson': { extensions: ['hjson'] }, + 'application/http': { source: 'iana' }, + 'application/hyperstudio': { source: 'iana', extensions: ['stk'] }, + 'application/ibe-key-request+xml': { source: 'iana', compressible: !0 }, + 'application/ibe-pkg-reply+xml': { source: 'iana', compressible: !0 }, + 'application/ibe-pp-data': { source: 'iana' }, + 'application/iges': { source: 'iana' }, + 'application/im-iscomposing+xml': { source: 'iana', charset: 'UTF-8', compressible: !0 }, + 'application/index': { source: 'iana' }, + 'application/index.cmd': { source: 'iana' }, + 'application/index.obj': { source: 'iana' }, + 'application/index.response': { source: 'iana' }, + 'application/index.vnd': { source: 'iana' }, + 'application/inkml+xml': { source: 'iana', compressible: !0, extensions: ['ink', 'inkml'] }, + 'application/iotp': { source: 'iana' }, + 'application/ipfix': { source: 'iana', extensions: ['ipfix'] }, + 'application/ipp': { source: 'iana' }, + 'application/isup': { source: 'iana' }, + 'application/its+xml': { source: 'iana', compressible: !0, extensions: ['its'] }, + 'application/java-archive': { source: 'apache', compressible: !1, extensions: ['jar', 'war', 'ear'] }, + 'application/java-serialized-object': { source: 'apache', compressible: !1, extensions: ['ser'] }, + 'application/java-vm': { source: 'apache', compressible: !1, extensions: ['class'] }, + 'application/javascript': { source: 'iana', charset: 'UTF-8', compressible: !0, extensions: ['js', 'mjs'] }, + 'application/jf2feed+json': { source: 'iana', compressible: !0 }, + 'application/jose': { source: 'iana' }, + 'application/jose+json': { source: 'iana', compressible: !0 }, + 'application/jrd+json': { source: 'iana', compressible: !0 }, + 'application/jscalendar+json': { source: 'iana', compressible: !0 }, + 'application/json': { source: 'iana', charset: 'UTF-8', compressible: !0, extensions: ['json', 'map'] }, + 'application/json-patch+json': { source: 'iana', compressible: !0 }, + 'application/json-seq': { source: 'iana' }, + 'application/json5': { extensions: ['json5'] }, + 'application/jsonml+json': { source: 'apache', compressible: !0, extensions: ['jsonml'] }, + 'application/jwk+json': { source: 'iana', compressible: !0 }, + 'application/jwk-set+json': { source: 'iana', compressible: !0 }, + 'application/jwt': { source: 'iana' }, + 'application/kpml-request+xml': { source: 'iana', compressible: !0 }, + 'application/kpml-response+xml': { source: 'iana', compressible: !0 }, + 'application/ld+json': { source: 'iana', compressible: !0, extensions: ['jsonld'] }, + 'application/lgr+xml': { source: 'iana', compressible: !0, extensions: ['lgr'] }, + 'application/link-format': { source: 'iana' }, + 'application/load-control+xml': { source: 'iana', compressible: !0 }, + 'application/lost+xml': { source: 'iana', compressible: !0, extensions: ['lostxml'] }, + 'application/lostsync+xml': { source: 'iana', compressible: !0 }, + 'application/lpf+zip': { source: 'iana', compressible: !1 }, + 'application/lxf': { source: 'iana' }, + 'application/mac-binhex40': { source: 'iana', extensions: ['hqx'] }, + 'application/mac-compactpro': { source: 'apache', extensions: ['cpt'] }, + 'application/macwriteii': { source: 'iana' }, + 'application/mads+xml': { source: 'iana', compressible: !0, extensions: ['mads'] }, + 'application/manifest+json': { source: 'iana', charset: 'UTF-8', compressible: !0, extensions: ['webmanifest'] }, + 'application/marc': { source: 'iana', extensions: ['mrc'] }, + 'application/marcxml+xml': { source: 'iana', compressible: !0, extensions: ['mrcx'] }, + 'application/mathematica': { source: 'iana', extensions: ['ma', 'nb', 'mb'] }, + 'application/mathml+xml': { source: 'iana', compressible: !0, extensions: ['mathml'] }, + 'application/mathml-content+xml': { source: 'iana', compressible: !0 }, + 'application/mathml-presentation+xml': { source: 'iana', compressible: !0 }, + 'application/mbms-associated-procedure-description+xml': { source: 'iana', compressible: !0 }, + 'application/mbms-deregister+xml': { source: 'iana', compressible: !0 }, + 'application/mbms-envelope+xml': { source: 'iana', compressible: !0 }, + 'application/mbms-msk+xml': { source: 'iana', compressible: !0 }, + 'application/mbms-msk-response+xml': { source: 'iana', compressible: !0 }, + 'application/mbms-protection-description+xml': { source: 'iana', compressible: !0 }, + 'application/mbms-reception-report+xml': { source: 'iana', compressible: !0 }, + 'application/mbms-register+xml': { source: 'iana', compressible: !0 }, + 'application/mbms-register-response+xml': { source: 'iana', compressible: !0 }, + 'application/mbms-schedule+xml': { source: 'iana', compressible: !0 }, + 'application/mbms-user-service-description+xml': { source: 'iana', compressible: !0 }, + 'application/mbox': { source: 'iana', extensions: ['mbox'] }, + 'application/media-policy-dataset+xml': { source: 'iana', compressible: !0, extensions: ['mpf'] }, + 'application/media_control+xml': { source: 'iana', compressible: !0 }, + 'application/mediaservercontrol+xml': { source: 'iana', compressible: !0, extensions: ['mscml'] }, + 'application/merge-patch+json': { source: 'iana', compressible: !0 }, + 'application/metalink+xml': { source: 'apache', compressible: !0, extensions: ['metalink'] }, + 'application/metalink4+xml': { source: 'iana', compressible: !0, extensions: ['meta4'] }, + 'application/mets+xml': { source: 'iana', compressible: !0, extensions: ['mets'] }, + 'application/mf4': { source: 'iana' }, + 'application/mikey': { source: 'iana' }, + 'application/mipc': { source: 'iana' }, + 'application/missing-blocks+cbor-seq': { source: 'iana' }, + 'application/mmt-aei+xml': { source: 'iana', compressible: !0, extensions: ['maei'] }, + 'application/mmt-usd+xml': { source: 'iana', compressible: !0, extensions: ['musd'] }, + 'application/mods+xml': { source: 'iana', compressible: !0, extensions: ['mods'] }, + 'application/moss-keys': { source: 'iana' }, + 'application/moss-signature': { source: 'iana' }, + 'application/mosskey-data': { source: 'iana' }, + 'application/mosskey-request': { source: 'iana' }, + 'application/mp21': { source: 'iana', extensions: ['m21', 'mp21'] }, + 'application/mp4': { source: 'iana', extensions: ['mp4s', 'm4p'] }, + 'application/mpeg4-generic': { source: 'iana' }, + 'application/mpeg4-iod': { source: 'iana' }, + 'application/mpeg4-iod-xmt': { source: 'iana' }, + 'application/mrb-consumer+xml': { source: 'iana', compressible: !0 }, + 'application/mrb-publish+xml': { source: 'iana', compressible: !0 }, + 'application/msc-ivr+xml': { source: 'iana', charset: 'UTF-8', compressible: !0 }, + 'application/msc-mixer+xml': { source: 'iana', charset: 'UTF-8', compressible: !0 }, + 'application/msword': { source: 'iana', compressible: !1, extensions: ['doc', 'dot'] }, + 'application/mud+json': { source: 'iana', compressible: !0 }, + 'application/multipart-core': { source: 'iana' }, + 'application/mxf': { source: 'iana', extensions: ['mxf'] }, + 'application/n-quads': { source: 'iana', extensions: ['nq'] }, + 'application/n-triples': { source: 'iana', extensions: ['nt'] }, + 'application/nasdata': { source: 'iana' }, + 'application/news-checkgroups': { source: 'iana', charset: 'US-ASCII' }, + 'application/news-groupinfo': { source: 'iana', charset: 'US-ASCII' }, + 'application/news-transmission': { source: 'iana' }, + 'application/nlsml+xml': { source: 'iana', compressible: !0 }, + 'application/node': { source: 'iana', extensions: ['cjs'] }, + 'application/nss': { source: 'iana' }, + 'application/oauth-authz-req+jwt': { source: 'iana' }, + 'application/oblivious-dns-message': { source: 'iana' }, + 'application/ocsp-request': { source: 'iana' }, + 'application/ocsp-response': { source: 'iana' }, + 'application/octet-stream': { + source: 'iana', + compressible: !1, + extensions: [ + 'bin', + 'dms', + 'lrf', + 'mar', + 'so', + 'dist', + 'distz', + 'pkg', + 'bpk', + 'dump', + 'elc', + 'deploy', + 'exe', + 'dll', + 'deb', + 'dmg', + 'iso', + 'img', + 'msi', + 'msp', + 'msm', + 'buffer', + ], + }, + 'application/oda': { source: 'iana', extensions: ['oda'] }, + 'application/odm+xml': { source: 'iana', compressible: !0 }, + 'application/odx': { source: 'iana' }, + 'application/oebps-package+xml': { source: 'iana', compressible: !0, extensions: ['opf'] }, + 'application/ogg': { source: 'iana', compressible: !1, extensions: ['ogx'] }, + 'application/omdoc+xml': { source: 'apache', compressible: !0, extensions: ['omdoc'] }, + 'application/onenote': { source: 'apache', extensions: ['onetoc', 'onetoc2', 'onetmp', 'onepkg'] }, + 'application/opc-nodeset+xml': { source: 'iana', compressible: !0 }, + 'application/oscore': { source: 'iana' }, + 'application/oxps': { source: 'iana', extensions: ['oxps'] }, + 'application/p21': { source: 'iana' }, + 'application/p21+zip': { source: 'iana', compressible: !1 }, + 'application/p2p-overlay+xml': { source: 'iana', compressible: !0, extensions: ['relo'] }, + 'application/parityfec': { source: 'iana' }, + 'application/passport': { source: 'iana' }, + 'application/patch-ops-error+xml': { source: 'iana', compressible: !0, extensions: ['xer'] }, + 'application/pdf': { source: 'iana', compressible: !1, extensions: ['pdf'] }, + 'application/pdx': { source: 'iana' }, + 'application/pem-certificate-chain': { source: 'iana' }, + 'application/pgp-encrypted': { source: 'iana', compressible: !1, extensions: ['pgp'] }, + 'application/pgp-keys': { source: 'iana', extensions: ['asc'] }, + 'application/pgp-signature': { source: 'iana', extensions: ['asc', 'sig'] }, + 'application/pics-rules': { source: 'apache', extensions: ['prf'] }, + 'application/pidf+xml': { source: 'iana', charset: 'UTF-8', compressible: !0 }, + 'application/pidf-diff+xml': { source: 'iana', charset: 'UTF-8', compressible: !0 }, + 'application/pkcs10': { source: 'iana', extensions: ['p10'] }, + 'application/pkcs12': { source: 'iana' }, + 'application/pkcs7-mime': { source: 'iana', extensions: ['p7m', 'p7c'] }, + 'application/pkcs7-signature': { source: 'iana', extensions: ['p7s'] }, + 'application/pkcs8': { source: 'iana', extensions: ['p8'] }, + 'application/pkcs8-encrypted': { source: 'iana' }, + 'application/pkix-attr-cert': { source: 'iana', extensions: ['ac'] }, + 'application/pkix-cert': { source: 'iana', extensions: ['cer'] }, + 'application/pkix-crl': { source: 'iana', extensions: ['crl'] }, + 'application/pkix-pkipath': { source: 'iana', extensions: ['pkipath'] }, + 'application/pkixcmp': { source: 'iana', extensions: ['pki'] }, + 'application/pls+xml': { source: 'iana', compressible: !0, extensions: ['pls'] }, + 'application/poc-settings+xml': { source: 'iana', charset: 'UTF-8', compressible: !0 }, + 'application/postscript': { source: 'iana', compressible: !0, extensions: ['ai', 'eps', 'ps'] }, + 'application/ppsp-tracker+json': { source: 'iana', compressible: !0 }, + 'application/problem+json': { source: 'iana', compressible: !0 }, + 'application/problem+xml': { source: 'iana', compressible: !0 }, + 'application/provenance+xml': { source: 'iana', compressible: !0, extensions: ['provx'] }, + 'application/prs.alvestrand.titrax-sheet': { source: 'iana' }, + 'application/prs.cww': { source: 'iana', extensions: ['cww'] }, + 'application/prs.cyn': { source: 'iana', charset: '7-BIT' }, + 'application/prs.hpub+zip': { source: 'iana', compressible: !1 }, + 'application/prs.nprend': { source: 'iana' }, + 'application/prs.plucker': { source: 'iana' }, + 'application/prs.rdf-xml-crypt': { source: 'iana' }, + 'application/prs.xsf+xml': { source: 'iana', compressible: !0 }, + 'application/pskc+xml': { source: 'iana', compressible: !0, extensions: ['pskcxml'] }, + 'application/pvd+json': { source: 'iana', compressible: !0 }, + 'application/qsig': { source: 'iana' }, + 'application/raml+yaml': { compressible: !0, extensions: ['raml'] }, + 'application/raptorfec': { source: 'iana' }, + 'application/rdap+json': { source: 'iana', compressible: !0 }, + 'application/rdf+xml': { source: 'iana', compressible: !0, extensions: ['rdf', 'owl'] }, + 'application/reginfo+xml': { source: 'iana', compressible: !0, extensions: ['rif'] }, + 'application/relax-ng-compact-syntax': { source: 'iana', extensions: ['rnc'] }, + 'application/remote-printing': { source: 'iana' }, + 'application/reputon+json': { source: 'iana', compressible: !0 }, + 'application/resource-lists+xml': { source: 'iana', compressible: !0, extensions: ['rl'] }, + 'application/resource-lists-diff+xml': { source: 'iana', compressible: !0, extensions: ['rld'] }, + 'application/rfc+xml': { source: 'iana', compressible: !0 }, + 'application/riscos': { source: 'iana' }, + 'application/rlmi+xml': { source: 'iana', compressible: !0 }, + 'application/rls-services+xml': { source: 'iana', compressible: !0, extensions: ['rs'] }, + 'application/route-apd+xml': { source: 'iana', compressible: !0, extensions: ['rapd'] }, + 'application/route-s-tsid+xml': { source: 'iana', compressible: !0, extensions: ['sls'] }, + 'application/route-usd+xml': { source: 'iana', compressible: !0, extensions: ['rusd'] }, + 'application/rpki-ghostbusters': { source: 'iana', extensions: ['gbr'] }, + 'application/rpki-manifest': { source: 'iana', extensions: ['mft'] }, + 'application/rpki-publication': { source: 'iana' }, + 'application/rpki-roa': { source: 'iana', extensions: ['roa'] }, + 'application/rpki-updown': { source: 'iana' }, + 'application/rsd+xml': { source: 'apache', compressible: !0, extensions: ['rsd'] }, + 'application/rss+xml': { source: 'apache', compressible: !0, extensions: ['rss'] }, + 'application/rtf': { source: 'iana', compressible: !0, extensions: ['rtf'] }, + 'application/rtploopback': { source: 'iana' }, + 'application/rtx': { source: 'iana' }, + 'application/samlassertion+xml': { source: 'iana', compressible: !0 }, + 'application/samlmetadata+xml': { source: 'iana', compressible: !0 }, + 'application/sarif+json': { source: 'iana', compressible: !0 }, + 'application/sarif-external-properties+json': { source: 'iana', compressible: !0 }, + 'application/sbe': { source: 'iana' }, + 'application/sbml+xml': { source: 'iana', compressible: !0, extensions: ['sbml'] }, + 'application/scaip+xml': { source: 'iana', compressible: !0 }, + 'application/scim+json': { source: 'iana', compressible: !0 }, + 'application/scvp-cv-request': { source: 'iana', extensions: ['scq'] }, + 'application/scvp-cv-response': { source: 'iana', extensions: ['scs'] }, + 'application/scvp-vp-request': { source: 'iana', extensions: ['spq'] }, + 'application/scvp-vp-response': { source: 'iana', extensions: ['spp'] }, + 'application/sdp': { source: 'iana', extensions: ['sdp'] }, + 'application/secevent+jwt': { source: 'iana' }, + 'application/senml+cbor': { source: 'iana' }, + 'application/senml+json': { source: 'iana', compressible: !0 }, + 'application/senml+xml': { source: 'iana', compressible: !0, extensions: ['senmlx'] }, + 'application/senml-etch+cbor': { source: 'iana' }, + 'application/senml-etch+json': { source: 'iana', compressible: !0 }, + 'application/senml-exi': { source: 'iana' }, + 'application/sensml+cbor': { source: 'iana' }, + 'application/sensml+json': { source: 'iana', compressible: !0 }, + 'application/sensml+xml': { source: 'iana', compressible: !0, extensions: ['sensmlx'] }, + 'application/sensml-exi': { source: 'iana' }, + 'application/sep+xml': { source: 'iana', compressible: !0 }, + 'application/sep-exi': { source: 'iana' }, + 'application/session-info': { source: 'iana' }, + 'application/set-payment': { source: 'iana' }, + 'application/set-payment-initiation': { source: 'iana', extensions: ['setpay'] }, + 'application/set-registration': { source: 'iana' }, + 'application/set-registration-initiation': { source: 'iana', extensions: ['setreg'] }, + 'application/sgml': { source: 'iana' }, + 'application/sgml-open-catalog': { source: 'iana' }, + 'application/shf+xml': { source: 'iana', compressible: !0, extensions: ['shf'] }, + 'application/sieve': { source: 'iana', extensions: ['siv', 'sieve'] }, + 'application/simple-filter+xml': { source: 'iana', compressible: !0 }, + 'application/simple-message-summary': { source: 'iana' }, + 'application/simplesymbolcontainer': { source: 'iana' }, + 'application/sipc': { source: 'iana' }, + 'application/slate': { source: 'iana' }, + 'application/smil': { source: 'iana' }, + 'application/smil+xml': { source: 'iana', compressible: !0, extensions: ['smi', 'smil'] }, + 'application/smpte336m': { source: 'iana' }, + 'application/soap+fastinfoset': { source: 'iana' }, + 'application/soap+xml': { source: 'iana', compressible: !0 }, + 'application/sparql-query': { source: 'iana', extensions: ['rq'] }, + 'application/sparql-results+xml': { source: 'iana', compressible: !0, extensions: ['srx'] }, + 'application/spdx+json': { source: 'iana', compressible: !0 }, + 'application/spirits-event+xml': { source: 'iana', compressible: !0 }, + 'application/sql': { source: 'iana' }, + 'application/srgs': { source: 'iana', extensions: ['gram'] }, + 'application/srgs+xml': { source: 'iana', compressible: !0, extensions: ['grxml'] }, + 'application/sru+xml': { source: 'iana', compressible: !0, extensions: ['sru'] }, + 'application/ssdl+xml': { source: 'apache', compressible: !0, extensions: ['ssdl'] }, + 'application/ssml+xml': { source: 'iana', compressible: !0, extensions: ['ssml'] }, + 'application/stix+json': { source: 'iana', compressible: !0 }, + 'application/swid+xml': { source: 'iana', compressible: !0, extensions: ['swidtag'] }, + 'application/tamp-apex-update': { source: 'iana' }, + 'application/tamp-apex-update-confirm': { source: 'iana' }, + 'application/tamp-community-update': { source: 'iana' }, + 'application/tamp-community-update-confirm': { source: 'iana' }, + 'application/tamp-error': { source: 'iana' }, + 'application/tamp-sequence-adjust': { source: 'iana' }, + 'application/tamp-sequence-adjust-confirm': { source: 'iana' }, + 'application/tamp-status-query': { source: 'iana' }, + 'application/tamp-status-response': { source: 'iana' }, + 'application/tamp-update': { source: 'iana' }, + 'application/tamp-update-confirm': { source: 'iana' }, + 'application/tar': { compressible: !0 }, + 'application/taxii+json': { source: 'iana', compressible: !0 }, + 'application/td+json': { source: 'iana', compressible: !0 }, + 'application/tei+xml': { source: 'iana', compressible: !0, extensions: ['tei', 'teicorpus'] }, + 'application/tetra_isi': { source: 'iana' }, + 'application/thraud+xml': { source: 'iana', compressible: !0, extensions: ['tfi'] }, + 'application/timestamp-query': { source: 'iana' }, + 'application/timestamp-reply': { source: 'iana' }, + 'application/timestamped-data': { source: 'iana', extensions: ['tsd'] }, + 'application/tlsrpt+gzip': { source: 'iana' }, + 'application/tlsrpt+json': { source: 'iana', compressible: !0 }, + 'application/tnauthlist': { source: 'iana' }, + 'application/token-introspection+jwt': { source: 'iana' }, + 'application/toml': { compressible: !0, extensions: ['toml'] }, + 'application/trickle-ice-sdpfrag': { source: 'iana' }, + 'application/trig': { source: 'iana', extensions: ['trig'] }, + 'application/ttml+xml': { source: 'iana', compressible: !0, extensions: ['ttml'] }, + 'application/tve-trigger': { source: 'iana' }, + 'application/tzif': { source: 'iana' }, + 'application/tzif-leap': { source: 'iana' }, + 'application/ubjson': { compressible: !1, extensions: ['ubj'] }, + 'application/ulpfec': { source: 'iana' }, + 'application/urc-grpsheet+xml': { source: 'iana', compressible: !0 }, + 'application/urc-ressheet+xml': { source: 'iana', compressible: !0, extensions: ['rsheet'] }, + 'application/urc-targetdesc+xml': { source: 'iana', compressible: !0, extensions: ['td'] }, + 'application/urc-uisocketdesc+xml': { source: 'iana', compressible: !0 }, + 'application/vcard+json': { source: 'iana', compressible: !0 }, + 'application/vcard+xml': { source: 'iana', compressible: !0 }, + 'application/vemmi': { source: 'iana' }, + 'application/vividence.scriptfile': { source: 'apache' }, + 'application/vnd.1000minds.decision-model+xml': { source: 'iana', compressible: !0, extensions: ['1km'] }, + 'application/vnd.3gpp-prose+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp-prose-pc3ch+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp-v2x-local-service-information': { source: 'iana' }, + 'application/vnd.3gpp.5gnas': { source: 'iana' }, + 'application/vnd.3gpp.access-transfer-events+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp.bsf+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp.gmop+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp.gtpc': { source: 'iana' }, + 'application/vnd.3gpp.interworking-data': { source: 'iana' }, + 'application/vnd.3gpp.lpp': { source: 'iana' }, + 'application/vnd.3gpp.mc-signalling-ear': { source: 'iana' }, + 'application/vnd.3gpp.mcdata-affiliation-command+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp.mcdata-info+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp.mcdata-payload': { source: 'iana' }, + 'application/vnd.3gpp.mcdata-service-config+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp.mcdata-signalling': { source: 'iana' }, + 'application/vnd.3gpp.mcdata-ue-config+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp.mcdata-user-profile+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp.mcptt-affiliation-command+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp.mcptt-floor-request+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp.mcptt-info+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp.mcptt-location-info+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp.mcptt-mbms-usage-info+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp.mcptt-service-config+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp.mcptt-signed+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp.mcptt-ue-config+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp.mcptt-ue-init-config+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp.mcptt-user-profile+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp.mcvideo-affiliation-command+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp.mcvideo-affiliation-info+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp.mcvideo-info+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp.mcvideo-location-info+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp.mcvideo-mbms-usage-info+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp.mcvideo-service-config+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp.mcvideo-transmission-request+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp.mcvideo-ue-config+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp.mcvideo-user-profile+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp.mid-call+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp.ngap': { source: 'iana' }, + 'application/vnd.3gpp.pfcp': { source: 'iana' }, + 'application/vnd.3gpp.pic-bw-large': { source: 'iana', extensions: ['plb'] }, + 'application/vnd.3gpp.pic-bw-small': { source: 'iana', extensions: ['psb'] }, + 'application/vnd.3gpp.pic-bw-var': { source: 'iana', extensions: ['pvb'] }, + 'application/vnd.3gpp.s1ap': { source: 'iana' }, + 'application/vnd.3gpp.sms': { source: 'iana' }, + 'application/vnd.3gpp.sms+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp.srvcc-ext+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp.srvcc-info+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp.state-and-event-info+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp.ussd+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp2.bcmcsinfo+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.3gpp2.sms': { source: 'iana' }, + 'application/vnd.3gpp2.tcap': { source: 'iana', extensions: ['tcap'] }, + 'application/vnd.3lightssoftware.imagescal': { source: 'iana' }, + 'application/vnd.3m.post-it-notes': { source: 'iana', extensions: ['pwn'] }, + 'application/vnd.accpac.simply.aso': { source: 'iana', extensions: ['aso'] }, + 'application/vnd.accpac.simply.imp': { source: 'iana', extensions: ['imp'] }, + 'application/vnd.acucobol': { source: 'iana', extensions: ['acu'] }, + 'application/vnd.acucorp': { source: 'iana', extensions: ['atc', 'acutc'] }, + 'application/vnd.adobe.air-application-installer-package+zip': { + source: 'apache', + compressible: !1, + extensions: ['air'], + }, + 'application/vnd.adobe.flash.movie': { source: 'iana' }, + 'application/vnd.adobe.formscentral.fcdt': { source: 'iana', extensions: ['fcdt'] }, + 'application/vnd.adobe.fxp': { source: 'iana', extensions: ['fxp', 'fxpl'] }, + 'application/vnd.adobe.partial-upload': { source: 'iana' }, + 'application/vnd.adobe.xdp+xml': { source: 'iana', compressible: !0, extensions: ['xdp'] }, + 'application/vnd.adobe.xfdf': { source: 'iana', extensions: ['xfdf'] }, + 'application/vnd.aether.imp': { source: 'iana' }, + 'application/vnd.afpc.afplinedata': { source: 'iana' }, + 'application/vnd.afpc.afplinedata-pagedef': { source: 'iana' }, + 'application/vnd.afpc.cmoca-cmresource': { source: 'iana' }, + 'application/vnd.afpc.foca-charset': { source: 'iana' }, + 'application/vnd.afpc.foca-codedfont': { source: 'iana' }, + 'application/vnd.afpc.foca-codepage': { source: 'iana' }, + 'application/vnd.afpc.modca': { source: 'iana' }, + 'application/vnd.afpc.modca-cmtable': { source: 'iana' }, + 'application/vnd.afpc.modca-formdef': { source: 'iana' }, + 'application/vnd.afpc.modca-mediummap': { source: 'iana' }, + 'application/vnd.afpc.modca-objectcontainer': { source: 'iana' }, + 'application/vnd.afpc.modca-overlay': { source: 'iana' }, + 'application/vnd.afpc.modca-pagesegment': { source: 'iana' }, + 'application/vnd.age': { source: 'iana', extensions: ['age'] }, + 'application/vnd.ah-barcode': { source: 'iana' }, + 'application/vnd.ahead.space': { source: 'iana', extensions: ['ahead'] }, + 'application/vnd.airzip.filesecure.azf': { source: 'iana', extensions: ['azf'] }, + 'application/vnd.airzip.filesecure.azs': { source: 'iana', extensions: ['azs'] }, + 'application/vnd.amadeus+json': { source: 'iana', compressible: !0 }, + 'application/vnd.amazon.ebook': { source: 'apache', extensions: ['azw'] }, + 'application/vnd.amazon.mobi8-ebook': { source: 'iana' }, + 'application/vnd.americandynamics.acc': { source: 'iana', extensions: ['acc'] }, + 'application/vnd.amiga.ami': { source: 'iana', extensions: ['ami'] }, + 'application/vnd.amundsen.maze+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.android.ota': { source: 'iana' }, + 'application/vnd.android.package-archive': { source: 'apache', compressible: !1, extensions: ['apk'] }, + 'application/vnd.anki': { source: 'iana' }, + 'application/vnd.anser-web-certificate-issue-initiation': { source: 'iana', extensions: ['cii'] }, + 'application/vnd.anser-web-funds-transfer-initiation': { source: 'apache', extensions: ['fti'] }, + 'application/vnd.antix.game-component': { source: 'iana', extensions: ['atx'] }, + 'application/vnd.apache.arrow.file': { source: 'iana' }, + 'application/vnd.apache.arrow.stream': { source: 'iana' }, + 'application/vnd.apache.thrift.binary': { source: 'iana' }, + 'application/vnd.apache.thrift.compact': { source: 'iana' }, + 'application/vnd.apache.thrift.json': { source: 'iana' }, + 'application/vnd.api+json': { source: 'iana', compressible: !0 }, + 'application/vnd.aplextor.warrp+json': { source: 'iana', compressible: !0 }, + 'application/vnd.apothekende.reservation+json': { source: 'iana', compressible: !0 }, + 'application/vnd.apple.installer+xml': { source: 'iana', compressible: !0, extensions: ['mpkg'] }, + 'application/vnd.apple.keynote': { source: 'iana', extensions: ['key'] }, + 'application/vnd.apple.mpegurl': { source: 'iana', extensions: ['m3u8'] }, + 'application/vnd.apple.numbers': { source: 'iana', extensions: ['numbers'] }, + 'application/vnd.apple.pages': { source: 'iana', extensions: ['pages'] }, + 'application/vnd.apple.pkpass': { compressible: !1, extensions: ['pkpass'] }, + 'application/vnd.arastra.swi': { source: 'iana' }, + 'application/vnd.aristanetworks.swi': { source: 'iana', extensions: ['swi'] }, + 'application/vnd.artisan+json': { source: 'iana', compressible: !0 }, + 'application/vnd.artsquare': { source: 'iana' }, + 'application/vnd.astraea-software.iota': { source: 'iana', extensions: ['iota'] }, + 'application/vnd.audiograph': { source: 'iana', extensions: ['aep'] }, + 'application/vnd.autopackage': { source: 'iana' }, + 'application/vnd.avalon+json': { source: 'iana', compressible: !0 }, + 'application/vnd.avistar+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.balsamiq.bmml+xml': { source: 'iana', compressible: !0, extensions: ['bmml'] }, + 'application/vnd.balsamiq.bmpr': { source: 'iana' }, + 'application/vnd.banana-accounting': { source: 'iana' }, + 'application/vnd.bbf.usp.error': { source: 'iana' }, + 'application/vnd.bbf.usp.msg': { source: 'iana' }, + 'application/vnd.bbf.usp.msg+json': { source: 'iana', compressible: !0 }, + 'application/vnd.bekitzur-stech+json': { source: 'iana', compressible: !0 }, + 'application/vnd.bint.med-content': { source: 'iana' }, + 'application/vnd.biopax.rdf+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.blink-idb-value-wrapper': { source: 'iana' }, + 'application/vnd.blueice.multipass': { source: 'iana', extensions: ['mpm'] }, + 'application/vnd.bluetooth.ep.oob': { source: 'iana' }, + 'application/vnd.bluetooth.le.oob': { source: 'iana' }, + 'application/vnd.bmi': { source: 'iana', extensions: ['bmi'] }, + 'application/vnd.bpf': { source: 'iana' }, + 'application/vnd.bpf3': { source: 'iana' }, + 'application/vnd.businessobjects': { source: 'iana', extensions: ['rep'] }, + 'application/vnd.byu.uapi+json': { source: 'iana', compressible: !0 }, + 'application/vnd.cab-jscript': { source: 'iana' }, + 'application/vnd.canon-cpdl': { source: 'iana' }, + 'application/vnd.canon-lips': { source: 'iana' }, + 'application/vnd.capasystems-pg+json': { source: 'iana', compressible: !0 }, + 'application/vnd.cendio.thinlinc.clientconf': { source: 'iana' }, + 'application/vnd.century-systems.tcp_stream': { source: 'iana' }, + 'application/vnd.chemdraw+xml': { source: 'iana', compressible: !0, extensions: ['cdxml'] }, + 'application/vnd.chess-pgn': { source: 'iana' }, + 'application/vnd.chipnuts.karaoke-mmd': { source: 'iana', extensions: ['mmd'] }, + 'application/vnd.ciedi': { source: 'iana' }, + 'application/vnd.cinderella': { source: 'iana', extensions: ['cdy'] }, + 'application/vnd.cirpack.isdn-ext': { source: 'iana' }, + 'application/vnd.citationstyles.style+xml': { source: 'iana', compressible: !0, extensions: ['csl'] }, + 'application/vnd.claymore': { source: 'iana', extensions: ['cla'] }, + 'application/vnd.cloanto.rp9': { source: 'iana', extensions: ['rp9'] }, + 'application/vnd.clonk.c4group': { source: 'iana', extensions: ['c4g', 'c4d', 'c4f', 'c4p', 'c4u'] }, + 'application/vnd.cluetrust.cartomobile-config': { source: 'iana', extensions: ['c11amc'] }, + 'application/vnd.cluetrust.cartomobile-config-pkg': { source: 'iana', extensions: ['c11amz'] }, + 'application/vnd.coffeescript': { source: 'iana' }, + 'application/vnd.collabio.xodocuments.document': { source: 'iana' }, + 'application/vnd.collabio.xodocuments.document-template': { source: 'iana' }, + 'application/vnd.collabio.xodocuments.presentation': { source: 'iana' }, + 'application/vnd.collabio.xodocuments.presentation-template': { source: 'iana' }, + 'application/vnd.collabio.xodocuments.spreadsheet': { source: 'iana' }, + 'application/vnd.collabio.xodocuments.spreadsheet-template': { source: 'iana' }, + 'application/vnd.collection+json': { source: 'iana', compressible: !0 }, + 'application/vnd.collection.doc+json': { source: 'iana', compressible: !0 }, + 'application/vnd.collection.next+json': { source: 'iana', compressible: !0 }, + 'application/vnd.comicbook+zip': { source: 'iana', compressible: !1 }, + 'application/vnd.comicbook-rar': { source: 'iana' }, + 'application/vnd.commerce-battelle': { source: 'iana' }, + 'application/vnd.commonspace': { source: 'iana', extensions: ['csp'] }, + 'application/vnd.contact.cmsg': { source: 'iana', extensions: ['cdbcmsg'] }, + 'application/vnd.coreos.ignition+json': { source: 'iana', compressible: !0 }, + 'application/vnd.cosmocaller': { source: 'iana', extensions: ['cmc'] }, + 'application/vnd.crick.clicker': { source: 'iana', extensions: ['clkx'] }, + 'application/vnd.crick.clicker.keyboard': { source: 'iana', extensions: ['clkk'] }, + 'application/vnd.crick.clicker.palette': { source: 'iana', extensions: ['clkp'] }, + 'application/vnd.crick.clicker.template': { source: 'iana', extensions: ['clkt'] }, + 'application/vnd.crick.clicker.wordbank': { source: 'iana', extensions: ['clkw'] }, + 'application/vnd.criticaltools.wbs+xml': { source: 'iana', compressible: !0, extensions: ['wbs'] }, + 'application/vnd.cryptii.pipe+json': { source: 'iana', compressible: !0 }, + 'application/vnd.crypto-shade-file': { source: 'iana' }, + 'application/vnd.cryptomator.encrypted': { source: 'iana' }, + 'application/vnd.cryptomator.vault': { source: 'iana' }, + 'application/vnd.ctc-posml': { source: 'iana', extensions: ['pml'] }, + 'application/vnd.ctct.ws+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.cups-pdf': { source: 'iana' }, + 'application/vnd.cups-postscript': { source: 'iana' }, + 'application/vnd.cups-ppd': { source: 'iana', extensions: ['ppd'] }, + 'application/vnd.cups-raster': { source: 'iana' }, + 'application/vnd.cups-raw': { source: 'iana' }, + 'application/vnd.curl': { source: 'iana' }, + 'application/vnd.curl.car': { source: 'apache', extensions: ['car'] }, + 'application/vnd.curl.pcurl': { source: 'apache', extensions: ['pcurl'] }, + 'application/vnd.cyan.dean.root+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.cybank': { source: 'iana' }, + 'application/vnd.cyclonedx+json': { source: 'iana', compressible: !0 }, + 'application/vnd.cyclonedx+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.d2l.coursepackage1p0+zip': { source: 'iana', compressible: !1 }, + 'application/vnd.d3m-dataset': { source: 'iana' }, + 'application/vnd.d3m-problem': { source: 'iana' }, + 'application/vnd.dart': { source: 'iana', compressible: !0, extensions: ['dart'] }, + 'application/vnd.data-vision.rdz': { source: 'iana', extensions: ['rdz'] }, + 'application/vnd.datapackage+json': { source: 'iana', compressible: !0 }, + 'application/vnd.dataresource+json': { source: 'iana', compressible: !0 }, + 'application/vnd.dbf': { source: 'iana', extensions: ['dbf'] }, + 'application/vnd.debian.binary-package': { source: 'iana' }, + 'application/vnd.dece.data': { source: 'iana', extensions: ['uvf', 'uvvf', 'uvd', 'uvvd'] }, + 'application/vnd.dece.ttml+xml': { source: 'iana', compressible: !0, extensions: ['uvt', 'uvvt'] }, + 'application/vnd.dece.unspecified': { source: 'iana', extensions: ['uvx', 'uvvx'] }, + 'application/vnd.dece.zip': { source: 'iana', extensions: ['uvz', 'uvvz'] }, + 'application/vnd.denovo.fcselayout-link': { source: 'iana', extensions: ['fe_launch'] }, + 'application/vnd.desmume.movie': { source: 'iana' }, + 'application/vnd.dir-bi.plate-dl-nosuffix': { source: 'iana' }, + 'application/vnd.dm.delegation+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.dna': { source: 'iana', extensions: ['dna'] }, + 'application/vnd.document+json': { source: 'iana', compressible: !0 }, + 'application/vnd.dolby.mlp': { source: 'apache', extensions: ['mlp'] }, + 'application/vnd.dolby.mobile.1': { source: 'iana' }, + 'application/vnd.dolby.mobile.2': { source: 'iana' }, + 'application/vnd.doremir.scorecloud-binary-document': { source: 'iana' }, + 'application/vnd.dpgraph': { source: 'iana', extensions: ['dpg'] }, + 'application/vnd.dreamfactory': { source: 'iana', extensions: ['dfac'] }, + 'application/vnd.drive+json': { source: 'iana', compressible: !0 }, + 'application/vnd.ds-keypoint': { source: 'apache', extensions: ['kpxx'] }, + 'application/vnd.dtg.local': { source: 'iana' }, + 'application/vnd.dtg.local.flash': { source: 'iana' }, + 'application/vnd.dtg.local.html': { source: 'iana' }, + 'application/vnd.dvb.ait': { source: 'iana', extensions: ['ait'] }, + 'application/vnd.dvb.dvbisl+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.dvb.dvbj': { source: 'iana' }, + 'application/vnd.dvb.esgcontainer': { source: 'iana' }, + 'application/vnd.dvb.ipdcdftnotifaccess': { source: 'iana' }, + 'application/vnd.dvb.ipdcesgaccess': { source: 'iana' }, + 'application/vnd.dvb.ipdcesgaccess2': { source: 'iana' }, + 'application/vnd.dvb.ipdcesgpdd': { source: 'iana' }, + 'application/vnd.dvb.ipdcroaming': { source: 'iana' }, + 'application/vnd.dvb.iptv.alfec-base': { source: 'iana' }, + 'application/vnd.dvb.iptv.alfec-enhancement': { source: 'iana' }, + 'application/vnd.dvb.notif-aggregate-root+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.dvb.notif-container+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.dvb.notif-generic+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.dvb.notif-ia-msglist+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.dvb.notif-ia-registration-request+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.dvb.notif-ia-registration-response+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.dvb.notif-init+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.dvb.pfr': { source: 'iana' }, + 'application/vnd.dvb.service': { source: 'iana', extensions: ['svc'] }, + 'application/vnd.dxr': { source: 'iana' }, + 'application/vnd.dynageo': { source: 'iana', extensions: ['geo'] }, + 'application/vnd.dzr': { source: 'iana' }, + 'application/vnd.easykaraoke.cdgdownload': { source: 'iana' }, + 'application/vnd.ecdis-update': { source: 'iana' }, + 'application/vnd.ecip.rlp': { source: 'iana' }, + 'application/vnd.eclipse.ditto+json': { source: 'iana', compressible: !0 }, + 'application/vnd.ecowin.chart': { source: 'iana', extensions: ['mag'] }, + 'application/vnd.ecowin.filerequest': { source: 'iana' }, + 'application/vnd.ecowin.fileupdate': { source: 'iana' }, + 'application/vnd.ecowin.series': { source: 'iana' }, + 'application/vnd.ecowin.seriesrequest': { source: 'iana' }, + 'application/vnd.ecowin.seriesupdate': { source: 'iana' }, + 'application/vnd.efi.img': { source: 'iana' }, + 'application/vnd.efi.iso': { source: 'iana' }, + 'application/vnd.emclient.accessrequest+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.enliven': { source: 'iana', extensions: ['nml'] }, + 'application/vnd.enphase.envoy': { source: 'iana' }, + 'application/vnd.eprints.data+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.epson.esf': { source: 'iana', extensions: ['esf'] }, + 'application/vnd.epson.msf': { source: 'iana', extensions: ['msf'] }, + 'application/vnd.epson.quickanime': { source: 'iana', extensions: ['qam'] }, + 'application/vnd.epson.salt': { source: 'iana', extensions: ['slt'] }, + 'application/vnd.epson.ssf': { source: 'iana', extensions: ['ssf'] }, + 'application/vnd.ericsson.quickcall': { source: 'iana' }, + 'application/vnd.espass-espass+zip': { source: 'iana', compressible: !1 }, + 'application/vnd.eszigno3+xml': { source: 'iana', compressible: !0, extensions: ['es3', 'et3'] }, + 'application/vnd.etsi.aoc+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.etsi.asic-e+zip': { source: 'iana', compressible: !1 }, + 'application/vnd.etsi.asic-s+zip': { source: 'iana', compressible: !1 }, + 'application/vnd.etsi.cug+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.etsi.iptvcommand+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.etsi.iptvdiscovery+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.etsi.iptvprofile+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.etsi.iptvsad-bc+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.etsi.iptvsad-cod+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.etsi.iptvsad-npvr+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.etsi.iptvservice+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.etsi.iptvsync+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.etsi.iptvueprofile+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.etsi.mcid+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.etsi.mheg5': { source: 'iana' }, + 'application/vnd.etsi.overload-control-policy-dataset+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.etsi.pstn+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.etsi.sci+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.etsi.simservs+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.etsi.timestamp-token': { source: 'iana' }, + 'application/vnd.etsi.tsl+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.etsi.tsl.der': { source: 'iana' }, + 'application/vnd.eu.kasparian.car+json': { source: 'iana', compressible: !0 }, + 'application/vnd.eudora.data': { source: 'iana' }, + 'application/vnd.evolv.ecig.profile': { source: 'iana' }, + 'application/vnd.evolv.ecig.settings': { source: 'iana' }, + 'application/vnd.evolv.ecig.theme': { source: 'iana' }, + 'application/vnd.exstream-empower+zip': { source: 'iana', compressible: !1 }, + 'application/vnd.exstream-package': { source: 'iana' }, + 'application/vnd.ezpix-album': { source: 'iana', extensions: ['ez2'] }, + 'application/vnd.ezpix-package': { source: 'iana', extensions: ['ez3'] }, + 'application/vnd.f-secure.mobile': { source: 'iana' }, + 'application/vnd.familysearch.gedcom+zip': { source: 'iana', compressible: !1 }, + 'application/vnd.fastcopy-disk-image': { source: 'iana' }, + 'application/vnd.fdf': { source: 'iana', extensions: ['fdf'] }, + 'application/vnd.fdsn.mseed': { source: 'iana', extensions: ['mseed'] }, + 'application/vnd.fdsn.seed': { source: 'iana', extensions: ['seed', 'dataless'] }, + 'application/vnd.ffsns': { source: 'iana' }, + 'application/vnd.ficlab.flb+zip': { source: 'iana', compressible: !1 }, + 'application/vnd.filmit.zfc': { source: 'iana' }, + 'application/vnd.fints': { source: 'iana' }, + 'application/vnd.firemonkeys.cloudcell': { source: 'iana' }, + 'application/vnd.flographit': { source: 'iana', extensions: ['gph'] }, + 'application/vnd.fluxtime.clip': { source: 'iana', extensions: ['ftc'] }, + 'application/vnd.font-fontforge-sfd': { source: 'iana' }, + 'application/vnd.framemaker': { source: 'iana', extensions: ['fm', 'frame', 'maker', 'book'] }, + 'application/vnd.frogans.fnc': { source: 'iana', extensions: ['fnc'] }, + 'application/vnd.frogans.ltf': { source: 'iana', extensions: ['ltf'] }, + 'application/vnd.fsc.weblaunch': { source: 'iana', extensions: ['fsc'] }, + 'application/vnd.fujifilm.fb.docuworks': { source: 'iana' }, + 'application/vnd.fujifilm.fb.docuworks.binder': { source: 'iana' }, + 'application/vnd.fujifilm.fb.docuworks.container': { source: 'iana' }, + 'application/vnd.fujifilm.fb.jfi+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.fujitsu.oasys': { source: 'iana', extensions: ['oas'] }, + 'application/vnd.fujitsu.oasys2': { source: 'iana', extensions: ['oa2'] }, + 'application/vnd.fujitsu.oasys3': { source: 'iana', extensions: ['oa3'] }, + 'application/vnd.fujitsu.oasysgp': { source: 'iana', extensions: ['fg5'] }, + 'application/vnd.fujitsu.oasysprs': { source: 'iana', extensions: ['bh2'] }, + 'application/vnd.fujixerox.art-ex': { source: 'iana' }, + 'application/vnd.fujixerox.art4': { source: 'iana' }, + 'application/vnd.fujixerox.ddd': { source: 'iana', extensions: ['ddd'] }, + 'application/vnd.fujixerox.docuworks': { source: 'iana', extensions: ['xdw'] }, + 'application/vnd.fujixerox.docuworks.binder': { source: 'iana', extensions: ['xbd'] }, + 'application/vnd.fujixerox.docuworks.container': { source: 'iana' }, + 'application/vnd.fujixerox.hbpl': { source: 'iana' }, + 'application/vnd.fut-misnet': { source: 'iana' }, + 'application/vnd.futoin+cbor': { source: 'iana' }, + 'application/vnd.futoin+json': { source: 'iana', compressible: !0 }, + 'application/vnd.fuzzysheet': { source: 'iana', extensions: ['fzs'] }, + 'application/vnd.genomatix.tuxedo': { source: 'iana', extensions: ['txd'] }, + 'application/vnd.gentics.grd+json': { source: 'iana', compressible: !0 }, + 'application/vnd.geo+json': { source: 'iana', compressible: !0 }, + 'application/vnd.geocube+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.geogebra.file': { source: 'iana', extensions: ['ggb'] }, + 'application/vnd.geogebra.slides': { source: 'iana' }, + 'application/vnd.geogebra.tool': { source: 'iana', extensions: ['ggt'] }, + 'application/vnd.geometry-explorer': { source: 'iana', extensions: ['gex', 'gre'] }, + 'application/vnd.geonext': { source: 'iana', extensions: ['gxt'] }, + 'application/vnd.geoplan': { source: 'iana', extensions: ['g2w'] }, + 'application/vnd.geospace': { source: 'iana', extensions: ['g3w'] }, + 'application/vnd.gerber': { source: 'iana' }, + 'application/vnd.globalplatform.card-content-mgt': { source: 'iana' }, + 'application/vnd.globalplatform.card-content-mgt-response': { source: 'iana' }, + 'application/vnd.gmx': { source: 'iana', extensions: ['gmx'] }, + 'application/vnd.google-apps.document': { compressible: !1, extensions: ['gdoc'] }, + 'application/vnd.google-apps.presentation': { compressible: !1, extensions: ['gslides'] }, + 'application/vnd.google-apps.spreadsheet': { compressible: !1, extensions: ['gsheet'] }, + 'application/vnd.google-earth.kml+xml': { source: 'iana', compressible: !0, extensions: ['kml'] }, + 'application/vnd.google-earth.kmz': { source: 'iana', compressible: !1, extensions: ['kmz'] }, + 'application/vnd.gov.sk.e-form+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.gov.sk.e-form+zip': { source: 'iana', compressible: !1 }, + 'application/vnd.gov.sk.xmldatacontainer+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.grafeq': { source: 'iana', extensions: ['gqf', 'gqs'] }, + 'application/vnd.gridmp': { source: 'iana' }, + 'application/vnd.groove-account': { source: 'iana', extensions: ['gac'] }, + 'application/vnd.groove-help': { source: 'iana', extensions: ['ghf'] }, + 'application/vnd.groove-identity-message': { source: 'iana', extensions: ['gim'] }, + 'application/vnd.groove-injector': { source: 'iana', extensions: ['grv'] }, + 'application/vnd.groove-tool-message': { source: 'iana', extensions: ['gtm'] }, + 'application/vnd.groove-tool-template': { source: 'iana', extensions: ['tpl'] }, + 'application/vnd.groove-vcard': { source: 'iana', extensions: ['vcg'] }, + 'application/vnd.hal+json': { source: 'iana', compressible: !0 }, + 'application/vnd.hal+xml': { source: 'iana', compressible: !0, extensions: ['hal'] }, + 'application/vnd.handheld-entertainment+xml': { source: 'iana', compressible: !0, extensions: ['zmm'] }, + 'application/vnd.hbci': { source: 'iana', extensions: ['hbci'] }, + 'application/vnd.hc+json': { source: 'iana', compressible: !0 }, + 'application/vnd.hcl-bireports': { source: 'iana' }, + 'application/vnd.hdt': { source: 'iana' }, + 'application/vnd.heroku+json': { source: 'iana', compressible: !0 }, + 'application/vnd.hhe.lesson-player': { source: 'iana', extensions: ['les'] }, + 'application/vnd.hl7cda+xml': { source: 'iana', charset: 'UTF-8', compressible: !0 }, + 'application/vnd.hl7v2+xml': { source: 'iana', charset: 'UTF-8', compressible: !0 }, + 'application/vnd.hp-hpgl': { source: 'iana', extensions: ['hpgl'] }, + 'application/vnd.hp-hpid': { source: 'iana', extensions: ['hpid'] }, + 'application/vnd.hp-hps': { source: 'iana', extensions: ['hps'] }, + 'application/vnd.hp-jlyt': { source: 'iana', extensions: ['jlt'] }, + 'application/vnd.hp-pcl': { source: 'iana', extensions: ['pcl'] }, + 'application/vnd.hp-pclxl': { source: 'iana', extensions: ['pclxl'] }, + 'application/vnd.httphone': { source: 'iana' }, + 'application/vnd.hydrostatix.sof-data': { source: 'iana', extensions: ['sfd-hdstx'] }, + 'application/vnd.hyper+json': { source: 'iana', compressible: !0 }, + 'application/vnd.hyper-item+json': { source: 'iana', compressible: !0 }, + 'application/vnd.hyperdrive+json': { source: 'iana', compressible: !0 }, + 'application/vnd.hzn-3d-crossword': { source: 'iana' }, + 'application/vnd.ibm.afplinedata': { source: 'iana' }, + 'application/vnd.ibm.electronic-media': { source: 'iana' }, + 'application/vnd.ibm.minipay': { source: 'iana', extensions: ['mpy'] }, + 'application/vnd.ibm.modcap': { source: 'iana', extensions: ['afp', 'listafp', 'list3820'] }, + 'application/vnd.ibm.rights-management': { source: 'iana', extensions: ['irm'] }, + 'application/vnd.ibm.secure-container': { source: 'iana', extensions: ['sc'] }, + 'application/vnd.iccprofile': { source: 'iana', extensions: ['icc', 'icm'] }, + 'application/vnd.ieee.1905': { source: 'iana' }, + 'application/vnd.igloader': { source: 'iana', extensions: ['igl'] }, + 'application/vnd.imagemeter.folder+zip': { source: 'iana', compressible: !1 }, + 'application/vnd.imagemeter.image+zip': { source: 'iana', compressible: !1 }, + 'application/vnd.immervision-ivp': { source: 'iana', extensions: ['ivp'] }, + 'application/vnd.immervision-ivu': { source: 'iana', extensions: ['ivu'] }, + 'application/vnd.ims.imsccv1p1': { source: 'iana' }, + 'application/vnd.ims.imsccv1p2': { source: 'iana' }, + 'application/vnd.ims.imsccv1p3': { source: 'iana' }, + 'application/vnd.ims.lis.v2.result+json': { source: 'iana', compressible: !0 }, + 'application/vnd.ims.lti.v2.toolconsumerprofile+json': { source: 'iana', compressible: !0 }, + 'application/vnd.ims.lti.v2.toolproxy+json': { source: 'iana', compressible: !0 }, + 'application/vnd.ims.lti.v2.toolproxy.id+json': { source: 'iana', compressible: !0 }, + 'application/vnd.ims.lti.v2.toolsettings+json': { source: 'iana', compressible: !0 }, + 'application/vnd.ims.lti.v2.toolsettings.simple+json': { source: 'iana', compressible: !0 }, + 'application/vnd.informedcontrol.rms+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.informix-visionary': { source: 'iana' }, + 'application/vnd.infotech.project': { source: 'iana' }, + 'application/vnd.infotech.project+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.innopath.wamp.notification': { source: 'iana' }, + 'application/vnd.insors.igm': { source: 'iana', extensions: ['igm'] }, + 'application/vnd.intercon.formnet': { source: 'iana', extensions: ['xpw', 'xpx'] }, + 'application/vnd.intergeo': { source: 'iana', extensions: ['i2g'] }, + 'application/vnd.intertrust.digibox': { source: 'iana' }, + 'application/vnd.intertrust.nncp': { source: 'iana' }, + 'application/vnd.intu.qbo': { source: 'iana', extensions: ['qbo'] }, + 'application/vnd.intu.qfx': { source: 'iana', extensions: ['qfx'] }, + 'application/vnd.iptc.g2.catalogitem+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.iptc.g2.conceptitem+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.iptc.g2.knowledgeitem+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.iptc.g2.newsitem+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.iptc.g2.newsmessage+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.iptc.g2.packageitem+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.iptc.g2.planningitem+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.ipunplugged.rcprofile': { source: 'iana', extensions: ['rcprofile'] }, + 'application/vnd.irepository.package+xml': { source: 'iana', compressible: !0, extensions: ['irp'] }, + 'application/vnd.is-xpr': { source: 'iana', extensions: ['xpr'] }, + 'application/vnd.isac.fcs': { source: 'iana', extensions: ['fcs'] }, + 'application/vnd.iso11783-10+zip': { source: 'iana', compressible: !1 }, + 'application/vnd.jam': { source: 'iana', extensions: ['jam'] }, + 'application/vnd.japannet-directory-service': { source: 'iana' }, + 'application/vnd.japannet-jpnstore-wakeup': { source: 'iana' }, + 'application/vnd.japannet-payment-wakeup': { source: 'iana' }, + 'application/vnd.japannet-registration': { source: 'iana' }, + 'application/vnd.japannet-registration-wakeup': { source: 'iana' }, + 'application/vnd.japannet-setstore-wakeup': { source: 'iana' }, + 'application/vnd.japannet-verification': { source: 'iana' }, + 'application/vnd.japannet-verification-wakeup': { source: 'iana' }, + 'application/vnd.jcp.javame.midlet-rms': { source: 'iana', extensions: ['rms'] }, + 'application/vnd.jisp': { source: 'iana', extensions: ['jisp'] }, + 'application/vnd.joost.joda-archive': { source: 'iana', extensions: ['joda'] }, + 'application/vnd.jsk.isdn-ngn': { source: 'iana' }, + 'application/vnd.kahootz': { source: 'iana', extensions: ['ktz', 'ktr'] }, + 'application/vnd.kde.karbon': { source: 'iana', extensions: ['karbon'] }, + 'application/vnd.kde.kchart': { source: 'iana', extensions: ['chrt'] }, + 'application/vnd.kde.kformula': { source: 'iana', extensions: ['kfo'] }, + 'application/vnd.kde.kivio': { source: 'iana', extensions: ['flw'] }, + 'application/vnd.kde.kontour': { source: 'iana', extensions: ['kon'] }, + 'application/vnd.kde.kpresenter': { source: 'iana', extensions: ['kpr', 'kpt'] }, + 'application/vnd.kde.kspread': { source: 'iana', extensions: ['ksp'] }, + 'application/vnd.kde.kword': { source: 'iana', extensions: ['kwd', 'kwt'] }, + 'application/vnd.kenameaapp': { source: 'iana', extensions: ['htke'] }, + 'application/vnd.kidspiration': { source: 'iana', extensions: ['kia'] }, + 'application/vnd.kinar': { source: 'iana', extensions: ['kne', 'knp'] }, + 'application/vnd.koan': { source: 'iana', extensions: ['skp', 'skd', 'skt', 'skm'] }, + 'application/vnd.kodak-descriptor': { source: 'iana', extensions: ['sse'] }, + 'application/vnd.las': { source: 'iana' }, + 'application/vnd.las.las+json': { source: 'iana', compressible: !0 }, + 'application/vnd.las.las+xml': { source: 'iana', compressible: !0, extensions: ['lasxml'] }, + 'application/vnd.laszip': { source: 'iana' }, + 'application/vnd.leap+json': { source: 'iana', compressible: !0 }, + 'application/vnd.liberty-request+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.llamagraphics.life-balance.desktop': { source: 'iana', extensions: ['lbd'] }, + 'application/vnd.llamagraphics.life-balance.exchange+xml': { + source: 'iana', + compressible: !0, + extensions: ['lbe'], + }, + 'application/vnd.logipipe.circuit+zip': { source: 'iana', compressible: !1 }, + 'application/vnd.loom': { source: 'iana' }, + 'application/vnd.lotus-1-2-3': { source: 'iana', extensions: ['123'] }, + 'application/vnd.lotus-approach': { source: 'iana', extensions: ['apr'] }, + 'application/vnd.lotus-freelance': { source: 'iana', extensions: ['pre'] }, + 'application/vnd.lotus-notes': { source: 'iana', extensions: ['nsf'] }, + 'application/vnd.lotus-organizer': { source: 'iana', extensions: ['org'] }, + 'application/vnd.lotus-screencam': { source: 'iana', extensions: ['scm'] }, + 'application/vnd.lotus-wordpro': { source: 'iana', extensions: ['lwp'] }, + 'application/vnd.macports.portpkg': { source: 'iana', extensions: ['portpkg'] }, + 'application/vnd.mapbox-vector-tile': { source: 'iana', extensions: ['mvt'] }, + 'application/vnd.marlin.drm.actiontoken+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.marlin.drm.conftoken+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.marlin.drm.license+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.marlin.drm.mdcf': { source: 'iana' }, + 'application/vnd.mason+json': { source: 'iana', compressible: !0 }, + 'application/vnd.maxar.archive.3tz+zip': { source: 'iana', compressible: !1 }, + 'application/vnd.maxmind.maxmind-db': { source: 'iana' }, + 'application/vnd.mcd': { source: 'iana', extensions: ['mcd'] }, + 'application/vnd.medcalcdata': { source: 'iana', extensions: ['mc1'] }, + 'application/vnd.mediastation.cdkey': { source: 'iana', extensions: ['cdkey'] }, + 'application/vnd.meridian-slingshot': { source: 'iana' }, + 'application/vnd.mfer': { source: 'iana', extensions: ['mwf'] }, + 'application/vnd.mfmp': { source: 'iana', extensions: ['mfm'] }, + 'application/vnd.micro+json': { source: 'iana', compressible: !0 }, + 'application/vnd.micrografx.flo': { source: 'iana', extensions: ['flo'] }, + 'application/vnd.micrografx.igx': { source: 'iana', extensions: ['igx'] }, + 'application/vnd.microsoft.portable-executable': { source: 'iana' }, + 'application/vnd.microsoft.windows.thumbnail-cache': { source: 'iana' }, + 'application/vnd.miele+json': { source: 'iana', compressible: !0 }, + 'application/vnd.mif': { source: 'iana', extensions: ['mif'] }, + 'application/vnd.minisoft-hp3000-save': { source: 'iana' }, + 'application/vnd.mitsubishi.misty-guard.trustweb': { source: 'iana' }, + 'application/vnd.mobius.daf': { source: 'iana', extensions: ['daf'] }, + 'application/vnd.mobius.dis': { source: 'iana', extensions: ['dis'] }, + 'application/vnd.mobius.mbk': { source: 'iana', extensions: ['mbk'] }, + 'application/vnd.mobius.mqy': { source: 'iana', extensions: ['mqy'] }, + 'application/vnd.mobius.msl': { source: 'iana', extensions: ['msl'] }, + 'application/vnd.mobius.plc': { source: 'iana', extensions: ['plc'] }, + 'application/vnd.mobius.txf': { source: 'iana', extensions: ['txf'] }, + 'application/vnd.mophun.application': { source: 'iana', extensions: ['mpn'] }, + 'application/vnd.mophun.certificate': { source: 'iana', extensions: ['mpc'] }, + 'application/vnd.motorola.flexsuite': { source: 'iana' }, + 'application/vnd.motorola.flexsuite.adsi': { source: 'iana' }, + 'application/vnd.motorola.flexsuite.fis': { source: 'iana' }, + 'application/vnd.motorola.flexsuite.gotap': { source: 'iana' }, + 'application/vnd.motorola.flexsuite.kmr': { source: 'iana' }, + 'application/vnd.motorola.flexsuite.ttc': { source: 'iana' }, + 'application/vnd.motorola.flexsuite.wem': { source: 'iana' }, + 'application/vnd.motorola.iprm': { source: 'iana' }, + 'application/vnd.mozilla.xul+xml': { source: 'iana', compressible: !0, extensions: ['xul'] }, + 'application/vnd.ms-3mfdocument': { source: 'iana' }, + 'application/vnd.ms-artgalry': { source: 'iana', extensions: ['cil'] }, + 'application/vnd.ms-asf': { source: 'iana' }, + 'application/vnd.ms-cab-compressed': { source: 'iana', extensions: ['cab'] }, + 'application/vnd.ms-color.iccprofile': { source: 'apache' }, + 'application/vnd.ms-excel': { + source: 'iana', + compressible: !1, + extensions: ['xls', 'xlm', 'xla', 'xlc', 'xlt', 'xlw'], + }, + 'application/vnd.ms-excel.addin.macroenabled.12': { source: 'iana', extensions: ['xlam'] }, + 'application/vnd.ms-excel.sheet.binary.macroenabled.12': { source: 'iana', extensions: ['xlsb'] }, + 'application/vnd.ms-excel.sheet.macroenabled.12': { source: 'iana', extensions: ['xlsm'] }, + 'application/vnd.ms-excel.template.macroenabled.12': { source: 'iana', extensions: ['xltm'] }, + 'application/vnd.ms-fontobject': { source: 'iana', compressible: !0, extensions: ['eot'] }, + 'application/vnd.ms-htmlhelp': { source: 'iana', extensions: ['chm'] }, + 'application/vnd.ms-ims': { source: 'iana', extensions: ['ims'] }, + 'application/vnd.ms-lrm': { source: 'iana', extensions: ['lrm'] }, + 'application/vnd.ms-office.activex+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.ms-officetheme': { source: 'iana', extensions: ['thmx'] }, + 'application/vnd.ms-opentype': { source: 'apache', compressible: !0 }, + 'application/vnd.ms-outlook': { compressible: !1, extensions: ['msg'] }, + 'application/vnd.ms-package.obfuscated-opentype': { source: 'apache' }, + 'application/vnd.ms-pki.seccat': { source: 'apache', extensions: ['cat'] }, + 'application/vnd.ms-pki.stl': { source: 'apache', extensions: ['stl'] }, + 'application/vnd.ms-playready.initiator+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.ms-powerpoint': { source: 'iana', compressible: !1, extensions: ['ppt', 'pps', 'pot'] }, + 'application/vnd.ms-powerpoint.addin.macroenabled.12': { source: 'iana', extensions: ['ppam'] }, + 'application/vnd.ms-powerpoint.presentation.macroenabled.12': { source: 'iana', extensions: ['pptm'] }, + 'application/vnd.ms-powerpoint.slide.macroenabled.12': { source: 'iana', extensions: ['sldm'] }, + 'application/vnd.ms-powerpoint.slideshow.macroenabled.12': { source: 'iana', extensions: ['ppsm'] }, + 'application/vnd.ms-powerpoint.template.macroenabled.12': { source: 'iana', extensions: ['potm'] }, + 'application/vnd.ms-printdevicecapabilities+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.ms-printing.printticket+xml': { source: 'apache', compressible: !0 }, + 'application/vnd.ms-printschematicket+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.ms-project': { source: 'iana', extensions: ['mpp', 'mpt'] }, + 'application/vnd.ms-tnef': { source: 'iana' }, + 'application/vnd.ms-windows.devicepairing': { source: 'iana' }, + 'application/vnd.ms-windows.nwprinting.oob': { source: 'iana' }, + 'application/vnd.ms-windows.printerpairing': { source: 'iana' }, + 'application/vnd.ms-windows.wsd.oob': { source: 'iana' }, + 'application/vnd.ms-wmdrm.lic-chlg-req': { source: 'iana' }, + 'application/vnd.ms-wmdrm.lic-resp': { source: 'iana' }, + 'application/vnd.ms-wmdrm.meter-chlg-req': { source: 'iana' }, + 'application/vnd.ms-wmdrm.meter-resp': { source: 'iana' }, + 'application/vnd.ms-word.document.macroenabled.12': { source: 'iana', extensions: ['docm'] }, + 'application/vnd.ms-word.template.macroenabled.12': { source: 'iana', extensions: ['dotm'] }, + 'application/vnd.ms-works': { source: 'iana', extensions: ['wps', 'wks', 'wcm', 'wdb'] }, + 'application/vnd.ms-wpl': { source: 'iana', extensions: ['wpl'] }, + 'application/vnd.ms-xpsdocument': { source: 'iana', compressible: !1, extensions: ['xps'] }, + 'application/vnd.msa-disk-image': { source: 'iana' }, + 'application/vnd.mseq': { source: 'iana', extensions: ['mseq'] }, + 'application/vnd.msign': { source: 'iana' }, + 'application/vnd.multiad.creator': { source: 'iana' }, + 'application/vnd.multiad.creator.cif': { source: 'iana' }, + 'application/vnd.music-niff': { source: 'iana' }, + 'application/vnd.musician': { source: 'iana', extensions: ['mus'] }, + 'application/vnd.muvee.style': { source: 'iana', extensions: ['msty'] }, + 'application/vnd.mynfc': { source: 'iana', extensions: ['taglet'] }, + 'application/vnd.nacamar.ybrid+json': { source: 'iana', compressible: !0 }, + 'application/vnd.ncd.control': { source: 'iana' }, + 'application/vnd.ncd.reference': { source: 'iana' }, + 'application/vnd.nearst.inv+json': { source: 'iana', compressible: !0 }, + 'application/vnd.nebumind.line': { source: 'iana' }, + 'application/vnd.nervana': { source: 'iana' }, + 'application/vnd.netfpx': { source: 'iana' }, + 'application/vnd.neurolanguage.nlu': { source: 'iana', extensions: ['nlu'] }, + 'application/vnd.nimn': { source: 'iana' }, + 'application/vnd.nintendo.nitro.rom': { source: 'iana' }, + 'application/vnd.nintendo.snes.rom': { source: 'iana' }, + 'application/vnd.nitf': { source: 'iana', extensions: ['ntf', 'nitf'] }, + 'application/vnd.noblenet-directory': { source: 'iana', extensions: ['nnd'] }, + 'application/vnd.noblenet-sealer': { source: 'iana', extensions: ['nns'] }, + 'application/vnd.noblenet-web': { source: 'iana', extensions: ['nnw'] }, + 'application/vnd.nokia.catalogs': { source: 'iana' }, + 'application/vnd.nokia.conml+wbxml': { source: 'iana' }, + 'application/vnd.nokia.conml+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.nokia.iptv.config+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.nokia.isds-radio-presets': { source: 'iana' }, + 'application/vnd.nokia.landmark+wbxml': { source: 'iana' }, + 'application/vnd.nokia.landmark+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.nokia.landmarkcollection+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.nokia.n-gage.ac+xml': { source: 'iana', compressible: !0, extensions: ['ac'] }, + 'application/vnd.nokia.n-gage.data': { source: 'iana', extensions: ['ngdat'] }, + 'application/vnd.nokia.n-gage.symbian.install': { source: 'iana', extensions: ['n-gage'] }, + 'application/vnd.nokia.ncd': { source: 'iana' }, + 'application/vnd.nokia.pcd+wbxml': { source: 'iana' }, + 'application/vnd.nokia.pcd+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.nokia.radio-preset': { source: 'iana', extensions: ['rpst'] }, + 'application/vnd.nokia.radio-presets': { source: 'iana', extensions: ['rpss'] }, + 'application/vnd.novadigm.edm': { source: 'iana', extensions: ['edm'] }, + 'application/vnd.novadigm.edx': { source: 'iana', extensions: ['edx'] }, + 'application/vnd.novadigm.ext': { source: 'iana', extensions: ['ext'] }, + 'application/vnd.ntt-local.content-share': { source: 'iana' }, + 'application/vnd.ntt-local.file-transfer': { source: 'iana' }, + 'application/vnd.ntt-local.ogw_remote-access': { source: 'iana' }, + 'application/vnd.ntt-local.sip-ta_remote': { source: 'iana' }, + 'application/vnd.ntt-local.sip-ta_tcp_stream': { source: 'iana' }, + 'application/vnd.oasis.opendocument.chart': { source: 'iana', extensions: ['odc'] }, + 'application/vnd.oasis.opendocument.chart-template': { source: 'iana', extensions: ['otc'] }, + 'application/vnd.oasis.opendocument.database': { source: 'iana', extensions: ['odb'] }, + 'application/vnd.oasis.opendocument.formula': { source: 'iana', extensions: ['odf'] }, + 'application/vnd.oasis.opendocument.formula-template': { source: 'iana', extensions: ['odft'] }, + 'application/vnd.oasis.opendocument.graphics': { source: 'iana', compressible: !1, extensions: ['odg'] }, + 'application/vnd.oasis.opendocument.graphics-template': { source: 'iana', extensions: ['otg'] }, + 'application/vnd.oasis.opendocument.image': { source: 'iana', extensions: ['odi'] }, + 'application/vnd.oasis.opendocument.image-template': { source: 'iana', extensions: ['oti'] }, + 'application/vnd.oasis.opendocument.presentation': { source: 'iana', compressible: !1, extensions: ['odp'] }, + 'application/vnd.oasis.opendocument.presentation-template': { source: 'iana', extensions: ['otp'] }, + 'application/vnd.oasis.opendocument.spreadsheet': { source: 'iana', compressible: !1, extensions: ['ods'] }, + 'application/vnd.oasis.opendocument.spreadsheet-template': { source: 'iana', extensions: ['ots'] }, + 'application/vnd.oasis.opendocument.text': { source: 'iana', compressible: !1, extensions: ['odt'] }, + 'application/vnd.oasis.opendocument.text-master': { source: 'iana', extensions: ['odm'] }, + 'application/vnd.oasis.opendocument.text-template': { source: 'iana', extensions: ['ott'] }, + 'application/vnd.oasis.opendocument.text-web': { source: 'iana', extensions: ['oth'] }, + 'application/vnd.obn': { source: 'iana' }, + 'application/vnd.ocf+cbor': { source: 'iana' }, + 'application/vnd.oci.image.manifest.v1+json': { source: 'iana', compressible: !0 }, + 'application/vnd.oftn.l10n+json': { source: 'iana', compressible: !0 }, + 'application/vnd.oipf.contentaccessdownload+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.oipf.contentaccessstreaming+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.oipf.cspg-hexbinary': { source: 'iana' }, + 'application/vnd.oipf.dae.svg+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.oipf.dae.xhtml+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.oipf.mippvcontrolmessage+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.oipf.pae.gem': { source: 'iana' }, + 'application/vnd.oipf.spdiscovery+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.oipf.spdlist+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.oipf.ueprofile+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.oipf.userprofile+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.olpc-sugar': { source: 'iana', extensions: ['xo'] }, + 'application/vnd.oma-scws-config': { source: 'iana' }, + 'application/vnd.oma-scws-http-request': { source: 'iana' }, + 'application/vnd.oma-scws-http-response': { source: 'iana' }, + 'application/vnd.oma.bcast.associated-procedure-parameter+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.oma.bcast.drm-trigger+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.oma.bcast.imd+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.oma.bcast.ltkm': { source: 'iana' }, + 'application/vnd.oma.bcast.notification+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.oma.bcast.provisioningtrigger': { source: 'iana' }, + 'application/vnd.oma.bcast.sgboot': { source: 'iana' }, + 'application/vnd.oma.bcast.sgdd+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.oma.bcast.sgdu': { source: 'iana' }, + 'application/vnd.oma.bcast.simple-symbol-container': { source: 'iana' }, + 'application/vnd.oma.bcast.smartcard-trigger+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.oma.bcast.sprov+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.oma.bcast.stkm': { source: 'iana' }, + 'application/vnd.oma.cab-address-book+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.oma.cab-feature-handler+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.oma.cab-pcc+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.oma.cab-subs-invite+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.oma.cab-user-prefs+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.oma.dcd': { source: 'iana' }, + 'application/vnd.oma.dcdc': { source: 'iana' }, + 'application/vnd.oma.dd2+xml': { source: 'iana', compressible: !0, extensions: ['dd2'] }, + 'application/vnd.oma.drm.risd+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.oma.group-usage-list+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.oma.lwm2m+cbor': { source: 'iana' }, + 'application/vnd.oma.lwm2m+json': { source: 'iana', compressible: !0 }, + 'application/vnd.oma.lwm2m+tlv': { source: 'iana' }, + 'application/vnd.oma.pal+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.oma.poc.detailed-progress-report+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.oma.poc.final-report+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.oma.poc.groups+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.oma.poc.invocation-descriptor+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.oma.poc.optimized-progress-report+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.oma.push': { source: 'iana' }, + 'application/vnd.oma.scidm.messages+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.oma.xcap-directory+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.omads-email+xml': { source: 'iana', charset: 'UTF-8', compressible: !0 }, + 'application/vnd.omads-file+xml': { source: 'iana', charset: 'UTF-8', compressible: !0 }, + 'application/vnd.omads-folder+xml': { source: 'iana', charset: 'UTF-8', compressible: !0 }, + 'application/vnd.omaloc-supl-init': { source: 'iana' }, + 'application/vnd.onepager': { source: 'iana' }, + 'application/vnd.onepagertamp': { source: 'iana' }, + 'application/vnd.onepagertamx': { source: 'iana' }, + 'application/vnd.onepagertat': { source: 'iana' }, + 'application/vnd.onepagertatp': { source: 'iana' }, + 'application/vnd.onepagertatx': { source: 'iana' }, + 'application/vnd.openblox.game+xml': { source: 'iana', compressible: !0, extensions: ['obgx'] }, + 'application/vnd.openblox.game-binary': { source: 'iana' }, + 'application/vnd.openeye.oeb': { source: 'iana' }, + 'application/vnd.openofficeorg.extension': { source: 'apache', extensions: ['oxt'] }, + 'application/vnd.openstreetmap.data+xml': { source: 'iana', compressible: !0, extensions: ['osm'] }, + 'application/vnd.opentimestamps.ots': { source: 'iana' }, + 'application/vnd.openxmlformats-officedocument.custom-properties+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.customxmlproperties+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.drawing+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.drawingml.chart+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.extended-properties+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml': { + source: 'iana', + compressible: !0, + }, + 'application/vnd.openxmlformats-officedocument.presentationml.comments+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml': { + source: 'iana', + compressible: !0, + }, + 'application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml': { + source: 'iana', + compressible: !0, + }, + 'application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.presentationml.presentation': { + source: 'iana', + compressible: !1, + extensions: ['pptx'], + }, + 'application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml': { + source: 'iana', + compressible: !0, + }, + 'application/vnd.openxmlformats-officedocument.presentationml.presprops+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.presentationml.slide': { source: 'iana', extensions: ['sldx'] }, + 'application/vnd.openxmlformats-officedocument.presentationml.slide+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml': { + source: 'iana', + compressible: !0, + }, + 'application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml': { + source: 'iana', + compressible: !0, + }, + 'application/vnd.openxmlformats-officedocument.presentationml.slideshow': { source: 'iana', extensions: ['ppsx'] }, + 'application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml': { + source: 'iana', + compressible: !0, + }, + 'application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml': { + source: 'iana', + compressible: !0, + }, + 'application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml': { + source: 'iana', + compressible: !0, + }, + 'application/vnd.openxmlformats-officedocument.presentationml.tags+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.presentationml.template': { source: 'iana', extensions: ['potx'] }, + 'application/vnd.openxmlformats-officedocument.presentationml.template.main+xml': { + source: 'iana', + compressible: !0, + }, + 'application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml': { + source: 'iana', + compressible: !0, + }, + 'application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml': { + source: 'iana', + compressible: !0, + }, + 'application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml': { + source: 'iana', + compressible: !0, + }, + 'application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml': { + source: 'iana', + compressible: !0, + }, + 'application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml': { + source: 'iana', + compressible: !0, + }, + 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': { + source: 'iana', + compressible: !1, + extensions: ['xlsx'], + }, + 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml': { + source: 'iana', + compressible: !0, + }, + 'application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml': { + source: 'iana', + compressible: !0, + }, + 'application/vnd.openxmlformats-officedocument.spreadsheetml.template': { source: 'iana', extensions: ['xltx'] }, + 'application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml': { + source: 'iana', + compressible: !0, + }, + 'application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml': { + source: 'iana', + compressible: !0, + }, + 'application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.theme+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.themeoverride+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.vmldrawing': { source: 'iana' }, + 'application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.wordprocessingml.document': { + source: 'iana', + compressible: !1, + extensions: ['docx'], + }, + 'application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml': { + source: 'iana', + compressible: !0, + }, + 'application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml': { + source: 'iana', + compressible: !0, + }, + 'application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml': { + source: 'iana', + compressible: !0, + }, + 'application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml': { + source: 'iana', + compressible: !0, + }, + 'application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml': { + source: 'iana', + compressible: !0, + }, + 'application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-officedocument.wordprocessingml.template': { source: 'iana', extensions: ['dotx'] }, + 'application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml': { + source: 'iana', + compressible: !0, + }, + 'application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml': { + source: 'iana', + compressible: !0, + }, + 'application/vnd.openxmlformats-package.core-properties+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.openxmlformats-package.relationships+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.oracle.resource+json': { source: 'iana', compressible: !0 }, + 'application/vnd.orange.indata': { source: 'iana' }, + 'application/vnd.osa.netdeploy': { source: 'iana' }, + 'application/vnd.osgeo.mapguide.package': { source: 'iana', extensions: ['mgp'] }, + 'application/vnd.osgi.bundle': { source: 'iana' }, + 'application/vnd.osgi.dp': { source: 'iana', extensions: ['dp'] }, + 'application/vnd.osgi.subsystem': { source: 'iana', extensions: ['esa'] }, + 'application/vnd.otps.ct-kip+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.oxli.countgraph': { source: 'iana' }, + 'application/vnd.pagerduty+json': { source: 'iana', compressible: !0 }, + 'application/vnd.palm': { source: 'iana', extensions: ['pdb', 'pqa', 'oprc'] }, + 'application/vnd.panoply': { source: 'iana' }, + 'application/vnd.paos.xml': { source: 'iana' }, + 'application/vnd.patentdive': { source: 'iana' }, + 'application/vnd.patientecommsdoc': { source: 'iana' }, + 'application/vnd.pawaafile': { source: 'iana', extensions: ['paw'] }, + 'application/vnd.pcos': { source: 'iana' }, + 'application/vnd.pg.format': { source: 'iana', extensions: ['str'] }, + 'application/vnd.pg.osasli': { source: 'iana', extensions: ['ei6'] }, + 'application/vnd.piaccess.application-licence': { source: 'iana' }, + 'application/vnd.picsel': { source: 'iana', extensions: ['efif'] }, + 'application/vnd.pmi.widget': { source: 'iana', extensions: ['wg'] }, + 'application/vnd.poc.group-advertisement+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.pocketlearn': { source: 'iana', extensions: ['plf'] }, + 'application/vnd.powerbuilder6': { source: 'iana', extensions: ['pbd'] }, + 'application/vnd.powerbuilder6-s': { source: 'iana' }, + 'application/vnd.powerbuilder7': { source: 'iana' }, + 'application/vnd.powerbuilder7-s': { source: 'iana' }, + 'application/vnd.powerbuilder75': { source: 'iana' }, + 'application/vnd.powerbuilder75-s': { source: 'iana' }, + 'application/vnd.preminet': { source: 'iana' }, + 'application/vnd.previewsystems.box': { source: 'iana', extensions: ['box'] }, + 'application/vnd.proteus.magazine': { source: 'iana', extensions: ['mgz'] }, + 'application/vnd.psfs': { source: 'iana' }, + 'application/vnd.publishare-delta-tree': { source: 'iana', extensions: ['qps'] }, + 'application/vnd.pvi.ptid1': { source: 'iana', extensions: ['ptid'] }, + 'application/vnd.pwg-multiplexed': { source: 'iana' }, + 'application/vnd.pwg-xhtml-print+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.qualcomm.brew-app-res': { source: 'iana' }, + 'application/vnd.quarantainenet': { source: 'iana' }, + 'application/vnd.quark.quarkxpress': { source: 'iana', extensions: ['qxd', 'qxt', 'qwd', 'qwt', 'qxl', 'qxb'] }, + 'application/vnd.quobject-quoxdocument': { source: 'iana' }, + 'application/vnd.radisys.moml+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.radisys.msml+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.radisys.msml-audit+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.radisys.msml-audit-conf+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.radisys.msml-audit-conn+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.radisys.msml-audit-dialog+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.radisys.msml-audit-stream+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.radisys.msml-conf+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.radisys.msml-dialog+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.radisys.msml-dialog-base+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.radisys.msml-dialog-fax-detect+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.radisys.msml-dialog-fax-sendrecv+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.radisys.msml-dialog-group+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.radisys.msml-dialog-speech+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.radisys.msml-dialog-transform+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.rainstor.data': { source: 'iana' }, + 'application/vnd.rapid': { source: 'iana' }, + 'application/vnd.rar': { source: 'iana', extensions: ['rar'] }, + 'application/vnd.realvnc.bed': { source: 'iana', extensions: ['bed'] }, + 'application/vnd.recordare.musicxml': { source: 'iana', extensions: ['mxl'] }, + 'application/vnd.recordare.musicxml+xml': { source: 'iana', compressible: !0, extensions: ['musicxml'] }, + 'application/vnd.renlearn.rlprint': { source: 'iana' }, + 'application/vnd.resilient.logic': { source: 'iana' }, + 'application/vnd.restful+json': { source: 'iana', compressible: !0 }, + 'application/vnd.rig.cryptonote': { source: 'iana', extensions: ['cryptonote'] }, + 'application/vnd.rim.cod': { source: 'apache', extensions: ['cod'] }, + 'application/vnd.rn-realmedia': { source: 'apache', extensions: ['rm'] }, + 'application/vnd.rn-realmedia-vbr': { source: 'apache', extensions: ['rmvb'] }, + 'application/vnd.route66.link66+xml': { source: 'iana', compressible: !0, extensions: ['link66'] }, + 'application/vnd.rs-274x': { source: 'iana' }, + 'application/vnd.ruckus.download': { source: 'iana' }, + 'application/vnd.s3sms': { source: 'iana' }, + 'application/vnd.sailingtracker.track': { source: 'iana', extensions: ['st'] }, + 'application/vnd.sar': { source: 'iana' }, + 'application/vnd.sbm.cid': { source: 'iana' }, + 'application/vnd.sbm.mid2': { source: 'iana' }, + 'application/vnd.scribus': { source: 'iana' }, + 'application/vnd.sealed.3df': { source: 'iana' }, + 'application/vnd.sealed.csf': { source: 'iana' }, + 'application/vnd.sealed.doc': { source: 'iana' }, + 'application/vnd.sealed.eml': { source: 'iana' }, + 'application/vnd.sealed.mht': { source: 'iana' }, + 'application/vnd.sealed.net': { source: 'iana' }, + 'application/vnd.sealed.ppt': { source: 'iana' }, + 'application/vnd.sealed.tiff': { source: 'iana' }, + 'application/vnd.sealed.xls': { source: 'iana' }, + 'application/vnd.sealedmedia.softseal.html': { source: 'iana' }, + 'application/vnd.sealedmedia.softseal.pdf': { source: 'iana' }, + 'application/vnd.seemail': { source: 'iana', extensions: ['see'] }, + 'application/vnd.seis+json': { source: 'iana', compressible: !0 }, + 'application/vnd.sema': { source: 'iana', extensions: ['sema'] }, + 'application/vnd.semd': { source: 'iana', extensions: ['semd'] }, + 'application/vnd.semf': { source: 'iana', extensions: ['semf'] }, + 'application/vnd.shade-save-file': { source: 'iana' }, + 'application/vnd.shana.informed.formdata': { source: 'iana', extensions: ['ifm'] }, + 'application/vnd.shana.informed.formtemplate': { source: 'iana', extensions: ['itp'] }, + 'application/vnd.shana.informed.interchange': { source: 'iana', extensions: ['iif'] }, + 'application/vnd.shana.informed.package': { source: 'iana', extensions: ['ipk'] }, + 'application/vnd.shootproof+json': { source: 'iana', compressible: !0 }, + 'application/vnd.shopkick+json': { source: 'iana', compressible: !0 }, + 'application/vnd.shp': { source: 'iana' }, + 'application/vnd.shx': { source: 'iana' }, + 'application/vnd.sigrok.session': { source: 'iana' }, + 'application/vnd.simtech-mindmapper': { source: 'iana', extensions: ['twd', 'twds'] }, + 'application/vnd.siren+json': { source: 'iana', compressible: !0 }, + 'application/vnd.smaf': { source: 'iana', extensions: ['mmf'] }, + 'application/vnd.smart.notebook': { source: 'iana' }, + 'application/vnd.smart.teacher': { source: 'iana', extensions: ['teacher'] }, + 'application/vnd.snesdev-page-table': { source: 'iana' }, + 'application/vnd.software602.filler.form+xml': { source: 'iana', compressible: !0, extensions: ['fo'] }, + 'application/vnd.software602.filler.form-xml-zip': { source: 'iana' }, + 'application/vnd.solent.sdkm+xml': { source: 'iana', compressible: !0, extensions: ['sdkm', 'sdkd'] }, + 'application/vnd.spotfire.dxp': { source: 'iana', extensions: ['dxp'] }, + 'application/vnd.spotfire.sfs': { source: 'iana', extensions: ['sfs'] }, + 'application/vnd.sqlite3': { source: 'iana' }, + 'application/vnd.sss-cod': { source: 'iana' }, + 'application/vnd.sss-dtf': { source: 'iana' }, + 'application/vnd.sss-ntf': { source: 'iana' }, + 'application/vnd.stardivision.calc': { source: 'apache', extensions: ['sdc'] }, + 'application/vnd.stardivision.draw': { source: 'apache', extensions: ['sda'] }, + 'application/vnd.stardivision.impress': { source: 'apache', extensions: ['sdd'] }, + 'application/vnd.stardivision.math': { source: 'apache', extensions: ['smf'] }, + 'application/vnd.stardivision.writer': { source: 'apache', extensions: ['sdw', 'vor'] }, + 'application/vnd.stardivision.writer-global': { source: 'apache', extensions: ['sgl'] }, + 'application/vnd.stepmania.package': { source: 'iana', extensions: ['smzip'] }, + 'application/vnd.stepmania.stepchart': { source: 'iana', extensions: ['sm'] }, + 'application/vnd.street-stream': { source: 'iana' }, + 'application/vnd.sun.wadl+xml': { source: 'iana', compressible: !0, extensions: ['wadl'] }, + 'application/vnd.sun.xml.calc': { source: 'apache', extensions: ['sxc'] }, + 'application/vnd.sun.xml.calc.template': { source: 'apache', extensions: ['stc'] }, + 'application/vnd.sun.xml.draw': { source: 'apache', extensions: ['sxd'] }, + 'application/vnd.sun.xml.draw.template': { source: 'apache', extensions: ['std'] }, + 'application/vnd.sun.xml.impress': { source: 'apache', extensions: ['sxi'] }, + 'application/vnd.sun.xml.impress.template': { source: 'apache', extensions: ['sti'] }, + 'application/vnd.sun.xml.math': { source: 'apache', extensions: ['sxm'] }, + 'application/vnd.sun.xml.writer': { source: 'apache', extensions: ['sxw'] }, + 'application/vnd.sun.xml.writer.global': { source: 'apache', extensions: ['sxg'] }, + 'application/vnd.sun.xml.writer.template': { source: 'apache', extensions: ['stw'] }, + 'application/vnd.sus-calendar': { source: 'iana', extensions: ['sus', 'susp'] }, + 'application/vnd.svd': { source: 'iana', extensions: ['svd'] }, + 'application/vnd.swiftview-ics': { source: 'iana' }, + 'application/vnd.sycle+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.syft+json': { source: 'iana', compressible: !0 }, + 'application/vnd.symbian.install': { source: 'apache', extensions: ['sis', 'sisx'] }, + 'application/vnd.syncml+xml': { source: 'iana', charset: 'UTF-8', compressible: !0, extensions: ['xsm'] }, + 'application/vnd.syncml.dm+wbxml': { source: 'iana', charset: 'UTF-8', extensions: ['bdm'] }, + 'application/vnd.syncml.dm+xml': { source: 'iana', charset: 'UTF-8', compressible: !0, extensions: ['xdm'] }, + 'application/vnd.syncml.dm.notification': { source: 'iana' }, + 'application/vnd.syncml.dmddf+wbxml': { source: 'iana' }, + 'application/vnd.syncml.dmddf+xml': { source: 'iana', charset: 'UTF-8', compressible: !0, extensions: ['ddf'] }, + 'application/vnd.syncml.dmtnds+wbxml': { source: 'iana' }, + 'application/vnd.syncml.dmtnds+xml': { source: 'iana', charset: 'UTF-8', compressible: !0 }, + 'application/vnd.syncml.ds.notification': { source: 'iana' }, + 'application/vnd.tableschema+json': { source: 'iana', compressible: !0 }, + 'application/vnd.tao.intent-module-archive': { source: 'iana', extensions: ['tao'] }, + 'application/vnd.tcpdump.pcap': { source: 'iana', extensions: ['pcap', 'cap', 'dmp'] }, + 'application/vnd.think-cell.ppttc+json': { source: 'iana', compressible: !0 }, + 'application/vnd.tmd.mediaflex.api+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.tml': { source: 'iana' }, + 'application/vnd.tmobile-livetv': { source: 'iana', extensions: ['tmo'] }, + 'application/vnd.tri.onesource': { source: 'iana' }, + 'application/vnd.trid.tpt': { source: 'iana', extensions: ['tpt'] }, + 'application/vnd.triscape.mxs': { source: 'iana', extensions: ['mxs'] }, + 'application/vnd.trueapp': { source: 'iana', extensions: ['tra'] }, + 'application/vnd.truedoc': { source: 'iana' }, + 'application/vnd.ubisoft.webplayer': { source: 'iana' }, + 'application/vnd.ufdl': { source: 'iana', extensions: ['ufd', 'ufdl'] }, + 'application/vnd.uiq.theme': { source: 'iana', extensions: ['utz'] }, + 'application/vnd.umajin': { source: 'iana', extensions: ['umj'] }, + 'application/vnd.unity': { source: 'iana', extensions: ['unityweb'] }, + 'application/vnd.uoml+xml': { source: 'iana', compressible: !0, extensions: ['uoml'] }, + 'application/vnd.uplanet.alert': { source: 'iana' }, + 'application/vnd.uplanet.alert-wbxml': { source: 'iana' }, + 'application/vnd.uplanet.bearer-choice': { source: 'iana' }, + 'application/vnd.uplanet.bearer-choice-wbxml': { source: 'iana' }, + 'application/vnd.uplanet.cacheop': { source: 'iana' }, + 'application/vnd.uplanet.cacheop-wbxml': { source: 'iana' }, + 'application/vnd.uplanet.channel': { source: 'iana' }, + 'application/vnd.uplanet.channel-wbxml': { source: 'iana' }, + 'application/vnd.uplanet.list': { source: 'iana' }, + 'application/vnd.uplanet.list-wbxml': { source: 'iana' }, + 'application/vnd.uplanet.listcmd': { source: 'iana' }, + 'application/vnd.uplanet.listcmd-wbxml': { source: 'iana' }, + 'application/vnd.uplanet.signal': { source: 'iana' }, + 'application/vnd.uri-map': { source: 'iana' }, + 'application/vnd.valve.source.material': { source: 'iana' }, + 'application/vnd.vcx': { source: 'iana', extensions: ['vcx'] }, + 'application/vnd.vd-study': { source: 'iana' }, + 'application/vnd.vectorworks': { source: 'iana' }, + 'application/vnd.vel+json': { source: 'iana', compressible: !0 }, + 'application/vnd.verimatrix.vcas': { source: 'iana' }, + 'application/vnd.veritone.aion+json': { source: 'iana', compressible: !0 }, + 'application/vnd.veryant.thin': { source: 'iana' }, + 'application/vnd.ves.encrypted': { source: 'iana' }, + 'application/vnd.vidsoft.vidconference': { source: 'iana' }, + 'application/vnd.visio': { source: 'iana', extensions: ['vsd', 'vst', 'vss', 'vsw'] }, + 'application/vnd.visionary': { source: 'iana', extensions: ['vis'] }, + 'application/vnd.vividence.scriptfile': { source: 'iana' }, + 'application/vnd.vsf': { source: 'iana', extensions: ['vsf'] }, + 'application/vnd.wap.sic': { source: 'iana' }, + 'application/vnd.wap.slc': { source: 'iana' }, + 'application/vnd.wap.wbxml': { source: 'iana', charset: 'UTF-8', extensions: ['wbxml'] }, + 'application/vnd.wap.wmlc': { source: 'iana', extensions: ['wmlc'] }, + 'application/vnd.wap.wmlscriptc': { source: 'iana', extensions: ['wmlsc'] }, + 'application/vnd.webturbo': { source: 'iana', extensions: ['wtb'] }, + 'application/vnd.wfa.dpp': { source: 'iana' }, + 'application/vnd.wfa.p2p': { source: 'iana' }, + 'application/vnd.wfa.wsc': { source: 'iana' }, + 'application/vnd.windows.devicepairing': { source: 'iana' }, + 'application/vnd.wmc': { source: 'iana' }, + 'application/vnd.wmf.bootstrap': { source: 'iana' }, + 'application/vnd.wolfram.mathematica': { source: 'iana' }, + 'application/vnd.wolfram.mathematica.package': { source: 'iana' }, + 'application/vnd.wolfram.player': { source: 'iana', extensions: ['nbp'] }, + 'application/vnd.wordperfect': { source: 'iana', extensions: ['wpd'] }, + 'application/vnd.wqd': { source: 'iana', extensions: ['wqd'] }, + 'application/vnd.wrq-hp3000-labelled': { source: 'iana' }, + 'application/vnd.wt.stf': { source: 'iana', extensions: ['stf'] }, + 'application/vnd.wv.csp+wbxml': { source: 'iana' }, + 'application/vnd.wv.csp+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.wv.ssp+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.xacml+json': { source: 'iana', compressible: !0 }, + 'application/vnd.xara': { source: 'iana', extensions: ['xar'] }, + 'application/vnd.xfdl': { source: 'iana', extensions: ['xfdl'] }, + 'application/vnd.xfdl.webform': { source: 'iana' }, + 'application/vnd.xmi+xml': { source: 'iana', compressible: !0 }, + 'application/vnd.xmpie.cpkg': { source: 'iana' }, + 'application/vnd.xmpie.dpkg': { source: 'iana' }, + 'application/vnd.xmpie.plan': { source: 'iana' }, + 'application/vnd.xmpie.ppkg': { source: 'iana' }, + 'application/vnd.xmpie.xlim': { source: 'iana' }, + 'application/vnd.yamaha.hv-dic': { source: 'iana', extensions: ['hvd'] }, + 'application/vnd.yamaha.hv-script': { source: 'iana', extensions: ['hvs'] }, + 'application/vnd.yamaha.hv-voice': { source: 'iana', extensions: ['hvp'] }, + 'application/vnd.yamaha.openscoreformat': { source: 'iana', extensions: ['osf'] }, + 'application/vnd.yamaha.openscoreformat.osfpvg+xml': { source: 'iana', compressible: !0, extensions: ['osfpvg'] }, + 'application/vnd.yamaha.remote-setup': { source: 'iana' }, + 'application/vnd.yamaha.smaf-audio': { source: 'iana', extensions: ['saf'] }, + 'application/vnd.yamaha.smaf-phrase': { source: 'iana', extensions: ['spf'] }, + 'application/vnd.yamaha.through-ngn': { source: 'iana' }, + 'application/vnd.yamaha.tunnel-udpencap': { source: 'iana' }, + 'application/vnd.yaoweme': { source: 'iana' }, + 'application/vnd.yellowriver-custom-menu': { source: 'iana', extensions: ['cmp'] }, + 'application/vnd.youtube.yt': { source: 'iana' }, + 'application/vnd.zul': { source: 'iana', extensions: ['zir', 'zirz'] }, + 'application/vnd.zzazz.deck+xml': { source: 'iana', compressible: !0, extensions: ['zaz'] }, + 'application/voicexml+xml': { source: 'iana', compressible: !0, extensions: ['vxml'] }, + 'application/voucher-cms+json': { source: 'iana', compressible: !0 }, + 'application/vq-rtcpxr': { source: 'iana' }, + 'application/wasm': { source: 'iana', compressible: !0, extensions: ['wasm'] }, + 'application/watcherinfo+xml': { source: 'iana', compressible: !0, extensions: ['wif'] }, + 'application/webpush-options+json': { source: 'iana', compressible: !0 }, + 'application/whoispp-query': { source: 'iana' }, + 'application/whoispp-response': { source: 'iana' }, + 'application/widget': { source: 'iana', extensions: ['wgt'] }, + 'application/winhlp': { source: 'apache', extensions: ['hlp'] }, + 'application/wita': { source: 'iana' }, + 'application/wordperfect5.1': { source: 'iana' }, + 'application/wsdl+xml': { source: 'iana', compressible: !0, extensions: ['wsdl'] }, + 'application/wspolicy+xml': { source: 'iana', compressible: !0, extensions: ['wspolicy'] }, + 'application/x-7z-compressed': { source: 'apache', compressible: !1, extensions: ['7z'] }, + 'application/x-abiword': { source: 'apache', extensions: ['abw'] }, + 'application/x-ace-compressed': { source: 'apache', extensions: ['ace'] }, + 'application/x-amf': { source: 'apache' }, + 'application/x-apple-diskimage': { source: 'apache', extensions: ['dmg'] }, + 'application/x-arj': { compressible: !1, extensions: ['arj'] }, + 'application/x-authorware-bin': { source: 'apache', extensions: ['aab', 'x32', 'u32', 'vox'] }, + 'application/x-authorware-map': { source: 'apache', extensions: ['aam'] }, + 'application/x-authorware-seg': { source: 'apache', extensions: ['aas'] }, + 'application/x-bcpio': { source: 'apache', extensions: ['bcpio'] }, + 'application/x-bdoc': { compressible: !1, extensions: ['bdoc'] }, + 'application/x-bittorrent': { source: 'apache', extensions: ['torrent'] }, + 'application/x-blorb': { source: 'apache', extensions: ['blb', 'blorb'] }, + 'application/x-bzip': { source: 'apache', compressible: !1, extensions: ['bz'] }, + 'application/x-bzip2': { source: 'apache', compressible: !1, extensions: ['bz2', 'boz'] }, + 'application/x-cbr': { source: 'apache', extensions: ['cbr', 'cba', 'cbt', 'cbz', 'cb7'] }, + 'application/x-cdlink': { source: 'apache', extensions: ['vcd'] }, + 'application/x-cfs-compressed': { source: 'apache', extensions: ['cfs'] }, + 'application/x-chat': { source: 'apache', extensions: ['chat'] }, + 'application/x-chess-pgn': { source: 'apache', extensions: ['pgn'] }, + 'application/x-chrome-extension': { extensions: ['crx'] }, + 'application/x-cocoa': { source: 'nginx', extensions: ['cco'] }, + 'application/x-compress': { source: 'apache' }, + 'application/x-conference': { source: 'apache', extensions: ['nsc'] }, + 'application/x-cpio': { source: 'apache', extensions: ['cpio'] }, + 'application/x-csh': { source: 'apache', extensions: ['csh'] }, + 'application/x-deb': { compressible: !1 }, + 'application/x-debian-package': { source: 'apache', extensions: ['deb', 'udeb'] }, + 'application/x-dgc-compressed': { source: 'apache', extensions: ['dgc'] }, + 'application/x-director': { + source: 'apache', + extensions: ['dir', 'dcr', 'dxr', 'cst', 'cct', 'cxt', 'w3d', 'fgd', 'swa'], + }, + 'application/x-doom': { source: 'apache', extensions: ['wad'] }, + 'application/x-dtbncx+xml': { source: 'apache', compressible: !0, extensions: ['ncx'] }, + 'application/x-dtbook+xml': { source: 'apache', compressible: !0, extensions: ['dtb'] }, + 'application/x-dtbresource+xml': { source: 'apache', compressible: !0, extensions: ['res'] }, + 'application/x-dvi': { source: 'apache', compressible: !1, extensions: ['dvi'] }, + 'application/x-envoy': { source: 'apache', extensions: ['evy'] }, + 'application/x-eva': { source: 'apache', extensions: ['eva'] }, + 'application/x-font-bdf': { source: 'apache', extensions: ['bdf'] }, + 'application/x-font-dos': { source: 'apache' }, + 'application/x-font-framemaker': { source: 'apache' }, + 'application/x-font-ghostscript': { source: 'apache', extensions: ['gsf'] }, + 'application/x-font-libgrx': { source: 'apache' }, + 'application/x-font-linux-psf': { source: 'apache', extensions: ['psf'] }, + 'application/x-font-pcf': { source: 'apache', extensions: ['pcf'] }, + 'application/x-font-snf': { source: 'apache', extensions: ['snf'] }, + 'application/x-font-speedo': { source: 'apache' }, + 'application/x-font-sunos-news': { source: 'apache' }, + 'application/x-font-type1': { source: 'apache', extensions: ['pfa', 'pfb', 'pfm', 'afm'] }, + 'application/x-font-vfont': { source: 'apache' }, + 'application/x-freearc': { source: 'apache', extensions: ['arc'] }, + 'application/x-futuresplash': { source: 'apache', extensions: ['spl'] }, + 'application/x-gca-compressed': { source: 'apache', extensions: ['gca'] }, + 'application/x-glulx': { source: 'apache', extensions: ['ulx'] }, + 'application/x-gnumeric': { source: 'apache', extensions: ['gnumeric'] }, + 'application/x-gramps-xml': { source: 'apache', extensions: ['gramps'] }, + 'application/x-gtar': { source: 'apache', extensions: ['gtar'] }, + 'application/x-gzip': { source: 'apache' }, + 'application/x-hdf': { source: 'apache', extensions: ['hdf'] }, + 'application/x-httpd-php': { compressible: !0, extensions: ['php'] }, + 'application/x-install-instructions': { source: 'apache', extensions: ['install'] }, + 'application/x-iso9660-image': { source: 'apache', extensions: ['iso'] }, + 'application/x-iwork-keynote-sffkey': { extensions: ['key'] }, + 'application/x-iwork-numbers-sffnumbers': { extensions: ['numbers'] }, + 'application/x-iwork-pages-sffpages': { extensions: ['pages'] }, + 'application/x-java-archive-diff': { source: 'nginx', extensions: ['jardiff'] }, + 'application/x-java-jnlp-file': { source: 'apache', compressible: !1, extensions: ['jnlp'] }, + 'application/x-javascript': { compressible: !0 }, + 'application/x-keepass2': { extensions: ['kdbx'] }, + 'application/x-latex': { source: 'apache', compressible: !1, extensions: ['latex'] }, + 'application/x-lua-bytecode': { extensions: ['luac'] }, + 'application/x-lzh-compressed': { source: 'apache', extensions: ['lzh', 'lha'] }, + 'application/x-makeself': { source: 'nginx', extensions: ['run'] }, + 'application/x-mie': { source: 'apache', extensions: ['mie'] }, + 'application/x-mobipocket-ebook': { source: 'apache', extensions: ['prc', 'mobi'] }, + 'application/x-mpegurl': { compressible: !1 }, + 'application/x-ms-application': { source: 'apache', extensions: ['application'] }, + 'application/x-ms-shortcut': { source: 'apache', extensions: ['lnk'] }, + 'application/x-ms-wmd': { source: 'apache', extensions: ['wmd'] }, + 'application/x-ms-wmz': { source: 'apache', extensions: ['wmz'] }, + 'application/x-ms-xbap': { source: 'apache', extensions: ['xbap'] }, + 'application/x-msaccess': { source: 'apache', extensions: ['mdb'] }, + 'application/x-msbinder': { source: 'apache', extensions: ['obd'] }, + 'application/x-mscardfile': { source: 'apache', extensions: ['crd'] }, + 'application/x-msclip': { source: 'apache', extensions: ['clp'] }, + 'application/x-msdos-program': { extensions: ['exe'] }, + 'application/x-msdownload': { source: 'apache', extensions: ['exe', 'dll', 'com', 'bat', 'msi'] }, + 'application/x-msmediaview': { source: 'apache', extensions: ['mvb', 'm13', 'm14'] }, + 'application/x-msmetafile': { source: 'apache', extensions: ['wmf', 'wmz', 'emf', 'emz'] }, + 'application/x-msmoney': { source: 'apache', extensions: ['mny'] }, + 'application/x-mspublisher': { source: 'apache', extensions: ['pub'] }, + 'application/x-msschedule': { source: 'apache', extensions: ['scd'] }, + 'application/x-msterminal': { source: 'apache', extensions: ['trm'] }, + 'application/x-mswrite': { source: 'apache', extensions: ['wri'] }, + 'application/x-netcdf': { source: 'apache', extensions: ['nc', 'cdf'] }, + 'application/x-ns-proxy-autoconfig': { compressible: !0, extensions: ['pac'] }, + 'application/x-nzb': { source: 'apache', extensions: ['nzb'] }, + 'application/x-perl': { source: 'nginx', extensions: ['pl', 'pm'] }, + 'application/x-pilot': { source: 'nginx', extensions: ['prc', 'pdb'] }, + 'application/x-pkcs12': { source: 'apache', compressible: !1, extensions: ['p12', 'pfx'] }, + 'application/x-pkcs7-certificates': { source: 'apache', extensions: ['p7b', 'spc'] }, + 'application/x-pkcs7-certreqresp': { source: 'apache', extensions: ['p7r'] }, + 'application/x-pki-message': { source: 'iana' }, + 'application/x-rar-compressed': { source: 'apache', compressible: !1, extensions: ['rar'] }, + 'application/x-redhat-package-manager': { source: 'nginx', extensions: ['rpm'] }, + 'application/x-research-info-systems': { source: 'apache', extensions: ['ris'] }, + 'application/x-sea': { source: 'nginx', extensions: ['sea'] }, + 'application/x-sh': { source: 'apache', compressible: !0, extensions: ['sh'] }, + 'application/x-shar': { source: 'apache', extensions: ['shar'] }, + 'application/x-shockwave-flash': { source: 'apache', compressible: !1, extensions: ['swf'] }, + 'application/x-silverlight-app': { source: 'apache', extensions: ['xap'] }, + 'application/x-sql': { source: 'apache', extensions: ['sql'] }, + 'application/x-stuffit': { source: 'apache', compressible: !1, extensions: ['sit'] }, + 'application/x-stuffitx': { source: 'apache', extensions: ['sitx'] }, + 'application/x-subrip': { source: 'apache', extensions: ['srt'] }, + 'application/x-sv4cpio': { source: 'apache', extensions: ['sv4cpio'] }, + 'application/x-sv4crc': { source: 'apache', extensions: ['sv4crc'] }, + 'application/x-t3vm-image': { source: 'apache', extensions: ['t3'] }, + 'application/x-tads': { source: 'apache', extensions: ['gam'] }, + 'application/x-tar': { source: 'apache', compressible: !0, extensions: ['tar'] }, + 'application/x-tcl': { source: 'apache', extensions: ['tcl', 'tk'] }, + 'application/x-tex': { source: 'apache', extensions: ['tex'] }, + 'application/x-tex-tfm': { source: 'apache', extensions: ['tfm'] }, + 'application/x-texinfo': { source: 'apache', extensions: ['texinfo', 'texi'] }, + 'application/x-tgif': { source: 'apache', extensions: ['obj'] }, + 'application/x-ustar': { source: 'apache', extensions: ['ustar'] }, + 'application/x-virtualbox-hdd': { compressible: !0, extensions: ['hdd'] }, + 'application/x-virtualbox-ova': { compressible: !0, extensions: ['ova'] }, + 'application/x-virtualbox-ovf': { compressible: !0, extensions: ['ovf'] }, + 'application/x-virtualbox-vbox': { compressible: !0, extensions: ['vbox'] }, + 'application/x-virtualbox-vbox-extpack': { compressible: !1, extensions: ['vbox-extpack'] }, + 'application/x-virtualbox-vdi': { compressible: !0, extensions: ['vdi'] }, + 'application/x-virtualbox-vhd': { compressible: !0, extensions: ['vhd'] }, + 'application/x-virtualbox-vmdk': { compressible: !0, extensions: ['vmdk'] }, + 'application/x-wais-source': { source: 'apache', extensions: ['src'] }, + 'application/x-web-app-manifest+json': { compressible: !0, extensions: ['webapp'] }, + 'application/x-www-form-urlencoded': { source: 'iana', compressible: !0 }, + 'application/x-x509-ca-cert': { source: 'iana', extensions: ['der', 'crt', 'pem'] }, + 'application/x-x509-ca-ra-cert': { source: 'iana' }, + 'application/x-x509-next-ca-cert': { source: 'iana' }, + 'application/x-xfig': { source: 'apache', extensions: ['fig'] }, + 'application/x-xliff+xml': { source: 'apache', compressible: !0, extensions: ['xlf'] }, + 'application/x-xpinstall': { source: 'apache', compressible: !1, extensions: ['xpi'] }, + 'application/x-xz': { source: 'apache', extensions: ['xz'] }, + 'application/x-zmachine': { source: 'apache', extensions: ['z1', 'z2', 'z3', 'z4', 'z5', 'z6', 'z7', 'z8'] }, + 'application/x400-bp': { source: 'iana' }, + 'application/xacml+xml': { source: 'iana', compressible: !0 }, + 'application/xaml+xml': { source: 'apache', compressible: !0, extensions: ['xaml'] }, + 'application/xcap-att+xml': { source: 'iana', compressible: !0, extensions: ['xav'] }, + 'application/xcap-caps+xml': { source: 'iana', compressible: !0, extensions: ['xca'] }, + 'application/xcap-diff+xml': { source: 'iana', compressible: !0, extensions: ['xdf'] }, + 'application/xcap-el+xml': { source: 'iana', compressible: !0, extensions: ['xel'] }, + 'application/xcap-error+xml': { source: 'iana', compressible: !0 }, + 'application/xcap-ns+xml': { source: 'iana', compressible: !0, extensions: ['xns'] }, + 'application/xcon-conference-info+xml': { source: 'iana', compressible: !0 }, + 'application/xcon-conference-info-diff+xml': { source: 'iana', compressible: !0 }, + 'application/xenc+xml': { source: 'iana', compressible: !0, extensions: ['xenc'] }, + 'application/xhtml+xml': { source: 'iana', compressible: !0, extensions: ['xhtml', 'xht'] }, + 'application/xhtml-voice+xml': { source: 'apache', compressible: !0 }, + 'application/xliff+xml': { source: 'iana', compressible: !0, extensions: ['xlf'] }, + 'application/xml': { source: 'iana', compressible: !0, extensions: ['xml', 'xsl', 'xsd', 'rng'] }, + 'application/xml-dtd': { source: 'iana', compressible: !0, extensions: ['dtd'] }, + 'application/xml-external-parsed-entity': { source: 'iana' }, + 'application/xml-patch+xml': { source: 'iana', compressible: !0 }, + 'application/xmpp+xml': { source: 'iana', compressible: !0 }, + 'application/xop+xml': { source: 'iana', compressible: !0, extensions: ['xop'] }, + 'application/xproc+xml': { source: 'apache', compressible: !0, extensions: ['xpl'] }, + 'application/xslt+xml': { source: 'iana', compressible: !0, extensions: ['xsl', 'xslt'] }, + 'application/xspf+xml': { source: 'apache', compressible: !0, extensions: ['xspf'] }, + 'application/xv+xml': { source: 'iana', compressible: !0, extensions: ['mxml', 'xhvml', 'xvml', 'xvm'] }, + 'application/yang': { source: 'iana', extensions: ['yang'] }, + 'application/yang-data+json': { source: 'iana', compressible: !0 }, + 'application/yang-data+xml': { source: 'iana', compressible: !0 }, + 'application/yang-patch+json': { source: 'iana', compressible: !0 }, + 'application/yang-patch+xml': { source: 'iana', compressible: !0 }, + 'application/yin+xml': { source: 'iana', compressible: !0, extensions: ['yin'] }, + 'application/zip': { source: 'iana', compressible: !1, extensions: ['zip'] }, + 'application/zlib': { source: 'iana' }, + 'application/zstd': { source: 'iana' }, + 'audio/1d-interleaved-parityfec': { source: 'iana' }, + 'audio/32kadpcm': { source: 'iana' }, + 'audio/3gpp': { source: 'iana', compressible: !1, extensions: ['3gpp'] }, + 'audio/3gpp2': { source: 'iana' }, + 'audio/aac': { source: 'iana' }, + 'audio/ac3': { source: 'iana' }, + 'audio/adpcm': { source: 'apache', extensions: ['adp'] }, + 'audio/amr': { source: 'iana', extensions: ['amr'] }, + 'audio/amr-wb': { source: 'iana' }, + 'audio/amr-wb+': { source: 'iana' }, + 'audio/aptx': { source: 'iana' }, + 'audio/asc': { source: 'iana' }, + 'audio/atrac-advanced-lossless': { source: 'iana' }, + 'audio/atrac-x': { source: 'iana' }, + 'audio/atrac3': { source: 'iana' }, + 'audio/basic': { source: 'iana', compressible: !1, extensions: ['au', 'snd'] }, + 'audio/bv16': { source: 'iana' }, + 'audio/bv32': { source: 'iana' }, + 'audio/clearmode': { source: 'iana' }, + 'audio/cn': { source: 'iana' }, + 'audio/dat12': { source: 'iana' }, + 'audio/dls': { source: 'iana' }, + 'audio/dsr-es201108': { source: 'iana' }, + 'audio/dsr-es202050': { source: 'iana' }, + 'audio/dsr-es202211': { source: 'iana' }, + 'audio/dsr-es202212': { source: 'iana' }, + 'audio/dv': { source: 'iana' }, + 'audio/dvi4': { source: 'iana' }, + 'audio/eac3': { source: 'iana' }, + 'audio/encaprtp': { source: 'iana' }, + 'audio/evrc': { source: 'iana' }, + 'audio/evrc-qcp': { source: 'iana' }, + 'audio/evrc0': { source: 'iana' }, + 'audio/evrc1': { source: 'iana' }, + 'audio/evrcb': { source: 'iana' }, + 'audio/evrcb0': { source: 'iana' }, + 'audio/evrcb1': { source: 'iana' }, + 'audio/evrcnw': { source: 'iana' }, + 'audio/evrcnw0': { source: 'iana' }, + 'audio/evrcnw1': { source: 'iana' }, + 'audio/evrcwb': { source: 'iana' }, + 'audio/evrcwb0': { source: 'iana' }, + 'audio/evrcwb1': { source: 'iana' }, + 'audio/evs': { source: 'iana' }, + 'audio/flexfec': { source: 'iana' }, + 'audio/fwdred': { source: 'iana' }, + 'audio/g711-0': { source: 'iana' }, + 'audio/g719': { source: 'iana' }, + 'audio/g722': { source: 'iana' }, + 'audio/g7221': { source: 'iana' }, + 'audio/g723': { source: 'iana' }, + 'audio/g726-16': { source: 'iana' }, + 'audio/g726-24': { source: 'iana' }, + 'audio/g726-32': { source: 'iana' }, + 'audio/g726-40': { source: 'iana' }, + 'audio/g728': { source: 'iana' }, + 'audio/g729': { source: 'iana' }, + 'audio/g7291': { source: 'iana' }, + 'audio/g729d': { source: 'iana' }, + 'audio/g729e': { source: 'iana' }, + 'audio/gsm': { source: 'iana' }, + 'audio/gsm-efr': { source: 'iana' }, + 'audio/gsm-hr-08': { source: 'iana' }, + 'audio/ilbc': { source: 'iana' }, + 'audio/ip-mr_v2.5': { source: 'iana' }, + 'audio/isac': { source: 'apache' }, + 'audio/l16': { source: 'iana' }, + 'audio/l20': { source: 'iana' }, + 'audio/l24': { source: 'iana', compressible: !1 }, + 'audio/l8': { source: 'iana' }, + 'audio/lpc': { source: 'iana' }, + 'audio/melp': { source: 'iana' }, + 'audio/melp1200': { source: 'iana' }, + 'audio/melp2400': { source: 'iana' }, + 'audio/melp600': { source: 'iana' }, + 'audio/mhas': { source: 'iana' }, + 'audio/midi': { source: 'apache', extensions: ['mid', 'midi', 'kar', 'rmi'] }, + 'audio/mobile-xmf': { source: 'iana', extensions: ['mxmf'] }, + 'audio/mp3': { compressible: !1, extensions: ['mp3'] }, + 'audio/mp4': { source: 'iana', compressible: !1, extensions: ['m4a', 'mp4a'] }, + 'audio/mp4a-latm': { source: 'iana' }, + 'audio/mpa': { source: 'iana' }, + 'audio/mpa-robust': { source: 'iana' }, + 'audio/mpeg': { source: 'iana', compressible: !1, extensions: ['mpga', 'mp2', 'mp2a', 'mp3', 'm2a', 'm3a'] }, + 'audio/mpeg4-generic': { source: 'iana' }, + 'audio/musepack': { source: 'apache' }, + 'audio/ogg': { source: 'iana', compressible: !1, extensions: ['oga', 'ogg', 'spx', 'opus'] }, + 'audio/opus': { source: 'iana' }, + 'audio/parityfec': { source: 'iana' }, + 'audio/pcma': { source: 'iana' }, + 'audio/pcma-wb': { source: 'iana' }, + 'audio/pcmu': { source: 'iana' }, + 'audio/pcmu-wb': { source: 'iana' }, + 'audio/prs.sid': { source: 'iana' }, + 'audio/qcelp': { source: 'iana' }, + 'audio/raptorfec': { source: 'iana' }, + 'audio/red': { source: 'iana' }, + 'audio/rtp-enc-aescm128': { source: 'iana' }, + 'audio/rtp-midi': { source: 'iana' }, + 'audio/rtploopback': { source: 'iana' }, + 'audio/rtx': { source: 'iana' }, + 'audio/s3m': { source: 'apache', extensions: ['s3m'] }, + 'audio/scip': { source: 'iana' }, + 'audio/silk': { source: 'apache', extensions: ['sil'] }, + 'audio/smv': { source: 'iana' }, + 'audio/smv-qcp': { source: 'iana' }, + 'audio/smv0': { source: 'iana' }, + 'audio/sofa': { source: 'iana' }, + 'audio/sp-midi': { source: 'iana' }, + 'audio/speex': { source: 'iana' }, + 'audio/t140c': { source: 'iana' }, + 'audio/t38': { source: 'iana' }, + 'audio/telephone-event': { source: 'iana' }, + 'audio/tetra_acelp': { source: 'iana' }, + 'audio/tetra_acelp_bb': { source: 'iana' }, + 'audio/tone': { source: 'iana' }, + 'audio/tsvcis': { source: 'iana' }, + 'audio/uemclip': { source: 'iana' }, + 'audio/ulpfec': { source: 'iana' }, + 'audio/usac': { source: 'iana' }, + 'audio/vdvi': { source: 'iana' }, + 'audio/vmr-wb': { source: 'iana' }, + 'audio/vnd.3gpp.iufp': { source: 'iana' }, + 'audio/vnd.4sb': { source: 'iana' }, + 'audio/vnd.audiokoz': { source: 'iana' }, + 'audio/vnd.celp': { source: 'iana' }, + 'audio/vnd.cisco.nse': { source: 'iana' }, + 'audio/vnd.cmles.radio-events': { source: 'iana' }, + 'audio/vnd.cns.anp1': { source: 'iana' }, + 'audio/vnd.cns.inf1': { source: 'iana' }, + 'audio/vnd.dece.audio': { source: 'iana', extensions: ['uva', 'uvva'] }, + 'audio/vnd.digital-winds': { source: 'iana', extensions: ['eol'] }, + 'audio/vnd.dlna.adts': { source: 'iana' }, + 'audio/vnd.dolby.heaac.1': { source: 'iana' }, + 'audio/vnd.dolby.heaac.2': { source: 'iana' }, + 'audio/vnd.dolby.mlp': { source: 'iana' }, + 'audio/vnd.dolby.mps': { source: 'iana' }, + 'audio/vnd.dolby.pl2': { source: 'iana' }, + 'audio/vnd.dolby.pl2x': { source: 'iana' }, + 'audio/vnd.dolby.pl2z': { source: 'iana' }, + 'audio/vnd.dolby.pulse.1': { source: 'iana' }, + 'audio/vnd.dra': { source: 'iana', extensions: ['dra'] }, + 'audio/vnd.dts': { source: 'iana', extensions: ['dts'] }, + 'audio/vnd.dts.hd': { source: 'iana', extensions: ['dtshd'] }, + 'audio/vnd.dts.uhd': { source: 'iana' }, + 'audio/vnd.dvb.file': { source: 'iana' }, + 'audio/vnd.everad.plj': { source: 'iana' }, + 'audio/vnd.hns.audio': { source: 'iana' }, + 'audio/vnd.lucent.voice': { source: 'iana', extensions: ['lvp'] }, + 'audio/vnd.ms-playready.media.pya': { source: 'iana', extensions: ['pya'] }, + 'audio/vnd.nokia.mobile-xmf': { source: 'iana' }, + 'audio/vnd.nortel.vbk': { source: 'iana' }, + 'audio/vnd.nuera.ecelp4800': { source: 'iana', extensions: ['ecelp4800'] }, + 'audio/vnd.nuera.ecelp7470': { source: 'iana', extensions: ['ecelp7470'] }, + 'audio/vnd.nuera.ecelp9600': { source: 'iana', extensions: ['ecelp9600'] }, + 'audio/vnd.octel.sbc': { source: 'iana' }, + 'audio/vnd.presonus.multitrack': { source: 'iana' }, + 'audio/vnd.qcelp': { source: 'iana' }, + 'audio/vnd.rhetorex.32kadpcm': { source: 'iana' }, + 'audio/vnd.rip': { source: 'iana', extensions: ['rip'] }, + 'audio/vnd.rn-realaudio': { compressible: !1 }, + 'audio/vnd.sealedmedia.softseal.mpeg': { source: 'iana' }, + 'audio/vnd.vmx.cvsd': { source: 'iana' }, + 'audio/vnd.wave': { compressible: !1 }, + 'audio/vorbis': { source: 'iana', compressible: !1 }, + 'audio/vorbis-config': { source: 'iana' }, + 'audio/wav': { compressible: !1, extensions: ['wav'] }, + 'audio/wave': { compressible: !1, extensions: ['wav'] }, + 'audio/webm': { source: 'apache', compressible: !1, extensions: ['weba'] }, + 'audio/x-aac': { source: 'apache', compressible: !1, extensions: ['aac'] }, + 'audio/x-aiff': { source: 'apache', extensions: ['aif', 'aiff', 'aifc'] }, + 'audio/x-caf': { source: 'apache', compressible: !1, extensions: ['caf'] }, + 'audio/x-flac': { source: 'apache', extensions: ['flac'] }, + 'audio/x-m4a': { source: 'nginx', extensions: ['m4a'] }, + 'audio/x-matroska': { source: 'apache', extensions: ['mka'] }, + 'audio/x-mpegurl': { source: 'apache', extensions: ['m3u'] }, + 'audio/x-ms-wax': { source: 'apache', extensions: ['wax'] }, + 'audio/x-ms-wma': { source: 'apache', extensions: ['wma'] }, + 'audio/x-pn-realaudio': { source: 'apache', extensions: ['ram', 'ra'] }, + 'audio/x-pn-realaudio-plugin': { source: 'apache', extensions: ['rmp'] }, + 'audio/x-realaudio': { source: 'nginx', extensions: ['ra'] }, + 'audio/x-tta': { source: 'apache' }, + 'audio/x-wav': { source: 'apache', extensions: ['wav'] }, + 'audio/xm': { source: 'apache', extensions: ['xm'] }, + 'chemical/x-cdx': { source: 'apache', extensions: ['cdx'] }, + 'chemical/x-cif': { source: 'apache', extensions: ['cif'] }, + 'chemical/x-cmdf': { source: 'apache', extensions: ['cmdf'] }, + 'chemical/x-cml': { source: 'apache', extensions: ['cml'] }, + 'chemical/x-csml': { source: 'apache', extensions: ['csml'] }, + 'chemical/x-pdb': { source: 'apache' }, + 'chemical/x-xyz': { source: 'apache', extensions: ['xyz'] }, + 'font/collection': { source: 'iana', extensions: ['ttc'] }, + 'font/otf': { source: 'iana', compressible: !0, extensions: ['otf'] }, + 'font/sfnt': { source: 'iana' }, + 'font/ttf': { source: 'iana', compressible: !0, extensions: ['ttf'] }, + 'font/woff': { source: 'iana', extensions: ['woff'] }, + 'font/woff2': { source: 'iana', extensions: ['woff2'] }, + 'image/aces': { source: 'iana', extensions: ['exr'] }, + 'image/apng': { compressible: !1, extensions: ['apng'] }, + 'image/avci': { source: 'iana', extensions: ['avci'] }, + 'image/avcs': { source: 'iana', extensions: ['avcs'] }, + 'image/avif': { source: 'iana', compressible: !1, extensions: ['avif'] }, + 'image/bmp': { source: 'iana', compressible: !0, extensions: ['bmp'] }, + 'image/cgm': { source: 'iana', extensions: ['cgm'] }, + 'image/dicom-rle': { source: 'iana', extensions: ['drle'] }, + 'image/emf': { source: 'iana', extensions: ['emf'] }, + 'image/fits': { source: 'iana', extensions: ['fits'] }, + 'image/g3fax': { source: 'iana', extensions: ['g3'] }, + 'image/gif': { source: 'iana', compressible: !1, extensions: ['gif'] }, + 'image/heic': { source: 'iana', extensions: ['heic'] }, + 'image/heic-sequence': { source: 'iana', extensions: ['heics'] }, + 'image/heif': { source: 'iana', extensions: ['heif'] }, + 'image/heif-sequence': { source: 'iana', extensions: ['heifs'] }, + 'image/hej2k': { source: 'iana', extensions: ['hej2'] }, + 'image/hsj2': { source: 'iana', extensions: ['hsj2'] }, + 'image/ief': { source: 'iana', extensions: ['ief'] }, + 'image/jls': { source: 'iana', extensions: ['jls'] }, + 'image/jp2': { source: 'iana', compressible: !1, extensions: ['jp2', 'jpg2'] }, + 'image/jpeg': { source: 'iana', compressible: !1, extensions: ['jpeg', 'jpg', 'jpe'] }, + 'image/jph': { source: 'iana', extensions: ['jph'] }, + 'image/jphc': { source: 'iana', extensions: ['jhc'] }, + 'image/jpm': { source: 'iana', compressible: !1, extensions: ['jpm'] }, + 'image/jpx': { source: 'iana', compressible: !1, extensions: ['jpx', 'jpf'] }, + 'image/jxr': { source: 'iana', extensions: ['jxr'] }, + 'image/jxra': { source: 'iana', extensions: ['jxra'] }, + 'image/jxrs': { source: 'iana', extensions: ['jxrs'] }, + 'image/jxs': { source: 'iana', extensions: ['jxs'] }, + 'image/jxsc': { source: 'iana', extensions: ['jxsc'] }, + 'image/jxsi': { source: 'iana', extensions: ['jxsi'] }, + 'image/jxss': { source: 'iana', extensions: ['jxss'] }, + 'image/ktx': { source: 'iana', extensions: ['ktx'] }, + 'image/ktx2': { source: 'iana', extensions: ['ktx2'] }, + 'image/naplps': { source: 'iana' }, + 'image/pjpeg': { compressible: !1 }, + 'image/png': { source: 'iana', compressible: !1, extensions: ['png'] }, + 'image/prs.btif': { source: 'iana', extensions: ['btif'] }, + 'image/prs.pti': { source: 'iana', extensions: ['pti'] }, + 'image/pwg-raster': { source: 'iana' }, + 'image/sgi': { source: 'apache', extensions: ['sgi'] }, + 'image/svg+xml': { source: 'iana', compressible: !0, extensions: ['svg', 'svgz'] }, + 'image/t38': { source: 'iana', extensions: ['t38'] }, + 'image/tiff': { source: 'iana', compressible: !1, extensions: ['tif', 'tiff'] }, + 'image/tiff-fx': { source: 'iana', extensions: ['tfx'] }, + 'image/vnd.adobe.photoshop': { source: 'iana', compressible: !0, extensions: ['psd'] }, + 'image/vnd.airzip.accelerator.azv': { source: 'iana', extensions: ['azv'] }, + 'image/vnd.cns.inf2': { source: 'iana' }, + 'image/vnd.dece.graphic': { source: 'iana', extensions: ['uvi', 'uvvi', 'uvg', 'uvvg'] }, + 'image/vnd.djvu': { source: 'iana', extensions: ['djvu', 'djv'] }, + 'image/vnd.dvb.subtitle': { source: 'iana', extensions: ['sub'] }, + 'image/vnd.dwg': { source: 'iana', extensions: ['dwg'] }, + 'image/vnd.dxf': { source: 'iana', extensions: ['dxf'] }, + 'image/vnd.fastbidsheet': { source: 'iana', extensions: ['fbs'] }, + 'image/vnd.fpx': { source: 'iana', extensions: ['fpx'] }, + 'image/vnd.fst': { source: 'iana', extensions: ['fst'] }, + 'image/vnd.fujixerox.edmics-mmr': { source: 'iana', extensions: ['mmr'] }, + 'image/vnd.fujixerox.edmics-rlc': { source: 'iana', extensions: ['rlc'] }, + 'image/vnd.globalgraphics.pgb': { source: 'iana' }, + 'image/vnd.microsoft.icon': { source: 'iana', compressible: !0, extensions: ['ico'] }, + 'image/vnd.mix': { source: 'iana' }, + 'image/vnd.mozilla.apng': { source: 'iana' }, + 'image/vnd.ms-dds': { compressible: !0, extensions: ['dds'] }, + 'image/vnd.ms-modi': { source: 'iana', extensions: ['mdi'] }, + 'image/vnd.ms-photo': { source: 'apache', extensions: ['wdp'] }, + 'image/vnd.net-fpx': { source: 'iana', extensions: ['npx'] }, + 'image/vnd.pco.b16': { source: 'iana', extensions: ['b16'] }, + 'image/vnd.radiance': { source: 'iana' }, + 'image/vnd.sealed.png': { source: 'iana' }, + 'image/vnd.sealedmedia.softseal.gif': { source: 'iana' }, + 'image/vnd.sealedmedia.softseal.jpg': { source: 'iana' }, + 'image/vnd.svf': { source: 'iana' }, + 'image/vnd.tencent.tap': { source: 'iana', extensions: ['tap'] }, + 'image/vnd.valve.source.texture': { source: 'iana', extensions: ['vtf'] }, + 'image/vnd.wap.wbmp': { source: 'iana', extensions: ['wbmp'] }, + 'image/vnd.xiff': { source: 'iana', extensions: ['xif'] }, + 'image/vnd.zbrush.pcx': { source: 'iana', extensions: ['pcx'] }, + 'image/webp': { source: 'apache', extensions: ['webp'] }, + 'image/wmf': { source: 'iana', extensions: ['wmf'] }, + 'image/x-3ds': { source: 'apache', extensions: ['3ds'] }, + 'image/x-cmu-raster': { source: 'apache', extensions: ['ras'] }, + 'image/x-cmx': { source: 'apache', extensions: ['cmx'] }, + 'image/x-freehand': { source: 'apache', extensions: ['fh', 'fhc', 'fh4', 'fh5', 'fh7'] }, + 'image/x-icon': { source: 'apache', compressible: !0, extensions: ['ico'] }, + 'image/x-jng': { source: 'nginx', extensions: ['jng'] }, + 'image/x-mrsid-image': { source: 'apache', extensions: ['sid'] }, + 'image/x-ms-bmp': { source: 'nginx', compressible: !0, extensions: ['bmp'] }, + 'image/x-pcx': { source: 'apache', extensions: ['pcx'] }, + 'image/x-pict': { source: 'apache', extensions: ['pic', 'pct'] }, + 'image/x-portable-anymap': { source: 'apache', extensions: ['pnm'] }, + 'image/x-portable-bitmap': { source: 'apache', extensions: ['pbm'] }, + 'image/x-portable-graymap': { source: 'apache', extensions: ['pgm'] }, + 'image/x-portable-pixmap': { source: 'apache', extensions: ['ppm'] }, + 'image/x-rgb': { source: 'apache', extensions: ['rgb'] }, + 'image/x-tga': { source: 'apache', extensions: ['tga'] }, + 'image/x-xbitmap': { source: 'apache', extensions: ['xbm'] }, + 'image/x-xcf': { compressible: !1 }, + 'image/x-xpixmap': { source: 'apache', extensions: ['xpm'] }, + 'image/x-xwindowdump': { source: 'apache', extensions: ['xwd'] }, + 'message/cpim': { source: 'iana' }, + 'message/delivery-status': { source: 'iana' }, + 'message/disposition-notification': { source: 'iana', extensions: ['disposition-notification'] }, + 'message/external-body': { source: 'iana' }, + 'message/feedback-report': { source: 'iana' }, + 'message/global': { source: 'iana', extensions: ['u8msg'] }, + 'message/global-delivery-status': { source: 'iana', extensions: ['u8dsn'] }, + 'message/global-disposition-notification': { source: 'iana', extensions: ['u8mdn'] }, + 'message/global-headers': { source: 'iana', extensions: ['u8hdr'] }, + 'message/http': { source: 'iana', compressible: !1 }, + 'message/imdn+xml': { source: 'iana', compressible: !0 }, + 'message/news': { source: 'iana' }, + 'message/partial': { source: 'iana', compressible: !1 }, + 'message/rfc822': { source: 'iana', compressible: !0, extensions: ['eml', 'mime'] }, + 'message/s-http': { source: 'iana' }, + 'message/sip': { source: 'iana' }, + 'message/sipfrag': { source: 'iana' }, + 'message/tracking-status': { source: 'iana' }, + 'message/vnd.si.simp': { source: 'iana' }, + 'message/vnd.wfa.wsc': { source: 'iana', extensions: ['wsc'] }, + 'model/3mf': { source: 'iana', extensions: ['3mf'] }, + 'model/e57': { source: 'iana' }, + 'model/gltf+json': { source: 'iana', compressible: !0, extensions: ['gltf'] }, + 'model/gltf-binary': { source: 'iana', compressible: !0, extensions: ['glb'] }, + 'model/iges': { source: 'iana', compressible: !1, extensions: ['igs', 'iges'] }, + 'model/mesh': { source: 'iana', compressible: !1, extensions: ['msh', 'mesh', 'silo'] }, + 'model/mtl': { source: 'iana', extensions: ['mtl'] }, + 'model/obj': { source: 'iana', extensions: ['obj'] }, + 'model/step': { source: 'iana' }, + 'model/step+xml': { source: 'iana', compressible: !0, extensions: ['stpx'] }, + 'model/step+zip': { source: 'iana', compressible: !1, extensions: ['stpz'] }, + 'model/step-xml+zip': { source: 'iana', compressible: !1, extensions: ['stpxz'] }, + 'model/stl': { source: 'iana', extensions: ['stl'] }, + 'model/vnd.collada+xml': { source: 'iana', compressible: !0, extensions: ['dae'] }, + 'model/vnd.dwf': { source: 'iana', extensions: ['dwf'] }, + 'model/vnd.flatland.3dml': { source: 'iana' }, + 'model/vnd.gdl': { source: 'iana', extensions: ['gdl'] }, + 'model/vnd.gs-gdl': { source: 'apache' }, + 'model/vnd.gs.gdl': { source: 'iana' }, + 'model/vnd.gtw': { source: 'iana', extensions: ['gtw'] }, + 'model/vnd.moml+xml': { source: 'iana', compressible: !0 }, + 'model/vnd.mts': { source: 'iana', extensions: ['mts'] }, + 'model/vnd.opengex': { source: 'iana', extensions: ['ogex'] }, + 'model/vnd.parasolid.transmit.binary': { source: 'iana', extensions: ['x_b'] }, + 'model/vnd.parasolid.transmit.text': { source: 'iana', extensions: ['x_t'] }, + 'model/vnd.pytha.pyox': { source: 'iana' }, + 'model/vnd.rosette.annotated-data-model': { source: 'iana' }, + 'model/vnd.sap.vds': { source: 'iana', extensions: ['vds'] }, + 'model/vnd.usdz+zip': { source: 'iana', compressible: !1, extensions: ['usdz'] }, + 'model/vnd.valve.source.compiled-map': { source: 'iana', extensions: ['bsp'] }, + 'model/vnd.vtu': { source: 'iana', extensions: ['vtu'] }, + 'model/vrml': { source: 'iana', compressible: !1, extensions: ['wrl', 'vrml'] }, + 'model/x3d+binary': { source: 'apache', compressible: !1, extensions: ['x3db', 'x3dbz'] }, + 'model/x3d+fastinfoset': { source: 'iana', extensions: ['x3db'] }, + 'model/x3d+vrml': { source: 'apache', compressible: !1, extensions: ['x3dv', 'x3dvz'] }, + 'model/x3d+xml': { source: 'iana', compressible: !0, extensions: ['x3d', 'x3dz'] }, + 'model/x3d-vrml': { source: 'iana', extensions: ['x3dv'] }, + 'multipart/alternative': { source: 'iana', compressible: !1 }, + 'multipart/appledouble': { source: 'iana' }, + 'multipart/byteranges': { source: 'iana' }, + 'multipart/digest': { source: 'iana' }, + 'multipart/encrypted': { source: 'iana', compressible: !1 }, + 'multipart/form-data': { source: 'iana', compressible: !1 }, + 'multipart/header-set': { source: 'iana' }, + 'multipart/mixed': { source: 'iana' }, + 'multipart/multilingual': { source: 'iana' }, + 'multipart/parallel': { source: 'iana' }, + 'multipart/related': { source: 'iana', compressible: !1 }, + 'multipart/report': { source: 'iana' }, + 'multipart/signed': { source: 'iana', compressible: !1 }, + 'multipart/vnd.bint.med-plus': { source: 'iana' }, + 'multipart/voice-message': { source: 'iana' }, + 'multipart/x-mixed-replace': { source: 'iana' }, + 'text/1d-interleaved-parityfec': { source: 'iana' }, + 'text/cache-manifest': { source: 'iana', compressible: !0, extensions: ['appcache', 'manifest'] }, + 'text/calendar': { source: 'iana', extensions: ['ics', 'ifb'] }, + 'text/calender': { compressible: !0 }, + 'text/cmd': { compressible: !0 }, + 'text/coffeescript': { extensions: ['coffee', 'litcoffee'] }, + 'text/cql': { source: 'iana' }, + 'text/cql-expression': { source: 'iana' }, + 'text/cql-identifier': { source: 'iana' }, + 'text/css': { source: 'iana', charset: 'UTF-8', compressible: !0, extensions: ['css'] }, + 'text/csv': { source: 'iana', compressible: !0, extensions: ['csv'] }, + 'text/csv-schema': { source: 'iana' }, + 'text/directory': { source: 'iana' }, + 'text/dns': { source: 'iana' }, + 'text/ecmascript': { source: 'iana' }, + 'text/encaprtp': { source: 'iana' }, + 'text/enriched': { source: 'iana' }, + 'text/fhirpath': { source: 'iana' }, + 'text/flexfec': { source: 'iana' }, + 'text/fwdred': { source: 'iana' }, + 'text/gff3': { source: 'iana' }, + 'text/grammar-ref-list': { source: 'iana' }, + 'text/html': { source: 'iana', compressible: !0, extensions: ['html', 'htm', 'shtml'] }, + 'text/jade': { extensions: ['jade'] }, + 'text/javascript': { source: 'iana', compressible: !0 }, + 'text/jcr-cnd': { source: 'iana' }, + 'text/jsx': { compressible: !0, extensions: ['jsx'] }, + 'text/less': { compressible: !0, extensions: ['less'] }, + 'text/markdown': { source: 'iana', compressible: !0, extensions: ['markdown', 'md'] }, + 'text/mathml': { source: 'nginx', extensions: ['mml'] }, + 'text/mdx': { compressible: !0, extensions: ['mdx'] }, + 'text/mizar': { source: 'iana' }, + 'text/n3': { source: 'iana', charset: 'UTF-8', compressible: !0, extensions: ['n3'] }, + 'text/parameters': { source: 'iana', charset: 'UTF-8' }, + 'text/parityfec': { source: 'iana' }, + 'text/plain': { + source: 'iana', + compressible: !0, + extensions: ['txt', 'text', 'conf', 'def', 'list', 'log', 'in', 'ini'], + }, + 'text/provenance-notation': { source: 'iana', charset: 'UTF-8' }, + 'text/prs.fallenstein.rst': { source: 'iana' }, + 'text/prs.lines.tag': { source: 'iana', extensions: ['dsc'] }, + 'text/prs.prop.logic': { source: 'iana' }, + 'text/raptorfec': { source: 'iana' }, + 'text/red': { source: 'iana' }, + 'text/rfc822-headers': { source: 'iana' }, + 'text/richtext': { source: 'iana', compressible: !0, extensions: ['rtx'] }, + 'text/rtf': { source: 'iana', compressible: !0, extensions: ['rtf'] }, + 'text/rtp-enc-aescm128': { source: 'iana' }, + 'text/rtploopback': { source: 'iana' }, + 'text/rtx': { source: 'iana' }, + 'text/sgml': { source: 'iana', extensions: ['sgml', 'sgm'] }, + 'text/shaclc': { source: 'iana' }, + 'text/shex': { source: 'iana', extensions: ['shex'] }, + 'text/slim': { extensions: ['slim', 'slm'] }, + 'text/spdx': { source: 'iana', extensions: ['spdx'] }, + 'text/strings': { source: 'iana' }, + 'text/stylus': { extensions: ['stylus', 'styl'] }, + 'text/t140': { source: 'iana' }, + 'text/tab-separated-values': { source: 'iana', compressible: !0, extensions: ['tsv'] }, + 'text/troff': { source: 'iana', extensions: ['t', 'tr', 'roff', 'man', 'me', 'ms'] }, + 'text/turtle': { source: 'iana', charset: 'UTF-8', extensions: ['ttl'] }, + 'text/ulpfec': { source: 'iana' }, + 'text/uri-list': { source: 'iana', compressible: !0, extensions: ['uri', 'uris', 'urls'] }, + 'text/vcard': { source: 'iana', compressible: !0, extensions: ['vcard'] }, + 'text/vnd.a': { source: 'iana' }, + 'text/vnd.abc': { source: 'iana' }, + 'text/vnd.ascii-art': { source: 'iana' }, + 'text/vnd.curl': { source: 'iana', extensions: ['curl'] }, + 'text/vnd.curl.dcurl': { source: 'apache', extensions: ['dcurl'] }, + 'text/vnd.curl.mcurl': { source: 'apache', extensions: ['mcurl'] }, + 'text/vnd.curl.scurl': { source: 'apache', extensions: ['scurl'] }, + 'text/vnd.debian.copyright': { source: 'iana', charset: 'UTF-8' }, + 'text/vnd.dmclientscript': { source: 'iana' }, + 'text/vnd.dvb.subtitle': { source: 'iana', extensions: ['sub'] }, + 'text/vnd.esmertec.theme-descriptor': { source: 'iana', charset: 'UTF-8' }, + 'text/vnd.familysearch.gedcom': { source: 'iana', extensions: ['ged'] }, + 'text/vnd.ficlab.flt': { source: 'iana' }, + 'text/vnd.fly': { source: 'iana', extensions: ['fly'] }, + 'text/vnd.fmi.flexstor': { source: 'iana', extensions: ['flx'] }, + 'text/vnd.gml': { source: 'iana' }, + 'text/vnd.graphviz': { source: 'iana', extensions: ['gv'] }, + 'text/vnd.hans': { source: 'iana' }, + 'text/vnd.hgl': { source: 'iana' }, + 'text/vnd.in3d.3dml': { source: 'iana', extensions: ['3dml'] }, + 'text/vnd.in3d.spot': { source: 'iana', extensions: ['spot'] }, + 'text/vnd.iptc.newsml': { source: 'iana' }, + 'text/vnd.iptc.nitf': { source: 'iana' }, + 'text/vnd.latex-z': { source: 'iana' }, + 'text/vnd.motorola.reflex': { source: 'iana' }, + 'text/vnd.ms-mediapackage': { source: 'iana' }, + 'text/vnd.net2phone.commcenter.command': { source: 'iana' }, + 'text/vnd.radisys.msml-basic-layout': { source: 'iana' }, + 'text/vnd.senx.warpscript': { source: 'iana' }, + 'text/vnd.si.uricatalogue': { source: 'iana' }, + 'text/vnd.sosi': { source: 'iana' }, + 'text/vnd.sun.j2me.app-descriptor': { source: 'iana', charset: 'UTF-8', extensions: ['jad'] }, + 'text/vnd.trolltech.linguist': { source: 'iana', charset: 'UTF-8' }, + 'text/vnd.wap.si': { source: 'iana' }, + 'text/vnd.wap.sl': { source: 'iana' }, + 'text/vnd.wap.wml': { source: 'iana', extensions: ['wml'] }, + 'text/vnd.wap.wmlscript': { source: 'iana', extensions: ['wmls'] }, + 'text/vtt': { source: 'iana', charset: 'UTF-8', compressible: !0, extensions: ['vtt'] }, + 'text/x-asm': { source: 'apache', extensions: ['s', 'asm'] }, + 'text/x-c': { source: 'apache', extensions: ['c', 'cc', 'cxx', 'cpp', 'h', 'hh', 'dic'] }, + 'text/x-component': { source: 'nginx', extensions: ['htc'] }, + 'text/x-fortran': { source: 'apache', extensions: ['f', 'for', 'f77', 'f90'] }, + 'text/x-gwt-rpc': { compressible: !0 }, + 'text/x-handlebars-template': { extensions: ['hbs'] }, + 'text/x-java-source': { source: 'apache', extensions: ['java'] }, + 'text/x-jquery-tmpl': { compressible: !0 }, + 'text/x-lua': { extensions: ['lua'] }, + 'text/x-markdown': { compressible: !0, extensions: ['mkd'] }, + 'text/x-nfo': { source: 'apache', extensions: ['nfo'] }, + 'text/x-opml': { source: 'apache', extensions: ['opml'] }, + 'text/x-org': { compressible: !0, extensions: ['org'] }, + 'text/x-pascal': { source: 'apache', extensions: ['p', 'pas'] }, + 'text/x-processing': { compressible: !0, extensions: ['pde'] }, + 'text/x-sass': { extensions: ['sass'] }, + 'text/x-scss': { extensions: ['scss'] }, + 'text/x-setext': { source: 'apache', extensions: ['etx'] }, + 'text/x-sfv': { source: 'apache', extensions: ['sfv'] }, + 'text/x-suse-ymp': { compressible: !0, extensions: ['ymp'] }, + 'text/x-uuencode': { source: 'apache', extensions: ['uu'] }, + 'text/x-vcalendar': { source: 'apache', extensions: ['vcs'] }, + 'text/x-vcard': { source: 'apache', extensions: ['vcf'] }, + 'text/xml': { source: 'iana', compressible: !0, extensions: ['xml'] }, + 'text/xml-external-parsed-entity': { source: 'iana' }, + 'text/yaml': { compressible: !0, extensions: ['yaml', 'yml'] }, + 'video/1d-interleaved-parityfec': { source: 'iana' }, + 'video/3gpp': { source: 'iana', extensions: ['3gp', '3gpp'] }, + 'video/3gpp-tt': { source: 'iana' }, + 'video/3gpp2': { source: 'iana', extensions: ['3g2'] }, + 'video/av1': { source: 'iana' }, + 'video/bmpeg': { source: 'iana' }, + 'video/bt656': { source: 'iana' }, + 'video/celb': { source: 'iana' }, + 'video/dv': { source: 'iana' }, + 'video/encaprtp': { source: 'iana' }, + 'video/ffv1': { source: 'iana' }, + 'video/flexfec': { source: 'iana' }, + 'video/h261': { source: 'iana', extensions: ['h261'] }, + 'video/h263': { source: 'iana', extensions: ['h263'] }, + 'video/h263-1998': { source: 'iana' }, + 'video/h263-2000': { source: 'iana' }, + 'video/h264': { source: 'iana', extensions: ['h264'] }, + 'video/h264-rcdo': { source: 'iana' }, + 'video/h264-svc': { source: 'iana' }, + 'video/h265': { source: 'iana' }, + 'video/iso.segment': { source: 'iana', extensions: ['m4s'] }, + 'video/jpeg': { source: 'iana', extensions: ['jpgv'] }, + 'video/jpeg2000': { source: 'iana' }, + 'video/jpm': { source: 'apache', extensions: ['jpm', 'jpgm'] }, + 'video/jxsv': { source: 'iana' }, + 'video/mj2': { source: 'iana', extensions: ['mj2', 'mjp2'] }, + 'video/mp1s': { source: 'iana' }, + 'video/mp2p': { source: 'iana' }, + 'video/mp2t': { source: 'iana', extensions: ['ts'] }, + 'video/mp4': { source: 'iana', compressible: !1, extensions: ['mp4', 'mp4v', 'mpg4'] }, + 'video/mp4v-es': { source: 'iana' }, + 'video/mpeg': { source: 'iana', compressible: !1, extensions: ['mpeg', 'mpg', 'mpe', 'm1v', 'm2v'] }, + 'video/mpeg4-generic': { source: 'iana' }, + 'video/mpv': { source: 'iana' }, + 'video/nv': { source: 'iana' }, + 'video/ogg': { source: 'iana', compressible: !1, extensions: ['ogv'] }, + 'video/parityfec': { source: 'iana' }, + 'video/pointer': { source: 'iana' }, + 'video/quicktime': { source: 'iana', compressible: !1, extensions: ['qt', 'mov'] }, + 'video/raptorfec': { source: 'iana' }, + 'video/raw': { source: 'iana' }, + 'video/rtp-enc-aescm128': { source: 'iana' }, + 'video/rtploopback': { source: 'iana' }, + 'video/rtx': { source: 'iana' }, + 'video/scip': { source: 'iana' }, + 'video/smpte291': { source: 'iana' }, + 'video/smpte292m': { source: 'iana' }, + 'video/ulpfec': { source: 'iana' }, + 'video/vc1': { source: 'iana' }, + 'video/vc2': { source: 'iana' }, + 'video/vnd.cctv': { source: 'iana' }, + 'video/vnd.dece.hd': { source: 'iana', extensions: ['uvh', 'uvvh'] }, + 'video/vnd.dece.mobile': { source: 'iana', extensions: ['uvm', 'uvvm'] }, + 'video/vnd.dece.mp4': { source: 'iana' }, + 'video/vnd.dece.pd': { source: 'iana', extensions: ['uvp', 'uvvp'] }, + 'video/vnd.dece.sd': { source: 'iana', extensions: ['uvs', 'uvvs'] }, + 'video/vnd.dece.video': { source: 'iana', extensions: ['uvv', 'uvvv'] }, + 'video/vnd.directv.mpeg': { source: 'iana' }, + 'video/vnd.directv.mpeg-tts': { source: 'iana' }, + 'video/vnd.dlna.mpeg-tts': { source: 'iana' }, + 'video/vnd.dvb.file': { source: 'iana', extensions: ['dvb'] }, + 'video/vnd.fvt': { source: 'iana', extensions: ['fvt'] }, + 'video/vnd.hns.video': { source: 'iana' }, + 'video/vnd.iptvforum.1dparityfec-1010': { source: 'iana' }, + 'video/vnd.iptvforum.1dparityfec-2005': { source: 'iana' }, + 'video/vnd.iptvforum.2dparityfec-1010': { source: 'iana' }, + 'video/vnd.iptvforum.2dparityfec-2005': { source: 'iana' }, + 'video/vnd.iptvforum.ttsavc': { source: 'iana' }, + 'video/vnd.iptvforum.ttsmpeg2': { source: 'iana' }, + 'video/vnd.motorola.video': { source: 'iana' }, + 'video/vnd.motorola.videop': { source: 'iana' }, + 'video/vnd.mpegurl': { source: 'iana', extensions: ['mxu', 'm4u'] }, + 'video/vnd.ms-playready.media.pyv': { source: 'iana', extensions: ['pyv'] }, + 'video/vnd.nokia.interleaved-multimedia': { source: 'iana' }, + 'video/vnd.nokia.mp4vr': { source: 'iana' }, + 'video/vnd.nokia.videovoip': { source: 'iana' }, + 'video/vnd.objectvideo': { source: 'iana' }, + 'video/vnd.radgamettools.bink': { source: 'iana' }, + 'video/vnd.radgamettools.smacker': { source: 'iana' }, + 'video/vnd.sealed.mpeg1': { source: 'iana' }, + 'video/vnd.sealed.mpeg4': { source: 'iana' }, + 'video/vnd.sealed.swf': { source: 'iana' }, + 'video/vnd.sealedmedia.softseal.mov': { source: 'iana' }, + 'video/vnd.uvvu.mp4': { source: 'iana', extensions: ['uvu', 'uvvu'] }, + 'video/vnd.vivo': { source: 'iana', extensions: ['viv'] }, + 'video/vnd.youtube.yt': { source: 'iana' }, + 'video/vp8': { source: 'iana' }, + 'video/vp9': { source: 'iana' }, + 'video/webm': { source: 'apache', compressible: !1, extensions: ['webm'] }, + 'video/x-f4v': { source: 'apache', extensions: ['f4v'] }, + 'video/x-fli': { source: 'apache', extensions: ['fli'] }, + 'video/x-flv': { source: 'apache', compressible: !1, extensions: ['flv'] }, + 'video/x-m4v': { source: 'apache', extensions: ['m4v'] }, + 'video/x-matroska': { source: 'apache', compressible: !1, extensions: ['mkv', 'mk3d', 'mks'] }, + 'video/x-mng': { source: 'apache', extensions: ['mng'] }, + 'video/x-ms-asf': { source: 'apache', extensions: ['asf', 'asx'] }, + 'video/x-ms-vob': { source: 'apache', extensions: ['vob'] }, + 'video/x-ms-wm': { source: 'apache', extensions: ['wm'] }, + 'video/x-ms-wmv': { source: 'apache', compressible: !1, extensions: ['wmv'] }, + 'video/x-ms-wmx': { source: 'apache', extensions: ['wmx'] }, + 'video/x-ms-wvx': { source: 'apache', extensions: ['wvx'] }, + 'video/x-msvideo': { source: 'apache', extensions: ['avi'] }, + 'video/x-sgi-movie': { source: 'apache', extensions: ['movie'] }, + 'video/x-smv': { source: 'apache', extensions: ['smv'] }, + 'x-conference/x-cooltalk': { source: 'apache', extensions: ['ice'] }, + 'x-shader/x-fragment': { compressible: !0 }, + 'x-shader/x-vertex': { compressible: !0 }, + }; +}); +var sse = d((rWt, ose) => { + ose.exports = ase(); +}); +var pse = d((Dn) => { + 'use strict'; + var nw = sse(), + yit = require('path').extname, + lse = /^\s*([^;\s]*)(?:;|\s|$)/, + bit = /^text\//i; + Dn.charset = use; + Dn.charsets = { lookup: use }; + Dn.contentType = _it; + Dn.extension = wit; + Dn.extensions = Object.create(null); + Dn.lookup = Sit; + Dn.types = Object.create(null); + Eit(Dn.extensions, Dn.types); + function use(e) { + if (!e || typeof e != 'string') return !1; + var t = lse.exec(e), + r = t && nw[t[1].toLowerCase()]; + return r && r.charset ? r.charset : t && bit.test(t[1]) ? 'UTF-8' : !1; + } + function _it(e) { + if (!e || typeof e != 'string') return !1; + var t = e.indexOf('/') === -1 ? Dn.lookup(e) : e; + if (!t) return !1; + if (t.indexOf('charset') === -1) { + var r = Dn.charset(t); + r && (t += '; charset=' + r.toLowerCase()); + } + return t; + } + function wit(e) { + if (!e || typeof e != 'string') return !1; + var t = lse.exec(e), + r = t && Dn.extensions[t[1].toLowerCase()]; + return !r || !r.length ? !1 : r[0]; + } + function Sit(e) { + if (!e || typeof e != 'string') return !1; + var t = yit('x.' + e) + .toLowerCase() + .substr(1); + return (t && Dn.types[t]) || !1; + } + function Eit(e, t) { + var r = ['nginx', 'apache', void 0, 'iana']; + Object.keys(nw).forEach(function (a) { + var o = nw[a], + s = o.extensions; + if (!(!s || !s.length)) { + e[a] = s; + for (var l = 0; l < s.length; l++) { + var u = s[l]; + if (t[u]) { + var p = r.indexOf(nw[t[u]].source), + c = r.indexOf(o.source); + if (t[u] !== 'application/octet-stream' && (p > c || (p === c && t[u].substr(0, 12) === 'application/'))) + continue; + } + t[u] = a; + } + } + }); + } +}); +var dse = d((nWt, cse) => { + cse.exports = xit; + function xit(e) { + var t = + typeof setImmediate == 'function' + ? setImmediate + : typeof process == 'object' && typeof process.nextTick == 'function' + ? process.nextTick + : null; + t ? t(e) : setTimeout(e, 0); + } +}); +var Ik = d((aWt, mse) => { + var fse = dse(); + mse.exports = Oit; + function Oit(e) { + var t = !1; + return ( + fse(function () { + t = !0; + }), + function (n, a) { + t + ? e(n, a) + : fse(function () { + e(n, a); + }); + } + ); + } +}); +var Pk = d((oWt, hse) => { + hse.exports = Tit; + function Tit(e) { + Object.keys(e.jobs).forEach(Cit.bind(e)), (e.jobs = {}); + } + function Cit(e) { + typeof this.jobs[e] == 'function' && this.jobs[e](); + } +}); +var Rk = d((sWt, vse) => { + var gse = Ik(), + kit = Pk(); + vse.exports = Ait; + function Ait(e, t, r, n) { + var a = r.keyedList ? r.keyedList[r.index] : r.index; + r.jobs[a] = Iit(t, a, e[a], function (o, s) { + a in r.jobs && (delete r.jobs[a], o ? kit(r) : (r.results[a] = s), n(o, r.results)); + }); + } + function Iit(e, t, r, n) { + var a; + return e.length == 2 ? (a = e(r, gse(n))) : (a = e(r, t, gse(n))), a; + } +}); +var jk = d((lWt, yse) => { + yse.exports = Pit; + function Pit(e, t) { + var r = !Array.isArray(e), + n = { + index: 0, + keyedList: r || t ? Object.keys(e) : null, + jobs: {}, + results: r ? {} : [], + size: r ? Object.keys(e).length : e.length, + }; + return ( + t && + n.keyedList.sort( + r + ? t + : function (a, o) { + return t(e[a], e[o]); + } + ), + n + ); + } +}); +var Dk = d((uWt, bse) => { + var Rit = Pk(), + jit = Ik(); + bse.exports = Dit; + function Dit(e) { + Object.keys(this.jobs).length && ((this.index = this.size), Rit(this), jit(e)(null, this.results)); + } +}); +var wse = d((pWt, _se) => { + var Nit = Rk(), + qit = jk(), + Fit = Dk(); + _se.exports = Lit; + function Lit(e, t, r) { + for (var n = qit(e); n.index < (n.keyedList || e).length; ) + Nit(e, t, n, function (a, o) { + if (a) { + r(a, o); + return; + } + if (Object.keys(n.jobs).length === 0) { + r(null, n.results); + return; + } + }), + n.index++; + return Fit.bind(n, r); + } +}); +var Nk = d((cWt, aw) => { + var Sse = Rk(), + Mit = jk(), + Uit = Dk(); + aw.exports = $it; + aw.exports.ascending = Ese; + aw.exports.descending = Bit; + function $it(e, t, r, n) { + var a = Mit(e, r); + return ( + Sse(e, t, a, function o(s, l) { + if (s) { + n(s, l); + return; + } + if ((a.index++, a.index < (a.keyedList || e).length)) { + Sse(e, t, a, o); + return; + } + n(null, a.results); + }), + Uit.bind(a, n) + ); + } + function Ese(e, t) { + return e < t ? -1 : e > t ? 1 : 0; + } + function Bit(e, t) { + return -1 * Ese(e, t); + } +}); +var Ose = d((dWt, xse) => { + var Vit = Nk(); + xse.exports = zit; + function zit(e, t, r) { + return Vit(e, t, null, r); + } +}); +var Cse = d((fWt, Tse) => { + Tse.exports = { parallel: wse(), serial: Ose(), serialOrdered: Nk() }; +}); +var Ase = d((mWt, kse) => { + kse.exports = function (e, t) { + return ( + Object.keys(t).forEach(function (r) { + e[r] = e[r] || t[r]; + }), + e + ); + }; +}); +var yv = d((hWt, Pse) => { + var Mk = nse(), + Ise = require('util'), + qk = require('path'), + Hit = require('http'), + Git = require('https'), + Wit = require('url').parse, + Kit = require('fs'), + Xit = require('stream').Stream, + Fk = pse(), + Jit = Cse(), + Lk = Ase(); + Pse.exports = et; + Ise.inherits(et, Mk); + function et(e) { + if (!(this instanceof et)) return new et(e); + (this._overheadLength = 0), (this._valueLength = 0), (this._valuesToMeasure = []), Mk.call(this), (e = e || {}); + for (var t in e) this[t] = e[t]; + } + et.LINE_BREAK = `\r +`; + et.DEFAULT_CONTENT_TYPE = 'application/octet-stream'; + et.prototype.append = function (e, t, r) { + (r = r || {}), typeof r == 'string' && (r = { filename: r }); + var n = Mk.prototype.append.bind(this); + if ((typeof t == 'number' && (t = '' + t), Ise.isArray(t))) { + this._error(new Error('Arrays are not supported.')); + return; + } + var a = this._multiPartHeader(e, t, r), + o = this._multiPartFooter(); + n(a), n(t), n(o), this._trackLength(a, t, r); + }; + et.prototype._trackLength = function (e, t, r) { + var n = 0; + r.knownLength != null + ? (n += +r.knownLength) + : Buffer.isBuffer(t) + ? (n = t.length) + : typeof t == 'string' && (n = Buffer.byteLength(t)), + (this._valueLength += n), + (this._overheadLength += Buffer.byteLength(e) + et.LINE_BREAK.length), + !(!t || (!t.path && !(t.readable && t.hasOwnProperty('httpVersion')) && !(t instanceof Xit))) && + (r.knownLength || this._valuesToMeasure.push(t)); + }; + et.prototype._lengthRetriever = function (e, t) { + e.hasOwnProperty('fd') + ? e.end != null && e.end != 1 / 0 && e.start != null + ? t(null, e.end + 1 - (e.start ? e.start : 0)) + : Kit.stat(e.path, function (r, n) { + var a; + if (r) { + t(r); + return; + } + (a = n.size - (e.start ? e.start : 0)), t(null, a); + }) + : e.hasOwnProperty('httpVersion') + ? t(null, +e.headers['content-length']) + : e.hasOwnProperty('httpModule') + ? (e.on('response', function (r) { + e.pause(), t(null, +r.headers['content-length']); + }), + e.resume()) + : t('Unknown stream'); + }; + et.prototype._multiPartHeader = function (e, t, r) { + if (typeof r.header == 'string') return r.header; + var n = this._getContentDisposition(t, r), + a = this._getContentType(t, r), + o = '', + s = { + 'Content-Disposition': ['form-data', 'name="' + e + '"'].concat(n || []), + 'Content-Type': [].concat(a || []), + }; + typeof r.header == 'object' && Lk(s, r.header); + var l; + for (var u in s) + s.hasOwnProperty(u) && + ((l = s[u]), + l != null && (Array.isArray(l) || (l = [l]), l.length && (o += u + ': ' + l.join('; ') + et.LINE_BREAK))); + return '--' + this.getBoundary() + et.LINE_BREAK + o + et.LINE_BREAK; + }; + et.prototype._getContentDisposition = function (e, t) { + var r, n; + return ( + typeof t.filepath == 'string' + ? (r = qk.normalize(t.filepath).replace(/\\/g, '/')) + : t.filename || e.name || e.path + ? (r = qk.basename(t.filename || e.name || e.path)) + : e.readable && e.hasOwnProperty('httpVersion') && (r = qk.basename(e.client._httpMessage.path || '')), + r && (n = 'filename="' + r + '"'), + n + ); + }; + et.prototype._getContentType = function (e, t) { + var r = t.contentType; + return ( + !r && e.name && (r = Fk.lookup(e.name)), + !r && e.path && (r = Fk.lookup(e.path)), + !r && e.readable && e.hasOwnProperty('httpVersion') && (r = e.headers['content-type']), + !r && (t.filepath || t.filename) && (r = Fk.lookup(t.filepath || t.filename)), + !r && typeof e == 'object' && (r = et.DEFAULT_CONTENT_TYPE), + r + ); + }; + et.prototype._multiPartFooter = function () { + return function (e) { + var t = et.LINE_BREAK, + r = this._streams.length === 0; + r && (t += this._lastBoundary()), e(t); + }.bind(this); + }; + et.prototype._lastBoundary = function () { + return '--' + this.getBoundary() + '--' + et.LINE_BREAK; + }; + et.prototype.getHeaders = function (e) { + var t, + r = { 'content-type': 'multipart/form-data; boundary=' + this.getBoundary() }; + for (t in e) e.hasOwnProperty(t) && (r[t.toLowerCase()] = e[t]); + return r; + }; + et.prototype.setBoundary = function (e) { + this._boundary = e; + }; + et.prototype.getBoundary = function () { + return this._boundary || this._generateBoundary(), this._boundary; + }; + et.prototype.getBuffer = function () { + for (var e = new Buffer.alloc(0), t = this.getBoundary(), r = 0, n = this._streams.length; r < n; r++) + typeof this._streams[r] != 'function' && + (Buffer.isBuffer(this._streams[r]) + ? (e = Buffer.concat([e, this._streams[r]])) + : (e = Buffer.concat([e, Buffer.from(this._streams[r])])), + (typeof this._streams[r] != 'string' || this._streams[r].substring(2, t.length + 2) !== t) && + (e = Buffer.concat([e, Buffer.from(et.LINE_BREAK)]))); + return Buffer.concat([e, Buffer.from(this._lastBoundary())]); + }; + et.prototype._generateBoundary = function () { + for (var e = '--------------------------', t = 0; t < 24; t++) e += Math.floor(Math.random() * 10).toString(16); + this._boundary = e; + }; + et.prototype.getLengthSync = function () { + var e = this._overheadLength + this._valueLength; + return ( + this._streams.length && (e += this._lastBoundary().length), + this.hasKnownLength() || this._error(new Error('Cannot calculate proper length in synchronous way.')), + e + ); + }; + et.prototype.hasKnownLength = function () { + var e = !0; + return this._valuesToMeasure.length && (e = !1), e; + }; + et.prototype.getLength = function (e) { + var t = this._overheadLength + this._valueLength; + if ((this._streams.length && (t += this._lastBoundary().length), !this._valuesToMeasure.length)) { + process.nextTick(e.bind(this, null, t)); + return; + } + Jit.parallel(this._valuesToMeasure, this._lengthRetriever, function (r, n) { + if (r) { + e(r); + return; + } + n.forEach(function (a) { + t += a; + }), + e(null, t); + }); + }; + et.prototype.submit = function (e, t) { + var r, + n, + a = { method: 'post' }; + return ( + typeof e == 'string' + ? ((e = Wit(e)), (n = Lk({ port: e.port, path: e.pathname, host: e.hostname, protocol: e.protocol }, a))) + : ((n = Lk(e, a)), n.port || (n.port = n.protocol == 'https:' ? 443 : 80)), + (n.headers = this.getHeaders(e.headers)), + n.protocol == 'https:' ? (r = Git.request(n)) : (r = Hit.request(n)), + this.getLength( + function (o, s) { + if (o && o !== 'Unknown stream') { + this._error(o); + return; + } + if ((s && r.setHeader('Content-Length', s), this.pipe(r), t)) { + var l, + u = function (p, c) { + return r.removeListener('error', u), r.removeListener('response', l), t.call(this, p, c); + }; + (l = u.bind(this, null)), r.on('error', u), r.on('response', l); + } + }.bind(this) + ), + r + ); + }; + et.prototype._error = function (e) { + this.error || ((this.error = e), this.pause(), this.emit('error', e)); + }; + et.prototype.toString = function () { + return '[object FormData]'; + }; +}); +var Bse = d((Wm) => { + 'use strict'; + var ow = Ce(), + Mse = ge(), + Yit = Ur(), + Rse = $r(), + jse = Bt(), + Use = Br(), + Qit = Qt(), + Dse = Vr(), + Zit = Ve(); + Zt(); + Mse(Wm, '__esModule', { value: !0 }); + Wm.createHttpRequestHandlerStreams = int; + Wm.isRedirect = ant; + Wm.performRedirectRequest = snt; + Wm.executeWithTimeout = lnt; + var ent = ow(joe()), + tnt = ow(Ye()), + $se = ow(Gm()), + Nse = require('stream'), + qse = vv(), + rnt = ow(yv()); + function Fse(e, t) { + var r = Zit(e); + if (Dse) { + var n = Dse(e); + t && + (n = Qit(n).call(n, function (a) { + return Use(e, a).enumerable; + })), + r.push.apply(r, n); + } + return r; + } + function Lse(e) { + for (var t = 1; t < arguments.length; t++) { + var r = arguments[t] != null ? arguments[t] : {}; + if (t % 2) { + var n; + jse((n = Fse(Object(r), !0))).call(n, function (o) { + (0, tnt.default)(e, o, r[o]); + }); + } else if (Rse) Yit(e, Rse(r)); + else { + var a; + jse((a = Fse(Object(r)))).call(a, function (o) { + Mse(e, o, Use(r, o)); + }); + } + } + return e; + } + function int(e, t = {}) { + let { body: r } = e, + n = new Nse.PassThrough(), + a = new Nse.PassThrough(), + o = (0, qse.concatStreamsAsDuplex)(n, a); + return ( + typeof r < 'u' && + (0, $se.default)(() => { + r instanceof rnt.default ? o.end(r.getBuffer()) : o.end(r, 'utf8'); + }, 0), + o.on('response', async (s) => { + if (o.listenerCount('complete') > 0) { + let l = await (0, qse.readAll)(o, t.encoding); + o.emit('complete', Lse(Lse({}, s), {}, { body: l })); + } + }), + { input: n, output: a, stream: o } + ); + } + var nnt = new ent.default([301, 302, 303, 307, 308]); + function ant(e) { + return nnt.has(e); + } + var ont = 10; + function snt(e, t, r, n, a) { + if (n >= ont) throw new Error('Reached to maximum redirect count'); + let o = t.headers.location; + if (!o) throw new Error('No redirect URI found'); + let l = (typeof r == 'function' ? r : () => ({ method: 'GET', url: o, headers: e.headers }))(o); + if (!l) throw new Error('Cannot handle redirect for ' + o); + a(l); + } + async function lnt(e, t, r) { + let n = !1, + a = + t != null + ? (0, $se.default)(() => { + (n = !0), r?.(); + }, t) + : void 0, + o; + try { + o = await e(); + } finally { + a && clearTimeout(a); + } + if (n) throw new Error('Request Timeout'); + return o; + } +}); +var Yse = d((lw) => { + 'use strict'; + var Km = Ce(), + Wse = ge(), + unt = Ur(), + Vse = $r(), + zse = Bt(), + Kse = Br(), + pnt = Qt(), + Hse = Vr(), + cnt = Ve(); + kr(); + Zt(); + Wse(lw, '__esModule', { value: !0 }); + lw.setDefaults = ynt; + lw.default = bnt; + var dnt = Km(eae()), + fnt = Km(Ye()), + mnt = Km(Ro()), + hnt = Km(Mae()), + gnt = Km(Qae()), + vnt = Km(boe()), + sw = Bse(); + function Gse(e, t) { + var r = cnt(e); + if (Hse) { + var n = Hse(e); + t && + (n = pnt(n).call(n, function (a) { + return Kse(e, a).enumerable; + })), + r.push.apply(r, n); + } + return r; + } + function bv(e) { + for (var t = 1; t < arguments.length; t++) { + var r = arguments[t] != null ? arguments[t] : {}; + if (t % 2) { + var n; + zse((n = Gse(Object(r), !0))).call(n, function (o) { + (0, fnt.default)(e, o, r[o]); + }); + } else if (Vse) unt(e, Vse(r)); + else { + var a; + zse((a = Gse(Object(r)))).call(a, function (o) { + Wse(e, o, Kse(r, o)); + }); + } + } + return e; + } + var Xse = {}; + function ynt(e) { + Xse = e; + } + async function Jse(e, t, r, n, a, o = 0) { + let { httpProxy: s, followRedirect: l } = t, + u = s ? (0, vnt.default)(s) : void 0, + { url: p, body: c } = e, + f = (0, mnt.default)(e, ['url', 'body']), + h = new gnt.default(), + m; + try { + m = await (0, sw.executeWithTimeout)( + () => + (0, hnt.default)( + p, + bv( + bv(bv({}, f), r && /^(post|put|patch)$/i.test(e.method) ? { body: r } : {}), + {}, + { redirect: 'manual', signal: h.signal, agent: u } + ) + ), + t.timeout, + () => h.abort() + ); + } catch (w) { + a.emit('error', w); + return; + } + let v = {}; + for (let w of (0, dnt.default)((y = m.headers)).call(y)) { + var y; + v[w.toLowerCase()] = m.headers.get(w); + } + let S = { statusCode: m.status, headers: v }; + if (l && (0, sw.isRedirect)(S.statusCode)) { + try { + (0, sw.performRedirectRequest)(e, S, l, o, (w) => Jse(w, t, void 0, n, a, o + 1)); + } catch (w) { + a.emit('error', w); + } + return; + } + a.emit('response', S), m.body.pipe(n); + } + function bnt(e, t = {}) { + let r = bv(bv({}, Xse), t), + { input: n, output: a, stream: o } = (0, sw.createHttpRequestHandlerStreams)(e, r); + return Jse(e, r, n, a, o), o; + } +}); +var $k = d((uw) => { + 'use strict'; + var _nt = Ce(), + wnt = ge(); + wnt(uw, '__esModule', { value: !0 }); + uw.StreamPromise = void 0; + var Snt = _nt(cn()), + Ent = require('stream'), + Uk = class e extends Snt.default { + stream() { + return new Ent.Duplex(); + } + static create(t) { + let { stream: r, promise: n } = t(), + a = new e((o, s) => { + n.then(o, s); + }); + return (a.stream = () => r), a; + } + }; + uw.StreamPromise = Uk; +}); +var Zse = d((cw) => { + 'use strict'; + var pw = Ce(), + xnt = ge(); + Zt(); + xnt(cw, '__esModule', { value: !0 }); + cw.default = void 0; + var Ont = pw(sa()), + Tnt = pw(Gm()), + Cnt = pw(cn()), + knt = pw(Xu()), + Ant = require('stream'), + Qse = 0; + async function Int(e, t, r) { + if (e.method.toUpperCase() !== 'GET') throw new Error('JSONP only supports GET request.'); + Qse += 1; + let n = `_jsforce_jsonpCallback_${Qse}`, + a = window, + o = e.url; + (o += (0, knt.default)(o).call(o, '?') > 0 ? '&' : '?'), (o += `${t}=${n}`); + let s = document.createElement('script'); + (s.type = 'text/javascript'), (s.src = o), document.documentElement && document.documentElement.appendChild(s); + let l; + try { + let u = await new Cnt.default((p, c) => { + (l = (0, Tnt.default)(() => { + c(new Error('JSONP call time out.')); + }, r)), + (a[n] = p); + }); + return { statusCode: 200, headers: { 'content-type': 'application/json' }, body: (0, Ont.default)(u) }; + } finally { + clearTimeout(l), document.documentElement && document.documentElement.removeChild(s), delete a[n]; + } + } + function Pnt(e = 'callback', t = 1e4) { + return (r) => { + let n = new Ant.Transform({ + transform(a, o, s) { + s(); + }, + flush() { + (async () => { + let a = await Int(r, e, t); + n.emit('response', a), n.emit('complete', a), n.push(a.body), n.push(null); + })(); + }, + }); + return n.end(), n; + }; + } + var Rnt = { supported: typeof window < 'u' && typeof document < 'u', createRequest: Pnt }; + cw.default = Rnt; +}); +var ele = d((dw) => { + 'use strict'; + var Bk = Ce(), + jnt = ge(); + kr(); + Zt(); + jnt(dw, '__esModule', { value: !0 }); + dw.default = void 0; + var Dnt = Bk(sa()), + Nnt = Bk(cn()), + qnt = Bk(Ve()), + Fnt = require('stream'); + function Lnt(e) { + let t = {}; + for (let r of e.split(/\n/)) { + let [n, a] = r.split(/\s*:\s*/); + t[n.toLowerCase()] = a; + } + return t; + } + async function Mnt(e, t, r) { + let n = { client: t.client, method: e.method, data: r }, + a = e.headers; + if (a) { + n.headers = {}; + for (let u of (0, qnt.default)(a)) + u.toLowerCase() === 'content-type' ? (n.contentType = a[u]) : (n.headers[u] = a[u]); + } + let o = await new Nnt.default((u, p) => { + (n.success = u), (n.failure = p), Sfdc.canvas.client.ajax(e.url, n); + }), + s = Lnt(o.responseHeaders), + l = o.payload; + return typeof l != 'string' && (l = (0, Dnt.default)(l)), { statusCode: o.status, headers: s, body: l }; + } + function Unt(e) { + return (t) => { + let r = [], + n = new Fnt.Transform({ + transform(a, o, s) { + r.push(typeof a == 'string' ? a : a.toString('utf8')), s(); + }, + flush() { + (async () => { + let a = r.join(''), + o = await Mnt(t, e, a); + n.emit('response', o), n.emit('complete', o), n.push(o.body), n.push(null); + })(); + }, + }); + return t.body && n.end(t.body), n; + }; + } + var $nt = { supported: typeof Sfdc == 'object' && typeof Sfdc.canvas < 'u', createRequest: Unt }; + dw.default = $nt; +}); +var _v = d((Nn) => { + 'use strict'; + var Ul = Ce(), + Bnt = Pl(), + ole = ge(), + Vnt = Ur(), + tle = $r(), + rle = Bt(), + sle = Br(), + znt = Qt(), + ile = Vr(), + Hnt = Ve(); + kr(); + ole(Nn, '__esModule', { value: !0 }); + Nn.default = + Nn.HttpProxyTransport = + Nn.XdProxyTransport = + Nn.CanvasTransport = + Nn.JsonpTransport = + Nn.Transport = + void 0; + var Gnt = Ul(Xu()), + Wnt = Ul(Ro()), + Knt = Ul(Nm()), + Xnt = Ul(Ve()), + ed = Ul(Ye()), + Jnt = Ul(cn()), + Ynt = Ul(Tm()), + lle = Bnt(Yse()), + Qnt = $k(), + ule = Ul(Zse()), + ple = Ul(ele()), + Vk, + zk; + function nle(e, t) { + var r = Hnt(e); + if (ile) { + var n = ile(e); + t && + (n = znt(n).call(n, function (a) { + return sle(e, a).enumerable; + })), + r.push.apply(r, n); + } + return r; + } + function Zc(e) { + for (var t = 1; t < arguments.length; t++) { + var r = arguments[t] != null ? arguments[t] : {}; + if (t % 2) { + var n; + rle((n = nle(Object(r), !0))).call(n, function (o) { + (0, ed.default)(e, o, r[o]); + }); + } else if (tle) Vnt(e, tle(r)); + else { + var a; + rle((a = nle(Object(r)))).call(a, function (o) { + ole(e, o, sle(r, o)); + }); + } + } + return e; + } + function Znt(e) { + let t = /(\w+)\.(visual\.force|salesforce)\.com$/.exec(e); + return t ? `${t[1]}.salesforce.com` : e; + } + (0, lle.setDefaults)({ + httpProxy: + (Vk = (zk = process.env.HTTPS_PROXY) !== null && zk !== void 0 ? zk : process.env.HTTP_PROXY) !== null && + Vk !== void 0 + ? Vk + : void 0, + timeout: process.env.HTTP_TIMEOUT ? (0, Ynt.default)(process.env.HTTP_TIMEOUT, 10) : void 0, + followRedirect: !0, + }); + var eat = + typeof window < 'u' && window.location && window.location.host + ? `https://${Znt(window.location.host)}` + : process.env.LOCATION_BASE_URL || '', + op = class { + httpRequest(t, r = {}) { + return Qnt.StreamPromise.create(() => { + let a = this.getRequestStreamCreator()(t, r), + o = new Jnt.default((s, l) => { + a.on('complete', (u) => s(u)).on('error', l); + }); + return { stream: a, promise: o }; + }); + } + getRequestStreamCreator() { + return lle.default; + } + }; + Nn.Transport = op; + var fw = class extends op { + constructor(t) { + super(), (0, ed.default)(this, '_jsonpParam', void 0), (this._jsonpParam = t); + } + getRequestStreamCreator() { + let t = ule.default.createRequest(this._jsonpParam); + return (r) => t(r); + } + }; + Nn.JsonpTransport = fw; + (0, ed.default)(fw, 'supprted', ule.default.supported); + var mw = class extends op { + constructor(t) { + super(), (0, ed.default)(this, '_signedRequest', void 0), (this._signedRequest = t); + } + getRequestStreamCreator() { + let t = ple.default.createRequest(this._signedRequest); + return (r) => t(r); + } + }; + Nn.CanvasTransport = mw; + (0, ed.default)(mw, 'supported', ple.default.supported); + function ale(e, t) { + let r = { 'salesforceproxy-endpoint': e.url }; + if (e.headers) for (let a of (0, Xnt.default)(e.headers)) r[a] = e.headers[a]; + let n = `${(0, Knt.default)()}.${String(Math.random()).substring(2)}`; + return Zc({ method: e.method, url: `${t}?${n}`, headers: r }, e.body != null ? { body: e.body } : {}); + } + var Hk = class extends op { + constructor(t) { + super(), (0, ed.default)(this, '_xdProxyUrl', void 0), (this._xdProxyUrl = t); + } + httpRequest(t, r = {}) { + let n = this._xdProxyUrl, + { url: a, body: o } = t, + s = (0, Wnt.default)(t, ['url', 'body']), + l = (0, Gnt.default)(a).call(a, '/') === 0 ? eat + a : a, + u = ale(Zc(Zc({}, s), {}, { url: l, body: o }), n); + return super.httpRequest(u, { followRedirect: (p) => ale(Zc(Zc({}, s), {}, { method: 'GET', url: p }), n) }); + } + }; + Nn.XdProxyTransport = Hk; + var Gk = class extends op { + constructor(t) { + super(), (0, ed.default)(this, '_httpProxy', void 0), (this._httpProxy = t); + } + httpRequest(t, r = {}) { + let n = Zc(Zc({}, r), {}, { httpProxy: this._httpProxy }); + return super.httpRequest(t, n); + } + }; + Nn.HttpProxyTransport = Gk; + var tat = op; + Nn.default = tat; +}); +var Xm = d((td) => { + 'use strict'; + var rat = Ce(), + iat = ge(); + kr(); + iat(td, '__esModule', { value: !0 }); + td.getLogger = sat; + td.Logger = td.LogLevels = void 0; + var cle = rat(Ye()), + ca = { DEBUG: 1, INFO: 2, WARN: 3, ERROR: 4, FATAL: 5, NONE: 6 }; + td.LogLevels = ca; + var nat = ['', 'DEBUG', 'INFO', 'WARN', 'ERROR', 'FATAL', 'NONE'], + aat = (() => { + let e = process.env.JSFORCE_LOG_LEVEL || global.__JSFORCE_LOG_LEVEL__ || 'NONE'; + if (/^(DEBUG|INFO|WARN|ERROR|FATAL|NONE)$/i.test(e)) return { '*': e }; + try { + return JSON.parse(e); + } catch { + return { '*': 'NONE' }; + } + })(); + function oat(e, t) { + let r = e[t] || e['*']; + return typeof r == 'number' ? r : ca[r] || ca.NONE; + } + var hw = class e { + constructor(t, r = aat) { + (0, cle.default)(this, '_moduleName', void 0), + (0, cle.default)(this, '_logLevel', void 0), + (this._moduleName = t), + (this._logLevel = typeof r == 'number' ? r : typeof r == 'string' ? ca[r] || ca.NONE : oat(r, t)); + } + createInstance(t = this._logLevel) { + return new e(this._moduleName, t); + } + setLogLevel(t) { + typeof t == 'string' ? (this._logLevel = ca[t] || ca.NONE) : (this._logLevel = t); + } + log(t, ...r) { + if (this._logLevel <= t) { + let n = [`${nat[t]} [${this._moduleName}] `, ...r]; + t < ca.ERROR ? console.log(...n) : console.error(...n); + } + } + debug(...t) { + this.log(ca.DEBUG, ...t); + } + info(...t) { + this.log(ca.INFO, ...t); + } + warn(...t) { + this.log(ca.WARN, ...t); + } + error(...t) { + this.log(ca.ERROR, ...t); + } + fatal(...t) { + this.log(ca.FATAL, ...t); + } + }; + td.Logger = hw; + var dle = {}; + function sat(e) { + let t = dle[e] || new hw(e); + return (dle[e] = t), t; + } +}); +var Ym = d((Jm) => { + 'use strict'; + var lat = Pl(), + bw = Ce(), + ble = ge(), + uat = Ur(), + fle = $r(), + mle = Bt(), + _le = Br(), + pat = Qt(), + hle = Vr(), + cat = Ve(); + Zt(); + Vc(); + ble(Jm, '__esModule', { value: !0 }); + Jm.default = Jm.OAuth2 = void 0; + var dat = bw(Xu()), + fat = bw(U_()), + vs = bw(Ye()), + gle = require('crypto'), + gw = bw(require('querystring')), + Wk = lat(_v()); + function vle(e, t) { + var r = cat(e); + if (hle) { + var n = hle(e); + t && + (n = pat(n).call(n, function (a) { + return _le(e, a).enumerable; + })), + r.push.apply(r, n); + } + return r; + } + function vw(e) { + for (var t = 1; t < arguments.length; t++) { + var r = arguments[t] != null ? arguments[t] : {}; + if (t % 2) { + var n; + mle((n = vle(Object(r), !0))).call(n, function (o) { + (0, vs.default)(e, o, r[o]); + }); + } else if (fle) uat(e, fle(r)); + else { + var a; + mle((a = vle(Object(r)))).call(a, function (o) { + ble(e, o, _le(r, o)); + }); + } + } + return e; + } + var mat = { loginUrl: 'https://login.salesforce.com' }; + function yle(e) { + return e.replace(/\+/g, '-').replace(/\//g, '_').replace(/=/g, ''); + } + var yw = class { + constructor(t) { + (0, vs.default)(this, 'loginUrl', void 0), + (0, vs.default)(this, 'authzServiceUrl', void 0), + (0, vs.default)(this, 'tokenServiceUrl', void 0), + (0, vs.default)(this, 'revokeServiceUrl', void 0), + (0, vs.default)(this, 'clientId', void 0), + (0, vs.default)(this, 'clientSecret', void 0), + (0, vs.default)(this, 'redirectUri', void 0), + (0, vs.default)(this, 'codeVerifier', void 0), + (0, vs.default)(this, '_transport', void 0); + let { + loginUrl: r, + authzServiceUrl: n, + tokenServiceUrl: a, + revokeServiceUrl: o, + clientId: s, + clientSecret: l, + redirectUri: u, + proxyUrl: p, + httpProxy: c, + useVerifier: f, + } = t; + if (n && a) { + var h; + (this.loginUrl = (0, fat.default)((h = n.split('/'))) + .call(h, 0, 3) + .join('/')), + (this.authzServiceUrl = n), + (this.tokenServiceUrl = a), + (this.revokeServiceUrl = o || `${this.loginUrl}/services/oauth2/revoke`); + } else + (this.loginUrl = r || mat.loginUrl), + (this.authzServiceUrl = `${this.loginUrl}/services/oauth2/authorize`), + (this.tokenServiceUrl = `${this.loginUrl}/services/oauth2/token`), + (this.revokeServiceUrl = `${this.loginUrl}/services/oauth2/revoke`); + (this.clientId = s), + (this.clientSecret = l), + (this.redirectUri = u), + p + ? (this._transport = new Wk.XdProxyTransport(p)) + : c + ? (this._transport = new Wk.HttpProxyTransport(c)) + : (this._transport = new Wk.default()), + f && (this.codeVerifier = yle((0, gle.randomBytes)(Math.ceil(128)).toString('base64'))); + } + getAuthorizationUrl(t = {}) { + var r; + if (this.codeVerifier) { + let a = yle((0, gle.createHash)('sha256').update(this.codeVerifier).digest('base64')); + t.code_challenge = a; + } + let n = vw(vw({}, t), {}, { response_type: 'code', client_id: this.clientId, redirect_uri: this.redirectUri }); + return ( + this.authzServiceUrl + + ((0, dat.default)((r = this.authzServiceUrl)).call(r, '?') >= 0 ? '&' : '?') + + gw.default.stringify(n) + ); + } + async refreshToken(t) { + if (!this.clientId) throw new Error('No OAuth2 client id information is specified'); + let r = { grant_type: 'refresh_token', refresh_token: t, client_id: this.clientId }; + return this.clientSecret && (r.client_secret = this.clientSecret), await this._postParams(r); + } + async requestToken(t, r = {}) { + if (typeof t == 'string' && (!this.clientId || !this.redirectUri)) + throw new Error('No OAuth2 client id or redirect uri configuration is specified'); + let n = vw(vw({}, r), typeof t == 'string' ? { grant_type: 'authorization_code', code: t } : t); + return ( + this.clientId && (n.client_id = this.clientId), + this.clientSecret && (n.client_secret = this.clientSecret), + this.redirectUri && (n.redirect_uri = this.redirectUri), + await this._postParams(n) + ); + } + async authenticate(t, r) { + if (!this.clientId || !this.clientSecret || !this.redirectUri) + throw new Error('No valid OAuth2 client configuration set'); + return await this._postParams({ + grant_type: 'password', + username: t, + password: r, + client_id: this.clientId, + client_secret: this.clientSecret, + redirect_uri: this.redirectUri, + }); + } + async revokeToken(t) { + let r = await this._transport.httpRequest({ + method: 'POST', + url: this.revokeServiceUrl, + body: gw.default.stringify({ token: t }), + headers: { 'content-type': 'application/x-www-form-urlencoded' }, + }); + if (r.statusCode >= 400) { + let n = gw.default.parse(r.body); + throw ( + ((!n || !n.error) && (n = { error: `ERROR_HTTP_${r.statusCode}`, error_description: r.body }), + new (class extends Error { + constructor({ error: a, error_description: o }) { + super(o), (this.name = a); + } + })(n)) + ); + } + } + async _postParams(t) { + this.codeVerifier && (t.code_verifier = this.codeVerifier); + let r = await this._transport.httpRequest({ + method: 'POST', + url: this.tokenServiceUrl, + body: gw.default.stringify(t), + headers: { 'content-type': 'application/x-www-form-urlencoded' }, + }), + n; + try { + n = JSON.parse(r.body); + } catch {} + if (r.statusCode >= 400) + throw ( + ((n = n || { error: `ERROR_HTTP_${r.statusCode}`, error_description: r.body }), + new (class extends Error { + constructor({ error: a, error_description: o }) { + super(o), (this.name = a); + } + })(n)) + ); + return n; + } + }; + Jm.OAuth2 = yw; + var hat = yw; + Jm.default = hat; +}); +var Jk = d((Qm) => { + 'use strict'; + var Zm = Ce(), + gat = ge(); + kr(); + Zt(); + gat(Qm, '__esModule', { value: !0 }); + Qm.default = Qm.Cache = void 0; + var vat = Zm(cn()), + yat = Zm(Xu()), + bat = Zm(Ve()), + _at = Zm(sa()), + wat = Zm(jn()), + Kk = Zm(Ye()), + Sat = require('events'), + Xk = class extends Sat.EventEmitter { + constructor(...t) { + super(...t), (0, Kk.default)(this, '_fetching', !1), (0, Kk.default)(this, '_value', void 0); + } + get(t) { + if (t) { + let r = t; + this.once('value', (n) => r(n)), typeof this._value < 'u' && this.emit('value', this._value); + } + return this._value; + } + set(t) { + (this._value = t), this.emit('value', this._value); + } + clear() { + (this._fetching = !1), (this._value = void 0); + } + }; + function Eat(e, t) { + var r; + return `${e || ''}(${(0, wat.default)((r = [...t])) + .call(r, (n) => (0, _at.default)(n)) + .join(',')})`; + } + function wle(e, t, r) { + return typeof e.key == 'string' ? e.key : typeof e.key == 'function' ? e.key.apply(t, r) : Eat(e.namespace, r); + } + var _w = class { + constructor() { + (0, Kk.default)(this, '_entries', {}); + } + get(t) { + if (this._entries[t]) return this._entries[t]; + let r = new Xk(); + return (this._entries[t] = r), r; + } + clear(t) { + for (let r of (0, bat.default)(this._entries)) + (!t || (0, yat.default)(r).call(r, t) === 0) && this._entries[r].clear(); + } + createCachedFunction(t, r, n = { strategy: 'NOCACHE' }) { + let a = n.strategy, + o = (...s) => { + let l = wle(n, r, s), + u = this.get(l), + p = async () => { + u._fetching = !0; + try { + let f = await t.apply(r || this, s); + return u.set({ error: void 0, result: f }), f; + } catch (f) { + throw (u.set({ error: f, result: void 0 }), f); + } + }, + c; + switch (a) { + case 'IMMEDIATE': + if (((c = u.get()), !c)) throw new Error('Function call result is not cached yet.'); + if (c.error) throw c.error; + return c.result; + case 'HIT': + return (async () => ( + u._fetching || (await p()), + new vat.default((f, h) => { + u.get(({ error: m, result: v }) => { + m ? h(m) : f(v); + }); + }) + ))(); + case 'NOCACHE': + default: + return p(); + } + }; + return ( + (o.clear = (...s) => { + let l = wle(n, r, s); + this.clear(l); + }), + o + ); + } + }; + Qm.Cache = _w; + var xat = _w; + Qm.default = xat; +}); +var ww = d((Yk) => { + (function () { + Yk.defaults = { + 0.1: { + explicitCharkey: !1, + trim: !0, + normalize: !0, + normalizeTags: !1, + attrkey: '@', + charkey: '#', + explicitArray: !1, + ignoreAttrs: !1, + mergeAttrs: !1, + explicitRoot: !1, + validator: null, + xmlns: !1, + explicitChildren: !1, + childkey: '@@', + charsAsChildren: !1, + includeWhiteChars: !1, + async: !1, + strict: !0, + attrNameProcessors: null, + attrValueProcessors: null, + tagNameProcessors: null, + valueProcessors: null, + emptyTag: '', + }, + 0.2: { + explicitCharkey: !1, + trim: !1, + normalize: !1, + normalizeTags: !1, + attrkey: '$', + charkey: '_', + explicitArray: !0, + ignoreAttrs: !1, + mergeAttrs: !1, + explicitRoot: !0, + validator: null, + xmlns: !1, + explicitChildren: !1, + preserveChildrenOrder: !1, + childkey: '$$', + charsAsChildren: !1, + includeWhiteChars: !1, + async: !1, + strict: !0, + attrNameProcessors: null, + attrValueProcessors: null, + tagNameProcessors: null, + valueProcessors: null, + rootName: 'root', + xmldec: { version: '1.0', encoding: 'UTF-8', standalone: !0 }, + doctype: null, + renderOpts: { + pretty: !0, + indent: ' ', + newline: ` +`, + }, + headless: !1, + chunkSize: 1e4, + emptyTag: '', + cdata: !1, + }, + }; + }).call(Yk); +}); +var ys = d((Sle, sp) => { + (function () { + var e, + t, + r, + n, + a, + o, + s, + l = [].slice, + u = {}.hasOwnProperty; + (e = function () { + var p, c, f, h, m, v; + if (((v = arguments[0]), (m = 2 <= arguments.length ? l.call(arguments, 1) : []), a(Object.assign))) + Object.assign.apply(null, arguments); + else + for (p = 0, f = m.length; p < f; p++) if (((h = m[p]), h != null)) for (c in h) u.call(h, c) && (v[c] = h[c]); + return v; + }), + (a = function (p) { + return !!p && Object.prototype.toString.call(p) === '[object Function]'; + }), + (o = function (p) { + var c; + return !!p && ((c = typeof p) == 'function' || c === 'object'); + }), + (r = function (p) { + return a(Array.isArray) ? Array.isArray(p) : Object.prototype.toString.call(p) === '[object Array]'; + }), + (n = function (p) { + var c; + if (r(p)) return !p.length; + for (c in p) if (u.call(p, c)) return !1; + return !0; + }), + (s = function (p) { + var c, f; + return ( + o(p) && + (f = Object.getPrototypeOf(p)) && + (c = f.constructor) && + typeof c == 'function' && + c instanceof c && + Function.prototype.toString.call(c) === Function.prototype.toString.call(Object) + ); + }), + (t = function (p) { + return a(p.valueOf) ? p.valueOf() : p; + }), + (sp.exports.assign = e), + (sp.exports.isFunction = a), + (sp.exports.isObject = o), + (sp.exports.isArray = r), + (sp.exports.isEmpty = n), + (sp.exports.isPlainObject = s), + (sp.exports.getValue = t); + }).call(Sle); +}); +var Qk = d((Ele, xle) => { + (function () { + var e; + xle.exports = e = (function () { + function t() {} + return ( + (t.prototype.hasFeature = function (r, n) { + return !0; + }), + (t.prototype.createDocumentType = function (r, n, a) { + throw new Error('This DOM method is not implemented.'); + }), + (t.prototype.createDocument = function (r, n, a) { + throw new Error('This DOM method is not implemented.'); + }), + (t.prototype.createHTMLDocument = function (r) { + throw new Error('This DOM method is not implemented.'); + }), + (t.prototype.getFeature = function (r, n) { + throw new Error('This DOM method is not implemented.'); + }), + t + ); + })(); + }).call(Ele); +}); +var Cle = d((Ole, Tle) => { + (function () { + var e; + Tle.exports = e = (function () { + function t() {} + return ( + (t.prototype.handleError = function (r) { + throw new Error(r); + }), + t + ); + })(); + }).call(Ole); +}); +var Ile = d((kle, Ale) => { + (function () { + var e; + Ale.exports = e = (function () { + function t(r) { + this.arr = r || []; + } + return ( + Object.defineProperty(t.prototype, 'length', { + get: function () { + return this.arr.length; + }, + }), + (t.prototype.item = function (r) { + return this.arr[r] || null; + }), + (t.prototype.contains = function (r) { + return this.arr.indexOf(r) !== -1; + }), + t + ); + })(); + }).call(kle); +}); +var jle = d((Ple, Rle) => { + (function () { + var e, t, r; + (t = Cle()), + (r = Ile()), + (Rle.exports = e = + (function () { + function n() { + var a; + (this.defaultParams = { + 'canonical-form': !1, + 'cdata-sections': !1, + comments: !1, + 'datatype-normalization': !1, + 'element-content-whitespace': !0, + entities: !0, + 'error-handler': new t(), + infoset: !0, + 'validate-if-schema': !1, + namespaces: !0, + 'namespace-declarations': !0, + 'normalize-characters': !1, + 'schema-location': '', + 'schema-type': '', + 'split-cdata-sections': !0, + validate: !1, + 'well-formed': !0, + }), + (this.params = a = Object.create(this.defaultParams)); + } + return ( + Object.defineProperty(n.prototype, 'parameterNames', { + get: function () { + return new r(Object.keys(this.defaultParams)); + }, + }), + (n.prototype.getParameter = function (a) { + return this.params.hasOwnProperty(a) ? this.params[a] : null; + }), + (n.prototype.canSetParameter = function (a, o) { + return !0; + }), + (n.prototype.setParameter = function (a, o) { + return o != null ? (this.params[a] = o) : delete this.params[a]; + }), + n + ); + })()); + }).call(Ple); +}); +var Ir = d((Dle, Nle) => { + (function () { + Nle.exports = { + Element: 1, + Attribute: 2, + Text: 3, + CData: 4, + EntityReference: 5, + EntityDeclaration: 6, + ProcessingInstruction: 7, + Comment: 8, + Document: 9, + DocType: 10, + DocumentFragment: 11, + NotationDeclaration: 12, + Declaration: 201, + Raw: 202, + AttributeDeclaration: 203, + ElementDeclaration: 204, + Dummy: 205, + }; + }).call(Dle); +}); +var Zk = d((qle, Fle) => { + (function () { + var e, t, r; + (e = Ir()), + (r = da()), + (Fle.exports = t = + (function () { + function n(a, o, s) { + if ( + ((this.parent = a), + this.parent && ((this.options = this.parent.options), (this.stringify = this.parent.stringify)), + o == null) + ) + throw new Error('Missing attribute name. ' + this.debugInfo(o)); + (this.name = this.stringify.name(o)), + (this.value = this.stringify.attValue(s)), + (this.type = e.Attribute), + (this.isId = !1), + (this.schemaTypeInfo = null); + } + return ( + Object.defineProperty(n.prototype, 'nodeType', { + get: function () { + return this.type; + }, + }), + Object.defineProperty(n.prototype, 'ownerElement', { + get: function () { + return this.parent; + }, + }), + Object.defineProperty(n.prototype, 'textContent', { + get: function () { + return this.value; + }, + set: function (a) { + return (this.value = a || ''); + }, + }), + Object.defineProperty(n.prototype, 'namespaceURI', { + get: function () { + return ''; + }, + }), + Object.defineProperty(n.prototype, 'prefix', { + get: function () { + return ''; + }, + }), + Object.defineProperty(n.prototype, 'localName', { + get: function () { + return this.name; + }, + }), + Object.defineProperty(n.prototype, 'specified', { + get: function () { + return !0; + }, + }), + (n.prototype.clone = function () { + return Object.create(this); + }), + (n.prototype.toString = function (a) { + return this.options.writer.attribute(this, this.options.writer.filterOptions(a)); + }), + (n.prototype.debugInfo = function (a) { + return ( + (a = a || this.name), + a == null + ? 'parent: <' + this.parent.name + '>' + : 'attribute: {' + a + '}, parent: <' + this.parent.name + '>' + ); + }), + (n.prototype.isEqualNode = function (a) { + return !( + a.namespaceURI !== this.namespaceURI || + a.prefix !== this.prefix || + a.localName !== this.localName || + a.value !== this.value + ); + }), + n + ); + })()); + }).call(qle); +}); +var Sw = d((Lle, Mle) => { + (function () { + var e; + Mle.exports = e = (function () { + function t(r) { + this.nodes = r; + } + return ( + Object.defineProperty(t.prototype, 'length', { + get: function () { + return Object.keys(this.nodes).length || 0; + }, + }), + (t.prototype.clone = function () { + return (this.nodes = null); + }), + (t.prototype.getNamedItem = function (r) { + return this.nodes[r]; + }), + (t.prototype.setNamedItem = function (r) { + var n; + return (n = this.nodes[r.nodeName]), (this.nodes[r.nodeName] = r), n || null; + }), + (t.prototype.removeNamedItem = function (r) { + var n; + return (n = this.nodes[r]), delete this.nodes[r], n || null; + }), + (t.prototype.item = function (r) { + return this.nodes[Object.keys(this.nodes)[r]] || null; + }), + (t.prototype.getNamedItemNS = function (r, n) { + throw new Error('This DOM method is not implemented.'); + }), + (t.prototype.setNamedItemNS = function (r) { + throw new Error('This DOM method is not implemented.'); + }), + (t.prototype.removeNamedItemNS = function (r, n) { + throw new Error('This DOM method is not implemented.'); + }), + t + ); + })(); + }).call(Lle); +}); +var Ew = d((Ule, $le) => { + (function () { + var e, + t, + r, + n, + a, + o, + s, + l, + u, + p = function (f, h) { + for (var m in h) c.call(h, m) && (f[m] = h[m]); + function v() { + this.constructor = f; + } + return (v.prototype = h.prototype), (f.prototype = new v()), (f.__super__ = h.prototype), f; + }, + c = {}.hasOwnProperty; + (u = ys()), + (l = u.isObject), + (s = u.isFunction), + (o = u.getValue), + (a = da()), + (e = Ir()), + (t = Zk()), + (n = Sw()), + ($le.exports = r = + (function (f) { + p(h, f); + function h(m, v, y) { + var S, w, O, x; + if ((h.__super__.constructor.call(this, m), v == null)) + throw new Error('Missing element name. ' + this.debugInfo()); + if ( + ((this.name = this.stringify.name(v)), + (this.type = e.Element), + (this.attribs = {}), + (this.schemaTypeInfo = null), + y != null && this.attribute(y), + m.type === e.Document && + ((this.isRoot = !0), (this.documentObject = m), (m.rootObject = this), m.children)) + ) { + for (x = m.children, w = 0, O = x.length; w < O; w++) + if (((S = x[w]), S.type === e.DocType)) { + S.name = this.name; + break; + } + } + } + return ( + Object.defineProperty(h.prototype, 'tagName', { + get: function () { + return this.name; + }, + }), + Object.defineProperty(h.prototype, 'namespaceURI', { + get: function () { + return ''; + }, + }), + Object.defineProperty(h.prototype, 'prefix', { + get: function () { + return ''; + }, + }), + Object.defineProperty(h.prototype, 'localName', { + get: function () { + return this.name; + }, + }), + Object.defineProperty(h.prototype, 'id', { + get: function () { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }, + }), + Object.defineProperty(h.prototype, 'className', { + get: function () { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }, + }), + Object.defineProperty(h.prototype, 'classList', { + get: function () { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }, + }), + Object.defineProperty(h.prototype, 'attributes', { + get: function () { + return ( + (!this.attributeMap || !this.attributeMap.nodes) && (this.attributeMap = new n(this.attribs)), + this.attributeMap + ); + }, + }), + (h.prototype.clone = function () { + var m, v, y, S; + (y = Object.create(this)), y.isRoot && (y.documentObject = null), (y.attribs = {}), (S = this.attribs); + for (v in S) c.call(S, v) && ((m = S[v]), (y.attribs[v] = m.clone())); + return ( + (y.children = []), + this.children.forEach(function (w) { + var O; + return (O = w.clone()), (O.parent = y), y.children.push(O); + }), + y + ); + }), + (h.prototype.attribute = function (m, v) { + var y, S; + if ((m != null && (m = o(m)), l(m))) for (y in m) c.call(m, y) && ((S = m[y]), this.attribute(y, S)); + else + s(v) && (v = v.apply()), + this.options.keepNullAttributes && v == null + ? (this.attribs[m] = new t(this, m, '')) + : v != null && (this.attribs[m] = new t(this, m, v)); + return this; + }), + (h.prototype.removeAttribute = function (m) { + var v, y, S; + if (m == null) throw new Error('Missing attribute name. ' + this.debugInfo()); + if (((m = o(m)), Array.isArray(m))) + for (y = 0, S = m.length; y < S; y++) (v = m[y]), delete this.attribs[v]; + else delete this.attribs[m]; + return this; + }), + (h.prototype.toString = function (m) { + return this.options.writer.element(this, this.options.writer.filterOptions(m)); + }), + (h.prototype.att = function (m, v) { + return this.attribute(m, v); + }), + (h.prototype.a = function (m, v) { + return this.attribute(m, v); + }), + (h.prototype.getAttribute = function (m) { + return this.attribs.hasOwnProperty(m) ? this.attribs[m].value : null; + }), + (h.prototype.setAttribute = function (m, v) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (h.prototype.getAttributeNode = function (m) { + return this.attribs.hasOwnProperty(m) ? this.attribs[m] : null; + }), + (h.prototype.setAttributeNode = function (m) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (h.prototype.removeAttributeNode = function (m) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (h.prototype.getElementsByTagName = function (m) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (h.prototype.getAttributeNS = function (m, v) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (h.prototype.setAttributeNS = function (m, v, y) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (h.prototype.removeAttributeNS = function (m, v) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (h.prototype.getAttributeNodeNS = function (m, v) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (h.prototype.setAttributeNodeNS = function (m) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (h.prototype.getElementsByTagNameNS = function (m, v) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (h.prototype.hasAttribute = function (m) { + return this.attribs.hasOwnProperty(m); + }), + (h.prototype.hasAttributeNS = function (m, v) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (h.prototype.setIdAttribute = function (m, v) { + return this.attribs.hasOwnProperty(m) ? this.attribs[m].isId : v; + }), + (h.prototype.setIdAttributeNS = function (m, v, y) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (h.prototype.setIdAttributeNode = function (m, v) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (h.prototype.getElementsByTagName = function (m) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (h.prototype.getElementsByTagNameNS = function (m, v) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (h.prototype.getElementsByClassName = function (m) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (h.prototype.isEqualNode = function (m) { + var v, y, S; + if ( + !h.__super__.isEqualNode.apply(this, arguments).isEqualNode(m) || + m.namespaceURI !== this.namespaceURI || + m.prefix !== this.prefix || + m.localName !== this.localName || + m.attribs.length !== this.attribs.length + ) + return !1; + for (v = y = 0, S = this.attribs.length - 1; 0 <= S ? y <= S : y >= S; v = 0 <= S ? ++y : --y) + if (!this.attribs[v].isEqualNode(m.attribs[v])) return !1; + return !0; + }), + h + ); + })(a)); + }).call(Ule); +}); +var wv = d((Ble, Vle) => { + (function () { + var e, + t, + r = function (a, o) { + for (var s in o) n.call(o, s) && (a[s] = o[s]); + function l() { + this.constructor = a; + } + return (l.prototype = o.prototype), (a.prototype = new l()), (a.__super__ = o.prototype), a; + }, + n = {}.hasOwnProperty; + (t = da()), + (Vle.exports = e = + (function (a) { + r(o, a); + function o(s) { + o.__super__.constructor.call(this, s), (this.value = ''); + } + return ( + Object.defineProperty(o.prototype, 'data', { + get: function () { + return this.value; + }, + set: function (s) { + return (this.value = s || ''); + }, + }), + Object.defineProperty(o.prototype, 'length', { + get: function () { + return this.value.length; + }, + }), + Object.defineProperty(o.prototype, 'textContent', { + get: function () { + return this.value; + }, + set: function (s) { + return (this.value = s || ''); + }, + }), + (o.prototype.clone = function () { + return Object.create(this); + }), + (o.prototype.substringData = function (s, l) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (o.prototype.appendData = function (s) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (o.prototype.insertData = function (s, l) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (o.prototype.deleteData = function (s, l) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (o.prototype.replaceData = function (s, l, u) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (o.prototype.isEqualNode = function (s) { + return !(!o.__super__.isEqualNode.apply(this, arguments).isEqualNode(s) || s.data !== this.data); + }), + o + ); + })(t)); + }).call(Ble); +}); +var xw = d((zle, Hle) => { + (function () { + var e, + t, + r, + n = function (o, s) { + for (var l in s) a.call(s, l) && (o[l] = s[l]); + function u() { + this.constructor = o; + } + return (u.prototype = s.prototype), (o.prototype = new u()), (o.__super__ = s.prototype), o; + }, + a = {}.hasOwnProperty; + (e = Ir()), + (r = wv()), + (Hle.exports = t = + (function (o) { + n(s, o); + function s(l, u) { + if ((s.__super__.constructor.call(this, l), u == null)) + throw new Error('Missing CDATA text. ' + this.debugInfo()); + (this.name = '#cdata-section'), (this.type = e.CData), (this.value = this.stringify.cdata(u)); + } + return ( + (s.prototype.clone = function () { + return Object.create(this); + }), + (s.prototype.toString = function (l) { + return this.options.writer.cdata(this, this.options.writer.filterOptions(l)); + }), + s + ); + })(r)); + }).call(zle); +}); +var Ow = d((Gle, Wle) => { + (function () { + var e, + t, + r, + n = function (o, s) { + for (var l in s) a.call(s, l) && (o[l] = s[l]); + function u() { + this.constructor = o; + } + return (u.prototype = s.prototype), (o.prototype = new u()), (o.__super__ = s.prototype), o; + }, + a = {}.hasOwnProperty; + (e = Ir()), + (t = wv()), + (Wle.exports = r = + (function (o) { + n(s, o); + function s(l, u) { + if ((s.__super__.constructor.call(this, l), u == null)) + throw new Error('Missing comment text. ' + this.debugInfo()); + (this.name = '#comment'), (this.type = e.Comment), (this.value = this.stringify.comment(u)); + } + return ( + (s.prototype.clone = function () { + return Object.create(this); + }), + (s.prototype.toString = function (l) { + return this.options.writer.comment(this, this.options.writer.filterOptions(l)); + }), + s + ); + })(t)); + }).call(Gle); +}); +var Tw = d((Kle, Xle) => { + (function () { + var e, + t, + r, + n, + a = function (s, l) { + for (var u in l) o.call(l, u) && (s[u] = l[u]); + function p() { + this.constructor = s; + } + return (p.prototype = l.prototype), (s.prototype = new p()), (s.__super__ = l.prototype), s; + }, + o = {}.hasOwnProperty; + (n = ys().isObject), + (r = da()), + (e = Ir()), + (Xle.exports = t = + (function (s) { + a(l, s); + function l(u, p, c, f) { + var h; + l.__super__.constructor.call(this, u), + n(p) && ((h = p), (p = h.version), (c = h.encoding), (f = h.standalone)), + p || (p = '1.0'), + (this.type = e.Declaration), + (this.version = this.stringify.xmlVersion(p)), + c != null && (this.encoding = this.stringify.xmlEncoding(c)), + f != null && (this.standalone = this.stringify.xmlStandalone(f)); + } + return ( + (l.prototype.toString = function (u) { + return this.options.writer.declaration(this, this.options.writer.filterOptions(u)); + }), + l + ); + })(r)); + }).call(Kle); +}); +var Cw = d((Jle, Yle) => { + (function () { + var e, + t, + r, + n = function (o, s) { + for (var l in s) a.call(s, l) && (o[l] = s[l]); + function u() { + this.constructor = o; + } + return (u.prototype = s.prototype), (o.prototype = new u()), (o.__super__ = s.prototype), o; + }, + a = {}.hasOwnProperty; + (r = da()), + (e = Ir()), + (Yle.exports = t = + (function (o) { + n(s, o); + function s(l, u, p, c, f, h) { + if ((s.__super__.constructor.call(this, l), u == null)) + throw new Error('Missing DTD element name. ' + this.debugInfo()); + if (p == null) throw new Error('Missing DTD attribute name. ' + this.debugInfo(u)); + if (!c) throw new Error('Missing DTD attribute type. ' + this.debugInfo(u)); + if (!f) throw new Error('Missing DTD attribute default. ' + this.debugInfo(u)); + if ((f.indexOf('#') !== 0 && (f = '#' + f), !f.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))) + throw new Error( + 'Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. ' + this.debugInfo(u) + ); + if (h && !f.match(/^(#FIXED|#DEFAULT)$/)) + throw new Error('Default value only applies to #FIXED or #DEFAULT. ' + this.debugInfo(u)); + (this.elementName = this.stringify.name(u)), + (this.type = e.AttributeDeclaration), + (this.attributeName = this.stringify.name(p)), + (this.attributeType = this.stringify.dtdAttType(c)), + h && (this.defaultValue = this.stringify.dtdAttDefault(h)), + (this.defaultValueType = f); + } + return ( + (s.prototype.toString = function (l) { + return this.options.writer.dtdAttList(this, this.options.writer.filterOptions(l)); + }), + s + ); + })(r)); + }).call(Jle); +}); +var kw = d((Qle, Zle) => { + (function () { + var e, + t, + r, + n, + a = function (s, l) { + for (var u in l) o.call(l, u) && (s[u] = l[u]); + function p() { + this.constructor = s; + } + return (p.prototype = l.prototype), (s.prototype = new p()), (s.__super__ = l.prototype), s; + }, + o = {}.hasOwnProperty; + (n = ys().isObject), + (r = da()), + (e = Ir()), + (Zle.exports = t = + (function (s) { + a(l, s); + function l(u, p, c, f) { + if ((l.__super__.constructor.call(this, u), c == null)) + throw new Error('Missing DTD entity name. ' + this.debugInfo(c)); + if (f == null) throw new Error('Missing DTD entity value. ' + this.debugInfo(c)); + if (((this.pe = !!p), (this.name = this.stringify.name(c)), (this.type = e.EntityDeclaration), !n(f))) + (this.value = this.stringify.dtdEntityValue(f)), (this.internal = !0); + else { + if (!f.pubID && !f.sysID) + throw new Error( + 'Public and/or system identifiers are required for an external entity. ' + this.debugInfo(c) + ); + if (f.pubID && !f.sysID) + throw new Error('System identifier is required for a public external entity. ' + this.debugInfo(c)); + if ( + ((this.internal = !1), + f.pubID != null && (this.pubID = this.stringify.dtdPubID(f.pubID)), + f.sysID != null && (this.sysID = this.stringify.dtdSysID(f.sysID)), + f.nData != null && (this.nData = this.stringify.dtdNData(f.nData)), + this.pe && this.nData) + ) + throw new Error('Notation declaration is not allowed in a parameter entity. ' + this.debugInfo(c)); + } + } + return ( + Object.defineProperty(l.prototype, 'publicId', { + get: function () { + return this.pubID; + }, + }), + Object.defineProperty(l.prototype, 'systemId', { + get: function () { + return this.sysID; + }, + }), + Object.defineProperty(l.prototype, 'notationName', { + get: function () { + return this.nData || null; + }, + }), + Object.defineProperty(l.prototype, 'inputEncoding', { + get: function () { + return null; + }, + }), + Object.defineProperty(l.prototype, 'xmlEncoding', { + get: function () { + return null; + }, + }), + Object.defineProperty(l.prototype, 'xmlVersion', { + get: function () { + return null; + }, + }), + (l.prototype.toString = function (u) { + return this.options.writer.dtdEntity(this, this.options.writer.filterOptions(u)); + }), + l + ); + })(r)); + }).call(Qle); +}); +var Aw = d((eue, tue) => { + (function () { + var e, + t, + r, + n = function (o, s) { + for (var l in s) a.call(s, l) && (o[l] = s[l]); + function u() { + this.constructor = o; + } + return (u.prototype = s.prototype), (o.prototype = new u()), (o.__super__ = s.prototype), o; + }, + a = {}.hasOwnProperty; + (r = da()), + (e = Ir()), + (tue.exports = t = + (function (o) { + n(s, o); + function s(l, u, p) { + if ((s.__super__.constructor.call(this, l), u == null)) + throw new Error('Missing DTD element name. ' + this.debugInfo()); + p || (p = '(#PCDATA)'), + Array.isArray(p) && (p = '(' + p.join(',') + ')'), + (this.name = this.stringify.name(u)), + (this.type = e.ElementDeclaration), + (this.value = this.stringify.dtdElementValue(p)); + } + return ( + (s.prototype.toString = function (l) { + return this.options.writer.dtdElement(this, this.options.writer.filterOptions(l)); + }), + s + ); + })(r)); + }).call(eue); +}); +var Iw = d((rue, iue) => { + (function () { + var e, + t, + r, + n = function (o, s) { + for (var l in s) a.call(s, l) && (o[l] = s[l]); + function u() { + this.constructor = o; + } + return (u.prototype = s.prototype), (o.prototype = new u()), (o.__super__ = s.prototype), o; + }, + a = {}.hasOwnProperty; + (r = da()), + (e = Ir()), + (iue.exports = t = + (function (o) { + n(s, o); + function s(l, u, p) { + if ((s.__super__.constructor.call(this, l), u == null)) + throw new Error('Missing DTD notation name. ' + this.debugInfo(u)); + if (!p.pubID && !p.sysID) + throw new Error('Public or system identifiers are required for an external entity. ' + this.debugInfo(u)); + (this.name = this.stringify.name(u)), + (this.type = e.NotationDeclaration), + p.pubID != null && (this.pubID = this.stringify.dtdPubID(p.pubID)), + p.sysID != null && (this.sysID = this.stringify.dtdSysID(p.sysID)); + } + return ( + Object.defineProperty(s.prototype, 'publicId', { + get: function () { + return this.pubID; + }, + }), + Object.defineProperty(s.prototype, 'systemId', { + get: function () { + return this.sysID; + }, + }), + (s.prototype.toString = function (l) { + return this.options.writer.dtdNotation(this, this.options.writer.filterOptions(l)); + }), + s + ); + })(r)); + }).call(rue); +}); +var Pw = d((nue, aue) => { + (function () { + var e, + t, + r, + n, + a, + o, + s, + l, + u, + p = function (f, h) { + for (var m in h) c.call(h, m) && (f[m] = h[m]); + function v() { + this.constructor = f; + } + return (v.prototype = h.prototype), (f.prototype = new v()), (f.__super__ = h.prototype), f; + }, + c = {}.hasOwnProperty; + (u = ys().isObject), + (l = da()), + (e = Ir()), + (t = Cw()), + (n = kw()), + (r = Aw()), + (a = Iw()), + (s = Sw()), + (aue.exports = o = + (function (f) { + p(h, f); + function h(m, v, y) { + var S, w, O, x, _, b; + if ((h.__super__.constructor.call(this, m), (this.type = e.DocType), m.children)) { + for (x = m.children, w = 0, O = x.length; w < O; w++) + if (((S = x[w]), S.type === e.Element)) { + this.name = S.name; + break; + } + } + (this.documentObject = m), + u(v) && ((_ = v), (v = _.pubID), (y = _.sysID)), + y == null && ((b = [v, y]), (y = b[0]), (v = b[1])), + v != null && (this.pubID = this.stringify.dtdPubID(v)), + y != null && (this.sysID = this.stringify.dtdSysID(y)); + } + return ( + Object.defineProperty(h.prototype, 'entities', { + get: function () { + var m, v, y, S, w; + for (S = {}, w = this.children, v = 0, y = w.length; v < y; v++) + (m = w[v]), m.type === e.EntityDeclaration && !m.pe && (S[m.name] = m); + return new s(S); + }, + }), + Object.defineProperty(h.prototype, 'notations', { + get: function () { + var m, v, y, S, w; + for (S = {}, w = this.children, v = 0, y = w.length; v < y; v++) + (m = w[v]), m.type === e.NotationDeclaration && (S[m.name] = m); + return new s(S); + }, + }), + Object.defineProperty(h.prototype, 'publicId', { + get: function () { + return this.pubID; + }, + }), + Object.defineProperty(h.prototype, 'systemId', { + get: function () { + return this.sysID; + }, + }), + Object.defineProperty(h.prototype, 'internalSubset', { + get: function () { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }, + }), + (h.prototype.element = function (m, v) { + var y; + return (y = new r(this, m, v)), this.children.push(y), this; + }), + (h.prototype.attList = function (m, v, y, S, w) { + var O; + return (O = new t(this, m, v, y, S, w)), this.children.push(O), this; + }), + (h.prototype.entity = function (m, v) { + var y; + return (y = new n(this, !1, m, v)), this.children.push(y), this; + }), + (h.prototype.pEntity = function (m, v) { + var y; + return (y = new n(this, !0, m, v)), this.children.push(y), this; + }), + (h.prototype.notation = function (m, v) { + var y; + return (y = new a(this, m, v)), this.children.push(y), this; + }), + (h.prototype.toString = function (m) { + return this.options.writer.docType(this, this.options.writer.filterOptions(m)); + }), + (h.prototype.ele = function (m, v) { + return this.element(m, v); + }), + (h.prototype.att = function (m, v, y, S, w) { + return this.attList(m, v, y, S, w); + }), + (h.prototype.ent = function (m, v) { + return this.entity(m, v); + }), + (h.prototype.pent = function (m, v) { + return this.pEntity(m, v); + }), + (h.prototype.not = function (m, v) { + return this.notation(m, v); + }), + (h.prototype.up = function () { + return this.root() || this.documentObject; + }), + (h.prototype.isEqualNode = function (m) { + return !( + !h.__super__.isEqualNode.apply(this, arguments).isEqualNode(m) || + m.name !== this.name || + m.publicId !== this.publicId || + m.systemId !== this.systemId + ); + }), + h + ); + })(l)); + }).call(nue); +}); +var Rw = d((oue, sue) => { + (function () { + var e, + t, + r, + n = function (o, s) { + for (var l in s) a.call(s, l) && (o[l] = s[l]); + function u() { + this.constructor = o; + } + return (u.prototype = s.prototype), (o.prototype = new u()), (o.__super__ = s.prototype), o; + }, + a = {}.hasOwnProperty; + (e = Ir()), + (t = da()), + (sue.exports = r = + (function (o) { + n(s, o); + function s(l, u) { + if ((s.__super__.constructor.call(this, l), u == null)) + throw new Error('Missing raw text. ' + this.debugInfo()); + (this.type = e.Raw), (this.value = this.stringify.raw(u)); + } + return ( + (s.prototype.clone = function () { + return Object.create(this); + }), + (s.prototype.toString = function (l) { + return this.options.writer.raw(this, this.options.writer.filterOptions(l)); + }), + s + ); + })(t)); + }).call(oue); +}); +var jw = d((lue, uue) => { + (function () { + var e, + t, + r, + n = function (o, s) { + for (var l in s) a.call(s, l) && (o[l] = s[l]); + function u() { + this.constructor = o; + } + return (u.prototype = s.prototype), (o.prototype = new u()), (o.__super__ = s.prototype), o; + }, + a = {}.hasOwnProperty; + (e = Ir()), + (t = wv()), + (uue.exports = r = + (function (o) { + n(s, o); + function s(l, u) { + if ((s.__super__.constructor.call(this, l), u == null)) + throw new Error('Missing element text. ' + this.debugInfo()); + (this.name = '#text'), (this.type = e.Text), (this.value = this.stringify.text(u)); + } + return ( + Object.defineProperty(s.prototype, 'isElementContentWhitespace', { + get: function () { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }, + }), + Object.defineProperty(s.prototype, 'wholeText', { + get: function () { + var l, u, p; + for (p = '', u = this.previousSibling; u; ) (p = u.data + p), (u = u.previousSibling); + for (p += this.data, l = this.nextSibling; l; ) (p = p + l.data), (l = l.nextSibling); + return p; + }, + }), + (s.prototype.clone = function () { + return Object.create(this); + }), + (s.prototype.toString = function (l) { + return this.options.writer.text(this, this.options.writer.filterOptions(l)); + }), + (s.prototype.splitText = function (l) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (s.prototype.replaceWholeText = function (l) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + s + ); + })(t)); + }).call(lue); +}); +var Dw = d((pue, cue) => { + (function () { + var e, + t, + r, + n = function (o, s) { + for (var l in s) a.call(s, l) && (o[l] = s[l]); + function u() { + this.constructor = o; + } + return (u.prototype = s.prototype), (o.prototype = new u()), (o.__super__ = s.prototype), o; + }, + a = {}.hasOwnProperty; + (e = Ir()), + (t = wv()), + (cue.exports = r = + (function (o) { + n(s, o); + function s(l, u, p) { + if ((s.__super__.constructor.call(this, l), u == null)) + throw new Error('Missing instruction target. ' + this.debugInfo()); + (this.type = e.ProcessingInstruction), + (this.target = this.stringify.insTarget(u)), + (this.name = this.target), + p && (this.value = this.stringify.insValue(p)); + } + return ( + (s.prototype.clone = function () { + return Object.create(this); + }), + (s.prototype.toString = function (l) { + return this.options.writer.processingInstruction(this, this.options.writer.filterOptions(l)); + }), + (s.prototype.isEqualNode = function (l) { + return !(!s.__super__.isEqualNode.apply(this, arguments).isEqualNode(l) || l.target !== this.target); + }), + s + ); + })(t)); + }).call(pue); +}); +var eA = d((due, fue) => { + (function () { + var e, + t, + r, + n = function (o, s) { + for (var l in s) a.call(s, l) && (o[l] = s[l]); + function u() { + this.constructor = o; + } + return (u.prototype = s.prototype), (o.prototype = new u()), (o.__super__ = s.prototype), o; + }, + a = {}.hasOwnProperty; + (r = da()), + (e = Ir()), + (fue.exports = t = + (function (o) { + n(s, o); + function s(l) { + s.__super__.constructor.call(this, l), (this.type = e.Dummy); + } + return ( + (s.prototype.clone = function () { + return Object.create(this); + }), + (s.prototype.toString = function (l) { + return ''; + }), + s + ); + })(r)); + }).call(due); +}); +var gue = d((mue, hue) => { + (function () { + var e; + hue.exports = e = (function () { + function t(r) { + this.nodes = r; + } + return ( + Object.defineProperty(t.prototype, 'length', { + get: function () { + return this.nodes.length || 0; + }, + }), + (t.prototype.clone = function () { + return (this.nodes = null); + }), + (t.prototype.item = function (r) { + return this.nodes[r] || null; + }), + t + ); + })(); + }).call(mue); +}); +var bue = d((vue, yue) => { + (function () { + yue.exports = { + Disconnected: 1, + Preceding: 2, + Following: 4, + Contains: 8, + ContainedBy: 16, + ImplementationSpecific: 32, + }; + }).call(vue); +}); +var da = d((_ue, wue) => { + (function () { + var e, + t, + r, + n, + a, + o, + s, + l, + u, + p, + c, + f, + h, + m, + v, + y, + S, + w, + O, + x = {}.hasOwnProperty; + (O = ys()), + (w = O.isObject), + (S = O.isFunction), + (y = O.isEmpty), + (v = O.getValue), + (l = null), + (r = null), + (n = null), + (a = null), + (o = null), + (h = null), + (m = null), + (f = null), + (s = null), + (t = null), + (c = null), + (u = null), + (e = null), + (wue.exports = p = + (function () { + function _(b) { + (this.parent = b), + this.parent && ((this.options = this.parent.options), (this.stringify = this.parent.stringify)), + (this.value = null), + (this.children = []), + (this.baseURI = null), + l || + ((l = Ew()), + (r = xw()), + (n = Ow()), + (a = Tw()), + (o = Pw()), + (h = Rw()), + (m = jw()), + (f = Dw()), + (s = eA()), + (t = Ir()), + (c = gue()), + (u = Sw()), + (e = bue())); + } + return ( + Object.defineProperty(_.prototype, 'nodeName', { + get: function () { + return this.name; + }, + }), + Object.defineProperty(_.prototype, 'nodeType', { + get: function () { + return this.type; + }, + }), + Object.defineProperty(_.prototype, 'nodeValue', { + get: function () { + return this.value; + }, + }), + Object.defineProperty(_.prototype, 'parentNode', { + get: function () { + return this.parent; + }, + }), + Object.defineProperty(_.prototype, 'childNodes', { + get: function () { + return ( + (!this.childNodeList || !this.childNodeList.nodes) && (this.childNodeList = new c(this.children)), + this.childNodeList + ); + }, + }), + Object.defineProperty(_.prototype, 'firstChild', { + get: function () { + return this.children[0] || null; + }, + }), + Object.defineProperty(_.prototype, 'lastChild', { + get: function () { + return this.children[this.children.length - 1] || null; + }, + }), + Object.defineProperty(_.prototype, 'previousSibling', { + get: function () { + var b; + return (b = this.parent.children.indexOf(this)), this.parent.children[b - 1] || null; + }, + }), + Object.defineProperty(_.prototype, 'nextSibling', { + get: function () { + var b; + return (b = this.parent.children.indexOf(this)), this.parent.children[b + 1] || null; + }, + }), + Object.defineProperty(_.prototype, 'ownerDocument', { + get: function () { + return this.document() || null; + }, + }), + Object.defineProperty(_.prototype, 'textContent', { + get: function () { + var b, T, R, C, N; + if (this.nodeType === t.Element || this.nodeType === t.DocumentFragment) { + for (N = '', C = this.children, T = 0, R = C.length; T < R; T++) + (b = C[T]), b.textContent && (N += b.textContent); + return N; + } else return null; + }, + set: function (b) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }, + }), + (_.prototype.setParent = function (b) { + var T, R, C, N, A; + for ( + this.parent = b, + b && ((this.options = b.options), (this.stringify = b.stringify)), + N = this.children, + A = [], + R = 0, + C = N.length; + R < C; + R++ + ) + (T = N[R]), A.push(T.setParent(this)); + return A; + }), + (_.prototype.element = function (b, T, R) { + var C, N, A, j, U, z, K, te, J, ie, oe; + if ( + ((z = null), + T === null && R == null && ((J = [{}, null]), (T = J[0]), (R = J[1])), + T == null && (T = {}), + (T = v(T)), + w(T) || ((ie = [T, R]), (R = ie[0]), (T = ie[1])), + b != null && (b = v(b)), + Array.isArray(b)) + ) + for (A = 0, K = b.length; A < K; A++) (N = b[A]), (z = this.element(N)); + else if (S(b)) z = this.element(b.apply()); + else if (w(b)) { + for (U in b) + if (x.call(b, U)) + if ( + ((oe = b[U]), + S(oe) && (oe = oe.apply()), + !this.options.ignoreDecorators && + this.stringify.convertAttKey && + U.indexOf(this.stringify.convertAttKey) === 0) + ) + z = this.attribute(U.substr(this.stringify.convertAttKey.length), oe); + else if (!this.options.separateArrayItems && Array.isArray(oe) && y(oe)) z = this.dummy(); + else if (w(oe) && y(oe)) z = this.element(U); + else if (!this.options.keepNullNodes && oe == null) z = this.dummy(); + else if (!this.options.separateArrayItems && Array.isArray(oe)) + for (j = 0, te = oe.length; j < te; j++) (N = oe[j]), (C = {}), (C[U] = N), (z = this.element(C)); + else + w(oe) + ? !this.options.ignoreDecorators && + this.stringify.convertTextKey && + U.indexOf(this.stringify.convertTextKey) === 0 + ? (z = this.element(oe)) + : ((z = this.element(U)), z.element(oe)) + : (z = this.element(U, oe)); + } else + !this.options.keepNullNodes && R === null + ? (z = this.dummy()) + : !this.options.ignoreDecorators && + this.stringify.convertTextKey && + b.indexOf(this.stringify.convertTextKey) === 0 + ? (z = this.text(R)) + : !this.options.ignoreDecorators && + this.stringify.convertCDataKey && + b.indexOf(this.stringify.convertCDataKey) === 0 + ? (z = this.cdata(R)) + : !this.options.ignoreDecorators && + this.stringify.convertCommentKey && + b.indexOf(this.stringify.convertCommentKey) === 0 + ? (z = this.comment(R)) + : !this.options.ignoreDecorators && + this.stringify.convertRawKey && + b.indexOf(this.stringify.convertRawKey) === 0 + ? (z = this.raw(R)) + : !this.options.ignoreDecorators && + this.stringify.convertPIKey && + b.indexOf(this.stringify.convertPIKey) === 0 + ? (z = this.instruction(b.substr(this.stringify.convertPIKey.length), R)) + : (z = this.node(b, T, R)); + if (z == null) throw new Error('Could not create any elements with: ' + b + '. ' + this.debugInfo()); + return z; + }), + (_.prototype.insertBefore = function (b, T, R) { + var C, N, A, j, U; + if (b?.type) + return ( + (A = b), + (j = T), + A.setParent(this), + j + ? ((N = children.indexOf(j)), + (U = children.splice(N)), + children.push(A), + Array.prototype.push.apply(children, U)) + : children.push(A), + A + ); + if (this.isRoot) throw new Error('Cannot insert elements at root level. ' + this.debugInfo(b)); + return ( + (N = this.parent.children.indexOf(this)), + (U = this.parent.children.splice(N)), + (C = this.parent.element(b, T, R)), + Array.prototype.push.apply(this.parent.children, U), + C + ); + }), + (_.prototype.insertAfter = function (b, T, R) { + var C, N, A; + if (this.isRoot) throw new Error('Cannot insert elements at root level. ' + this.debugInfo(b)); + return ( + (N = this.parent.children.indexOf(this)), + (A = this.parent.children.splice(N + 1)), + (C = this.parent.element(b, T, R)), + Array.prototype.push.apply(this.parent.children, A), + C + ); + }), + (_.prototype.remove = function () { + var b, T; + if (this.isRoot) throw new Error('Cannot remove the root element. ' + this.debugInfo()); + return ( + (b = this.parent.children.indexOf(this)), + [].splice.apply(this.parent.children, [b, b - b + 1].concat((T = []))), + this.parent + ); + }), + (_.prototype.node = function (b, T, R) { + var C, N; + return ( + b != null && (b = v(b)), + T || (T = {}), + (T = v(T)), + w(T) || ((N = [T, R]), (R = N[0]), (T = N[1])), + (C = new l(this, b, T)), + R != null && C.text(R), + this.children.push(C), + C + ); + }), + (_.prototype.text = function (b) { + var T; + return w(b) && this.element(b), (T = new m(this, b)), this.children.push(T), this; + }), + (_.prototype.cdata = function (b) { + var T; + return (T = new r(this, b)), this.children.push(T), this; + }), + (_.prototype.comment = function (b) { + var T; + return (T = new n(this, b)), this.children.push(T), this; + }), + (_.prototype.commentBefore = function (b) { + var T, R, C; + return ( + (R = this.parent.children.indexOf(this)), + (C = this.parent.children.splice(R)), + (T = this.parent.comment(b)), + Array.prototype.push.apply(this.parent.children, C), + this + ); + }), + (_.prototype.commentAfter = function (b) { + var T, R, C; + return ( + (R = this.parent.children.indexOf(this)), + (C = this.parent.children.splice(R + 1)), + (T = this.parent.comment(b)), + Array.prototype.push.apply(this.parent.children, C), + this + ); + }), + (_.prototype.raw = function (b) { + var T; + return (T = new h(this, b)), this.children.push(T), this; + }), + (_.prototype.dummy = function () { + var b; + return (b = new s(this)), b; + }), + (_.prototype.instruction = function (b, T) { + var R, C, N, A, j; + if ((b != null && (b = v(b)), T != null && (T = v(T)), Array.isArray(b))) + for (A = 0, j = b.length; A < j; A++) (R = b[A]), this.instruction(R); + else if (w(b)) for (R in b) x.call(b, R) && ((C = b[R]), this.instruction(R, C)); + else S(T) && (T = T.apply()), (N = new f(this, b, T)), this.children.push(N); + return this; + }), + (_.prototype.instructionBefore = function (b, T) { + var R, C, N; + return ( + (C = this.parent.children.indexOf(this)), + (N = this.parent.children.splice(C)), + (R = this.parent.instruction(b, T)), + Array.prototype.push.apply(this.parent.children, N), + this + ); + }), + (_.prototype.instructionAfter = function (b, T) { + var R, C, N; + return ( + (C = this.parent.children.indexOf(this)), + (N = this.parent.children.splice(C + 1)), + (R = this.parent.instruction(b, T)), + Array.prototype.push.apply(this.parent.children, N), + this + ); + }), + (_.prototype.declaration = function (b, T, R) { + var C, N; + return ( + (C = this.document()), + (N = new a(C, b, T, R)), + C.children.length === 0 + ? C.children.unshift(N) + : C.children[0].type === t.Declaration + ? (C.children[0] = N) + : C.children.unshift(N), + C.root() || C + ); + }), + (_.prototype.dtd = function (b, T) { + var R, C, N, A, j, U, z, K, te, J; + for (C = this.document(), N = new o(C, b, T), te = C.children, A = j = 0, z = te.length; j < z; A = ++j) + if (((R = te[A]), R.type === t.DocType)) return (C.children[A] = N), N; + for (J = C.children, A = U = 0, K = J.length; U < K; A = ++U) + if (((R = J[A]), R.isRoot)) return C.children.splice(A, 0, N), N; + return C.children.push(N), N; + }), + (_.prototype.up = function () { + if (this.isRoot) + throw new Error('The root node has no parent. Use doc() if you need to get the document object.'); + return this.parent; + }), + (_.prototype.root = function () { + var b; + for (b = this; b; ) { + if (b.type === t.Document) return b.rootObject; + if (b.isRoot) return b; + b = b.parent; + } + }), + (_.prototype.document = function () { + var b; + for (b = this; b; ) { + if (b.type === t.Document) return b; + b = b.parent; + } + }), + (_.prototype.end = function (b) { + return this.document().end(b); + }), + (_.prototype.prev = function () { + var b; + if (((b = this.parent.children.indexOf(this)), b < 1)) + throw new Error('Already at the first node. ' + this.debugInfo()); + return this.parent.children[b - 1]; + }), + (_.prototype.next = function () { + var b; + if (((b = this.parent.children.indexOf(this)), b === -1 || b === this.parent.children.length - 1)) + throw new Error('Already at the last node. ' + this.debugInfo()); + return this.parent.children[b + 1]; + }), + (_.prototype.importDocument = function (b) { + var T; + return (T = b.root().clone()), (T.parent = this), (T.isRoot = !1), this.children.push(T), this; + }), + (_.prototype.debugInfo = function (b) { + var T, R; + return ( + (b = b || this.name), + b == null && !((T = this.parent) != null && T.name) + ? '' + : b == null + ? 'parent: <' + this.parent.name + '>' + : (R = this.parent) != null && R.name + ? 'node: <' + b + '>, parent: <' + this.parent.name + '>' + : 'node: <' + b + '>' + ); + }), + (_.prototype.ele = function (b, T, R) { + return this.element(b, T, R); + }), + (_.prototype.nod = function (b, T, R) { + return this.node(b, T, R); + }), + (_.prototype.txt = function (b) { + return this.text(b); + }), + (_.prototype.dat = function (b) { + return this.cdata(b); + }), + (_.prototype.com = function (b) { + return this.comment(b); + }), + (_.prototype.ins = function (b, T) { + return this.instruction(b, T); + }), + (_.prototype.doc = function () { + return this.document(); + }), + (_.prototype.dec = function (b, T, R) { + return this.declaration(b, T, R); + }), + (_.prototype.e = function (b, T, R) { + return this.element(b, T, R); + }), + (_.prototype.n = function (b, T, R) { + return this.node(b, T, R); + }), + (_.prototype.t = function (b) { + return this.text(b); + }), + (_.prototype.d = function (b) { + return this.cdata(b); + }), + (_.prototype.c = function (b) { + return this.comment(b); + }), + (_.prototype.r = function (b) { + return this.raw(b); + }), + (_.prototype.i = function (b, T) { + return this.instruction(b, T); + }), + (_.prototype.u = function () { + return this.up(); + }), + (_.prototype.importXMLBuilder = function (b) { + return this.importDocument(b); + }), + (_.prototype.replaceChild = function (b, T) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (_.prototype.removeChild = function (b) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (_.prototype.appendChild = function (b) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (_.prototype.hasChildNodes = function () { + return this.children.length !== 0; + }), + (_.prototype.cloneNode = function (b) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (_.prototype.normalize = function () { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (_.prototype.isSupported = function (b, T) { + return !0; + }), + (_.prototype.hasAttributes = function () { + return this.attribs.length !== 0; + }), + (_.prototype.compareDocumentPosition = function (b) { + var T, R; + return ( + (T = this), + T === b + ? 0 + : this.document() !== b.document() + ? ((R = e.Disconnected | e.ImplementationSpecific), + Math.random() < 0.5 ? (R |= e.Preceding) : (R |= e.Following), + R) + : T.isAncestor(b) + ? e.Contains | e.Preceding + : T.isDescendant(b) + ? e.Contains | e.Following + : T.isPreceding(b) + ? e.Preceding + : e.Following + ); + }), + (_.prototype.isSameNode = function (b) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (_.prototype.lookupPrefix = function (b) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (_.prototype.isDefaultNamespace = function (b) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (_.prototype.lookupNamespaceURI = function (b) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (_.prototype.isEqualNode = function (b) { + var T, R, C; + if (b.nodeType !== this.nodeType || b.children.length !== this.children.length) return !1; + for (T = R = 0, C = this.children.length - 1; 0 <= C ? R <= C : R >= C; T = 0 <= C ? ++R : --R) + if (!this.children[T].isEqualNode(b.children[T])) return !1; + return !0; + }), + (_.prototype.getFeature = function (b, T) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (_.prototype.setUserData = function (b, T, R) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (_.prototype.getUserData = function (b) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (_.prototype.contains = function (b) { + return b ? b === this || this.isDescendant(b) : !1; + }), + (_.prototype.isDescendant = function (b) { + var T, R, C, N, A; + for (A = this.children, C = 0, N = A.length; C < N; C++) + if (((T = A[C]), b === T || ((R = T.isDescendant(b)), R))) return !0; + return !1; + }), + (_.prototype.isAncestor = function (b) { + return b.isDescendant(this); + }), + (_.prototype.isPreceding = function (b) { + var T, R; + return (T = this.treePosition(b)), (R = this.treePosition(this)), T === -1 || R === -1 ? !1 : T < R; + }), + (_.prototype.isFollowing = function (b) { + var T, R; + return (T = this.treePosition(b)), (R = this.treePosition(this)), T === -1 || R === -1 ? !1 : T > R; + }), + (_.prototype.treePosition = function (b) { + var T, R; + return ( + (R = 0), + (T = !1), + this.foreachTreeNode(this.document(), function (C) { + if ((R++, !T && C === b)) return (T = !0); + }), + T ? R : -1 + ); + }), + (_.prototype.foreachTreeNode = function (b, T) { + var R, C, N, A, j; + for (b || (b = this.document()), A = b.children, C = 0, N = A.length; C < N; C++) { + if (((R = A[C]), (j = T(R)))) return j; + if (((j = this.foreachTreeNode(R, T)), j)) return j; + } + }), + _ + ); + })()); + }).call(_ue); +}); +var tA = d((Sue, Eue) => { + (function () { + var e, + t = function (n, a) { + return function () { + return n.apply(a, arguments); + }; + }, + r = {}.hasOwnProperty; + Eue.exports = e = (function () { + function n(a) { + (this.assertLegalName = t(this.assertLegalName, this)), (this.assertLegalChar = t(this.assertLegalChar, this)); + var o, s, l; + a || (a = {}), + (this.options = a), + this.options.version || (this.options.version = '1.0'), + (s = a.stringify || {}); + for (o in s) r.call(s, o) && ((l = s[o]), (this[o] = l)); + } + return ( + (n.prototype.name = function (a) { + return this.options.noValidation ? a : this.assertLegalName('' + a || ''); + }), + (n.prototype.text = function (a) { + return this.options.noValidation ? a : this.assertLegalChar(this.textEscape('' + a || '')); + }), + (n.prototype.cdata = function (a) { + return this.options.noValidation + ? a + : ((a = '' + a || ''), (a = a.replace(']]>', ']]]]>')), this.assertLegalChar(a)); + }), + (n.prototype.comment = function (a) { + if (this.options.noValidation) return a; + if (((a = '' + a || ''), a.match(/--/))) throw new Error('Comment text cannot contain double-hypen: ' + a); + return this.assertLegalChar(a); + }), + (n.prototype.raw = function (a) { + return this.options.noValidation ? a : '' + a || ''; + }), + (n.prototype.attValue = function (a) { + return this.options.noValidation ? a : this.assertLegalChar(this.attEscape((a = '' + a || ''))); + }), + (n.prototype.insTarget = function (a) { + return this.options.noValidation ? a : this.assertLegalChar('' + a || ''); + }), + (n.prototype.insValue = function (a) { + if (this.options.noValidation) return a; + if (((a = '' + a || ''), a.match(/\?>/))) throw new Error('Invalid processing instruction value: ' + a); + return this.assertLegalChar(a); + }), + (n.prototype.xmlVersion = function (a) { + if (this.options.noValidation) return a; + if (((a = '' + a || ''), !a.match(/1\.[0-9]+/))) throw new Error('Invalid version number: ' + a); + return a; + }), + (n.prototype.xmlEncoding = function (a) { + if (this.options.noValidation) return a; + if (((a = '' + a || ''), !a.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))) + throw new Error('Invalid encoding: ' + a); + return this.assertLegalChar(a); + }), + (n.prototype.xmlStandalone = function (a) { + return this.options.noValidation ? a : a ? 'yes' : 'no'; + }), + (n.prototype.dtdPubID = function (a) { + return this.options.noValidation ? a : this.assertLegalChar('' + a || ''); + }), + (n.prototype.dtdSysID = function (a) { + return this.options.noValidation ? a : this.assertLegalChar('' + a || ''); + }), + (n.prototype.dtdElementValue = function (a) { + return this.options.noValidation ? a : this.assertLegalChar('' + a || ''); + }), + (n.prototype.dtdAttType = function (a) { + return this.options.noValidation ? a : this.assertLegalChar('' + a || ''); + }), + (n.prototype.dtdAttDefault = function (a) { + return this.options.noValidation ? a : this.assertLegalChar('' + a || ''); + }), + (n.prototype.dtdEntityValue = function (a) { + return this.options.noValidation ? a : this.assertLegalChar('' + a || ''); + }), + (n.prototype.dtdNData = function (a) { + return this.options.noValidation ? a : this.assertLegalChar('' + a || ''); + }), + (n.prototype.convertAttKey = '@'), + (n.prototype.convertPIKey = '?'), + (n.prototype.convertTextKey = '#text'), + (n.prototype.convertCDataKey = '#cdata'), + (n.prototype.convertCommentKey = '#comment'), + (n.prototype.convertRawKey = '#raw'), + (n.prototype.assertLegalChar = function (a) { + var o, s; + if (this.options.noValidation) return a; + if (((o = ''), this.options.version === '1.0')) { + if ( + ((o = + /[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/), + (s = a.match(o))) + ) + throw new Error('Invalid character in string: ' + a + ' at index ' + s.index); + } else if ( + this.options.version === '1.1' && + ((o = /[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/), + (s = a.match(o))) + ) + throw new Error('Invalid character in string: ' + a + ' at index ' + s.index); + return a; + }), + (n.prototype.assertLegalName = function (a) { + var o; + if (this.options.noValidation) return a; + if ( + (this.assertLegalChar(a), + (o = + /^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/), + !a.match(o)) + ) + throw new Error('Invalid character in name'); + return a; + }), + (n.prototype.textEscape = function (a) { + var o; + return this.options.noValidation + ? a + : ((o = this.options.noDoubleEncoding ? /(?!&\S+;)&/g : /&/g), + a.replace(o, '&').replace(//g, '>').replace(/\r/g, ' ')); + }), + (n.prototype.attEscape = function (a) { + var o; + return this.options.noValidation + ? a + : ((o = this.options.noDoubleEncoding ? /(?!&\S+;)&/g : /&/g), + a + .replace(o, '&') + .replace(/ { + (function () { + Oue.exports = { None: 0, OpenTag: 1, InsideTag: 2, CloseTag: 3 }; + }).call(xue); +}); +var rA = d((Tue, Cue) => { + (function () { + var e, + t, + r, + n, + a, + o, + s, + l, + u, + p, + c, + f, + h, + m, + v, + y, + S, + w = {}.hasOwnProperty; + (S = ys().assign), + (e = Ir()), + (u = Tw()), + (p = Pw()), + (r = xw()), + (n = Ow()), + (f = Ew()), + (m = Rw()), + (v = jw()), + (h = Dw()), + (c = eA()), + (a = Cw()), + (o = Aw()), + (s = kw()), + (l = Iw()), + (t = Sv()), + (Cue.exports = y = + (function () { + function O(x) { + var _, b, T; + x || (x = {}), (this.options = x), (b = x.writer || {}); + for (_ in b) w.call(b, _) && ((T = b[_]), (this['_' + _] = this[_]), (this[_] = T)); + } + return ( + (O.prototype.filterOptions = function (x) { + var _, b, T, R, C, N, A, j; + return ( + x || (x = {}), + (x = S({}, this.options, x)), + (_ = { writer: this }), + (_.pretty = x.pretty || !1), + (_.allowEmpty = x.allowEmpty || !1), + (_.indent = (b = x.indent) != null ? b : ' '), + (_.newline = + (T = x.newline) != null + ? T + : ` +`), + (_.offset = (R = x.offset) != null ? R : 0), + (_.dontPrettyTextNodes = + (C = (N = x.dontPrettyTextNodes) != null ? N : x.dontprettytextnodes) != null ? C : 0), + (_.spaceBeforeSlash = (A = (j = x.spaceBeforeSlash) != null ? j : x.spacebeforeslash) != null ? A : ''), + _.spaceBeforeSlash === !0 && (_.spaceBeforeSlash = ' '), + (_.suppressPrettyCount = 0), + (_.user = {}), + (_.state = t.None), + _ + ); + }), + (O.prototype.indent = function (x, _, b) { + var T; + return !_.pretty || _.suppressPrettyCount + ? '' + : _.pretty && ((T = (b || 0) + _.offset + 1), T > 0) + ? new Array(T).join(_.indent) + : ''; + }), + (O.prototype.endline = function (x, _, b) { + return !_.pretty || _.suppressPrettyCount ? '' : _.newline; + }), + (O.prototype.attribute = function (x, _, b) { + var T; + return ( + this.openAttribute(x, _, b), (T = ' ' + x.name + '="' + x.value + '"'), this.closeAttribute(x, _, b), T + ); + }), + (O.prototype.cdata = function (x, _, b) { + var T; + return ( + this.openNode(x, _, b), + (_.state = t.OpenTag), + (T = this.indent(x, _, b) + '' + this.endline(x, _, b)), + (_.state = t.None), + this.closeNode(x, _, b), + T + ); + }), + (O.prototype.comment = function (x, _, b) { + var T; + return ( + this.openNode(x, _, b), + (_.state = t.OpenTag), + (T = this.indent(x, _, b) + '' + this.endline(x, _, b)), + (_.state = t.None), + this.closeNode(x, _, b), + T + ); + }), + (O.prototype.declaration = function (x, _, b) { + var T; + return ( + this.openNode(x, _, b), + (_.state = t.OpenTag), + (T = this.indent(x, _, b) + ''), + (T += this.endline(x, _, b)), + (_.state = t.None), + this.closeNode(x, _, b), + T + ); + }), + (O.prototype.docType = function (x, _, b) { + var T, R, C, N, A; + if ( + (b || (b = 0), + this.openNode(x, _, b), + (_.state = t.OpenTag), + (N = this.indent(x, _, b)), + (N += ' 0) + ) { + for ( + N += ' [', N += this.endline(x, _, b), _.state = t.InsideTag, A = x.children, R = 0, C = A.length; + R < C; + R++ + ) + (T = A[R]), (N += this.writeChildNode(T, _, b + 1)); + (_.state = t.CloseTag), (N += ']'); + } + return ( + (_.state = t.CloseTag), + (N += _.spaceBeforeSlash + '>'), + (N += this.endline(x, _, b)), + (_.state = t.None), + this.closeNode(x, _, b), + N + ); + }), + (O.prototype.element = function (x, _, b) { + var T, R, C, N, A, j, U, z, K, te, J, ie, oe, he; + b || (b = 0), + (te = !1), + (J = ''), + this.openNode(x, _, b), + (_.state = t.OpenTag), + (J += this.indent(x, _, b) + '<' + x.name), + (ie = x.attribs); + for (K in ie) w.call(ie, K) && ((T = ie[K]), (J += this.attribute(T, _, b))); + if ( + ((C = x.children.length), + (N = C === 0 ? null : x.children[0]), + C === 0 || + x.children.every(function (hr) { + return (hr.type === e.Text || hr.type === e.Raw) && hr.value === ''; + })) + ) + _.allowEmpty + ? ((J += '>'), (_.state = t.CloseTag), (J += '' + this.endline(x, _, b))) + : ((_.state = t.CloseTag), (J += _.spaceBeforeSlash + '/>' + this.endline(x, _, b))); + else if (_.pretty && C === 1 && (N.type === e.Text || N.type === e.Raw) && N.value != null) + (J += '>'), + (_.state = t.InsideTag), + _.suppressPrettyCount++, + (te = !0), + (J += this.writeChildNode(N, _, b + 1)), + _.suppressPrettyCount--, + (te = !1), + (_.state = t.CloseTag), + (J += '' + this.endline(x, _, b)); + else { + if (_.dontPrettyTextNodes) { + for (oe = x.children, A = 0, U = oe.length; A < U; A++) + if (((R = oe[A]), (R.type === e.Text || R.type === e.Raw) && R.value != null)) { + _.suppressPrettyCount++, (te = !0); + break; + } + } + for ( + J += '>' + this.endline(x, _, b), _.state = t.InsideTag, he = x.children, j = 0, z = he.length; + j < z; + j++ + ) + (R = he[j]), (J += this.writeChildNode(R, _, b + 1)); + (_.state = t.CloseTag), + (J += this.indent(x, _, b) + ''), + te && _.suppressPrettyCount--, + (J += this.endline(x, _, b)), + (_.state = t.None); + } + return this.closeNode(x, _, b), J; + }), + (O.prototype.writeChildNode = function (x, _, b) { + switch (x.type) { + case e.CData: + return this.cdata(x, _, b); + case e.Comment: + return this.comment(x, _, b); + case e.Element: + return this.element(x, _, b); + case e.Raw: + return this.raw(x, _, b); + case e.Text: + return this.text(x, _, b); + case e.ProcessingInstruction: + return this.processingInstruction(x, _, b); + case e.Dummy: + return ''; + case e.Declaration: + return this.declaration(x, _, b); + case e.DocType: + return this.docType(x, _, b); + case e.AttributeDeclaration: + return this.dtdAttList(x, _, b); + case e.ElementDeclaration: + return this.dtdElement(x, _, b); + case e.EntityDeclaration: + return this.dtdEntity(x, _, b); + case e.NotationDeclaration: + return this.dtdNotation(x, _, b); + default: + throw new Error('Unknown XML node type: ' + x.constructor.name); + } + }), + (O.prototype.processingInstruction = function (x, _, b) { + var T; + return ( + this.openNode(x, _, b), + (_.state = t.OpenTag), + (T = this.indent(x, _, b) + ''), + (T += this.endline(x, _, b)), + (_.state = t.None), + this.closeNode(x, _, b), + T + ); + }), + (O.prototype.raw = function (x, _, b) { + var T; + return ( + this.openNode(x, _, b), + (_.state = t.OpenTag), + (T = this.indent(x, _, b)), + (_.state = t.InsideTag), + (T += x.value), + (_.state = t.CloseTag), + (T += this.endline(x, _, b)), + (_.state = t.None), + this.closeNode(x, _, b), + T + ); + }), + (O.prototype.text = function (x, _, b) { + var T; + return ( + this.openNode(x, _, b), + (_.state = t.OpenTag), + (T = this.indent(x, _, b)), + (_.state = t.InsideTag), + (T += x.value), + (_.state = t.CloseTag), + (T += this.endline(x, _, b)), + (_.state = t.None), + this.closeNode(x, _, b), + T + ); + }), + (O.prototype.dtdAttList = function (x, _, b) { + var T; + return ( + this.openNode(x, _, b), + (_.state = t.OpenTag), + (T = this.indent(x, _, b) + '' + this.endline(x, _, b)), + (_.state = t.None), + this.closeNode(x, _, b), + T + ); + }), + (O.prototype.dtdElement = function (x, _, b) { + var T; + return ( + this.openNode(x, _, b), + (_.state = t.OpenTag), + (T = this.indent(x, _, b) + '' + this.endline(x, _, b)), + (_.state = t.None), + this.closeNode(x, _, b), + T + ); + }), + (O.prototype.dtdEntity = function (x, _, b) { + var T; + return ( + this.openNode(x, _, b), + (_.state = t.OpenTag), + (T = this.indent(x, _, b) + '' + this.endline(x, _, b)), + (_.state = t.None), + this.closeNode(x, _, b), + T + ); + }), + (O.prototype.dtdNotation = function (x, _, b) { + var T; + return ( + this.openNode(x, _, b), + (_.state = t.OpenTag), + (T = this.indent(x, _, b) + '' + this.endline(x, _, b)), + (_.state = t.None), + this.closeNode(x, _, b), + T + ); + }), + (O.prototype.openNode = function (x, _, b) {}), + (O.prototype.closeNode = function (x, _, b) {}), + (O.prototype.openAttribute = function (x, _, b) {}), + (O.prototype.closeAttribute = function (x, _, b) {}), + O + ); + })()); + }).call(Tue); +}); +var Nw = d((kue, Aue) => { + (function () { + var e, + t, + r = function (a, o) { + for (var s in o) n.call(o, s) && (a[s] = o[s]); + function l() { + this.constructor = a; + } + return (l.prototype = o.prototype), (a.prototype = new l()), (a.__super__ = o.prototype), a; + }, + n = {}.hasOwnProperty; + (t = rA()), + (Aue.exports = e = + (function (a) { + r(o, a); + function o(s) { + o.__super__.constructor.call(this, s); + } + return ( + (o.prototype.document = function (s, l) { + var u, p, c, f, h; + for (l = this.filterOptions(l), f = '', h = s.children, p = 0, c = h.length; p < c; p++) + (u = h[p]), (f += this.writeChildNode(u, l, 0)); + return l.pretty && f.slice(-l.newline.length) === l.newline && (f = f.slice(0, -l.newline.length)), f; + }), + o + ); + })(t)); + }).call(kue); +}); +var iA = d((Iue, Pue) => { + (function () { + var e, + t, + r, + n, + a, + o, + s, + l, + u = function (c, f) { + for (var h in f) p.call(f, h) && (c[h] = f[h]); + function m() { + this.constructor = c; + } + return (m.prototype = f.prototype), (c.prototype = new m()), (c.__super__ = f.prototype), c; + }, + p = {}.hasOwnProperty; + (l = ys().isPlainObject), + (r = Qk()), + (t = jle()), + (a = da()), + (e = Ir()), + (s = tA()), + (o = Nw()), + (Pue.exports = n = + (function (c) { + u(f, c); + function f(h) { + f.__super__.constructor.call(this, null), + (this.name = '#document'), + (this.type = e.Document), + (this.documentURI = null), + (this.domConfig = new t()), + h || (h = {}), + h.writer || (h.writer = new o()), + (this.options = h), + (this.stringify = new s(h)); + } + return ( + Object.defineProperty(f.prototype, 'implementation', { value: new r() }), + Object.defineProperty(f.prototype, 'doctype', { + get: function () { + var h, m, v, y; + for (y = this.children, m = 0, v = y.length; m < v; m++) + if (((h = y[m]), h.type === e.DocType)) return h; + return null; + }, + }), + Object.defineProperty(f.prototype, 'documentElement', { + get: function () { + return this.rootObject || null; + }, + }), + Object.defineProperty(f.prototype, 'inputEncoding', { + get: function () { + return null; + }, + }), + Object.defineProperty(f.prototype, 'strictErrorChecking', { + get: function () { + return !1; + }, + }), + Object.defineProperty(f.prototype, 'xmlEncoding', { + get: function () { + return this.children.length !== 0 && this.children[0].type === e.Declaration + ? this.children[0].encoding + : null; + }, + }), + Object.defineProperty(f.prototype, 'xmlStandalone', { + get: function () { + return this.children.length !== 0 && this.children[0].type === e.Declaration + ? this.children[0].standalone === 'yes' + : !1; + }, + }), + Object.defineProperty(f.prototype, 'xmlVersion', { + get: function () { + return this.children.length !== 0 && this.children[0].type === e.Declaration + ? this.children[0].version + : '1.0'; + }, + }), + Object.defineProperty(f.prototype, 'URL', { + get: function () { + return this.documentURI; + }, + }), + Object.defineProperty(f.prototype, 'origin', { + get: function () { + return null; + }, + }), + Object.defineProperty(f.prototype, 'compatMode', { + get: function () { + return null; + }, + }), + Object.defineProperty(f.prototype, 'characterSet', { + get: function () { + return null; + }, + }), + Object.defineProperty(f.prototype, 'contentType', { + get: function () { + return null; + }, + }), + (f.prototype.end = function (h) { + var m; + return ( + (m = {}), + h ? l(h) && ((m = h), (h = this.options.writer)) : (h = this.options.writer), + h.document(this, h.filterOptions(m)) + ); + }), + (f.prototype.toString = function (h) { + return this.options.writer.document(this, this.options.writer.filterOptions(h)); + }), + (f.prototype.createElement = function (h) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (f.prototype.createDocumentFragment = function () { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (f.prototype.createTextNode = function (h) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (f.prototype.createComment = function (h) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (f.prototype.createCDATASection = function (h) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (f.prototype.createProcessingInstruction = function (h, m) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (f.prototype.createAttribute = function (h) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (f.prototype.createEntityReference = function (h) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (f.prototype.getElementsByTagName = function (h) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (f.prototype.importNode = function (h, m) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (f.prototype.createElementNS = function (h, m) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (f.prototype.createAttributeNS = function (h, m) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (f.prototype.getElementsByTagNameNS = function (h, m) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (f.prototype.getElementById = function (h) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (f.prototype.adoptNode = function (h) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (f.prototype.normalizeDocument = function () { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (f.prototype.renameNode = function (h, m, v) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (f.prototype.getElementsByClassName = function (h) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (f.prototype.createEvent = function (h) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (f.prototype.createRange = function () { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (f.prototype.createNodeIterator = function (h, m, v) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + (f.prototype.createTreeWalker = function (h, m, v) { + throw new Error('This DOM method is not implemented.' + this.debugInfo()); + }), + f + ); + })(a)); + }).call(Iue); +}); +var Due = d((Rue, jue) => { + (function () { + var e, + t, + r, + n, + a, + o, + s, + l, + u, + p, + c, + f, + h, + m, + v, + y, + S, + w, + O, + x, + _, + b, + T, + R, + C = {}.hasOwnProperty; + (R = ys()), + (b = R.isObject), + (_ = R.isFunction), + (T = R.isPlainObject), + (x = R.getValue), + (e = Ir()), + (f = iA()), + (m = Ew()), + (n = xw()), + (a = Ow()), + (y = Rw()), + (O = jw()), + (v = Dw()), + (p = Tw()), + (c = Pw()), + (o = Cw()), + (l = kw()), + (s = Aw()), + (u = Iw()), + (r = Zk()), + (w = tA()), + (S = Nw()), + (t = Sv()), + (jue.exports = h = + (function () { + function N(A, j, U) { + var z; + (this.name = '?xml'), + (this.type = e.Document), + A || (A = {}), + (z = {}), + A.writer ? T(A.writer) && ((z = A.writer), (A.writer = new S())) : (A.writer = new S()), + (this.options = A), + (this.writer = A.writer), + (this.writerOptions = this.writer.filterOptions(z)), + (this.stringify = new w(A)), + (this.onDataCallback = j || function () {}), + (this.onEndCallback = U || function () {}), + (this.currentNode = null), + (this.currentLevel = -1), + (this.openTags = {}), + (this.documentStarted = !1), + (this.documentCompleted = !1), + (this.root = null); + } + return ( + (N.prototype.createChildNode = function (A) { + var j, U, z, K, te, J, ie, oe; + switch (A.type) { + case e.CData: + this.cdata(A.value); + break; + case e.Comment: + this.comment(A.value); + break; + case e.Element: + (z = {}), (ie = A.attribs); + for (U in ie) C.call(ie, U) && ((j = ie[U]), (z[U] = j.value)); + this.node(A.name, z); + break; + case e.Dummy: + this.dummy(); + break; + case e.Raw: + this.raw(A.value); + break; + case e.Text: + this.text(A.value); + break; + case e.ProcessingInstruction: + this.instruction(A.target, A.value); + break; + default: + throw new Error('This XML node type is not supported in a JS object: ' + A.constructor.name); + } + for (oe = A.children, te = 0, J = oe.length; te < J; te++) + (K = oe[te]), this.createChildNode(K), K.type === e.Element && this.up(); + return this; + }), + (N.prototype.dummy = function () { + return this; + }), + (N.prototype.node = function (A, j, U) { + var z; + if (A == null) throw new Error('Missing node name.'); + if (this.root && this.currentLevel === -1) + throw new Error('Document can only have one root node. ' + this.debugInfo(A)); + return ( + this.openCurrent(), + (A = x(A)), + j == null && (j = {}), + (j = x(j)), + b(j) || ((z = [j, U]), (U = z[0]), (j = z[1])), + (this.currentNode = new m(this, A, j)), + (this.currentNode.children = !1), + this.currentLevel++, + (this.openTags[this.currentLevel] = this.currentNode), + U != null && this.text(U), + this + ); + }), + (N.prototype.element = function (A, j, U) { + var z, K, te, J, ie, oe; + if (this.currentNode && this.currentNode.type === e.DocType) this.dtdElement.apply(this, arguments); + else if (Array.isArray(A) || b(A) || _(A)) + for ( + J = this.options.noValidation, + this.options.noValidation = !0, + oe = new f(this.options).element('TEMP_ROOT'), + oe.element(A), + this.options.noValidation = J, + ie = oe.children, + K = 0, + te = ie.length; + K < te; + K++ + ) + (z = ie[K]), this.createChildNode(z), z.type === e.Element && this.up(); + else this.node(A, j, U); + return this; + }), + (N.prototype.attribute = function (A, j) { + var U, z; + if (!this.currentNode || this.currentNode.children) + throw new Error( + 'att() can only be used immediately after an ele() call in callback mode. ' + this.debugInfo(A) + ); + if ((A != null && (A = x(A)), b(A))) for (U in A) C.call(A, U) && ((z = A[U]), this.attribute(U, z)); + else + _(j) && (j = j.apply()), + this.options.keepNullAttributes && j == null + ? (this.currentNode.attribs[A] = new r(this, A, '')) + : j != null && (this.currentNode.attribs[A] = new r(this, A, j)); + return this; + }), + (N.prototype.text = function (A) { + var j; + return ( + this.openCurrent(), + (j = new O(this, A)), + this.onData(this.writer.text(j, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), + this + ); + }), + (N.prototype.cdata = function (A) { + var j; + return ( + this.openCurrent(), + (j = new n(this, A)), + this.onData(this.writer.cdata(j, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), + this + ); + }), + (N.prototype.comment = function (A) { + var j; + return ( + this.openCurrent(), + (j = new a(this, A)), + this.onData(this.writer.comment(j, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), + this + ); + }), + (N.prototype.raw = function (A) { + var j; + return ( + this.openCurrent(), + (j = new y(this, A)), + this.onData(this.writer.raw(j, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), + this + ); + }), + (N.prototype.instruction = function (A, j) { + var U, z, K, te, J; + if ((this.openCurrent(), A != null && (A = x(A)), j != null && (j = x(j)), Array.isArray(A))) + for (U = 0, te = A.length; U < te; U++) (z = A[U]), this.instruction(z); + else if (b(A)) for (z in A) C.call(A, z) && ((K = A[z]), this.instruction(z, K)); + else + _(j) && (j = j.apply()), + (J = new v(this, A, j)), + this.onData( + this.writer.processingInstruction(J, this.writerOptions, this.currentLevel + 1), + this.currentLevel + 1 + ); + return this; + }), + (N.prototype.declaration = function (A, j, U) { + var z; + if ((this.openCurrent(), this.documentStarted)) throw new Error('declaration() must be the first node.'); + return ( + (z = new p(this, A, j, U)), + this.onData( + this.writer.declaration(z, this.writerOptions, this.currentLevel + 1), + this.currentLevel + 1 + ), + this + ); + }), + (N.prototype.doctype = function (A, j, U) { + if ((this.openCurrent(), A == null)) throw new Error('Missing root node name.'); + if (this.root) throw new Error('dtd() must come before the root node.'); + return ( + (this.currentNode = new c(this, j, U)), + (this.currentNode.rootNodeName = A), + (this.currentNode.children = !1), + this.currentLevel++, + (this.openTags[this.currentLevel] = this.currentNode), + this + ); + }), + (N.prototype.dtdElement = function (A, j) { + var U; + return ( + this.openCurrent(), + (U = new s(this, A, j)), + this.onData( + this.writer.dtdElement(U, this.writerOptions, this.currentLevel + 1), + this.currentLevel + 1 + ), + this + ); + }), + (N.prototype.attList = function (A, j, U, z, K) { + var te; + return ( + this.openCurrent(), + (te = new o(this, A, j, U, z, K)), + this.onData( + this.writer.dtdAttList(te, this.writerOptions, this.currentLevel + 1), + this.currentLevel + 1 + ), + this + ); + }), + (N.prototype.entity = function (A, j) { + var U; + return ( + this.openCurrent(), + (U = new l(this, !1, A, j)), + this.onData(this.writer.dtdEntity(U, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), + this + ); + }), + (N.prototype.pEntity = function (A, j) { + var U; + return ( + this.openCurrent(), + (U = new l(this, !0, A, j)), + this.onData(this.writer.dtdEntity(U, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), + this + ); + }), + (N.prototype.notation = function (A, j) { + var U; + return ( + this.openCurrent(), + (U = new u(this, A, j)), + this.onData( + this.writer.dtdNotation(U, this.writerOptions, this.currentLevel + 1), + this.currentLevel + 1 + ), + this + ); + }), + (N.prototype.up = function () { + if (this.currentLevel < 0) throw new Error('The document node has no parent.'); + return ( + this.currentNode + ? (this.currentNode.children ? this.closeNode(this.currentNode) : this.openNode(this.currentNode), + (this.currentNode = null)) + : this.closeNode(this.openTags[this.currentLevel]), + delete this.openTags[this.currentLevel], + this.currentLevel--, + this + ); + }), + (N.prototype.end = function () { + for (; this.currentLevel >= 0; ) this.up(); + return this.onEnd(); + }), + (N.prototype.openCurrent = function () { + if (this.currentNode) return (this.currentNode.children = !0), this.openNode(this.currentNode); + }), + (N.prototype.openNode = function (A) { + var j, U, z, K; + if (!A.isOpen) { + if ( + (!this.root && this.currentLevel === 0 && A.type === e.Element && (this.root = A), + (U = ''), + A.type === e.Element) + ) { + (this.writerOptions.state = t.OpenTag), + (U = this.writer.indent(A, this.writerOptions, this.currentLevel) + '<' + A.name), + (K = A.attribs); + for (z in K) + C.call(K, z) && + ((j = K[z]), (U += this.writer.attribute(j, this.writerOptions, this.currentLevel))); + (U += (A.children ? '>' : '/>') + this.writer.endline(A, this.writerOptions, this.currentLevel)), + (this.writerOptions.state = t.InsideTag); + } else + (this.writerOptions.state = t.OpenTag), + (U = this.writer.indent(A, this.writerOptions, this.currentLevel) + '')), + (U += this.writer.endline(A, this.writerOptions, this.currentLevel)); + return this.onData(U, this.currentLevel), (A.isOpen = !0); + } + }), + (N.prototype.closeNode = function (A) { + var j; + if (!A.isClosed) + return ( + (j = ''), + (this.writerOptions.state = t.CloseTag), + A.type === e.Element + ? (j = + this.writer.indent(A, this.writerOptions, this.currentLevel) + + '' + + this.writer.endline(A, this.writerOptions, this.currentLevel)) + : (j = + this.writer.indent(A, this.writerOptions, this.currentLevel) + + ']>' + + this.writer.endline(A, this.writerOptions, this.currentLevel)), + (this.writerOptions.state = t.None), + this.onData(j, this.currentLevel), + (A.isClosed = !0) + ); + }), + (N.prototype.onData = function (A, j) { + return (this.documentStarted = !0), this.onDataCallback(A, j + 1); + }), + (N.prototype.onEnd = function () { + return (this.documentCompleted = !0), this.onEndCallback(); + }), + (N.prototype.debugInfo = function (A) { + return A == null ? '' : 'node: <' + A + '>'; + }), + (N.prototype.ele = function () { + return this.element.apply(this, arguments); + }), + (N.prototype.nod = function (A, j, U) { + return this.node(A, j, U); + }), + (N.prototype.txt = function (A) { + return this.text(A); + }), + (N.prototype.dat = function (A) { + return this.cdata(A); + }), + (N.prototype.com = function (A) { + return this.comment(A); + }), + (N.prototype.ins = function (A, j) { + return this.instruction(A, j); + }), + (N.prototype.dec = function (A, j, U) { + return this.declaration(A, j, U); + }), + (N.prototype.dtd = function (A, j, U) { + return this.doctype(A, j, U); + }), + (N.prototype.e = function (A, j, U) { + return this.element(A, j, U); + }), + (N.prototype.n = function (A, j, U) { + return this.node(A, j, U); + }), + (N.prototype.t = function (A) { + return this.text(A); + }), + (N.prototype.d = function (A) { + return this.cdata(A); + }), + (N.prototype.c = function (A) { + return this.comment(A); + }), + (N.prototype.r = function (A) { + return this.raw(A); + }), + (N.prototype.i = function (A, j) { + return this.instruction(A, j); + }), + (N.prototype.att = function () { + return this.currentNode && this.currentNode.type === e.DocType + ? this.attList.apply(this, arguments) + : this.attribute.apply(this, arguments); + }), + (N.prototype.a = function () { + return this.currentNode && this.currentNode.type === e.DocType + ? this.attList.apply(this, arguments) + : this.attribute.apply(this, arguments); + }), + (N.prototype.ent = function (A, j) { + return this.entity(A, j); + }), + (N.prototype.pent = function (A, j) { + return this.pEntity(A, j); + }), + (N.prototype.not = function (A, j) { + return this.notation(A, j); + }), + N + ); + })()); + }).call(Rue); +}); +var Fue = d((Nue, que) => { + (function () { + var e, + t, + r, + n, + a = function (s, l) { + for (var u in l) o.call(l, u) && (s[u] = l[u]); + function p() { + this.constructor = s; + } + return (p.prototype = l.prototype), (s.prototype = new p()), (s.__super__ = l.prototype), s; + }, + o = {}.hasOwnProperty; + (e = Ir()), + (n = rA()), + (t = Sv()), + (que.exports = r = + (function (s) { + a(l, s); + function l(u, p) { + (this.stream = u), l.__super__.constructor.call(this, p); + } + return ( + (l.prototype.endline = function (u, p, c) { + return u.isLastRootNode && p.state === t.CloseTag ? '' : l.__super__.endline.call(this, u, p, c); + }), + (l.prototype.document = function (u, p) { + var c, f, h, m, v, y, S, w, O; + for (S = u.children, f = h = 0, v = S.length; h < v; f = ++h) + (c = S[f]), (c.isLastRootNode = f === u.children.length - 1); + for (p = this.filterOptions(p), w = u.children, O = [], m = 0, y = w.length; m < y; m++) + (c = w[m]), O.push(this.writeChildNode(c, p, 0)); + return O; + }), + (l.prototype.attribute = function (u, p, c) { + return this.stream.write(l.__super__.attribute.call(this, u, p, c)); + }), + (l.prototype.cdata = function (u, p, c) { + return this.stream.write(l.__super__.cdata.call(this, u, p, c)); + }), + (l.prototype.comment = function (u, p, c) { + return this.stream.write(l.__super__.comment.call(this, u, p, c)); + }), + (l.prototype.declaration = function (u, p, c) { + return this.stream.write(l.__super__.declaration.call(this, u, p, c)); + }), + (l.prototype.docType = function (u, p, c) { + var f, h, m, v; + if ( + (c || (c = 0), + this.openNode(u, p, c), + (p.state = t.OpenTag), + this.stream.write(this.indent(u, p, c)), + this.stream.write(' 0) + ) { + for ( + this.stream.write(' ['), + this.stream.write(this.endline(u, p, c)), + p.state = t.InsideTag, + v = u.children, + h = 0, + m = v.length; + h < m; + h++ + ) + (f = v[h]), this.writeChildNode(f, p, c + 1); + (p.state = t.CloseTag), this.stream.write(']'); + } + return ( + (p.state = t.CloseTag), + this.stream.write(p.spaceBeforeSlash + '>'), + this.stream.write(this.endline(u, p, c)), + (p.state = t.None), + this.closeNode(u, p, c) + ); + }), + (l.prototype.element = function (u, p, c) { + var f, h, m, v, y, S, w, O, x, _; + c || (c = 0), + this.openNode(u, p, c), + (p.state = t.OpenTag), + this.stream.write(this.indent(u, p, c) + '<' + u.name), + (x = u.attribs); + for (w in x) o.call(x, w) && ((f = x[w]), this.attribute(f, p, c)); + if ( + ((m = u.children.length), + (v = m === 0 ? null : u.children[0]), + m === 0 || + u.children.every(function (b) { + return (b.type === e.Text || b.type === e.Raw) && b.value === ''; + })) + ) + p.allowEmpty + ? (this.stream.write('>'), (p.state = t.CloseTag), this.stream.write('')) + : ((p.state = t.CloseTag), this.stream.write(p.spaceBeforeSlash + '/>')); + else if (p.pretty && m === 1 && (v.type === e.Text || v.type === e.Raw) && v.value != null) + this.stream.write('>'), + (p.state = t.InsideTag), + p.suppressPrettyCount++, + (O = !0), + this.writeChildNode(v, p, c + 1), + p.suppressPrettyCount--, + (O = !1), + (p.state = t.CloseTag), + this.stream.write(''); + else { + for ( + this.stream.write('>' + this.endline(u, p, c)), + p.state = t.InsideTag, + _ = u.children, + y = 0, + S = _.length; + y < S; + y++ + ) + (h = _[y]), this.writeChildNode(h, p, c + 1); + (p.state = t.CloseTag), this.stream.write(this.indent(u, p, c) + ''); + } + return this.stream.write(this.endline(u, p, c)), (p.state = t.None), this.closeNode(u, p, c); + }), + (l.prototype.processingInstruction = function (u, p, c) { + return this.stream.write(l.__super__.processingInstruction.call(this, u, p, c)); + }), + (l.prototype.raw = function (u, p, c) { + return this.stream.write(l.__super__.raw.call(this, u, p, c)); + }), + (l.prototype.text = function (u, p, c) { + return this.stream.write(l.__super__.text.call(this, u, p, c)); + }), + (l.prototype.dtdAttList = function (u, p, c) { + return this.stream.write(l.__super__.dtdAttList.call(this, u, p, c)); + }), + (l.prototype.dtdElement = function (u, p, c) { + return this.stream.write(l.__super__.dtdElement.call(this, u, p, c)); + }), + (l.prototype.dtdEntity = function (u, p, c) { + return this.stream.write(l.__super__.dtdEntity.call(this, u, p, c)); + }), + (l.prototype.dtdNotation = function (u, p, c) { + return this.stream.write(l.__super__.dtdNotation.call(this, u, p, c)); + }), + l + ); + })(n)); + }).call(Nue); +}); +var Mue = d((Lue, lp) => { + (function () { + var e, t, r, n, a, o, s, l, u, p; + (p = ys()), + (l = p.assign), + (u = p.isFunction), + (r = Qk()), + (n = iA()), + (a = Due()), + (s = Nw()), + (o = Fue()), + (e = Ir()), + (t = Sv()), + (lp.exports.create = function (c, f, h, m) { + var v, y; + if (c == null) throw new Error('Root element needs a name.'); + return ( + (m = l({}, f, h, m)), + (v = new n(m)), + (y = v.element(c)), + m.headless || (v.declaration(m), (m.pubID != null || m.sysID != null) && v.dtd(m)), + y + ); + }), + (lp.exports.begin = function (c, f, h) { + var m; + return u(c) && ((m = [c, f]), (f = m[0]), (h = m[1]), (c = {})), f ? new a(c, f, h) : new n(c); + }), + (lp.exports.stringWriter = function (c) { + return new s(c); + }), + (lp.exports.streamWriter = function (c, f) { + return new o(c, f); + }), + (lp.exports.implementation = new r()), + (lp.exports.nodeType = e), + (lp.exports.writerState = t); + }).call(Lue); +}); +var Uue = d((nA) => { + (function () { + 'use strict'; + var e, + t, + r, + n, + a, + o = {}.hasOwnProperty; + (e = Mue()), + (t = ww().defaults), + (n = function (s) { + return typeof s == 'string' && (s.indexOf('&') >= 0 || s.indexOf('>') >= 0 || s.indexOf('<') >= 0); + }), + (a = function (s) { + return ''; + }), + (r = function (s) { + return s.replace(']]>', ']]]]>'); + }), + (nA.Builder = (function () { + function s(l) { + var u, p, c; + (this.options = {}), (p = t['0.2']); + for (u in p) o.call(p, u) && ((c = p[u]), (this.options[u] = c)); + for (u in l) o.call(l, u) && ((c = l[u]), (this.options[u] = c)); + } + return ( + (s.prototype.buildObject = function (l) { + var u, p, c, f, h; + return ( + (u = this.options.attrkey), + (p = this.options.charkey), + Object.keys(l).length === 1 && this.options.rootName === t['0.2'].rootName + ? ((h = Object.keys(l)[0]), (l = l[h])) + : (h = this.options.rootName), + (c = (function (m) { + return function (v, y) { + var S, w, O, x, _, b; + if (typeof y != 'object') m.options.cdata && n(y) ? v.raw(a(y)) : v.txt(y); + else if (Array.isArray(y)) { + for (x in y) + if (o.call(y, x)) { + w = y[x]; + for (_ in w) (O = w[_]), (v = c(v.ele(_), O).up()); + } + } else + for (_ in y) + if (o.call(y, _)) + if (((w = y[_]), _ === u)) { + if (typeof w == 'object') for (S in w) (b = w[S]), (v = v.att(S, b)); + } else if (_ === p) m.options.cdata && n(w) ? (v = v.raw(a(w))) : (v = v.txt(w)); + else if (Array.isArray(w)) + for (x in w) + o.call(w, x) && + ((O = w[x]), + typeof O == 'string' + ? m.options.cdata && n(O) + ? (v = v.ele(_).raw(a(O)).up()) + : (v = v.ele(_, O).up()) + : (v = c(v.ele(_), O).up())); + else + typeof w == 'object' + ? (v = c(v.ele(_), w).up()) + : typeof w == 'string' && m.options.cdata && n(w) + ? (v = v.ele(_).raw(a(w)).up()) + : (w == null && (w = ''), (v = v.ele(_, w.toString()).up())); + return v; + }; + })(this)), + (f = e.create(h, this.options.xmldec, this.options.doctype, { + headless: this.options.headless, + allowSurrogateChars: this.options.allowSurrogateChars, + })), + c(f, l).end(this.options.renderOpts) + ); + }), + s + ); + })()); + }).call(nA); +}); +var $ue = d((qw) => { + (function (e) { + (e.parser = function (P, k) { + return new r(P, k); + }), + (e.SAXParser = r), + (e.SAXStream = p), + (e.createStream = u), + (e.MAX_BUFFER_LENGTH = 64 * 1024); + var t = [ + 'comment', + 'sgmlDecl', + 'textNode', + 'tagName', + 'doctype', + 'procInstName', + 'procInstBody', + 'entity', + 'attribName', + 'attribValue', + 'cdata', + 'script', + ]; + e.EVENTS = [ + 'text', + 'processinginstruction', + 'sgmldeclaration', + 'doctype', + 'comment', + 'opentagstart', + 'attribute', + 'opentag', + 'closetag', + 'opencdata', + 'cdata', + 'closecdata', + 'error', + 'end', + 'ready', + 'script', + 'opennamespace', + 'closenamespace', + ]; + function r(P, k) { + if (!(this instanceof r)) return new r(P, k); + var G = this; + a(G), + (G.q = G.c = ''), + (G.bufferCheckPosition = e.MAX_BUFFER_LENGTH), + (G.opt = k || {}), + (G.opt.lowercase = G.opt.lowercase || G.opt.lowercasetags), + (G.looseCase = G.opt.lowercase ? 'toLowerCase' : 'toUpperCase'), + (G.tags = []), + (G.closed = G.closedRoot = G.sawRoot = !1), + (G.tag = G.error = null), + (G.strict = !!P), + (G.noscript = !!(P || G.opt.noscript)), + (G.state = C.BEGIN), + (G.strictEntities = G.opt.strictEntities), + (G.ENTITIES = G.strictEntities ? Object.create(e.XML_ENTITIES) : Object.create(e.ENTITIES)), + (G.attribList = []), + G.opt.xmlns && (G.ns = Object.create(v)), + (G.trackPosition = G.opt.position !== !1), + G.trackPosition && (G.position = G.line = G.column = 0), + A(G, 'onready'); + } + Object.create || + (Object.create = function (P) { + function k() {} + k.prototype = P; + var G = new k(); + return G; + }), + Object.keys || + (Object.keys = function (P) { + var k = []; + for (var G in P) P.hasOwnProperty(G) && k.push(G); + return k; + }); + function n(P) { + for (var k = Math.max(e.MAX_BUFFER_LENGTH, 10), G = 0, M = 0, Ae = t.length; M < Ae; M++) { + var ht = P[t[M]].length; + if (ht > k) + switch (t[M]) { + case 'textNode': + U(P); + break; + case 'cdata': + j(P, 'oncdata', P.cdata), (P.cdata = ''); + break; + case 'script': + j(P, 'onscript', P.script), (P.script = ''); + break; + default: + K(P, 'Max buffer length exceeded: ' + t[M]); + } + G = Math.max(G, ht); + } + var wt = e.MAX_BUFFER_LENGTH - G; + P.bufferCheckPosition = wt + P.position; + } + function a(P) { + for (var k = 0, G = t.length; k < G; k++) P[t[k]] = ''; + } + function o(P) { + U(P), + P.cdata !== '' && (j(P, 'oncdata', P.cdata), (P.cdata = '')), + P.script !== '' && (j(P, 'onscript', P.script), (P.script = '')); + } + r.prototype = { + end: function () { + te(this); + }, + write: Or, + resume: function () { + return (this.error = null), this; + }, + close: function () { + return this.write(null); + }, + flush: function () { + o(this); + }, + }; + var s; + try { + s = require('stream').Stream; + } catch { + s = function () {}; + } + var l = e.EVENTS.filter(function (P) { + return P !== 'error' && P !== 'end'; + }); + function u(P, k) { + return new p(P, k); + } + function p(P, k) { + if (!(this instanceof p)) return new p(P, k); + s.apply(this), (this._parser = new r(P, k)), (this.writable = !0), (this.readable = !0); + var G = this; + (this._parser.onend = function () { + G.emit('end'); + }), + (this._parser.onerror = function (M) { + G.emit('error', M), (G._parser.error = null); + }), + (this._decoder = null), + l.forEach(function (M) { + Object.defineProperty(G, 'on' + M, { + get: function () { + return G._parser['on' + M]; + }, + set: function (Ae) { + if (!Ae) return G.removeAllListeners(M), (G._parser['on' + M] = Ae), Ae; + G.on(M, Ae); + }, + enumerable: !0, + configurable: !1, + }); + }); + } + (p.prototype = Object.create(s.prototype, { constructor: { value: p } })), + (p.prototype.write = function (P) { + if (typeof Buffer == 'function' && typeof Buffer.isBuffer == 'function' && Buffer.isBuffer(P)) { + if (!this._decoder) { + var k = require('string_decoder').StringDecoder; + this._decoder = new k('utf8'); + } + P = this._decoder.write(P); + } + return this._parser.write(P.toString()), this.emit('data', P), !0; + }), + (p.prototype.end = function (P) { + return P && P.length && this.write(P), this._parser.end(), !0; + }), + (p.prototype.on = function (P, k) { + var G = this; + return ( + !G._parser['on' + P] && + l.indexOf(P) !== -1 && + (G._parser['on' + P] = function () { + var M = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments); + M.splice(0, 0, P), G.emit.apply(G, M); + }), + s.prototype.on.call(G, P, k) + ); + }); + var c = '[CDATA[', + f = 'DOCTYPE', + h = 'http://www.w3.org/XML/1998/namespace', + m = 'http://www.w3.org/2000/xmlns/', + v = { xml: h, xmlns: m }, + y = + /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, + S = + /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/, + w = + /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, + O = + /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/; + function x(P) { + return ( + P === ' ' || + P === + ` +` || + P === '\r' || + P === ' ' + ); + } + function _(P) { + return P === '"' || P === "'"; + } + function b(P) { + return P === '>' || x(P); + } + function T(P, k) { + return P.test(k); + } + function R(P, k) { + return !T(P, k); + } + var C = 0; + (e.STATE = { + BEGIN: C++, + BEGIN_WHITESPACE: C++, + TEXT: C++, + TEXT_ENTITY: C++, + OPEN_WAKA: C++, + SGML_DECL: C++, + SGML_DECL_QUOTED: C++, + DOCTYPE: C++, + DOCTYPE_QUOTED: C++, + DOCTYPE_DTD: C++, + DOCTYPE_DTD_QUOTED: C++, + COMMENT_STARTING: C++, + COMMENT: C++, + COMMENT_ENDING: C++, + COMMENT_ENDED: C++, + CDATA: C++, + CDATA_ENDING: C++, + CDATA_ENDING_2: C++, + PROC_INST: C++, + PROC_INST_BODY: C++, + PROC_INST_ENDING: C++, + OPEN_TAG: C++, + OPEN_TAG_SLASH: C++, + ATTRIB: C++, + ATTRIB_NAME: C++, + ATTRIB_NAME_SAW_WHITE: C++, + ATTRIB_VALUE: C++, + ATTRIB_VALUE_QUOTED: C++, + ATTRIB_VALUE_CLOSED: C++, + ATTRIB_VALUE_UNQUOTED: C++, + ATTRIB_VALUE_ENTITY_Q: C++, + ATTRIB_VALUE_ENTITY_U: C++, + CLOSE_TAG: C++, + CLOSE_TAG_SAW_WHITE: C++, + SCRIPT: C++, + SCRIPT_ENDING: C++, + }), + (e.XML_ENTITIES = { amp: '&', gt: '>', lt: '<', quot: '"', apos: "'" }), + (e.ENTITIES = { + amp: '&', + gt: '>', + lt: '<', + quot: '"', + apos: "'", + AElig: 198, + Aacute: 193, + Acirc: 194, + Agrave: 192, + Aring: 197, + Atilde: 195, + Auml: 196, + Ccedil: 199, + ETH: 208, + Eacute: 201, + Ecirc: 202, + Egrave: 200, + Euml: 203, + Iacute: 205, + Icirc: 206, + Igrave: 204, + Iuml: 207, + Ntilde: 209, + Oacute: 211, + Ocirc: 212, + Ograve: 210, + Oslash: 216, + Otilde: 213, + Ouml: 214, + THORN: 222, + Uacute: 218, + Ucirc: 219, + Ugrave: 217, + Uuml: 220, + Yacute: 221, + aacute: 225, + acirc: 226, + aelig: 230, + agrave: 224, + aring: 229, + atilde: 227, + auml: 228, + ccedil: 231, + eacute: 233, + ecirc: 234, + egrave: 232, + eth: 240, + euml: 235, + iacute: 237, + icirc: 238, + igrave: 236, + iuml: 239, + ntilde: 241, + oacute: 243, + ocirc: 244, + ograve: 242, + oslash: 248, + otilde: 245, + ouml: 246, + szlig: 223, + thorn: 254, + uacute: 250, + ucirc: 251, + ugrave: 249, + uuml: 252, + yacute: 253, + yuml: 255, + copy: 169, + reg: 174, + nbsp: 160, + iexcl: 161, + cent: 162, + pound: 163, + curren: 164, + yen: 165, + brvbar: 166, + sect: 167, + uml: 168, + ordf: 170, + laquo: 171, + not: 172, + shy: 173, + macr: 175, + deg: 176, + plusmn: 177, + sup1: 185, + sup2: 178, + sup3: 179, + acute: 180, + micro: 181, + para: 182, + middot: 183, + cedil: 184, + ordm: 186, + raquo: 187, + frac14: 188, + frac12: 189, + frac34: 190, + iquest: 191, + times: 215, + divide: 247, + OElig: 338, + oelig: 339, + Scaron: 352, + scaron: 353, + Yuml: 376, + fnof: 402, + circ: 710, + tilde: 732, + Alpha: 913, + Beta: 914, + Gamma: 915, + Delta: 916, + Epsilon: 917, + Zeta: 918, + Eta: 919, + Theta: 920, + Iota: 921, + Kappa: 922, + Lambda: 923, + Mu: 924, + Nu: 925, + Xi: 926, + Omicron: 927, + Pi: 928, + Rho: 929, + Sigma: 931, + Tau: 932, + Upsilon: 933, + Phi: 934, + Chi: 935, + Psi: 936, + Omega: 937, + alpha: 945, + beta: 946, + gamma: 947, + delta: 948, + epsilon: 949, + zeta: 950, + eta: 951, + theta: 952, + iota: 953, + kappa: 954, + lambda: 955, + mu: 956, + nu: 957, + xi: 958, + omicron: 959, + pi: 960, + rho: 961, + sigmaf: 962, + sigma: 963, + tau: 964, + upsilon: 965, + phi: 966, + chi: 967, + psi: 968, + omega: 969, + thetasym: 977, + upsih: 978, + piv: 982, + ensp: 8194, + emsp: 8195, + thinsp: 8201, + zwnj: 8204, + zwj: 8205, + lrm: 8206, + rlm: 8207, + ndash: 8211, + mdash: 8212, + lsquo: 8216, + rsquo: 8217, + sbquo: 8218, + ldquo: 8220, + rdquo: 8221, + bdquo: 8222, + dagger: 8224, + Dagger: 8225, + bull: 8226, + hellip: 8230, + permil: 8240, + prime: 8242, + Prime: 8243, + lsaquo: 8249, + rsaquo: 8250, + oline: 8254, + frasl: 8260, + euro: 8364, + image: 8465, + weierp: 8472, + real: 8476, + trade: 8482, + alefsym: 8501, + larr: 8592, + uarr: 8593, + rarr: 8594, + darr: 8595, + harr: 8596, + crarr: 8629, + lArr: 8656, + uArr: 8657, + rArr: 8658, + dArr: 8659, + hArr: 8660, + forall: 8704, + part: 8706, + exist: 8707, + empty: 8709, + nabla: 8711, + isin: 8712, + notin: 8713, + ni: 8715, + prod: 8719, + sum: 8721, + minus: 8722, + lowast: 8727, + radic: 8730, + prop: 8733, + infin: 8734, + ang: 8736, + and: 8743, + or: 8744, + cap: 8745, + cup: 8746, + int: 8747, + there4: 8756, + sim: 8764, + cong: 8773, + asymp: 8776, + ne: 8800, + equiv: 8801, + le: 8804, + ge: 8805, + sub: 8834, + sup: 8835, + nsub: 8836, + sube: 8838, + supe: 8839, + oplus: 8853, + otimes: 8855, + perp: 8869, + sdot: 8901, + lceil: 8968, + rceil: 8969, + lfloor: 8970, + rfloor: 8971, + lang: 9001, + rang: 9002, + loz: 9674, + spades: 9824, + clubs: 9827, + hearts: 9829, + diams: 9830, + }), + Object.keys(e.ENTITIES).forEach(function (P) { + var k = e.ENTITIES[P], + G = typeof k == 'number' ? String.fromCharCode(k) : k; + e.ENTITIES[P] = G; + }); + for (var N in e.STATE) e.STATE[e.STATE[N]] = N; + C = e.STATE; + function A(P, k, G) { + P[k] && P[k](G); + } + function j(P, k, G) { + P.textNode && U(P), A(P, k, G); + } + function U(P) { + (P.textNode = z(P.opt, P.textNode)), P.textNode && A(P, 'ontext', P.textNode), (P.textNode = ''); + } + function z(P, k) { + return P.trim && (k = k.trim()), P.normalize && (k = k.replace(/\s+/g, ' ')), k; + } + function K(P, k) { + return ( + U(P), + P.trackPosition && + (k += + ` +Line: ` + + P.line + + ` +Column: ` + + P.column + + ` +Char: ` + + P.c), + (k = new Error(k)), + (P.error = k), + A(P, 'onerror', k), + P + ); + } + function te(P) { + return ( + P.sawRoot && !P.closedRoot && J(P, 'Unclosed root tag'), + P.state !== C.BEGIN && P.state !== C.BEGIN_WHITESPACE && P.state !== C.TEXT && K(P, 'Unexpected end'), + U(P), + (P.c = ''), + (P.closed = !0), + A(P, 'onend'), + r.call(P, P.strict, P.opt), + P + ); + } + function J(P, k) { + if (typeof P != 'object' || !(P instanceof r)) throw new Error('bad call to strictFail'); + P.strict && K(P, k); + } + function ie(P) { + P.strict || (P.tagName = P.tagName[P.looseCase]()); + var k = P.tags[P.tags.length - 1] || P, + G = (P.tag = { name: P.tagName, attributes: {} }); + P.opt.xmlns && (G.ns = k.ns), (P.attribList.length = 0), j(P, 'onopentagstart', G); + } + function oe(P, k) { + var G = P.indexOf(':'), + M = G < 0 ? ['', P] : P.split(':'), + Ae = M[0], + ht = M[1]; + return k && P === 'xmlns' && ((Ae = 'xmlns'), (ht = '')), { prefix: Ae, local: ht }; + } + function he(P) { + if ( + (P.strict || (P.attribName = P.attribName[P.looseCase]()), + P.attribList.indexOf(P.attribName) !== -1 || P.tag.attributes.hasOwnProperty(P.attribName)) + ) { + P.attribName = P.attribValue = ''; + return; + } + if (P.opt.xmlns) { + var k = oe(P.attribName, !0), + G = k.prefix, + M = k.local; + if (G === 'xmlns') + if (M === 'xml' && P.attribValue !== h) + J( + P, + 'xml: prefix must be bound to ' + + h + + ` +Actual: ` + + P.attribValue + ); + else if (M === 'xmlns' && P.attribValue !== m) + J( + P, + 'xmlns: prefix must be bound to ' + + m + + ` +Actual: ` + + P.attribValue + ); + else { + var Ae = P.tag, + ht = P.tags[P.tags.length - 1] || P; + Ae.ns === ht.ns && (Ae.ns = Object.create(ht.ns)), (Ae.ns[M] = P.attribValue); + } + P.attribList.push([P.attribName, P.attribValue]); + } else + (P.tag.attributes[P.attribName] = P.attribValue), + j(P, 'onattribute', { name: P.attribName, value: P.attribValue }); + P.attribName = P.attribValue = ''; + } + function hr(P, k) { + if (P.opt.xmlns) { + var G = P.tag, + M = oe(P.tagName); + (G.prefix = M.prefix), + (G.local = M.local), + (G.uri = G.ns[M.prefix] || ''), + G.prefix && !G.uri && (J(P, 'Unbound namespace prefix: ' + JSON.stringify(P.tagName)), (G.uri = M.prefix)); + var Ae = P.tags[P.tags.length - 1] || P; + G.ns && + Ae.ns !== G.ns && + Object.keys(G.ns).forEach(function (Zr) { + j(P, 'onopennamespace', { prefix: Zr, uri: G.ns[Zr] }); + }); + for (var ht = 0, wt = P.attribList.length; ht < wt; ht++) { + var nr = P.attribList[ht], + kt = nr[0], + Oi = nr[1], + bt = oe(kt, !0), + Yr = bt.prefix, + Ta = bt.local, + pl = Yr === '' ? '' : G.ns[Yr] || '', + Qr = { name: kt, value: Oi, prefix: Yr, local: Ta, uri: pl }; + Yr && Yr !== 'xmlns' && !pl && (J(P, 'Unbound namespace prefix: ' + JSON.stringify(Yr)), (Qr.uri = Yr)), + (P.tag.attributes[kt] = Qr), + j(P, 'onattribute', Qr); + } + P.attribList.length = 0; + } + (P.tag.isSelfClosing = !!k), + (P.sawRoot = !0), + P.tags.push(P.tag), + j(P, 'onopentag', P.tag), + k || + (!P.noscript && P.tagName.toLowerCase() === 'script' ? (P.state = C.SCRIPT) : (P.state = C.TEXT), + (P.tag = null), + (P.tagName = '')), + (P.attribName = P.attribValue = ''), + (P.attribList.length = 0); + } + function xr(P) { + if (!P.tagName) { + J(P, 'Weird empty close tag.'), (P.textNode += ''), (P.state = C.TEXT); + return; + } + if (P.script) { + if (P.tagName !== 'script') { + (P.script += ''), (P.tagName = ''), (P.state = C.SCRIPT); + return; + } + j(P, 'onscript', P.script), (P.script = ''); + } + var k = P.tags.length, + G = P.tagName; + P.strict || (G = G[P.looseCase]()); + for (var M = G; k--; ) { + var Ae = P.tags[k]; + if (Ae.name !== M) J(P, 'Unexpected close tag'); + else break; + } + if (k < 0) { + J(P, 'Unmatched closing tag: ' + P.tagName), (P.textNode += ''), (P.state = C.TEXT); + return; + } + P.tagName = G; + for (var ht = P.tags.length; ht-- > k; ) { + var wt = (P.tag = P.tags.pop()); + (P.tagName = P.tag.name), j(P, 'onclosetag', P.tagName); + var nr = {}; + for (var kt in wt.ns) nr[kt] = wt.ns[kt]; + var Oi = P.tags[P.tags.length - 1] || P; + P.opt.xmlns && + wt.ns !== Oi.ns && + Object.keys(wt.ns).forEach(function (bt) { + var Yr = wt.ns[bt]; + j(P, 'onclosenamespace', { prefix: bt, uri: Yr }); + }); + } + k === 0 && (P.closedRoot = !0), + (P.tagName = P.attribValue = P.attribName = ''), + (P.attribList.length = 0), + (P.state = C.TEXT); + } + function Mi(P) { + var k = P.entity, + G = k.toLowerCase(), + M, + Ae = ''; + return P.ENTITIES[k] + ? P.ENTITIES[k] + : P.ENTITIES[G] + ? P.ENTITIES[G] + : ((k = G), + k.charAt(0) === '#' && + (k.charAt(1) === 'x' + ? ((k = k.slice(2)), (M = parseInt(k, 16)), (Ae = M.toString(16))) + : ((k = k.slice(1)), (M = parseInt(k, 10)), (Ae = M.toString(10)))), + (k = k.replace(/^0+/, '')), + isNaN(M) || Ae.toLowerCase() !== k + ? (J(P, 'Invalid character entity'), '&' + P.entity + ';') + : String.fromCodePoint(M)); + } + function Oa(P, k) { + k === '<' + ? ((P.state = C.OPEN_WAKA), (P.startTagPosition = P.position)) + : x(k) || (J(P, 'Non-whitespace before first tag.'), (P.textNode = k), (P.state = C.TEXT)); + } + function Se(P, k) { + var G = ''; + return k < P.length && (G = P.charAt(k)), G; + } + function Or(P) { + var k = this; + if (this.error) throw this.error; + if (k.closed) return K(k, 'Cannot write after close. Assign an onready handler.'); + if (P === null) return te(k); + typeof P == 'object' && (P = P.toString()); + for (var G = 0, M = ''; (M = Se(P, G++)), (k.c = M), !!M; ) + switch ( + (k.trackPosition && + (k.position++, + M === + ` +` + ? (k.line++, (k.column = 0)) + : k.column++), + k.state) + ) { + case C.BEGIN: + if (((k.state = C.BEGIN_WHITESPACE), M === '\uFEFF')) continue; + Oa(k, M); + continue; + case C.BEGIN_WHITESPACE: + Oa(k, M); + continue; + case C.TEXT: + if (k.sawRoot && !k.closedRoot) { + for (var Ae = G - 1; M && M !== '<' && M !== '&'; ) + (M = Se(P, G++)), + M && + k.trackPosition && + (k.position++, + M === + ` +` + ? (k.line++, (k.column = 0)) + : k.column++); + k.textNode += P.substring(Ae, G - 1); + } + M === '<' && !(k.sawRoot && k.closedRoot && !k.strict) + ? ((k.state = C.OPEN_WAKA), (k.startTagPosition = k.position)) + : (!x(M) && (!k.sawRoot || k.closedRoot) && J(k, 'Text data outside of root node.'), + M === '&' ? (k.state = C.TEXT_ENTITY) : (k.textNode += M)); + continue; + case C.SCRIPT: + M === '<' ? (k.state = C.SCRIPT_ENDING) : (k.script += M); + continue; + case C.SCRIPT_ENDING: + M === '/' ? (k.state = C.CLOSE_TAG) : ((k.script += '<' + M), (k.state = C.SCRIPT)); + continue; + case C.OPEN_WAKA: + if (M === '!') (k.state = C.SGML_DECL), (k.sgmlDecl = ''); + else if (!x(M)) + if (T(y, M)) (k.state = C.OPEN_TAG), (k.tagName = M); + else if (M === '/') (k.state = C.CLOSE_TAG), (k.tagName = ''); + else if (M === '?') (k.state = C.PROC_INST), (k.procInstName = k.procInstBody = ''); + else { + if ((J(k, 'Unencoded <'), k.startTagPosition + 1 < k.position)) { + var ht = k.position - k.startTagPosition; + M = new Array(ht).join(' ') + M; + } + (k.textNode += '<' + M), (k.state = C.TEXT); + } + continue; + case C.SGML_DECL: + (k.sgmlDecl + M).toUpperCase() === c + ? (j(k, 'onopencdata'), (k.state = C.CDATA), (k.sgmlDecl = ''), (k.cdata = '')) + : k.sgmlDecl + M === '--' + ? ((k.state = C.COMMENT), (k.comment = ''), (k.sgmlDecl = '')) + : (k.sgmlDecl + M).toUpperCase() === f + ? ((k.state = C.DOCTYPE), + (k.doctype || k.sawRoot) && J(k, 'Inappropriately located doctype declaration'), + (k.doctype = ''), + (k.sgmlDecl = '')) + : M === '>' + ? (j(k, 'onsgmldeclaration', k.sgmlDecl), (k.sgmlDecl = ''), (k.state = C.TEXT)) + : (_(M) && (k.state = C.SGML_DECL_QUOTED), (k.sgmlDecl += M)); + continue; + case C.SGML_DECL_QUOTED: + M === k.q && ((k.state = C.SGML_DECL), (k.q = '')), (k.sgmlDecl += M); + continue; + case C.DOCTYPE: + M === '>' + ? ((k.state = C.TEXT), j(k, 'ondoctype', k.doctype), (k.doctype = !0)) + : ((k.doctype += M), + M === '[' ? (k.state = C.DOCTYPE_DTD) : _(M) && ((k.state = C.DOCTYPE_QUOTED), (k.q = M))); + continue; + case C.DOCTYPE_QUOTED: + (k.doctype += M), M === k.q && ((k.q = ''), (k.state = C.DOCTYPE)); + continue; + case C.DOCTYPE_DTD: + (k.doctype += M), M === ']' ? (k.state = C.DOCTYPE) : _(M) && ((k.state = C.DOCTYPE_DTD_QUOTED), (k.q = M)); + continue; + case C.DOCTYPE_DTD_QUOTED: + (k.doctype += M), M === k.q && ((k.state = C.DOCTYPE_DTD), (k.q = '')); + continue; + case C.COMMENT: + M === '-' ? (k.state = C.COMMENT_ENDING) : (k.comment += M); + continue; + case C.COMMENT_ENDING: + M === '-' + ? ((k.state = C.COMMENT_ENDED), + (k.comment = z(k.opt, k.comment)), + k.comment && j(k, 'oncomment', k.comment), + (k.comment = '')) + : ((k.comment += '-' + M), (k.state = C.COMMENT)); + continue; + case C.COMMENT_ENDED: + M !== '>' + ? (J(k, 'Malformed comment'), (k.comment += '--' + M), (k.state = C.COMMENT)) + : (k.state = C.TEXT); + continue; + case C.CDATA: + M === ']' ? (k.state = C.CDATA_ENDING) : (k.cdata += M); + continue; + case C.CDATA_ENDING: + M === ']' ? (k.state = C.CDATA_ENDING_2) : ((k.cdata += ']' + M), (k.state = C.CDATA)); + continue; + case C.CDATA_ENDING_2: + M === '>' + ? (k.cdata && j(k, 'oncdata', k.cdata), j(k, 'onclosecdata'), (k.cdata = ''), (k.state = C.TEXT)) + : M === ']' + ? (k.cdata += ']') + : ((k.cdata += ']]' + M), (k.state = C.CDATA)); + continue; + case C.PROC_INST: + M === '?' ? (k.state = C.PROC_INST_ENDING) : x(M) ? (k.state = C.PROC_INST_BODY) : (k.procInstName += M); + continue; + case C.PROC_INST_BODY: + if (!k.procInstBody && x(M)) continue; + M === '?' ? (k.state = C.PROC_INST_ENDING) : (k.procInstBody += M); + continue; + case C.PROC_INST_ENDING: + M === '>' + ? (j(k, 'onprocessinginstruction', { name: k.procInstName, body: k.procInstBody }), + (k.procInstName = k.procInstBody = ''), + (k.state = C.TEXT)) + : ((k.procInstBody += '?' + M), (k.state = C.PROC_INST_BODY)); + continue; + case C.OPEN_TAG: + T(S, M) + ? (k.tagName += M) + : (ie(k), + M === '>' + ? hr(k) + : M === '/' + ? (k.state = C.OPEN_TAG_SLASH) + : (x(M) || J(k, 'Invalid character in tag name'), (k.state = C.ATTRIB))); + continue; + case C.OPEN_TAG_SLASH: + M === '>' + ? (hr(k, !0), xr(k)) + : (J(k, 'Forward-slash in opening tag not followed by >'), (k.state = C.ATTRIB)); + continue; + case C.ATTRIB: + if (x(M)) continue; + M === '>' + ? hr(k) + : M === '/' + ? (k.state = C.OPEN_TAG_SLASH) + : T(y, M) + ? ((k.attribName = M), (k.attribValue = ''), (k.state = C.ATTRIB_NAME)) + : J(k, 'Invalid attribute name'); + continue; + case C.ATTRIB_NAME: + M === '=' + ? (k.state = C.ATTRIB_VALUE) + : M === '>' + ? (J(k, 'Attribute without value'), (k.attribValue = k.attribName), he(k), hr(k)) + : x(M) + ? (k.state = C.ATTRIB_NAME_SAW_WHITE) + : T(S, M) + ? (k.attribName += M) + : J(k, 'Invalid attribute name'); + continue; + case C.ATTRIB_NAME_SAW_WHITE: + if (M === '=') k.state = C.ATTRIB_VALUE; + else { + if (x(M)) continue; + J(k, 'Attribute without value'), + (k.tag.attributes[k.attribName] = ''), + (k.attribValue = ''), + j(k, 'onattribute', { name: k.attribName, value: '' }), + (k.attribName = ''), + M === '>' + ? hr(k) + : T(y, M) + ? ((k.attribName = M), (k.state = C.ATTRIB_NAME)) + : (J(k, 'Invalid attribute name'), (k.state = C.ATTRIB)); + } + continue; + case C.ATTRIB_VALUE: + if (x(M)) continue; + _(M) + ? ((k.q = M), (k.state = C.ATTRIB_VALUE_QUOTED)) + : (J(k, 'Unquoted attribute value'), (k.state = C.ATTRIB_VALUE_UNQUOTED), (k.attribValue = M)); + continue; + case C.ATTRIB_VALUE_QUOTED: + if (M !== k.q) { + M === '&' ? (k.state = C.ATTRIB_VALUE_ENTITY_Q) : (k.attribValue += M); + continue; + } + he(k), (k.q = ''), (k.state = C.ATTRIB_VALUE_CLOSED); + continue; + case C.ATTRIB_VALUE_CLOSED: + x(M) + ? (k.state = C.ATTRIB) + : M === '>' + ? hr(k) + : M === '/' + ? (k.state = C.OPEN_TAG_SLASH) + : T(y, M) + ? (J(k, 'No whitespace between attributes'), + (k.attribName = M), + (k.attribValue = ''), + (k.state = C.ATTRIB_NAME)) + : J(k, 'Invalid attribute name'); + continue; + case C.ATTRIB_VALUE_UNQUOTED: + if (!b(M)) { + M === '&' ? (k.state = C.ATTRIB_VALUE_ENTITY_U) : (k.attribValue += M); + continue; + } + he(k), M === '>' ? hr(k) : (k.state = C.ATTRIB); + continue; + case C.CLOSE_TAG: + if (k.tagName) + M === '>' + ? xr(k) + : T(S, M) + ? (k.tagName += M) + : k.script + ? ((k.script += '' ? xr(k) : J(k, 'Invalid characters in closing tag'); + continue; + case C.TEXT_ENTITY: + case C.ATTRIB_VALUE_ENTITY_Q: + case C.ATTRIB_VALUE_ENTITY_U: + var wt, nr; + switch (k.state) { + case C.TEXT_ENTITY: + (wt = C.TEXT), (nr = 'textNode'); + break; + case C.ATTRIB_VALUE_ENTITY_Q: + (wt = C.ATTRIB_VALUE_QUOTED), (nr = 'attribValue'); + break; + case C.ATTRIB_VALUE_ENTITY_U: + (wt = C.ATTRIB_VALUE_UNQUOTED), (nr = 'attribValue'); + break; + } + M === ';' + ? ((k[nr] += Mi(k)), (k.entity = ''), (k.state = wt)) + : T(k.entity.length ? O : w, M) + ? (k.entity += M) + : (J(k, 'Invalid character in entity name'), + (k[nr] += '&' + k.entity + M), + (k.entity = ''), + (k.state = wt)); + continue; + default: + throw new Error(k, 'Unknown state: ' + k.state); + } + return k.position >= k.bufferCheckPosition && n(k), k; + } + String.fromCodePoint || + (function () { + var P = String.fromCharCode, + k = Math.floor, + G = function () { + var M = 16384, + Ae = [], + ht, + wt, + nr = -1, + kt = arguments.length; + if (!kt) return ''; + for (var Oi = ''; ++nr < kt; ) { + var bt = Number(arguments[nr]); + if (!isFinite(bt) || bt < 0 || bt > 1114111 || k(bt) !== bt) + throw RangeError('Invalid code point: ' + bt); + bt <= 65535 + ? Ae.push(bt) + : ((bt -= 65536), (ht = (bt >> 10) + 55296), (wt = (bt % 1024) + 56320), Ae.push(ht, wt)), + (nr + 1 === kt || Ae.length > M) && ((Oi += P.apply(null, Ae)), (Ae.length = 0)); + } + return Oi; + }; + Object.defineProperty + ? Object.defineProperty(String, 'fromCodePoint', { value: G, configurable: !0, writable: !0 }) + : (String.fromCodePoint = G); + })(); + })(typeof qw > 'u' ? (qw.sax = {}) : qw); +}); +var Bue = d((aA) => { + (function () { + 'use strict'; + aA.stripBOM = function (e) { + return e[0] === '\uFEFF' ? e.substring(1) : e; + }; + }).call(aA); +}); +var oA = d((rd) => { + (function () { + 'use strict'; + var e; + (e = new RegExp(/(?!xmlns)^.*:/)), + (rd.normalize = function (t) { + return t.toLowerCase(); + }), + (rd.firstCharLowerCase = function (t) { + return t.charAt(0).toLowerCase() + t.slice(1); + }), + (rd.stripPrefix = function (t) { + return t.replace(e, ''); + }), + (rd.parseNumbers = function (t) { + return isNaN(t) || (t = t % 1 === 0 ? parseInt(t, 10) : parseFloat(t)), t; + }), + (rd.parseBooleans = function (t) { + return /^(?:true|false)$/i.test(t) && (t = t.toLowerCase() === 'true'), t; + }); + }).call(rd); +}); +var Vue = d(($l) => { + (function () { + 'use strict'; + var e, + t, + r, + n, + a, + o, + s, + l, + u = function (f, h) { + return function () { + return f.apply(h, arguments); + }; + }, + p = function (f, h) { + for (var m in h) c.call(h, m) && (f[m] = h[m]); + function v() { + this.constructor = f; + } + return (v.prototype = h.prototype), (f.prototype = new v()), (f.__super__ = h.prototype), f; + }, + c = {}.hasOwnProperty; + (s = $ue()), + (r = require('events')), + (e = Bue()), + (o = oA()), + (l = require('timers').setImmediate), + (t = ww().defaults), + (n = function (f) { + return typeof f == 'object' && f != null && Object.keys(f).length === 0; + }), + (a = function (f, h, m) { + var v, y, S; + for (v = 0, y = f.length; v < y; v++) (S = f[v]), (h = S(h, m)); + return h; + }), + ($l.Parser = (function (f) { + p(h, f); + function h(m) { + (this.parseStringPromise = u(this.parseStringPromise, this)), + (this.parseString = u(this.parseString, this)), + (this.reset = u(this.reset, this)), + (this.assignOrPush = u(this.assignOrPush, this)), + (this.processAsync = u(this.processAsync, this)); + var v, y, S; + if (!(this instanceof $l.Parser)) return new $l.Parser(m); + (this.options = {}), (y = t['0.2']); + for (v in y) c.call(y, v) && ((S = y[v]), (this.options[v] = S)); + for (v in m) c.call(m, v) && ((S = m[v]), (this.options[v] = S)); + this.options.xmlns && (this.options.xmlnskey = this.options.attrkey + 'ns'), + this.options.normalizeTags && + (this.options.tagNameProcessors || (this.options.tagNameProcessors = []), + this.options.tagNameProcessors.unshift(o.normalize)), + this.reset(); + } + return ( + (h.prototype.processAsync = function () { + var m, v; + try { + return this.remaining.length <= this.options.chunkSize + ? ((m = this.remaining), + (this.remaining = ''), + (this.saxParser = this.saxParser.write(m)), + this.saxParser.close()) + : ((m = this.remaining.substr(0, this.options.chunkSize)), + (this.remaining = this.remaining.substr(this.options.chunkSize, this.remaining.length)), + (this.saxParser = this.saxParser.write(m)), + l(this.processAsync)); + } catch (y) { + if (((v = y), !this.saxParser.errThrown)) return (this.saxParser.errThrown = !0), this.emit(v); + } + }), + (h.prototype.assignOrPush = function (m, v, y) { + return v in m + ? (m[v] instanceof Array || (m[v] = [m[v]]), m[v].push(y)) + : this.options.explicitArray + ? (m[v] = [y]) + : (m[v] = y); + }), + (h.prototype.reset = function () { + var m, v, y, S; + return ( + this.removeAllListeners(), + (this.saxParser = s.parser(this.options.strict, { trim: !1, normalize: !1, xmlns: this.options.xmlns })), + (this.saxParser.errThrown = !1), + (this.saxParser.onerror = (function (w) { + return function (O) { + if ((w.saxParser.resume(), !w.saxParser.errThrown)) + return (w.saxParser.errThrown = !0), w.emit('error', O); + }; + })(this)), + (this.saxParser.onend = (function (w) { + return function () { + if (!w.saxParser.ended) return (w.saxParser.ended = !0), w.emit('end', w.resultObject); + }; + })(this)), + (this.saxParser.ended = !1), + (this.EXPLICIT_CHARKEY = this.options.explicitCharkey), + (this.resultObject = null), + (S = []), + (m = this.options.attrkey), + (v = this.options.charkey), + (this.saxParser.onopentag = (function (w) { + return function (O) { + var x, _, b, T, R; + if (((b = Object.create(null)), (b[v] = ''), !w.options.ignoreAttrs)) { + R = O.attributes; + for (x in R) + c.call(R, x) && + (!(m in b) && !w.options.mergeAttrs && (b[m] = Object.create(null)), + (_ = w.options.attrValueProcessors + ? a(w.options.attrValueProcessors, O.attributes[x], x) + : O.attributes[x]), + (T = w.options.attrNameProcessors ? a(w.options.attrNameProcessors, x) : x), + w.options.mergeAttrs ? w.assignOrPush(b, T, _) : (b[m][T] = _)); + } + return ( + (b['#name'] = w.options.tagNameProcessors ? a(w.options.tagNameProcessors, O.name) : O.name), + w.options.xmlns && (b[w.options.xmlnskey] = { uri: O.uri, local: O.local }), + S.push(b) + ); + }; + })(this)), + (this.saxParser.onclosetag = (function (w) { + return function () { + var O, x, _, b, T, R, C, N, A, j; + if ( + ((R = S.pop()), + (T = R['#name']), + (!w.options.explicitChildren || !w.options.preserveChildrenOrder) && delete R['#name'], + R.cdata === !0 && ((O = R.cdata), delete R.cdata), + (A = S[S.length - 1]), + R[v].match(/^\s*$/) && !O + ? ((x = R[v]), delete R[v]) + : (w.options.trim && (R[v] = R[v].trim()), + w.options.normalize && (R[v] = R[v].replace(/\s{2,}/g, ' ').trim()), + (R[v] = w.options.valueProcessors ? a(w.options.valueProcessors, R[v], T) : R[v]), + Object.keys(R).length === 1 && v in R && !w.EXPLICIT_CHARKEY && (R = R[v])), + n(R) && + (typeof w.options.emptyTag == 'function' + ? (R = w.options.emptyTag()) + : (R = w.options.emptyTag !== '' ? w.options.emptyTag : x)), + w.options.validator != null && + ((j = + '/' + + (function () { + var U, z, K; + for (K = [], U = 0, z = S.length; U < z; U++) (b = S[U]), K.push(b['#name']); + return K; + })() + .concat(T) + .join('/')), + (function () { + var U; + try { + return (R = w.options.validator(j, A && A[T], R)); + } catch (z) { + return (U = z), w.emit('error', U); + } + })()), + w.options.explicitChildren && !w.options.mergeAttrs && typeof R == 'object') + ) { + if (!w.options.preserveChildrenOrder) + (b = Object.create(null)), + w.options.attrkey in R && + ((b[w.options.attrkey] = R[w.options.attrkey]), delete R[w.options.attrkey]), + !w.options.charsAsChildren && + w.options.charkey in R && + ((b[w.options.charkey] = R[w.options.charkey]), delete R[w.options.charkey]), + Object.getOwnPropertyNames(R).length > 0 && (b[w.options.childkey] = R), + (R = b); + else if (A) { + (A[w.options.childkey] = A[w.options.childkey] || []), (C = Object.create(null)); + for (_ in R) c.call(R, _) && (C[_] = R[_]); + A[w.options.childkey].push(C), + delete R['#name'], + Object.keys(R).length === 1 && v in R && !w.EXPLICIT_CHARKEY && (R = R[v]); + } + } + return S.length > 0 + ? w.assignOrPush(A, T, R) + : (w.options.explicitRoot && ((N = R), (R = Object.create(null)), (R[T] = N)), + (w.resultObject = R), + (w.saxParser.ended = !0), + w.emit('end', w.resultObject)); + }; + })(this)), + (y = (function (w) { + return function (O) { + var x, _; + if (((_ = S[S.length - 1]), _)) + return ( + (_[v] += O), + w.options.explicitChildren && + w.options.preserveChildrenOrder && + w.options.charsAsChildren && + (w.options.includeWhiteChars || O.replace(/\\n/g, '').trim() !== '') && + ((_[w.options.childkey] = _[w.options.childkey] || []), + (x = { '#name': '__text__' }), + (x[v] = O), + w.options.normalize && (x[v] = x[v].replace(/\s{2,}/g, ' ').trim()), + _[w.options.childkey].push(x)), + _ + ); + }; + })(this)), + (this.saxParser.ontext = y), + (this.saxParser.oncdata = (function (w) { + return function (O) { + var x; + if (((x = y(O)), x)) return (x.cdata = !0); + }; + })(this)) + ); + }), + (h.prototype.parseString = function (m, v) { + var y; + v != null && + typeof v == 'function' && + (this.on('end', function (S) { + return this.reset(), v(null, S); + }), + this.on('error', function (S) { + return this.reset(), v(S); + })); + try { + return ( + (m = m.toString()), + m.trim() === '' + ? (this.emit('end', null), !0) + : ((m = e.stripBOM(m)), + this.options.async + ? ((this.remaining = m), l(this.processAsync), this.saxParser) + : this.saxParser.write(m).close()) + ); + } catch (S) { + if (((y = S), this.saxParser.errThrown || this.saxParser.ended)) { + if (this.saxParser.ended) throw y; + } else return this.emit('error', y), (this.saxParser.errThrown = !0); + } + }), + (h.prototype.parseStringPromise = function (m) { + return new Promise( + (function (v) { + return function (y, S) { + return v.parseString(m, function (w, O) { + return w ? S(w) : y(O); + }); + }; + })(this) + ); + }), + h + ); + })(r)), + ($l.parseString = function (f, h, m) { + var v, y, S; + return ( + m != null + ? (typeof m == 'function' && (v = m), typeof h == 'object' && (y = h)) + : (typeof h == 'function' && (v = h), (y = {})), + (S = new $l.Parser(y)), + S.parseString(f, v) + ); + }), + ($l.parseStringPromise = function (f, h) { + var m, v; + return typeof h == 'object' && (m = h), (v = new $l.Parser(m)), v.parseStringPromise(f); + }); + }).call($l); +}); +var zue = d((Bl) => { + (function () { + 'use strict'; + var e, + t, + r, + n, + a = function (s, l) { + for (var u in l) o.call(l, u) && (s[u] = l[u]); + function p() { + this.constructor = s; + } + return (p.prototype = l.prototype), (s.prototype = new p()), (s.__super__ = l.prototype), s; + }, + o = {}.hasOwnProperty; + (t = ww()), + (e = Uue()), + (r = Vue()), + (n = oA()), + (Bl.defaults = t.defaults), + (Bl.processors = n), + (Bl.ValidationError = (function (s) { + a(l, s); + function l(u) { + this.message = u; + } + return l; + })(Error)), + (Bl.Builder = e.Builder), + (Bl.Parser = r.Parser), + (Bl.parseString = r.parseString), + (Bl.parseStringPromise = r.parseStringPromise); + }).call(Bl); +}); +var Wue = d((DWt, Gue) => { + 'use strict'; + function Oat(e, t) { + if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function'); + } + function Hue(e, t) { + for (var r = 0; r < t.length; r++) { + var n = t[r]; + (n.enumerable = n.enumerable || !1), + (n.configurable = !0), + 'value' in n && (n.writable = !0), + Object.defineProperty(e, n.key, n); + } + } + function Tat(e, t, r) { + return t && Hue(e.prototype, t), r && Hue(e, r), e; + } + var Cat = (function () { + function e() { + var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 100; + Oat(this, e), (this.size = t), (this.length = 0), (this.buf = Buffer.alloc(t)); + } + return ( + Tat(e, [ + { + key: 'prepend', + value: function (r) { + if (Buffer.isBuffer(r)) { + var n = this.length + r.length; + if (n >= this.size && (this.resize(), n >= this.size)) throw Error('INVALID_BUFFER_STATE'); + var a = this.buf; + (this.buf = Buffer.alloc(this.size)), + r.copy(this.buf, 0), + a.copy(this.buf, r.length), + (this.length += r.length); + } else { + var o = this.length++; + o === this.size && this.resize(); + var s = this.clone(); + (this.buf[0] = r), s.copy(this.buf, 1, 0, o); + } + }, + }, + { + key: 'append', + value: function (r) { + var n = this.length++; + n === this.size && this.resize(), (this.buf[n] = r); + }, + }, + { + key: 'clone', + value: function () { + return Buffer.from(this.buf.slice(0, this.length)); + }, + }, + { + key: 'resize', + value: function () { + var r = this.length; + this.size = this.size * 2; + var n = Buffer.alloc(this.size); + this.buf.copy(n, 0, 0, r), (this.buf = n); + }, + }, + { + key: 'toString', + value: function (r) { + return r + ? this.buf.slice(0, this.length).toString(r) + : Uint8Array.prototype.slice.call(this.buf.slice(0, this.length)); + }, + }, + { + key: 'toJSON', + value: function () { + return this.toString('utf8'); + }, + }, + { + key: 'reset', + value: function () { + this.length = 0; + }, + }, + ]), + e + ); + })(); + Gue.exports = Cat; +}); +var cA = d((NWt, lpe) => { + 'use strict'; + function lA(e) { + var t = typeof Map == 'function' ? new Map() : void 0; + return ( + (lA = function (n) { + if (n === null || !kat(n)) return n; + if (typeof n != 'function') throw new TypeError('Super expression must either be null or a function'); + if (typeof t < 'u') { + if (t.has(n)) return t.get(n); + t.set(n, a); + } + function a() { + return Mw(n, arguments, xv(this).constructor); + } + return ( + (a.prototype = Object.create(n.prototype, { + constructor: { value: a, enumerable: !1, writable: !0, configurable: !0 }, + })), + Ev(a, n) + ); + }), + lA(e) + ); + } + function Mw(e, t, r) { + return ( + ape() + ? (Mw = Reflect.construct) + : (Mw = function (a, o, s) { + var l = [null]; + l.push.apply(l, o); + var u = Function.bind.apply(a, l), + p = new u(); + return s && Ev(p, s.prototype), p; + }), + Mw.apply(null, arguments) + ); + } + function kat(e) { + return Function.toString.call(e).indexOf('[native code]') !== -1; + } + function eh(e) { + '@babel/helpers - typeof'; + return ( + typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol' + ? (eh = function (r) { + return typeof r; + }) + : (eh = function (r) { + return r && typeof Symbol == 'function' && r.constructor === Symbol && r !== Symbol.prototype + ? 'symbol' + : typeof r; + }), + eh(e) + ); + } + function Aat(e, t) { + return Rat(e) || Pat(e, t) || epe(e, t) || Iat(); + } + function Iat() { + throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); + } + function Pat(e, t) { + var r = e == null ? null : (typeof Symbol < 'u' && e[Symbol.iterator]) || e['@@iterator']; + if (r != null) { + var n = [], + a = !0, + o = !1, + s, + l; + try { + for (r = r.call(e); !(a = (s = r.next()).done) && (n.push(s.value), !(t && n.length === t)); a = !0); + } catch (u) { + (o = !0), (l = u); + } finally { + try { + !a && r.return != null && r.return(); + } finally { + if (o) throw l; + } + } + return n; + } + } + function Rat(e) { + if (Array.isArray(e)) return e; + } + function Kue(e) { + return Nat(e) || Dat(e) || epe(e) || jat(); + } + function jat() { + throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); + } + function epe(e, t) { + if (e) { + if (typeof e == 'string') return uA(e, t); + var r = Object.prototype.toString.call(e).slice(8, -1); + if ((r === 'Object' && e.constructor && (r = e.constructor.name), r === 'Map' || r === 'Set')) + return Array.from(e); + if (r === 'Arguments' || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return uA(e, t); + } + } + function Dat(e) { + if ((typeof Symbol < 'u' && e[Symbol.iterator] != null) || e['@@iterator'] != null) return Array.from(e); + } + function Nat(e) { + if (Array.isArray(e)) return uA(e); + } + function uA(e, t) { + (t == null || t > e.length) && (t = e.length); + for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r]; + return n; + } + function Xue(e, t) { + var r = Object.keys(e); + if (Object.getOwnPropertySymbols) { + var n = Object.getOwnPropertySymbols(e); + t && + (n = n.filter(function (a) { + return Object.getOwnPropertyDescriptor(e, a).enumerable; + })), + r.push.apply(r, n); + } + return r; + } + function Fo(e) { + for (var t = 1; t < arguments.length; t++) { + var r = arguments[t] != null ? arguments[t] : {}; + t % 2 + ? Xue(Object(r), !0).forEach(function (n) { + qat(e, n, r[n]); + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) + : Xue(Object(r)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n)); + }); + } + return e; + } + function qat(e, t, r) { + return ( + t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : (e[t] = r), e + ); + } + function tpe(e, t) { + if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function'); + } + function Jue(e, t) { + for (var r = 0; r < t.length; r++) { + var n = t[r]; + (n.enumerable = n.enumerable || !1), + (n.configurable = !0), + 'value' in n && (n.writable = !0), + Object.defineProperty(e, n.key, n); + } + } + function Fat(e, t, r) { + return t && Jue(e.prototype, t), r && Jue(e, r), e; + } + function rpe(e, t) { + if (typeof t != 'function' && t !== null) throw new TypeError('Super expression must either be null or a function'); + (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } })), + t && Ev(e, t); + } + function Ev(e, t) { + return ( + (Ev = + Object.setPrototypeOf || + function (n, a) { + return (n.__proto__ = a), n; + }), + Ev(e, t) + ); + } + function ipe(e) { + var t = ape(); + return function () { + var n = xv(e), + a; + if (t) { + var o = xv(this).constructor; + a = Reflect.construct(n, arguments, o); + } else a = n.apply(this, arguments); + return Lat(this, a); + }; + } + function Lat(e, t) { + if (t && (eh(t) === 'object' || typeof t == 'function')) return t; + if (t !== void 0) throw new TypeError('Derived constructors may only return object or undefined'); + return npe(e); + } + function npe(e) { + if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return e; + } + function ape() { + if (typeof Reflect > 'u' || !Reflect.construct || Reflect.construct.sham) return !1; + if (typeof Proxy == 'function') return !0; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0; + } catch { + return !1; + } + } + function xv(e) { + return ( + (xv = Object.setPrototypeOf + ? Object.getPrototypeOf + : function (r) { + return r.__proto__ || Object.getPrototypeOf(r); + }), + xv(e) + ); + } + var Mat = require('stream'), + Uat = Mat.Transform, + Yue = Wue(), + $at = 9, + Fw = 10, + Bat = 12, + sA = 13, + Vat = 32, + Lw = { utf8: Buffer.from([239, 187, 191]), utf16le: Buffer.from([255, 254]) }, + ope = (function (e) { + rpe(r, e); + var t = ipe(r); + function r() { + var n, + a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + return ( + tpe(this, r), + (n = t.call(this, Fo(Fo(Fo({}, { readableObjectMode: !0 }), a), {}, { encoding: null }))), + (n.__originalOptions = a), + n.__normalizeOptions(a), + n + ); + } + return ( + Fat(r, [ + { + key: '__normalizeOptions', + value: function (a) { + var o = {}; + for (var s in a) o[zat(s)] = a[s]; + if (o.encoding === void 0 || o.encoding === !0) o.encoding = 'utf8'; + else if (o.encoding === null || o.encoding === !1) o.encoding = null; + else if (typeof o.encoding != 'string' && o.encoding !== null) + throw new zt( + 'CSV_INVALID_OPTION_ENCODING', + [ + 'Invalid option encoding:', + 'encoding must be a string or null to return a buffer,', + 'got '.concat(JSON.stringify(o.encoding)), + ], + o + ); + if (o.bom === void 0 || o.bom === null || o.bom === !1) o.bom = !1; + else if (o.bom !== !0) + throw new zt( + 'CSV_INVALID_OPTION_BOM', + ['Invalid option bom:', 'bom must be true,', 'got '.concat(JSON.stringify(o.bom))], + o + ); + var l = null; + if (o.cast === void 0 || o.cast === null || o.cast === !1 || o.cast === '') o.cast = void 0; + else if (typeof o.cast == 'function') (l = o.cast), (o.cast = !0); + else if (o.cast !== !0) + throw new zt( + 'CSV_INVALID_OPTION_CAST', + ['Invalid option cast:', 'cast must be true or a function,', 'got '.concat(JSON.stringify(o.cast))], + o + ); + if (o.cast_date === void 0 || o.cast_date === null || o.cast_date === !1 || o.cast_date === '') + o.cast_date = !1; + else if (o.cast_date === !0) + o.cast_date = function (c) { + var f = Date.parse(c); + return isNaN(f) ? c : new Date(f); + }; + else + throw new zt( + 'CSV_INVALID_OPTION_CAST_DATE', + [ + 'Invalid option cast_date:', + 'cast_date must be true or a function,', + 'got '.concat(JSON.stringify(o.cast_date)), + ], + o + ); + var u = null; + if (o.columns === !0) u = void 0; + else if (typeof o.columns == 'function') (u = o.columns), (o.columns = !0); + else if (Array.isArray(o.columns)) o.columns = Zue(o.columns); + else if (o.columns === void 0 || o.columns === null || o.columns === !1) o.columns = !1; + else + throw new zt( + 'CSV_INVALID_OPTION_COLUMNS', + [ + 'Invalid option columns:', + 'expect an array, a function or true,', + 'got '.concat(JSON.stringify(o.columns)), + ], + o + ); + if ( + o.columns_duplicates_to_array === void 0 || + o.columns_duplicates_to_array === null || + o.columns_duplicates_to_array === !1 + ) + o.columns_duplicates_to_array = !1; + else { + if (o.columns_duplicates_to_array !== !0) + throw new zt( + 'CSV_INVALID_OPTION_COLUMNS_DUPLICATES_TO_ARRAY', + [ + 'Invalid option columns_duplicates_to_array:', + 'expect an boolean,', + 'got '.concat(JSON.stringify(o.columns_duplicates_to_array)), + ], + o + ); + if (o.columns === !1) + throw new zt( + 'CSV_INVALID_OPTION_COLUMNS_DUPLICATES_TO_ARRAY', + ['Invalid option columns_duplicates_to_array:', 'the `columns` mode must be activated.'], + o + ); + } + if (o.comment === void 0 || o.comment === null || o.comment === !1 || o.comment === '') o.comment = null; + else if ( + (typeof o.comment == 'string' && (o.comment = Buffer.from(o.comment, o.encoding)), + !Buffer.isBuffer(o.comment)) + ) + throw new zt( + 'CSV_INVALID_OPTION_COMMENT', + [ + 'Invalid option comment:', + 'comment must be a buffer or a string,', + 'got '.concat(JSON.stringify(o.comment)), + ], + o + ); + var p = JSON.stringify(o.delimiter); + if ((Array.isArray(o.delimiter) || (o.delimiter = [o.delimiter]), o.delimiter.length === 0)) + throw new zt( + 'CSV_INVALID_OPTION_DELIMITER', + [ + 'Invalid option delimiter:', + 'delimiter must be a non empty string or buffer or array of string|buffer,', + 'got '.concat(p), + ], + o + ); + if ( + ((o.delimiter = o.delimiter.map(function (c) { + if (c == null || c === !1) return Buffer.from(',', o.encoding); + if ((typeof c == 'string' && (c = Buffer.from(c, o.encoding)), !Buffer.isBuffer(c) || c.length === 0)) + throw new zt( + 'CSV_INVALID_OPTION_DELIMITER', + [ + 'Invalid option delimiter:', + 'delimiter must be a non empty string or buffer or array of string|buffer,', + 'got '.concat(p), + ], + o + ); + return c; + })), + o.escape === void 0 || o.escape === !0 + ? (o.escape = Buffer.from('"', o.encoding)) + : typeof o.escape == 'string' + ? (o.escape = Buffer.from(o.escape, o.encoding)) + : (o.escape === null || o.escape === !1) && (o.escape = null), + o.escape !== null && !Buffer.isBuffer(o.escape)) + ) + throw new Error( + 'Invalid Option: escape must be a buffer, a string or a boolean, got '.concat( + JSON.stringify(o.escape) + ) + ); + if (o.from === void 0 || o.from === null) o.from = 1; + else if ( + (typeof o.from == 'string' && /\d+/.test(o.from) && (o.from = parseInt(o.from)), + Number.isInteger(o.from)) + ) { + if (o.from < 0) + throw new Error( + 'Invalid Option: from must be a positive integer, got '.concat(JSON.stringify(a.from)) + ); + } else throw new Error('Invalid Option: from must be an integer, got '.concat(JSON.stringify(o.from))); + if (o.from_line === void 0 || o.from_line === null) o.from_line = 1; + else if ( + (typeof o.from_line == 'string' && /\d+/.test(o.from_line) && (o.from_line = parseInt(o.from_line)), + Number.isInteger(o.from_line)) + ) { + if (o.from_line <= 0) + throw new Error( + 'Invalid Option: from_line must be a positive integer greater than 0, got '.concat( + JSON.stringify(a.from_line) + ) + ); + } else + throw new Error( + 'Invalid Option: from_line must be an integer, got '.concat(JSON.stringify(a.from_line)) + ); + if (o.ignore_last_delimiters === void 0 || o.ignore_last_delimiters === null) + o.ignore_last_delimiters = !1; + else if (typeof o.ignore_last_delimiters == 'number') + (o.ignore_last_delimiters = Math.floor(o.ignore_last_delimiters)), + o.ignore_last_delimiters === 0 && (o.ignore_last_delimiters = !1); + else if (typeof o.ignore_last_delimiters != 'boolean') + throw new zt( + 'CSV_INVALID_OPTION_IGNORE_LAST_DELIMITERS', + [ + 'Invalid option `ignore_last_delimiters`:', + 'the value must be a boolean value or an integer,', + 'got '.concat(JSON.stringify(o.ignore_last_delimiters)), + ], + o + ); + if (o.ignore_last_delimiters === !0 && o.columns === !1) + throw new zt( + 'CSV_IGNORE_LAST_DELIMITERS_REQUIRES_COLUMNS', + ['The option `ignore_last_delimiters`', 'requires the activation of the `columns` option'], + o + ); + if (o.info === void 0 || o.info === null || o.info === !1) o.info = !1; + else if (o.info !== !0) + throw new Error('Invalid Option: info must be true, got '.concat(JSON.stringify(o.info))); + if (o.max_record_size === void 0 || o.max_record_size === null || o.max_record_size === !1) + o.max_record_size = 0; + else if (!(Number.isInteger(o.max_record_size) && o.max_record_size >= 0)) + if (typeof o.max_record_size == 'string' && /\d+/.test(o.max_record_size)) + o.max_record_size = parseInt(o.max_record_size); + else + throw new Error( + 'Invalid Option: max_record_size must be a positive integer, got '.concat( + JSON.stringify(o.max_record_size) + ) + ); + if (o.objname === void 0 || o.objname === null || o.objname === !1) o.objname = void 0; + else if (Buffer.isBuffer(o.objname)) { + if (o.objname.length === 0) throw new Error('Invalid Option: objname must be a non empty buffer'); + o.encoding === null || (o.objname = o.objname.toString(o.encoding)); + } else if (typeof o.objname == 'string') { + if (o.objname.length === 0) throw new Error('Invalid Option: objname must be a non empty string'); + } else throw new Error('Invalid Option: objname must be a string or a buffer, got '.concat(o.objname)); + if (o.on_record === void 0 || o.on_record === null) o.on_record = void 0; + else if (typeof o.on_record != 'function') + throw new zt( + 'CSV_INVALID_OPTION_ON_RECORD', + ['Invalid option `on_record`:', 'expect a function,', 'got '.concat(JSON.stringify(o.on_record))], + o + ); + if (o.quote === null || o.quote === !1 || o.quote === '') o.quote = null; + else if ( + (o.quote === void 0 || o.quote === !0 + ? (o.quote = Buffer.from('"', o.encoding)) + : typeof o.quote == 'string' && (o.quote = Buffer.from(o.quote, o.encoding)), + !Buffer.isBuffer(o.quote)) + ) + throw new Error( + 'Invalid Option: quote must be a buffer or a string, got '.concat(JSON.stringify(o.quote)) + ); + if (o.raw === void 0 || o.raw === null || o.raw === !1) o.raw = !1; + else if (o.raw !== !0) + throw new Error('Invalid Option: raw must be true, got '.concat(JSON.stringify(o.raw))); + if ( + (o.record_delimiter + ? Array.isArray(o.record_delimiter) || (o.record_delimiter = [o.record_delimiter]) + : (o.record_delimiter = []), + (o.record_delimiter = o.record_delimiter.map(function (c) { + return typeof c == 'string' && (c = Buffer.from(c, o.encoding)), c; + })), + typeof o.relax != 'boolean') + ) + if (o.relax === void 0 || o.relax === null) o.relax = !1; + else throw new Error('Invalid Option: relax must be a boolean, got '.concat(JSON.stringify(o.relax))); + if (typeof o.relax_column_count != 'boolean') + if (o.relax_column_count === void 0 || o.relax_column_count === null) o.relax_column_count = !1; + else + throw new Error( + 'Invalid Option: relax_column_count must be a boolean, got '.concat( + JSON.stringify(o.relax_column_count) + ) + ); + if (typeof o.relax_column_count_less != 'boolean') + if (o.relax_column_count_less === void 0 || o.relax_column_count_less === null) + o.relax_column_count_less = !1; + else + throw new Error( + 'Invalid Option: relax_column_count_less must be a boolean, got '.concat( + JSON.stringify(o.relax_column_count_less) + ) + ); + if (typeof o.relax_column_count_more != 'boolean') + if (o.relax_column_count_more === void 0 || o.relax_column_count_more === null) + o.relax_column_count_more = !1; + else + throw new Error( + 'Invalid Option: relax_column_count_more must be a boolean, got '.concat( + JSON.stringify(o.relax_column_count_more) + ) + ); + if (typeof o.skip_empty_lines != 'boolean') + if (o.skip_empty_lines === void 0 || o.skip_empty_lines === null) o.skip_empty_lines = !1; + else + throw new Error( + 'Invalid Option: skip_empty_lines must be a boolean, got '.concat( + JSON.stringify(o.skip_empty_lines) + ) + ); + if (typeof o.skip_lines_with_empty_values != 'boolean') + if (o.skip_lines_with_empty_values === void 0 || o.skip_lines_with_empty_values === null) + o.skip_lines_with_empty_values = !1; + else + throw new Error( + 'Invalid Option: skip_lines_with_empty_values must be a boolean, got '.concat( + JSON.stringify(o.skip_lines_with_empty_values) + ) + ); + if (typeof o.skip_lines_with_error != 'boolean') + if (o.skip_lines_with_error === void 0 || o.skip_lines_with_error === null) + o.skip_lines_with_error = !1; + else + throw new Error( + 'Invalid Option: skip_lines_with_error must be a boolean, got '.concat( + JSON.stringify(o.skip_lines_with_error) + ) + ); + if (o.rtrim === void 0 || o.rtrim === null || o.rtrim === !1) o.rtrim = !1; + else if (o.rtrim !== !0) + throw new Error('Invalid Option: rtrim must be a boolean, got '.concat(JSON.stringify(o.rtrim))); + if (o.ltrim === void 0 || o.ltrim === null || o.ltrim === !1) o.ltrim = !1; + else if (o.ltrim !== !0) + throw new Error('Invalid Option: ltrim must be a boolean, got '.concat(JSON.stringify(o.ltrim))); + if (o.trim === void 0 || o.trim === null || o.trim === !1) o.trim = !1; + else if (o.trim !== !0) + throw new Error('Invalid Option: trim must be a boolean, got '.concat(JSON.stringify(o.trim))); + if ( + (o.trim === !0 && a.ltrim !== !1 ? (o.ltrim = !0) : o.ltrim !== !0 && (o.ltrim = !1), + o.trim === !0 && a.rtrim !== !1 ? (o.rtrim = !0) : o.rtrim !== !0 && (o.rtrim = !1), + o.to === void 0 || o.to === null) + ) + o.to = -1; + else if ( + (typeof o.to == 'string' && /\d+/.test(o.to) && (o.to = parseInt(o.to)), Number.isInteger(o.to)) + ) { + if (o.to <= 0) + throw new Error( + 'Invalid Option: to must be a positive integer greater than 0, got '.concat(JSON.stringify(a.to)) + ); + } else throw new Error('Invalid Option: to must be an integer, got '.concat(JSON.stringify(a.to))); + if (o.to_line === void 0 || o.to_line === null) o.to_line = -1; + else if ( + (typeof o.to_line == 'string' && /\d+/.test(o.to_line) && (o.to_line = parseInt(o.to_line)), + Number.isInteger(o.to_line)) + ) { + if (o.to_line <= 0) + throw new Error( + 'Invalid Option: to_line must be a positive integer greater than 0, got '.concat( + JSON.stringify(a.to_line) + ) + ); + } else + throw new Error('Invalid Option: to_line must be an integer, got '.concat(JSON.stringify(a.to_line))); + (this.info = { + bytes: 0, + comment_lines: 0, + empty_lines: 0, + invalid_field_length: 0, + lines: 1, + records: 0, + }), + (this.options = o), + (this.state = { + bomSkipped: !1, + bufBytesStart: 0, + castField: l, + commenting: !1, + error: void 0, + enabled: o.from_line === 1, + escaping: !1, + escapeIsQuote: + Buffer.isBuffer(o.escape) && Buffer.isBuffer(o.quote) && Buffer.compare(o.escape, o.quote) === 0, + expectedRecordLength: Array.isArray(o.columns) ? o.columns.length : void 0, + field: new Yue(20), + firstLineToHeaders: u, + needMoreDataSize: Math.max.apply( + Math, + [o.comment !== null ? o.comment.length : 0].concat( + Kue( + o.delimiter.map(function (c) { + return c.length; + }) + ), + [o.quote !== null ? o.quote.length : 0] + ) + ), + previousBuf: void 0, + quoting: !1, + stop: !1, + rawBuffer: new Yue(100), + record: [], + recordHasError: !1, + record_length: 0, + recordDelimiterMaxLength: + o.record_delimiter.length === 0 + ? 2 + : Math.max.apply( + Math, + Kue( + o.record_delimiter.map(function (c) { + return c.length; + }) + ) + ), + trimChars: [Buffer.from(' ', o.encoding)[0], Buffer.from(' ', o.encoding)[0]], + wasQuoting: !1, + wasRowDelimiter: !1, + }); + }, + }, + { + key: '_transform', + value: function (a, o, s) { + if (this.state.stop !== !0) { + var l = this.__parse(a, !1); + l !== void 0 && (this.state.stop = !0), s(l); + } + }, + }, + { + key: '_flush', + value: function (a) { + if (this.state.stop !== !0) { + var o = this.__parse(void 0, !0); + a(o); + } + }, + }, + { + key: '__parse', + value: function (a, o) { + var s = this.options, + l = s.bom, + u = s.comment, + p = s.escape, + c = s.from_line, + f = s.ltrim, + h = s.max_record_size, + m = s.quote, + v = s.raw, + y = s.relax, + S = s.rtrim, + w = s.skip_empty_lines, + O = s.to, + x = s.to_line, + _ = this.options.record_delimiter, + b = this.state, + T = b.bomSkipped, + R = b.previousBuf, + C = b.rawBuffer, + N = b.escapeIsQuote, + A; + if (R === void 0) + if (a === void 0) { + this.push(null); + return; + } else A = a; + else R !== void 0 && a === void 0 ? (A = R) : (A = Buffer.concat([R, a])); + if (T === !1) + if (l === !1) this.state.bomSkipped = !0; + else if (A.length < 3) { + if (o === !1) { + this.state.previousBuf = A; + return; + } + } else { + for (var j in Lw) + if (Lw[j].compare(A, 0, Lw[j].length) === 0) { + var U = Lw[j].length; + (this.state.bufBytesStart += U), + (A = A.slice(U)), + this.__normalizeOptions(Fo(Fo({}, this.__originalOptions), {}, { encoding: j })); + break; + } + this.state.bomSkipped = !0; + } + var z = A.length, + K; + for (K = 0; K < z && !this.__needMoreData(K, z, o); K++) { + if ( + (this.state.wasRowDelimiter === !0 && (this.info.lines++, (this.state.wasRowDelimiter = !1)), + x !== -1 && this.info.lines > x) + ) { + (this.state.stop = !0), this.push(null); + return; + } + if (this.state.quoting === !1 && _.length === 0) { + var te = this.__autoDiscoverRecordDelimiter(A, K); + te && (_ = this.options.record_delimiter); + } + var J = A[K]; + if ( + (v === !0 && C.append(J), + (J === sA || J === Fw) && this.state.wasRowDelimiter === !1 && (this.state.wasRowDelimiter = !0), + this.state.escaping === !0) + ) + this.state.escaping = !1; + else { + if (p !== null && this.state.quoting === !0 && this.__isEscape(A, K, J) && K + p.length < z) + if (N) { + if (this.__isQuote(A, K + p.length)) { + (this.state.escaping = !0), (K += p.length - 1); + continue; + } + } else { + (this.state.escaping = !0), (K += p.length - 1); + continue; + } + if (this.state.commenting === !1 && this.__isQuote(A, K)) + if (this.state.quoting === !0) { + var ie = A[K + m.length], + oe = S && this.__isCharTrimable(ie), + he = u !== null && this.__compareBytes(u, A, K + m.length, ie), + hr = this.__isDelimiter(A, K + m.length, ie), + xr = + _.length === 0 + ? this.__autoDiscoverRecordDelimiter(A, K + m.length) + : this.__isRecordDelimiter(ie, A, K + m.length); + if (p !== null && this.__isEscape(A, K, J) && this.__isQuote(A, K + p.length)) K += p.length - 1; + else if (!ie || hr || xr || he || oe) { + (this.state.quoting = !1), (this.state.wasQuoting = !0), (K += m.length - 1); + continue; + } else if (y === !1) { + var Mi = this.__error( + new zt( + 'CSV_INVALID_CLOSING_QUOTE', + [ + 'Invalid Closing Quote:', + 'got "'.concat(String.fromCharCode(ie), '"'), + 'at line '.concat(this.info.lines), + 'instead of delimiter, record delimiter, trimable character', + '(if activated) or comment', + ], + this.options, + this.__infoField() + ) + ); + if (Mi !== void 0) return Mi; + } else + (this.state.quoting = !1), + (this.state.wasQuoting = !0), + this.state.field.prepend(m), + (K += m.length - 1); + } else if (this.state.field.length !== 0) { + if (y === !1) { + var Oa = this.__error( + new zt( + 'INVALID_OPENING_QUOTE', + [ + 'Invalid Opening Quote:', + 'a quote is found inside a field at line '.concat(this.info.lines), + ], + this.options, + this.__infoField(), + { field: this.state.field } + ) + ); + if (Oa !== void 0) return Oa; + } + } else { + (this.state.quoting = !0), (K += m.length - 1); + continue; + } + if (this.state.quoting === !1) { + var Se = this.__isRecordDelimiter(J, A, K); + if (Se !== 0) { + var Or = + this.state.commenting && + this.state.wasQuoting === !1 && + this.state.record.length === 0 && + this.state.field.length === 0; + if (Or) this.info.comment_lines++; + else { + if ( + this.state.enabled === !1 && + this.info.lines + (this.state.wasRowDelimiter === !0 ? 1 : 0) >= c + ) { + (this.state.enabled = !0), this.__resetField(), this.__resetRecord(), (K += Se - 1); + continue; + } + if ( + w === !0 && + this.state.wasQuoting === !1 && + this.state.record.length === 0 && + this.state.field.length === 0 + ) { + this.info.empty_lines++, (K += Se - 1); + continue; + } + this.info.bytes = this.state.bufBytesStart + K; + var P = this.__onField(); + if (P !== void 0) return P; + this.info.bytes = this.state.bufBytesStart + K + Se; + var k = this.__onRecord(); + if (k !== void 0) return k; + if (O !== -1 && this.info.records >= O) { + (this.state.stop = !0), this.push(null); + return; + } + } + (this.state.commenting = !1), (K += Se - 1); + continue; + } + if (this.state.commenting) continue; + var G = u === null ? 0 : this.__compareBytes(u, A, K, J); + if (G !== 0) { + this.state.commenting = !0; + continue; + } + var M = this.__isDelimiter(A, K, J); + if (M !== 0) { + this.info.bytes = this.state.bufBytesStart + K; + var Ae = this.__onField(); + if (Ae !== void 0) return Ae; + K += M - 1; + continue; + } + } + } + if (this.state.commenting === !1 && h !== 0 && this.state.record_length + this.state.field.length > h) { + var ht = this.__error( + new zt( + 'CSV_MAX_RECORD_SIZE', + [ + 'Max Record Size:', + 'record exceed the maximum number of tolerated bytes', + 'of '.concat(h), + 'at line '.concat(this.info.lines), + ], + this.options, + this.__infoField() + ) + ); + if (ht !== void 0) return ht; + } + var wt = + f === !1 || this.state.quoting === !0 || this.state.field.length !== 0 || !this.__isCharTrimable(J), + nr = S === !1 || this.state.wasQuoting === !1; + if (wt === !0 && nr === !0) this.state.field.append(J); + else if (S === !0 && !this.__isCharTrimable(J)) { + var kt = this.__error( + new zt( + 'CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE', + [ + 'Invalid Closing Quote:', + 'found non trimable byte after quote', + 'at line '.concat(this.info.lines), + ], + this.options, + this.__infoField() + ) + ); + if (kt !== void 0) return kt; + } + } + if (o === !0) + if (this.state.quoting === !0) { + var Oi = this.__error( + new zt( + 'CSV_QUOTE_NOT_CLOSED', + [ + 'Quote Not Closed:', + 'the parsing is finished with an opening quote at line '.concat(this.info.lines), + ], + this.options, + this.__infoField() + ) + ); + if (Oi !== void 0) return Oi; + } else if ( + this.state.wasQuoting === !0 || + this.state.record.length !== 0 || + this.state.field.length !== 0 + ) { + this.info.bytes = this.state.bufBytesStart + K; + var bt = this.__onField(); + if (bt !== void 0) return bt; + var Yr = this.__onRecord(); + if (Yr !== void 0) return Yr; + } else + this.state.wasRowDelimiter === !0 + ? this.info.empty_lines++ + : this.state.commenting === !0 && this.info.comment_lines++; + else (this.state.bufBytesStart += K), (this.state.previousBuf = A.slice(K)); + this.state.wasRowDelimiter === !0 && (this.info.lines++, (this.state.wasRowDelimiter = !1)); + }, + }, + { + key: '__onRecord', + value: function () { + var a = this.options, + o = a.columns, + s = a.columns_duplicates_to_array, + l = a.encoding, + u = a.info, + p = a.from, + c = a.relax_column_count, + f = a.relax_column_count_less, + h = a.relax_column_count_more, + m = a.raw, + v = a.skip_lines_with_empty_values, + y = this.state, + S = y.enabled, + w = y.record; + if (S === !1) return this.__resetRecord(); + var O = w.length; + if (o === !0) { + if (v === !0 && Que(w)) { + this.__resetRecord(); + return; + } + return this.__firstLineToColumns(w); + } + if ( + (o === !1 && this.info.records === 0 && (this.state.expectedRecordLength = O), + O !== this.state.expectedRecordLength) + ) { + var x = + o === !1 + ? new zt( + 'CSV_INCONSISTENT_RECORD_LENGTH', + [ + 'Invalid Record Length:', + 'expect '.concat(this.state.expectedRecordLength, ','), + 'got '.concat(O, ' on line ').concat(this.info.lines), + ], + this.options, + this.__infoField(), + { record: w } + ) + : new zt( + 'CSV_RECORD_DONT_MATCH_COLUMNS_LENGTH', + [ + 'Invalid Record Length:', + 'columns length is '.concat(o.length, ','), + 'got '.concat(O, ' on line ').concat(this.info.lines), + ], + this.options, + this.__infoField(), + { record: w } + ); + if ( + c === !0 || + (f === !0 && O < this.state.expectedRecordLength) || + (h === !0 && O > this.state.expectedRecordLength) + ) + this.info.invalid_field_length++, (this.state.error = x); + else { + var _ = this.__error(x); + if (_) return _; + } + } + if (v === !0 && Que(w)) { + this.__resetRecord(); + return; + } + if (this.state.recordHasError === !0) { + this.__resetRecord(), (this.state.recordHasError = !1); + return; + } + if ((this.info.records++, p === 1 || this.info.records >= p)) + if (o !== !1) { + for (var b = {}, T = 0, R = w.length; T < R; T++) + o[T] === void 0 || + o[T].disabled || + (s === !0 && b[o[T].name] !== void 0 + ? Array.isArray(b[o[T].name]) + ? (b[o[T].name] = b[o[T].name].concat(w[T])) + : (b[o[T].name] = [b[o[T].name], w[T]]) + : (b[o[T].name] = w[T])); + var C = this.options.objname; + if (C === void 0) + if (m === !0 || u === !0) { + var N = this.__push( + Object.assign( + { record: b }, + m === !0 ? { raw: this.state.rawBuffer.toString(l) } : {}, + u === !0 ? { info: this.__infoRecord() } : {} + ) + ); + if (N) return N; + } else { + var A = this.__push(b); + if (A) return A; + } + else if (m === !0 || u === !0) { + var j = this.__push( + Object.assign( + { record: [b[C], b] }, + m === !0 ? { raw: this.state.rawBuffer.toString(l) } : {}, + u === !0 ? { info: this.__infoRecord() } : {} + ) + ); + if (j) return j; + } else { + var U = this.__push([b[C], b]); + if (U) return U; + } + } else if (m === !0 || u === !0) { + var z = this.__push( + Object.assign( + { record: w }, + m === !0 ? { raw: this.state.rawBuffer.toString(l) } : {}, + u === !0 ? { info: this.__infoRecord() } : {} + ) + ); + if (z) return z; + } else { + var K = this.__push(w); + if (K) return K; + } + this.__resetRecord(); + }, + }, + { + key: '__firstLineToColumns', + value: function (a) { + var o = this.state.firstLineToHeaders; + try { + var s = o === void 0 ? a : o.call(null, a); + if (!Array.isArray(s)) + return this.__error( + new zt( + 'CSV_INVALID_COLUMN_MAPPING', + [ + 'Invalid Column Mapping:', + 'expect an array from column function,', + 'got '.concat(JSON.stringify(s)), + ], + this.options, + this.__infoField(), + { headers: s } + ) + ); + var l = Zue(s); + (this.state.expectedRecordLength = l.length), (this.options.columns = l), this.__resetRecord(); + return; + } catch (u) { + return u; + } + }, + }, + { + key: '__resetRecord', + value: function () { + this.options.raw === !0 && this.state.rawBuffer.reset(), + (this.state.error = void 0), + (this.state.record = []), + (this.state.record_length = 0); + }, + }, + { + key: '__onField', + value: function () { + var a = this.options, + o = a.cast, + s = a.encoding, + l = a.rtrim, + u = a.max_record_size, + p = this.state, + c = p.enabled, + f = p.wasQuoting; + if (c === !1) return this.__resetField(); + var h = this.state.field.toString(s); + if ((l === !0 && f === !1 && (h = h.trimRight()), o === !0)) { + var m = this.__cast(h), + v = Aat(m, 2), + y = v[0], + S = v[1]; + if (y !== void 0) return y; + h = S; + } + this.state.record.push(h), + u !== 0 && typeof h == 'string' && (this.state.record_length += h.length), + this.__resetField(); + }, + }, + { + key: '__resetField', + value: function () { + this.state.field.reset(), (this.state.wasQuoting = !1); + }, + }, + { + key: '__push', + value: function (a) { + var o = this.options.on_record; + if (o !== void 0) { + var s = this.__infoRecord(); + try { + a = o.call(null, a, s); + } catch (l) { + return l; + } + if (a == null) return; + } + this.push(a); + }, + }, + { + key: '__cast', + value: function (a) { + var o = this.options, + s = o.columns, + l = o.relax_column_count, + u = Array.isArray(s); + if (u === !0 && l && this.options.columns.length <= this.state.record.length) return [void 0, void 0]; + if (this.state.castField !== null) + try { + var p = this.__infoField(); + return [void 0, this.state.castField.call(null, a, p)]; + } catch (f) { + return [f]; + } + if (this.__isFloat(a)) return [void 0, parseFloat(a)]; + if (this.options.cast_date !== !1) { + var c = this.__infoField(); + return [void 0, this.options.cast_date.call(null, a, c)]; + } + return [void 0, a]; + }, + }, + { + key: '__isCharTrimable', + value: function (a) { + return a === Vat || a === $at || a === sA || a === Fw || a === Bat; + }, + }, + { + key: '__isFloat', + value: function (a) { + return a - parseFloat(a) + 1 >= 0; + }, + }, + { + key: '__compareBytes', + value: function (a, o, s, l) { + if (a[0] !== l) return 0; + for (var u = a.length, p = 1; p < u; p++) if (a[p] !== o[s + p]) return 0; + return u; + }, + }, + { + key: '__needMoreData', + value: function (a, o, s) { + if (s) return !1; + var l = this.options.quote, + u = this.state, + p = u.quoting, + c = u.needMoreDataSize, + f = u.recordDelimiterMaxLength, + h = o - a - 1, + m = Math.max(c, f, p ? l.length + f : 0); + return h < m; + }, + }, + { + key: '__isDelimiter', + value: function (a, o, s) { + var l = this.options, + u = l.delimiter, + p = l.ignore_last_delimiters; + if (p === !0 && this.state.record.length === this.options.columns.length - 1) return 0; + if (p !== !1 && typeof p == 'number' && this.state.record.length === p - 1) return 0; + e: for (var c = 0; c < u.length; c++) { + var f = u[c]; + if (f[0] === s) { + for (var h = 1; h < f.length; h++) if (f[h] !== a[o + h]) continue e; + return f.length; + } + } + return 0; + }, + }, + { + key: '__isRecordDelimiter', + value: function (a, o, s) { + var l = this.options.record_delimiter, + u = l.length; + e: for (var p = 0; p < u; p++) { + var c = l[p], + f = c.length; + if (c[0] === a) { + for (var h = 1; h < f; h++) if (c[h] !== o[s + h]) continue e; + return c.length; + } + } + return 0; + }, + }, + { + key: '__isEscape', + value: function (a, o, s) { + var l = this.options.escape; + if (l === null) return !1; + var u = l.length; + if (l[0] === s) { + for (var p = 0; p < u; p++) if (l[p] !== a[o + p]) return !1; + return !0; + } + return !1; + }, + }, + { + key: '__isQuote', + value: function (a, o) { + var s = this.options.quote; + if (s === null) return !1; + for (var l = s.length, u = 0; u < l; u++) if (s[u] !== a[o + u]) return !1; + return !0; + }, + }, + { + key: '__autoDiscoverRecordDelimiter', + value: function (a, o) { + var s = this.options.encoding, + l = a[o]; + return l === sA + ? a[o + 1] === Fw + ? (this.options.record_delimiter.push( + Buffer.from( + `\r +`, + s + ) + ), + (this.state.recordDelimiterMaxLength = 2), + 2) + : (this.options.record_delimiter.push(Buffer.from('\r', s)), + (this.state.recordDelimiterMaxLength = 1), + 1) + : l === Fw + ? (this.options.record_delimiter.push( + Buffer.from( + ` +`, + s + ) + ), + (this.state.recordDelimiterMaxLength = 1), + 1) + : 0; + }, + }, + { + key: '__error', + value: function (a) { + var o = this.options.skip_lines_with_error, + s = typeof a == 'string' ? new Error(a) : a; + if (o) { + (this.state.recordHasError = !0), this.emit('skip', s); + return; + } else return s; + }, + }, + { + key: '__infoDataSet', + value: function () { + return Fo(Fo({}, this.info), {}, { columns: this.options.columns }); + }, + }, + { + key: '__infoRecord', + value: function () { + var a = this.options.columns; + return Fo( + Fo({}, this.__infoDataSet()), + {}, + { error: this.state.error, header: a === !0, index: this.state.record.length } + ); + }, + }, + { + key: '__infoField', + value: function () { + var a = this.options.columns, + o = Array.isArray(a); + return Fo( + Fo({}, this.__infoRecord()), + {}, + { + column: + o === !0 + ? a.length > this.state.record.length + ? a[this.state.record.length].name + : null + : this.state.record.length, + quoting: this.state.wasQuoting, + } + ); + }, + }, + ]), + r + ); + })(Uat), + pA = function () { + var t, r, n; + for (var a in arguments) { + var o = arguments[a], + s = eh(o); + if (t === void 0 && (typeof o == 'string' || Buffer.isBuffer(o))) t = o; + else if (r === void 0 && spe(o)) r = o; + else if (n === void 0 && s === 'function') n = o; + else + throw new zt( + 'CSV_INVALID_ARGUMENT', + ['Invalid argument:', 'got '.concat(JSON.stringify(o), ' at index ').concat(a)], + r || {} + ); + } + var l = new ope(r); + if (n) { + var u = r === void 0 || r.objname === void 0 ? [] : {}; + l.on('readable', function () { + for (var p; (p = this.read()) !== null; ) r === void 0 || r.objname === void 0 ? u.push(p) : (u[p[0]] = p[1]); + }), + l.on('error', function (p) { + n(p, void 0, l.__infoDataSet()); + }), + l.on('end', function () { + n(void 0, u, l.__infoDataSet()); + }); + } + return ( + t !== void 0 && + (typeof setImmediate == 'function' + ? setImmediate(function () { + l.write(t), l.end(); + }) + : (l.write(t), l.end())), + l + ); + }, + zt = (function (e) { + rpe(r, e); + var t = ipe(r); + function r(n, a, o) { + var s; + tpe(this, r), + Array.isArray(a) && (a = a.join(' ')), + (s = t.call(this, a)), + Error.captureStackTrace !== void 0 && Error.captureStackTrace(npe(s), r), + (s.code = n); + for (var l = arguments.length, u = new Array(l > 3 ? l - 3 : 0), p = 3; p < l; p++) u[p - 3] = arguments[p]; + for (var c = 0, f = u; c < f.length; c++) { + var h = f[c]; + for (var m in h) { + var v = h[m]; + s[m] = Buffer.isBuffer(v) ? v.toString(o.encoding) : v == null ? v : JSON.parse(JSON.stringify(v)); + } + } + return s; + } + return r; + })(lA(Error)); + pA.Parser = ope; + pA.CsvError = zt; + lpe.exports = pA; + var zat = function (t) { + return t.replace(/([A-Z])/g, function (r, n) { + return '_' + n.toLowerCase(); + }); + }, + spe = function (t) { + return eh(t) === 'object' && t !== null && !Array.isArray(t); + }, + Que = function (t) { + return t.every(function (r) { + return r == null || (r.toString && r.toString().trim() === ''); + }); + }, + Zue = function (t) { + for (var r = [], n = 0, a = t.length; n < a; n++) { + var o = t[n]; + if (o == null || o === !1) r[n] = { disabled: !0 }; + else if (typeof o == 'string') r[n] = { name: o }; + else if (spe(o)) { + if (typeof o.name != 'string') + throw new zt('CSV_OPTION_COLUMNS_MISSING_NAME', [ + 'Option columns missing name:', + 'property "name" is required at position '.concat(n), + 'when column is an object literal', + ]); + r[n] = o; + } else + throw new zt('CSV_INVALID_COLUMN_DEFINITION', [ + 'Invalid column definition:', + 'expect a string or a literal object,', + 'got '.concat(JSON.stringify(o), ' at position ').concat(n), + ]); + } + return r; + }; +}); +var ppe = d((qWt, upe) => { + 'use strict'; + var Hat = cA(); + upe.exports = function (e) { + var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + typeof e == 'string' && (e = Buffer.from(e)); + var r = t && t.objname ? {} : [], + n = new Hat.Parser(t); + n.push = function (s) { + s !== null && (t.objname === void 0 ? r.push(s) : (r[s[0]] = s[1])); + }; + var a = n.__parse(e, !1); + if (a !== void 0) throw a; + var o = n.__parse(void 0, !0); + if (o !== void 0) throw o; + return r; + }; +}); +var mA = d((FWt, Epe) => { + 'use strict'; + function dA(e) { + var t = typeof Map == 'function' ? new Map() : void 0; + return ( + (dA = function (n) { + if (n === null || !Gat(n)) return n; + if (typeof n != 'function') throw new TypeError('Super expression must either be null or a function'); + if (typeof t < 'u') { + if (t.has(n)) return t.get(n); + t.set(n, a); + } + function a() { + return Bw(n, arguments, kv(this).constructor); + } + return ( + (a.prototype = Object.create(n.prototype, { + constructor: { value: a, enumerable: !1, writable: !0, configurable: !0 }, + })), + Cv(a, n) + ); + }), + dA(e) + ); + } + function Bw(e, t, r) { + return ( + bpe() + ? (Bw = Reflect.construct) + : (Bw = function (a, o, s) { + var l = [null]; + l.push.apply(l, o); + var u = Function.bind.apply(a, l), + p = new u(); + return s && Cv(p, s.prototype), p; + }), + Bw.apply(null, arguments) + ); + } + function Gat(e) { + return Function.toString.call(e).indexOf('[native code]') !== -1; + } + function Uw(e, t) { + return Xat(e) || Kat(e, t) || mpe(e, t) || Wat(); + } + function Wat() { + throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); + } + function Kat(e, t) { + var r = e == null ? null : (typeof Symbol < 'u' && e[Symbol.iterator]) || e['@@iterator']; + if (r != null) { + var n = [], + a = !0, + o = !1, + s, + l; + try { + for (r = r.call(e); !(a = (s = r.next()).done) && (n.push(s.value), !(t && n.length === t)); a = !0); + } catch (u) { + (o = !0), (l = u); + } finally { + try { + !a && r.return != null && r.return(); + } finally { + if (o) throw l; + } + } + return n; + } + } + function Xat(e) { + if (Array.isArray(e)) return e; + } + function qn(e) { + '@babel/helpers - typeof'; + return ( + typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol' + ? (qn = function (r) { + return typeof r; + }) + : (qn = function (r) { + return r && typeof Symbol == 'function' && r.constructor === Symbol && r !== Symbol.prototype + ? 'symbol' + : typeof r; + }), + qn(e) + ); + } + function Ov(e, t) { + var r = (typeof Symbol < 'u' && e[Symbol.iterator]) || e['@@iterator']; + if (!r) { + if (Array.isArray(e) || (r = mpe(e)) || (t && e && typeof e.length == 'number')) { + r && (e = r); + var n = 0, + a = function () {}; + return { + s: a, + n: function () { + return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] }; + }, + e: function (p) { + throw p; + }, + f: a, + }; + } + throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); + } + var o = !0, + s = !1, + l; + return { + s: function () { + r = r.call(e); + }, + n: function () { + var p = r.next(); + return (o = p.done), p; + }, + e: function (p) { + (s = !0), (l = p); + }, + f: function () { + try { + !o && r.return != null && r.return(); + } finally { + if (s) throw l; + } + }, + }; + } + function mpe(e, t) { + if (e) { + if (typeof e == 'string') return cpe(e, t); + var r = Object.prototype.toString.call(e).slice(8, -1); + if ((r === 'Object' && e.constructor && (r = e.constructor.name), r === 'Map' || r === 'Set')) + return Array.from(e); + if (r === 'Arguments' || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return cpe(e, t); + } + } + function cpe(e, t) { + (t == null || t > e.length) && (t = e.length); + for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r]; + return n; + } + function dpe(e, t) { + var r = Object.keys(e); + if (Object.getOwnPropertySymbols) { + var n = Object.getOwnPropertySymbols(e); + t && + (n = n.filter(function (a) { + return Object.getOwnPropertyDescriptor(e, a).enumerable; + })), + r.push.apply(r, n); + } + return r; + } + function $w(e) { + for (var t = 1; t < arguments.length; t++) { + var r = arguments[t] != null ? arguments[t] : {}; + t % 2 + ? dpe(Object(r), !0).forEach(function (n) { + Jat(e, n, r[n]); + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) + : dpe(Object(r)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n)); + }); + } + return e; + } + function Jat(e, t, r) { + return ( + t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : (e[t] = r), e + ); + } + function hpe(e, t) { + if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function'); + } + function fpe(e, t) { + for (var r = 0; r < t.length; r++) { + var n = t[r]; + (n.enumerable = n.enumerable || !1), + (n.configurable = !0), + 'value' in n && (n.writable = !0), + Object.defineProperty(e, n.key, n); + } + } + function Yat(e, t, r) { + return t && fpe(e.prototype, t), r && fpe(e, r), e; + } + function gpe(e, t) { + if (typeof t != 'function' && t !== null) throw new TypeError('Super expression must either be null or a function'); + (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } })), + t && Cv(e, t); + } + function Cv(e, t) { + return ( + (Cv = + Object.setPrototypeOf || + function (n, a) { + return (n.__proto__ = a), n; + }), + Cv(e, t) + ); + } + function vpe(e) { + var t = bpe(); + return function () { + var n = kv(e), + a; + if (t) { + var o = kv(this).constructor; + a = Reflect.construct(n, arguments, o); + } else a = n.apply(this, arguments); + return Qat(this, a); + }; + } + function Qat(e, t) { + if (t && (qn(t) === 'object' || typeof t == 'function')) return t; + if (t !== void 0) throw new TypeError('Derived constructors may only return object or undefined'); + return ype(e); + } + function ype(e) { + if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return e; + } + function bpe() { + if (typeof Reflect > 'u' || !Reflect.construct || Reflect.construct.sham) return !1; + if (typeof Proxy == 'function') return !0; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0; + } catch { + return !1; + } + } + function kv(e) { + return ( + (kv = Object.setPrototypeOf + ? Object.getPrototypeOf + : function (r) { + return r.__proto__ || Object.getPrototypeOf(r); + }), + kv(e) + ); + } + var Zat = require('stream'), + eot = Zat.Transform, + tot = Buffer.from([239, 187, 191]), + _pe = (function (e) { + gpe(r, e); + var t = vpe(r); + function r() { + var n, + a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + hpe(this, r), (n = t.call(this, $w($w({}, { writableObjectMode: !0 }), a))); + var o = {}, + s; + for (var l in a) o[rot(l)] = a[l]; + if ((s = n.normalize(o))) throw s; + switch (o.record_delimiter) { + case 'auto': + o.record_delimiter = null; + break; + case 'unix': + o.record_delimiter = ` +`; + break; + case 'mac': + o.record_delimiter = '\r'; + break; + case 'windows': + o.record_delimiter = `\r +`; + break; + case 'ascii': + o.record_delimiter = ''; + break; + case 'unicode': + o.record_delimiter = '\u2028'; + break; + } + return (n.options = o), (n.state = { stop: !1 }), (n.info = { records: 0 }), n; + } + return ( + Yat(r, [ + { + key: 'normalize', + value: function (a) { + if (a.bom === void 0 || a.bom === null || a.bom === !1) a.bom = !1; + else if (a.bom !== !0) + return new Tv('CSV_OPTION_BOOLEAN_INVALID_TYPE', [ + 'option `bom` is optional and must be a boolean value,', + 'got '.concat(JSON.stringify(a.bom)), + ]); + if (a.delimiter === void 0 || a.delimiter === null) a.delimiter = ','; + else if (Buffer.isBuffer(a.delimiter)) a.delimiter = a.delimiter.toString(); + else if (typeof a.delimiter != 'string') + return new Tv('CSV_OPTION_DELIMITER_INVALID_TYPE', [ + 'option `delimiter` must be a buffer or a string,', + 'got '.concat(JSON.stringify(a.delimiter)), + ]); + if (a.quote === void 0 || a.quote === null) a.quote = '"'; + else if (a.quote === !0) a.quote = '"'; + else if (a.quote === !1) a.quote = ''; + else if (Buffer.isBuffer(a.quote)) a.quote = a.quote.toString(); + else if (typeof a.quote != 'string') + return new Tv('CSV_OPTION_QUOTE_INVALID_TYPE', [ + 'option `quote` must be a boolean, a buffer or a string,', + 'got '.concat(JSON.stringify(a.quote)), + ]); + if ( + ((a.quoted === void 0 || a.quoted === null) && (a.quoted = !1), + (a.quoted_empty === void 0 || a.quoted_empty === null) && (a.quoted_empty = void 0), + a.quoted_match === void 0 || a.quoted_match === null || a.quoted_match === !1 + ? (a.quoted_match = null) + : Array.isArray(a.quoted_match) || (a.quoted_match = [a.quoted_match]), + a.quoted_match) + ) { + var o = Ov(a.quoted_match), + s; + try { + for (o.s(); !(s = o.n()).done; ) { + var l = s.value, + u = typeof l == 'string', + p = l instanceof RegExp; + if (!u && !p) + return Error( + 'Invalid Option: quoted_match must be a string or a regex, got '.concat(JSON.stringify(l)) + ); + } + } catch (c) { + o.e(c); + } finally { + o.f(); + } + } + if ( + ((a.quoted_string === void 0 || a.quoted_string === null) && (a.quoted_string = !1), + (a.eof === void 0 || a.eof === null) && (a.eof = !0), + a.escape === void 0 || a.escape === null) + ) + a.escape = '"'; + else if (Buffer.isBuffer(a.escape)) a.escape = a.escape.toString(); + else if (typeof a.escape != 'string') + return Error( + 'Invalid Option: escape must be a buffer or a string, got '.concat(JSON.stringify(a.escape)) + ); + if (a.escape.length > 1) + return Error( + 'Invalid Option: escape must be one character, got '.concat(a.escape.length, ' characters') + ); + if ( + ((a.header === void 0 || a.header === null) && (a.header = !1), + (a.columns = this.normalize_columns(a.columns)), + (a.quoted === void 0 || a.quoted === null) && (a.quoted = !1), + (a.cast === void 0 || a.cast === null) && (a.cast = {}), + (a.cast.bigint === void 0 || a.cast.bigint === null) && + (a.cast.bigint = function (c) { + return '' + c; + }), + (a.cast.boolean === void 0 || a.cast.boolean === null) && + (a.cast.boolean = function (c) { + return c ? '1' : ''; + }), + (a.cast.date === void 0 || a.cast.date === null) && + (a.cast.date = function (c) { + return '' + c.getTime(); + }), + (a.cast.number === void 0 || a.cast.number === null) && + (a.cast.number = function (c) { + return '' + c; + }), + (a.cast.object === void 0 || a.cast.object === null) && + (a.cast.object = function (c) { + return JSON.stringify(c); + }), + (a.cast.string === void 0 || a.cast.string === null) && + (a.cast.string = function (c) { + return c; + }), + a.record_delimiter === void 0 || a.record_delimiter === null) + ) + a.record_delimiter = ` +`; + else if (Buffer.isBuffer(a.record_delimiter)) a.record_delimiter = a.record_delimiter.toString(); + else if (typeof a.record_delimiter != 'string') + return Error( + 'Invalid Option: record_delimiter must be a buffer or a string, got '.concat( + JSON.stringify(a.record_delimiter) + ) + ); + }, + }, + { + key: '_transform', + value: function (a, o, s) { + if (this.state.stop !== !0) { + if (!Array.isArray(a) && qn(a) !== 'object') + return ( + (this.state.stop = !0), + s(Error('Invalid Record: expect an array or an object, got '.concat(JSON.stringify(a)))) + ); + if (this.info.records === 0) + if (Array.isArray(a)) { + if (this.options.header === !0 && !this.options.columns) + return ( + (this.state.stop = !0), + s(Error('Undiscoverable Columns: header option requires column option or object records')) + ); + } else + (this.options.columns === void 0 || this.options.columns === null) && + (this.options.columns = this.normalize_columns(Object.keys(a))); + this.info.records === 0 && (this.bom(), this.headers()); + try { + this.emit('record', a, this.info.records); + } catch (u) { + return (this.state.stop = !0), this.emit('error', u); + } + var l; + if (this.options.eof) { + if (((l = this.stringify(a)), l === void 0)) return; + l = l + this.options.record_delimiter; + } else { + if (((l = this.stringify(a)), l === void 0)) return; + (this.options.header || this.info.records) && (l = this.options.record_delimiter + l); + } + this.info.records++, this.push(l), s(); + } + }, + }, + { + key: '_flush', + value: function (a) { + this.info.records === 0 && (this.bom(), this.headers()), a(); + }, + }, + { + key: 'stringify', + value: function (a) { + var o = this, + s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1; + if (qn(a) !== 'object') return a; + var l = this.options, + u = l.columns, + p = l.header, + c = []; + if (Array.isArray(a)) { + u && a.splice(u.length); + for (var f = 0; f < a.length; f++) { + var h = a[f], + m = this.__cast(h, { index: f, column: f, records: this.info.records, header: s }), + v = Uw(m, 2), + y = v[0], + S = v[1]; + if (y) { + this.emit('error', y); + return; + } + c[f] = [S, h]; + } + } else if (u) + for (var w = 0; w < u.length; w++) { + var O = fot(a, u[w].key), + x = this.__cast(O, { index: w, column: u[w].key, records: this.info.records, header: s }), + _ = Uw(x, 2), + b = _[0], + T = _[1]; + if (b) { + this.emit('error', b); + return; + } + c[w] = [T, O]; + } + else { + var R = Ov(a), + C; + try { + for (R.s(); !(C = R.n()).done; ) { + var N = C.value, + A = a[N], + j = this.__cast(A, { index: i, column: u[i].key, records: this.info.records, header: s }), + U = Uw(j, 2), + z = U[0], + K = U[1]; + if (z) { + this.emit('error', z); + return; + } + c.push([K, A]); + } + } catch (he) { + R.e(he); + } finally { + R.f(); + } + } + for ( + var te = '', + J = function (hr) { + var xr = void 0, + Mi = void 0, + Oa = Uw(c[hr], 2), + Se = Oa[0], + Or = Oa[1]; + if (typeof Se == 'string') xr = o.options; + else if (wpe(Se)) { + if ( + ((xr = Se), + (Se = xr.value), + delete xr.value, + typeof Se != 'string' && Se !== void 0 && Se !== null) + ) + return ( + o.emit( + 'error', + Error( + 'Invalid Casting Value: returned value must return a string, null or undefined, got '.concat( + JSON.stringify(Se) + ) + ) + ), + { v: void 0 } + ); + if (((xr = $w($w({}, o.options), xr)), (Mi = o.normalize(xr)))) + return o.emit('error', Mi), { v: void 0 }; + } else if (Se == null) xr = o.options; + else + return ( + o.emit( + 'error', + Error( + 'Invalid Casting Value: returned value must return a string, an object, null or undefined, got '.concat( + JSON.stringify(Se) + ) + ) + ), + { v: void 0 } + ); + var P = xr, + k = P.delimiter, + G = P.escape, + M = P.quote, + Ae = P.quoted, + ht = P.quoted_empty, + wt = P.quoted_string, + nr = P.quoted_match, + kt = P.record_delimiter; + if (Se) { + if (typeof Se != 'string') + return ( + o.emit( + 'error', + Error('Formatter must return a string, null or undefined, got '.concat(JSON.stringify(Se))) + ), + { v: null } + ); + var Oi = k.length && Se.indexOf(k) >= 0, + bt = M !== '' && Se.indexOf(M) >= 0, + Yr = Se.indexOf(G) >= 0 && G !== M, + Ta = Se.indexOf(kt) >= 0, + pl = wt && typeof Or == 'string', + Qr = + nr && + nr.filter(function (dc) { + return typeof dc == 'string' ? Se.indexOf(dc) !== -1 : dc.test(Se); + }); + Qr = Qr && Qr.length > 0; + var Zr = bt === !0 || Oi || Ta || Ae || pl || Qr; + if (Zr === !0 && Yr === !0) { + var cc = G === '\\' ? new RegExp(G + G, 'g') : new RegExp(G, 'g'); + Se = Se.replace(cc, G + G); + } + if (bt === !0) { + var ns = new RegExp(M, 'g'); + Se = Se.replace(ns, G + M); + } + Zr === !0 && (Se = M + Se + M), (te += Se); + } else (ht === !0 || (Or === '' && wt === !0 && ht !== !1)) && (te += M + M); + hr !== c.length - 1 && (te += k); + }, + ie = 0; + ie < c.length; + ie++ + ) { + var oe = J(ie); + if (qn(oe) === 'object') return oe.v; + } + return te; + }, + }, + { + key: 'bom', + value: function () { + this.options.bom === !0 && this.push(tot); + }, + }, + { + key: 'headers', + value: function () { + if (this.options.header !== !1 && this.options.columns !== void 0) { + var a = this.options.columns.map(function (o) { + return o.header; + }); + this.options.eof + ? (a = this.stringify(a, !0) + this.options.record_delimiter) + : (a = this.stringify(a)), + this.push(a); + } + }, + }, + { + key: '__cast', + value: function (a, o) { + var s = qn(a); + try { + return s === 'string' + ? [void 0, this.options.cast.string(a, o)] + : s === 'bigint' + ? [void 0, this.options.cast.bigint(a, o)] + : s === 'number' + ? [void 0, this.options.cast.number(a, o)] + : s === 'boolean' + ? [void 0, this.options.cast.boolean(a, o)] + : a instanceof Date + ? [void 0, this.options.cast.date(a, o)] + : s === 'object' && a !== null + ? [void 0, this.options.cast.object(a, o)] + : [void 0, a, a]; + } catch (l) { + return [l]; + } + }, + }, + { + key: 'normalize_columns', + value: function (a) { + if (a != null) { + if (qn(a) !== 'object') throw Error('Invalid option "columns": expect an array or an object'); + if (Array.isArray(a)) { + var l = [], + u = Ov(a), + p; + try { + for (u.s(); !(p = u.n()).done; ) { + var c = p.value; + if (typeof c == 'string') l.push({ key: c, header: c }); + else if (qn(c) === 'object' && c !== void 0 && !Array.isArray(c)) { + if (!c.key) throw Error('Invalid column definition: property "key" is required'); + c.header === void 0 && (c.header = c.key), l.push(c); + } else throw Error('Invalid column definition: expect a string or an object'); + } + } catch (f) { + u.e(f); + } finally { + u.f(); + } + a = l; + } else { + var o = []; + for (var s in a) o.push({ key: s, header: a[s] }); + a = o; + } + return a; + } + }, + }, + ]), + r + ); + })(eot), + fA = function () { + var t, r, n; + for (var a in arguments) { + var o = arguments[a], + s = qn(o); + if (t === void 0 && Array.isArray(o)) t = o; + else if (r === void 0 && wpe(o)) r = o; + else if (n === void 0 && s === 'function') n = o; + else + throw new Tv('CSV_INVALID_ARGUMENT', [ + 'Invalid argument:', + 'got '.concat(JSON.stringify(o), ' at index ').concat(a), + ]); + } + var l = new _pe(r); + if (n) { + var u = []; + l.on('readable', function () { + for (var h; (h = this.read()) !== null; ) u.push(h); + }), + l.on('error', function (h) { + n(h); + }), + l.on('end', function () { + n(void 0, u.join('')); + }); + } + if (t !== void 0) + if (typeof setImmediate == 'function') + setImmediate(function () { + var h = Ov(t), + m; + try { + for (h.s(); !(m = h.n()).done; ) { + var v = m.value; + l.write(v); + } + } catch (y) { + h.e(y); + } finally { + h.f(); + } + l.end(); + }); + else { + var p = Ov(t), + c; + try { + for (p.s(); !(c = p.n()).done; ) { + var f = c.value; + l.write(f); + } + } catch (h) { + p.e(h); + } finally { + p.f(); + } + l.end(); + } + return l; + }, + Tv = (function (e) { + gpe(r, e); + var t = vpe(r); + function r(n, a) { + var o; + hpe(this, r), + Array.isArray(a) && (a = a.join(' ')), + (o = t.call(this, a)), + Error.captureStackTrace !== void 0 && Error.captureStackTrace(ype(o), r), + (o.code = n); + for (var s = arguments.length, l = new Array(s > 2 ? s - 2 : 0), u = 2; u < s; u++) l[u - 2] = arguments[u]; + for (var p = 0, c = l; p < c.length; p++) { + var f = c[p]; + for (var h in f) { + var m = f[h]; + o[h] = Buffer.isBuffer(m) ? m.toString() : m == null ? m : JSON.parse(JSON.stringify(m)); + } + } + return o; + } + return r; + })(dA(Error)); + fA.Stringifier = _pe; + fA.CsvError = Tv; + Epe.exports = fA; + var wpe = function (t) { + return qn(t) === 'object' && t !== null && !Array.isArray(t); + }, + rot = function (t) { + return t.replace(/([A-Z])/g, function (r, n) { + return '_' + n.toLowerCase(); + }); + }, + iot = '.'.charCodeAt(0), + not = /\\(\\)?/g, + aot = RegExp( + `[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`, + 'g' + ), + oot = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, + sot = /^\w*$/, + lot = function (t) { + return Object.prototype.toString.call(t); + }, + uot = function (t, r) { + if (Array.isArray(t)) return !1; + var n = qn(t); + return n === 'number' || n === 'symbol' || n === 'boolean' || !t || Spe(t) + ? !0 + : sot.test(t) || !oot.test(t) || (r != null && t in Object(r)); + }, + Spe = function (t) { + var r = qn(t); + return r === 'symbol' || (r === 'object' && t && lot(t) === '[object Symbol]'); + }, + pot = function (t) { + var r = []; + return ( + t.charCodeAt(0) === iot && r.push(''), + t.replace(aot, function (n, a, o, s) { + var l = n; + o ? (l = s.replace(not, '$1')) : a && (l = a.trim()), r.push(l); + }), + r + ); + }, + cot = function (t, r) { + return Array.isArray(t) ? t : uot(t, r) ? [t] : pot(t); + }, + dot = function (t) { + if (typeof t == 'string' || Spe(t)) return t; + var r = ''.concat(t); + return r == '0' && 1 / t == -INFINITY ? '-0' : r; + }, + fot = function (t, r) { + r = cot(r, t); + for (var n = 0, a = r.length; t != null && n < a; ) t = t[dot(r[n++])]; + return n && n === a ? t : void 0; + }; +}); +var Tpe = d((LWt, Ope) => { + 'use strict'; + function mot(e, t) { + var r = (typeof Symbol < 'u' && e[Symbol.iterator]) || e['@@iterator']; + if (!r) { + if (Array.isArray(e) || (r = hot(e)) || (t && e && typeof e.length == 'number')) { + r && (e = r); + var n = 0, + a = function () {}; + return { + s: a, + n: function () { + return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] }; + }, + e: function (p) { + throw p; + }, + f: a, + }; + } + throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); + } + var o = !0, + s = !1, + l; + return { + s: function () { + r = r.call(e); + }, + n: function () { + var p = r.next(); + return (o = p.done), p; + }, + e: function (p) { + (s = !0), (l = p); + }, + f: function () { + try { + !o && r.return != null && r.return(); + } finally { + if (s) throw l; + } + }, + }; + } + function hot(e, t) { + if (e) { + if (typeof e == 'string') return xpe(e, t); + var r = Object.prototype.toString.call(e).slice(8, -1); + if ((r === 'Object' && e.constructor && (r = e.constructor.name), r === 'Map' || r === 'Set')) + return Array.from(e); + if (r === 'Arguments' || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return xpe(e, t); + } + } + function xpe(e, t) { + (t == null || t > e.length) && (t = e.length); + for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r]; + return n; + } + var got = mA(), + vot = require('string_decoder'), + yot = vot.StringDecoder; + Ope.exports = function (e) { + var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, + r = []; + if (Buffer.isBuffer(e)) { + var n = new yot(); + e = n.write(e); + } + function a(p) { + p && r.push(p.toString()); + } + var o = new got.Stringifier(t); + o.on('data', a); + var s = mot(e), + l; + try { + for (s.s(); !(l = s.n()).done; ) { + var u = l.value; + o.write(u); + } + } catch (p) { + s.e(p); + } finally { + s.f(); + } + return o.end(), o.off('data', a), r.join(''); + }; +}); +var hA = d((th) => { + 'use strict'; + var Av = Ce(), + Ppe = ge(), + bot = Ur(), + Cpe = $r(), + kpe = Bt(), + Rpe = Br(), + _ot = Qt(), + Ape = Vr(), + wot = Ve(); + Ppe(th, '__esModule', { value: !0 }); + th.parseCSV = Cot; + th.toCSV = kot; + th.parseCSVStream = Aot; + th.serializeCSVStream = Iot; + var Sot = Av(Ye()), + Eot = Av(cA()), + xot = Av(ppe()), + Oot = Av(mA()), + Tot = Av(Tpe()); + function Ipe(e, t) { + var r = wot(e); + if (Ape) { + var n = Ape(e); + t && + (n = _ot(n).call(n, function (a) { + return Rpe(e, a).enumerable; + })), + r.push.apply(r, n); + } + return r; + } + function up(e) { + for (var t = 1; t < arguments.length; t++) { + var r = arguments[t] != null ? arguments[t] : {}; + if (t % 2) { + var n; + kpe((n = Ipe(Object(r), !0))).call(n, function (o) { + (0, Sot.default)(e, o, r[o]); + }); + } else if (Cpe) bot(e, Cpe(r)); + else { + var a; + kpe((a = Ipe(Object(r)))).call(a, function (o) { + Ppe(e, o, Rpe(r, o)); + }); + } + } + return e; + } + function Cot(e, t) { + return (0, xot.default)(e, up(up({}, t), {}, { columns: !0 })); + } + function kot(e, t) { + return (0, Tot.default)(e, up(up({}, t), {}, { header: !0 })); + } + function Aot(e) { + return (0, Eot.default)(up(up({}, e), {}, { columns: !0 })); + } + function Iot(e) { + return (0, Oot.default)(up(up({}, e), {}, { header: !0 })); + } +}); +var Rv = d((rh) => { + 'use strict'; + var Pv = Ce(), + Pot = ge(); + kr(); + Zt(); + Pot(rh, '__esModule', { value: !0 }); + rh.default = rh.HttpApi = void 0; + var Rot = Pv(Da()), + jot = Pv(Ve()), + jpe = Pv(Nm()), + Vl = Pv(Ye()), + Dot = require('events'), + Not = Pv(zue()), + qot = Xm(), + Fot = $k(), + Lot = hA(), + Mot = vv(); + function Uot(e) { + return JSON.parse(e); + } + async function $ot(e) { + return Not.default.parseStringPromise(e, { explicitArray: !1 }); + } + function Bot(e) { + return e; + } + var Iv = class e extends Dot.EventEmitter { + constructor(t, r) { + super(), + (0, Vl.default)(this, '_conn', void 0), + (0, Vl.default)(this, '_logger', void 0), + (0, Vl.default)(this, '_transport', void 0), + (0, Vl.default)(this, '_responseType', void 0), + (0, Vl.default)(this, '_noContentResponse', void 0), + (0, Vl.default)(this, '_options', void 0), + (this._conn = t), + (this._logger = t._logLevel ? e._logger.createInstance(t._logLevel) : e._logger), + (this._responseType = r.responseType), + (this._transport = r.transport || t._transport), + (this._noContentResponse = r.noContentResponse), + (this._options = r); + } + request(t) { + return Fot.StreamPromise.create(() => { + let { stream: r, setStream: n } = (0, Mot.createLazyStream)(), + a = (async () => { + let o = this.getRefreshDelegate(); + if (o && o.isRefreshing()) { + await o.waitRefresh(); + let c = this.request(t); + return n(c.stream()), await c; + } + this.beforeSend(t), + this.emit('request', t), + this._logger.debug(` method=${t.method}, url=${t.url}`); + let s = (0, jpe.default)(), + l = this._transport.httpRequest(t, this._options); + n(l.stream()); + let u; + try { + u = await l; + } catch (c) { + throw (this._logger.error(c), c); + } finally { + let c = (0, jpe.default)(); + this._logger.debug(`elapsed time: ${c - s} msec`); + } + if (!u) return; + if ( + (this._logger.debug(` status=${String(u.statusCode)}, url=${t.url}`), + this.emit('response', u), + this.isSessionExpired(u) && o) + ) + return await o.refresh(s), this.request(t); + if (this.isErrorResponse(u)) throw await this.getError(u); + return await this.getResponseBody(u); + })(); + return { stream: r, promise: a }; + }); + } + getRefreshDelegate() { + return this._conn._refreshDelegate; + } + beforeSend(t) { + let r = t.headers || {}; + if ((this._conn.accessToken && (r.Authorization = `Bearer ${this._conn.accessToken}`), this._conn._callOptions)) { + let n = []; + for (let a of (0, jot.default)(this._conn._callOptions)) n.push(`${a}=${this._conn._callOptions[a]}`); + r['Sforce-Call-Options'] = n.join(', '); + } + t.headers = r; + } + getResponseContentType(t) { + return this._responseType || (t.headers && t.headers['content-type']); + } + async parseResponseBody(t) { + let r = this.getResponseContentType(t) || '', + n = /^(text|application)\/xml(;|$)/.test(r) + ? $ot + : /^application\/json(;|$)/.test(r) + ? Uot + : /^text\/csv(;|$)/.test(r) + ? Lot.parseCSV + : Bot; + try { + return n(t.body); + } catch { + return t.body; + } + } + async getResponseBody(t) { + if (t.statusCode === 204) return this._noContentResponse; + let r = await this.parseResponseBody(t), + n; + if (this.hasErrorInResponseBody(r)) throw ((n = await this.getError(t, r)), n); + if (t.statusCode === 300) throw new Vw('Multiple records found', 'MULTIPLE_CHOICES', r); + return r; + } + isSessionExpired(t) { + return t.statusCode === 401; + } + isErrorResponse(t) { + return t.statusCode >= 400; + } + hasErrorInResponseBody(t) { + return !1; + } + parseError(t) { + let r = t; + return (0, Rot.default)(r) ? r[0] : r; + } + async getError(t, r) { + let n; + try { + n = this.parseError(r || (await this.parseResponseBody(t))); + } catch {} + return ( + (n = + typeof n == 'object' && n !== null && typeof n.message == 'string' + ? n + : { errorCode: `ERROR_HTTP_${t.statusCode}`, message: t.body }), + new Vw(n.message, n.errorCode) + ); + } + }; + rh.HttpApi = Iv; + (0, Vl.default)(Iv, '_logger', (0, qot.getLogger)('http-api')); + var Vw = class extends Error { + constructor(t, r, n) { + super(t), + (0, Vl.default)(this, 'errorCode', void 0), + (0, Vl.default)(this, 'content', void 0), + (this.name = r || this.name), + (this.errorCode = this.name), + (this.content = n); + } + }, + Vot = Iv; + rh.default = Vot; +}); +var Dpe = d((nh) => { + 'use strict'; + var gA = Ce(), + zot = ge(); + Zt(); + zot(nh, '__esModule', { value: !0 }); + nh.default = nh.SessionRefreshDelegate = void 0; + var Hot = gA(Nm()), + Got = gA(cn()), + ih = gA(Ye()), + Wot = Xm(), + jv = class e { + constructor(t, r) { + (0, ih.default)(this, '_refreshFn', void 0), + (0, ih.default)(this, '_conn', void 0), + (0, ih.default)(this, '_logger', void 0), + (0, ih.default)(this, '_lastRefreshedAt', void 0), + (0, ih.default)(this, '_refreshPromise', void 0), + (this._conn = t), + (this._logger = t._logLevel ? e._logger.createInstance(t._logLevel) : e._logger), + (this._refreshFn = r); + } + async refresh(t) { + if (!(this._lastRefreshedAt && this._lastRefreshedAt > t)) { + if (this._refreshPromise) { + await this._refreshPromise; + return; + } + try { + this._logger.info(''), + (this._refreshPromise = new Got.default((r, n) => { + this._refreshFn(this._conn, (a, o, s) => { + a + ? n(a) + : (this._logger.debug('Connection refresh completed.'), + (this._conn.accessToken = o), + this._conn.emit('refresh', o, s), + r()); + }); + })), + await this._refreshPromise, + this._logger.info(''); + } finally { + (this._refreshPromise = void 0), (this._lastRefreshedAt = (0, Hot.default)()); + } + } + } + isRefreshing() { + return !!this._refreshPromise; + } + async waitRefresh() { + return this._refreshPromise; + } + }; + nh.SessionRefreshDelegate = jv; + (0, ih.default)(jv, '_logger', (0, Wot.getLogger)('session-refresh-delegate')); + var Kot = jv; + nh.default = Kot; +}); +var Fpe = d((BWt, qpe) => { + 'use strict'; + var Npe = mm(), + Xot = TypeError; + qpe.exports = function (e, t) { + if (!delete e[t]) throw Xot('Cannot delete property ' + Npe(t) + ' of ' + Npe(e)); + }; +}); +var Mpe = d((VWt, Lpe) => { + 'use strict'; + var Jot = z4(), + Yot = fs(), + Qot = T0(); + Lpe.exports = function (e, t, r) { + var n = Jot(t); + n in e ? Yot.f(e, n, Qot(0, r)) : (e[n] = r); + }; +}); +var Bpe = d((zWt, $pe) => { + var Upe = kO(), + Zot = x0(), + est = Mpe(), + tst = Array, + rst = Math.max; + $pe.exports = function (e, t, r) { + for ( + var n = Zot(e), a = Upe(t, n), o = Upe(r === void 0 ? n : r, n), s = tst(rst(o - a, 0)), l = 0; + a < o; + a++, l++ + ) + est(s, l, e[a]); + return (s.length = l), s; + }; +}); +var Hpe = d((HWt, zpe) => { + var Vpe = Bpe(), + ist = Math.floor, + vA = function (e, t) { + var r = e.length, + n = ist(r / 2); + return r < 8 ? nst(e, t) : ast(e, vA(Vpe(e, 0, n), t), vA(Vpe(e, n), t), t); + }, + nst = function (e, t) { + for (var r = e.length, n = 1, a, o; n < r; ) { + for (o = n, a = e[n]; o && t(e[o - 1], a) > 0; ) e[o] = e[--o]; + o !== n++ && (e[o] = a); + } + return e; + }, + ast = function (e, t, r, n) { + for (var a = t.length, o = r.length, s = 0, l = 0; s < a || l < o; ) + e[s + l] = s < a && l < o ? (n(t[s], r[l]) <= 0 ? t[s++] : r[l++]) : s < a ? t[s++] : r[l++]; + return e; + }; + zpe.exports = vA; +}); +var Wpe = d((GWt, Gpe) => { + 'use strict'; + var ost = Mr(); + Gpe.exports = function (e, t) { + var r = [][e]; + return ( + !!r && + ost(function () { + r.call( + null, + t || + function () { + return 1; + }, + 1 + ); + }) + ); + }; +}); +var Jpe = d((WWt, Xpe) => { + var sst = Wu(), + Kpe = sst.match(/firefox\/(\d+)/i); + Xpe.exports = !!Kpe && +Kpe[1]; +}); +var Qpe = d((KWt, Ype) => { + var lst = Wu(); + Ype.exports = /MSIE|Trident/.test(lst); +}); +var tce = d((XWt, ece) => { + var ust = Wu(), + Zpe = ust.match(/AppleWebKit\/(\d+)\./); + ece.exports = !!Zpe && +Zpe[1]; +}); +var bA = d(() => { + 'use strict'; + var pst = Po(), + lce = mi(), + cst = Nl(), + dst = w0(), + rce = x0(), + fst = Fpe(), + ice = $0(), + yA = Mr(), + mst = Hpe(), + hst = Wpe(), + nce = Jpe(), + gst = Qpe(), + ace = U4(), + oce = tce(), + pp = [], + sce = lce(pp.sort), + vst = lce(pp.push), + yst = yA(function () { + pp.sort(void 0); + }), + bst = yA(function () { + pp.sort(null); + }), + _st = hst('sort'), + uce = !yA(function () { + if (ace) return ace < 70; + if (!(nce && nce > 3)) { + if (gst) return !0; + if (oce) return oce < 603; + var e = '', + t, + r, + n, + a; + for (t = 65; t < 76; t++) { + switch (((r = String.fromCharCode(t)), t)) { + case 66: + case 69: + case 70: + case 72: + n = 3; + break; + case 68: + case 71: + n = 4; + break; + default: + n = 2; + } + for (a = 0; a < 47; a++) pp.push({ k: r + a, v: n }); + } + for ( + pp.sort(function (o, s) { + return s.v - o.v; + }), + a = 0; + a < pp.length; + a++ + ) + (r = pp[a].k.charAt(0)), e.charAt(e.length - 1) !== r && (e += r); + return e !== 'DGBEFHACIJK'; + } + }), + wst = yst || !bst || !_st || !uce, + Sst = function (e) { + return function (t, r) { + return r === void 0 ? -1 : t === void 0 ? 1 : e !== void 0 ? +e(t, r) || 0 : ice(t) > ice(r) ? 1 : -1; + }; + }; + pst( + { target: 'Array', proto: !0, forced: wst }, + { + sort: function (t) { + t !== void 0 && cst(t); + var r = dst(this); + if (uce) return t === void 0 ? sce(r) : sce(r, t); + var n = [], + a = rce(r), + o, + s; + for (s = 0; s < a; s++) s in r && vst(n, r[s]); + for (mst(n, Sst(t)), o = rce(n), s = 0; s < o; ) r[s] = n[s++]; + for (; s < a; ) fst(r, s++); + return r; + }, + } + ); +}); +var pce = d(() => { + 'use strict'; + var Est = ve(), + xst = X6().includes, + Ost = vt(), + Tst = Y6(), + Cst = Ost(function () { + return !Array(1).includes(); + }); + Est( + { target: 'Array', proto: !0, forced: Cst }, + { + includes: function (t) { + return xst(this, t, arguments.length > 1 ? arguments[1] : void 0); + }, + } + ); + Tst('includes'); +}); +var dce = d((eKt, cce) => { + pce(); + var kst = pn(); + cce.exports = kst('Array').includes; +}); +var mce = d((tKt, fce) => { + var Ast = Lr(), + Ist = wl(), + Pst = Yt(), + Rst = Pst('match'); + fce.exports = function (e) { + var t; + return Ast(e) && ((t = e[Rst]) !== void 0 ? !!t : Ist(e) == 'RegExp'); + }; +}); +var gce = d((rKt, hce) => { + var jst = mce(), + Dst = TypeError; + hce.exports = function (e) { + if (jst(e)) throw Dst("The method doesn't accept regular expressions"); + return e; + }; +}); +var yce = d((iKt, vce) => { + var Nst = Yt(), + qst = Nst('match'); + vce.exports = function (e) { + var t = /./; + try { + '/./'[e](t); + } catch { + try { + return (t[qst] = !1), '/./'[e](t); + } catch {} + } + return !1; + }; +}); +var _ce = d(() => { + 'use strict'; + var Fst = ve(), + Lst = _t(), + Mst = gce(), + Ust = Zf(), + bce = cs(), + $st = yce(), + Bst = Lst(''.indexOf); + Fst( + { target: 'String', proto: !0, forced: !$st('includes') }, + { + includes: function (t) { + return !!~Bst(bce(Ust(this)), bce(Mst(t)), arguments.length > 1 ? arguments[1] : void 0); + }, + } + ); +}); +var Sce = d((oKt, wce) => { + _ce(); + var Vst = pn(); + wce.exports = Vst('String').includes; +}); +var Oce = d((sKt, xce) => { + var Ece = ei(), + zst = dce(), + Hst = Sce(), + _A = Array.prototype, + wA = String.prototype; + xce.exports = function (e) { + var t = e.includes; + return e === _A || (Ece(_A, e) && t === _A.includes) + ? zst + : typeof e == 'string' || e === wA || (Ece(wA, e) && t === wA.includes) + ? Hst + : t; + }; +}); +var Cce = d((lKt, Tce) => { + var Gst = Oce(); + Tce.exports = Gst; +}); +var zw = d((uKt, kce) => { + kce.exports = Cce(); +}); +var Pce = d((pKt, Ice) => { + 'use strict'; + var Ace = Cc(), + Wst = TypeError; + Ice.exports = function (e, t) { + if (!delete e[t]) throw Wst('Cannot delete property ' + Ace(t) + ' of ' + Ace(e)); + }; +}); +var Dce = d((cKt, jce) => { + var Rce = bx(), + Kst = Math.floor, + SA = function (e, t) { + var r = e.length, + n = Kst(r / 2); + return r < 8 ? Xst(e, t) : Jst(e, SA(Rce(e, 0, n), t), SA(Rce(e, n), t), t); + }, + Xst = function (e, t) { + for (var r = e.length, n = 1, a, o; n < r; ) { + for (o = n, a = e[n]; o && t(e[o - 1], a) > 0; ) e[o] = e[--o]; + o !== n++ && (e[o] = a); + } + return e; + }, + Jst = function (e, t, r, n) { + for (var a = t.length, o = r.length, s = 0, l = 0; s < a || l < o; ) + e[s + l] = s < a && l < o ? (n(t[s], r[l]) <= 0 ? t[s++] : r[l++]) : s < a ? t[s++] : r[l++]; + return e; + }; + jce.exports = SA; +}); +var Fce = d((dKt, qce) => { + var Yst = Sl(), + Nce = Yst.match(/firefox\/(\d+)/i); + qce.exports = !!Nce && +Nce[1]; +}); +var Mce = d((fKt, Lce) => { + var Qst = Sl(); + Lce.exports = /MSIE|Trident/.test(Qst); +}); +var Bce = d((mKt, $ce) => { + var Zst = Sl(), + Uce = Zst.match(/AppleWebKit\/(\d+)\./); + $ce.exports = !!Uce && +Uce[1]; +}); +var Yce = d(() => { + 'use strict'; + var elt = ve(), + Xce = _t(), + tlt = zi(), + rlt = El(), + Vce = xl(), + ilt = Pce(), + zce = cs(), + EA = vt(), + nlt = Dce(), + alt = r0(), + Hce = Fce(), + olt = Mce(), + Gce = Oc(), + Wce = Bce(), + cp = [], + Kce = Xce(cp.sort), + slt = Xce(cp.push), + llt = EA(function () { + cp.sort(void 0); + }), + ult = EA(function () { + cp.sort(null); + }), + plt = alt('sort'), + Jce = !EA(function () { + if (Gce) return Gce < 70; + if (!(Hce && Hce > 3)) { + if (olt) return !0; + if (Wce) return Wce < 603; + var e = '', + t, + r, + n, + a; + for (t = 65; t < 76; t++) { + switch (((r = String.fromCharCode(t)), t)) { + case 66: + case 69: + case 70: + case 72: + n = 3; + break; + case 68: + case 71: + n = 4; + break; + default: + n = 2; + } + for (a = 0; a < 47; a++) cp.push({ k: r + a, v: n }); + } + for ( + cp.sort(function (o, s) { + return s.v - o.v; + }), + a = 0; + a < cp.length; + a++ + ) + (r = cp[a].k.charAt(0)), e.charAt(e.length - 1) !== r && (e += r); + return e !== 'DGBEFHACIJK'; + } + }), + clt = llt || !ult || !plt || !Jce, + dlt = function (e) { + return function (t, r) { + return r === void 0 ? -1 : t === void 0 ? 1 : e !== void 0 ? +e(t, r) || 0 : zce(t) > zce(r) ? 1 : -1; + }; + }; + elt( + { target: 'Array', proto: !0, forced: clt }, + { + sort: function (t) { + t !== void 0 && tlt(t); + var r = rlt(this); + if (Jce) return t === void 0 ? Kce(r) : Kce(r, t); + var n = [], + a = Vce(r), + o, + s; + for (s = 0; s < a; s++) s in r && slt(n, r[s]); + for (nlt(n, dlt(t)), o = Vce(n), s = 0; s < o; ) r[s] = n[s++]; + for (; s < a; ) ilt(r, s++); + return r; + }, + } + ); +}); +var Zce = d((vKt, Qce) => { + Yce(); + var flt = pn(); + Qce.exports = flt('Array').sort; +}); +var tde = d((yKt, ede) => { + var mlt = ei(), + hlt = Zce(), + xA = Array.prototype; + ede.exports = function (e) { + var t = e.sort; + return e === xA || (mlt(xA, e) && t === xA.sort) ? hlt : t; + }; +}); +var ide = d((bKt, rde) => { + var glt = tde(); + rde.exports = glt; +}); +var OA = d((_Kt, nde) => { + nde.exports = ide(); +}); +var sde = d((wKt, ode) => { + var vlt = zi(), + ylt = El(), + blt = U6(), + _lt = xl(), + wlt = TypeError, + ade = function (e) { + return function (t, r, n, a) { + vlt(r); + var o = ylt(t), + s = blt(o), + l = _lt(o), + u = e ? l - 1 : 0, + p = e ? -1 : 1; + if (n < 2) + for (;;) { + if (u in s) { + (a = s[u]), (u += p); + break; + } + if (((u += p), e ? u < 0 : l <= u)) throw wlt('Reduce of empty array with no initial value'); + } + for (; e ? u >= 0 : l > u; u += p) u in s && (a = r(a, s[u], u, o)); + return a; + }; + }; + ode.exports = { left: ade(!1), right: ade(!0) }; +}); +var ude = d(() => { + 'use strict'; + var Slt = ve(), + Elt = sde().left, + xlt = r0(), + lde = Oc(), + Olt = Cm(), + Tlt = xlt('reduce'), + Clt = !Olt && lde > 79 && lde < 83; + Slt( + { target: 'Array', proto: !0, forced: !Tlt || Clt }, + { + reduce: function (t) { + var r = arguments.length; + return Elt(this, t, r, r > 1 ? arguments[1] : void 0); + }, + } + ); +}); +var cde = d((xKt, pde) => { + ude(); + var klt = pn(); + pde.exports = klt('Array').reduce; +}); +var fde = d((OKt, dde) => { + var Alt = ei(), + Ilt = cde(), + TA = Array.prototype; + dde.exports = function (e) { + var t = e.reduce; + return e === TA || (Alt(TA, e) && t === TA.reduce) ? Ilt : t; + }; +}); +var hde = d((TKt, mde) => { + var Plt = fde(); + mde.exports = Plt; +}); +var Hw = d((CKt, gde) => { + gde.exports = hde(); +}); +var Ww = d((bs) => { + 'use strict'; + var oh = Ce(), + Ede = ge(), + Rlt = Ur(), + vde = $r(), + yde = Bt(), + xde = Br(), + jlt = Qt(), + bde = Vr(), + Dlt = Ve(); + kr(); + Vc(); + Ede(bs, '__esModule', { value: !0 }); + bs.default = bs.Parsable = bs.Serializable = bs.RecordStream = void 0; + var Nlt = oh(Qt()), + CA = oh(jn()), + qlt = oh(Ro()), + id = oh(Ye()), + kA = oh(Ve()), + _de = oh(Hw()), + ah = require('stream'), + wde = hA(), + Flt = vv(); + function Sde(e, t) { + var r = Dlt(e); + if (bde) { + var n = bde(e); + t && + (n = jlt(n).call(n, function (a) { + return xde(e, a).enumerable; + })), + r.push.apply(r, n); + } + return r; + } + function Gw(e) { + for (var t = 1; t < arguments.length; t++) { + var r = arguments[t] != null ? arguments[t] : {}; + if (t % 2) { + var n; + yde((n = Sde(Object(r), !0))).call(n, function (o) { + (0, id.default)(e, o, r[o]); + }); + } else if (vde) Rlt(e, vde(r)); + else { + var a; + yde((a = Sde(Object(r)))).call(a, function (o) { + Ede(e, o, xde(r, o)); + }); + } + } + return e; + } + function Llt(e, t) { + if (typeof e == 'string') { + let r = /^\$\{(\w+)\}$/.exec(e); + return r + ? t[r[1]] + : e.replace(/\$\{(\w+)\}/g, (n, a) => { + let o = t[a]; + return typeof o > 'u' || o === null ? '' : String(o); + }); + } + return e; + } + function Ode(e, t = {}) { + var r; + return (0, _de.default)((r = (0, kA.default)(e))).call( + r, + (n, a) => { + let o = n[a], + s; + if (a === 'attributes') return (s = Gw({}, n)), delete s[a], s; + if (t.nullValue && o === null) return Gw(Gw({}, n), {}, { [a]: t.nullValue }); + if (o !== null && typeof o == 'object') { + var l; + let u = Ode(o, t); + return (0, _de.default)((l = (0, kA.default)(u))).call(l, (p, c) => ((p[`${a}.${c}`] = u[c]), p), Gw({}, n)); + } + return n; + }, + e + ); + } + function Mlt(e, t) { + return e.pipe(t), (0, Flt.concatStreamsAsDuplex)(e, t, { writableObjectMode: !0 }); + } + var Ult = { + serialize(e = {}) { + let { nullValue: t } = e, + r = (0, qlt.default)(e, ['nullValue']); + return Mlt( + (0, CA.default)(dp).call(dp, (n) => Ode(n, e)), + (0, wde.serializeCSVStream)(r) + ); + }, + parse(e = {}) { + return (0, wde.parseCSVStream)(e); + }, + }, + Tde = { csv: Ult }, + dp = class e extends ah.PassThrough { + constructor() { + super({ objectMode: !0 }), (0, id.default)(this, 'addListener', this.on); + } + map(t) { + return this.pipe((0, CA.default)(e).call(e, t)); + } + filter(t) { + return this.pipe((0, Nlt.default)(e).call(e, t)); + } + on(t, r) { + return super.on(t === 'record' ? 'data' : t, r); + } + static map(t) { + let r = new ah.Transform({ + objectMode: !0, + transform(n, a, o) { + let s = t(n) || n; + r.push(s), o(); + }, + }); + return r; + } + static recordMapStream(t, r) { + return (0, CA.default)(e).call(e, (n) => { + let a = { Id: n.Id }; + for (let o of (0, kA.default)(t)) a[o] = r ? t[o] : Llt(t[o], n); + return a; + }); + } + static filter(t) { + let r = new ah.Transform({ + objectMode: !0, + transform(n, a, o) { + t(n) && r.push(n), o(); + }, + }); + return r; + } + }; + bs.RecordStream = dp; + var AA = class extends dp { + constructor(...t) { + super(...t), (0, id.default)(this, '_dataStreams', {}); + } + stream(t = 'csv', r = {}) { + if (this._dataStreams[t]) return this._dataStreams[t]; + let n = Tde[t]; + if (!n) throw new Error(`Converting [${t}] data stream is not supported.`); + let a = new ah.PassThrough(); + return this.pipe(n.serialize(r)).pipe(a), (this._dataStreams[t] = a), a; + } + }; + bs.Serializable = AA; + var IA = class extends dp { + constructor(...t) { + super(...t), + (0, id.default)(this, '_dataStreams', {}), + (0, id.default)(this, '_execParse', !1), + (0, id.default)(this, '_incomings', []), + (0, id.default)(this, 'addListener', this.on); + } + stream(t = 'csv', r = {}) { + if (this._dataStreams[t]) return this._dataStreams[t]; + let n = Tde[t]; + if (!n) throw new Error(`Converting [${t}] data stream is not supported.`); + let a = new ah.PassThrough(), + o = n.parse(r); + return ( + o.on('error', (s) => this.emit('error', s)), + o.pipe(this).pipe(new ah.PassThrough({ objectMode: !0, highWaterMark: 500 * 1e3 })), + this._execParse ? a.pipe(o) : this._incomings.push([a, o]), + (this._dataStreams[t] = a), + a + ); + } + on(t, r) { + if ((t === 'readable' || t === 'record') && !this._execParse) { + this._execParse = !0; + for (let [n, a] of this._incomings) n.pipe(a); + } + return super.on(t, r); + } + }; + bs.Parsable = IA; + var $lt = dp; + bs.default = $lt; +}); +var Cde = d(() => { + var Blt = ve(), + Vlt = eC().values; + Blt( + { target: 'Object', stat: !0 }, + { + values: function (t) { + return Vlt(t); + }, + } + ); +}); +var Ade = d((PKt, kde) => { + Cde(); + var zlt = or(); + kde.exports = zlt.Object.values; +}); +var Pde = d((RKt, Ide) => { + var Hlt = Ade(); + Ide.exports = Hlt; +}); +var jde = d((jKt, Rde) => { + Rde.exports = Pde(); +}); +var Dde = d(() => { + 'use strict'; + var Glt = Po(), + Wlt = Wi(); + Glt( + { target: 'URL', proto: !0, enumerable: !0 }, + { + toJSON: function () { + return Wlt(URL.prototype.toString, this); + }, + } + ); +}); +var PA = d((Kw) => { + 'use strict'; + var Klt = ge(); + Klt(Kw, '__esModule', { value: !0 }); + Kw.zeroPad = sh; + Kw.formatDate = Xlt; + function sh(e, t = 2) { + let r = ''; + for (let n = t - 1; n > 0 && !(e >= 10 ** n); n--) r += '0'; + return r + String(e); + } + function Xlt(e) { + return `${e.getUTCFullYear()}-${sh(e.getUTCMonth() + 1)}-${sh(e.getUTCDate())}T${sh(e.getUTCHours())}:${sh( + e.getUTCMinutes() + )}:${sh(e.getUTCSeconds())}+00:00`; + } +}); +var Xw = d((lh) => { + 'use strict'; + var Nde = Ce(), + Jlt = ge(); + Dde(); + Jlt(lh, '__esModule', { value: !0 }); + lh.default = lh.SfDate = void 0; + var Ki = Nde(Tm()), + je = Nde(Ye()), + Lo = PA(); + function Fn(e) { + return (t) => new ue(`${e}:${String(t)}`); + } + var ue = class e { + constructor(t) { + (0, je.default)(this, '_literal', void 0), (0, je.default)(this, 'toString', this.toJSON), (this._literal = t); + } + toJSON() { + return this._literal; + } + static toDateLiteral(t) { + let r; + typeof t == 'number' ? (r = new Date(t)) : typeof t == 'string' ? (r = e.parseDate(t)) : (r = t); + let n = r.getFullYear(), + a = r.getMonth() + 1, + o = r.getDate(), + s = [n, (0, Lo.zeroPad)(a), (0, Lo.zeroPad)(o)].join('-'); + return new e(s); + } + static toDateTimeLiteral(t) { + let r; + typeof t == 'number' ? (r = new Date(t)) : typeof t == 'string' ? (r = e.parseDate(t)) : (r = t); + let n = r.getUTCFullYear(), + a = r.getUTCMonth() + 1, + o = r.getUTCDate(), + s = r.getUTCHours(), + l = r.getUTCMinutes(), + u = r.getUTCSeconds(), + p = `${[n, (0, Lo.zeroPad)(a), (0, Lo.zeroPad)(o)].join('-')}T${[ + (0, Lo.zeroPad)(s), + (0, Lo.zeroPad)(l), + (0, Lo.zeroPad)(u), + ].join(':')}Z`; + return new e(p); + } + static toTimeLiteral(t) { + let r = new Date(0); + typeof t == 'string' ? (r = e.parseTime(t)) : typeof t == 'number' ? (r = new Date(t)) : (r = t); + let n = r.getUTCHours(), + a = r.getUTCMinutes(), + o = r.getUTCSeconds(), + s = r.getUTCMilliseconds(), + l = `${(0, Lo.zeroPad)(n)}:${(0, Lo.zeroPad)(a)}:${(0, Lo.zeroPad)(o)}.${(0, Lo.zeroPad)(s, 3)}Z`; + return new e(l); + } + static parseDate(t) { + let r = new Date(), + n = + /^([\d]{4})-?([\d]{2})-?([\d]{2})(T([\d]{2}):?([\d]{2}):?([\d]{2})(.([\d]{3}))?(Z|([+-])([\d]{2}):?([\d]{2})))?$/, + a = t.match(n); + if (a) { + if (((r = new Date(0)), !a[4])) + r.setFullYear((0, Ki.default)(a[1], 10)), + r.setDate((0, Ki.default)(a[3], 10)), + r.setMonth((0, Ki.default)(a[2], 10) - 1), + r.setHours(0), + r.setMinutes(0), + r.setSeconds(0), + r.setMilliseconds(0); + else if ( + (r.setUTCFullYear((0, Ki.default)(a[1], 10)), + r.setUTCDate((0, Ki.default)(a[3], 10)), + r.setUTCMonth((0, Ki.default)(a[2], 10) - 1), + r.setUTCHours((0, Ki.default)(a[5], 10)), + r.setUTCMinutes((0, Ki.default)(a[6], 10)), + r.setUTCSeconds((0, Ki.default)(a[7], 10)), + r.setUTCMilliseconds((0, Ki.default)(a[9] || '0', 10)), + a[10] && a[10] !== 'Z') + ) { + let o = (0, Ki.default)(a[12], 10) * 60 + (0, Ki.default)(a[13], 10); + r.setTime((a[11] === '+' ? -1 : 1) * o * 60 * 1e3 + r.getTime()); + } + return r; + } + throw new Error(`Invalid date format is specified : ${t}`); + } + static parseTime(t) { + let r = /^([\d]{2}):?([\d]{2}):?([\d]{2})(.([\d]{3}))?Z?$/, + n = t.match(r); + if (n) { + let a = new Date(0), + o = (0, Ki.default)(n[1], 10), + s = (0, Ki.default)(n[2], 10), + l = (0, Ki.default)(n[3], 10), + u = (0, Ki.default)(n[5] || '0', 10); + return a.setUTCHours(o), a.setUTCMinutes(s), a.setUTCSeconds(l), a.setUTCMilliseconds(u), a; + } + throw new Error(`Invalid time format is specified : ${t}`); + } + }; + lh.SfDate = ue; + (0, je.default)(ue, 'YESTERDAY', new ue('YESTERDAY')); + (0, je.default)(ue, 'TODAY', new ue('TODAY')); + (0, je.default)(ue, 'TOMORROW', new ue('TOMORROW')); + (0, je.default)(ue, 'LAST_WEEK', new ue('LAST_WEEK')); + (0, je.default)(ue, 'THIS_WEEK', new ue('THIS_WEEK')); + (0, je.default)(ue, 'NEXT_WEEK', new ue('NEXT_WEEK')); + (0, je.default)(ue, 'LAST_MONTH', new ue('LAST_MONTH')); + (0, je.default)(ue, 'THIS_MONTH', new ue('THIS_MONTH')); + (0, je.default)(ue, 'NEXT_MONTH', new ue('NEXT_MONTH')); + (0, je.default)(ue, 'LAST_90_DAYS', new ue('LAST_90_DAYS')); + (0, je.default)(ue, 'NEXT_90_DAYS', new ue('NEXT_90_DAYS')); + (0, je.default)(ue, 'LAST_N_DAYS', Fn('LAST_N_DAYS')); + (0, je.default)(ue, 'NEXT_N_DAYS', Fn('NEXT_N_DAYS')); + (0, je.default)(ue, 'NEXT_N_WEEKS', Fn('NEXT_N_WEEKS')); + (0, je.default)(ue, 'LAST_N_WEEKS', Fn('LAST_N_WEEKS')); + (0, je.default)(ue, 'NEXT_N_MONTHS', Fn('NEXT_N_MONTHS')); + (0, je.default)(ue, 'LAST_N_MONTHS', Fn('LAST_N_MONTHS')); + (0, je.default)(ue, 'THIS_QUARTER', new ue('THIS_QUARTER')); + (0, je.default)(ue, 'LAST_QUARTER', new ue('LAST_QUARTER')); + (0, je.default)(ue, 'NEXT_QUARTER', new ue('NEXT_QUARTER')); + (0, je.default)(ue, 'NEXT_N_QUARTERS', Fn('NEXT_N_QUARTERS')); + (0, je.default)(ue, 'LAST_N_QUARTERS', Fn('LAST_N_QUARTERS')); + (0, je.default)(ue, 'THIS_YEAR', new ue('THIS_YEAR')); + (0, je.default)(ue, 'LAST_YEAR', new ue('LAST_YEAR')); + (0, je.default)(ue, 'NEXT_YEAR', new ue('NEXT_YEAR')); + (0, je.default)(ue, 'NEXT_N_YEARS', Fn('NEXT_N_YEARS')); + (0, je.default)(ue, 'LAST_N_YEARS', Fn('LAST_N_YEARS')); + (0, je.default)(ue, 'THIS_FISCAL_QUARTER', new ue('THIS_FISCAL_QUARTER')); + (0, je.default)(ue, 'LAST_FISCAL_QUARTER', new ue('LAST_FISCAL_QUARTER')); + (0, je.default)(ue, 'NEXT_FISCAL_QUARTER', new ue('NEXT_FISCAL_QUARTER')); + (0, je.default)(ue, 'THIS_FISCAL_YEAR', new ue('THIS_FISCAL_YEAR')); + (0, je.default)(ue, 'NEXT_N_FISCAL_QUARTERS', Fn('NEXT_N_FISCAL_QUARTERS')); + (0, je.default)(ue, 'LAST_N_FISCAL_QUARTERS', Fn('LAST_N_FISCAL_QUARTERS')); + (0, je.default)(ue, 'LAST_FISCAL_YEAR', new ue('LAST_FISCAL_YEAR')); + (0, je.default)(ue, 'NEXT_FISCAL_YEAR', new ue('NEXT_FISCAL_YEAR')); + (0, je.default)(ue, 'NEXT_N_FISCAL_YEARS', Fn('NEXT_N_FISCAL_YEARS')); + (0, je.default)(ue, 'LAST_N_FISCAL_YEARS', Fn('LAST_N_FISCAL_YEARS')); + var Ylt = ue; + lh.default = Ylt; +}); +var Mde = d((jA) => { + 'use strict'; + var zl = Ce(), + Qlt = ge(); + kr(); + Vc(); + Qlt(jA, '__esModule', { value: !0 }); + jA.createSOQL = Lde; + var Zlt = zl(OA()), + eut = zl(zw()), + tut = zl(Qt()), + rut = zl(O_()), + RA = zl(Ve()), + Jw = zl(Da()), + _s = zl(jn()), + iut = zl(jde()), + nut = zl(Xw()); + function aut(e) { + return String(e || '').replace(/'/g, "\\'"); + } + function out(e, t = {}) { + let r = (0, iut.default)(t); + return [...(e || ['Id']), ...(0, _s.default)(r).call(r, (n) => `(${Lde(n)})`)].join(', '); + } + function qde(e) { + return (0, Jw.default)(e) + ? e.length > 0 + ? `(${(0, _s.default)(e).call(e, qde).join(', ')})` + : void 0 + : e instanceof nut.default + ? e.toString() + : typeof e == 'string' + ? `'${aut(e)}'` + : typeof e == 'number' + ? e.toString() + : e === null + ? 'null' + : e; + } + var sut = { + '=': '=', + $eq: '=', + '!=': '!=', + $ne: '!=', + '>': '>', + $gt: '>', + '<': '<', + $lt: '<', + '>=': '>=', + $gte: '>=', + '<=': '<=', + $lte: '<=', + $like: 'LIKE', + $nlike: 'NOT LIKE', + $in: 'IN', + $nin: 'NOT IN', + $includes: 'INCLUDES', + $excludes: 'EXCLUDES', + $exists: 'EXISTS', + }; + function lut(e, t) { + let r = '$eq', + n = t; + if ((0, Jw.default)(t)) r = '$in'; + else if (typeof t == 'object' && t !== null) { + for (let s of (0, RA.default)(t)) + if (s[0] === '$') { + (r = s), (n = t[s]); + break; + } + } + let a = sut[r]; + if (!a || typeof n > 'u') return null; + let o = qde(n); + if (typeof o > 'u') return null; + switch (a) { + case 'NOT LIKE': + return `(${['NOT', e, 'LIKE', o].join(' ')})`; + case 'EXISTS': + return [e, n ? '!=' : '=', 'null'].join(' '); + default: + return [e, a, o].join(' '); + } + } + function uut(e = []) { + let t = []; + if (typeof e == 'string') { + var r; + if (/,|\s+(asc|desc)\s*$/.test(e)) return e; + t = (0, _s.default)((r = e.split(/\s+/))).call(r, (a) => { + let o = 'ASC', + s = a[0]; + return s === '-' ? ((o = 'DESC'), (a = a.substring(1))) : s === '+' && (a = a.substring(1)), [a, o]; + }); + } else if ((0, Jw.default)(e)) t = e; + else { + var n; + t = (0, _s.default)((n = (0, rut.default)(e))).call(n, ([a, o]) => [a, o]); + } + return (0, _s.default)(t) + .call(t, ([a, o]) => { + switch (String(o)) { + case 'DESC': + case 'desc': + case 'descending': + case '-': + case '-1': + o = 'DESC'; + break; + default: + o = 'ASC'; + } + return `${a} ${o}`; + }) + .join(', '); + } + function Fde(e = {}, t = 'AND', r = 0) { + var n; + if (typeof e == 'string') return e; + let a = []; + if ((0, Jw.default)(e)) + a = (0, _s.default)(e).call(e, (u) => { + var p; + let c = (0, _s.default)((p = (0, RA.default)(u))).call(p, (f) => ({ key: f, value: u[f] })); + return c.length > 1 ? { key: '$and', value: (0, _s.default)(c).call(c, (f) => ({ [f.key]: f.value })) } : c[0]; + }); + else { + var o; + let u = e; + a = (0, _s.default)((o = (0, RA.default)(u))).call(o, (p) => ({ key: p, value: u[p] })); + } + let s = (0, tut.default)( + (n = (0, _s.default)(a).call(a, (u) => { + let p = r + 1, + c; + switch (u.key) { + case '$or': + case '$and': + case '$not': + return ( + t !== 'NOT' && a.length === 1 && (p = r), + (c = u.key === '$or' ? 'OR' : u.key === '$and' ? 'AND' : 'NOT'), + Fde(u.value, c, p) + ); + default: + return lut(u.key, u.value); + } + })) + ).call(n, (u) => u), + l; + return t === 'NOT' + ? ((l = r > 0), `${l ? '(' : ''}NOT ${s[0]}${l ? ')' : ''}`) + : ((l = r > 0 && s.length > 1), (l ? '(' : '') + s.join(` ${t} `) + (l ? ')' : '')); + } + function Lde(e) { + let t = ['SELECT ', out(e.fields, (0, eut.default)(e)), ' FROM ', e.table].join(''), + r = Fde(e.conditions); + r && (t += ` WHERE ${r}`); + let n = uut((0, Zlt.default)(e)); + return ( + n && (t += ` ORDER BY ${n}`), e.limit && (t += ` LIMIT ${e.limit}`), e.offset && (t += ` OFFSET ${e.offset}`), t + ); + } +}); +var e3 = d((ws) => { + 'use strict'; + var put = Pl(), + Ua = Ce(), + Kde = ge(), + cut = Ur(), + Ude = $r(), + $de = Bt(), + Xde = Br(), + dut = Qt(), + Bde = Vr(), + fut = Ve(); + kr(); + bA(); + Zt(); + Kde(ws, '__esModule', { value: !0 }); + ws.default = ws.SubQuery = ws.Query = ws.ResponseTargets = void 0; + var mut = Ua(U_()), + hut = Ua(hv()), + gut = Ua(Ve()), + vut = Ua(O_()), + Ma = Ua(jn()), + yut = Ua(Da()), + uh = Ua(cn()), + Vde = Ua(Ro()), + but = Ua(zw()), + Nv = Ua(OA()), + Tt = Ua(Ye()), + Dv = Ua(Hw()), + _ut = require('events'), + wut = Xm(), + Yw = put(Ww()), + Sut = Mde(); + function zde(e, t) { + var r = fut(e); + if (Bde) { + var n = Bde(e); + t && + (n = dut(n).call(n, function (a) { + return Xde(e, a).enumerable; + })), + r.push.apply(r, n); + } + return r; + } + function nd(e) { + for (var t = 1; t < arguments.length; t++) { + var r = arguments[t] != null ? arguments[t] : {}; + if (t % 2) { + var n; + $de((n = zde(Object(r), !0))).call(n, function (o) { + (0, Tt.default)(e, o, r[o]); + }); + } else if (Ude) cut(e, Ude(r)); + else { + var a; + $de((a = zde(Object(r)))).call(a, function (o) { + Kde(e, o, Xde(r, o)); + }); + } + } + return e; + } + var Hde = ['QueryResult', 'Records', 'SingleRecord', 'Count'], + Qw = (0, Dv.default)(Hde).call(Hde, (e, t) => nd(nd({}, e), {}, { [t]: t }), {}); + ws.ResponseTargets = Qw; + var Gde = 200, + Wde = 1, + ph = class e extends _ut.EventEmitter { + constructor(t, r, n) { + if ( + (super(), + (0, Tt.default)(this, '_conn', void 0), + (0, Tt.default)(this, '_logger', void 0), + (0, Tt.default)(this, '_soql', void 0), + (0, Tt.default)(this, '_locator', void 0), + (0, Tt.default)(this, '_config', {}), + (0, Tt.default)(this, '_children', []), + (0, Tt.default)(this, '_options', void 0), + (0, Tt.default)(this, '_executed', !1), + (0, Tt.default)(this, '_finished', !1), + (0, Tt.default)(this, '_chaining', !1), + (0, Tt.default)(this, '_promise', void 0), + (0, Tt.default)(this, '_stream', void 0), + (0, Tt.default)(this, 'totalSize', 0), + (0, Tt.default)(this, 'totalFetched', 0), + (0, Tt.default)(this, 'records', []), + (0, Tt.default)(this, 'offset', this.skip), + (0, Tt.default)(this, 'orderby', (0, Nv.default)(this)), + (0, Tt.default)(this, 'exec', this.execute), + (0, Tt.default)(this, 'run', this.execute), + (0, Tt.default)(this, 'delete', this.destroy), + (0, Tt.default)(this, 'del', this.destroy), + (this._conn = t), + (this._logger = t._logLevel ? e._logger.createInstance(t._logLevel) : e._logger), + typeof r == 'string') + ) + (this._soql = r), this._logger.debug(`config is soql: ${r}`); + else if (typeof r.locator == 'string') { + let o = r.locator; + this._logger.debug(`config is locator: ${o}`), + (this._locator = (0, but.default)(o).call(o, '/') ? this.urlToLocator(o) : o); + } else { + this._logger.debug(`config is QueryConfig: ${r}`); + let o = r, + { fields: s, includes: l, sort: u } = o, + p = (0, Vde.default)(o, ['fields', 'includes', 'sort']); + if (((this._config = p), this.select(s), l && this.includeChildren(l), u)) { + var a; + (0, Nv.default)((a = this)).call(a, u); + } + } + (this._options = nd( + { headers: {}, maxFetch: 1e4, autoFetch: !1, scanAll: !1, responseTarget: 'QueryResult' }, + n || {} + )), + (this._promise = new uh.default((o, s) => { + this.on('response', o), this.on('error', s); + })), + (this._stream = new Yw.Serializable()), + this.on('record', (o) => this._stream.push(o)), + this.on('end', () => this._stream.push(null)), + this.on('error', (o) => { + try { + this._stream.emit('error', o); + } catch {} + }); + } + select(t = '*') { + if (this._soql) throw Error('Cannot set select fields for the query which has already built SOQL.'); + function r(n) { + var a, o, s, l; + return typeof n == 'string' + ? n.split(/\s*,\s*/) + : (0, yut.default)(n) + ? (0, Dv.default)((a = (0, Ma.default)((o = n)).call(o, r))).call(a, (u, p) => [...u, ...p], []) + : (0, Dv.default)( + (s = (0, Ma.default)((l = (0, vut.default)(n))).call(l, ([u, p]) => { + if (typeof p == 'number' || typeof p == 'boolean') return p ? [u] : []; + var c; + return (0, Ma.default)((c = r(p))).call(c, (f) => `${u}.${f}`); + })) + ).call(s, (u, p) => [...u, ...p], []); + } + return t && (this._config.fields = r(t)), this; + } + where(t) { + if (this._soql) throw Error('Cannot set where conditions for the query which has already built SOQL.'); + return (this._config.conditions = t), this; + } + limit(t) { + if (this._soql) throw Error('Cannot set limit for the query which has already built SOQL.'); + return (this._config.limit = t), this; + } + skip(t) { + if (this._soql) throw Error('Cannot set skip/offset for the query which has already built SOQL.'); + return (this._config.offset = t), this; + } + sort(t, r) { + if (this._soql) throw Error('Cannot set sort for the query which has already built SOQL.'); + return typeof t == 'string' && typeof r < 'u' ? (this._config.sort = [[t, r]]) : (this._config.sort = t), this; + } + include(t, r, n, a = {}) { + if (this._soql) throw Error('Cannot include child relationship into the query which has already built SOQL.'); + let o = { + fields: n === null ? void 0 : n, + table: t, + conditions: r === null ? void 0 : r, + limit: a.limit, + offset: a.offset, + sort: (0, Nv.default)(a), + }, + s = new Zw(this._conn, t, o, this); + return this._children.push(s), s; + } + includeChildren(t) { + if (this._soql) throw Error('Cannot include child relationship into the query which has already built SOQL.'); + for (let r of (0, gut.default)(t)) { + let n = t[r], + { conditions: a, fields: o } = n, + s = (0, Vde.default)(n, ['conditions', 'fields']); + this.include(r, a, o, s); + } + return this; + } + maxFetch(t) { + return (this._options.maxFetch = t), this; + } + autoFetch(t) { + return (this._options.autoFetch = t), this; + } + scanAll(t) { + return (this._options.scanAll = t), this; + } + setResponseTarget(t) { + return t in Qw && (this._options.responseTarget = t), this; + } + execute(t = {}) { + if (this._executed) throw new Error('re-executing already executed query'); + if (this._finished) throw new Error('executing already closed query'); + let r = { + headers: t.headers || this._options.headers, + responseTarget: t.responseTarget || this._options.responseTarget, + autoFetch: t.autoFetch || this._options.autoFetch, + maxFetch: t.maxFetch || this._options.maxFetch, + scanAll: t.scanAll || this._options.scanAll, + }; + return ( + this.once('fetch', () => { + if (r.responseTarget === Qw.Records && this._chaining) { + this._logger.debug('--- collecting all fetched records ---'); + let n = [], + a = (o) => n.push(o); + this.on('record', a), + this.once('end', () => { + this.removeListener('record', a), this.emit('response', n, this); + }); + } + }), + (this._executed = !0), + (async () => { + this._logger.debug('>>> Query start >>>'); + try { + await this._execute(r), this._logger.debug('*** Query finished ***'); + } catch (n) { + this._logger.debug('--- Query error ---', n), this.emit('error', n); + } + })(), + this + ); + } + locatorToUrl() { + return this._locator ? [this._conn._baseUrl(), '/query/', this._locator].join('') : ''; + } + urlToLocator(t) { + return t.split('/').pop(); + } + constructResponse(t, r) { + var n, a; + switch (r) { + case 'Count': + return this.totalSize; + case 'SingleRecord': + return (n = (a = this.records) === null || a === void 0 ? void 0 : a[0]) !== null && n !== void 0 + ? n + : null; + case 'Records': + return this.records; + default: + return nd( + nd({}, { records: this.records, totalSize: this.totalSize, done: t ?? !0 }), + this._locator ? { nextRecordsUrl: this.locatorToUrl() } : {} + ); + } + } + async _execute(t) { + var r, n, a, o; + let { headers: s, responseTarget: l, autoFetch: u, maxFetch: p, scanAll: c } = t; + this._logger.debug('execute with options', t); + let f; + if (this._locator) f = this.locatorToUrl(); + else { + let y = await this.toSOQL(); + this._logger.debug(`SOQL = ${y}`), + (f = [this._conn._baseUrl(), '/', c ? 'queryAll' : 'query', '?q=', encodeURIComponent(y)].join('')); + } + let h = await this._conn.request({ method: 'GET', url: f, headers: s }); + this.emit('fetch'), + (this.totalSize = h.totalSize), + (this.records = + (r = this.records) === null || r === void 0 + ? void 0 + : (0, hut.default)(r).call( + r, + p - this.records.length > h.records.length + ? h.records + : (0, mut.default)((n = h.records)).call(n, 0, p - this.records.length) + )), + (this._locator = h.nextRecordsUrl ? this.urlToLocator(h.nextRecordsUrl) : void 0), + (this._finished = this._finished || h.done || !u || (h.records.length === 0 && h.done === void 0)); + let m = (a = (o = h.records) === null || o === void 0 ? void 0 : o.length) !== null && a !== void 0 ? a : 0, + v = this.totalFetched; + for (let y = 0; y < m; y++) { + if (v >= p) { + this._finished = !0; + break; + } + let S = h.records[y]; + this.emit('record', S, v, this), (v += 1); + } + if (((this.totalFetched = v), this._finished)) { + let y = this.constructResponse(h.done, l); + return l !== Qw.Records && this.emit('response', y, this), this.emit('end'), y; + } else return this._execute(t); + } + stream(t = 'csv') { + return ( + !this._finished && !this._executed && this.execute({ autoFetch: !0 }), + t === 'record' ? this._stream : this._stream.stream(t) + ); + } + pipe(t) { + return this.stream('record').pipe(t); + } + async _expandFields(t) { + var r, n, a; + if (this._soql) throw new Error('Cannot expand fields for the query which has already built SOQL.'); + let { fields: o = [], table: s = '' } = this._config, + l = t || s; + this._logger.debug(`_expandFields: sobject = ${l}, fields = ${o.join(', ')}`); + let [u] = await uh.default.all([ + this._expandAsteriskFields(l, o), + ...(0, Ma.default)((r = this._children)).call(r, async (p) => (await p._expandFields(), [])), + ]); + (this._config.fields = u), + (this._config.includes = (0, Dv.default)( + (n = (0, Ma.default)((a = this._children)).call(a, (p) => { + let c = p._query._config; + return [c.table, c]; + })) + ).call(n, (p, [c, f]) => nd(nd({}, p), {}, { [c]: f }), {})); + } + async _findRelationObject(t) { + let r = this._config.table; + if (!r) throw new Error('No table information provided in the query'); + this._logger.debug(`finding table for relation "${t}" in "${r}"...`); + let n = await this._conn.describe$(r), + a = t.toUpperCase(); + for (let o of n.childRelationships) + if ((o.relationshipName || '').toUpperCase() === a && o.childSObject) return o.childSObject; + throw new Error(`No child relationship found: ${t}`); + } + async _expandAsteriskFields(t, r) { + let n = await uh.default.all((0, Ma.default)(r).call(r, async (a) => this._expandAsteriskField(t, a))); + return (0, Dv.default)(n).call(n, (a, o) => [...a, ...o], []); + } + async _expandAsteriskField(t, r) { + this._logger.debug(`expanding field "${r}" in "${t}"...`); + let n = r.split('.'); + if (n[n.length - 1] === '*') { + var a; + let o = await this._conn.describe$(t); + if ((this._logger.debug(`table ${t} has been described`), n.length > 1)) { + let s = n.shift(); + for (let l of o.fields) + if (l.relationshipName && s && l.relationshipName.toUpperCase() === s.toUpperCase()) { + let p = l.referenceTo || [], + c = p.length === 1 ? p[0] : 'Name', + f = await this._expandAsteriskField(c, n.join('.')); + return (0, Ma.default)(f).call(f, (h) => `${s}.${h}`); + } + return []; + } + return (0, Ma.default)((a = o.fields)).call(a, (s) => s.name); + } + return [r]; + } + async explain() { + let t = await this.toSOQL(); + this._logger.debug(`SOQL = ${t}`); + let r = `/query/?explain=${encodeURIComponent(t)}`; + return this._conn.request(r); + } + async toSOQL() { + return this._soql ? this._soql : (await this._expandFields(), (0, Sut.createSOQL)(this._config)); + } + then(t, r) { + if (((this._chaining = !0), !this._finished && !this._executed && this.execute(), !this._promise)) + throw new Error('invalid state: promise is not set after query execution'); + return this._promise.then(t, r); + } + catch(t) { + return this.then(null, t); + } + promise() { + return uh.default.resolve(this); + } + destroy(t, r) { + var n; + typeof t == 'object' && t !== null && ((r = t), (t = void 0)), (r = r || {}); + let a = t || this._config.table; + if (!a) throw new Error('SOQL based query needs SObject type information to bulk delete.'); + let o = + r.allowBulk === !1 + ? -1 + : typeof r.bulkThreshold == 'number' + ? r.bulkThreshold + : this._conn._ensureVersion(42) + ? Gde + : this._conn._maxRequest / 2, + s = (n = r.bulkApiVersion) !== null && n !== void 0 ? n : Wde; + return new uh.default((l, u) => { + let p = () => this._conn.sobject(a).deleteBulk().on('response', l).on('error', u), + c = [], + f = null, + h = (v) => { + if (!v.Id) { + let S = new Error('Queried record does not include Salesforce record ID.'); + this.emit('error', S); + return; + } + let y = { Id: v.Id }; + if (f) f.write(y); + else if ((c.push(y), o >= 0 && c.length > o && s === 1)) { + f = p(); + for (let S of c) f.write(S); + c = []; + } + }, + m = () => { + if (f) f.end(); + else { + let v = (0, Ma.default)(c).call(c, (y) => y.Id); + c.length > o && s === 2 + ? this._conn.bulk2 + .loadAndWaitForResults({ object: a, operation: 'delete', input: c }) + .then((y) => l(this.mapBulkV2ResultsToSaveResults(y)), u) + : this._conn.sobject(a).destroy(v, { allowRecursive: !0 }).then(l, u); + } + }; + this.stream('record').on('data', h).on('end', m).on('error', u); + }); + } + update(t, r, n) { + var a; + typeof r == 'object' && r !== null && ((n = r), (r = void 0)), (n = n || {}); + let o = r || (this._config && this._config.table); + if (!o) throw new Error('SOQL based query needs SObject type information to bulk update.'); + let s = + typeof t == 'function' ? (0, Ma.default)(Yw.default).call(Yw.default, t) : Yw.default.recordMapStream(t), + l = + n.allowBulk === !1 + ? -1 + : typeof n.bulkThreshold == 'number' + ? n.bulkThreshold + : this._conn._ensureVersion(42) + ? Gde + : this._conn._maxRequest / 2, + u = (a = n.bulkApiVersion) !== null && a !== void 0 ? a : Wde; + return new uh.default((p, c) => { + let f = () => this._conn.sobject(o).updateBulk().on('response', p).on('error', c), + h = [], + m = null, + v = (S) => { + if ((m ? m.write(S) : h.push(S), l >= 0 && h.length > l && u === 1)) { + m = f(); + for (let w of h) m.write(w); + h = []; + } + }, + y = () => { + m + ? m.end() + : h.length > l && u === 2 + ? this._conn.bulk2 + .loadAndWaitForResults({ object: o, operation: 'update', input: h }) + .then((S) => p(this.mapBulkV2ResultsToSaveResults(S)), c) + : this._conn.sobject(o).update(h, { allowRecursive: !0 }).then(p, c); + }; + this.stream('record').on('error', c).pipe(s).on('data', v).on('end', y).on('error', c); + }); + } + mapBulkV2ResultsToSaveResults(t) { + var r, n; + let a = (0, Ma.default)((r = t.successfulResults)).call(r, (s) => ({ id: s.sf__Id, success: !0, errors: [] })), + o = (0, Ma.default)((n = t.failedResults)).call(n, (s) => ({ + success: !1, + errors: [{ errorCode: s.sf__Error, message: s.sf__Error }], + })); + return [...a, ...o]; + } + }; + ws.Query = ph; + (0, Tt.default)(ph, '_logger', (0, wut.getLogger)('query')); + var Zw = class { + constructor(t, r, n, a) { + (0, Tt.default)(this, '_relName', void 0), + (0, Tt.default)(this, '_query', void 0), + (0, Tt.default)(this, '_parent', void 0), + (0, Tt.default)(this, 'offset', this.skip), + (0, Tt.default)(this, 'orderby', (0, Nv.default)(this)), + (this._relName = r), + (this._query = new ph(t, n)), + (this._parent = a); + } + select(t) { + return (this._query = this._query.select(t)), this; + } + where(t) { + return (this._query = this._query.where(t)), this; + } + limit(t) { + return (this._query = this._query.limit(t)), this; + } + skip(t) { + return (this._query = this._query.skip(t)), this; + } + sort(t, r) { + var n; + return (this._query = (0, Nv.default)((n = this._query)).call(n, t, r)), this; + } + async _expandFields() { + let t = await this._parent._findRelationObject(this._relName); + return this._query._expandFields(t); + } + end() { + return this._parent; + } + }; + ws.SubQuery = Zw; + var Eut = ph; + ws.default = Eut; +}); +var Yde = d(() => { + 'use strict'; + var xut = ve(), + Out = zu().find, + Tut = Y6(), + DA = 'find', + Jde = !0; + DA in [] && + Array(1)[DA](function () { + Jde = !1; + }); + xut( + { target: 'Array', proto: !0, forced: Jde }, + { + find: function (t) { + return Out(this, t, arguments.length > 1 ? arguments[1] : void 0); + }, + } + ); + Tut(DA); +}); +var Zde = d((BKt, Qde) => { + Yde(); + var Cut = pn(); + Qde.exports = Cut('Array').find; +}); +var tfe = d((VKt, efe) => { + var kut = ei(), + Aut = Zde(), + NA = Array.prototype; + efe.exports = function (e) { + var t = e.find; + return e === NA || (kut(NA, e) && t === NA.find) ? Aut : t; + }; +}); +var ife = d((zKt, rfe) => { + var Iut = tfe(); + rfe.exports = Iut; +}); +var afe = d((HKt, nfe) => { + nfe.exports = ife(); +}); +var qA = d((dh) => { + 'use strict'; + var Put = Ce(), + cfe = ge(), + Rut = Ur(), + ofe = $r(), + sfe = Bt(), + dfe = Br(), + jut = Qt(), + lfe = Vr(), + Dut = Ve(); + Zt(); + cfe(dh, '__esModule', { value: !0 }); + dh.default = dh.RecordReference = void 0; + var ch = Put(Ye()); + function ufe(e, t) { + var r = Dut(e); + if (lfe) { + var n = lfe(e); + t && + (n = jut(n).call(n, function (a) { + return dfe(e, a).enumerable; + })), + r.push.apply(r, n); + } + return r; + } + function pfe(e) { + for (var t = 1; t < arguments.length; t++) { + var r = arguments[t] != null ? arguments[t] : {}; + if (t % 2) { + var n; + sfe((n = ufe(Object(r), !0))).call(n, function (o) { + (0, ch.default)(e, o, r[o]); + }); + } else if (ofe) Rut(e, ofe(r)); + else { + var a; + sfe((a = ufe(Object(r)))).call(a, function (o) { + cfe(e, o, dfe(r, o)); + }); + } + } + return e; + } + var t3 = class { + constructor(t, r, n) { + (0, ch.default)(this, 'type', void 0), + (0, ch.default)(this, 'id', void 0), + (0, ch.default)(this, '_conn', void 0), + (0, ch.default)(this, 'delete', this.destroy), + (0, ch.default)(this, 'del', this.destroy), + (this._conn = t), + (this.type = r), + (this.id = n); + } + async retrieve(t) { + return await this._conn.retrieve(this.type, this.id, t); + } + async update(t, r) { + let n = pfe(pfe({}, t), {}, { Id: this.id }); + return this._conn.update(this.type, n, r); + } + destroy(t) { + return this._conn.destroy(this.type, this.id, t); + } + blob(t) { + let r = [this._conn._baseUrl(), 'sobjects', this.type, this.id, t].join('/'); + return this._conn.request(r).stream(); + } + }; + dh.RecordReference = t3; + var Nut = t3; + dh.default = Nut; +}); +var i3 = d((fh) => { + 'use strict'; + var qut = Ce(), + Fut = ge(); + Zt(); + Fut(fh, '__esModule', { value: !0 }); + fh.default = fh.QuickAction = void 0; + var ffe = qut(Ye()), + r3 = class { + constructor(t, r) { + (0, ffe.default)(this, '_conn', void 0), + (0, ffe.default)(this, '_path', void 0), + (this._conn = t), + (this._path = r); + } + async describe() { + let t = `${this._path}/describe`; + return await this._conn.request(t); + } + async defaultValues(t) { + let r = `${this._path}/defaultValues`; + return t && (r += `/${t}`), await this._conn.request(r); + } + async execute(t, r) { + let n = { contextId: t, record: r }; + return await this._conn.requestPost(this._path, n); + } + }; + fh.QuickAction = r3; + var Lut = r3; + fh.default = Lut; +}); +var MA = d((mh) => { + 'use strict'; + var Mut = Pl(), + hh = Ce(), + bfe = ge(), + Uut = Ur(), + mfe = $r(), + hfe = Bt(), + _fe = Br(), + $ut = Qt(), + gfe = Vr(), + But = Ve(); + bA(); + Zt(); + bfe(mh, '__esModule', { value: !0 }); + mh.default = mh.SObject = void 0; + var FA = hh(afe()), + Vut = hh(zw()), + zut = hh(Ro()), + zr = hh(Ye()), + Hut = Xm(), + Gut = hh(qA()), + n3 = Mut(e3()), + Wut = hh(i3()); + function vfe(e, t) { + var r = But(e); + if (gfe) { + var n = gfe(e); + t && + (n = $ut(n).call(n, function (a) { + return _fe(e, a).enumerable; + })), + r.push.apply(r, n); + } + return r; + } + function yfe(e) { + for (var t = 1; t < arguments.length; t++) { + var r = arguments[t] != null ? arguments[t] : {}; + if (t % 2) { + var n; + hfe((n = vfe(Object(r), !0))).call(n, function (o) { + (0, zr.default)(e, o, r[o]); + }); + } else if (mfe) Uut(e, mfe(r)); + else { + var a; + hfe((a = vfe(Object(r)))).call(a, function (o) { + bfe(e, o, _fe(r, o)); + }); + } + } + return e; + } + var qv = class e { + constructor(t, r) { + (0, zr.default)(this, 'type', void 0), + (0, zr.default)(this, '_conn', void 0), + (0, zr.default)(this, '_logger', void 0), + (0, zr.default)(this, 'layouts$', void 0), + (0, zr.default)(this, 'layouts$$', void 0), + (0, zr.default)(this, 'compactLayouts$', void 0), + (0, zr.default)(this, 'compactLayouts$$', void 0), + (0, zr.default)(this, 'approvalLayouts$', void 0), + (0, zr.default)(this, 'approvalLayouts$$', void 0), + (0, zr.default)(this, 'insert', this.create), + (0, zr.default)(this, 'delete', this.destroy), + (0, zr.default)(this, 'del', this.destroy), + (0, zr.default)(this, 'insertBulk', this.createBulk), + (0, zr.default)(this, 'deleteBulk', this.destroyBulk), + (0, zr.default)(this, 'deleteHardBulk', this.destroyHardBulk), + (this.type = r), + (this._conn = t), + (this._logger = t._logLevel ? e._logger.createInstance(t._logLevel) : e._logger); + let n = this._conn.cache, + a = (c) => (c ? `layouts.namedLayouts.${c}` : `layouts.${this.type}`), + o = e.prototype.layouts; + (this.layouts = n.createCachedFunction(o, this, { key: a, strategy: 'NOCACHE' })), + (this.layouts$ = n.createCachedFunction(o, this, { key: a, strategy: 'HIT' })), + (this.layouts$$ = n.createCachedFunction(o, this, { key: a, strategy: 'IMMEDIATE' })); + let s = `compactLayouts.${this.type}`, + l = e.prototype.compactLayouts; + (this.compactLayouts = n.createCachedFunction(l, this, { key: s, strategy: 'NOCACHE' })), + (this.compactLayouts$ = n.createCachedFunction(l, this, { key: s, strategy: 'HIT' })), + (this.compactLayouts$$ = n.createCachedFunction(l, this, { key: s, strategy: 'IMMEDIATE' })); + let u = `approvalLayouts.${this.type}`, + p = e.prototype.approvalLayouts; + (this.approvalLayouts = n.createCachedFunction(p, this, { key: u, strategy: 'NOCACHE' })), + (this.approvalLayouts$ = n.createCachedFunction(p, this, { key: u, strategy: 'HIT' })), + (this.approvalLayouts$$ = n.createCachedFunction(p, this, { key: u, strategy: 'IMMEDIATE' })); + } + create(t, r) { + return this._conn.create(this.type, t, r); + } + retrieve(t, r) { + return this._conn.retrieve(this.type, t, r); + } + update(t, r) { + return this._conn.update(this.type, t, r); + } + upsert(t, r, n) { + return this._conn.upsert(this.type, t, r, n); + } + destroy(t, r) { + return this._conn.destroy(this.type, t, r); + } + bulkload(t, r, n) { + return this._conn.bulk.load(this.type, t, r, n); + } + createBulk(t) { + return this.bulkload('insert', t); + } + updateBulk(t) { + return this.bulkload('update', t); + } + upsertBulk(t, r) { + return this.bulkload('upsert', { extIdField: r }, t); + } + destroyBulk(t) { + return this.bulkload('delete', t); + } + destroyHardBulk(t) { + return this.bulkload('hardDelete', t); + } + describe() { + return this._conn.describe(this.type); + } + describe$() { + return this._conn.describe$(this.type); + } + describe$$() { + return this._conn.describe$$(this.type); + } + record(t) { + return new Gut.default(this._conn, this.type, t); + } + recent() { + return this._conn.recent(this.type); + } + updated(t, r) { + return this._conn.updated(this.type, t, r); + } + deleted(t, r) { + return this._conn.deleted(this.type, t, r); + } + async layouts(t) { + let r = `/sobjects/${this.type}/describe/${t ? `namedLayouts/${t}` : 'layouts'}`; + return await this._conn.request(r); + } + async compactLayouts() { + let t = `/sobjects/${this.type}/describe/compactLayouts`; + return await this._conn.request(t); + } + async approvalLayouts() { + let t = `/sobjects/${this.type}/describe/approvalLayouts`; + return await this._conn.request(t); + } + find(t, r, n = {}) { + let { sort: a, limit: o, offset: s } = n, + l = (0, zut.default)(n, ['sort', 'limit', 'offset']), + u = { + fields: r ?? void 0, + includes: (0, Vut.default)(n), + table: this.type, + conditions: t ?? void 0, + sort: a, + limit: o, + offset: s, + }; + return new n3.default(this._conn, u, l).setResponseTarget(n3.ResponseTargets.Records); + } + findOne(t, r, n = {}) { + var a; + return (0, FA.default)((a = this)) + .call(a, t, r, yfe(yfe({}, n), {}, { limit: 1 })) + .setResponseTarget(n3.ResponseTargets.SingleRecord); + } + select(t) { + var r; + return (0, FA.default)((r = this)).call(r, null, t); + } + count(t) { + var r; + return (0, FA.default)((r = this)) + .call(r, t, 'count()') + .setResponseTarget(n3.ResponseTargets.Count); + } + listviews() { + let t = `${this._conn._baseUrl()}/sobjects/${this.type}/listviews`; + return this._conn.request(t); + } + listview(t) { + return new LA(this._conn, this.type, t); + } + quickActions() { + return this._conn.request(`/sobjects/${this.type}/quickActions`); + } + quickAction(t) { + return new Wut.default(this._conn, `/sobjects/${this.type}/quickActions/${t}`); + } + }; + mh.SObject = qv; + (0, zr.default)(qv, '_logger', (0, Hut.getLogger)('sobject')); + var LA = class { + constructor(t, r, n) { + (0, zr.default)(this, '_conn', void 0), + (0, zr.default)(this, 'type', void 0), + (0, zr.default)(this, 'id', void 0), + (this._conn = t), + (this.type = r), + (this.id = n); + } + results() { + let t = `${this._conn._baseUrl()}/sobjects/${this.type}/listviews/${this.id}/results`; + return this._conn.request(t); + } + describe(t = {}) { + let r = `${this._conn._baseUrl()}/sobjects/${this.type}/listviews/${this.id}/describe`; + return this._conn.request({ method: 'GET', url: r, headers: t.headers }); + } + explain() { + let t = `/query/?explain=${this.id}`; + return this._conn.request(t); + } + }, + Kut = qv; + mh.default = Kut; +}); +var kfe = d((Ss) => { + 'use strict'; + var l3 = Ce(), + Ofe = ge(), + Xut = Ur(), + wfe = $r(), + Sfe = Bt(), + Tfe = Br(), + Jut = Qt(), + Efe = Vr(), + Yut = Ve(); + Zt(); + Ofe(Ss, '__esModule', { value: !0 }); + Ss.default = Ss.Process = Ss.ApprovalProcess = Ss.ProcessRule = void 0; + var Qut = l3(jn()), + Cfe = l3(sa()), + Zut = l3(Da()), + fp = l3(Ye()); + function xfe(e, t) { + var r = Yut(e); + if (Efe) { + var n = Efe(e); + t && + (n = Jut(n).call(n, function (a) { + return Tfe(e, a).enumerable; + })), + r.push.apply(r, n); + } + return r; + } + function ept(e) { + for (var t = 1; t < arguments.length; t++) { + var r = arguments[t] != null ? arguments[t] : {}; + if (t % 2) { + var n; + Sfe((n = xfe(Object(r), !0))).call(n, function (o) { + (0, fp.default)(e, o, r[o]); + }); + } else if (wfe) Xut(e, wfe(r)); + else { + var a; + Sfe((a = xfe(Object(r)))).call(a, function (o) { + Ofe(e, o, Tfe(r, o)); + }); + } + } + return e; + } + var a3 = class { + constructor(t) { + (0, fp.default)(this, '_conn', void 0), (this._conn = t); + } + async list() { + return (await this._conn.request('/process/rules')).rules; + } + trigger(t) { + let r = (0, Zut.default)(t) ? t : [t]; + return this._conn.request({ + method: 'POST', + url: '/process/rules/', + body: (0, Cfe.default)({ contextIds: r }), + headers: { 'content-type': 'application/json' }, + }); + } + }; + Ss.ProcessRule = a3; + var o3 = class { + constructor(t) { + (0, fp.default)(this, '_conn', void 0), (this._conn = t); + } + async list() { + return (await this._conn.request('/process/approvals')).approvals; + } + request(t) { + let r = (0, Qut.default)(t).call(t, (n) => ('_request' in n ? n._request : n)); + return this._conn.request({ + method: 'POST', + url: '/process/approvals', + headers: { 'content-type': 'application/json' }, + body: (0, Cfe.default)({ requests: r }), + }); + } + _createRequest(t, r, n, a = {}) { + return new UA(this, ept({ actionType: t, contextId: r, comments: n }, a)); + } + submit(t, r, n) { + return this._createRequest('Submit', t, r, n); + } + approve(t, r, n = {}) { + return this._createRequest('Approve', t, r, n); + } + reject(t, r, n = {}) { + return this._createRequest('Reject', t, r, n); + } + }; + Ss.ApprovalProcess = o3; + var UA = class { + constructor(t, r) { + (0, fp.default)(this, '_process', void 0), + (0, fp.default)(this, '_request', void 0), + (0, fp.default)(this, '_promise', void 0), + (this._process = t), + (this._request = r); + } + then(t, r) { + this._promise || (this._promise = this._process.request([this]).then((n) => n[0])), this._promise.then(t, r); + } + }, + s3 = class { + constructor(t) { + (0, fp.default)(this, 'rule', void 0), + (0, fp.default)(this, 'approval', void 0), + (this.rule = new a3(t)), + (this.approval = new o3(t)); + } + }; + Ss.Process = s3; + var tpt = s3; + Ss.default = tpt; +}); +var od = d((vh) => { + 'use strict'; + var rpt = Pl(), + Pr = Ce(), + ipt = HY(), + Ffe = ge(), + npt = Ur(), + Afe = $r(), + Ife = Bt(), + Lfe = Br(), + apt = Qt(), + Pfe = Vr(), + opt = Ve(); + kr(); + Zt(); + Vc(); + Ffe(vh, '__esModule', { value: !0 }); + vh.default = vh.Connection = void 0; + var spt = Pr(O_()), + lpt = Pr(Bt()), + Fv = Pr(Ro()), + Hl = Pr(jn()), + gh = Pr(Da()), + Rfe = Pr(Xu()), + Es = Pr(sa()), + $A = Pr(Tm()), + ad = Pr(cn()), + yt = Pr(Ye()), + xs = Pr(U_()), + upt = require('events'), + ppt = Pr($a()), + Lv = rpt(_v()), + cpt = Xm(), + jfe = Pr(Ym()), + dpt = Pr(Jk()), + fpt = Pr(Rv()), + Dfe = Pr(Dpe()), + Nfe = Pr(e3()), + mpt = Pr(MA()), + hpt = Pr(i3()), + gpt = Pr(kfe()), + u3 = PA(), + vpt = Pr(yv()); + function ypt(e) { + var t = bpt(e, 'string'); + return typeof t == 'symbol' ? t : String(t); + } + function bpt(e, t) { + if (typeof e != 'object' || e === null) return e; + var r = e[ipt]; + if (r !== void 0) { + var n = r.call(e, t || 'default'); + if (typeof n != 'object') return n; + throw new TypeError('@@toPrimitive must return a primitive value.'); + } + return (t === 'string' ? String : Number)(e); + } + function qfe(e, t) { + var r = opt(e); + if (Pfe) { + var n = Pfe(e); + t && + (n = apt(n).call(n, function (a) { + return Lfe(e, a).enumerable; + })), + r.push.apply(r, n); + } + return r; + } + function Ai(e) { + for (var t = 1; t < arguments.length; t++) { + var r = arguments[t] != null ? arguments[t] : {}; + if (t % 2) { + var n; + Ife((n = qfe(Object(r), !0))).call(n, function (o) { + (0, yt.default)(e, o, r[o]); + }); + } else if (Afe) npt(e, Afe(r)); + else { + var a; + Ife((a = qfe(Object(r)))).call(a, function (o) { + Ffe(e, o, Lfe(r, o)); + }); + } + } + return e; + } + var Mv = { + loginUrl: 'https://login.salesforce.com', + instanceUrl: '', + version: '50.0', + logLevel: 'NONE', + maxRequest: 10, + }; + function BA(e) { + return String(e || '') + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + } + function _pt(e) { + if (typeof e == 'string') { + if (e[0] === '{') return JSON.parse(e); + let t = e.split('.').pop(); + if (!t) throw new Error('Invalid signed request'); + let r = Buffer.from(t, 'base64').toString('utf-8'); + return JSON.parse(r); + } + return e; + } + function VA(e) { + var t; + let [r, n] = (0, xs.default)((t = e.split('/'))).call(t, -2); + return { id: n, organizationId: r, url: e }; + } + async function wpt(e, t) { + try { + if (!e.refreshToken) throw new Error('No refresh token found in the connection'); + let r = await e.oauth2.refreshToken(e.refreshToken), + n = VA(r.id); + e._establish({ instanceUrl: r.instance_url, accessToken: r.access_token, userInfo: n }), + t(void 0, r.access_token, r); + } catch (r) { + if (r instanceof Error) t(r); + else throw r; + } + } + function Spt(e, t) { + return async (r, n) => { + try { + if ((await r.login(e, t), !r.accessToken)) throw new Error('Access token not found after login'); + n(null, r.accessToken); + } catch (a) { + if (a instanceof Error) n(a); + else throw a; + } + }; + } + function p3(e) { + return { success: !1, errors: [e] }; + } + function Gl(e) { + throw new Error(`API module '${e}' is not loaded, load 'jsforce/api/${e}' explicitly`); + } + var Wl = 200, + Uv = class e extends upt.EventEmitter { + get analytics() { + return Gl('analytics'); + } + get apex() { + return Gl('apex'); + } + get bulk() { + return Gl('bulk'); + } + get bulk2() { + return Gl('bulk2'); + } + get chatter() { + return Gl('chatter'); + } + get metadata() { + return Gl('metadata'); + } + get soap() { + return Gl('soap'); + } + get streaming() { + return Gl('streaming'); + } + get tooling() { + return Gl('tooling'); + } + constructor(t = {}) { + super(), + (0, yt.default)(this, 'version', void 0), + (0, yt.default)(this, 'loginUrl', void 0), + (0, yt.default)(this, 'instanceUrl', void 0), + (0, yt.default)(this, 'accessToken', void 0), + (0, yt.default)(this, 'refreshToken', void 0), + (0, yt.default)(this, 'userInfo', void 0), + (0, yt.default)(this, 'limitInfo', {}), + (0, yt.default)(this, 'oauth2', void 0), + (0, yt.default)(this, 'sobjects', {}), + (0, yt.default)(this, 'cache', void 0), + (0, yt.default)(this, '_callOptions', void 0), + (0, yt.default)(this, '_maxRequest', void 0), + (0, yt.default)(this, '_logger', void 0), + (0, yt.default)(this, '_logLevel', void 0), + (0, yt.default)(this, '_transport', void 0), + (0, yt.default)(this, '_sessionType', void 0), + (0, yt.default)(this, '_refreshDelegate', void 0), + (0, yt.default)(this, 'describe$', void 0), + (0, yt.default)(this, 'describe$$', void 0), + (0, yt.default)(this, 'describeSObject', void 0), + (0, yt.default)(this, 'describeSObject$', void 0), + (0, yt.default)(this, 'describeSObject$$', void 0), + (0, yt.default)(this, 'describeGlobal$', void 0), + (0, yt.default)(this, 'describeGlobal$$', void 0), + (0, yt.default)(this, 'insert', this.create), + (0, yt.default)(this, 'delete', this.destroy), + (0, yt.default)(this, 'del', this.destroy), + (0, yt.default)(this, 'process', new gpt.default(this)); + let { + loginUrl: r, + instanceUrl: n, + version: a, + oauth2: o, + maxRequest: s, + logLevel: l, + proxyUrl: u, + httpProxy: p, + } = t; + (this.loginUrl = r || Mv.loginUrl), + (this.instanceUrl = n || Mv.instanceUrl), + (this.version = a || Mv.version), + (this.oauth2 = + o instanceof jfe.default + ? o + : new jfe.default(Ai({ loginUrl: this.loginUrl, proxyUrl: u, httpProxy: p }, o))); + let c = t.refreshFn; + !c && this.oauth2.clientId && (c = wpt), + c && (this._refreshDelegate = new Dfe.default(this, c)), + (this._maxRequest = s || Mv.maxRequest), + (this._logger = l ? e._logger.createInstance(l) : e._logger), + (this._logLevel = l), + (this._transport = u ? new Lv.XdProxyTransport(u) : p ? new Lv.HttpProxyTransport(p) : new Lv.default()), + (this._callOptions = t.callOptions), + (this.cache = new dpt.default()); + let f = (x) => (x ? `describe.${x}` : 'describe'), + h = e.prototype.describe; + (this.describe = this.cache.createCachedFunction(h, this, { key: f, strategy: 'NOCACHE' })), + (this.describe$ = this.cache.createCachedFunction(h, this, { key: f, strategy: 'HIT' })), + (this.describe$$ = this.cache.createCachedFunction(h, this, { key: f, strategy: 'IMMEDIATE' })), + (this.describeSObject = this.describe), + (this.describeSObject$ = this.describe$), + (this.describeSObject$$ = this.describe$$); + let m = e.prototype.describeGlobal; + (this.describeGlobal = this.cache.createCachedFunction(m, this, { + key: 'describeGlobal', + strategy: 'NOCACHE', + })), + (this.describeGlobal$ = this.cache.createCachedFunction(m, this, { key: 'describeGlobal', strategy: 'HIT' })), + (this.describeGlobal$$ = this.cache.createCachedFunction(m, this, { + key: 'describeGlobal', + strategy: 'IMMEDIATE', + })); + let { accessToken: v, refreshToken: y, sessionId: S, serverUrl: w, signedRequest: O } = t; + this._establish({ + accessToken: v, + refreshToken: y, + instanceUrl: n, + sessionId: S, + serverUrl: w, + signedRequest: O, + }), + ppt.default.emit('connection:new', this); + } + _establish(t) { + var r; + let { + accessToken: n, + refreshToken: a, + instanceUrl: o, + sessionId: s, + serverUrl: l, + signedRequest: u, + userInfo: p, + } = t; + if ( + ((this.instanceUrl = l + ? (0, xs.default)((r = l.split('/'))) + .call(r, 0, 3) + .join('/') + : o || this.instanceUrl), + (this.accessToken = s || n || this.accessToken), + (this.refreshToken = a || this.refreshToken), + this.refreshToken && !this._refreshDelegate) + ) + throw new Error('Refresh token is specified without oauth2 client information or refresh function'); + let c = u && _pt(u); + c && + ((this.accessToken = c.client.oauthToken), + Lv.CanvasTransport.supported && (this._transport = new Lv.CanvasTransport(c))), + (this.userInfo = p || this.userInfo), + (this._sessionType = s ? 'soap' : 'oauth2'), + this._resetInstance(); + } + _clearSession() { + (this.accessToken = null), + (this.refreshToken = null), + (this.instanceUrl = Mv.instanceUrl), + (this.userInfo = null), + (this._sessionType = null); + } + _resetInstance() { + (this.limitInfo = {}), + (this.sobjects = {}), + this.cache.clear(), + this.cache.get('describeGlobal').removeAllListeners('value'), + this.cache.get('describeGlobal').on('value', ({ result: t }) => { + if (t) for (let r of t.sobjects) this.sobject(r.name); + }); + } + async authorize(t, r = {}) { + let n = await this.oauth2.requestToken(t, r), + a = VA(n.id); + return ( + this._establish({ + instanceUrl: n.instance_url, + accessToken: n.access_token, + refreshToken: n.refresh_token, + userInfo: a, + }), + this._logger.debug(` completed. user id = ${a.id}, org id = ${a.organizationId}`), + a + ); + } + async login(t, r) { + return ( + (this._refreshDelegate = new Dfe.default(this, Spt(t, r))), + this.oauth2 && this.oauth2.clientId && this.oauth2.clientSecret + ? this.loginByOAuth2(t, r) + : this.loginBySoap(t, r) + ); + } + async loginByOAuth2(t, r) { + let n = await this.oauth2.authenticate(t, r), + a = VA(n.id); + return ( + this._establish({ instanceUrl: n.instance_url, accessToken: n.access_token, userInfo: a }), + this._logger.info(` completed. user id = ${a.id}, org id = ${a.organizationId}`), + a + ); + } + async loginBySoap(t, r) { + var n; + if (!t || !r) return ad.default.reject(new Error('no username password given')); + let a = [ + '', + '', + '', + '', + `${BA(t)}`, + `${BA(r)}`, + '', + '', + '', + ].join(''), + o = [this.loginUrl, 'services/Soap/u', this.version].join('/'), + s = await this._transport.httpRequest({ + method: 'POST', + url: o, + body: a, + headers: { 'Content-Type': 'text/xml', SOAPAction: '""' }, + }), + l; + if (s.statusCode >= 400) { + l = s.body.match(/([^<]+)<\/faultstring>/); + let v = l && l[1]; + throw new Error(v || s.body); + } + this._logger.debug(`SOAP response = ${s.body}`), (l = s.body.match(/([^<]+)<\/serverUrl>/)); + let u = l && l[1]; + l = s.body.match(/([^<]+)<\/sessionId>/); + let p = l && l[1]; + l = s.body.match(/([^<]+)<\/userId>/); + let c = l && l[1]; + l = s.body.match(/([^<]+)<\/organizationId>/); + let f = l && l[1]; + if (!u || !p || !c || !f) throw new Error('could not extract session information from login response'); + let h = [this.loginUrl, 'id', f, c].join('/'), + m = { id: c, organizationId: f, url: h }; + return ( + this._establish({ + serverUrl: (0, xs.default)((n = u.split('/'))) + .call(n, 0, 3) + .join('/'), + sessionId: p, + userInfo: m, + }), + this._logger.info(` completed. user id = ${c}, org id = ${f}`), + m + ); + } + async logout(t) { + return ( + (this._refreshDelegate = void 0), + this._sessionType === 'oauth2' ? this.logoutByOAuth2(t) : this.logoutBySoap(t) + ); + } + async logoutByOAuth2(t) { + let r = t ? this.refreshToken : this.accessToken; + r && (await this.oauth2.revokeToken(r)), this._clearSession(), this._resetInstance(); + } + async logoutBySoap(t) { + let r = [ + '', + '', + '', + `${BA(t ? this.refreshToken : this.accessToken)}`, + '', + '', + '', + '', + '', + '', + ].join(''), + n = await this._transport.httpRequest({ + method: 'POST', + url: [this.instanceUrl, 'services/Soap/u', this.version].join('/'), + body: r, + headers: { 'Content-Type': 'text/xml', SOAPAction: '""' }, + }); + if ((this._logger.debug(`SOAP statusCode = ${n.statusCode}, response = ${n.body}`), n.statusCode >= 400)) { + let a = n.body.match(/([^<]+)<\/faultstring>/), + o = a && a[1]; + throw new Error(o || n.body); + } + this._clearSession(), this._resetInstance(); + } + request(t, r = {}) { + let n = typeof t == 'string' ? { method: 'GET', url: t } : t; + n = Ai(Ai({}, n), {}, { url: this._normalizeUrl(n.url) }); + let a = new fpt.default(this, r); + return ( + a.on('response', (o) => { + if (o.headers && o.headers['sforce-limit-info']) { + let s = o.headers['sforce-limit-info'].match(/api-usage=(\d+)\/(\d+)/); + s && + (this.limitInfo = { apiUsage: { used: (0, $A.default)(s[1], 10), limit: (0, $A.default)(s[2], 10) } }); + } + }), + a.request(n) + ); + } + requestGet(t, r) { + let n = { method: 'GET', url: t }; + return this.request(n, r); + } + requestPost(t, r, n) { + let a = { method: 'POST', url: t, body: (0, Es.default)(r), headers: { 'content-type': 'application/json' } }; + return this.request(a, n); + } + requestPut(t, r, n) { + let a = { method: 'PUT', url: t, body: (0, Es.default)(r), headers: { 'content-type': 'application/json' } }; + return this.request(a, n); + } + requestPatch(t, r, n) { + let a = { method: 'PATCH', url: t, body: (0, Es.default)(r), headers: { 'content-type': 'application/json' } }; + return this.request(a, n); + } + requestDelete(t, r) { + let n = { method: 'DELETE', url: t }; + return this.request(n, r); + } + _baseUrl() { + return [this.instanceUrl, 'services/data', `v${this.version}`].join('/'); + } + _normalizeUrl(t) { + return t[0] === '/' + ? (0, Rfe.default)(t).call(t, this.instanceUrl + '/services/') === 0 + ? t + : (0, Rfe.default)(t).call(t, '/services/') === 0 + ? this.instanceUrl + t + : this._baseUrl() + t + : t; + } + query(t, r) { + return new Nfe.default(this, t, r); + } + search(t) { + var r = this._baseUrl() + '/search?q=' + encodeURIComponent(t); + return this.request(r); + } + queryMore(t, r) { + return new Nfe.default(this, { locator: t }, r); + } + _ensureVersion(t) { + let r = this.version.split('.'); + return (0, $A.default)(r[0], 10) >= t; + } + _supports(t) { + switch (t) { + case 'sobject-collection': + return this._ensureVersion(42); + default: + return !1; + } + } + async retrieve(t, r, n = {}) { + return (0, gh.default)(r) + ? this._ensureVersion(42) + ? this._retrieveMany(t, r, n) + : this._retrieveParallel(t, r, n) + : this._retrieveSingle(t, r, n); + } + async _retrieveSingle(t, r, n) { + if (!r) throw new Error('Invalid record ID. Specify valid record ID value'); + let a = [this._baseUrl(), 'sobjects', t, r].join('/'), + { fields: o, headers: s } = n; + return o && (a += `?fields=${o.join(',')}`), this.request({ method: 'GET', url: a, headers: s }); + } + async _retrieveParallel(t, r, n) { + if (r.length > this._maxRequest) throw new Error('Exceeded max limit of concurrent call'); + return ad.default.all( + (0, Hl.default)(r).call(r, (a) => + this._retrieveSingle(t, a, n).catch((o) => { + if (n.allOrNone || o.errorCode !== 'NOT_FOUND') throw o; + return null; + }) + ) + ); + } + async _retrieveMany(t, r, n) { + var a; + if (r.length === 0) return []; + let o = [this._baseUrl(), 'composite', 'sobjects', t].join('/'), + s = n.fields || (0, Hl.default)((a = (await this.describe$(t)).fields)).call(a, (l) => l.name); + return this.request({ + method: 'POST', + url: o, + body: (0, Es.default)({ ids: r, fields: s }), + headers: Ai(Ai({}, n.headers || {}), {}, { 'content-type': 'application/json' }), + }); + } + async create(t, r, n = {}) { + return (0, gh.default)(r) + ? this._ensureVersion(42) + ? await this._createMany(t, r, n) + : await this._createParallel(t, r, n) + : await this._createSingle(t, r, n); + } + async _createSingle(t, r, n) { + let { Id: a, type: o, attributes: s } = r, + l = (0, Fv.default)(r, ['Id', 'type', 'attributes']), + u = t || (s && s.type) || o; + if (!u) throw new Error('No SObject Type defined in record'); + let p = [this._baseUrl(), 'sobjects', u].join('/'), + c, + f; + if (n && n.multipartFileFields) { + var h; + let m = new vpt.default(); + (0, lpt.default)((h = (0, spt.default)(n.multipartFileFields))).call(h, ([v, y]) => { + m.append(v, Buffer.from(l[v], 'base64'), y), delete l[v]; + }), + m.append(t, (0, Es.default)(l), { contentType: 'application/json' }), + (c = m.getHeaders()['content-type']), + (f = m); + } else (c = 'application/json'), (f = (0, Es.default)(l)); + return this.request({ + method: 'POST', + url: p, + body: f, + headers: Ai(Ai({}, n.headers || {}), {}, { 'content-type': c }), + }); + } + async _createParallel(t, r, n) { + if (r.length > this._maxRequest) throw new Error('Exceeded max limit of concurrent call'); + return ad.default.all( + (0, Hl.default)(r).call(r, (a) => + this._createSingle(t, a, n).catch((o) => { + if (n.allOrNone || !o.errorCode) throw o; + return p3(o); + }) + ) + ); + } + async _createMany(t, r, n) { + if (r.length === 0) return ad.default.resolve([]); + if (r.length > Wl && n.allowRecursive) + return [ + ...(await this._createMany(t, (0, xs.default)(r).call(r, 0, Wl), n)), + ...(await this._createMany(t, (0, xs.default)(r).call(r, Wl), n)), + ]; + let a = (0, Hl.default)(r).call(r, (s) => { + let { Id: l, type: u, attributes: p } = s, + c = (0, Fv.default)(s, ['Id', 'type', 'attributes']), + f = t || (p && p.type) || u; + if (!f) throw new Error('No SObject Type defined in record'); + return Ai({ attributes: { type: f } }, c); + }), + o = [this._baseUrl(), 'composite', 'sobjects'].join('/'); + return this.request({ + method: 'POST', + url: o, + body: (0, Es.default)({ allOrNone: n.allOrNone || !1, records: a }), + headers: Ai(Ai({}, n.headers || {}), {}, { 'content-type': 'application/json' }), + }); + } + update(t, r, n = {}) { + return (0, gh.default)(r) + ? this._ensureVersion(42) + ? this._updateMany(t, r, n) + : this._updateParallel(t, r, n) + : this._updateSingle(t, r, n); + } + async _updateSingle(t, r, n) { + let { Id: a, type: o, attributes: s } = r, + l = (0, Fv.default)(r, ['Id', 'type', 'attributes']); + if (!a) throw new Error('Record id is not found in record.'); + let u = t || (s && s.type) || o; + if (!u) throw new Error('No SObject Type defined in record'); + let p = [this._baseUrl(), 'sobjects', u, a].join('/'); + return this.request( + { + method: 'PATCH', + url: p, + body: (0, Es.default)(l), + headers: Ai(Ai({}, n.headers || {}), {}, { 'content-type': 'application/json' }), + }, + { noContentResponse: { id: a, success: !0, errors: [] } } + ); + } + async _updateParallel(t, r, n) { + if (r.length > this._maxRequest) throw new Error('Exceeded max limit of concurrent call'); + return ad.default.all( + (0, Hl.default)(r).call(r, (a) => + this._updateSingle(t, a, n).catch((o) => { + if (n.allOrNone || !o.errorCode) throw o; + return p3(o); + }) + ) + ); + } + async _updateMany(t, r, n) { + if (r.length === 0) return []; + if (r.length > Wl && n.allowRecursive) + return [ + ...(await this._updateMany(t, (0, xs.default)(r).call(r, 0, Wl), n)), + ...(await this._updateMany(t, (0, xs.default)(r).call(r, Wl), n)), + ]; + let a = (0, Hl.default)(r).call(r, (s) => { + let { Id: l, type: u, attributes: p } = s, + c = (0, Fv.default)(s, ['Id', 'type', 'attributes']); + if (!l) throw new Error('Record id is not found in record.'); + let f = t || (p && p.type) || u; + if (!f) throw new Error('No SObject Type defined in record'); + return Ai({ id: l, attributes: { type: f } }, c); + }), + o = [this._baseUrl(), 'composite', 'sobjects'].join('/'); + return this.request({ + method: 'PATCH', + url: o, + body: (0, Es.default)({ allOrNone: n.allOrNone || !1, records: a }), + headers: Ai(Ai({}, n.headers || {}), {}, { 'content-type': 'application/json' }), + }); + } + async upsert(t, r, n, a = {}) { + let o = (0, gh.default)(r), + s = (0, gh.default)(r) ? r : [r]; + if (s.length > this._maxRequest) throw new Error('Exceeded max limit of concurrent call'); + let l = await ad.default.all( + (0, Hl.default)(s).call(s, (u) => { + var p; + let { [n]: c, type: f, attributes: h } = u, + m = (0, Fv.default)(u, (0, Hl.default)((p = [n, 'type', 'attributes'])).call(p, ypt)), + v = [this._baseUrl(), 'sobjects', t, n, c].join('/'); + return this.request( + { + method: 'PATCH', + url: v, + body: (0, Es.default)(m), + headers: Ai(Ai({}, a.headers || {}), {}, { 'content-type': 'application/json' }), + }, + { noContentResponse: { success: !0, errors: [] } } + ).catch((y) => { + if (!o || a.allOrNone || !y.errorCode) throw y; + return p3(y); + }); + }) + ); + return o ? l : l[0]; + } + async destroy(t, r, n = {}) { + return (0, gh.default)(r) + ? this._ensureVersion(42) + ? this._destroyMany(t, r, n) + : this._destroyParallel(t, r, n) + : this._destroySingle(t, r, n); + } + async _destroySingle(t, r, n) { + let a = [this._baseUrl(), 'sobjects', t, r].join('/'); + return this.request( + { method: 'DELETE', url: a, headers: n.headers || {} }, + { noContentResponse: { id: r, success: !0, errors: [] } } + ); + } + async _destroyParallel(t, r, n) { + if (r.length > this._maxRequest) throw new Error('Exceeded max limit of concurrent call'); + return ad.default.all( + (0, Hl.default)(r).call(r, (a) => + this._destroySingle(t, a, n).catch((o) => { + if (n.allOrNone || !o.errorCode) throw o; + return p3(o); + }) + ) + ); + } + async _destroyMany(t, r, n) { + if (r.length === 0) return []; + if (r.length > Wl && n.allowRecursive) + return [ + ...(await this._destroyMany(t, (0, xs.default)(r).call(r, 0, Wl), n)), + ...(await this._destroyMany(t, (0, xs.default)(r).call(r, Wl), n)), + ]; + let a = [this._baseUrl(), 'composite', 'sobjects?ids='].join('/') + r.join(','); + return ( + n.allOrNone && (a += '&allOrNone=true'), this.request({ method: 'DELETE', url: a, headers: n.headers || {} }) + ); + } + async describe(t) { + let r = [this._baseUrl(), 'sobjects', t, 'describe'].join('/'); + return await this.request(r); + } + async describeGlobal() { + let t = `${this._baseUrl()}/sobjects`; + return await this.request(t); + } + sobject(t) { + let r = this.sobjects[t] || new mpt.default(this, t); + return (this.sobjects[t] = r), r; + } + async identity(t = {}) { + let r = this.userInfo && this.userInfo.url; + r || (r = (await this.request({ method: 'GET', url: this._baseUrl(), headers: t.headers })).identity), + (r += '?format=json'), + this.accessToken && (r += `&oauth_token=${encodeURIComponent(this.accessToken)}`); + let n = await this.request({ method: 'GET', url: r }); + return (this.userInfo = { id: n.user_id, organizationId: n.organization_id, url: n.id }), n; + } + async recent(t, r) { + typeof t == 'number' && ((r = t), (t = void 0)); + let n; + if (t) { + n = [this._baseUrl(), 'sobjects', t].join('/'); + let { recentItems: a } = await this.request(n); + return r ? (0, xs.default)(a).call(a, 0, r) : a; + } + return (n = `${this._baseUrl()}/recent`), r && (n += `?limit=${r}`), this.request(n); + } + async updated(t, r, n) { + let a = [this._baseUrl(), 'sobjects', t, 'updated'].join('/'); + return ( + typeof r == 'string' && (r = new Date(r)), + (r = (0, u3.formatDate)(r)), + (a += `?start=${encodeURIComponent(r)}`), + typeof n == 'string' && (n = new Date(n)), + (n = (0, u3.formatDate)(n)), + (a += `&end=${encodeURIComponent(n)}`), + await this.request(a) + ); + } + async deleted(t, r, n) { + let a = [this._baseUrl(), 'sobjects', t, 'deleted'].join('/'); + return ( + typeof r == 'string' && (r = new Date(r)), + (r = (0, u3.formatDate)(r)), + (a += `?start=${encodeURIComponent(r)}`), + typeof n == 'string' && (n = new Date(n)), + (n = (0, u3.formatDate)(n)), + (a += `&end=${encodeURIComponent(n)}`), + await this.request(a) + ); + } + async tabs() { + let t = [this._baseUrl(), 'tabs'].join('/'); + return await this.request(t); + } + async limits() { + let t = [this._baseUrl(), 'limits'].join('/'); + return await this.request(t); + } + async theme() { + let t = [this._baseUrl(), 'theme'].join('/'); + return await this.request(t); + } + async quickActions() { + return await this.request('/quickActions'); + } + quickAction(t) { + return new hpt.default(this, `/quickActions/${t}`); + } + }; + vh.Connection = Uv; + (0, yt.default)(Uv, '_logger', (0, cpt.getLogger)('connection')); + var Ept = Uv; + vh.default = Ept; +}); +var GA = d((d3) => { + 'use strict'; + var c3 = Ce(), + zfe = ge(), + xpt = Ur(), + Mfe = $r(), + Ufe = Bt(), + Hfe = Br(), + Opt = Qt(), + $fe = Vr(), + Tpt = Ve(); + kr(); + Zt(); + zfe(d3, '__esModule', { value: !0 }); + d3.BaseRegistry = void 0; + var Bfe = c3(Ro()), + zA = c3(Ve()), + Gfe = c3(Ye()), + Cpt = c3(od()); + function Vfe(e, t) { + var r = Tpt(e); + if ($fe) { + var n = $fe(e); + t && + (n = Opt(n).call(n, function (a) { + return Hfe(e, a).enumerable; + })), + r.push.apply(r, n); + } + return r; + } + function yh(e) { + for (var t = 1; t < arguments.length; t++) { + var r = arguments[t] != null ? arguments[t] : {}; + if (t % 2) { + var n; + Ufe((n = Vfe(Object(r), !0))).call(n, function (o) { + (0, Gfe.default)(e, o, r[o]); + }); + } else if (Mfe) xpt(e, Mfe(r)); + else { + var a; + Ufe((a = Vfe(Object(r)))).call(a, function (o) { + zfe(e, o, Hfe(r, o)); + }); + } + } + return e; + } + var HA = class { + constructor() { + (0, Gfe.default)(this, '_registryConfig', {}); + } + _saveConfig() { + throw new Error('_saveConfig must be implemented in subclass'); + } + _getClients() { + return this._registryConfig.clients || (this._registryConfig.clients = {}); + } + _getConnections() { + return this._registryConfig.connections || (this._registryConfig.connections = {}); + } + async getConnectionNames() { + return (0, zA.default)(this._getConnections()); + } + async getConnection(t) { + let r = await this.getConnectionConfig(t); + return r ? new Cpt.default(r) : null; + } + async getConnectionConfig(t) { + t || (t = this._registryConfig.default); + let r = this._getConnections(), + n = t ? r[t] : void 0; + if (!n) return null; + let { client: a } = n, + o = (0, Bfe.default)(n, ['client']); + return a ? yh(yh({}, o), {}, { oauth2: yh({}, await this.getClientConfig(a)) }) : o; + } + async saveConnectionConfig(t, r) { + let n = this._getConnections(), + { oauth2: a } = r, + s = (0, Bfe.default)(r, ['oauth2']); + if (a) { + let l = this._findClientName(a); + l && (s = yh(yh({}, s), {}, { client: l })), delete r.oauth2; + } + (n[t] = s), this._saveConfig(); + } + _findClientName({ clientId: t, loginUrl: r }) { + let n = this._getClients(); + for (let a of (0, zA.default)(n)) { + let o = n[a]; + if (o.clientId === t && (o.loginUrl || 'https://login.salesforce.com') === r) return a; + } + return null; + } + async setDefaultConnection(t) { + (this._registryConfig.default = t), this._saveConfig(); + } + async removeConnectionConfig(t) { + let r = this._getConnections(); + delete r[t], this._saveConfig(); + } + async getClientConfig(t) { + let n = this._getClients()[t]; + return n && yh({}, n); + } + async getClientNames() { + return (0, zA.default)(this._getClients()); + } + async registerClientConfig(t, r) { + let n = this._getClients(); + (n[t] = r), this._saveConfig(); + } + }; + d3.BaseRegistry = HA; +}); +var Kfe = d((m3) => { + 'use strict'; + var f3 = Ce(), + kpt = ge(); + kpt(m3, '__esModule', { value: !0 }); + m3.FileRegistry = void 0; + var Apt = f3(sa()), + Ipt = f3(Ye()), + sd = f3(require('fs')), + Wfe = f3(require('path')), + Ppt = GA(); + function Rpt() { + let e = process.env[process.platform === 'win32' ? 'USERPROFILE' : 'HOME']; + if (!e) throw new Error('cannot find user home directory to store configuration files'); + return Wfe.default.join(e, '.jsforce', 'config.json'); + } + var WA = class extends Ppt.BaseRegistry { + constructor({ configFilePath: t }) { + super(), (0, Ipt.default)(this, '_configFilePath', void 0), (this._configFilePath = t || Rpt()); + try { + var r = sd.default.readFileSync(this._configFilePath, 'utf-8'); + this._registryConfig = JSON.parse(r); + } catch {} + } + _saveConfig() { + let t = (0, Apt.default)(this._registryConfig, null, 4); + try { + sd.default.writeFileSync(this._configFilePath, t), sd.default.chmodSync(this._configFilePath, '600'); + } catch { + let n = Wfe.default.dirname(this._configFilePath); + sd.default.mkdirSync(n), + sd.default.chmodSync(n, '700'), + sd.default.writeFileSync(this._configFilePath, t), + sd.default.chmodSync(this._configFilePath, '600'); + } + } + }; + m3.FileRegistry = WA; +}); +var Jfe = d((ZKt, Xfe) => { + 'use strict'; + Xfe.exports = ({ onlyFirst: e = !1 } = {}) => { + let t = [ + '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)', + '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))', + ].join('|'); + return new RegExp(t, e ? void 0 : 'g'); + }; +}); +var Qfe = d((eXt, Yfe) => { + 'use strict'; + var jpt = Jfe(); + Yfe.exports = (e) => (typeof e == 'string' ? e.replace(jpt(), '') : e); +}); +var tme = d((g3) => { + 'use strict'; + var ld = Ce(), + Dpt = ge(); + kr(); + Zt(); + Dpt(g3, '__esModule', { value: !0 }); + g3.SfdxRegistry = void 0; + var Zfe = ld(Qt()), + Npt = ld(cn()), + qpt = ld(Ve()), + $v = ld(jn()), + h3 = ld(Ye()), + Fpt = require('child_process'), + Lpt = ld(Qfe()), + Mpt = ld(od()); + function eme(e) { + return e != null; + } + var KA = class { + constructor({ cliPath: t }) { + (0, h3.default)(this, '_cliPath', void 0), + (0, h3.default)(this, '_orgList', void 0), + (0, h3.default)(this, '_orgInfoMap', {}), + (0, h3.default)(this, '_defaultOrgInfo', void 0), + (this._cliPath = t); + } + _createCommand(t, r = {}, n = []) { + var a; + return `${this._cliPath ? this._cliPath + '/' : ''}sfdx ${t} ${(0, $v.default)((a = (0, qpt.default)(r))) + .call(a, (o) => `${o.length > 1 ? '--' : '-'}${o}${r[o] != null ? ' ' + r[o] : ''}`) + .join(' ')} --json ${n.join(' ')}`; + } + async _execCommand(t, r = {}, n = []) { + let a = this._createCommand(t, r, n), + o = await new Npt.default((u, p) => { + (0, Fpt.exec)(a, (c, f) => { + c && !f ? p(c) : u(f); + }); + }), + s = (0, Lpt.default)(o.toString()), + l; + try { + l = JSON.parse(s); + } catch { + throw new Error(`Unexpectedd output from Sfdx cli: ${s}`); + } + if (l.status === 0 && l.result) return l.result; + { + let u = new Error(l.message); + throw ((u.name = l.name), u); + } + } + async _getOrgList() { + return this._orgList || (this._orgList = this._execCommand('force:org:list')), this._orgList; + } + async getConnectionNames() { + var t, r; + let { nonScratchOrgs: n, scratchOrgs: a } = await this._getOrgList(); + return [ + ...(0, Zfe.default)((t = (0, $v.default)(n).call(n, (o) => o.alias))).call(t, eme), + ...(0, Zfe.default)((r = (0, $v.default)(a).call(a, (o) => o.alias))).call(r, eme), + ...(0, $v.default)(n).call(n, (o) => o.username), + ...(0, $v.default)(a).call(a, (o) => o.username), + ]; + } + async getConnection(t) { + let r = await this.getConnectionConfig(t); + return r ? new Mpt.default(r) : null; + } + async _getOrgInfo(t) { + let r = t ? { u: t } : {}; + if (!t || !this._orgInfoMap[t]) { + let a = this._execCommand('force:org:display', r); + this._memoOrgInfo(a, t); + } + let n = t ? this._orgInfoMap[t] : this._defaultOrgInfo; + if (!n) throw new Error('no orginfo found'); + return n; + } + _memoOrgInfo(t, r) { + let n = t.then((a) => ((this._orgInfoMap[a.username] = n), a.alias && (this._orgInfoMap[a.alias] = n), a)); + r ? (this._orgInfoMap[r] = n) : (this._defaultOrgInfo = n); + } + async getConnectionConfig(t) { + let r = await this._getOrgInfo(t); + if (!r) return null; + let { accessToken: n, instanceUrl: a, loginUrl: o } = r; + return { accessToken: n, instanceUrl: a, loginUrl: o }; + } + async saveConnectionConfig(t, r) {} + async setDefaultConnection(t) {} + async removeConnectionConfig(t) { + await this._execCommand('force:org:delete', { u: t }); + } + async getClientConfig(t) { + return null; + } + async getClientNames() { + return []; + } + async registerClientConfig(t, r) {} + }; + g3.SfdxRegistry = KA; +}); +var rme = d((v3) => { + 'use strict'; + var Upt = ge(); + Upt(v3, '__esModule', { value: !0 }); + v3.EmptyRegistry = void 0; + var $pt = GA(), + XA = class extends $pt.BaseRegistry { + _saveConfig() {} + }; + v3.EmptyRegistry = XA; +}); +var YA = d((ud) => { + 'use strict'; + var y3 = ge(); + y3(ud, '__esModule', { value: !0 }); + y3(ud, 'FileRegistry', { + enumerable: !0, + get: function () { + return ime.FileRegistry; + }, + }); + y3(ud, 'SfdxRegistry', { + enumerable: !0, + get: function () { + return nme.SfdxRegistry; + }, + }); + y3(ud, 'EmptyRegistry', { + enumerable: !0, + get: function () { + return ame.EmptyRegistry; + }, + }); + ud.default = void 0; + var ime = Kfe(), + nme = tme(), + ame = rme(), + JA; + try { + JA = process.env.JSFORCE_CONNECTION_REGISTRY === 'sfdx' ? new nme.SfdxRegistry({}) : new ime.FileRegistry({}); + } catch (e) { + console.error(e), (JA = new ame.EmptyRegistry()); + } + var Bpt = JA; + ud.default = Bpt; +}); +var sme = d(() => { + 'use strict'; + var Vpt = ve(), + zpt = _t(), + Hpt = jc(), + Gpt = zpt([].reverse), + ome = [1, 2]; + Vpt( + { target: 'Array', proto: !0, forced: String(ome) === String(ome.reverse()) }, + { + reverse: function () { + return Hpt(this) && (this.length = this.length), Gpt(this); + }, + } + ); +}); +var ume = d((oXt, lme) => { + sme(); + var Wpt = pn(); + lme.exports = Wpt('Array').reverse; +}); +var cme = d((sXt, pme) => { + var Kpt = ei(), + Xpt = ume(), + QA = Array.prototype; + pme.exports = function (e) { + var t = e.reverse; + return e === QA || (Kpt(QA, e) && t === QA.reverse) ? Xpt : t; + }; +}); +var fme = d((lXt, dme) => { + var Jpt = cme(); + dme.exports = Jpt; +}); +var hme = d((uXt, mme) => { + mme.exports = fme(); +}); +var vme = d((pXt, gme) => { + Ok(); + var Ypt = or(); + gme.exports = Ypt.setInterval; +}); +var bme = d((cXt, yme) => { + yme.exports = vme(); +}); +var ZA = d((bh) => { + 'use strict'; + var Os = Ce(), + Tme = ge(), + Qpt = Ur(), + _me = $r(), + wme = Bt(), + Cme = Br(), + Zpt = Qt(), + Sme = Vr(), + ect = Ve(); + kr(); + Tme(bh, '__esModule', { value: !0 }); + bh.default = bh.BrowserClient = void 0; + var tct = Os(sa()), + rct = Os(hme()), + ict = Os(Nm()), + nct = Os(bme()), + act = Os(cn()), + oct = Os(Gm()), + b3 = Os(Ye()), + sct = require('events'), + Eme = Os(require('querystring')), + lct = Os(od()), + uct = Os(Ym()); + function xme(e, t) { + var r = ect(e); + if (Sme) { + var n = Sme(e); + t && + (n = Zpt(n).call(n, function (a) { + return Cme(e, a).enumerable; + })), + r.push.apply(r, n); + } + return r; + } + function Ome(e) { + for (var t = 1; t < arguments.length; t++) { + var r = arguments[t] != null ? arguments[t] : {}; + if (t % 2) { + var n; + wme((n = xme(Object(r), !0))).call(n, function (o) { + (0, b3.default)(e, o, r[o]); + }); + } else if (_me) Qpt(e, _me(r)); + else { + var a; + wme((a = xme(Object(r)))).call(a, function (o) { + Tme(e, o, Cme(r, o)); + }); + } + } + return e; + } + function pct(e, t, r) { + let n = screen.width / 2 - t / 2, + a = screen.height / 2 - r / 2; + return window.open( + e, + void 0, + `location=yes,toolbar=no,status=no,menubar=no,width=${t},height=${r},top=${a},left=${n}` + ); + } + function cct() { + let e = dct(), + t = localStorage.getItem('jsforce_state'); + if (e && t && e.body.state === t) { + localStorage.removeItem('jsforce_state'); + let [r, n] = t.split('.'), + a = new Bv(r); + return ( + e.success ? (a._storeTokens(e.body), (location.hash = '')) : a._storeError(e.body), + n === 'popup' && window.close(), + !0 + ); + } + } + function dct() { + let e; + if (window.location.hash) { + if (((e = Eme.default.parse(window.location.hash.substring(1))), e.access_token)) return { success: !0, body: e }; + } else if (window.location.search && ((e = Eme.default.parse(window.location.search.substring(1))), e.error)) + return { success: !1, body: e }; + } + var fct = 912, + mct = 513, + hct = 0, + Bv = class extends sct.EventEmitter { + constructor(t) { + super(), + (0, b3.default)(this, '_prefix', void 0), + (0, b3.default)(this, '_config', void 0), + (0, b3.default)(this, '_connection', void 0), + (this._prefix = t || 'jsforce' + hct++); + } + get connection() { + return this._connection || (this._connection = new lct.default(this._config)), this._connection; + } + init(t) { + if (cct()) return; + this._config = t; + let r = this._getTokens(); + r && + (this.connection._establish(r), + (0, oct.default)(() => { + this.emit('connect', this.connection); + }, 10)); + } + login(t = {}) { + var r, n, a; + let { scope: o, size: s } = t, + l = new uct.default((r = this._config) !== null && r !== void 0 ? r : {}), + u = Math.random().toString(36).substring(2), + p = [this._prefix, 'popup', u].join('.'); + localStorage.setItem('jsforce_state', p); + let c = l.getAuthorizationUrl(Ome({ response_type: 'token', state: p }, o ? { scope: o } : {})), + f = pct( + c, + (n = s?.width) !== null && n !== void 0 ? n : fct, + (a = s?.height) !== null && a !== void 0 ? a : mct + ); + return new act.default((h, m) => { + if (!f) { + let y = [this._prefix, 'redirect', u].join('.'); + localStorage.setItem('jsforce_state', y); + let S = l.getAuthorizationUrl(Ome({ response_type: 'token', state: y }, o ? { scope: o } : {})); + location.href = S; + return; + } + this._removeTokens(); + let v = (0, nct.default)(() => { + try { + if (!f || f.closed) { + clearInterval(v); + let y = this._getTokens(); + if (y) this.connection._establish(y), this.emit('connect', this.connection), h({ status: 'connect' }); + else { + let S = this._getError(); + S ? m(new Error(S.error + ': ' + S.error_description)) : h({ status: 'cancel' }); + } + } + } catch {} + }, 1e3); + }); + } + isLoggedIn() { + return !!this.connection.accessToken; + } + logout() { + this.connection.logout(), this._removeTokens(), this.emit('disconnect'); + } + _getTokens() { + let t = new RegExp('(^|;\\s*)' + this._prefix + '_loggedin=true(;|$)'); + if (document.cookie.match(t)) { + let n = Number(localStorage.getItem(this._prefix + '_issued_at')); + if ((0, ict.default)() < n + 2 * 60 * 60 * 1e3) { + let a, + o = localStorage.getItem(this._prefix + '_id'); + if (o) { + var r; + let [s, l] = (0, rct.default)((r = o.split('/'))).call(r); + a = { id: s, organizationId: l, url: o }; + } + return { + accessToken: localStorage.getItem(this._prefix + '_access_token'), + instanceUrl: localStorage.getItem(this._prefix + '_instance_url'), + userInfo: a, + }; + } + } + return null; + } + _storeTokens(t) { + localStorage.setItem(this._prefix + '_access_token', t.access_token), + localStorage.setItem(this._prefix + '_instance_url', t.instance_url), + localStorage.setItem(this._prefix + '_issued_at', t.issued_at), + localStorage.setItem(this._prefix + '_id', t.id), + (document.cookie = this._prefix + '_loggedin=true;'); + } + _removeTokens() { + localStorage.removeItem(this._prefix + '_access_token'), + localStorage.removeItem(this._prefix + '_instance_url'), + localStorage.removeItem(this._prefix + '_issued_at'), + localStorage.removeItem(this._prefix + '_id'), + (document.cookie = this._prefix + '_loggedin='); + } + _getError() { + try { + var t; + let r = JSON.parse((t = localStorage.getItem(this._prefix + '_error')) !== null && t !== void 0 ? t : ''); + return localStorage.removeItem(this._prefix + '_error'), r; + } catch {} + } + _storeError(t) { + localStorage.setItem(this._prefix + '_error', (0, tct.default)(t)); + } + }; + bh.BrowserClient = Bv; + var gct = new Bv(), + vct = gct; + bh.default = vct; +}); +var tI = d((_3) => { + 'use strict'; + var yct = Ce(), + bct = ge(); + bct(_3, '__esModule', { value: !0 }); + _3.JwtOAuth2 = void 0; + var _ct = yct(Ym()), + eI = class extends _ct.default { + constructor(t) { + console.warn('JwtOAuth2 is deprecated and will be removed in next stable release, please use OAuth2 instead.'), + super(t); + } + jwtAuthorize(t) { + return super._postParams({ grant_type: 'urn:ietf:params:oauth:grant-type:jwt-bearer', assertion: t }); + } + }; + _3.JwtOAuth2 = eI; +}); +var $a = d((Vv) => { + 'use strict'; + var wct = Pl(), + pd = Ce(), + Sct = ge(); + kr(); + Sct(Vv, '__esModule', { value: !0 }); + Vv.registerModule = Ict; + Vv.default = void 0; + var Ect = pd(ge()), + Kl = pd(Ye()), + xct = require('events'), + Oct = pd(iT()), + Tct = pd(od()), + Cct = pd(Ym()), + kme = pd(Xw()), + kct = pd(YA()), + Ame = wct(ZA()), + Act = tI(), + rI = class extends xct.EventEmitter { + constructor(...t) { + super(...t), + (0, Kl.default)(this, 'VERSION', Oct.default), + (0, Kl.default)(this, 'Connection', Tct.default), + (0, Kl.default)(this, 'OAuth2', Cct.default), + (0, Kl.default)(this, 'JwtOAuth2', Act.JwtOAuth2), + (0, Kl.default)(this, 'SfDate', kme.default), + (0, Kl.default)(this, 'Date', kme.default), + (0, Kl.default)(this, 'BrowserClient', Ame.BrowserClient), + (0, Kl.default)(this, 'registry', kct.default), + (0, Kl.default)(this, 'browser', Ame.default); + } + }; + function Ict(e, t) { + Ime.on('connection:new', (r) => { + let n; + (0, Ect.default)(r, e, { + get() { + var a; + return (n = (a = n) !== null && a !== void 0 ? a : t(r)), n; + }, + enumerable: !0, + configurable: !0, + }); + }); + } + var Ime = new rI(), + Pct = Ime; + Vv.default = Pct; +}); +var Lme = d((Ba) => { + 'use strict'; + var iI = Ce(), + qme = ge(), + Rct = Ur(), + Pme = $r(), + Rme = Bt(), + Fme = Br(), + jct = Qt(), + jme = Vr(), + Dct = Ve(); + qme(Ba, '__esModule', { value: !0 }); + Ba.default = Ba.Analytics = Ba.Dashboard = Ba.Report = Ba.ReportInstance = void 0; + var Nct = iI(Da()), + zv = iI(sa()), + dn = iI(Ye()), + qct = $a(); + function Dme(e, t) { + var r = Dct(e); + if (jme) { + var n = jme(e); + t && + (n = jct(n).call(n, function (a) { + return Fme(e, a).enumerable; + })), + r.push.apply(r, n); + } + return r; + } + function Nme(e) { + for (var t = 1; t < arguments.length; t++) { + var r = arguments[t] != null ? arguments[t] : {}; + if (t % 2) { + var n; + Rme((n = Dme(Object(r), !0))).call(n, function (o) { + (0, dn.default)(e, o, r[o]); + }); + } else if (Pme) Rct(e, Pme(r)); + else { + var a; + Rme((a = Dme(Object(r)))).call(a, function (o) { + qme(e, o, Fme(r, o)); + }); + } + } + return e; + } + var w3 = class { + constructor(t, r) { + (0, dn.default)(this, '_report', void 0), + (0, dn.default)(this, '_conn', void 0), + (0, dn.default)(this, 'id', void 0), + (this._report = t), + (this._conn = t._conn), + (this.id = r); + } + retrieve() { + let t = [this._conn._baseUrl(), 'analytics', 'reports', this._report.id, 'instances', this.id].join('/'); + return this._conn.request(t); + } + }; + Ba.ReportInstance = w3; + var S3 = class { + constructor(t, r) { + (0, dn.default)(this, '_conn', void 0), + (0, dn.default)(this, 'id', void 0), + (0, dn.default)(this, 'delete', this.destroy), + (0, dn.default)(this, 'del', this.destroy), + (0, dn.default)(this, 'run', this.execute), + (0, dn.default)(this, 'exec', this.execute), + (this._conn = t), + (this.id = r); + } + describe() { + var t = [this._conn._baseUrl(), 'analytics', 'reports', this.id, 'describe'].join('/'); + return this._conn.request(t); + } + destroy() { + let t = [this._conn._baseUrl(), 'analytics', 'reports', this.id].join('/'); + return this._conn.request({ method: 'DELETE', url: t }); + } + clone(t) { + let r = [this._conn._baseUrl(), 'analytics', 'reports'].join('/') + '?cloneId=' + this.id, + n = { reportMetadata: { name: t } }; + return this._conn.request({ + method: 'POST', + url: r, + headers: { 'Content-Type': 'application/json' }, + body: (0, zv.default)(n), + }); + } + explain() { + let t = '/query/?explain=' + this.id; + return this._conn.request(t); + } + execute(t = {}) { + let r = + [this._conn._baseUrl(), 'analytics', 'reports', this.id].join('/') + + '?includeDetails=' + + (t.details ? 'true' : 'false'); + return this._conn.request( + Nme( + { url: r }, + t.metadata + ? { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: (0, zv.default)(t.metadata) } + : { method: 'GET' } + ) + ); + } + executeAsync(t = {}) { + let r = + [this._conn._baseUrl(), 'analytics', 'reports', this.id, 'instances'].join('/') + + (t.details ? '?includeDetails=true' : ''); + return this._conn.request( + Nme( + { method: 'POST', url: r }, + t.metadata + ? { headers: { 'Content-Type': 'application/json' }, body: (0, zv.default)(t.metadata) } + : { body: '' } + ) + ); + } + instance(t) { + return new w3(this, t); + } + instances() { + let t = [this._conn._baseUrl(), 'analytics', 'reports', this.id, 'instances'].join('/'); + return this._conn.request(t); + } + }; + Ba.Report = S3; + var E3 = class { + constructor(t, r) { + (0, dn.default)(this, '_conn', void 0), + (0, dn.default)(this, 'id', void 0), + (0, dn.default)(this, 'delete', this.destroy), + (0, dn.default)(this, 'del', this.destroy), + (this._conn = t), + (this.id = r); + } + describe() { + let t = [this._conn._baseUrl(), 'analytics', 'dashboards', this.id, 'describe'].join('/'); + return this._conn.request(t); + } + components(t) { + let r = [this._conn._baseUrl(), 'analytics', 'dashboards', this.id].join('/'), + n = { componentIds: (0, Nct.default)(t) ? t : typeof t == 'string' ? [t] : void 0 }; + return this._conn.request({ + method: 'POST', + url: r, + headers: { 'Content-Type': 'application/json' }, + body: (0, zv.default)(n), + }); + } + status() { + let t = [this._conn._baseUrl(), 'analytics', 'dashboards', this.id, 'status'].join('/'); + return this._conn.request(t); + } + refresh() { + let t = [this._conn._baseUrl(), 'analytics', 'dashboards', this.id].join('/'); + return this._conn.request({ method: 'PUT', url: t, body: '' }); + } + clone(t, r) { + let n = [this._conn._baseUrl(), 'analytics', 'dashboards'].join('/') + '?cloneId=' + this.id; + return ( + typeof t == 'string' && (t = { name: t, folderId: r }), + this._conn.request({ + method: 'POST', + url: n, + headers: { 'Content-Type': 'application/json' }, + body: (0, zv.default)(t), + }) + ); + } + destroy() { + let t = [this._conn._baseUrl(), 'analytics', 'dashboards', this.id].join('/'); + return this._conn.request({ method: 'DELETE', url: t }); + } + }; + Ba.Dashboard = E3; + var Hv = class { + constructor(t) { + (0, dn.default)(this, '_conn', void 0), (this._conn = t); + } + report(t) { + return new S3(this._conn, t); + } + reports() { + let t = [this._conn._baseUrl(), 'analytics', 'reports'].join('/'); + return this._conn.request(t); + } + dashboard(t) { + return new E3(this._conn, t); + } + dashboards() { + var t = [this._conn._baseUrl(), 'analytics', 'dashboards'].join('/'); + return this._conn.request(t); + } + }; + Ba.Analytics = Hv; + (0, qct.registerModule)('analytics', (e) => new Hv(e)); + var Fct = Hv; + Ba.default = Fct; +}); +var $me = d((_h) => { + 'use strict'; + var Ume = Ce(), + Lct = ge(); + Lct(_h, '__esModule', { value: !0 }); + _h.default = _h.Apex = void 0; + var Mct = Ume(sa()), + Mme = Ume(Ye()), + Uct = $a(), + Gv = class { + constructor(t) { + (0, Mme.default)(this, '_conn', void 0), (0, Mme.default)(this, 'del', this.delete), (this._conn = t); + } + _baseUrl() { + return `${this._conn.instanceUrl}/services/apexrest`; + } + _createRequestParams(t, r, n, a = {}) { + let o = typeof a.headers == 'object' ? a.headers : {}; + /^(GET|DELETE)$/i.test(t) || (o['content-type'] = 'application/json'); + let s = { method: t, url: this._baseUrl() + r, headers: o }; + return n && (s.body = (0, Mct.default)(n)), s; + } + get(t, r) { + return this._conn.request(this._createRequestParams('GET', t, void 0, r)); + } + post(t, r, n) { + let a = this._createRequestParams('POST', t, r, n); + return this._conn.request(a); + } + put(t, r, n) { + let a = this._createRequestParams('PUT', t, r, n); + return this._conn.request(a); + } + patch(t, r, n) { + let a = this._createRequestParams('PATCH', t, r, n); + return this._conn.request(a); + } + delete(t, r) { + return this._conn.request(this._createRequestParams('DELETE', t, void 0, r)); + } + }; + _h.Apex = Gv; + (0, Uct.registerModule)('apex', (e) => new Gv(e)); + var $ct = Gv; + _h.default = $ct; +}); +var Vme = d((vXt, Bme) => { + Bme.exports = eO(); +}); +var zme = d((yXt, Wv) => { + function Bct(e, t) { + return t.get ? t.get.call(e) : t.value; + } + (Wv.exports = Bct), (Wv.exports.__esModule = !0), (Wv.exports.default = Wv.exports); +}); +var nI = d((bXt, Kv) => { + function Vct(e, t, r) { + if (!t.has(e)) throw new TypeError('attempted to ' + r + ' private field on non-instance'); + return t.get(e); + } + (Kv.exports = Vct), (Kv.exports.__esModule = !0), (Kv.exports.default = Kv.exports); +}); +var Hme = d((_Xt, Xv) => { + var zct = zme(), + Hct = nI(); + function Gct(e, t) { + var r = Hct(e, t, 'get'); + return zct(e, r); + } + (Xv.exports = Gct), (Xv.exports.__esModule = !0), (Xv.exports.default = Xv.exports); +}); +var Gme = d((wXt, Jv) => { + function Wct(e, t, r) { + if (t.set) t.set.call(e, r); + else { + if (!t.writable) throw new TypeError('attempted to set read only private field'); + t.value = r; + } + } + (Jv.exports = Wct), (Jv.exports.__esModule = !0), (Jv.exports.default = Jv.exports); +}); +var Wme = d((SXt, Yv) => { + var Kct = Gme(), + Xct = nI(); + function Jct(e, t, r) { + var n = Xct(e, t, 'set'); + return Kct(e, n, r), r; + } + (Yv.exports = Jct), (Yv.exports.__esModule = !0), (Yv.exports.default = Yv.exports); +}); +var Yme = d((EXt, Jme) => { + var Yct = ZE().PROPER, + Qct = vt(), + Kme = T_(), + Xme = '\u200B\x85\u180E'; + Jme.exports = function (e) { + return Qct(function () { + return !!Kme[e]() || Xme[e]() !== Xme || (Yct && Kme[e].name !== e); + }); + }; +}); +var Qme = d(() => { + 'use strict'; + var Zct = ve(), + edt = lC().trim, + tdt = Yme(); + Zct( + { target: 'String', proto: !0, forced: tdt('trim') }, + { + trim: function () { + return edt(this); + }, + } + ); +}); +var ehe = d((TXt, Zme) => { + Qme(); + var rdt = pn(); + Zme.exports = rdt('String').trim; +}); +var rhe = d((CXt, the) => { + var idt = ei(), + ndt = ehe(), + aI = String.prototype; + the.exports = function (e) { + var t = e.trim; + return typeof e == 'string' || e === aI || (idt(aI, e) && t === aI.trim) ? ndt : t; + }; +}); +var nhe = d((kXt, ihe) => { + var adt = rhe(); + ihe.exports = adt; +}); +var ohe = d((AXt, ahe) => { + ahe.exports = nhe(); +}); +var she = d((IXt, oI) => { + typeof Object.create == 'function' + ? (oI.exports = function (t, r) { + r && + ((t.super_ = r), + (t.prototype = Object.create(r.prototype, { + constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 }, + }))); + }) + : (oI.exports = function (t, r) { + if (r) { + t.super_ = r; + var n = function () {}; + (n.prototype = r.prototype), (t.prototype = new n()), (t.prototype.constructor = t); + } + }); +}); +var Va = d((PXt, lI) => { + try { + if (((sI = require('util')), typeof sI.inherits != 'function')) throw ''; + lI.exports = sI.inherits; + } catch { + lI.exports = she(); + } + var sI; +}); +var uI = d((RXt, lhe) => { + lhe.exports = require('stream'); +}); +var mhe = d((jXt, fhe) => { + 'use strict'; + function uhe(e, t) { + var r = Object.keys(e); + if (Object.getOwnPropertySymbols) { + var n = Object.getOwnPropertySymbols(e); + t && + (n = n.filter(function (a) { + return Object.getOwnPropertyDescriptor(e, a).enumerable; + })), + r.push.apply(r, n); + } + return r; + } + function phe(e) { + for (var t = 1; t < arguments.length; t++) { + var r = arguments[t] != null ? arguments[t] : {}; + t % 2 + ? uhe(Object(r), !0).forEach(function (n) { + odt(e, n, r[n]); + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) + : uhe(Object(r)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n)); + }); + } + return e; + } + function odt(e, t, r) { + return ( + (t = dhe(t)), + t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : (e[t] = r), + e + ); + } + function sdt(e, t) { + if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function'); + } + function che(e, t) { + for (var r = 0; r < t.length; r++) { + var n = t[r]; + (n.enumerable = n.enumerable || !1), + (n.configurable = !0), + 'value' in n && (n.writable = !0), + Object.defineProperty(e, dhe(n.key), n); + } + } + function ldt(e, t, r) { + return t && che(e.prototype, t), r && che(e, r), Object.defineProperty(e, 'prototype', { writable: !1 }), e; + } + function dhe(e) { + var t = udt(e, 'string'); + return typeof t == 'symbol' ? t : String(t); + } + function udt(e, t) { + if (typeof e != 'object' || e === null) return e; + var r = e[Symbol.toPrimitive]; + if (r !== void 0) { + var n = r.call(e, t || 'default'); + if (typeof n != 'object') return n; + throw new TypeError('@@toPrimitive must return a primitive value.'); + } + return (t === 'string' ? String : Number)(e); + } + var pdt = require('buffer'), + x3 = pdt.Buffer, + cdt = require('util'), + pI = cdt.inspect, + ddt = (pI && pI.custom) || 'inspect'; + function fdt(e, t, r) { + x3.prototype.copy.call(e, t, r); + } + fhe.exports = (function () { + function e() { + sdt(this, e), (this.head = null), (this.tail = null), (this.length = 0); + } + return ( + ldt(e, [ + { + key: 'push', + value: function (r) { + var n = { data: r, next: null }; + this.length > 0 ? (this.tail.next = n) : (this.head = n), (this.tail = n), ++this.length; + }, + }, + { + key: 'unshift', + value: function (r) { + var n = { data: r, next: this.head }; + this.length === 0 && (this.tail = n), (this.head = n), ++this.length; + }, + }, + { + key: 'shift', + value: function () { + if (this.length !== 0) { + var r = this.head.data; + return ( + this.length === 1 ? (this.head = this.tail = null) : (this.head = this.head.next), --this.length, r + ); + } + }, + }, + { + key: 'clear', + value: function () { + (this.head = this.tail = null), (this.length = 0); + }, + }, + { + key: 'join', + value: function (r) { + if (this.length === 0) return ''; + for (var n = this.head, a = '' + n.data; (n = n.next); ) a += r + n.data; + return a; + }, + }, + { + key: 'concat', + value: function (r) { + if (this.length === 0) return x3.alloc(0); + for (var n = x3.allocUnsafe(r >>> 0), a = this.head, o = 0; a; ) + fdt(a.data, n, o), (o += a.data.length), (a = a.next); + return n; + }, + }, + { + key: 'consume', + value: function (r, n) { + var a; + return ( + r < this.head.data.length + ? ((a = this.head.data.slice(0, r)), (this.head.data = this.head.data.slice(r))) + : r === this.head.data.length + ? (a = this.shift()) + : (a = n ? this._getString(r) : this._getBuffer(r)), + a + ); + }, + }, + { + key: 'first', + value: function () { + return this.head.data; + }, + }, + { + key: '_getString', + value: function (r) { + var n = this.head, + a = 1, + o = n.data; + for (r -= o.length; (n = n.next); ) { + var s = n.data, + l = r > s.length ? s.length : r; + if ((l === s.length ? (o += s) : (o += s.slice(0, r)), (r -= l), r === 0)) { + l === s.length + ? (++a, n.next ? (this.head = n.next) : (this.head = this.tail = null)) + : ((this.head = n), (n.data = s.slice(l))); + break; + } + ++a; + } + return (this.length -= a), o; + }, + }, + { + key: '_getBuffer', + value: function (r) { + var n = x3.allocUnsafe(r), + a = this.head, + o = 1; + for (a.data.copy(n), r -= a.data.length; (a = a.next); ) { + var s = a.data, + l = r > s.length ? s.length : r; + if ((s.copy(n, n.length - r, 0, l), (r -= l), r === 0)) { + l === s.length + ? (++o, a.next ? (this.head = a.next) : (this.head = this.tail = null)) + : ((this.head = a), (a.data = s.slice(l))); + break; + } + ++o; + } + return (this.length -= o), n; + }, + }, + { + key: ddt, + value: function (r, n) { + return pI(this, phe(phe({}, n), {}, { depth: 0, customInspect: !1 })); + }, + }, + ]), + e + ); + })(); +}); +var dI = d((DXt, ghe) => { + 'use strict'; + function mdt(e, t) { + var r = this, + n = this._readableState && this._readableState.destroyed, + a = this._writableState && this._writableState.destroyed; + return n || a + ? (t + ? t(e) + : e && + (this._writableState + ? this._writableState.errorEmitted || + ((this._writableState.errorEmitted = !0), process.nextTick(cI, this, e)) + : process.nextTick(cI, this, e)), + this) + : (this._readableState && (this._readableState.destroyed = !0), + this._writableState && (this._writableState.destroyed = !0), + this._destroy(e || null, function (o) { + !t && o + ? r._writableState + ? r._writableState.errorEmitted + ? process.nextTick(O3, r) + : ((r._writableState.errorEmitted = !0), process.nextTick(hhe, r, o)) + : process.nextTick(hhe, r, o) + : t + ? (process.nextTick(O3, r), t(o)) + : process.nextTick(O3, r); + }), + this); + } + function hhe(e, t) { + cI(e, t), O3(e); + } + function O3(e) { + (e._writableState && !e._writableState.emitClose) || + (e._readableState && !e._readableState.emitClose) || + e.emit('close'); + } + function hdt() { + this._readableState && + ((this._readableState.destroyed = !1), + (this._readableState.reading = !1), + (this._readableState.ended = !1), + (this._readableState.endEmitted = !1)), + this._writableState && + ((this._writableState.destroyed = !1), + (this._writableState.ended = !1), + (this._writableState.ending = !1), + (this._writableState.finalCalled = !1), + (this._writableState.prefinished = !1), + (this._writableState.finished = !1), + (this._writableState.errorEmitted = !1)); + } + function cI(e, t) { + e.emit('error', t); + } + function gdt(e, t) { + var r = e._readableState, + n = e._writableState; + (r && r.autoDestroy) || (n && n.autoDestroy) ? e.destroy(t) : e.emit('error', t); + } + ghe.exports = { destroy: mdt, undestroy: hdt, errorOrDestroy: gdt }; +}); +var mp = d((NXt, bhe) => { + 'use strict'; + var yhe = {}; + function za(e, t, r) { + r || (r = Error); + function n(o, s, l) { + return typeof t == 'string' ? t : t(o, s, l); + } + class a extends r { + constructor(s, l, u) { + super(n(s, l, u)); + } + } + (a.prototype.name = r.name), (a.prototype.code = e), (yhe[e] = a); + } + function vhe(e, t) { + if (Array.isArray(e)) { + let r = e.length; + return ( + (e = e.map((n) => String(n))), + r > 2 + ? `one of ${t} ${e.slice(0, r - 1).join(', ')}, or ` + e[r - 1] + : r === 2 + ? `one of ${t} ${e[0]} or ${e[1]}` + : `of ${t} ${e[0]}` + ); + } else return `of ${t} ${String(e)}`; + } + function vdt(e, t, r) { + return e.substr(!r || r < 0 ? 0 : +r, t.length) === t; + } + function ydt(e, t, r) { + return (r === void 0 || r > e.length) && (r = e.length), e.substring(r - t.length, r) === t; + } + function bdt(e, t, r) { + return typeof r != 'number' && (r = 0), r + t.length > e.length ? !1 : e.indexOf(t, r) !== -1; + } + za( + 'ERR_INVALID_OPT_VALUE', + function (e, t) { + return 'The value "' + t + '" is invalid for option "' + e + '"'; + }, + TypeError + ); + za( + 'ERR_INVALID_ARG_TYPE', + function (e, t, r) { + let n; + typeof t == 'string' && vdt(t, 'not ') ? ((n = 'must not be'), (t = t.replace(/^not /, ''))) : (n = 'must be'); + let a; + if (ydt(e, ' argument')) a = `The ${e} ${n} ${vhe(t, 'type')}`; + else { + let o = bdt(e, '.') ? 'property' : 'argument'; + a = `The "${e}" ${o} ${n} ${vhe(t, 'type')}`; + } + return (a += `. Received type ${typeof r}`), a; + }, + TypeError + ); + za('ERR_STREAM_PUSH_AFTER_EOF', 'stream.push() after EOF'); + za('ERR_METHOD_NOT_IMPLEMENTED', function (e) { + return 'The ' + e + ' method is not implemented'; + }); + za('ERR_STREAM_PREMATURE_CLOSE', 'Premature close'); + za('ERR_STREAM_DESTROYED', function (e) { + return 'Cannot call ' + e + ' after a stream was destroyed'; + }); + za('ERR_MULTIPLE_CALLBACK', 'Callback called multiple times'); + za('ERR_STREAM_CANNOT_PIPE', 'Cannot pipe, not readable'); + za('ERR_STREAM_WRITE_AFTER_END', 'write after end'); + za('ERR_STREAM_NULL_VALUES', 'May not write null values to stream', TypeError); + za( + 'ERR_UNKNOWN_ENCODING', + function (e) { + return 'Unknown encoding: ' + e; + }, + TypeError + ); + za('ERR_STREAM_UNSHIFT_AFTER_END_EVENT', 'stream.unshift() after end event'); + bhe.exports.codes = yhe; +}); +var fI = d((qXt, _he) => { + 'use strict'; + var _dt = mp().codes.ERR_INVALID_OPT_VALUE; + function wdt(e, t, r) { + return e.highWaterMark != null ? e.highWaterMark : t ? e[r] : null; + } + function Sdt(e, t, r, n) { + var a = wdt(t, n, r); + if (a != null) { + if (!(isFinite(a) && Math.floor(a) === a) || a < 0) { + var o = n ? r : 'highWaterMark'; + throw new _dt(o, a); + } + return Math.floor(a); + } + return e.objectMode ? 16 : 16 * 1024; + } + _he.exports = { getHighWaterMark: Sdt }; +}); +var mI = d((FXt, whe) => { + whe.exports = require('util').deprecate; +}); +var vI = d((LXt, Che) => { + 'use strict'; + Che.exports = _r; + function Ehe(e) { + var t = this; + (this.next = null), + (this.entry = null), + (this.finish = function () { + Xdt(t, e); + }); + } + var wh; + _r.WritableState = Zv; + var Edt = { deprecate: mI() }, + xhe = uI(), + C3 = require('buffer').Buffer, + xdt = + (typeof global < 'u' ? global : typeof window < 'u' ? window : typeof self < 'u' ? self : {}).Uint8Array || + function () {}; + function Odt(e) { + return C3.from(e); + } + function Tdt(e) { + return C3.isBuffer(e) || e instanceof xdt; + } + var gI = dI(), + Cdt = fI(), + kdt = Cdt.getHighWaterMark, + hp = mp().codes, + Adt = hp.ERR_INVALID_ARG_TYPE, + Idt = hp.ERR_METHOD_NOT_IMPLEMENTED, + Pdt = hp.ERR_MULTIPLE_CALLBACK, + Rdt = hp.ERR_STREAM_CANNOT_PIPE, + jdt = hp.ERR_STREAM_DESTROYED, + Ddt = hp.ERR_STREAM_NULL_VALUES, + Ndt = hp.ERR_STREAM_WRITE_AFTER_END, + qdt = hp.ERR_UNKNOWN_ENCODING, + Sh = gI.errorOrDestroy; + Va()(_r, xhe); + function Fdt() {} + function Zv(e, t, r) { + (wh = wh || cd()), + (e = e || {}), + typeof r != 'boolean' && (r = t instanceof wh), + (this.objectMode = !!e.objectMode), + r && (this.objectMode = this.objectMode || !!e.writableObjectMode), + (this.highWaterMark = kdt(this, e, 'writableHighWaterMark', r)), + (this.finalCalled = !1), + (this.needDrain = !1), + (this.ending = !1), + (this.ended = !1), + (this.finished = !1), + (this.destroyed = !1); + var n = e.decodeStrings === !1; + (this.decodeStrings = !n), + (this.defaultEncoding = e.defaultEncoding || 'utf8'), + (this.length = 0), + (this.writing = !1), + (this.corked = 0), + (this.sync = !0), + (this.bufferProcessing = !1), + (this.onwrite = function (a) { + zdt(t, a); + }), + (this.writecb = null), + (this.writelen = 0), + (this.bufferedRequest = null), + (this.lastBufferedRequest = null), + (this.pendingcb = 0), + (this.prefinished = !1), + (this.errorEmitted = !1), + (this.emitClose = e.emitClose !== !1), + (this.autoDestroy = !!e.autoDestroy), + (this.bufferedRequestCount = 0), + (this.corkedRequestsFree = new Ehe(this)); + } + Zv.prototype.getBuffer = function () { + for (var t = this.bufferedRequest, r = []; t; ) r.push(t), (t = t.next); + return r; + }; + (function () { + try { + Object.defineProperty(Zv.prototype, 'buffer', { + get: Edt.deprecate( + function () { + return this.getBuffer(); + }, + '_writableState.buffer is deprecated. Use _writableState.getBuffer instead.', + 'DEP0003' + ), + }); + } catch {} + })(); + var T3; + typeof Symbol == 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == 'function' + ? ((T3 = Function.prototype[Symbol.hasInstance]), + Object.defineProperty(_r, Symbol.hasInstance, { + value: function (t) { + return T3.call(this, t) ? !0 : this !== _r ? !1 : t && t._writableState instanceof Zv; + }, + })) + : (T3 = function (t) { + return t instanceof this; + }); + function _r(e) { + wh = wh || cd(); + var t = this instanceof wh; + if (!t && !T3.call(_r, this)) return new _r(e); + (this._writableState = new Zv(e, this, t)), + (this.writable = !0), + e && + (typeof e.write == 'function' && (this._write = e.write), + typeof e.writev == 'function' && (this._writev = e.writev), + typeof e.destroy == 'function' && (this._destroy = e.destroy), + typeof e.final == 'function' && (this._final = e.final)), + xhe.call(this); + } + _r.prototype.pipe = function () { + Sh(this, new Rdt()); + }; + function Ldt(e, t) { + var r = new Ndt(); + Sh(e, r), process.nextTick(t, r); + } + function Mdt(e, t, r, n) { + var a; + return ( + r === null + ? (a = new Ddt()) + : typeof r != 'string' && !t.objectMode && (a = new Adt('chunk', ['string', 'Buffer'], r)), + a ? (Sh(e, a), process.nextTick(n, a), !1) : !0 + ); + } + _r.prototype.write = function (e, t, r) { + var n = this._writableState, + a = !1, + o = !n.objectMode && Tdt(e); + return ( + o && !C3.isBuffer(e) && (e = Odt(e)), + typeof t == 'function' && ((r = t), (t = null)), + o ? (t = 'buffer') : t || (t = n.defaultEncoding), + typeof r != 'function' && (r = Fdt), + n.ending ? Ldt(this, r) : (o || Mdt(this, n, e, r)) && (n.pendingcb++, (a = $dt(this, n, o, e, t, r))), + a + ); + }; + _r.prototype.cork = function () { + this._writableState.corked++; + }; + _r.prototype.uncork = function () { + var e = this._writableState; + e.corked && (e.corked--, !e.writing && !e.corked && !e.bufferProcessing && e.bufferedRequest && Ohe(this, e)); + }; + _r.prototype.setDefaultEncoding = function (t) { + if ( + (typeof t == 'string' && (t = t.toLowerCase()), + !( + ['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf( + (t + '').toLowerCase() + ) > -1 + )) + ) + throw new qdt(t); + return (this._writableState.defaultEncoding = t), this; + }; + Object.defineProperty(_r.prototype, 'writableBuffer', { + enumerable: !1, + get: function () { + return this._writableState && this._writableState.getBuffer(); + }, + }); + function Udt(e, t, r) { + return !e.objectMode && e.decodeStrings !== !1 && typeof t == 'string' && (t = C3.from(t, r)), t; + } + Object.defineProperty(_r.prototype, 'writableHighWaterMark', { + enumerable: !1, + get: function () { + return this._writableState.highWaterMark; + }, + }); + function $dt(e, t, r, n, a, o) { + if (!r) { + var s = Udt(t, n, a); + n !== s && ((r = !0), (a = 'buffer'), (n = s)); + } + var l = t.objectMode ? 1 : n.length; + t.length += l; + var u = t.length < t.highWaterMark; + if ((u || (t.needDrain = !0), t.writing || t.corked)) { + var p = t.lastBufferedRequest; + (t.lastBufferedRequest = { chunk: n, encoding: a, isBuf: r, callback: o, next: null }), + p ? (p.next = t.lastBufferedRequest) : (t.bufferedRequest = t.lastBufferedRequest), + (t.bufferedRequestCount += 1); + } else hI(e, t, !1, l, n, a, o); + return u; + } + function hI(e, t, r, n, a, o, s) { + (t.writelen = n), + (t.writecb = s), + (t.writing = !0), + (t.sync = !0), + t.destroyed ? t.onwrite(new jdt('write')) : r ? e._writev(a, t.onwrite) : e._write(a, o, t.onwrite), + (t.sync = !1); + } + function Bdt(e, t, r, n, a) { + --t.pendingcb, + r + ? (process.nextTick(a, n), process.nextTick(Qv, e, t), (e._writableState.errorEmitted = !0), Sh(e, n)) + : (a(n), (e._writableState.errorEmitted = !0), Sh(e, n), Qv(e, t)); + } + function Vdt(e) { + (e.writing = !1), (e.writecb = null), (e.length -= e.writelen), (e.writelen = 0); + } + function zdt(e, t) { + var r = e._writableState, + n = r.sync, + a = r.writecb; + if (typeof a != 'function') throw new Pdt(); + if ((Vdt(r), t)) Bdt(e, r, n, t, a); + else { + var o = The(r) || e.destroyed; + !o && !r.corked && !r.bufferProcessing && r.bufferedRequest && Ohe(e, r), + n ? process.nextTick(She, e, r, o, a) : She(e, r, o, a); + } + } + function She(e, t, r, n) { + r || Hdt(e, t), t.pendingcb--, n(), Qv(e, t); + } + function Hdt(e, t) { + t.length === 0 && t.needDrain && ((t.needDrain = !1), e.emit('drain')); + } + function Ohe(e, t) { + t.bufferProcessing = !0; + var r = t.bufferedRequest; + if (e._writev && r && r.next) { + var n = t.bufferedRequestCount, + a = new Array(n), + o = t.corkedRequestsFree; + o.entry = r; + for (var s = 0, l = !0; r; ) (a[s] = r), r.isBuf || (l = !1), (r = r.next), (s += 1); + (a.allBuffers = l), + hI(e, t, !0, t.length, a, '', o.finish), + t.pendingcb++, + (t.lastBufferedRequest = null), + o.next ? ((t.corkedRequestsFree = o.next), (o.next = null)) : (t.corkedRequestsFree = new Ehe(t)), + (t.bufferedRequestCount = 0); + } else { + for (; r; ) { + var u = r.chunk, + p = r.encoding, + c = r.callback, + f = t.objectMode ? 1 : u.length; + if ((hI(e, t, !1, f, u, p, c), (r = r.next), t.bufferedRequestCount--, t.writing)) break; + } + r === null && (t.lastBufferedRequest = null); + } + (t.bufferedRequest = r), (t.bufferProcessing = !1); + } + _r.prototype._write = function (e, t, r) { + r(new Idt('_write()')); + }; + _r.prototype._writev = null; + _r.prototype.end = function (e, t, r) { + var n = this._writableState; + return ( + typeof e == 'function' ? ((r = e), (e = null), (t = null)) : typeof t == 'function' && ((r = t), (t = null)), + e != null && this.write(e, t), + n.corked && ((n.corked = 1), this.uncork()), + n.ending || Kdt(this, n, r), + this + ); + }; + Object.defineProperty(_r.prototype, 'writableLength', { + enumerable: !1, + get: function () { + return this._writableState.length; + }, + }); + function The(e) { + return e.ending && e.length === 0 && e.bufferedRequest === null && !e.finished && !e.writing; + } + function Gdt(e, t) { + e._final(function (r) { + t.pendingcb--, r && Sh(e, r), (t.prefinished = !0), e.emit('prefinish'), Qv(e, t); + }); + } + function Wdt(e, t) { + !t.prefinished && + !t.finalCalled && + (typeof e._final == 'function' && !t.destroyed + ? (t.pendingcb++, (t.finalCalled = !0), process.nextTick(Gdt, e, t)) + : ((t.prefinished = !0), e.emit('prefinish'))); + } + function Qv(e, t) { + var r = The(t); + if (r && (Wdt(e, t), t.pendingcb === 0 && ((t.finished = !0), e.emit('finish'), t.autoDestroy))) { + var n = e._readableState; + (!n || (n.autoDestroy && n.endEmitted)) && e.destroy(); + } + return r; + } + function Kdt(e, t, r) { + (t.ending = !0), + Qv(e, t), + r && (t.finished ? process.nextTick(r) : e.once('finish', r)), + (t.ended = !0), + (e.writable = !1); + } + function Xdt(e, t, r) { + var n = e.entry; + for (e.entry = null; n; ) { + var a = n.callback; + t.pendingcb--, a(r), (n = n.next); + } + t.corkedRequestsFree.next = e; + } + Object.defineProperty(_r.prototype, 'destroyed', { + enumerable: !1, + get: function () { + return this._writableState === void 0 ? !1 : this._writableState.destroyed; + }, + set: function (t) { + this._writableState && (this._writableState.destroyed = t); + }, + }); + _r.prototype.destroy = gI.destroy; + _r.prototype._undestroy = gI.undestroy; + _r.prototype._destroy = function (e, t) { + t(e); + }; +}); +var cd = d((MXt, Ahe) => { + 'use strict'; + var Jdt = + Object.keys || + function (e) { + var t = []; + for (var r in e) t.push(r); + return t; + }; + Ahe.exports = Ts; + var khe = _I(), + bI = vI(); + Va()(Ts, khe); + for (yI = Jdt(bI.prototype), k3 = 0; k3 < yI.length; k3++) + (A3 = yI[k3]), Ts.prototype[A3] || (Ts.prototype[A3] = bI.prototype[A3]); + var yI, A3, k3; + function Ts(e) { + if (!(this instanceof Ts)) return new Ts(e); + khe.call(this, e), + bI.call(this, e), + (this.allowHalfOpen = !0), + e && + (e.readable === !1 && (this.readable = !1), + e.writable === !1 && (this.writable = !1), + e.allowHalfOpen === !1 && ((this.allowHalfOpen = !1), this.once('end', Ydt))); + } + Object.defineProperty(Ts.prototype, 'writableHighWaterMark', { + enumerable: !1, + get: function () { + return this._writableState.highWaterMark; + }, + }); + Object.defineProperty(Ts.prototype, 'writableBuffer', { + enumerable: !1, + get: function () { + return this._writableState && this._writableState.getBuffer(); + }, + }); + Object.defineProperty(Ts.prototype, 'writableLength', { + enumerable: !1, + get: function () { + return this._writableState.length; + }, + }); + function Ydt() { + this._writableState.ended || process.nextTick(Qdt, this); + } + function Qdt(e) { + e.end(); + } + Object.defineProperty(Ts.prototype, 'destroyed', { + enumerable: !1, + get: function () { + return this._readableState === void 0 || this._writableState === void 0 + ? !1 + : this._readableState.destroyed && this._writableState.destroyed; + }, + set: function (t) { + this._readableState === void 0 || + this._writableState === void 0 || + ((this._readableState.destroyed = t), (this._writableState.destroyed = t)); + }, + }); +}); +var ii = d((wI, Phe) => { + var I3 = require('buffer'), + Cs = I3.Buffer; + function Ihe(e, t) { + for (var r in e) t[r] = e[r]; + } + Cs.from && Cs.alloc && Cs.allocUnsafe && Cs.allocUnsafeSlow ? (Phe.exports = I3) : (Ihe(I3, wI), (wI.Buffer = dd)); + function dd(e, t, r) { + return Cs(e, t, r); + } + dd.prototype = Object.create(Cs.prototype); + Ihe(Cs, dd); + dd.from = function (e, t, r) { + if (typeof e == 'number') throw new TypeError('Argument must not be a number'); + return Cs(e, t, r); + }; + dd.alloc = function (e, t, r) { + if (typeof e != 'number') throw new TypeError('Argument must be a number'); + var n = Cs(e); + return t !== void 0 ? (typeof r == 'string' ? n.fill(t, r) : n.fill(t)) : n.fill(0), n; + }; + dd.allocUnsafe = function (e) { + if (typeof e != 'number') throw new TypeError('Argument must be a number'); + return Cs(e); + }; + dd.allocUnsafeSlow = function (e) { + if (typeof e != 'number') throw new TypeError('Argument must be a number'); + return I3.SlowBuffer(e); + }; +}); +var xI = d((jhe) => { + 'use strict'; + var EI = ii().Buffer, + Rhe = + EI.isEncoding || + function (e) { + switch (((e = '' + e), e && e.toLowerCase())) { + case 'hex': + case 'utf8': + case 'utf-8': + case 'ascii': + case 'binary': + case 'base64': + case 'ucs2': + case 'ucs-2': + case 'utf16le': + case 'utf-16le': + case 'raw': + return !0; + default: + return !1; + } + }; + function Zdt(e) { + if (!e) return 'utf8'; + for (var t; ; ) + switch (e) { + case 'utf8': + case 'utf-8': + return 'utf8'; + case 'ucs2': + case 'ucs-2': + case 'utf16le': + case 'utf-16le': + return 'utf16le'; + case 'latin1': + case 'binary': + return 'latin1'; + case 'base64': + case 'ascii': + case 'hex': + return e; + default: + if (t) return; + (e = ('' + e).toLowerCase()), (t = !0); + } + } + function eft(e) { + var t = Zdt(e); + if (typeof t != 'string' && (EI.isEncoding === Rhe || !Rhe(e))) throw new Error('Unknown encoding: ' + e); + return t || e; + } + jhe.StringDecoder = ey; + function ey(e) { + this.encoding = eft(e); + var t; + switch (this.encoding) { + case 'utf16le': + (this.text = oft), (this.end = sft), (t = 4); + break; + case 'utf8': + (this.fillLast = ift), (t = 4); + break; + case 'base64': + (this.text = lft), (this.end = uft), (t = 3); + break; + default: + (this.write = pft), (this.end = cft); + return; + } + (this.lastNeed = 0), (this.lastTotal = 0), (this.lastChar = EI.allocUnsafe(t)); + } + ey.prototype.write = function (e) { + if (e.length === 0) return ''; + var t, r; + if (this.lastNeed) { + if (((t = this.fillLast(e)), t === void 0)) return ''; + (r = this.lastNeed), (this.lastNeed = 0); + } else r = 0; + return r < e.length ? (t ? t + this.text(e, r) : this.text(e, r)) : t || ''; + }; + ey.prototype.end = aft; + ey.prototype.text = nft; + ey.prototype.fillLast = function (e) { + if (this.lastNeed <= e.length) + return ( + e.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), + this.lastChar.toString(this.encoding, 0, this.lastTotal) + ); + e.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, e.length), (this.lastNeed -= e.length); + }; + function SI(e) { + return e <= 127 ? 0 : e >> 5 === 6 ? 2 : e >> 4 === 14 ? 3 : e >> 3 === 30 ? 4 : e >> 6 === 2 ? -1 : -2; + } + function tft(e, t, r) { + var n = t.length - 1; + if (n < r) return 0; + var a = SI(t[n]); + return a >= 0 + ? (a > 0 && (e.lastNeed = a - 1), a) + : --n < r || a === -2 + ? 0 + : ((a = SI(t[n])), + a >= 0 + ? (a > 0 && (e.lastNeed = a - 2), a) + : --n < r || a === -2 + ? 0 + : ((a = SI(t[n])), a >= 0 ? (a > 0 && (a === 2 ? (a = 0) : (e.lastNeed = a - 3)), a) : 0)); + } + function rft(e, t, r) { + if ((t[0] & 192) !== 128) return (e.lastNeed = 0), '\uFFFD'; + if (e.lastNeed > 1 && t.length > 1) { + if ((t[1] & 192) !== 128) return (e.lastNeed = 1), '\uFFFD'; + if (e.lastNeed > 2 && t.length > 2 && (t[2] & 192) !== 128) return (e.lastNeed = 2), '\uFFFD'; + } + } + function ift(e) { + var t = this.lastTotal - this.lastNeed, + r = rft(this, e, t); + if (r !== void 0) return r; + if (this.lastNeed <= e.length) + return e.copy(this.lastChar, t, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal); + e.copy(this.lastChar, t, 0, e.length), (this.lastNeed -= e.length); + } + function nft(e, t) { + var r = tft(this, e, t); + if (!this.lastNeed) return e.toString('utf8', t); + this.lastTotal = r; + var n = e.length - (r - this.lastNeed); + return e.copy(this.lastChar, 0, n), e.toString('utf8', t, n); + } + function aft(e) { + var t = e && e.length ? this.write(e) : ''; + return this.lastNeed ? t + '\uFFFD' : t; + } + function oft(e, t) { + if ((e.length - t) % 2 === 0) { + var r = e.toString('utf16le', t); + if (r) { + var n = r.charCodeAt(r.length - 1); + if (n >= 55296 && n <= 56319) + return ( + (this.lastNeed = 2), + (this.lastTotal = 4), + (this.lastChar[0] = e[e.length - 2]), + (this.lastChar[1] = e[e.length - 1]), + r.slice(0, -1) + ); + } + return r; + } + return ( + (this.lastNeed = 1), + (this.lastTotal = 2), + (this.lastChar[0] = e[e.length - 1]), + e.toString('utf16le', t, e.length - 1) + ); + } + function sft(e) { + var t = e && e.length ? this.write(e) : ''; + if (this.lastNeed) { + var r = this.lastTotal - this.lastNeed; + return t + this.lastChar.toString('utf16le', 0, r); + } + return t; + } + function lft(e, t) { + var r = (e.length - t) % 3; + return r === 0 + ? e.toString('base64', t) + : ((this.lastNeed = 3 - r), + (this.lastTotal = 3), + r === 1 + ? (this.lastChar[0] = e[e.length - 1]) + : ((this.lastChar[0] = e[e.length - 2]), (this.lastChar[1] = e[e.length - 1])), + e.toString('base64', t, e.length - r)); + } + function uft(e) { + var t = e && e.length ? this.write(e) : ''; + return this.lastNeed ? t + this.lastChar.toString('base64', 0, 3 - this.lastNeed) : t; + } + function pft(e) { + return e.toString(this.encoding); + } + function cft(e) { + return e && e.length ? this.write(e) : ''; + } +}); +var P3 = d(($Xt, qhe) => { + 'use strict'; + var Dhe = mp().codes.ERR_STREAM_PREMATURE_CLOSE; + function dft(e) { + var t = !1; + return function () { + if (!t) { + t = !0; + for (var r = arguments.length, n = new Array(r), a = 0; a < r; a++) n[a] = arguments[a]; + e.apply(this, n); + } + }; + } + function fft() {} + function mft(e) { + return e.setHeader && typeof e.abort == 'function'; + } + function Nhe(e, t, r) { + if (typeof t == 'function') return Nhe(e, null, t); + t || (t = {}), (r = dft(r || fft)); + var n = t.readable || (t.readable !== !1 && e.readable), + a = t.writable || (t.writable !== !1 && e.writable), + o = function () { + e.writable || l(); + }, + s = e._writableState && e._writableState.finished, + l = function () { + (a = !1), (s = !0), n || r.call(e); + }, + u = e._readableState && e._readableState.endEmitted, + p = function () { + (n = !1), (u = !0), a || r.call(e); + }, + c = function (v) { + r.call(e, v); + }, + f = function () { + var v; + if (n && !u) return (!e._readableState || !e._readableState.ended) && (v = new Dhe()), r.call(e, v); + if (a && !s) return (!e._writableState || !e._writableState.ended) && (v = new Dhe()), r.call(e, v); + }, + h = function () { + e.req.on('finish', l); + }; + return ( + mft(e) + ? (e.on('complete', l), e.on('abort', f), e.req ? h() : e.on('request', h)) + : a && !e._writableState && (e.on('end', o), e.on('close', o)), + e.on('end', p), + e.on('finish', l), + t.error !== !1 && e.on('error', c), + e.on('close', f), + function () { + e.removeListener('complete', l), + e.removeListener('abort', f), + e.removeListener('request', h), + e.req && e.req.removeListener('finish', l), + e.removeListener('end', o), + e.removeListener('close', o), + e.removeListener('finish', l), + e.removeListener('end', p), + e.removeListener('error', c), + e.removeListener('close', f); + } + ); + } + qhe.exports = Nhe; +}); +var Lhe = d((BXt, Fhe) => { + 'use strict'; + var R3; + function gp(e, t, r) { + return ( + (t = hft(t)), + t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : (e[t] = r), + e + ); + } + function hft(e) { + var t = gft(e, 'string'); + return typeof t == 'symbol' ? t : String(t); + } + function gft(e, t) { + if (typeof e != 'object' || e === null) return e; + var r = e[Symbol.toPrimitive]; + if (r !== void 0) { + var n = r.call(e, t || 'default'); + if (typeof n != 'object') return n; + throw new TypeError('@@toPrimitive must return a primitive value.'); + } + return (t === 'string' ? String : Number)(e); + } + var vft = P3(), + vp = Symbol('lastResolve'), + fd = Symbol('lastReject'), + ty = Symbol('error'), + j3 = Symbol('ended'), + md = Symbol('lastPromise'), + OI = Symbol('handlePromise'), + hd = Symbol('stream'); + function yp(e, t) { + return { value: e, done: t }; + } + function yft(e) { + var t = e[vp]; + if (t !== null) { + var r = e[hd].read(); + r !== null && ((e[md] = null), (e[vp] = null), (e[fd] = null), t(yp(r, !1))); + } + } + function bft(e) { + process.nextTick(yft, e); + } + function _ft(e, t) { + return function (r, n) { + e.then(function () { + if (t[j3]) { + r(yp(void 0, !0)); + return; + } + t[OI](r, n); + }, n); + }; + } + var wft = Object.getPrototypeOf(function () {}), + Sft = Object.setPrototypeOf( + ((R3 = { + get stream() { + return this[hd]; + }, + next: function () { + var t = this, + r = this[ty]; + if (r !== null) return Promise.reject(r); + if (this[j3]) return Promise.resolve(yp(void 0, !0)); + if (this[hd].destroyed) + return new Promise(function (s, l) { + process.nextTick(function () { + t[ty] ? l(t[ty]) : s(yp(void 0, !0)); + }); + }); + var n = this[md], + a; + if (n) a = new Promise(_ft(n, this)); + else { + var o = this[hd].read(); + if (o !== null) return Promise.resolve(yp(o, !1)); + a = new Promise(this[OI]); + } + return (this[md] = a), a; + }, + }), + gp(R3, Symbol.asyncIterator, function () { + return this; + }), + gp(R3, 'return', function () { + var t = this; + return new Promise(function (r, n) { + t[hd].destroy(null, function (a) { + if (a) { + n(a); + return; + } + r(yp(void 0, !0)); + }); + }); + }), + R3), + wft + ), + Eft = function (t) { + var r, + n = Object.create( + Sft, + ((r = {}), + gp(r, hd, { value: t, writable: !0 }), + gp(r, vp, { value: null, writable: !0 }), + gp(r, fd, { value: null, writable: !0 }), + gp(r, ty, { value: null, writable: !0 }), + gp(r, j3, { value: t._readableState.endEmitted, writable: !0 }), + gp(r, OI, { + value: function (o, s) { + var l = n[hd].read(); + l ? ((n[md] = null), (n[vp] = null), (n[fd] = null), o(yp(l, !1))) : ((n[vp] = o), (n[fd] = s)); + }, + writable: !0, + }), + r) + ); + return ( + (n[md] = null), + vft(t, function (a) { + if (a && a.code !== 'ERR_STREAM_PREMATURE_CLOSE') { + var o = n[fd]; + o !== null && ((n[md] = null), (n[vp] = null), (n[fd] = null), o(a)), (n[ty] = a); + return; + } + var s = n[vp]; + s !== null && ((n[md] = null), (n[vp] = null), (n[fd] = null), s(yp(void 0, !0))), (n[j3] = !0); + }), + t.on('readable', bft.bind(null, n)), + n + ); + }; + Fhe.exports = Eft; +}); +var Bhe = d((VXt, $he) => { + 'use strict'; + function Mhe(e, t, r, n, a, o, s) { + try { + var l = e[o](s), + u = l.value; + } catch (p) { + r(p); + return; + } + l.done ? t(u) : Promise.resolve(u).then(n, a); + } + function xft(e) { + return function () { + var t = this, + r = arguments; + return new Promise(function (n, a) { + var o = e.apply(t, r); + function s(u) { + Mhe(o, n, a, s, l, 'next', u); + } + function l(u) { + Mhe(o, n, a, s, l, 'throw', u); + } + s(void 0); + }); + }; + } + function Uhe(e, t) { + var r = Object.keys(e); + if (Object.getOwnPropertySymbols) { + var n = Object.getOwnPropertySymbols(e); + t && + (n = n.filter(function (a) { + return Object.getOwnPropertyDescriptor(e, a).enumerable; + })), + r.push.apply(r, n); + } + return r; + } + function Oft(e) { + for (var t = 1; t < arguments.length; t++) { + var r = arguments[t] != null ? arguments[t] : {}; + t % 2 + ? Uhe(Object(r), !0).forEach(function (n) { + Tft(e, n, r[n]); + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) + : Uhe(Object(r)).forEach(function (n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n)); + }); + } + return e; + } + function Tft(e, t, r) { + return ( + (t = Cft(t)), + t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : (e[t] = r), + e + ); + } + function Cft(e) { + var t = kft(e, 'string'); + return typeof t == 'symbol' ? t : String(t); + } + function kft(e, t) { + if (typeof e != 'object' || e === null) return e; + var r = e[Symbol.toPrimitive]; + if (r !== void 0) { + var n = r.call(e, t || 'default'); + if (typeof n != 'object') return n; + throw new TypeError('@@toPrimitive must return a primitive value.'); + } + return (t === 'string' ? String : Number)(e); + } + var Aft = mp().codes.ERR_INVALID_ARG_TYPE; + function Ift(e, t, r) { + var n; + if (t && typeof t.next == 'function') n = t; + else if (t && t[Symbol.asyncIterator]) n = t[Symbol.asyncIterator](); + else if (t && t[Symbol.iterator]) n = t[Symbol.iterator](); + else throw new Aft('iterable', ['Iterable'], t); + var a = new e(Oft({ objectMode: !0 }, r)), + o = !1; + a._read = function () { + o || ((o = !0), s()); + }; + function s() { + return l.apply(this, arguments); + } + function l() { + return ( + (l = xft(function* () { + try { + var u = yield n.next(), + p = u.value, + c = u.done; + c ? a.push(null) : a.push(yield p) ? s() : (o = !1); + } catch (f) { + a.destroy(f); + } + })), + l.apply(this, arguments) + ); + } + return a; + } + $he.exports = Ift; +}); +var _I = d((HXt, Qhe) => { + 'use strict'; + Qhe.exports = tt; + var Eh; + tt.ReadableState = Ghe; + var zXt = require('events').EventEmitter, + Hhe = function (t, r) { + return t.listeners(r).length; + }, + iy = uI(), + D3 = require('buffer').Buffer, + Pft = + (typeof global < 'u' ? global : typeof window < 'u' ? window : typeof self < 'u' ? self : {}).Uint8Array || + function () {}; + function Rft(e) { + return D3.from(e); + } + function jft(e) { + return D3.isBuffer(e) || e instanceof Pft; + } + var TI = require('util'), + Fe; + TI && TI.debuglog ? (Fe = TI.debuglog('stream')) : (Fe = function () {}); + var Dft = mhe(), + jI = dI(), + Nft = fI(), + qft = Nft.getHighWaterMark, + N3 = mp().codes, + Fft = N3.ERR_INVALID_ARG_TYPE, + Lft = N3.ERR_STREAM_PUSH_AFTER_EOF, + Mft = N3.ERR_METHOD_NOT_IMPLEMENTED, + Uft = N3.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, + xh, + CI, + kI; + Va()(tt, iy); + var ry = jI.errorOrDestroy, + AI = ['error', 'close', 'destroy', 'pause', 'resume']; + function $ft(e, t, r) { + if (typeof e.prependListener == 'function') return e.prependListener(t, r); + !e._events || !e._events[t] + ? e.on(t, r) + : Array.isArray(e._events[t]) + ? e._events[t].unshift(r) + : (e._events[t] = [r, e._events[t]]); + } + function Ghe(e, t, r) { + (Eh = Eh || cd()), + (e = e || {}), + typeof r != 'boolean' && (r = t instanceof Eh), + (this.objectMode = !!e.objectMode), + r && (this.objectMode = this.objectMode || !!e.readableObjectMode), + (this.highWaterMark = qft(this, e, 'readableHighWaterMark', r)), + (this.buffer = new Dft()), + (this.length = 0), + (this.pipes = null), + (this.pipesCount = 0), + (this.flowing = null), + (this.ended = !1), + (this.endEmitted = !1), + (this.reading = !1), + (this.sync = !0), + (this.needReadable = !1), + (this.emittedReadable = !1), + (this.readableListening = !1), + (this.resumeScheduled = !1), + (this.paused = !0), + (this.emitClose = e.emitClose !== !1), + (this.autoDestroy = !!e.autoDestroy), + (this.destroyed = !1), + (this.defaultEncoding = e.defaultEncoding || 'utf8'), + (this.awaitDrain = 0), + (this.readingMore = !1), + (this.decoder = null), + (this.encoding = null), + e.encoding && + (xh || (xh = xI().StringDecoder), (this.decoder = new xh(e.encoding)), (this.encoding = e.encoding)); + } + function tt(e) { + if (((Eh = Eh || cd()), !(this instanceof tt))) return new tt(e); + var t = this instanceof Eh; + (this._readableState = new Ghe(e, this, t)), + (this.readable = !0), + e && + (typeof e.read == 'function' && (this._read = e.read), + typeof e.destroy == 'function' && (this._destroy = e.destroy)), + iy.call(this); + } + Object.defineProperty(tt.prototype, 'destroyed', { + enumerable: !1, + get: function () { + return this._readableState === void 0 ? !1 : this._readableState.destroyed; + }, + set: function (t) { + this._readableState && (this._readableState.destroyed = t); + }, + }); + tt.prototype.destroy = jI.destroy; + tt.prototype._undestroy = jI.undestroy; + tt.prototype._destroy = function (e, t) { + t(e); + }; + tt.prototype.push = function (e, t) { + var r = this._readableState, + n; + return ( + r.objectMode + ? (n = !0) + : typeof e == 'string' && + ((t = t || r.defaultEncoding), t !== r.encoding && ((e = D3.from(e, t)), (t = '')), (n = !0)), + Whe(this, e, t, !1, n) + ); + }; + tt.prototype.unshift = function (e) { + return Whe(this, e, null, !0, !1); + }; + function Whe(e, t, r, n, a) { + Fe('readableAddChunk', t); + var o = e._readableState; + if (t === null) (o.reading = !1), zft(e, o); + else { + var s; + if ((a || (s = Bft(o, t)), s)) ry(e, s); + else if (o.objectMode || (t && t.length > 0)) + if ((typeof t != 'string' && !o.objectMode && Object.getPrototypeOf(t) !== D3.prototype && (t = Rft(t)), n)) + o.endEmitted ? ry(e, new Uft()) : II(e, o, t, !0); + else if (o.ended) ry(e, new Lft()); + else { + if (o.destroyed) return !1; + (o.reading = !1), + o.decoder && !r + ? ((t = o.decoder.write(t)), o.objectMode || t.length !== 0 ? II(e, o, t, !1) : RI(e, o)) + : II(e, o, t, !1); + } + else n || ((o.reading = !1), RI(e, o)); + } + return !o.ended && (o.length < o.highWaterMark || o.length === 0); + } + function II(e, t, r, n) { + t.flowing && t.length === 0 && !t.sync + ? ((t.awaitDrain = 0), e.emit('data', r)) + : ((t.length += t.objectMode ? 1 : r.length), + n ? t.buffer.unshift(r) : t.buffer.push(r), + t.needReadable && q3(e)), + RI(e, t); + } + function Bft(e, t) { + var r; + return ( + !jft(t) && + typeof t != 'string' && + t !== void 0 && + !e.objectMode && + (r = new Fft('chunk', ['string', 'Buffer', 'Uint8Array'], t)), + r + ); + } + tt.prototype.isPaused = function () { + return this._readableState.flowing === !1; + }; + tt.prototype.setEncoding = function (e) { + xh || (xh = xI().StringDecoder); + var t = new xh(e); + (this._readableState.decoder = t), (this._readableState.encoding = this._readableState.decoder.encoding); + for (var r = this._readableState.buffer.head, n = ''; r !== null; ) (n += t.write(r.data)), (r = r.next); + return ( + this._readableState.buffer.clear(), + n !== '' && this._readableState.buffer.push(n), + (this._readableState.length = n.length), + this + ); + }; + var Vhe = 1073741824; + function Vft(e) { + return ( + e >= Vhe + ? (e = Vhe) + : (e--, (e |= e >>> 1), (e |= e >>> 2), (e |= e >>> 4), (e |= e >>> 8), (e |= e >>> 16), e++), + e + ); + } + function zhe(e, t) { + return e <= 0 || (t.length === 0 && t.ended) + ? 0 + : t.objectMode + ? 1 + : e !== e + ? t.flowing && t.length + ? t.buffer.head.data.length + : t.length + : (e > t.highWaterMark && (t.highWaterMark = Vft(e)), + e <= t.length ? e : t.ended ? t.length : ((t.needReadable = !0), 0)); + } + tt.prototype.read = function (e) { + Fe('read', e), (e = parseInt(e, 10)); + var t = this._readableState, + r = e; + if ( + (e !== 0 && (t.emittedReadable = !1), + e === 0 && t.needReadable && ((t.highWaterMark !== 0 ? t.length >= t.highWaterMark : t.length > 0) || t.ended)) + ) + return Fe('read: emitReadable', t.length, t.ended), t.length === 0 && t.ended ? PI(this) : q3(this), null; + if (((e = zhe(e, t)), e === 0 && t.ended)) return t.length === 0 && PI(this), null; + var n = t.needReadable; + Fe('need readable', n), + (t.length === 0 || t.length - e < t.highWaterMark) && ((n = !0), Fe('length less than watermark', n)), + t.ended || t.reading + ? ((n = !1), Fe('reading or ended', n)) + : n && + (Fe('do read'), + (t.reading = !0), + (t.sync = !0), + t.length === 0 && (t.needReadable = !0), + this._read(t.highWaterMark), + (t.sync = !1), + t.reading || (e = zhe(r, t))); + var a; + return ( + e > 0 ? (a = Jhe(e, t)) : (a = null), + a === null ? ((t.needReadable = t.length <= t.highWaterMark), (e = 0)) : ((t.length -= e), (t.awaitDrain = 0)), + t.length === 0 && (t.ended || (t.needReadable = !0), r !== e && t.ended && PI(this)), + a !== null && this.emit('data', a), + a + ); + }; + function zft(e, t) { + if ((Fe('onEofChunk'), !t.ended)) { + if (t.decoder) { + var r = t.decoder.end(); + r && r.length && (t.buffer.push(r), (t.length += t.objectMode ? 1 : r.length)); + } + (t.ended = !0), t.sync ? q3(e) : ((t.needReadable = !1), t.emittedReadable || ((t.emittedReadable = !0), Khe(e))); + } + } + function q3(e) { + var t = e._readableState; + Fe('emitReadable', t.needReadable, t.emittedReadable), + (t.needReadable = !1), + t.emittedReadable || (Fe('emitReadable', t.flowing), (t.emittedReadable = !0), process.nextTick(Khe, e)); + } + function Khe(e) { + var t = e._readableState; + Fe('emitReadable_', t.destroyed, t.length, t.ended), + !t.destroyed && (t.length || t.ended) && (e.emit('readable'), (t.emittedReadable = !1)), + (t.needReadable = !t.flowing && !t.ended && t.length <= t.highWaterMark), + DI(e); + } + function RI(e, t) { + t.readingMore || ((t.readingMore = !0), process.nextTick(Hft, e, t)); + } + function Hft(e, t) { + for (; !t.reading && !t.ended && (t.length < t.highWaterMark || (t.flowing && t.length === 0)); ) { + var r = t.length; + if ((Fe('maybeReadMore read 0'), e.read(0), r === t.length)) break; + } + t.readingMore = !1; + } + tt.prototype._read = function (e) { + ry(this, new Mft('_read()')); + }; + tt.prototype.pipe = function (e, t) { + var r = this, + n = this._readableState; + switch (n.pipesCount) { + case 0: + n.pipes = e; + break; + case 1: + n.pipes = [n.pipes, e]; + break; + default: + n.pipes.push(e); + break; + } + (n.pipesCount += 1), Fe('pipe count=%d opts=%j', n.pipesCount, t); + var a = (!t || t.end !== !1) && e !== process.stdout && e !== process.stderr, + o = a ? l : y; + n.endEmitted ? process.nextTick(o) : r.once('end', o), e.on('unpipe', s); + function s(S, w) { + Fe('onunpipe'), S === r && w && w.hasUnpiped === !1 && ((w.hasUnpiped = !0), c()); + } + function l() { + Fe('onend'), e.end(); + } + var u = Gft(r); + e.on('drain', u); + var p = !1; + function c() { + Fe('cleanup'), + e.removeListener('close', m), + e.removeListener('finish', v), + e.removeListener('drain', u), + e.removeListener('error', h), + e.removeListener('unpipe', s), + r.removeListener('end', l), + r.removeListener('end', y), + r.removeListener('data', f), + (p = !0), + n.awaitDrain && (!e._writableState || e._writableState.needDrain) && u(); + } + r.on('data', f); + function f(S) { + Fe('ondata'); + var w = e.write(S); + Fe('dest.write', w), + w === !1 && + (((n.pipesCount === 1 && n.pipes === e) || (n.pipesCount > 1 && Yhe(n.pipes, e) !== -1)) && + !p && + (Fe('false write response, pause', n.awaitDrain), n.awaitDrain++), + r.pause()); + } + function h(S) { + Fe('onerror', S), y(), e.removeListener('error', h), Hhe(e, 'error') === 0 && ry(e, S); + } + $ft(e, 'error', h); + function m() { + e.removeListener('finish', v), y(); + } + e.once('close', m); + function v() { + Fe('onfinish'), e.removeListener('close', m), y(); + } + e.once('finish', v); + function y() { + Fe('unpipe'), r.unpipe(e); + } + return e.emit('pipe', r), n.flowing || (Fe('pipe resume'), r.resume()), e; + }; + function Gft(e) { + return function () { + var r = e._readableState; + Fe('pipeOnDrain', r.awaitDrain), + r.awaitDrain && r.awaitDrain--, + r.awaitDrain === 0 && Hhe(e, 'data') && ((r.flowing = !0), DI(e)); + }; + } + tt.prototype.unpipe = function (e) { + var t = this._readableState, + r = { hasUnpiped: !1 }; + if (t.pipesCount === 0) return this; + if (t.pipesCount === 1) + return e && e !== t.pipes + ? this + : (e || (e = t.pipes), + (t.pipes = null), + (t.pipesCount = 0), + (t.flowing = !1), + e && e.emit('unpipe', this, r), + this); + if (!e) { + var n = t.pipes, + a = t.pipesCount; + (t.pipes = null), (t.pipesCount = 0), (t.flowing = !1); + for (var o = 0; o < a; o++) n[o].emit('unpipe', this, { hasUnpiped: !1 }); + return this; + } + var s = Yhe(t.pipes, e); + return s === -1 + ? this + : (t.pipes.splice(s, 1), + (t.pipesCount -= 1), + t.pipesCount === 1 && (t.pipes = t.pipes[0]), + e.emit('unpipe', this, r), + this); + }; + tt.prototype.on = function (e, t) { + var r = iy.prototype.on.call(this, e, t), + n = this._readableState; + return ( + e === 'data' + ? ((n.readableListening = this.listenerCount('readable') > 0), n.flowing !== !1 && this.resume()) + : e === 'readable' && + !n.endEmitted && + !n.readableListening && + ((n.readableListening = n.needReadable = !0), + (n.flowing = !1), + (n.emittedReadable = !1), + Fe('on readable', n.length, n.reading), + n.length ? q3(this) : n.reading || process.nextTick(Wft, this)), + r + ); + }; + tt.prototype.addListener = tt.prototype.on; + tt.prototype.removeListener = function (e, t) { + var r = iy.prototype.removeListener.call(this, e, t); + return e === 'readable' && process.nextTick(Xhe, this), r; + }; + tt.prototype.removeAllListeners = function (e) { + var t = iy.prototype.removeAllListeners.apply(this, arguments); + return (e === 'readable' || e === void 0) && process.nextTick(Xhe, this), t; + }; + function Xhe(e) { + var t = e._readableState; + (t.readableListening = e.listenerCount('readable') > 0), + t.resumeScheduled && !t.paused ? (t.flowing = !0) : e.listenerCount('data') > 0 && e.resume(); + } + function Wft(e) { + Fe('readable nexttick read 0'), e.read(0); + } + tt.prototype.resume = function () { + var e = this._readableState; + return e.flowing || (Fe('resume'), (e.flowing = !e.readableListening), Kft(this, e)), (e.paused = !1), this; + }; + function Kft(e, t) { + t.resumeScheduled || ((t.resumeScheduled = !0), process.nextTick(Xft, e, t)); + } + function Xft(e, t) { + Fe('resume', t.reading), + t.reading || e.read(0), + (t.resumeScheduled = !1), + e.emit('resume'), + DI(e), + t.flowing && !t.reading && e.read(0); + } + tt.prototype.pause = function () { + return ( + Fe('call pause flowing=%j', this._readableState.flowing), + this._readableState.flowing !== !1 && (Fe('pause'), (this._readableState.flowing = !1), this.emit('pause')), + (this._readableState.paused = !0), + this + ); + }; + function DI(e) { + var t = e._readableState; + for (Fe('flow', t.flowing); t.flowing && e.read() !== null; ); + } + tt.prototype.wrap = function (e) { + var t = this, + r = this._readableState, + n = !1; + e.on('end', function () { + if ((Fe('wrapped end'), r.decoder && !r.ended)) { + var s = r.decoder.end(); + s && s.length && t.push(s); + } + t.push(null); + }), + e.on('data', function (s) { + if ( + (Fe('wrapped data'), + r.decoder && (s = r.decoder.write(s)), + !(r.objectMode && s == null) && !(!r.objectMode && (!s || !s.length))) + ) { + var l = t.push(s); + l || ((n = !0), e.pause()); + } + }); + for (var a in e) + this[a] === void 0 && + typeof e[a] == 'function' && + (this[a] = (function (l) { + return function () { + return e[l].apply(e, arguments); + }; + })(a)); + for (var o = 0; o < AI.length; o++) e.on(AI[o], this.emit.bind(this, AI[o])); + return ( + (this._read = function (s) { + Fe('wrapped _read', s), n && ((n = !1), e.resume()); + }), + this + ); + }; + typeof Symbol == 'function' && + (tt.prototype[Symbol.asyncIterator] = function () { + return CI === void 0 && (CI = Lhe()), CI(this); + }); + Object.defineProperty(tt.prototype, 'readableHighWaterMark', { + enumerable: !1, + get: function () { + return this._readableState.highWaterMark; + }, + }); + Object.defineProperty(tt.prototype, 'readableBuffer', { + enumerable: !1, + get: function () { + return this._readableState && this._readableState.buffer; + }, + }); + Object.defineProperty(tt.prototype, 'readableFlowing', { + enumerable: !1, + get: function () { + return this._readableState.flowing; + }, + set: function (t) { + this._readableState && (this._readableState.flowing = t); + }, + }); + tt._fromList = Jhe; + Object.defineProperty(tt.prototype, 'readableLength', { + enumerable: !1, + get: function () { + return this._readableState.length; + }, + }); + function Jhe(e, t) { + if (t.length === 0) return null; + var r; + return ( + t.objectMode + ? (r = t.buffer.shift()) + : !e || e >= t.length + ? (t.decoder + ? (r = t.buffer.join('')) + : t.buffer.length === 1 + ? (r = t.buffer.first()) + : (r = t.buffer.concat(t.length)), + t.buffer.clear()) + : (r = t.buffer.consume(e, t.decoder)), + r + ); + } + function PI(e) { + var t = e._readableState; + Fe('endReadable', t.endEmitted), t.endEmitted || ((t.ended = !0), process.nextTick(Jft, t, e)); + } + function Jft(e, t) { + if ( + (Fe('endReadableNT', e.endEmitted, e.length), + !e.endEmitted && e.length === 0 && ((e.endEmitted = !0), (t.readable = !1), t.emit('end'), e.autoDestroy)) + ) { + var r = t._writableState; + (!r || (r.autoDestroy && r.finished)) && t.destroy(); + } + } + typeof Symbol == 'function' && + (tt.from = function (e, t) { + return kI === void 0 && (kI = Bhe()), kI(tt, e, t); + }); + function Yhe(e, t) { + for (var r = 0, n = e.length; r < n; r++) if (e[r] === t) return r; + return -1; + } +}); +var NI = d((GXt, ege) => { + 'use strict'; + ege.exports = Xl; + var F3 = mp().codes, + Yft = F3.ERR_METHOD_NOT_IMPLEMENTED, + Qft = F3.ERR_MULTIPLE_CALLBACK, + Zft = F3.ERR_TRANSFORM_ALREADY_TRANSFORMING, + emt = F3.ERR_TRANSFORM_WITH_LENGTH_0, + L3 = cd(); + Va()(Xl, L3); + function tmt(e, t) { + var r = this._transformState; + r.transforming = !1; + var n = r.writecb; + if (n === null) return this.emit('error', new Qft()); + (r.writechunk = null), (r.writecb = null), t != null && this.push(t), n(e); + var a = this._readableState; + (a.reading = !1), (a.needReadable || a.length < a.highWaterMark) && this._read(a.highWaterMark); + } + function Xl(e) { + if (!(this instanceof Xl)) return new Xl(e); + L3.call(this, e), + (this._transformState = { + afterTransform: tmt.bind(this), + needTransform: !1, + transforming: !1, + writecb: null, + writechunk: null, + writeencoding: null, + }), + (this._readableState.needReadable = !0), + (this._readableState.sync = !1), + e && + (typeof e.transform == 'function' && (this._transform = e.transform), + typeof e.flush == 'function' && (this._flush = e.flush)), + this.on('prefinish', rmt); + } + function rmt() { + var e = this; + typeof this._flush == 'function' && !this._readableState.destroyed + ? this._flush(function (t, r) { + Zhe(e, t, r); + }) + : Zhe(this, null, null); + } + Xl.prototype.push = function (e, t) { + return (this._transformState.needTransform = !1), L3.prototype.push.call(this, e, t); + }; + Xl.prototype._transform = function (e, t, r) { + r(new Yft('_transform()')); + }; + Xl.prototype._write = function (e, t, r) { + var n = this._transformState; + if (((n.writecb = r), (n.writechunk = e), (n.writeencoding = t), !n.transforming)) { + var a = this._readableState; + (n.needTransform || a.needReadable || a.length < a.highWaterMark) && this._read(a.highWaterMark); + } + }; + Xl.prototype._read = function (e) { + var t = this._transformState; + t.writechunk !== null && !t.transforming + ? ((t.transforming = !0), this._transform(t.writechunk, t.writeencoding, t.afterTransform)) + : (t.needTransform = !0); + }; + Xl.prototype._destroy = function (e, t) { + L3.prototype._destroy.call(this, e, function (r) { + t(r); + }); + }; + function Zhe(e, t, r) { + if (t) return e.emit('error', t); + if ((r != null && e.push(r), e._writableState.length)) throw new emt(); + if (e._transformState.transforming) throw new Zft(); + return e.push(null); + } +}); +var ige = d((WXt, rge) => { + 'use strict'; + rge.exports = ny; + var tge = NI(); + Va()(ny, tge); + function ny(e) { + if (!(this instanceof ny)) return new ny(e); + tge.call(this, e); + } + ny.prototype._transform = function (e, t, r) { + r(null, e); + }; +}); +var lge = d((KXt, sge) => { + 'use strict'; + var qI; + function imt(e) { + var t = !1; + return function () { + t || ((t = !0), e.apply(void 0, arguments)); + }; + } + var oge = mp().codes, + nmt = oge.ERR_MISSING_ARGS, + amt = oge.ERR_STREAM_DESTROYED; + function nge(e) { + if (e) throw e; + } + function omt(e) { + return e.setHeader && typeof e.abort == 'function'; + } + function smt(e, t, r, n) { + n = imt(n); + var a = !1; + e.on('close', function () { + a = !0; + }), + qI === void 0 && (qI = P3()), + qI(e, { readable: t, writable: r }, function (s) { + if (s) return n(s); + (a = !0), n(); + }); + var o = !1; + return function (s) { + if (!a && !o) { + if (((o = !0), omt(e))) return e.abort(); + if (typeof e.destroy == 'function') return e.destroy(); + n(s || new amt('pipe')); + } + }; + } + function age(e) { + e(); + } + function lmt(e, t) { + return e.pipe(t); + } + function umt(e) { + return !e.length || typeof e[e.length - 1] != 'function' ? nge : e.pop(); + } + function pmt() { + for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r]; + var n = umt(t); + if ((Array.isArray(t[0]) && (t = t[0]), t.length < 2)) throw new nmt('streams'); + var a, + o = t.map(function (s, l) { + var u = l < t.length - 1, + p = l > 0; + return smt(s, u, p, function (c) { + a || (a = c), c && o.forEach(age), !u && (o.forEach(age), n(a)); + }); + }); + return t.reduce(lmt); + } + sge.exports = pmt; +}); +var uge = d((Ha, oy) => { + var ay = require('stream'); + process.env.READABLE_STREAM === 'disable' && ay + ? ((oy.exports = ay.Readable), Object.assign(oy.exports, ay), (oy.exports.Stream = ay)) + : ((Ha = oy.exports = _I()), + (Ha.Stream = ay || Ha), + (Ha.Readable = Ha), + (Ha.Writable = vI()), + (Ha.Duplex = cd()), + (Ha.Transform = NI()), + (Ha.PassThrough = ige()), + (Ha.finished = P3()), + (Ha.pipeline = lge())); +}); +var dge = d((XXt, cge) => { + cge.exports = Ga; + var cmt = Va(), + FI = uge(); + cmt(Ga, FI.Readable); + function Ga(e, t) { + var r = this; + if (!(r instanceof Ga)) return new Ga(e, t); + FI.Readable.call(r, t), + (r.destroyed = !1), + (r._drained = !1), + (r._forwarding = !1), + (r._current = null), + (r._toStreams2 = t && t.objectMode ? dmt : fmt), + typeof e == 'function' + ? (r._queue = e) + : ((r._queue = e.map(r._toStreams2)), + r._queue.forEach(function (n) { + typeof n != 'function' && r._attachErrorListener(n); + })), + r._next(); + } + Ga.obj = function (e) { + return new Ga(e, { objectMode: !0, highWaterMark: 16 }); + }; + Ga.prototype._read = function () { + (this._drained = !0), this._forward(); + }; + Ga.prototype._forward = function () { + if (!(this._forwarding || !this._drained || !this._current)) { + this._forwarding = !0; + for (var e; (e = this._current.read()) !== null && this._drained; ) this._drained = this.push(e); + this._forwarding = !1; + } + }; + Ga.prototype.destroy = function (e) { + this.destroyed || + ((this.destroyed = !0), + this._current && this._current.destroy && this._current.destroy(), + typeof this._queue != 'function' && + this._queue.forEach(function (t) { + t.destroy && t.destroy(); + }), + e && this.emit('error', e), + this.emit('close')); + }; + Ga.prototype._next = function () { + var e = this; + if (((e._current = null), typeof e._queue == 'function')) + e._queue(function (r, n) { + if (r) return e.destroy(r); + (n = e._toStreams2(n)), e._attachErrorListener(n), e._gotNextStream(n); + }); + else { + var t = e._queue.shift(); + typeof t == 'function' && ((t = e._toStreams2(t())), e._attachErrorListener(t)), e._gotNextStream(t); + } + }; + Ga.prototype._gotNextStream = function (e) { + var t = this; + if (!e) { + t.push(null), t.destroy(); + return; + } + (t._current = e), t._forward(), e.on('readable', r), e.once('end', a), e.once('close', n); + function r() { + t._forward(); + } + function n() { + e._readableState.ended || t.destroy(); + } + function a() { + (t._current = null), + e.removeListener('readable', r), + e.removeListener('end', a), + e.removeListener('close', n), + t._next(); + } + }; + Ga.prototype._attachErrorListener = function (e) { + var t = this; + if (!e) return; + e.once('error', r); + function r(n) { + e.removeListener('error', r), t.destroy(n); + } + }; + function dmt(e) { + return pge(e, { objectMode: !0, highWaterMark: 16 }); + } + function fmt(e) { + return pge(e); + } + function pge(e, t) { + if (!e || typeof e == 'function' || e._readableState) return e; + var r = new FI.Readable(t).wrap(e); + return e.destroy && (r.destroy = e.destroy.bind(e)), r; + } +}); +var sy = d((Jl) => { + 'use strict'; + var mmt = ge(); + mmt(Jl, '__esModule', { value: !0 }); + Jl.isObject = fge; + Jl.isMapObject = hmt; + Jl.isFunction = mge; + Jl.isNumber = gmt; + Jl.isPromiseLike = vmt; + Jl.identityFunc = ymt; + Jl.emptyFunc = bmt; + function fge(e) { + let t = typeof e; + return e != null && (t == 'object' || t == 'function'); + } + function hmt(e) { + let t = typeof e; + return e != null && t == 'object'; + } + function mge(e) { + return typeof e == 'function'; + } + function gmt(e) { + return typeof e == 'number'; + } + function vmt(e) { + return fge(e) && mge(e.then); + } + function ymt(e) { + return e; + } + function bmt() {} +}); +var Age = d((Xi) => { + 'use strict'; + var Ii = Ce(), + Sge = ge(), + _mt = Ur(), + hge = $r(), + gge = Bt(), + Ege = Br(), + wmt = Qt(), + vge = Vr(), + Smt = Ve(); + kr(); + Zt(); + Vc(); + Sge(Xi, '__esModule', { value: !0 }); + Xi.default = Xi.IngestJobV2 = Xi.QueryJobV2 = Xi.BulkV2 = Xi.Bulk = Xi.Batch = Xi.Job = void 0; + var ni = Ii(Vme()), + Emt = Ii(hv()), + B3 = Ii(Nm()), + hy = Ii(sa()), + Ee = Ii(Hme()), + Hr = Ii(Wme()), + BI = Ii(jn()), + VI = Ii(Gm()), + xmt = Ii(Tm()), + xge = Ii(Ve()), + WI = Ii(Ro()), + Ch = Ii(Da()), + wy = Ii(cn()), + yge = Ii(ohe()), + rt = Ii(Ye()), + KI = require('events'), + Oge = require('stream'), + Omt = Ii(dge()), + Th = Ww(), + XI = Ii(Rv()), + Tge = $a(), + Cge = vv(), + gy = sy(); + function bge(e, t) { + var r = Smt(e); + if (vge) { + var n = vge(e); + t && + (n = wmt(n).call(n, function (a) { + return Ege(e, a).enumerable; + })), + r.push.apply(r, n); + } + return r; + } + function As(e) { + for (var t = 1; t < arguments.length; t++) { + var r = arguments[t] != null ? arguments[t] : {}; + if (t % 2) { + var n; + gge((n = bge(Object(r), !0))).call(n, function (o) { + (0, rt.default)(e, o, r[o]); + }); + } else if (hge) _mt(e, hge(r)); + else { + var a; + gge((a = bge(Object(r)))).call(a, function (o) { + Sge(e, o, Ege(r, o)); + }); + } + } + return e; + } + var vy = class extends KI.EventEmitter { + constructor(t, r, n, a, o) { + super(), + (0, rt.default)(this, 'type', void 0), + (0, rt.default)(this, 'operation', void 0), + (0, rt.default)(this, 'options', void 0), + (0, rt.default)(this, 'id', void 0), + (0, rt.default)(this, 'state', void 0), + (0, rt.default)(this, '_bulk', void 0), + (0, rt.default)(this, '_batches', void 0), + (0, rt.default)(this, '_jobInfo', void 0), + (0, rt.default)(this, '_error', void 0), + (this._bulk = t), + (this.type = r), + (this.operation = n), + (this.options = a || {}), + (this.id = o ?? null), + (this.state = this.id ? 'Open' : 'Unknown'), + (this._batches = {}), + this.on('error', (s) => (this._error = s)); + } + info() { + return this._jobInfo || (this._jobInfo = this.check()), this._jobInfo; + } + open() { + let t = this._bulk, + r = this.options; + if (!this.type || !this.operation) throw new Error('type / operation is required to open a new job'); + if (!this._jobInfo) { + var n; + let a = this.operation.toLowerCase(); + a === 'harddelete' && (a = 'hardDelete'), a === 'queryall' && (a = 'queryAll'); + let o = (0, yge.default)( + (n = ` + + + ${a} + ${this.type} + ${r.extIdField ? `${r.extIdField}` : ''} + ${r.concurrencyMode ? `${r.concurrencyMode}` : ''} + ${r.assignmentRuleId ? `${r.assignmentRuleId}` : ''} + CSV + + `) + ).call(n); + this._jobInfo = (async () => { + try { + let s = await t._request({ + method: 'POST', + path: '/job', + body: o, + headers: { 'Content-Type': 'application/xml; charset=utf-8' }, + responseType: 'application/xml', + }); + return this.emit('open', s.jobInfo), (this.id = s.jobInfo.id), (this.state = s.jobInfo.state), s.jobInfo; + } catch (s) { + throw (this.emit('error', s), s); + } + })(); + } + return this._jobInfo; + } + createBatch() { + let t = new yy(this); + return ( + t.on('queue', () => { + this._batches[t.id] = t; + }), + t + ); + } + batch(t) { + let r = this._batches[t]; + return r || ((r = new yy(this, t)), (this._batches[t] = r)), r; + } + check() { + let t = this._bulk, + r = t._logger; + return ( + (this._jobInfo = (async () => { + let n = await this.ready(), + a = await t._request({ method: 'GET', path: '/job/' + n, responseType: 'application/xml' }); + return ( + r.debug(a.jobInfo), + (this.id = a.jobInfo.id), + (this.type = a.jobInfo.object), + (this.operation = a.jobInfo.operation), + (this.state = a.jobInfo.state), + a.jobInfo + ); + })()), + this._jobInfo + ); + } + ready() { + return this.id ? wy.default.resolve(this.id) : this.open().then(({ id: t }) => t); + } + async list() { + let t = this._bulk, + r = t._logger, + n = await this.ready(), + a = await t._request({ method: 'GET', path: '/job/' + n + '/batch', responseType: 'application/xml' }); + return ( + r.debug(a.batchInfoList.batchInfo), + (0, Ch.default)(a.batchInfoList.batchInfo) ? a.batchInfoList.batchInfo : [a.batchInfoList.batchInfo] + ); + } + async close() { + if (this.id) + try { + let t = await this._changeState('Closed'); + return (this.id = null), this.emit('close', t), t; + } catch (t) { + throw (this.emit('error', t), t); + } + } + async abort() { + if (this.id) + try { + let t = await this._changeState('Aborted'); + return (this.id = null), this.emit('abort', t), t; + } catch (t) { + throw (this.emit('error', t), t); + } + } + async _changeState(t) { + let r = this._bulk, + n = r._logger; + return ( + (this._jobInfo = (async () => { + var a; + let o = await this.ready(), + s = (0, yge.default)( + (a = ` + + + ${t} + + `) + ).call(a), + l = await r._request({ + method: 'POST', + path: '/job/' + o, + body: s, + headers: { 'Content-Type': 'application/xml; charset=utf-8' }, + responseType: 'application/xml', + }); + return n.debug(l.jobInfo), (this.state = l.jobInfo.state), l.jobInfo; + })()), + this._jobInfo + ); + } + }; + Xi.Job = vy; + var zI = class extends Error { + constructor(t, r, n) { + super(t), + (0, rt.default)(this, 'jobId', void 0), + (0, rt.default)(this, 'batchId', void 0), + (this.name = 'PollingTimeout'), + (this.jobId = r), + (this.batchId = n); + } + }, + V3 = class extends Error { + constructor(t, r) { + super(t), (0, rt.default)(this, 'jobId', void 0), (this.name = 'JobPollingTimeout'), (this.jobId = r); + } + }, + yy = class extends Oge.Writable { + constructor(t, r) { + super({ objectMode: !0 }), + (0, rt.default)(this, 'job', void 0), + (0, rt.default)(this, 'id', void 0), + (0, rt.default)(this, '_bulk', void 0), + (0, rt.default)(this, '_uploadStream', void 0), + (0, rt.default)(this, '_downloadStream', void 0), + (0, rt.default)(this, '_dataStream', void 0), + (0, rt.default)(this, '_result', void 0), + (0, rt.default)(this, '_error', void 0), + (0, rt.default)(this, 'run', this.execute), + (0, rt.default)(this, 'exec', this.execute), + (this.job = t), + (this.id = r), + (this._bulk = t._bulk), + this.on('error', (u) => (this._error = u)); + let n = { nullValue: '#N/A' }, + a = (this._uploadStream = new Th.Serializable()), + o = a.stream('csv', n), + l = (this._downloadStream = new Th.Parsable()).stream('csv', n); + this.on('finish', () => a.end()), + o.once('readable', async () => { + try { + await this.job.ready(), o.pipe(this._createRequestStream()); + } catch (u) { + this.emit('error', u); + } + }), + (this._dataStream = (0, Cge.concatStreamsAsDuplex)(o, l)); + } + _createRequestStream() { + let t = this._bulk, + r = t._logger, + n = t._request({ + method: 'POST', + path: '/job/' + this.job.id + '/batch', + headers: { 'Content-Type': 'text/csv' }, + responseType: 'application/xml', + }); + return ( + (async () => { + try { + let a = await n; + r.debug(a.batchInfo), (this.id = a.batchInfo.id), this.emit('queue', a.batchInfo); + } catch (a) { + this.emit('error', a); + } + })(), + n.stream() + ); + } + _write(t, r, n) { + let { Id: a, type: o, attributes: s } = t, + l = (0, WI.default)(t, ['Id', 'type', 'attributes']), + u; + switch (this.job.operation) { + case 'insert': + u = l; + break; + case 'delete': + case 'hardDelete': + u = { Id: a }; + break; + default: + u = As({ Id: a }, l); + } + this._uploadStream.write(u, r, n); + } + stream() { + return this._dataStream; + } + execute(t) { + if (this._result) throw new Error('Batch already executed.'); + if ( + ((this._result = new wy.default((r, n) => { + this.once('response', r), this.once('error', n); + })), + (0, gy.isObject)(t) && 'pipe' in t && (0, gy.isFunction)(t.pipe)) + ) + t.pipe(this._dataStream); + else if ((0, Ch.default)(t)) { + for (let r of t) { + for (let n of (0, xge.default)(r)) typeof r[n] == 'boolean' && (r[n] = String(r[n])); + this.write(r); + } + this.end(); + } else typeof t == 'string' && (this._dataStream.write(t, 'utf8'), this._dataStream.end()); + return this; + } + then(t, r) { + return this._result || this.execute(), this._result.then(t, r); + } + async check() { + let t = this._bulk, + r = t._logger, + n = this.job.id, + a = this.id; + if (!n || !a) throw new Error('Batch not started.'); + let o = await t._request({ method: 'GET', path: '/job/' + n + '/batch/' + a, responseType: 'application/xml' }); + return r.debug(o.batchInfo), o.batchInfo; + } + poll(t, r) { + let n = this.job.id, + a = this.id; + if (!n || !a) throw new Error('Batch not started.'); + let o = new Date().getTime(), + s = async () => { + let l = new Date().getTime(); + if (o + r < l) { + let p = new zI('Polling time out. Job Id = ' + n + ' , batch Id = ' + a, n, a); + this.emit('error', p); + return; + } + let u; + try { + u = await this.check(); + } catch (p) { + this.emit('error', p); + return; + } + u.state === 'Failed' + ? (0, xmt.default)(u.numberRecordsProcessed, 10) > 0 + ? this.retrieve() + : this.emit('error', new Error(u.stateMessage)) + : u.state === 'Completed' + ? this.retrieve() + : (this.emit('progress', u), (0, VI.default)(s, t)); + }; + (0, VI.default)(s, t); + } + async retrieve() { + let t = this._bulk, + r = this.job.id, + n = this.job, + a = this.id; + if (!r || !a) throw new Error('Batch not started.'); + try { + let s = await t._request({ method: 'GET', path: '/job/' + r + '/batch/' + a + '/result' }), + l; + if (n.operation === 'query' || n.operation === 'queryAll') { + var o; + let p = s['result-list'].result; + l = (0, BI.default)((o = (0, Ch.default)(p) ? p : [p])).call(o, (c) => ({ id: c, batchId: a, jobId: r })); + } else { + let u = s; + l = (0, BI.default)(u).call(u, (p) => ({ + id: p.Id || null, + success: p.Success === 'true', + errors: p.Error ? [p.Error] : [], + })); + } + return this.emit('response', l), l; + } catch (s) { + throw (this.emit('error', s), s); + } + } + result(t) { + let r = this.job.id, + n = this.id; + if (!r || !n) throw new Error('Batch not started.'); + let a = new Th.Parsable(), + o = a.stream('csv'); + return ( + this._bulk + ._request({ + method: 'GET', + path: '/job/' + r + '/batch/' + n + '/result/' + t, + responseType: 'application/octet-stream', + }) + .stream() + .pipe(o), + a + ); + } + }; + Xi.Batch = yy; + var HI = class extends XI.default { + beforeSend(t) { + var r; + t.headers = As( + As({}, t.headers), + {}, + { 'X-SFDC-SESSION': (r = this._conn.accessToken) !== null && r !== void 0 ? r : '' } + ); + } + isSessionExpired(t) { + return t.statusCode === 400 && /InvalidSessionId<\/exceptionCode>/.test(t.body); + } + hasErrorInResponseBody(t) { + return !!t.error; + } + parseError(t) { + return { errorCode: t.error.exceptionCode, message: t.error.exceptionMessage }; + } + }, + z3 = class extends XI.default { + hasErrorInResponseBody(t) { + return (0, Ch.default)(t) && typeof t[0] == 'object' && 'errorCode' in t[0]; + } + isSessionExpired(t) { + return t.statusCode === 401 && /INVALID_SESSION_ID/.test(t.body); + } + parseError(t) { + return { errorCode: t[0].errorCode, message: t[0].message }; + } + }, + by = class { + constructor(t) { + (0, rt.default)(this, '_conn', void 0), + (0, rt.default)(this, '_logger', void 0), + (0, rt.default)(this, 'pollInterval', 1e3), + (0, rt.default)(this, 'pollTimeout', 1e4), + (this._conn = t), + (this._logger = t._logger); + } + _request(t) { + let r = this._conn, + { path: n, responseType: a } = t, + o = (0, WI.default)(t, ['path', 'responseType']), + s = [r.instanceUrl, 'services/async', r.version].join('/'), + l = As(As({}, o), {}, { url: s + n }); + return new HI(this._conn, { responseType: a }).request(l); + } + load(t, r, n, a) { + let o = {}; + typeof n == 'string' || + (0, Ch.default)(n) || + ((0, gy.isObject)(n) && 'pipe' in n && typeof n.pipe == 'function') + ? (a = n) + : (o = n); + let s = this.createJob(t, r, o), + l = s.createBatch(), + u = () => s.close(), + p = (c) => { + c.name !== 'PollingTimeout' && u(); + }; + return ( + l.on('response', u), + l.on('error', p), + l.on('queue', () => { + l?.poll(this.pollInterval, this.pollTimeout); + }), + l.execute(a) + ); + } + query(t) { + let r = t.replace(/\([\s\S]+\)/g, '').match(/FROM\s+(\w+)/i); + if (!r) throw new Error('No sobject type found in query, maybe caused by invalid SOQL.'); + let n = r[1], + a = new Th.Parsable(), + o = a.stream('csv'); + return ( + (async () => { + try { + let s = await this.load(n, 'query', t), + l = (0, BI.default)(s).call(s, (u) => this.job(u.jobId).batch(u.batchId).result(u.id).stream()); + (0, Omt.default)(l).pipe(o); + } catch (s) { + a.emit('error', s); + } + })(), + a + ); + } + createJob(t, r, n = {}) { + return new vy(this, t, r, n); + } + job(t) { + return new vy(this, null, null, null, t); + } + }; + Xi.Bulk = by; + var ly = new ni.default(), + H3 = class { + constructor(t) { + ly.set(this, { writable: !0, value: void 0 }), + (0, rt.default)(this, 'pollInterval', 1e3), + (0, rt.default)(this, 'pollTimeout', 1e4), + (0, Hr.default)(this, ly, t); + } + createJob(t) { + return new _y({ connection: (0, Ee.default)(this, ly), jobInfo: t, pollingOptions: this }); + } + job(t) { + return new _y({ connection: (0, Ee.default)(this, ly), jobInfo: t, pollingOptions: this }); + } + async loadAndWaitForResults(t) { + t.pollTimeout || (t.pollTimeout = this.pollTimeout), t.pollInterval || (t.pollInterval = this.pollInterval); + let r = this.createJob(t); + try { + return ( + await r.open(), + await r.uploadData(t.input), + await r.close(), + await r.poll(t.pollInterval, t.pollTimeout), + await r.getAllResults() + ); + } catch (n) { + throw (n.name !== 'JobPollingTimeoutError' && r.delete().catch((a) => a), n); + } + } + async query(t, r) { + let n = new G3({ + connection: (0, Ee.default)(this, ly), + operation: r != null && r.scanAll ? 'queryAll' : 'query', + query: t, + pollingOptions: this, + }); + try { + return await n.open(), await n.poll(r?.pollInterval, r?.pollTimeout), await n.getResults(); + } catch (a) { + throw (a.name !== 'JobPollingTimeoutError' && n.delete().catch((o) => o), a); + } + } + }; + Xi.BulkV2 = H3; + var bp = new ni.default(), + LI = new ni.default(), + MI = new ni.default(), + M3 = new ni.default(), + gd = new ni.default(), + _ge = new ni.default(), + G3 = class extends KI.EventEmitter { + constructor(t) { + super(), + bp.set(this, { writable: !0, value: void 0 }), + LI.set(this, { writable: !0, value: void 0 }), + MI.set(this, { writable: !0, value: void 0 }), + M3.set(this, { writable: !0, value: void 0 }), + gd.set(this, { writable: !0, value: void 0 }), + _ge.set(this, { writable: !0, value: void 0 }), + (0, rt.default)(this, 'jobInfo', void 0), + (0, rt.default)(this, 'locator', void 0), + (0, rt.default)(this, 'finished', !1), + (0, Hr.default)(this, bp, t.connection), + (0, Hr.default)(this, LI, t.operation), + (0, Hr.default)(this, MI, t.query), + (0, Hr.default)(this, M3, t.pollingOptions), + this.on('error', (r) => (0, Hr.default)(this, _ge, r)); + } + async open() { + try { + (this.jobInfo = await this.createQueryRequest({ + method: 'POST', + path: '', + body: (0, hy.default)({ operation: (0, Ee.default)(this, LI), query: (0, Ee.default)(this, MI) }), + headers: { 'Content-Type': 'application/json; charset=utf-8' }, + responseType: 'application/json', + })), + this.emit('open'); + } catch (t) { + throw (this.emit('error', t), t); + } + } + async abort() { + try { + var t; + let r = 'Aborted'; + (this.jobInfo = await this.createQueryRequest({ + method: 'PATCH', + path: `/${(t = this.jobInfo) === null || t === void 0 ? void 0 : t.id}`, + body: (0, hy.default)({ state: r }), + headers: { 'Content-Type': 'application/json; charset=utf-8' }, + responseType: 'application/json', + })), + this.emit('aborted'); + } catch (r) { + throw (this.emit('error', r), r); + } + } + async poll(t = (0, Ee.default)(this, M3).pollInterval, r = (0, Ee.default)(this, M3).pollTimeout) { + let n = ks(this.jobInfo), + a = (0, B3.default)(); + for (; a + r > (0, B3.default)(); ) + try { + switch ((await this.check()).state) { + case 'Open': + throw new Error('Job has not been started'); + case 'Aborted': + throw new Error('Job has been aborted'); + case 'UploadComplete': + case 'InProgress': + await kge(t); + break; + case 'Failed': + this.emit('failed', new Error('Query job failed to complete.')); + return; + case 'JobComplete': + this.emit('jobcomplete'); + return; + } + } catch (s) { + throw (this.emit('error', s), s); + } + let o = new V3(`Polling timed out after ${r}ms. Job Id = ${n}`, n); + throw (this.emit('error', o), o); + } + async check() { + try { + let t = await this.createQueryRequest({ + method: 'GET', + path: `/${ks(this.jobInfo)}`, + responseType: 'application/json', + }); + return (this.jobInfo = t), t; + } catch (t) { + throw (this.emit('error', t), t); + } + } + request(t, r = {}) { + let n = typeof t == 'string' ? { method: 'GET', url: t } : t, + a = new XI.default((0, Ee.default)(this, bp), r); + return ( + a.on('response', (o) => { + this.locator = o.headers['sforce-locator']; + }), + a.request(n) + ); + } + getResultsUrl() { + let t = `${(0, Ee.default)(this, bp).instanceUrl}/services/data/v${ + (0, Ee.default)(this, bp).version + }/jobs/query/${ks(this.jobInfo)}/results`; + return this.locator ? `${t}?locator=${this.locator}` : t; + } + async getResults() { + if (this.finished && (0, Ee.default)(this, gd)) return (0, Ee.default)(this, gd); + for ((0, Hr.default)(this, gd, []); this.locator !== 'null'; ) { + var t; + let r = await this.request({ method: 'GET', url: this.getResultsUrl(), headers: { Accept: 'text/csv' } }); + (0, Hr.default)(this, gd, (0, Emt.default)((t = (0, Ee.default)(this, gd))).call(t, r)); + } + return (this.finished = !0), (0, Ee.default)(this, gd); + } + async delete() { + return this.createQueryRequest({ method: 'DELETE', path: `/${ks(this.jobInfo)}` }); + } + createQueryRequest(t) { + let { path: r, responseType: n } = t, + a = [ + (0, Ee.default)(this, bp).instanceUrl, + 'services/data', + `v${(0, Ee.default)(this, bp).version}`, + 'jobs/query', + ].join('/'); + return new z3((0, Ee.default)(this, bp), { responseType: n }).request(As(As({}, t), {}, { url: a + r })); + } + }; + Xi.QueryJobV2 = G3; + var uy = new ni.default(), + U3 = new ni.default(), + UI = new ni.default(), + py = new ni.default(), + cy = new ni.default(), + dy = new ni.default(), + wge = new ni.default(), + _y = class extends KI.EventEmitter { + constructor(t) { + super(), + uy.set(this, { writable: !0, value: void 0 }), + U3.set(this, { writable: !0, value: void 0 }), + UI.set(this, { writable: !0, value: void 0 }), + py.set(this, { writable: !0, value: void 0 }), + cy.set(this, { writable: !0, value: void 0 }), + dy.set(this, { writable: !0, value: void 0 }), + wge.set(this, { writable: !0, value: void 0 }), + (0, rt.default)(this, 'jobInfo', void 0), + (0, Hr.default)(this, uy, t.connection), + (0, Hr.default)(this, U3, t.pollingOptions), + (this.jobInfo = t.jobInfo), + (0, Hr.default)(this, UI, new GI({ createRequest: (r) => this.createIngestRequest(r), job: this })), + this.on('error', (r) => (0, Hr.default)(this, wge, r)); + } + get id() { + return this.jobInfo.id; + } + async open() { + try { + var t, r, n, a, o; + (this.jobInfo = await this.createIngestRequest({ + method: 'POST', + path: '', + body: (0, hy.default)({ + assignmentRuleId: (t = this.jobInfo) === null || t === void 0 ? void 0 : t.assignmentRuleId, + externalIdFieldName: (r = this.jobInfo) === null || r === void 0 ? void 0 : r.externalIdFieldName, + object: (n = this.jobInfo) === null || n === void 0 ? void 0 : n.object, + operation: (a = this.jobInfo) === null || a === void 0 ? void 0 : a.operation, + lineEnding: (o = this.jobInfo) === null || o === void 0 ? void 0 : o.lineEnding, + }), + headers: { 'Content-Type': 'application/json; charset=utf-8' }, + responseType: 'application/json', + })), + this.emit('open'); + } catch (s) { + throw (this.emit('error', s), s); + } + } + async uploadData(t) { + await (0, Ee.default)(this, UI).execute(t); + } + async getAllResults() { + let [t, r, n] = await wy.default.all([ + this.getSuccessfulResults(), + this.getFailedResults(), + this.getUnprocessedRecords(), + ]); + return { successfulResults: t, failedResults: r, unprocessedRecords: n }; + } + async close() { + try { + let t = 'UploadComplete'; + (this.jobInfo = await this.createIngestRequest({ + method: 'PATCH', + path: `/${this.jobInfo.id}`, + body: (0, hy.default)({ state: t }), + headers: { 'Content-Type': 'application/json; charset=utf-8' }, + responseType: 'application/json', + })), + this.emit('uploadcomplete'); + } catch (t) { + throw (this.emit('error', t), t); + } + } + async abort() { + try { + let t = 'Aborted'; + (this.jobInfo = await this.createIngestRequest({ + method: 'PATCH', + path: `/${this.jobInfo.id}`, + body: (0, hy.default)({ state: t }), + headers: { 'Content-Type': 'application/json; charset=utf-8' }, + responseType: 'application/json', + })), + this.emit('aborted'); + } catch (t) { + throw (this.emit('error', t), t); + } + } + async poll(t = (0, Ee.default)(this, U3).pollInterval, r = (0, Ee.default)(this, U3).pollTimeout) { + let n = ks(this.jobInfo), + a = (0, B3.default)(); + for (; a + r > (0, B3.default)(); ) + try { + switch ((await this.check()).state) { + case 'Open': + throw new Error('Job has not been started'); + case 'Aborted': + throw new Error('Job has been aborted'); + case 'UploadComplete': + case 'InProgress': + await kge(t); + break; + case 'Failed': + this.emit('failed', new Error('Ingest job failed to complete.')); + return; + case 'JobComplete': + this.emit('jobcomplete'); + return; + } + } catch (s) { + throw (this.emit('error', s), s); + } + let o = new V3(`Polling timed out after ${r}ms. Job Id = ${n}`, n); + throw (this.emit('error', o), o); + } + async check() { + try { + let t = await this.createIngestRequest({ + method: 'GET', + path: `/${ks(this.jobInfo)}`, + responseType: 'application/json', + }); + return (this.jobInfo = t), t; + } catch (t) { + throw (this.emit('error', t), t); + } + } + async getSuccessfulResults() { + if ((0, Ee.default)(this, py)) return (0, Ee.default)(this, py); + let t = await this.createIngestRequest({ + method: 'GET', + path: `/${ks(this.jobInfo)}/successfulResults`, + responseType: 'text/csv', + }); + return (0, Hr.default)(this, py, t ?? []), (0, Ee.default)(this, py); + } + async getFailedResults() { + if ((0, Ee.default)(this, cy)) return (0, Ee.default)(this, cy); + let t = await this.createIngestRequest({ + method: 'GET', + path: `/${ks(this.jobInfo)}/failedResults`, + responseType: 'text/csv', + }); + return (0, Hr.default)(this, cy, t ?? []), (0, Ee.default)(this, cy); + } + async getUnprocessedRecords() { + if ((0, Ee.default)(this, dy)) return (0, Ee.default)(this, dy); + let t = await this.createIngestRequest({ + method: 'GET', + path: `/${ks(this.jobInfo)}/unprocessedrecords`, + responseType: 'text/csv', + }); + return (0, Hr.default)(this, dy, t ?? []), (0, Ee.default)(this, dy); + } + async delete() { + return this.createIngestRequest({ method: 'DELETE', path: `/${ks(this.jobInfo)}` }); + } + createIngestRequest(t) { + let { path: r, responseType: n } = t, + a = [ + (0, Ee.default)(this, uy).instanceUrl, + 'services/data', + `v${(0, Ee.default)(this, uy).version}`, + 'jobs/ingest', + ].join('/'); + return new z3((0, Ee.default)(this, uy), { responseType: n }).request(As(As({}, t), {}, { url: a + r })); + } + }; + Xi.IngestJobV2 = _y; + var $3 = new ni.default(), + fy = new ni.default(), + $I = new ni.default(), + Oh = new ni.default(), + my = new ni.default(), + GI = class extends Oge.Writable { + constructor(t) { + super({ objectMode: !0 }), + $3.set(this, { writable: !0, value: void 0 }), + fy.set(this, { writable: !0, value: void 0 }), + $I.set(this, { writable: !0, value: void 0 }), + Oh.set(this, { writable: !0, value: void 0 }), + my.set(this, { writable: !0, value: void 0 }); + let r = t.createRequest; + (0, Hr.default)(this, $3, t.job), + (0, Hr.default)(this, fy, new Th.Serializable()), + (0, Hr.default)(this, $I, new Th.Parsable()); + let n = { nullValue: '#N/A' }, + a = (0, Ee.default)(this, fy).stream('csv', n), + o = (0, Ee.default)(this, $I).stream('csv', n); + (0, Hr.default)(this, Oh, (0, Cge.concatStreamsAsDuplex)(a, o)), + this.on('finish', () => (0, Ee.default)(this, fy).end()), + a.once('readable', () => { + try { + var s; + let l = r({ + method: 'PUT', + path: `/${(s = (0, Ee.default)(this, $3).jobInfo) === null || s === void 0 ? void 0 : s.id}/batches`, + headers: { 'Content-Type': 'text/csv' }, + responseType: 'application/json', + }); + (async () => { + try { + let u = await l; + this.emit('response', u); + } catch (u) { + this.emit('error', u); + } + })(), + a.pipe(l.stream()); + } catch (l) { + this.emit('error', l); + } + }); + } + _write(t, r, n) { + let { Id: a, type: o, attributes: s } = t, + l = (0, WI.default)(t, ['Id', 'type', 'attributes']), + u; + switch ((0, Ee.default)(this, $3).jobInfo.operation) { + case 'insert': + u = l; + break; + case 'delete': + case 'hardDelete': + u = { Id: a }; + break; + default: + u = As({ Id: a }, l); + } + (0, Ee.default)(this, fy).write(u, r, n); + } + stream() { + return (0, Ee.default)(this, Oh); + } + execute(t) { + if ((0, Ee.default)(this, my)) throw new Error('Data can only be uploaded to a job once.'); + if ( + ((0, Hr.default)( + this, + my, + new wy.default((r, n) => { + this.once('response', () => r()), this.once('error', n); + }) + ), + (0, gy.isObject)(t) && 'pipe' in t && (0, gy.isFunction)(t.pipe)) + ) + t.pipe((0, Ee.default)(this, Oh)); + else if ((0, Ch.default)(t)) { + for (let r of t) { + for (let n of (0, xge.default)(r)) typeof r[n] == 'boolean' && (r[n] = String(r[n])); + this.write(r); + } + this.end(); + } else typeof t == 'string' && ((0, Ee.default)(this, Oh).write(t, 'utf8'), (0, Ee.default)(this, Oh).end()); + return this; + } + then(t, r) { + return (0, Ee.default)(this, my) === void 0 && this.execute(), (0, Ee.default)(this, my).then(t, r); + } + }; + function ks(e) { + let t = e?.id; + if (t === void 0) throw new Error('No job id, maybe you need to call `job.open()` first.'); + return t; + } + function kge(e) { + return new wy.default((t) => (0, VI.default)(t, e)); + } + (0, Tge.registerModule)('bulk', (e) => new by(e)); + (0, Tge.registerModule)('bulk2', (e) => new H3(e)); + var Tmt = by; + Xi.default = Tmt; +}); +var qge = d((wp) => { + 'use strict'; + var vd = Ce(), + Dge = ge(), + Cmt = Ur(), + Ige = $r(), + Pge = Bt(), + Nge = Br(), + kmt = Qt(), + Rge = Vr(), + Amt = Ve(); + Zt(); + Dge(wp, '__esModule', { value: !0 }); + wp.default = wp.Chatter = wp.Resource = void 0; + var Imt = vd(cn()), + Pmt = vd(Bt()), + Rmt = vd(sa()), + W3 = vd(Xu()), + jmt = vd(Ve()), + JI = vd(jn()), + _p = vd(Ye()), + Dmt = $a(), + Nmt = sy(); + function jge(e, t) { + var r = Amt(e); + if (Rge) { + var n = Rge(e); + t && + (n = kmt(n).call(n, function (a) { + return Nge(e, a).enumerable; + })), + r.push.apply(r, n); + } + return r; + } + function YI(e) { + for (var t = 1; t < arguments.length; t++) { + var r = arguments[t] != null ? arguments[t] : {}; + if (t % 2) { + var n; + Pge((n = jge(Object(r), !0))).call(n, function (o) { + (0, _p.default)(e, o, r[o]); + }); + } else if (Ige) Cmt(e, Ige(r)); + else { + var a; + Pge((a = jge(Object(r)))).call(a, function (o) { + Dge(e, o, Nge(r, o)); + }); + } + } + return e; + } + var K3 = class { + constructor(t, r) { + (0, _p.default)(this, '_chatter', void 0), + (0, _p.default)(this, '_request', void 0), + (0, _p.default)(this, '_promise', void 0), + (this._chatter = t), + (this._request = r); + } + batchParams() { + let { method: t, url: r, body: n } = this._request; + return YI({ method: t, url: this._chatter._normalizeUrl(r) }, typeof n < 'u' ? { richInput: n } : {}); + } + promise() { + return this._promise || (this._promise = this._chatter._request(this._request)); + } + stream() { + return this._chatter._request(this._request).stream(); + } + then(t, r) { + return this.promise().then(t, r); + } + }; + function qmt(e, t) { + if (t) { + var r; + let n = (0, JI.default)((r = (0, jmt.default)(t))) + .call(r, (a) => { + var o; + return `${a}=${encodeURIComponent(String((o = t[a]) !== null && o !== void 0 ? o : ''))}`; + }) + .join('&'); + e += ((0, W3.default)(e).call(e, '?') > 0 ? '&' : '?') + n; + } + return e; + } + var X3 = class extends K3 { + constructor(t, r, n) { + super(t, { method: 'GET', url: qmt(r, n) }), + (0, _p.default)(this, '_url', void 0), + (0, _p.default)(this, 'delete', this.destroy), + (0, _p.default)(this, 'del', this.destroy), + (this._url = this._request.url); + } + create(t) { + return this._chatter.request({ method: 'POST', url: this._url, body: t }); + } + retrieve() { + return this._chatter.request({ method: 'GET', url: this._url }); + } + update(t) { + return this._chatter.request({ method: 'POST', url: this._url, body: t }); + } + destroy() { + return this._chatter.request({ method: 'DELETE', url: this._url }); + } + }; + wp.Resource = X3; + var Sy = class { + constructor(t) { + (0, _p.default)(this, '_conn', void 0), (this._conn = t); + } + _request(t) { + let { method: r, url: n, headers: a, body: o } = t, + s = a ?? {}, + l; + /^(put|post|patch)$/i.test(r) && + ((0, Nmt.isObject)(o) + ? ((s = YI(YI({}, a), {}, { 'Content-Type': 'application/json' })), (l = (0, Rmt.default)(o))) + : (l = o)); + let u = this._normalizeUrl(n); + return this._conn.request({ method: r, url: u, headers: s, body: l }); + } + _normalizeUrl(t) { + return (0, W3.default)(t).call(t, '/chatter/') === 0 || (0, W3.default)(t).call(t, '/connect/') === 0 + ? '/services/data/v' + this._conn.version + t + : /^\/v[\d]+\.[\d]+\//.test(t) + ? '/services/data' + t + : (0, W3.default)(t).call(t, '/services/') !== 0 && t[0] === '/' + ? '/services/data/v' + this._conn.version + '/chatter' + t + : t; + } + request(t) { + return new K3(this, t); + } + resource(t, r) { + return new X3(this, t, r); + } + async batch(t) { + var r; + let n = (0, JI.default)(t).call(t, (o) => { + let s = Fmt(); + return (o._promise = s.promise), s; + }), + a = await this.request({ + method: 'POST', + url: this._normalizeUrl('/connect/batch'), + body: { batchRequests: (0, JI.default)(t).call(t, (o) => o.batchParams()) }, + }); + return ( + (0, Pmt.default)((r = a.results)).call(r, (o, s) => { + let l = n[s]; + o.statusCode >= 400 ? l.reject(o.result) : l.resolve(o.result); + }), + a + ); + } + }; + wp.Chatter = Sy; + function Fmt() { + let e = () => {}, + t = () => {}; + return { + promise: new Imt.default((n, a) => { + (e = n), (t = a); + }), + resolve: e, + reject: t, + }; + } + (0, Dmt.registerModule)('chatter', (e) => new Sy(e)); + var Lmt = Sy; + wp.default = Lmt; +}); +var eP = d((yd) => { + 'use strict'; + var Ah = Ce(), + $ge = ge(), + Mmt = Ur(), + Fge = $r(), + Lge = Bt(), + Bge = Br(), + Umt = Qt(), + Mge = Vr(), + $mt = Ve(); + kr(); + Zt(); + Vc(); + $ge(yd, '__esModule', { value: !0 }); + yd.castTypeUsingSchema = kh; + yd.default = yd.SOAP = void 0; + var Q3 = Ah(Ve()), + Bmt = Ah(Hw()), + Vge = Ah(jn()), + Y3 = Ah(Da()), + QI = Ah(Ye()), + Vmt = Ah(Rv()), + Is = sy(); + function Uge(e, t) { + var r = $mt(e); + if (Mge) { + var n = Mge(e); + t && + (n = Umt(n).call(n, function (a) { + return Bge(e, a).enumerable; + })), + r.push.apply(r, n); + } + return r; + } + function Z3(e) { + for (var t = 1; t < arguments.length; t++) { + var r = arguments[t] != null ? arguments[t] : {}; + if (t % 2) { + var n; + Lge((n = Uge(Object(r), !0))).call(n, function (o) { + (0, QI.default)(e, o, r[o]); + }); + } else if (Fge) Mmt(e, Fge(r)); + else { + var a; + Lge((a = Uge(Object(r)))).call(a, function (o) { + $ge(e, o, Bge(r, o)); + }); + } + } + return e; + } + function zge(e, t) { + if (e.extends && t[e.extends]) { + let r = t[e.extends]; + return Z3(Z3({}, zge(r, t)), e.props); + } + return e.props; + } + function J3(e) { + return e == null || ((0, Is.isMapObject)(e) && (0, Is.isMapObject)(e.$) && e.$['xsi:nil'] === 'true'); + } + function kh(e, t, r = {}) { + if ((0, Y3.default)(t)) { + var n; + let o = t.length === 2 && t[0] === '?', + s = o ? t[1] : t[0]; + return e == null + ? o + ? null + : [] + : (0, Vge.default)((n = (0, Y3.default)(e) ? e : [e])).call(n, (l) => kh(l, s, r)); + } else if ((0, Is.isMapObject)(t)) { + var a; + if ('type' in t && 'props' in t && (0, Is.isMapObject)(t.props)) { + let u = zge(t, r); + return kh(e, u, r); + } + let o = '?' in t, + s = '?' in t ? t['?'] : t; + if (o && J3(e)) return null; + let l = (0, Is.isMapObject)(e) ? e : {}; + return (0, Bmt.default)((a = (0, Q3.default)(s))).call( + a, + (u, p) => { + let c = s[p], + f = l[p], + h = + ((0, Y3.default)(c) && c.length === 2 && c[0] === '?') || + ((0, Is.isMapObject)(c) && '?' in c) || + (typeof c == 'string' && c[0] === '?'); + return typeof f > 'u' && h ? u : Z3(Z3({}, u), {}, { [p]: kh(f, c, r) }); + }, + l + ); + } else { + let o = typeof t == 'string' && t[0] === '?', + s = typeof t == 'string' ? (o ? t.substring(1) : t) : 'any'; + switch (s) { + case 'string': + return J3(e) ? (o ? null : '') : String(e); + case 'number': + return J3(e) ? (o ? null : 0) : Number(e); + case 'boolean': + return J3(e) ? (o ? null : !1) : e === 'true'; + case 'null': + return null; + default: { + if (r[s]) { + let l = kh(e, r[s], r); + return (0, Is.isMapObject)(l) && (0, Q3.default)(l).length === 0 && o ? null : l; + } + return e; + } + } + } + } + function ZI(e, t) { + let r = t.shift(); + if (!r) return e; + if ((0, Is.isMapObject)(e)) { + for (let n of (0, Q3.default)(e)) if (r.test(n)) return ZI(e[n], t); + return null; + } + } + function e8(e, t) { + if (((0, Is.isObject)(e) && ((t = e), (e = null)), (0, Y3.default)(t))) + return (0, Vge.default)(t) + .call(t, (r) => e8(e, r)) + .join(''); + { + let r = [], + n = []; + if ((0, Is.isMapObject)(t)) { + for (let s of (0, Q3.default)(t)) { + let l = t[s]; + if (s[0] === '@') { + let u = s.substring(1); + r.push(u + '="' + l + '"'); + } else n.push(e8(s, l)); + } + t = n.join(''); + } else + t = String(t) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"') + .replace(/'/g, '''); + let a = e ? '<' + e + (r.length > 0 ? ' ' + r.join(' ') : '') + '>' : '', + o = e ? '' : ''; + return a + t + o; + } + } + var t8 = class extends Vmt.default { + constructor(t, r) { + super(t, r), + (0, QI.default)(this, '_endpointUrl', void 0), + (0, QI.default)(this, '_xmlns', void 0), + (this._endpointUrl = r.endpointUrl), + (this._xmlns = r.xmlns || 'urn:partner.soap.sforce.com'); + } + async invoke(t, r, n, a) { + let o = await this.request({ + method: 'POST', + url: this._endpointUrl, + headers: { 'Content-Type': 'text/xml', SOAPAction: '""' }, + _message: { [t]: r }, + }); + return n ? kh(o, n, a) : o; + } + beforeSend(t) { + t.body = this._createEnvelope(t._message); + } + isSessionExpired(t) { + return t.statusCode === 500 && /[a-zA-Z]+:INVALID_SESSION_ID<\/faultcode>/.test(t.body); + } + parseError(t) { + let r = ZI(t, [/:Envelope$/, /:Body$/, /:Fault$/]); + return { errorCode: r.faultcode, message: r.faultstring }; + } + async getResponseBody(t) { + let r = await super.getResponseBody(t); + return ZI(r, [/:Envelope$/, /:Body$/, /.+/]); + } + _createEnvelope(t) { + let r = {}, + n = this._conn; + return ( + n.accessToken && (r.SessionHeader = { sessionId: n.accessToken }), + n._callOptions && (r.CallOptions = n._callOptions), + [ + '', + '', + '', + e8(r), + '', + '', + e8(t), + '', + '', + ].join('') + ); + } + }; + yd.SOAP = t8; + var zmt = t8; + yd.default = zmt; +}); +var Hge = d((r8) => { + 'use strict'; + var Hmt = ge(); + Hmt(r8, '__esModule', { value: !0 }); + r8.ApiSchemas = void 0; + var Gmt = { + CancelDeployResult: { type: 'CancelDeployResult', props: { done: 'boolean', id: 'string' } }, + DeployResult: { + type: 'DeployResult', + props: { + canceledBy: '?string', + canceledByName: '?string', + checkOnly: 'boolean', + completedDate: '?string', + createdBy: 'string', + createdByName: 'string', + createdDate: 'string', + details: 'DeployDetails', + done: 'boolean', + errorMessage: '?string', + errorStatusCode: '?string', + id: 'string', + ignoreWarnings: 'boolean', + lastModifiedDate: '?string', + numberComponentErrors: 'number', + numberComponentsDeployed: 'number', + numberComponentsTotal: 'number', + numberTestErrors: 'number', + numberTestsCompleted: 'number', + numberTestsTotal: 'number', + rollbackOnError: 'boolean', + runTestsEnabled: 'boolean', + startDate: '?string', + stateDetail: '?string', + status: 'string', + success: 'boolean', + }, + }, + DeployDetails: { + type: 'DeployDetails', + props: { + componentFailures: ['DeployMessage'], + componentSuccesses: ['DeployMessage'], + retrieveResult: '?RetrieveResult', + runTestResult: '?RunTestsResult', + }, + }, + DeployMessage: { + type: 'DeployMessage', + props: { + changed: 'boolean', + columnNumber: '?number', + componentType: '?string', + created: 'boolean', + createdDate: 'string', + deleted: 'boolean', + fileName: 'string', + fullName: 'string', + id: '?string', + lineNumber: '?number', + problem: '?string', + problemType: '?string', + success: 'boolean', + }, + }, + RetrieveResult: { + type: 'RetrieveResult', + props: { + done: 'boolean', + errorMessage: '?string', + errorStatusCode: '?string', + fileProperties: ['FileProperties'], + id: 'string', + messages: ['RetrieveMessage'], + status: 'string', + success: 'boolean', + zipFile: 'string', + }, + }, + FileProperties: { + type: 'FileProperties', + props: { + createdById: 'string', + createdByName: 'string', + createdDate: 'string', + fileName: 'string', + fullName: 'string', + id: 'string', + lastModifiedById: 'string', + lastModifiedByName: 'string', + lastModifiedDate: 'string', + manageableState: '?string', + namespacePrefix: '?string', + type: 'string', + }, + }, + RetrieveMessage: { type: 'RetrieveMessage', props: { fileName: 'string', problem: 'string' } }, + RunTestsResult: { + type: 'RunTestsResult', + props: { + apexLogId: '?string', + codeCoverage: ['CodeCoverageResult'], + codeCoverageWarnings: ['CodeCoverageWarning'], + failures: ['RunTestFailure'], + flowCoverage: ['FlowCoverageResult'], + flowCoverageWarnings: ['FlowCoverageWarning'], + numFailures: 'number', + numTestsRun: 'number', + successes: ['RunTestSuccess'], + totalTime: 'number', + }, + }, + CodeCoverageResult: { + type: 'CodeCoverageResult', + props: { + dmlInfo: ['CodeLocation'], + id: 'string', + locationsNotCovered: ['CodeLocation'], + methodInfo: ['CodeLocation'], + name: 'string', + namespace: '?string', + numLocations: 'number', + numLocationsNotCovered: 'number', + soqlInfo: ['CodeLocation'], + soslInfo: ['CodeLocation'], + type: 'string', + }, + }, + CodeLocation: { + type: 'CodeLocation', + props: { column: 'number', line: 'number', numExecutions: 'number', time: 'number' }, + }, + CodeCoverageWarning: { + type: 'CodeCoverageWarning', + props: { id: 'string', message: 'string', name: '?string', namespace: '?string' }, + }, + RunTestFailure: { + type: 'RunTestFailure', + props: { + id: 'string', + message: 'string', + methodName: '?string', + name: 'string', + namespace: '?string', + packageName: 'string', + seeAllData: '?boolean', + stackTrace: '?string', + time: 'number', + type: 'string', + }, + }, + FlowCoverageResult: { + type: 'FlowCoverageResult', + props: { + elementsNotCovered: ['string'], + flowId: 'string', + flowName: 'string', + flowNamespace: '?string', + numElements: 'number', + numElementsNotCovered: 'number', + processType: 'string', + }, + }, + FlowCoverageWarning: { + type: 'FlowCoverageWarning', + props: { flowId: '?string', flowName: '?string', flowNamespace: '?string', message: 'string' }, + }, + RunTestSuccess: { + type: 'RunTestSuccess', + props: { + id: 'string', + methodName: 'string', + name: 'string', + namespace: '?string', + seeAllData: '?boolean', + time: 'number', + }, + }, + Metadata: { type: 'Metadata', props: { fullName: '?string' } }, + AccountRelationshipShareRule: { + type: 'AccountRelationshipShareRule', + props: { + accessLevel: 'string', + accountToCriteriaField: 'string', + description: '?string', + entityType: 'string', + masterLabel: 'string', + staticFormulaCriteria: '?string', + type: 'string', + }, + extends: 'Metadata', + }, + AccountSettings: { + type: 'AccountSettings', + props: { + enableAccountHistoryTracking: '?boolean', + enableAccountInsightsInMobile: '?boolean', + enableAccountOwnerReport: '?boolean', + enableAccountTeams: '?boolean', + enableContactHistoryTracking: '?boolean', + enableRelateContactToMultipleAccounts: '?boolean', + showViewHierarchyLink: '?boolean', + }, + extends: 'Metadata', + }, + ActionLinkGroupTemplate: { + type: 'ActionLinkGroupTemplate', + props: { + actionLinkTemplates: ['ActionLinkTemplate'], + category: 'string', + executionsAllowed: 'string', + hoursUntilExpiration: '?number', + isPublished: 'boolean', + name: 'string', + }, + extends: 'Metadata', + }, + ActionLinkTemplate: { + type: 'ActionLinkTemplate', + props: { + actionUrl: 'string', + headers: '?string', + isConfirmationRequired: 'boolean', + isGroupDefault: 'boolean', + label: '?string', + labelKey: 'string', + linkType: 'string', + method: 'string', + position: 'number', + requestBody: '?string', + userAlias: '?string', + userVisibility: 'string', + }, + }, + ActionPlanTemplate: { + type: 'ActionPlanTemplate', + props: { + actionPlanTemplateItem: ['ActionPlanTemplateItem'], + description: '?string', + name: 'string', + targetEntityType: 'string', + uniqueName: 'string', + }, + extends: 'Metadata', + }, + ActionPlanTemplateItem: { + type: 'ActionPlanTemplateItem', + props: { + actionPlanTemplateItemValue: ['ActionPlanTemplateItemValue'], + displayOrder: '?number', + isRequired: '?boolean', + name: 'string', + uniqueName: 'string', + }, + }, + ActionPlanTemplateItemValue: { + type: 'ActionPlanTemplateItemValue', + props: { name: 'string', valueFormula: '?string', valueLiteral: '?string' }, + }, + ActionsSettings: { + type: 'ActionsSettings', + props: { + enableDefaultQuickActionsOn: '?boolean', + enableMdpEnabled: '?boolean', + enableThirdPartyActions: '?boolean', + }, + extends: 'Metadata', + }, + ActivitiesSettings: { + type: 'ActivitiesSettings', + props: { + allowUsersToRelateMultipleContactsToTasksAndEvents: '?boolean', + autoRelateEventAttendees: '?boolean', + enableActivityReminders: '?boolean', + enableClickCreateEvents: '?boolean', + enableDragAndDropScheduling: '?boolean', + enableEmailTracking: '?boolean', + enableGroupTasks: '?boolean', + enableListViewScheduling: '?boolean', + enableLogNote: '?boolean', + enableMultidayEvents: '?boolean', + enableRecurringEvents: '?boolean', + enableRecurringTasks: '?boolean', + enableRollUpActivToContactsAcct: '?boolean', + enableSidebarCalendarShortcut: '?boolean', + enableSimpleTaskCreateUI: '?boolean', + enableUNSTaskDelegatedToNotifications: '?boolean', + enableUserListViewCalendars: '?boolean', + meetingRequestsLogo: '?string', + showCustomLogoMeetingRequests: '?boolean', + showEventDetailsMultiUserCalendar: '?boolean', + showHomePageHoverLinksForEvents: '?boolean', + showMyTasksHoverLinks: '?boolean', + }, + extends: 'Metadata', + }, + AddressSettings: { + type: 'AddressSettings', + props: { countriesAndStates: 'CountriesAndStates' }, + extends: 'Metadata', + }, + CountriesAndStates: { type: 'CountriesAndStates', props: { countries: ['Country'] } }, + Country: { + type: 'Country', + props: { + active: 'boolean', + integrationValue: 'string', + isoCode: 'string', + label: 'string', + orgDefault: 'boolean', + standard: 'boolean', + states: ['State'], + visible: 'boolean', + }, + }, + State: { + type: 'State', + props: { + active: 'boolean', + integrationValue: 'string', + isoCode: 'string', + label: 'string', + standard: 'boolean', + visible: 'boolean', + }, + }, + AnalyticSnapshot: { + type: 'AnalyticSnapshot', + props: { + description: '?string', + groupColumn: '?string', + mappings: ['AnalyticSnapshotMapping'], + name: 'string', + runningUser: '?string', + sourceReport: 'string', + targetObject: 'string', + }, + extends: 'Metadata', + }, + AnalyticSnapshotMapping: { + type: 'AnalyticSnapshotMapping', + props: { aggregateType: '?string', sourceField: 'string', sourceType: 'string', targetField: 'string' }, + }, + AnalyticsSettings: { + type: 'AnalyticsSettings', + props: { + alwaysGenPreviews: '?boolean', + analyticsAdoptionMetadata: '?boolean', + canAccessAnalyticsViaAPI: '?boolean', + canAnnotateDashboards: '?boolean', + canEnableSavedView: '?boolean', + canExploreDataConversationally: '?boolean', + canShareAppsWithCommunities: '?boolean', + canSubscribeDashboardWidgets: '?boolean', + canViewThumbnailAssets: '?boolean', + enableAnalyticsSubtotals: '?boolean', + enableAutoCompleteCombo: '?boolean', + enableDashboardComponentSnapshot: '?boolean', + enableDashboardFlexiTable: '?boolean', + enableEmailReportsToPortalUsers: '?boolean', + enableFloatingReportHeaders: '?boolean', + enableInsights: '?boolean', + enableLightningReportBuilder: '?boolean', + enableLotusNotesImages: '?boolean', + enableMassEnableReportBuilder: '?boolean', + enableNewChartsEngine: '?boolean', + enablePowerInsights: '?boolean', + enableRemoveFooterForRepDisplay: '?boolean', + enableRemoveFooterFromRepExp: '?boolean', + enableReportFieldToFieldPref: '?boolean', + enableReportUniqueRowCountPref: '?boolean', + enableSFXJoinedReportsEnable: '?boolean', + enableSmartDataDiscovery: '?boolean', + enableUseOldChartsLookAndFeel: '?boolean', + enableWaveReplication: '?boolean', + enableWaveSharingInheritance: '?boolean', + enableWaveTemplate: '?boolean', + enableWaveTrendedDatasetCleanup: '?boolean', + }, + extends: 'Metadata', + }, + AnimationRule: { + type: 'AnimationRule', + props: { + animationFrequency: 'string', + developerName: 'string', + isActive: 'boolean', + masterLabel: 'string', + recordTypeContext: 'string', + recordTypeName: '?string', + sobjectType: 'string', + targetField: 'string', + targetFieldChangeToValues: 'string', + }, + extends: 'Metadata', + }, + ApexSettings: { + type: 'ApexSettings', + props: { + enableAggregateCodeCoverageOnly: '?boolean', + enableApexAccessRightsPref: '?boolean', + enableApexApprovalLockUnlock: '?boolean', + enableApexCtrlImplicitWithSharingPref: '?boolean', + enableApexPropertyGetterPref: '?boolean', + enableAuraApexCtrlAuthUserAccessCheckPref: '?boolean', + enableAuraApexCtrlGuestUserAccessCheckPref: '?boolean', + enableCompileOnDeploy: '?boolean', + enableDisableParallelApexTesting: '?boolean', + enableDoNotEmailDebugLog: '?boolean', + enableGaplessTestAutoNum: '?boolean', + enableMngdCtrlActionAccessPref: '?boolean', + enableNonCertifiedApexMdCrud: '?boolean', + }, + extends: 'Metadata', + }, + ApexTestSuite: { type: 'ApexTestSuite', props: { testClassName: ['string'] }, extends: 'Metadata' }, + AppExperienceSettings: { + type: 'AppExperienceSettings', + props: { doesHideAllAppsInAppLauncher: '?boolean' }, + extends: 'Metadata', + }, + AppMenu: { type: 'AppMenu', props: { appMenuItems: ['AppMenuItem'] }, extends: 'Metadata' }, + AppMenuItem: { type: 'AppMenuItem', props: { name: 'string', type: 'string' } }, + AppointmentSchedulingPolicy: { + type: 'AppointmentSchedulingPolicy', + props: { + appointmentStartTimeInterval: 'string', + masterLabel: 'string', + shouldConsiderCalendarEvents: 'boolean', + shouldEnforceExcludedResource: 'boolean', + shouldEnforceRequiredResource: 'boolean', + shouldMatchSkill: 'boolean', + shouldMatchSkillLevel: 'boolean', + shouldRespectVisitingHours: 'boolean', + shouldUsePrimaryMembers: 'boolean', + shouldUseSecondaryMembers: 'boolean', + }, + extends: 'Metadata', + }, + ApprovalProcess: { + type: 'ApprovalProcess', + props: { + active: 'boolean', + allowRecall: '?boolean', + allowedSubmitters: ['ApprovalSubmitter'], + approvalPageFields: '?ApprovalPageField', + approvalStep: ['ApprovalStep'], + description: '?string', + emailTemplate: '?string', + enableMobileDeviceAccess: '?boolean', + entryCriteria: '?ApprovalEntryCriteria', + finalApprovalActions: '?ApprovalAction', + finalApprovalRecordLock: '?boolean', + finalRejectionActions: '?ApprovalAction', + finalRejectionRecordLock: '?boolean', + initialSubmissionActions: '?ApprovalAction', + label: 'string', + nextAutomatedApprover: '?NextAutomatedApprover', + postTemplate: '?string', + recallActions: '?ApprovalAction', + recordEditability: 'string', + showApprovalHistory: '?boolean', + }, + extends: 'Metadata', + }, + ApprovalSubmitter: { type: 'ApprovalSubmitter', props: { submitter: '?string', type: 'string' } }, + ApprovalPageField: { type: 'ApprovalPageField', props: { field: ['string'] } }, + ApprovalStep: { + type: 'ApprovalStep', + props: { + allowDelegate: '?boolean', + approvalActions: '?ApprovalAction', + assignedApprover: 'ApprovalStepApprover', + description: '?string', + entryCriteria: '?ApprovalEntryCriteria', + ifCriteriaNotMet: '?string', + label: 'string', + name: 'string', + rejectBehavior: '?ApprovalStepRejectBehavior', + rejectionActions: '?ApprovalAction', + }, + }, + ApprovalAction: { type: 'ApprovalAction', props: { action: ['WorkflowActionReference'] } }, + WorkflowActionReference: { type: 'WorkflowActionReference', props: { name: 'string', type: 'string' } }, + ApprovalStepApprover: { + type: 'ApprovalStepApprover', + props: { approver: ['Approver'], whenMultipleApprovers: '?string' }, + }, + Approver: { type: 'Approver', props: { name: '?string', type: 'string' } }, + ApprovalEntryCriteria: { + type: 'ApprovalEntryCriteria', + props: { booleanFilter: '?string', criteriaItems: ['FilterItem'], formula: '?string' }, + }, + FilterItem: { + type: 'FilterItem', + props: { field: 'string', operation: 'string', value: '?string', valueField: '?string' }, + }, + DuplicateRuleFilterItem: { + type: 'DuplicateRuleFilterItem', + props: { sortOrder: 'number', table: 'string' }, + extends: 'FilterItem', + }, + ApprovalStepRejectBehavior: { type: 'ApprovalStepRejectBehavior', props: { type: 'string' } }, + NextAutomatedApprover: { + type: 'NextAutomatedApprover', + props: { useApproverFieldOfRecordOwner: '?boolean', userHierarchyField: 'string' }, + }, + ArchiveSettings: { + type: 'ArchiveSettings', + props: { enableEntityArchivingEnabled: '?boolean' }, + extends: 'Metadata', + }, + AssignmentRule: { + type: 'AssignmentRule', + props: { active: '?boolean', ruleEntry: ['RuleEntry'] }, + extends: 'Metadata', + }, + RuleEntry: { + type: 'RuleEntry', + props: { + assignedTo: '?string', + assignedToType: '?string', + booleanFilter: '?string', + businessHours: '?string', + businessHoursSource: '?string', + criteriaItems: ['FilterItem'], + disableEscalationWhenModified: '?boolean', + escalationAction: ['EscalationAction'], + escalationStartTime: '?string', + formula: '?string', + notifyCcRecipients: '?boolean', + overrideExistingTeams: '?boolean', + replyToEmail: '?string', + senderEmail: '?string', + senderName: '?string', + team: ['string'], + template: '?string', + }, + }, + EscalationAction: { + type: 'EscalationAction', + props: { + assignedTo: '?string', + assignedToTemplate: '?string', + assignedToType: '?string', + minutesToEscalation: '?number', + notifyCaseOwner: '?boolean', + notifyEmail: ['string'], + notifyTo: '?string', + notifyToTemplate: '?string', + }, + }, + AssignmentRules: { type: 'AssignmentRules', props: { assignmentRule: ['AssignmentRule'] }, extends: 'Metadata' }, + Audience: { + type: 'Audience', + props: { + audienceName: 'string', + container: 'string', + criteria: 'AudienceCriteria', + description: '?string', + formula: '?string', + formulaFilterType: '?string', + targets: '?PersonalizationTargetInfos', + }, + extends: 'Metadata', + }, + AudienceCriteria: { type: 'AudienceCriteria', props: { criterion: ['AudienceCriterion'] } }, + AudienceCriterion: { + type: 'AudienceCriterion', + props: { + criteriaNumber: '?number', + criterionValue: '?AudienceCriteriaValue', + operator: '?string', + type: 'string', + }, + }, + AudienceCriteriaValue: { + type: 'AudienceCriteriaValue', + props: { + city: '?string', + country: '?string', + domain: '?string', + entityField: '?string', + entityType: '?string', + fieldValue: '?string', + isEnabled: '?string', + permissionName: '?string', + permissionType: '?string', + profile: '?string', + subdivision: '?string', + }, + }, + PersonalizationTargetInfos: { + type: 'PersonalizationTargetInfos', + props: { target: ['PersonalizationTargetInfo'] }, + }, + PersonalizationTargetInfo: { + type: 'PersonalizationTargetInfo', + props: { groupName: 'string', priority: '?number', targetType: 'string', targetValue: 'string' }, + }, + AuraDefinitionBundle: { + type: 'AuraDefinitionBundle', + props: { + SVGContent: '?string', + apiVersion: '?number', + controllerContent: '?string', + description: '?string', + designContent: '?string', + documentationContent: '?string', + helperContent: '?string', + markup: '?string', + modelContent: '?string', + packageVersions: ['PackageVersion'], + rendererContent: '?string', + styleContent: '?string', + testsuiteContent: '?string', + type: '?string', + }, + extends: 'Metadata', + }, + PackageVersion: { + type: 'PackageVersion', + props: { majorNumber: 'number', minorNumber: 'number', namespace: 'string' }, + }, + AuthProvider: { + type: 'AuthProvider', + props: { + appleTeam: '?string', + authorizeUrl: '?string', + consumerKey: '?string', + consumerSecret: '?string', + customMetadataTypeRecord: '?string', + defaultScopes: '?string', + ecKey: '?string', + errorUrl: '?string', + executionUser: '?string', + friendlyName: 'string', + iconUrl: '?string', + idTokenIssuer: '?string', + includeOrgIdInIdentifier: '?boolean', + linkKickoffUrl: '?string', + logoutUrl: '?string', + oauthKickoffUrl: '?string', + plugin: '?string', + portal: '?string', + providerType: 'string', + registrationHandler: '?string', + sendAccessTokenInHeader: '?boolean', + sendClientCredentialsInHeader: '?boolean', + sendSecretInApis: '?boolean', + ssoKickoffUrl: '?string', + tokenUrl: '?string', + userInfoUrl: '?string', + }, + extends: 'Metadata', + }, + AutoResponseRule: { + type: 'AutoResponseRule', + props: { active: '?boolean', ruleEntry: ['RuleEntry'] }, + extends: 'Metadata', + }, + AutoResponseRules: { + type: 'AutoResponseRules', + props: { autoResponseRule: ['AutoResponseRule'] }, + extends: 'Metadata', + }, + BlockchainSettings: { + type: 'BlockchainSettings', + props: { enableBcp: '?boolean', enableBcpCoin: '?boolean' }, + extends: 'Metadata', + }, + Bot: { + type: 'Bot', + props: { + botMlDomain: '?LocalMlDomain', + botUser: '?string', + botVersions: ['BotVersion'], + contextVariables: ['ConversationContextVariable'], + description: '?string', + label: '?string', + }, + extends: 'Metadata', + }, + LocalMlDomain: { + type: 'LocalMlDomain', + props: { label: 'string', mlIntents: ['MlIntent'], mlSlotClasses: ['MlSlotClass'], name: 'string' }, + }, + MlIntent: { + type: 'MlIntent', + props: { + description: '?string', + developerName: 'string', + label: 'string', + mlIntentUtterances: ['MlIntentUtterance'], + relatedMlIntents: ['MlRelatedIntent'], + }, + }, + MlIntentUtterance: { type: 'MlIntentUtterance', props: { utterance: 'string' } }, + MlRelatedIntent: { type: 'MlRelatedIntent', props: { relatedMlIntent: 'string' } }, + MlSlotClass: { + type: 'MlSlotClass', + props: { + dataType: 'string', + description: '?string', + developerName: 'string', + extractionRegex: '?string', + extractionType: '?string', + label: 'string', + mlSlotClassValues: ['MlSlotClassValue'], + }, + }, + MlSlotClassValue: { type: 'MlSlotClassValue', props: { synonymGroup: '?SynonymGroup', value: 'string' } }, + SynonymGroup: { type: 'SynonymGroup', props: { languages: ['string'], terms: ['string'] } }, + BotVersion: { + type: 'BotVersion', + props: { + botDialogGroups: ['BotDialogGroup'], + botDialogs: ['BotDialog'], + conversationVariables: ['ConversationVariable'], + entryDialog: 'string', + mainMenuDialog: 'string', + responseDelayMilliseconds: '?number', + }, + extends: 'Metadata', + }, + BotDialogGroup: { + type: 'BotDialogGroup', + props: { description: '?string', developerName: 'string', label: 'string' }, + }, + BotDialog: { + type: 'BotDialog', + props: { + botDialogGroup: '?string', + botSteps: ['BotStep'], + description: '?string', + developerName: 'string', + label: 'string', + mlIntent: '?string', + mlIntentTrainingEnabled: '?boolean', + showInFooterMenu: '?boolean', + }, + }, + BotStep: { + type: 'BotStep', + props: { + booleanFilter: '?string', + botInvocation: '?BotInvocation', + botMessages: ['BotMessage'], + botNavigation: '?BotNavigation', + botStepConditions: ['BotStepCondition'], + botSteps: ['BotStep'], + botVariableOperation: '?BotVariableOperation', + conversationRecordLookup: '?ConversationRecordLookup', + conversationSystemMessage: '?ConversationSystemMessage', + type: 'string', + }, + }, + BotInvocation: { + type: 'BotInvocation', + props: { + invocationActionName: '?string', + invocationActionType: '?string', + invocationMappings: ['BotInvocationMapping'], + }, + }, + BotInvocationMapping: { + type: 'BotInvocationMapping', + props: { + parameterName: 'string', + type: 'string', + value: '?string', + variableName: '?string', + variableType: '?string', + }, + }, + BotMessage: { type: 'BotMessage', props: { message: 'string' } }, + BotNavigation: { type: 'BotNavigation', props: { botNavigationLinks: ['BotNavigationLink'], type: 'string' } }, + BotNavigationLink: { type: 'BotNavigationLink', props: { label: '?string', targetBotDialog: 'string' } }, + BotStepCondition: { + type: 'BotStepCondition', + props: { + leftOperandName: 'string', + leftOperandType: 'string', + operatorType: 'string', + rightOperandValue: '?string', + }, + }, + BotVariableOperation: { + type: 'BotVariableOperation', + props: { + botInvocation: '?BotInvocation', + botMessages: ['BotMessage'], + botQuickReplyOptions: ['BotQuickReplyOption'], + botVariableOperands: ['BotVariableOperand'], + invalidInputBotNavigation: '?BotNavigation', + quickReplyOptionTemplate: '?string', + quickReplyType: '?string', + quickReplyWidgetType: '?string', + sourceVariableName: '?string', + sourceVariableType: '?string', + type: 'string', + }, + }, + BotQuickReplyOption: { type: 'BotQuickReplyOption', props: { literalValue: 'string' } }, + BotVariableOperand: { + type: 'BotVariableOperand', + props: { + disableAutoFill: '?boolean', + sourceName: '?string', + sourceType: '?string', + sourceValue: '?string', + targetName: 'string', + targetType: 'string', + }, + }, + ConversationRecordLookup: { + type: 'ConversationRecordLookup', + props: { + SObjectType: 'string', + lookupFields: ['ConversationRecordLookupField'], + maxLookupResults: 'number', + sourceVariableName: 'string', + sourceVariableType: 'string', + targetVariableName: 'string', + }, + }, + ConversationRecordLookupField: { type: 'ConversationRecordLookupField', props: { fieldName: 'string' } }, + ConversationSystemMessage: { + type: 'ConversationSystemMessage', + props: { systemMessageMappings: ['ConversationSystemMessageMapping'], type: 'string' }, + }, + ConversationSystemMessageMapping: { + type: 'ConversationSystemMessageMapping', + props: { mappingType: 'string', parameterType: 'string', variableName: 'string' }, + }, + ConversationVariable: { + type: 'ConversationVariable', + props: { + SObjectType: '?string', + collectionType: '?string', + dataType: 'string', + developerName: 'string', + label: 'string', + }, + }, + ConversationContextVariable: { + type: 'ConversationContextVariable', + props: { + SObjectType: '?string', + contextVariableMappings: ['ConversationContextVariableMapping'], + dataType: 'string', + developerName: 'string', + label: 'string', + }, + }, + ConversationContextVariableMapping: { + type: 'ConversationContextVariableMapping', + props: { SObjectType: 'string', fieldName: 'string', messageType: 'string' }, + }, + BotSettings: { type: 'BotSettings', props: { enableBots: '?boolean' }, extends: 'Metadata' }, + BrandingSet: { + type: 'BrandingSet', + props: { + brandingSetProperty: ['BrandingSetProperty'], + description: '?string', + masterLabel: 'string', + type: '?string', + }, + extends: 'Metadata', + }, + BrandingSetProperty: { type: 'BrandingSetProperty', props: { propertyName: 'string', propertyValue: '?string' } }, + BusinessHoursEntry: { + type: 'BusinessHoursEntry', + props: { + active: '?boolean', + default: 'boolean', + fridayEndTime: '?string', + fridayStartTime: '?string', + mondayEndTime: '?string', + mondayStartTime: '?string', + name: '?string', + saturdayEndTime: '?string', + saturdayStartTime: '?string', + sundayEndTime: '?string', + sundayStartTime: '?string', + thursdayEndTime: '?string', + thursdayStartTime: '?string', + timeZoneId: '?string', + tuesdayEndTime: '?string', + tuesdayStartTime: '?string', + wednesdayEndTime: '?string', + wednesdayStartTime: '?string', + }, + extends: 'Metadata', + }, + BusinessHoursSettings: { + type: 'BusinessHoursSettings', + props: { businessHours: ['BusinessHoursEntry'], holidays: ['Holiday'] }, + extends: 'Metadata', + }, + Holiday: { + type: 'Holiday', + props: { + activityDate: '?string', + businessHours: ['string'], + description: '?string', + endTime: '?string', + isRecurring: '?boolean', + name: '?string', + recurrenceDayOfMonth: '?number', + recurrenceDayOfWeek: ['string'], + recurrenceDayOfWeekMask: '?number', + recurrenceEndDate: '?string', + recurrenceInstance: '?string', + recurrenceInterval: '?number', + recurrenceMonthOfYear: '?string', + recurrenceStartDate: '?string', + recurrenceType: '?string', + startTime: '?string', + }, + }, + BusinessProcess: { + type: 'BusinessProcess', + props: { description: '?string', isActive: '?boolean', values: ['PicklistValue'] }, + extends: 'Metadata', + }, + PicklistValue: { + type: 'PicklistValue', + props: { + color: '?string', + default: 'boolean', + description: '?string', + isActive: '?boolean', + allowEmail: '?boolean', + closed: '?boolean', + controllingFieldValues: ['string'], + converted: '?boolean', + cssExposed: '?boolean', + forecastCategory: '?string', + highPriority: '?boolean', + probability: '?number', + reverseRole: '?string', + reviewed: '?boolean', + won: '?boolean', + }, + extends: 'Metadata', + }, + CMSConnectSource: { + type: 'CMSConnectSource', + props: { + cmsConnectAsset: ['CMSConnectAsset'], + cmsConnectLanguage: ['CMSConnectLanguage'], + cmsConnectPersonalization: '?CMSConnectPersonalization', + cmsConnectResourceType: ['CMSConnectResourceType'], + connectionType: 'string', + cssScope: '?string', + developerName: 'string', + languageEnabled: '?string', + masterLabel: 'string', + namedCredential: '?string', + personalizationEnabled: '?string', + rootPath: '?string', + sortOrder: 'number', + status: 'string', + type: 'string', + websiteUrl: '?string', + }, + extends: 'Metadata', + }, + CMSConnectAsset: { + type: 'CMSConnectAsset', + props: { assetPath: 'string', assetType: 'string', sortOrder: 'number' }, + }, + CMSConnectLanguage: { type: 'CMSConnectLanguage', props: { cmsLanguage: 'string', language: 'string' } }, + CMSConnectPersonalization: { + type: 'CMSConnectPersonalization', + props: { connectorPage: 'string', connectorPageAsset: 'string' }, + }, + CMSConnectResourceType: { + type: 'CMSConnectResourceType', + props: { + cmsConnectResourceDefinition: ['CMSConnectResourceDefinition'], + developerName: 'string', + masterLabel: 'string', + resourceType: 'string', + }, + }, + CMSConnectResourceDefinition: { + type: 'CMSConnectResourceDefinition', + props: { + developerName: 'string', + masterLabel: 'string', + options: 'number', + payloadType: 'string', + resourceIdPath: '?string', + resourceNamePath: '?string', + resourcePath: 'string', + rootNodePath: '?string', + }, + }, + CallCenter: { + type: 'CallCenter', + props: { + adapterUrl: '?string', + customSettings: '?string', + displayName: 'string', + displayNameLabel: 'string', + internalNameLabel: 'string', + sections: ['CallCenterSection'], + version: '?string', + }, + extends: 'Metadata', + }, + CallCenterSection: { + type: 'CallCenterSection', + props: { items: ['CallCenterItem'], label: 'string', name: 'string' }, + }, + CallCenterItem: { type: 'CallCenterItem', props: { label: 'string', name: 'string', value: 'string' } }, + CampaignInfluenceModel: { + type: 'CampaignInfluenceModel', + props: { + isActive: '?boolean', + isDefaultModel: 'boolean', + isModelLocked: 'boolean', + modelDescription: '?string', + name: 'string', + recordPreference: '?string', + }, + extends: 'Metadata', + }, + CampaignSettings: { + type: 'CampaignSettings', + props: { + enableAutoCampInfluenceDisabled: '?boolean', + enableB2bmaCampaignInfluence2: '?boolean', + enableCampaignHistoryTrackEnabled: '?boolean', + enableCampaignInfluence2: '?boolean', + enableCampaignMemberTWCF: '?boolean', + enableSuppressNoValueCI2: '?boolean', + }, + extends: 'Metadata', + }, + CanvasMetadata: { + type: 'CanvasMetadata', + props: { + accessMethod: 'string', + canvasOptions: '?string', + canvasUrl: 'string', + lifecycleClass: '?string', + locationOptions: '?string', + samlInitiationMethod: '?string', + }, + extends: 'Metadata', + }, + CaseClassificationSettings: { + type: 'CaseClassificationSettings', + props: { + caseClassificationRecommendations: '?boolean', + reRunAttributeBasedRules: '?boolean', + runAssignmentRules: '?boolean', + }, + extends: 'Metadata', + }, + CaseSettings: { + type: 'CaseSettings', + props: { + caseAssignNotificationTemplate: '?string', + caseAutoProcUser: '?boolean', + caseCloseNotificationTemplate: '?string', + caseCommentNotificationTemplate: '?string', + caseCreateNotificationTemplate: '?string', + caseFeedItemSettings: ['FeedItemSettings'], + caseFeedReadUnreadLtng: '?boolean', + caseMergeInLightning: '?boolean', + closeCaseThroughStatusChange: '?boolean', + defaultCaseFeedLayoutOn: '?boolean', + defaultCaseOwner: '?string', + defaultCaseOwnerType: '?string', + defaultCaseUser: '?string', + emailActionDefaultsHandlerClass: '?string', + emailToCase: '?EmailToCaseSettings', + enableCaseFeed: '?boolean', + enableCollapseEmailThread: '?boolean', + enableDraftEmails: '?boolean', + enableEarlyEscalationRuleTriggers: '?boolean', + enableEmailActionDefaultsHandler: '?boolean', + enableSuggestedArticlesApplication: '?boolean', + enableSuggestedArticlesCustomerPortal: '?boolean', + enableSuggestedArticlesPartnerPortal: '?boolean', + enableSuggestedSolutions: '?boolean', + escalateCaseBefore: '?boolean', + genericMessageEnabled: '?boolean', + keepRecordTypeOnAssignmentRule: '?boolean', + notifyContactOnCaseComment: '?boolean', + notifyDefaultCaseOwner: '?boolean', + notifyOwnerOnCaseComment: '?boolean', + notifyOwnerOnCaseOwnerChange: '?boolean', + predictiveSupportEnabled: '?boolean', + showEmailAttachmentsInCaseAttachmentsRL: '?boolean', + showFewerCloseActions: '?boolean', + systemUserEmail: '?string', + useSystemEmailAddress: '?boolean', + useSystemUserAsDefaultCaseUser: '?boolean', + webToCase: '?WebToCaseSettings', + }, + extends: 'Metadata', + }, + FeedItemSettings: { + type: 'FeedItemSettings', + props: { characterLimit: '?number', displayFormat: '?string', feedItemType: 'string' }, + }, + EmailToCaseSettings: { + type: 'EmailToCaseSettings', + props: { + enableE2CAttachmentAsFile: '?boolean', + enableE2CSourceTracking: '?boolean', + enableEmailToCase: '?boolean', + enableHtmlEmail: '?boolean', + enableOnDemandEmailToCase: '?boolean', + enableThreadIDInBody: '?boolean', + enableThreadIDInSubject: '?boolean', + notifyOwnerOnNewCaseEmail: '?boolean', + overEmailLimitAction: '?string', + preQuoteSignature: '?boolean', + routingAddresses: ['EmailToCaseRoutingAddress'], + unauthorizedSenderAction: '?string', + }, + }, + EmailToCaseRoutingAddress: { + type: 'EmailToCaseRoutingAddress', + props: { + addressType: '?string', + authorizedSenders: '?string', + caseOrigin: '?string', + caseOwner: '?string', + caseOwnerType: '?string', + casePriority: '?string', + createTask: '?boolean', + emailAddress: '?string', + emailServicesAddress: '?string', + isVerified: '?boolean', + routingName: '?string', + saveEmailHeaders: '?boolean', + taskStatus: '?string', + }, + }, + WebToCaseSettings: { + type: 'WebToCaseSettings', + props: { caseOrigin: '?string', defaultResponseTemplate: '?string', enableWebToCase: '?boolean' }, + }, + CaseSubjectParticle: { + type: 'CaseSubjectParticle', + props: { index: 'number', textField: '?string', type: 'string' }, + extends: 'Metadata', + }, + ChannelLayout: { + type: 'ChannelLayout', + props: { + enabledChannels: ['string'], + label: 'string', + layoutItems: ['ChannelLayoutItem'], + recordType: '?string', + }, + extends: 'Metadata', + }, + ChannelLayoutItem: { type: 'ChannelLayoutItem', props: { field: 'string' } }, + ChatterAnswersSettings: { + type: 'ChatterAnswersSettings', + props: { + emailFollowersOnBestAnswer: '?boolean', + emailFollowersOnReply: '?boolean', + emailOwnerOnPrivateReply: '?boolean', + emailOwnerOnReply: '?boolean', + enableAnswerViaEmail: '?boolean', + enableChatterAnswers: 'boolean', + enableFacebookSSO: '?boolean', + enableInlinePublisher: '?boolean', + enableReputation: '?boolean', + enableRichTextEditor: '?boolean', + facebookAuthProvider: '?string', + showInPortals: '?boolean', + }, + extends: 'Metadata', + }, + ChatterEmailsMDSettings: { + type: 'ChatterEmailsMDSettings', + props: { + enableChatterDigestEmailsApiOnly: '?boolean', + enableChatterEmailAttachment: '?boolean', + enableCollaborationEmail: '?boolean', + enableDisplayAppDownloadBadges: '?boolean', + enableEmailReplyToChatter: '?boolean', + enableEmailToChatter: '?boolean', + }, + extends: 'Metadata', + }, + ChatterExtension: { + type: 'ChatterExtension', + props: { + compositionComponent: 'string', + description: 'string', + extensionName: 'string', + headerText: '?string', + hoverText: '?string', + icon: 'string', + isProtected: '?boolean', + masterLabel: 'string', + renderComponent: 'string', + type: 'string', + }, + extends: 'Metadata', + }, + ChatterSettings: { + type: 'ChatterSettings', + props: { + allowChatterGroupArchiving: '?boolean', + allowRecordsInChatterGroup: '?boolean', + allowSharingInChatterGroup: '?boolean', + enableApprovalRequest: '?boolean', + enableChatter: '?boolean', + enableChatterEmoticons: '?boolean', + enableFeedEdit: '?boolean', + enableFeedPinning: '?boolean', + enableFeedsDraftPosts: '?boolean', + enableFeedsRichText: '?boolean', + enableInviteCsnUsers: '?boolean', + enableOutOfOfficeEnabledPref: '?boolean', + enableRichLinkPreviewsInFeed: '?boolean', + enableTodayRecsInFeed: '?boolean', + unlistedGroupsEnabled: '?boolean', + }, + extends: 'Metadata', + }, + CleanDataService: { + type: 'CleanDataService', + props: { cleanRules: ['CleanRule'], description: 'string', masterLabel: 'string', matchEngine: 'string' }, + extends: 'Metadata', + }, + CleanRule: { + type: 'CleanRule', + props: { + bulkEnabled: 'boolean', + bypassTriggers: 'boolean', + bypassWorkflow: 'boolean', + description: 'string', + developerName: 'string', + fieldMappings: ['FieldMapping'], + masterLabel: 'string', + matchRule: 'string', + sourceSobjectType: 'string', + status: 'string', + targetSobjectType: 'string', + }, + }, + FieldMapping: { + type: 'FieldMapping', + props: { + SObjectType: 'string', + developerName: 'string', + fieldMappingRows: ['FieldMappingRow'], + masterLabel: 'string', + }, + }, + FieldMappingRow: { + type: 'FieldMappingRow', + props: { + SObjectType: 'string', + fieldMappingFields: ['FieldMappingField'], + fieldName: 'string', + mappingOperation: 'string', + }, + }, + FieldMappingField: { + type: 'FieldMappingField', + props: { dataServiceField: 'string', dataServiceObjectName: 'string', priority: 'number' }, + }, + CommandAction: { + type: 'CommandAction', + props: { + actionType: 'string', + description: '?string', + intents: ['CommandActionIntent'], + label: 'string', + parameters: ['CommandActionParam'], + responseTemplates: ['CommandActionResponse'], + target: '?string', + }, + extends: 'Metadata', + }, + CommandActionIntent: { + type: 'CommandActionIntent', + props: { phrase: 'string', responseTemplates: ['CommandActionResponse'] }, + }, + CommandActionResponse: { type: 'CommandActionResponse', props: { template: 'string' } }, + CommandActionParam: { + type: 'CommandActionParam', + props: { defaultValue: '?string', description: '?string', name: 'string', required: '?boolean', type: 'string' }, + }, + CommunitiesSettings: { + type: 'CommunitiesSettings', + props: { + canModerateAllFeedPosts: '?boolean', + canModerateInternalFeedPosts: '?boolean', + embeddedVisualforcePages: '?boolean', + enableCommunityWorkspaces: '?boolean', + enableCspContactVisibilityPref: '?boolean', + enableCspNotesOnAccConPref: '?boolean', + enableEnablePRM: '?boolean', + enableExternalAccHierPref: '?boolean', + enableGuestRecordReassignOrgPref: '?boolean', + enableInviteChatterGuestEnabled: '?boolean', + enableNetPortalUserReportOpts: '?boolean', + enableNetworksEnabled: '?boolean', + enableOotbProfExtUserOpsEnable: '?boolean', + enablePRMAccRelPref: '?boolean', + enablePowerCustomerCaseStatus: '?boolean', + enableRelaxPartnerAccountFieldPref: '?boolean', + enableUsernameUniqForOrgPref: '?boolean', + }, + extends: 'Metadata', + }, + Community: { + type: 'Community', + props: { + active: '?boolean', + chatterAnswersFacebookSsoUrl: '?string', + communityFeedPage: '?string', + dataCategoryName: '?string', + description: '?string', + emailFooterDocument: '?string', + emailHeaderDocument: '?string', + emailNotificationUrl: '?string', + enableChatterAnswers: '?boolean', + enablePrivateQuestions: '?boolean', + expertsGroup: '?string', + portal: '?string', + reputationLevels: '?ReputationLevels', + showInPortal: '?boolean', + site: '?string', + }, + extends: 'Metadata', + }, + ReputationLevels: { + type: 'ReputationLevels', + props: { + chatterAnswersReputationLevels: ['ChatterAnswersReputationLevel'], + ideaReputationLevels: ['IdeaReputationLevel'], + }, + }, + ChatterAnswersReputationLevel: { + type: 'ChatterAnswersReputationLevel', + props: { name: 'string', value: 'number' }, + }, + IdeaReputationLevel: { type: 'IdeaReputationLevel', props: { name: 'string', value: 'number' } }, + CommunityTemplateDefinition: { + type: 'CommunityTemplateDefinition', + props: { + baseTemplate: '?string', + bundlesInfo: ['CommunityTemplateBundleInfo'], + category: 'string', + defaultBrandingSet: '?string', + defaultThemeDefinition: 'string', + description: '?string', + enableExtendedCleanUpOnDelete: '?boolean', + masterLabel: 'string', + navigationLinkSet: ['NavigationLinkSet'], + pageSetting: ['CommunityTemplatePageSetting'], + publisher: '?string', + }, + extends: 'Metadata', + }, + CommunityTemplateBundleInfo: { + type: 'CommunityTemplateBundleInfo', + props: { description: '?string', image: '?string', order: 'number', title: 'string', type: 'string' }, + }, + CommunityThemeBundleInfo: { type: 'CommunityThemeBundleInfo', props: {}, extends: 'CommunityTemplateBundleInfo' }, + NavigationLinkSet: { type: 'NavigationLinkSet', props: { navigationMenuItem: ['NavigationMenuItem'] } }, + NavigationMenuItem: { + type: 'NavigationMenuItem', + props: { + defaultListViewId: '?string', + label: 'string', + menuItemBranding: '?NavigationMenuItemBranding', + position: 'number', + publiclyAvailable: '?boolean', + subMenu: '?NavigationSubMenu', + target: '?string', + targetPreference: '?string', + type: 'string', + }, + }, + NavigationMenuItemBranding: { type: 'NavigationMenuItemBranding', props: { tileImage: '?string' } }, + NavigationSubMenu: { type: 'NavigationSubMenu', props: { navigationMenuItem: ['NavigationMenuItem'] } }, + CommunityTemplatePageSetting: { + type: 'CommunityTemplatePageSetting', + props: { page: 'string', themeLayout: 'string' }, + }, + CommunityThemeDefinition: { + type: 'CommunityThemeDefinition', + props: { + bundlesInfo: ['CommunityThemeBundleInfo'], + customThemeLayoutType: ['CommunityCustomThemeLayoutType'], + defaultBrandingSet: '?string', + description: '?string', + enableExtendedCleanUpOnDelete: '?boolean', + masterLabel: 'string', + publisher: '?string', + themeRouteOverride: ['CommunityThemeRouteOverride'], + themeSetting: ['CommunityThemeSetting'], + }, + extends: 'Metadata', + }, + CommunityCustomThemeLayoutType: { + type: 'CommunityCustomThemeLayoutType', + props: { description: '?string', label: 'string' }, + }, + CommunityThemeRouteOverride: { + type: 'CommunityThemeRouteOverride', + props: { + customThemeLayoutType: '?string', + pageAttributes: 'string', + pageType: 'string', + themeLayoutType: '?string', + }, + }, + CommunityThemeSetting: { + type: 'CommunityThemeSetting', + props: { customThemeLayoutType: '?string', themeLayout: 'string', themeLayoutType: '?string' }, + }, + CompactLayout: { type: 'CompactLayout', props: { fields: ['string'], label: 'string' }, extends: 'Metadata' }, + CompanySettings: { + type: 'CompanySettings', + props: { enableCustomFiscalYear: 'boolean', fiscalYear: '?FiscalYearSettings' }, + extends: 'Metadata', + }, + FiscalYearSettings: { + type: 'FiscalYearSettings', + props: { fiscalYearNameBasedOn: '?string', startMonth: '?string' }, + }, + ConnectedApp: { + type: 'ConnectedApp', + props: { + attributes: ['ConnectedAppAttribute'], + canvas: '?CanvasMetadata', + canvasConfig: '?ConnectedAppCanvasConfig', + contactEmail: 'string', + contactPhone: '?string', + description: '?string', + iconUrl: '?string', + infoUrl: '?string', + ipRanges: ['ConnectedAppIpRange'], + label: 'string', + logoUrl: '?string', + mobileAppConfig: '?ConnectedAppMobileDetailConfig', + mobileStartUrl: '?string', + oauthConfig: '?ConnectedAppOauthConfig', + permissionSetName: ['string'], + plugin: '?string', + pluginExecutionUser: '?string', + profileName: ['string'], + samlConfig: '?ConnectedAppSamlConfig', + startUrl: '?string', + }, + extends: 'Metadata', + }, + ConnectedAppAttribute: { type: 'ConnectedAppAttribute', props: { formula: 'string', key: 'string' } }, + ConnectedAppCanvasConfig: { + type: 'ConnectedAppCanvasConfig', + props: { + accessMethod: 'string', + canvasUrl: 'string', + lifecycleClass: '?string', + locations: ['string'], + options: ['string'], + samlInitiationMethod: '?string', + }, + }, + ConnectedAppIpRange: { + type: 'ConnectedAppIpRange', + props: { description: '?string', end: 'string', start: 'string' }, + }, + ConnectedAppMobileDetailConfig: { + type: 'ConnectedAppMobileDetailConfig', + props: { + applicationBinaryFile: '?string', + applicationBinaryFileName: '?string', + applicationBundleIdentifier: '?string', + applicationFileLength: '?number', + applicationIconFile: '?string', + applicationIconFileName: '?string', + applicationInstallUrl: '?string', + devicePlatform: 'string', + deviceType: '?string', + minimumOsVersion: '?string', + privateApp: '?boolean', + version: 'string', + }, + }, + ConnectedAppOauthConfig: { + type: 'ConnectedAppOauthConfig', + props: { + callbackUrl: 'string', + certificate: '?string', + consumerKey: '?string', + consumerSecret: '?string', + idTokenConfig: '?ConnectedAppOauthIdToken', + isAdminApproved: '?boolean', + scopes: ['string'], + singleLogoutUrl: '?string', + }, + }, + ConnectedAppOauthIdToken: { + type: 'ConnectedAppOauthIdToken', + props: { + idTokenAudience: '?string', + idTokenIncludeAttributes: '?boolean', + idTokenIncludeCustomPerms: '?boolean', + idTokenIncludeStandardClaims: '?boolean', + idTokenValidity: '?number', + }, + }, + ConnectedAppSamlConfig: { + type: 'ConnectedAppSamlConfig', + props: { + acsUrl: 'string', + certificate: '?string', + encryptionCertificate: '?string', + encryptionType: '?string', + entityUrl: 'string', + issuer: '?string', + samlIdpSLOBindingEnum: '?string', + samlNameIdFormat: '?string', + samlSloUrl: '?string', + samlSubjectCustomAttr: '?string', + samlSubjectType: 'string', + }, + }, + ConnectedAppSettings: { + type: 'ConnectedAppSettings', + props: { enableAdminApprovedAppsOnly: '?boolean', enableSkipUserProvisioningWizardWelcomePage: '?boolean' }, + extends: 'Metadata', + }, + ContentSettings: { + type: 'ContentSettings', + props: { + enableChatterFileLink: '?boolean', + enableContent: '?boolean', + enableContentAutoAssign: '?boolean', + enableContentDistForPortalUsers: '?boolean', + enableContentDistPwOptionsBit1: '?boolean', + enableContentDistPwOptionsBit2: '?boolean', + enableContentDistribution: '?boolean', + enableContentSupportMultiLanguage: '?boolean', + enableContentWorkspaceAccess: '?boolean', + enableFileShareSetByRecord: '?boolean', + enableFilesUsrShareNetRestricted: '?boolean', + enableJPGPreviews: '?boolean', + enableLibraryManagedFiles: '?boolean', + enableSiteGuestUserToUploadFiles: '?boolean', + enableUploadFilesOnAttachments: '?boolean', + skipContentAssetTriggers: '?boolean', + skipContentAssetTriggersOnDeploy: '?boolean', + }, + extends: 'Metadata', + }, + ContractSettings: { + type: 'ContractSettings', + props: { + autoCalculateEndDate: '?boolean', + autoExpirationDelay: '?string', + autoExpirationRecipient: '?string', + autoExpireContracts: '?boolean', + enableContractHistoryTracking: '?boolean', + notifyOwnersOnContractExpiration: '?boolean', + }, + extends: 'Metadata', + }, + CorsWhitelistOrigin: { type: 'CorsWhitelistOrigin', props: { urlPattern: 'string' }, extends: 'Metadata' }, + CspTrustedSite: { + type: 'CspTrustedSite', + props: { context: '?string', description: '?string', endpointUrl: 'string', isActive: 'boolean' }, + extends: 'Metadata', + }, + CurrencySettings: { + type: 'CurrencySettings', + props: { + enableCurrencyEffectiveDates: '?boolean', + enableCurrencySymbolWithMultiCurrency: '?boolean', + enableMultiCurrency: '?boolean', + isMultiCurrencyActivationAllowed: '?boolean', + isParenCurrencyConvDisabled: '?boolean', + }, + extends: 'Metadata', + }, + CustomApplication: { + type: 'CustomApplication', + props: { + actionOverrides: ['AppActionOverride'], + brand: '?AppBrand', + consoleConfig: '?ServiceCloudConsoleConfig', + defaultLandingTab: '?string', + description: '?string', + formFactors: ['string'], + isNavAutoTempTabsDisabled: '?boolean', + isNavPersonalizationDisabled: '?boolean', + isServiceCloudConsole: '?boolean', + label: '?string', + logo: '?string', + navType: '?string', + preferences: '?AppPreferences', + profileActionOverrides: ['AppProfileActionOverride'], + setupExperience: '?string', + subscriberTabs: ['string'], + tabs: ['string'], + uiType: '?string', + utilityBar: '?string', + workspaceConfig: '?AppWorkspaceConfig', + }, + extends: 'Metadata', + }, + AppActionOverride: { type: 'AppActionOverride', props: { pageOrSobjectType: 'string' }, extends: 'ActionOverride' }, + ActionOverride: { + type: 'ActionOverride', + props: { + actionName: '?string', + comment: '?string', + content: '?string', + formFactor: '?string', + skipRecordTypeSelect: '?boolean', + type: '?string', + }, + }, + AppBrand: { + type: 'AppBrand', + props: { + footerColor: '?string', + headerColor: '?string', + logo: '?string', + logoVersion: '?number', + shouldOverrideOrgTheme: '?boolean', + }, + }, + ServiceCloudConsoleConfig: { + type: 'ServiceCloudConsoleConfig', + props: { + componentList: '?AppComponentList', + detailPageRefreshMethod: 'string', + footerColor: '?string', + headerColor: '?string', + keyboardShortcuts: 'KeyboardShortcuts', + listPlacement: 'ListPlacement', + listRefreshMethod: 'string', + liveAgentConfig: '?LiveAgentConfig', + primaryTabColor: '?string', + pushNotifications: ['PushNotification'], + tabLimitConfig: '?TabLimitConfig', + whitelistedDomains: ['string'], + }, + }, + AppComponentList: { type: 'AppComponentList', props: { alignment: 'string', components: ['string'] } }, + KeyboardShortcuts: { + type: 'KeyboardShortcuts', + props: { customShortcuts: ['CustomShortcut'], defaultShortcuts: ['DefaultShortcut'] }, + }, + CustomShortcut: { + type: 'CustomShortcut', + props: { description: '?string', eventName: 'string' }, + extends: 'DefaultShortcut', + }, + DefaultShortcut: { type: 'DefaultShortcut', props: { action: 'string', active: 'boolean', keyCommand: 'string' } }, + ListPlacement: { + type: 'ListPlacement', + props: { height: '?number', location: 'string', units: '?string', width: '?number' }, + }, + LiveAgentConfig: { + type: 'LiveAgentConfig', + props: { + enableLiveChat: '?boolean', + openNewAccountSubtab: '?boolean', + openNewCaseSubtab: '?boolean', + openNewContactSubtab: '?boolean', + openNewLeadSubtab: '?boolean', + openNewVFPageSubtab: '?boolean', + pageNamesToOpen: ['string'], + showKnowledgeArticles: '?boolean', + }, + }, + PushNotification: { type: 'PushNotification', props: { fieldNames: ['string'], objectName: 'string' } }, + TabLimitConfig: { + type: 'TabLimitConfig', + props: { maxNumberOfPrimaryTabs: '?string', maxNumberOfSubTabs: '?string' }, + }, + AppPreferences: { + type: 'AppPreferences', + props: { + enableCustomizeMyTabs: 'boolean', + enableKeyboardShortcuts: 'boolean', + enableListViewHover: 'boolean', + enableListViewReskin: 'boolean', + enableMultiMonitorComponents: 'boolean', + enablePinTabs: 'boolean', + enableTabHover: 'boolean', + enableTabLimits: 'boolean', + saveUserSessions: 'boolean', + }, + }, + AppProfileActionOverride: { + type: 'AppProfileActionOverride', + props: { profile: 'string' }, + extends: 'ProfileActionOverride', + }, + ProfileActionOverride: { + type: 'ProfileActionOverride', + props: { + actionName: 'string', + content: '?string', + formFactor: 'string', + pageOrSobjectType: 'string', + recordType: '?string', + type: 'string', + }, + }, + AppWorkspaceConfig: { type: 'AppWorkspaceConfig', props: { mappings: ['WorkspaceMapping'] } }, + WorkspaceMapping: { type: 'WorkspaceMapping', props: { fieldName: '?string', tab: 'string' } }, + CustomApplicationComponent: { + type: 'CustomApplicationComponent', + props: { + buttonIconUrl: '?string', + buttonStyle: '?string', + buttonText: '?string', + buttonWidth: '?number', + height: '?number', + isHeightFixed: 'boolean', + isHidden: 'boolean', + isWidthFixed: 'boolean', + visualforcePage: 'string', + width: '?number', + }, + extends: 'Metadata', + }, + CustomFeedFilter: { + type: 'CustomFeedFilter', + props: { criteria: ['FeedFilterCriterion'], description: '?string', isProtected: '?boolean', label: 'string' }, + extends: 'Metadata', + }, + FeedFilterCriterion: { + type: 'FeedFilterCriterion', + props: { feedItemType: 'string', feedItemVisibility: '?string', relatedSObjectType: '?string' }, + }, + CustomField: { + type: 'CustomField', + props: { + businessOwnerGroup: '?string', + businessOwnerUser: '?string', + businessStatus: '?string', + caseSensitive: '?boolean', + complianceGroup: '?string', + customDataType: '?string', + defaultValue: '?string', + deleteConstraint: '?string', + deprecated: '?boolean', + description: '?string', + displayFormat: '?string', + encryptionScheme: '?string', + escapeMarkup: '?boolean', + externalDeveloperName: '?string', + externalId: '?boolean', + fieldManageability: '?string', + formula: '?string', + formulaTreatBlanksAs: '?string', + inlineHelpText: '?string', + isAIPredictionField: '?boolean', + isConvertLeadDisabled: '?boolean', + isFilteringDisabled: '?boolean', + isNameField: '?boolean', + isSortingDisabled: '?boolean', + label: '?string', + length: '?number', + lookupFilter: '?LookupFilter', + maskChar: '?string', + maskType: '?string', + metadataRelationshipControllingField: '?string', + populateExistingRows: '?boolean', + precision: '?number', + referenceTargetField: '?string', + referenceTo: '?string', + relationshipLabel: '?string', + relationshipName: '?string', + relationshipOrder: '?number', + reparentableMasterDetail: '?boolean', + required: '?boolean', + restrictedAdminField: '?boolean', + scale: '?number', + securityClassification: '?string', + startingNumber: '?number', + stripMarkup: '?boolean', + summarizedField: '?string', + summaryFilterItems: ['FilterItem'], + summaryForeignKey: '?string', + summaryOperation: '?string', + trackFeedHistory: '?boolean', + trackHistory: '?boolean', + trackTrending: '?boolean', + translateData: '?boolean', + type: '?string', + unique: '?boolean', + valueSet: '?ValueSet', + visibleLines: '?number', + writeRequiresMasterRead: '?boolean', + }, + extends: 'Metadata', + }, + LookupFilter: { + type: 'LookupFilter', + props: { + active: 'boolean', + booleanFilter: '?string', + description: '?string', + errorMessage: '?string', + filterItems: ['FilterItem'], + infoMessage: '?string', + isOptional: 'boolean', + }, + }, + ValueSet: { + type: 'ValueSet', + props: { + controllingField: '?string', + restricted: '?boolean', + valueSetDefinition: '?ValueSetValuesDefinition', + valueSetName: '?string', + valueSettings: ['ValueSettings'], + }, + }, + ValueSetValuesDefinition: { + type: 'ValueSetValuesDefinition', + props: { sorted: 'boolean', value: ['CustomValue'] }, + }, + CustomValue: { + type: 'CustomValue', + props: { color: '?string', default: 'boolean', description: '?string', isActive: '?boolean', label: '?string' }, + extends: 'Metadata', + }, + StandardValue: { + type: 'StandardValue', + props: { + allowEmail: '?boolean', + closed: '?boolean', + converted: '?boolean', + cssExposed: '?boolean', + forecastCategory: '?string', + groupingString: '?string', + highPriority: '?boolean', + probability: '?number', + reverseRole: '?string', + reviewed: '?boolean', + won: '?boolean', + }, + extends: 'CustomValue', + }, + ValueSettings: { type: 'ValueSettings', props: { controllingFieldValue: ['string'], valueName: 'string' } }, + CustomHelpMenuSection: { + type: 'CustomHelpMenuSection', + props: { customHelpMenuItems: ['CustomHelpMenuItem'], masterLabel: 'string' }, + extends: 'Metadata', + }, + CustomHelpMenuItem: { + type: 'CustomHelpMenuItem', + props: { linkUrl: 'string', masterLabel: 'string', sortOrder: 'number' }, + }, + CustomLabel: { + type: 'CustomLabel', + props: { + categories: '?string', + language: 'string', + protected: 'boolean', + shortDescription: 'string', + value: 'string', + }, + extends: 'Metadata', + }, + CustomLabels: { type: 'CustomLabels', props: { labels: ['CustomLabel'] }, extends: 'Metadata' }, + CustomMetadata: { + type: 'CustomMetadata', + props: { description: '?string', label: '?string', protected: '?boolean', values: ['CustomMetadataValue'] }, + extends: 'Metadata', + }, + CustomMetadataValue: { type: 'CustomMetadataValue', props: { field: 'string', value: '?any' } }, + CustomNotificationType: { + type: 'CustomNotificationType', + props: { + customNotifTypeName: 'string', + description: '?string', + desktop: 'boolean', + masterLabel: 'string', + mobile: 'boolean', + }, + extends: 'Metadata', + }, + CustomObject: { + type: 'CustomObject', + props: { + actionOverrides: ['ActionOverride'], + allowInChatterGroups: '?boolean', + articleTypeChannelDisplay: '?ArticleTypeChannelDisplay', + businessProcesses: ['BusinessProcess'], + compactLayoutAssignment: '?string', + compactLayouts: ['CompactLayout'], + customHelp: '?string', + customHelpPage: '?string', + customSettingsType: '?string', + deploymentStatus: '?string', + deprecated: '?boolean', + description: '?string', + enableActivities: '?boolean', + enableBulkApi: '?boolean', + enableDataTranslation: '?boolean', + enableDivisions: '?boolean', + enableEnhancedLookup: '?boolean', + enableFeeds: '?boolean', + enableHistory: '?boolean', + enableLicensing: '?boolean', + enableReports: '?boolean', + enableSearch: '?boolean', + enableSharing: '?boolean', + enableStreamingApi: '?boolean', + eventType: '?string', + externalDataSource: '?string', + externalName: '?string', + externalRepository: '?string', + externalSharingModel: '?string', + fieldSets: ['FieldSet'], + fields: ['CustomField'], + gender: '?string', + historyRetentionPolicy: '?HistoryRetentionPolicy', + household: '?boolean', + indexes: ['Index'], + label: '?string', + listViews: ['ListView'], + nameField: '?CustomField', + pluralLabel: '?string', + profileSearchLayouts: ['ProfileSearchLayouts'], + publishBehavior: '?string', + recordTypeTrackFeedHistory: '?boolean', + recordTypeTrackHistory: '?boolean', + recordTypes: ['RecordType'], + searchLayouts: '?SearchLayouts', + sharingModel: '?string', + sharingReasons: ['SharingReason'], + sharingRecalculations: ['SharingRecalculation'], + startsWith: '?string', + validationRules: ['ValidationRule'], + visibility: '?string', + webLinks: ['WebLink'], + }, + extends: 'Metadata', + }, + ArticleTypeChannelDisplay: { + type: 'ArticleTypeChannelDisplay', + props: { articleTypeTemplates: ['ArticleTypeTemplate'] }, + }, + ArticleTypeTemplate: { + type: 'ArticleTypeTemplate', + props: { channel: 'string', page: '?string', template: 'string' }, + }, + FieldSet: { + type: 'FieldSet', + props: { + availableFields: ['FieldSetItem'], + description: 'string', + displayedFields: ['FieldSetItem'], + label: 'string', + }, + extends: 'Metadata', + }, + FieldSetItem: { + type: 'FieldSetItem', + props: { field: '?string', isFieldManaged: '?boolean', isRequired: '?boolean' }, + }, + HistoryRetentionPolicy: { + type: 'HistoryRetentionPolicy', + props: { archiveAfterMonths: 'number', archiveRetentionYears: 'number', description: '?string' }, + }, + Index: { type: 'Index', props: { fields: ['IndexField'], label: 'string' }, extends: 'Metadata' }, + IndexField: { type: 'IndexField', props: { name: 'string', sortDirection: 'string' } }, + ListView: { + type: 'ListView', + props: { + booleanFilter: '?string', + columns: ['string'], + division: '?string', + filterScope: 'string', + filters: ['ListViewFilter'], + label: 'string', + language: '?string', + queue: '?string', + sharedTo: '?SharedTo', + }, + extends: 'Metadata', + }, + ListViewFilter: { type: 'ListViewFilter', props: { field: 'string', operation: 'string', value: '?string' } }, + SharedTo: { + type: 'SharedTo', + props: { + allCustomerPortalUsers: '?string', + allInternalUsers: '?string', + allPartnerUsers: '?string', + channelProgramGroup: ['string'], + channelProgramGroups: ['string'], + group: ['string'], + groups: ['string'], + guestUser: ['string'], + managerSubordinates: ['string'], + managers: ['string'], + portalRole: ['string'], + portalRoleAndSubordinates: ['string'], + queue: ['string'], + role: ['string'], + roleAndSubordinates: ['string'], + roleAndSubordinatesInternal: ['string'], + roles: ['string'], + rolesAndSubordinates: ['string'], + territories: ['string'], + territoriesAndSubordinates: ['string'], + territory: ['string'], + territoryAndSubordinates: ['string'], + }, + }, + ProfileSearchLayouts: { type: 'ProfileSearchLayouts', props: { fields: ['string'], profileName: '?string' } }, + RecordType: { + type: 'RecordType', + props: { + active: 'boolean', + businessProcess: '?string', + compactLayoutAssignment: '?string', + description: '?string', + label: 'string', + picklistValues: ['RecordTypePicklistValue'], + }, + extends: 'Metadata', + }, + RecordTypePicklistValue: { + type: 'RecordTypePicklistValue', + props: { picklist: 'string', values: ['PicklistValue'] }, + }, + SearchLayouts: { + type: 'SearchLayouts', + props: { + customTabListAdditionalFields: ['string'], + excludedStandardButtons: ['string'], + listViewButtons: ['string'], + lookupDialogsAdditionalFields: ['string'], + lookupFilterFields: ['string'], + lookupPhoneDialogsAdditionalFields: ['string'], + massQuickActions: ['string'], + searchFilterFields: ['string'], + searchResultsAdditionalFields: ['string'], + searchResultsCustomButtons: ['string'], + }, + }, + SharingReason: { type: 'SharingReason', props: { label: 'string' }, extends: 'Metadata' }, + SharingRecalculation: { type: 'SharingRecalculation', props: { className: 'string' } }, + ValidationRule: { + type: 'ValidationRule', + props: { + active: 'boolean', + description: '?string', + errorConditionFormula: 'string', + errorDisplayField: '?string', + errorMessage: 'string', + }, + extends: 'Metadata', + }, + WebLink: { + type: 'WebLink', + props: { + availability: 'string', + description: '?string', + displayType: 'string', + encodingKey: '?string', + hasMenubar: '?boolean', + hasScrollbars: '?boolean', + hasToolbar: '?boolean', + height: '?number', + isResizable: '?boolean', + linkType: 'string', + masterLabel: '?string', + openType: 'string', + page: '?string', + position: '?string', + protected: 'boolean', + requireRowSelection: '?boolean', + scontrol: '?string', + showsLocation: '?boolean', + showsStatus: '?boolean', + url: '?string', + width: '?number', + }, + extends: 'Metadata', + }, + CustomObjectTranslation: { + type: 'CustomObjectTranslation', + props: { + caseValues: ['ObjectNameCaseValue'], + fieldSets: ['FieldSetTranslation'], + fields: ['CustomFieldTranslation'], + gender: '?string', + layouts: ['LayoutTranslation'], + nameFieldLabel: '?string', + quickActions: ['QuickActionTranslation'], + recordTypes: ['RecordTypeTranslation'], + sharingReasons: ['SharingReasonTranslation'], + standardFields: ['StandardFieldTranslation'], + startsWith: '?string', + validationRules: ['ValidationRuleTranslation'], + webLinks: ['WebLinkTranslation'], + workflowTasks: ['WorkflowTaskTranslation'], + }, + extends: 'Metadata', + }, + ObjectNameCaseValue: { + type: 'ObjectNameCaseValue', + props: { article: '?string', caseType: '?string', plural: '?boolean', possessive: '?string', value: 'string' }, + }, + FieldSetTranslation: { type: 'FieldSetTranslation', props: { label: 'string', name: 'string' } }, + CustomFieldTranslation: { + type: 'CustomFieldTranslation', + props: { + caseValues: ['ObjectNameCaseValue'], + gender: '?string', + help: '?string', + label: '?string', + lookupFilter: '?LookupFilterTranslation', + name: 'string', + picklistValues: ['PicklistValueTranslation'], + relationshipLabel: '?string', + startsWith: '?string', + }, + }, + LookupFilterTranslation: { + type: 'LookupFilterTranslation', + props: { errorMessage: 'string', informationalMessage: 'string' }, + }, + PicklistValueTranslation: { + type: 'PicklistValueTranslation', + props: { masterLabel: 'string', translation: '?string' }, + }, + LayoutTranslation: { + type: 'LayoutTranslation', + props: { layout: 'string', layoutType: '?string', sections: ['LayoutSectionTranslation'] }, + }, + LayoutSectionTranslation: { type: 'LayoutSectionTranslation', props: { label: 'string', section: 'string' } }, + QuickActionTranslation: { type: 'QuickActionTranslation', props: { label: 'string', name: 'string' } }, + RecordTypeTranslation: { + type: 'RecordTypeTranslation', + props: { description: '?string', label: 'string', name: 'string' }, + }, + SharingReasonTranslation: { type: 'SharingReasonTranslation', props: { label: 'string', name: 'string' } }, + StandardFieldTranslation: { type: 'StandardFieldTranslation', props: { label: '?string', name: 'string' } }, + ValidationRuleTranslation: { type: 'ValidationRuleTranslation', props: { errorMessage: 'string', name: 'string' } }, + WebLinkTranslation: { type: 'WebLinkTranslation', props: { label: 'string', name: 'string' } }, + WorkflowTaskTranslation: { + type: 'WorkflowTaskTranslation', + props: { description: '?string', name: 'string', subject: '?string' }, + }, + CustomPageWebLink: { + type: 'CustomPageWebLink', + props: { + availability: 'string', + description: '?string', + displayType: 'string', + encodingKey: '?string', + hasMenubar: '?boolean', + hasScrollbars: '?boolean', + hasToolbar: '?boolean', + height: '?number', + isResizable: '?boolean', + linkType: 'string', + masterLabel: '?string', + openType: 'string', + page: '?string', + position: '?string', + protected: 'boolean', + requireRowSelection: '?boolean', + scontrol: '?string', + showsLocation: '?boolean', + showsStatus: '?boolean', + url: '?string', + width: '?number', + }, + extends: 'Metadata', + }, + CustomPermission: { + type: 'CustomPermission', + props: { + connectedApp: '?string', + description: '?string', + label: 'string', + requiredPermission: ['CustomPermissionDependencyRequired'], + }, + extends: 'Metadata', + }, + CustomPermissionDependencyRequired: { + type: 'CustomPermissionDependencyRequired', + props: { customPermission: 'string', dependency: 'boolean' }, + }, + CustomSite: { + type: 'CustomSite', + props: { + active: 'boolean', + allowHomePage: 'boolean', + allowStandardAnswersPages: '?boolean', + allowStandardIdeasPages: 'boolean', + allowStandardLookups: 'boolean', + allowStandardPortalPages: 'boolean', + allowStandardSearch: 'boolean', + analyticsTrackingCode: '?string', + authorizationRequiredPage: '?string', + bandwidthExceededPage: '?string', + browserXssProtection: 'boolean', + changePasswordPage: '?string', + chatterAnswersForgotPasswordConfirmPage: '?string', + chatterAnswersForgotPasswordPage: '?string', + chatterAnswersHelpPage: '?string', + chatterAnswersLoginPage: '?string', + chatterAnswersRegistrationPage: '?string', + clickjackProtectionLevel: 'string', + contentSniffingProtection: 'boolean', + cspUpgradeInsecureRequests: 'boolean', + customWebAddresses: ['SiteWebAddress'], + description: '?string', + enableAuraRequests: '?boolean', + favoriteIcon: '?string', + fileNotFoundPage: '?string', + forgotPasswordPage: '?string', + genericErrorPage: '?string', + guestProfile: '?string', + inMaintenancePage: '?string', + inactiveIndexPage: '?string', + indexPage: 'string', + masterLabel: 'string', + myProfilePage: '?string', + portal: '?string', + referrerPolicyOriginWhenCrossOrigin: 'boolean', + requireHttps: 'boolean', + requireInsecurePortalAccess: 'boolean', + robotsTxtPage: '?string', + rootComponent: '?string', + selfRegPage: '?string', + serverIsDown: '?string', + siteAdmin: '?string', + siteRedirectMappings: ['SiteRedirectMapping'], + siteTemplate: '?string', + siteType: 'string', + subdomain: '?string', + urlPathPrefix: '?string', + }, + extends: 'Metadata', + }, + SiteWebAddress: { + type: 'SiteWebAddress', + props: { certificate: '?string', domainName: 'string', primary: 'boolean' }, + }, + SiteRedirectMapping: { + type: 'SiteRedirectMapping', + props: { action: 'string', isActive: '?boolean', source: 'string', target: 'string' }, + }, + CustomTab: { + type: 'CustomTab', + props: { + actionOverrides: ['ActionOverride'], + auraComponent: '?string', + customObject: '?boolean', + description: '?string', + flexiPage: '?string', + frameHeight: '?number', + hasSidebar: '?boolean', + icon: '?string', + label: '?string', + lwcComponent: '?string', + motif: '?string', + page: '?string', + scontrol: '?string', + splashPageLink: '?string', + url: '?string', + urlEncodingKey: '?string', + }, + extends: 'Metadata', + }, + Dashboard: { + type: 'Dashboard', + props: { + backgroundEndColor: 'string', + backgroundFadeDirection: 'string', + backgroundStartColor: 'string', + chartTheme: '?string', + colorPalette: '?string', + dashboardChartTheme: '?string', + dashboardColorPalette: '?string', + dashboardFilters: ['DashboardFilter'], + dashboardGridLayout: '?DashboardGridLayout', + dashboardResultRefreshedDate: '?string', + dashboardResultRunningUser: '?string', + dashboardType: '?string', + description: '?string', + folderName: '?string', + isGridLayout: '?boolean', + leftSection: '?DashboardComponentSection', + middleSection: '?DashboardComponentSection', + numSubscriptions: '?number', + rightSection: '?DashboardComponentSection', + runningUser: '?string', + textColor: 'string', + title: 'string', + titleColor: 'string', + titleSize: 'number', + }, + extends: 'Metadata', + }, + DashboardFilter: { + type: 'DashboardFilter', + props: { dashboardFilterOptions: ['DashboardFilterOption'], name: 'string' }, + }, + DashboardFilterOption: { type: 'DashboardFilterOption', props: { operator: 'string', values: ['string'] } }, + DashboardGridLayout: { + type: 'DashboardGridLayout', + props: { dashboardGridComponents: ['DashboardGridComponent'], numberOfColumns: 'number', rowHeight: 'number' }, + }, + DashboardGridComponent: { + type: 'DashboardGridComponent', + props: { + colSpan: 'number', + columnIndex: 'number', + dashboardComponent: 'DashboardComponent', + rowIndex: 'number', + rowSpan: 'number', + }, + }, + DashboardComponent: { + type: 'DashboardComponent', + props: { + autoselectColumnsFromReport: '?boolean', + chartAxisRange: '?string', + chartAxisRangeMax: '?number', + chartAxisRangeMin: '?number', + chartSummary: ['ChartSummary'], + componentChartTheme: '?string', + componentType: 'string', + dashboardFilterColumns: ['DashboardFilterColumn'], + dashboardTableColumn: ['DashboardTableColumn'], + decimalPrecision: '?number', + displayUnits: '?string', + drillDownUrl: '?string', + drillEnabled: '?boolean', + drillToDetailEnabled: '?boolean', + enableHover: '?boolean', + expandOthers: '?boolean', + flexComponentProperties: '?DashboardFlexTableComponentProperties', + footer: '?string', + gaugeMax: '?number', + gaugeMin: '?number', + groupingColumn: ['string'], + groupingSortProperties: '?DashboardComponentGroupingSortProperties', + header: '?string', + indicatorBreakpoint1: '?number', + indicatorBreakpoint2: '?number', + indicatorHighColor: '?string', + indicatorLowColor: '?string', + indicatorMiddleColor: '?string', + legendPosition: '?string', + maxValuesDisplayed: '?number', + metricLabel: '?string', + page: '?string', + pageHeightInPixels: '?number', + report: '?string', + scontrol: '?string', + scontrolHeightInPixels: '?number', + showPercentage: '?boolean', + showPicturesOnCharts: '?boolean', + showPicturesOnTables: '?boolean', + showRange: '?boolean', + showTotal: '?boolean', + showValues: '?boolean', + sortBy: '?string', + title: '?string', + useReportChart: '?boolean', + }, + }, + ChartSummary: { type: 'ChartSummary', props: { aggregate: '?string', axisBinding: '?string', column: 'string' } }, + DashboardFilterColumn: { type: 'DashboardFilterColumn', props: { column: 'string' } }, + DashboardTableColumn: { + type: 'DashboardTableColumn', + props: { + aggregateType: '?string', + calculatePercent: '?boolean', + column: 'string', + decimalPlaces: '?number', + showSubTotal: '?boolean', + showTotal: '?boolean', + sortBy: '?string', + }, + }, + DashboardFlexTableComponentProperties: { + type: 'DashboardFlexTableComponentProperties', + props: { + decimalPrecision: '?number', + flexTableColumn: ['DashboardComponentColumn'], + flexTableSortInfo: '?DashboardComponentSortInfo', + hideChatterPhotos: '?boolean', + }, + }, + DashboardComponentColumn: { + type: 'DashboardComponentColumn', + props: { + breakPoint1: '?number', + breakPoint2: '?number', + breakPointOrder: '?number', + highRangeColor: '?number', + lowRangeColor: '?number', + midRangeColor: '?number', + reportColumn: 'string', + showSubTotal: '?boolean', + showTotal: '?boolean', + type: 'string', + }, + }, + DashboardComponentSortInfo: { + type: 'DashboardComponentSortInfo', + props: { sortColumn: '?string', sortOrder: '?string' }, + }, + DashboardComponentGroupingSortProperties: { + type: 'DashboardComponentGroupingSortProperties', + props: { groupingSorts: ['DashboardComponentGroupingSort'] }, + }, + DashboardComponentGroupingSort: { + type: 'DashboardComponentGroupingSort', + props: { + groupingLevel: 'string', + inheritedReportGroupingSort: '?string', + sortColumn: '?string', + sortOrder: '?string', + }, + }, + DashboardComponentSection: { + type: 'DashboardComponentSection', + props: { columnSize: 'string', components: ['DashboardComponent'] }, + }, + DataCategoryGroup: { + type: 'DataCategoryGroup', + props: { + active: 'boolean', + dataCategory: 'DataCategory', + description: '?string', + label: 'string', + objectUsage: '?ObjectUsage', + }, + extends: 'Metadata', + }, + DataCategory: { type: 'DataCategory', props: { dataCategory: ['DataCategory'], label: 'string', name: 'string' } }, + ObjectUsage: { type: 'ObjectUsage', props: { object: ['string'] } }, + DataDotComSettings: { + type: 'DataDotComSettings', + props: { + enableAccountExportButtonOff: '?boolean', + enableAccountImportButtonOff: '?boolean', + enableAllowDupeContactFromLead: '?boolean', + enableAllowDupeLeadFromContact: '?boolean', + enableCleanUpgradeRequested: '?boolean', + enableContactExportButtonOff: '?boolean', + enableContactImportButtonOff: '?boolean', + }, + extends: 'Metadata', + }, + DelegateGroup: { + type: 'DelegateGroup', + props: { + customObjects: ['string'], + groups: ['string'], + label: 'string', + loginAccess: 'boolean', + permissionSets: ['string'], + profiles: ['string'], + roles: ['string'], + }, + extends: 'Metadata', + }, + DeploymentSettings: { + type: 'DeploymentSettings', + props: { doesSkipAsyncApexValidation: '?boolean' }, + extends: 'Metadata', + }, + DevHubSettings: { type: 'DevHubSettings', props: { enableShapeExportPref: '?boolean' }, extends: 'Metadata' }, + DiscoverySettings: { + type: 'DiscoverySettings', + props: { enableEinsteinAnswersPref: '?boolean' }, + extends: 'Metadata', + }, + DocumentType: { + type: 'DocumentType', + props: { description: 'string', isActive: 'boolean', masterLabel: 'string' }, + extends: 'Metadata', + }, + DuplicateRule: { + type: 'DuplicateRule', + props: { + actionOnInsert: 'string', + actionOnUpdate: 'string', + alertText: '?string', + description: '?string', + duplicateRuleFilter: '?DuplicateRuleFilter', + duplicateRuleMatchRules: ['?', 'DuplicateRuleMatchRule'], + isActive: 'boolean', + masterLabel: 'string', + operationsOnInsert: ['string'], + operationsOnUpdate: ['string'], + securityOption: 'string', + sortOrder: 'number', + }, + extends: 'Metadata', + }, + DuplicateRuleFilter: { + type: 'DuplicateRuleFilter', + props: { booleanFilter: '?string', duplicateRuleFilterItems: ['DuplicateRuleFilterItem'] }, + }, + DuplicateRuleMatchRule: { + type: 'DuplicateRuleMatchRule', + props: { matchRuleSObjectType: 'string', matchingRule: 'string', objectMapping: '?ObjectMapping' }, + }, + ObjectMapping: { + type: 'ObjectMapping', + props: { inputObject: 'string', mappingFields: ['ObjectMappingField'], outputObject: 'string' }, + }, + ObjectMappingField: { type: 'ObjectMappingField', props: { inputField: 'string', outputField: 'string' } }, + EACSettings: { + type: 'EACSettings', + props: { + enableEACForEveryonePref: '?boolean', + enableInboxActivitySharing: '?boolean', + enableInsightsInTimeline: '?boolean', + enableInsightsInTimelineEacStd: '?boolean', + }, + extends: 'Metadata', + }, + EmailAdministrationSettings: { + type: 'EmailAdministrationSettings', + props: { + enableComplianceBcc: '?boolean', + enableEmailConsentManagement: '?boolean', + enableEmailSenderIdCompliance: '?boolean', + enableEmailSpfCompliance: '?boolean', + enableEmailToSalesforce: '?boolean', + enableEmailWorkflowApproval: '?boolean', + enableEnhancedEmailEnabled: '?boolean', + enableHandleBouncedEmails: '?boolean', + enableHtmlEmail: '?boolean', + enableListEmailLogActivities: '?boolean', + enableResendBouncedEmails: '?boolean', + enableRestrictTlsToDomains: '?boolean', + enableSendThroughGmailPref: '?boolean', + enableSendViaExchangePref: '?boolean', + enableSendViaGmailPref: '?boolean', + enableSetMatchingEmailsOnBounce: '?boolean', + enableUseOrgFootersForExtTrans: '?boolean', + sendEmailsEvenWhenAutomationUpdatesSameRecord: '?boolean', + sendMassEmailNotification: '?boolean', + sendTextOnlySystemEmails: '?boolean', + }, + extends: 'Metadata', + }, + EmailIntegrationSettings: { + type: 'EmailIntegrationSettings', + props: { + doesEmailLogAsEmailMessageInOutlook: '?boolean', + doesGmailStayConnectedToSalesforce: '?boolean', + enableContactAndEventSync: '?boolean', + enableEmailTrackingInMobile: '?boolean', + enableEngageForOutlook: '?boolean', + enableGmailIntegration: '?boolean', + enableOutlookIntegration: '?boolean', + enableProductivityFeatures: '?boolean', + enableSupplementalContactInfoInMobile: '?boolean', + isLayoutCustomizationAllowed: '?boolean', + shouldUseTrustedDomainsList: '?boolean', + }, + extends: 'Metadata', + }, + EmailServicesFunction: { + type: 'EmailServicesFunction', + props: { + apexClass: 'string', + attachmentOption: 'string', + authenticationFailureAction: 'string', + authorizationFailureAction: 'string', + authorizedSenders: '?string', + emailServicesAddresses: ['EmailServicesAddress'], + errorRoutingAddress: '?string', + functionInactiveAction: 'string', + functionName: 'string', + isActive: '?boolean', + isAuthenticationRequired: '?boolean', + isErrorRoutingEnabled: '?boolean', + isTextAttachmentsAsBinary: '?boolean', + isTlsRequired: '?boolean', + overLimitAction: 'string', + }, + extends: 'Metadata', + }, + EmailServicesAddress: { + type: 'EmailServicesAddress', + props: { + authorizedSenders: '?string', + developerName: 'string', + isActive: '?boolean', + localPart: 'string', + runAsUser: 'string', + }, + }, + EmailTemplateSettings: { + type: 'EmailTemplateSettings', + props: { enableLwcEmailTemplateBuilder: '?boolean', enableTemplateEnhancedFolderPref: '?boolean' }, + extends: 'Metadata', + }, + EmbeddedServiceBranding: { + type: 'EmbeddedServiceBranding', + props: { + contrastInvertedColor: '?string', + contrastPrimaryColor: '?string', + embeddedServiceConfig: 'string', + font: '?string', + height: '?number', + masterLabel: 'string', + navBarColor: '?string', + primaryColor: '?string', + secondaryColor: '?string', + width: '?number', + }, + extends: 'Metadata', + }, + EmbeddedServiceConfig: { + type: 'EmbeddedServiceConfig', + props: { + areGuestUsersAllowed: '?boolean', + authMethod: '?string', + embeddedServiceAppointmentSettings: '?EmbeddedServiceAppointmentSettings', + embeddedServiceCustomComponents: ['EmbeddedServiceCustomComponent'], + embeddedServiceCustomLabels: ['EmbeddedServiceCustomLabel'], + embeddedServiceFlowConfig: '?EmbeddedServiceFlowConfig', + embeddedServiceFlows: ['EmbeddedServiceFlow'], + embeddedServiceLayouts: ['EmbeddedServiceLayout'], + masterLabel: 'string', + shouldHideAuthDialog: '?boolean', + site: 'string', + }, + extends: 'Metadata', + }, + EmbeddedServiceAppointmentSettings: { + type: 'EmbeddedServiceAppointmentSettings', + props: { + appointmentConfirmImg: '?string', + enabled: 'boolean', + homeImg: '?string', + logoImg: '?string', + shouldShowExistingAppointment: '?boolean', + shouldShowNewAppointment: '?boolean', + }, + }, + EmbeddedServiceCustomComponent: { + type: 'EmbeddedServiceCustomComponent', + props: { componentBundleType: '?string', customComponent: '?string', customComponentType: '?string' }, + }, + EmbeddedServiceCustomLabel: { + type: 'EmbeddedServiceCustomLabel', + props: { customLabel: '?string', feature: '?string', labelKey: '?string' }, + }, + EmbeddedServiceFlowConfig: { + type: 'EmbeddedServiceFlowConfig', + props: { enabled: 'boolean' }, + extends: 'Metadata', + }, + EmbeddedServiceFlow: { + type: 'EmbeddedServiceFlow', + props: { flow: 'string', flowType: 'string', isAuthenticationRequired: 'boolean' }, + }, + EmbeddedServiceLayout: { + type: 'EmbeddedServiceLayout', + props: { embeddedServiceLayoutRules: ['EmbeddedServiceLayoutRule'], layout: 'string', layoutType: '?string' }, + }, + EmbeddedServiceLayoutRule: { type: 'EmbeddedServiceLayoutRule', props: { appointmentStatus: 'string' } }, + EmbeddedServiceLiveAgent: { + type: 'EmbeddedServiceLiveAgent', + props: { + avatarImg: '?string', + embeddedServiceConfig: 'string', + embeddedServiceQuickActions: ['EmbeddedServiceQuickAction'], + enabled: 'boolean', + fontSize: 'string', + headerBackgroundImg: '?string', + isOfflineCaseEnabled: '?boolean', + isQueuePositionEnabled: '?boolean', + liveAgentChatUrl: '?string', + liveAgentContentUrl: '?string', + liveChatButton: 'string', + liveChatDeployment: 'string', + masterLabel: 'string', + offlineCaseBackgroundImg: '?string', + prechatBackgroundImg: '?string', + prechatEnabled: 'boolean', + prechatJson: '?string', + scenario: 'string', + smallCompanyLogoImg: '?string', + waitingStateBackgroundImg: '?string', + }, + extends: 'Metadata', + }, + EmbeddedServiceQuickAction: { + type: 'EmbeddedServiceQuickAction', + props: { + embeddedServiceLiveAgent: 'string', + order: 'number', + quickActionDefinition: 'string', + quickActionType: '?string', + }, + }, + EmbeddedServiceMenuSettings: { + type: 'EmbeddedServiceMenuSettings', + props: { + branding: '?string', + embeddedServiceMenuItems: ['EmbeddedServiceMenuItem'], + isEnabled: '?boolean', + masterLabel: '?string', + site: '?string', + }, + extends: 'Metadata', + }, + EmbeddedServiceMenuItem: { + type: 'EmbeddedServiceMenuItem', + props: { channel: '?string', channelType: '?string', displayOrder: '?number', phoneNumber: '?string' }, + }, + EncryptionKeySettings: { + type: 'EncryptionKeySettings', + props: { + canOptOutOfDerivationWithBYOK: '?boolean', + enableCacheOnlyKeys: '?boolean', + enableReplayDetection: '?boolean', + }, + extends: 'Metadata', + }, + EnhancedNotesSettings: { + type: 'EnhancedNotesSettings', + props: { enableEnhancedNotes: '?boolean', enableTasksOnEnhancedNotes: '?boolean' }, + extends: 'Metadata', + }, + EntitlementProcess: { + type: 'EntitlementProcess', + props: { + SObjectType: '?string', + active: '?boolean', + businessHours: '?string', + description: '?string', + entryStartDateField: '?string', + exitCriteriaBooleanFilter: '?string', + exitCriteriaFilterItems: ['FilterItem'], + exitCriteriaFormula: '?string', + isRecordTypeApplied: '?boolean', + isVersionDefault: '?boolean', + milestones: ['EntitlementProcessMilestoneItem'], + name: '?string', + recordType: '?string', + versionMaster: '?string', + versionNotes: '?string', + versionNumber: '?number', + }, + extends: 'Metadata', + }, + EntitlementProcessMilestoneItem: { + type: 'EntitlementProcessMilestoneItem', + props: { + businessHours: '?string', + criteriaBooleanFilter: '?string', + milestoneCriteriaFilterItems: ['FilterItem'], + milestoneCriteriaFormula: '?string', + milestoneName: '?string', + minutesCustomClass: '?string', + minutesToComplete: '?number', + successActions: ['WorkflowActionReference'], + timeTriggers: ['EntitlementProcessMilestoneTimeTrigger'], + useCriteriaStartTime: '?boolean', + }, + }, + EntitlementProcessMilestoneTimeTrigger: { + type: 'EntitlementProcessMilestoneTimeTrigger', + props: { actions: ['WorkflowActionReference'], timeLength: '?number', workflowTimeTriggerUnit: 'string' }, + }, + EntitlementSettings: { + type: 'EntitlementSettings', + props: { + assetLookupLimitedToActiveEntitlementsOnAccount: '?boolean', + assetLookupLimitedToActiveEntitlementsOnContact: '?boolean', + assetLookupLimitedToSameAccount: '?boolean', + assetLookupLimitedToSameContact: '?boolean', + enableEntitlementVersioning: 'boolean', + enableEntitlements: 'boolean', + enableMilestoneFeedItem: '?boolean', + enableMilestoneStoppedTime: '?boolean', + entitlementLookupLimitedToActiveStatus: '?boolean', + entitlementLookupLimitedToSameAccount: '?boolean', + entitlementLookupLimitedToSameAsset: '?boolean', + entitlementLookupLimitedToSameContact: '?boolean', + ignoreMilestoneBusinessHours: '?boolean', + }, + extends: 'Metadata', + }, + EntitlementTemplate: { + type: 'EntitlementTemplate', + props: { + businessHours: '?string', + casesPerEntitlement: '?number', + entitlementProcess: '?string', + isPerIncident: '?boolean', + term: '?number', + type: '?string', + }, + extends: 'Metadata', + }, + EntityImplements: { + type: 'EntityImplements', + props: { fieldMap: ['FieldImplements'], interface: '?string', isDefault: '?boolean' }, + extends: 'Metadata', + }, + FieldImplements: { type: 'FieldImplements', props: { field: '?string', interfaceField: '?string' } }, + EscalationRule: { + type: 'EscalationRule', + props: { active: '?boolean', ruleEntry: ['RuleEntry'] }, + extends: 'Metadata', + }, + EscalationRules: { type: 'EscalationRules', props: { escalationRule: ['EscalationRule'] }, extends: 'Metadata' }, + EssentialsSettings: { + type: 'EssentialsSettings', + props: { emailConnectorEnabled: '?boolean', essentialsAppEnabled: '?boolean' }, + extends: 'Metadata', + }, + EssentialsTrialOrgSettings: { + type: 'EssentialsTrialOrgSettings', + props: { enableSampleDataDeleted: '?boolean' }, + extends: 'Metadata', + }, + EventSettings: { + type: 'EventSettings', + props: { + enableApexLimitEvents: '?boolean', + enableDeleteMonitoringData: '?boolean', + enableDynamicStreamingChannel: '?boolean', + enableEventLogWaveIntegration: '?boolean', + enableLoginForensics: '?boolean', + enableStreamingApi: '?boolean', + enableTerminateOldestSession: '?boolean', + enableTransactionSecurityPolicies: '?boolean', + }, + extends: 'Metadata', + }, + ExperienceBundleSettings: { + type: 'ExperienceBundleSettings', + props: { enableExperienceBundleMetadata: '?boolean' }, + extends: 'Metadata', + }, + ExternalDataSource: { + type: 'ExternalDataSource', + props: { + authProvider: '?string', + certificate: '?string', + customConfiguration: '?string', + customHttpHeaders: ['CustomHttpHeader'], + endpoint: '?string', + isWritable: '?boolean', + label: 'string', + oauthRefreshToken: '?string', + oauthScope: '?string', + oauthToken: '?string', + password: '?string', + principalType: 'string', + protocol: 'string', + repository: '?string', + type: 'string', + username: '?string', + version: '?string', + }, + extends: 'Metadata', + }, + CustomHttpHeader: { + type: 'CustomHttpHeader', + props: { description: '?string', headerFieldName: 'string', headerFieldValue: 'string', isActive: '?boolean' }, + }, + ExternalServiceRegistration: { + type: 'ExternalServiceRegistration', + props: { + description: '?string', + label: 'string', + namedCredential: '?string', + schema: '?string', + schemaType: '?string', + schemaUrl: '?string', + status: 'string', + }, + extends: 'Metadata', + }, + ExternalServicesSettings: { + type: 'ExternalServicesSettings', + props: { enableEnhancedExternalServices: '?boolean' }, + extends: 'Metadata', + }, + FieldServiceSettings: { + type: 'FieldServiceSettings', + props: { + capacityUsageCalcClassId: '?string', + doesAllowEditSaForCrew: '?boolean', + doesShareSaParentWoWithAr: '?boolean', + doesShareSaWithAr: '?boolean', + enableWorkOrders: '?boolean', + fieldServiceNotificationsOrgPref: '?boolean', + fieldServiceOrgPref: '?boolean', + isGeoCodeSyncEnabled: '?boolean', + isLocationHistoryEnabled: '?boolean', + serviceAppointmentsDueDateOffsetOrgValue: '?number', + workOrderLineItemSearchFields: ['string'], + workOrderSearchFields: ['string'], + }, + extends: 'Metadata', + }, + FileUploadAndDownloadSecuritySettings: { + type: 'FileUploadAndDownloadSecuritySettings', + props: { dispositions: ['FileTypeDispositionAssignmentBean'], noHtmlUploadAsAttachment: 'boolean' }, + extends: 'Metadata', + }, + FileTypeDispositionAssignmentBean: { + type: 'FileTypeDispositionAssignmentBean', + props: { behavior: 'string', fileType: 'string', securityRiskFileType: 'boolean' }, + }, + FilesConnectSettings: { + type: 'FilesConnectSettings', + props: { + enableContentHubAllowed: '?boolean', + enableContentHubCvtLinksAllowed: '?boolean', + enableContentHubEOSearchLayout: '?boolean', + }, + extends: 'Metadata', + }, + FlexiPage: { + type: 'FlexiPage', + props: { + description: '?string', + flexiPageRegions: ['FlexiPageRegion'], + masterLabel: 'string', + parentFlexiPage: '?string', + platformActionlist: '?PlatformActionList', + quickActionList: '?QuickActionList', + sobjectType: '?string', + template: 'FlexiPageTemplateInstance', + type: 'string', + }, + extends: 'Metadata', + }, + FlexiPageRegion: { + type: 'FlexiPageRegion', + props: { + appendable: '?string', + componentInstances: ['ComponentInstance'], + mode: '?string', + name: 'string', + prependable: '?string', + replaceable: '?string', + type: 'string', + }, + }, + ComponentInstance: { + type: 'ComponentInstance', + props: { + componentInstanceProperties: ['ComponentInstanceProperty'], + componentName: 'string', + visibilityRule: '?UiFormulaRule', + }, + }, + ComponentInstanceProperty: { + type: 'ComponentInstanceProperty', + props: { name: '?string', type: '?string', value: '?string' }, + }, + UiFormulaRule: { type: 'UiFormulaRule', props: { booleanFilter: '?string', criteria: ['UiFormulaCriterion'] } }, + UiFormulaCriterion: { + type: 'UiFormulaCriterion', + props: { leftValue: 'string', operator: 'string', rightValue: '?string' }, + }, + PlatformActionList: { + type: 'PlatformActionList', + props: { + actionListContext: 'string', + platformActionListItems: ['PlatformActionListItem'], + relatedSourceEntity: '?string', + }, + extends: 'Metadata', + }, + PlatformActionListItem: { + type: 'PlatformActionListItem', + props: { actionName: 'string', actionType: 'string', sortOrder: 'number', subtype: '?string' }, + }, + QuickActionList: { type: 'QuickActionList', props: { quickActionListItems: ['QuickActionListItem'] } }, + QuickActionListItem: { type: 'QuickActionListItem', props: { quickActionName: 'string' } }, + FlexiPageTemplateInstance: { + type: 'FlexiPageTemplateInstance', + props: { name: 'string', properties: ['ComponentInstanceProperty'] }, + }, + Flow: { + type: 'Flow', + props: { + actionCalls: ['FlowActionCall'], + apexPluginCalls: ['FlowApexPluginCall'], + assignments: ['FlowAssignment'], + choices: ['FlowChoice'], + constants: ['FlowConstant'], + decisions: ['FlowDecision'], + description: '?string', + dynamicChoiceSets: ['FlowDynamicChoiceSet'], + formulas: ['FlowFormula'], + interviewLabel: '?string', + isAdditionalPermissionRequiredToRun: '?boolean', + isTemplate: '?boolean', + label: 'string', + loops: ['FlowLoop'], + processMetadataValues: ['FlowMetadataValue'], + processType: '?string', + recordCreates: ['FlowRecordCreate'], + recordDeletes: ['FlowRecordDelete'], + recordLookups: ['FlowRecordLookup'], + recordUpdates: ['FlowRecordUpdate'], + screens: ['FlowScreen'], + stages: ['FlowStage'], + start: '?FlowStart', + startElementReference: '?string', + status: '?string', + steps: ['FlowStep'], + subflows: ['FlowSubflow'], + textTemplates: ['FlowTextTemplate'], + variables: ['FlowVariable'], + waits: ['FlowWait'], + }, + extends: 'Metadata', + }, + FlowActionCall: { + type: 'FlowActionCall', + props: { + actionName: 'string', + actionType: 'string', + connector: '?FlowConnector', + faultConnector: '?FlowConnector', + inputParameters: ['FlowActionCallInputParameter'], + outputParameters: ['FlowActionCallOutputParameter'], + }, + extends: 'FlowNode', + }, + FlowNode: { + type: 'FlowNode', + props: { label: '?string', locationX: 'number', locationY: 'number' }, + extends: 'FlowElement', + }, + FlowElement: { + type: 'FlowElement', + props: { description: '?string', name: '?string' }, + extends: 'FlowBaseElement', + }, + FlowBaseElement: { type: 'FlowBaseElement', props: { processMetadataValues: ['FlowMetadataValue'] } }, + FlowMetadataValue: { type: 'FlowMetadataValue', props: { name: 'string', value: '?FlowElementReferenceOrValue' } }, + FlowElementReferenceOrValue: { + type: 'FlowElementReferenceOrValue', + props: { + booleanValue: '?boolean', + dateTimeValue: '?string', + dateValue: '?string', + elementReference: '?string', + numberValue: '?number', + stringValue: '?string', + }, + }, + FlowActionCallInputParameter: { + type: 'FlowActionCallInputParameter', + props: { name: 'string', value: '?FlowElementReferenceOrValue' }, + extends: 'FlowBaseElement', + }, + FlowActionCallOutputParameter: { + type: 'FlowActionCallOutputParameter', + props: { assignToReference: 'string', name: 'string' }, + extends: 'FlowBaseElement', + }, + FlowApexPluginCallInputParameter: { + type: 'FlowApexPluginCallInputParameter', + props: { name: 'string', value: '?FlowElementReferenceOrValue' }, + extends: 'FlowBaseElement', + }, + FlowApexPluginCallOutputParameter: { + type: 'FlowApexPluginCallOutputParameter', + props: { assignToReference: 'string', name: 'string' }, + extends: 'FlowBaseElement', + }, + FlowAssignmentItem: { + type: 'FlowAssignmentItem', + props: { assignToReference: 'string', operator: 'string', value: '?FlowElementReferenceOrValue' }, + extends: 'FlowBaseElement', + }, + FlowChoiceUserInput: { + type: 'FlowChoiceUserInput', + props: { isRequired: '?boolean', promptText: '?string', validationRule: '?FlowInputValidationRule' }, + extends: 'FlowBaseElement', + }, + FlowInputValidationRule: { + type: 'FlowInputValidationRule', + props: { errorMessage: 'string', formulaExpression: 'string' }, + }, + FlowCondition: { + type: 'FlowCondition', + props: { leftValueReference: 'string', operator: 'string', rightValue: '?FlowElementReferenceOrValue' }, + extends: 'FlowBaseElement', + }, + FlowConnector: { type: 'FlowConnector', props: { targetReference: 'string' }, extends: 'FlowBaseElement' }, + FlowInputFieldAssignment: { + type: 'FlowInputFieldAssignment', + props: { field: 'string', value: '?FlowElementReferenceOrValue' }, + extends: 'FlowBaseElement', + }, + FlowOutputFieldAssignment: { + type: 'FlowOutputFieldAssignment', + props: { assignToReference: 'string', field: 'string' }, + extends: 'FlowBaseElement', + }, + FlowRecordFilter: { + type: 'FlowRecordFilter', + props: { field: 'string', operator: 'string', value: '?FlowElementReferenceOrValue' }, + extends: 'FlowBaseElement', + }, + FlowScreenFieldInputParameter: { + type: 'FlowScreenFieldInputParameter', + props: { name: 'string', value: '?FlowElementReferenceOrValue' }, + extends: 'FlowBaseElement', + }, + FlowScreenFieldOutputParameter: { + type: 'FlowScreenFieldOutputParameter', + props: { assignToReference: 'string', name: 'string' }, + extends: 'FlowBaseElement', + }, + FlowScreenRule: { + type: 'FlowScreenRule', + props: { + conditionLogic: '?string', + conditions: ['FlowCondition'], + label: 'string', + ruleActions: ['FlowScreenRuleAction'], + }, + extends: 'FlowBaseElement', + }, + FlowScreenRuleAction: { + type: 'FlowScreenRuleAction', + props: { attribute: 'string', fieldReference: 'string', value: '?FlowElementReferenceOrValue' }, + extends: 'FlowBaseElement', + }, + FlowSubflowInputAssignment: { + type: 'FlowSubflowInputAssignment', + props: { name: 'string', value: '?FlowElementReferenceOrValue' }, + extends: 'FlowBaseElement', + }, + FlowSubflowOutputAssignment: { + type: 'FlowSubflowOutputAssignment', + props: { assignToReference: 'string', name: 'string' }, + extends: 'FlowBaseElement', + }, + FlowVisibilityRule: { + type: 'FlowVisibilityRule', + props: { conditionLogic: '?string', conditions: ['FlowCondition'] }, + extends: 'FlowBaseElement', + }, + FlowWaitEventInputParameter: { + type: 'FlowWaitEventInputParameter', + props: { name: 'string', value: '?FlowElementReferenceOrValue' }, + extends: 'FlowBaseElement', + }, + FlowWaitEventOutputParameter: { + type: 'FlowWaitEventOutputParameter', + props: { assignToReference: 'string', name: 'string' }, + extends: 'FlowBaseElement', + }, + FlowChoice: { + type: 'FlowChoice', + props: { + choiceText: 'string', + dataType: 'string', + userInput: '?FlowChoiceUserInput', + value: '?FlowElementReferenceOrValue', + }, + extends: 'FlowElement', + }, + FlowConstant: { + type: 'FlowConstant', + props: { dataType: 'string', value: '?FlowElementReferenceOrValue' }, + extends: 'FlowElement', + }, + FlowDynamicChoiceSet: { + type: 'FlowDynamicChoiceSet', + props: { + dataType: 'string', + displayField: 'string', + filters: ['FlowRecordFilter'], + limit: '?number', + object: 'string', + outputAssignments: ['FlowOutputFieldAssignment'], + picklistField: '?string', + picklistObject: '?string', + sortField: '?string', + sortOrder: '?string', + valueField: '?string', + }, + extends: 'FlowElement', + }, + FlowFormula: { + type: 'FlowFormula', + props: { dataType: '?string', expression: 'string', scale: '?number' }, + extends: 'FlowElement', + }, + FlowRule: { + type: 'FlowRule', + props: { conditionLogic: 'string', conditions: ['FlowCondition'], connector: '?FlowConnector', label: 'string' }, + extends: 'FlowElement', + }, + FlowScreenField: { + type: 'FlowScreenField', + props: { + choiceReferences: ['string'], + dataType: '?string', + defaultSelectedChoiceReference: '?string', + defaultValue: '?FlowElementReferenceOrValue', + extensionName: '?string', + fieldText: '?string', + fieldType: 'string', + helpText: '?string', + inputParameters: ['FlowScreenFieldInputParameter'], + isRequired: '?boolean', + isVisible: '?boolean', + outputParameters: ['FlowScreenFieldOutputParameter'], + scale: '?number', + storeOutputAutomatically: '?boolean', + validationRule: '?FlowInputValidationRule', + visibilityRule: '?FlowVisibilityRule', + }, + extends: 'FlowElement', + }, + FlowStage: { + type: 'FlowStage', + props: { isActive: 'boolean', label: 'string', stageOrder: 'number' }, + extends: 'FlowElement', + }, + FlowTextTemplate: { type: 'FlowTextTemplate', props: { text: 'string' }, extends: 'FlowElement' }, + FlowVariable: { + type: 'FlowVariable', + props: { + apexClass: '?string', + dataType: 'string', + isCollection: '?boolean', + isInput: '?boolean', + isOutput: '?boolean', + objectType: '?string', + scale: '?number', + value: '?FlowElementReferenceOrValue', + }, + extends: 'FlowElement', + }, + FlowWaitEvent: { + type: 'FlowWaitEvent', + props: { + conditionLogic: '?string', + conditions: ['FlowCondition'], + connector: 'FlowConnector', + eventType: 'string', + inputParameters: ['FlowWaitEventInputParameter'], + label: 'string', + outputParameters: ['FlowWaitEventOutputParameter'], + }, + extends: 'FlowElement', + }, + FlowApexPluginCall: { + type: 'FlowApexPluginCall', + props: { + apexClass: 'string', + connector: '?FlowConnector', + faultConnector: '?FlowConnector', + inputParameters: ['FlowApexPluginCallInputParameter'], + outputParameters: ['FlowApexPluginCallOutputParameter'], + }, + extends: 'FlowNode', + }, + FlowAssignment: { + type: 'FlowAssignment', + props: { assignmentItems: ['FlowAssignmentItem'], connector: '?FlowConnector' }, + extends: 'FlowNode', + }, + FlowDecision: { + type: 'FlowDecision', + props: { defaultConnector: '?FlowConnector', defaultConnectorLabel: '?string', rules: ['FlowRule'] }, + extends: 'FlowNode', + }, + FlowLoop: { + type: 'FlowLoop', + props: { + assignNextValueToReference: 'string', + collectionReference: 'string', + iterationOrder: '?string', + nextValueConnector: '?FlowConnector', + noMoreValuesConnector: '?FlowConnector', + }, + extends: 'FlowNode', + }, + FlowRecordCreate: { + type: 'FlowRecordCreate', + props: { + assignRecordIdToReference: '?string', + connector: '?FlowConnector', + faultConnector: '?FlowConnector', + inputAssignments: ['FlowInputFieldAssignment'], + inputReference: '?string', + object: '?string', + }, + extends: 'FlowNode', + }, + FlowRecordDelete: { + type: 'FlowRecordDelete', + props: { + connector: '?FlowConnector', + faultConnector: '?FlowConnector', + filters: ['FlowRecordFilter'], + inputReference: '?string', + object: '?string', + }, + extends: 'FlowNode', + }, + FlowRecordLookup: { + type: 'FlowRecordLookup', + props: { + assignNullValuesIfNoRecordsFound: '?boolean', + connector: '?FlowConnector', + faultConnector: '?FlowConnector', + filters: ['FlowRecordFilter'], + getFirstRecordOnly: '?boolean', + object: 'string', + outputAssignments: ['FlowOutputFieldAssignment'], + outputReference: '?string', + queriedFields: ['string'], + sortField: '?string', + sortOrder: '?string', + storeOutputAutomatically: '?boolean', + }, + extends: 'FlowNode', + }, + FlowRecordUpdate: { + type: 'FlowRecordUpdate', + props: { + connector: '?FlowConnector', + faultConnector: '?FlowConnector', + filters: ['FlowRecordFilter'], + inputAssignments: ['FlowInputFieldAssignment'], + inputReference: '?string', + object: '?string', + }, + extends: 'FlowNode', + }, + FlowScreen: { + type: 'FlowScreen', + props: { + allowBack: '?boolean', + allowFinish: '?boolean', + allowPause: '?boolean', + connector: '?FlowConnector', + fields: ['FlowScreenField'], + helpText: '?string', + pausedText: '?string', + rules: ['FlowScreenRule'], + showFooter: '?boolean', + showHeader: '?boolean', + }, + extends: 'FlowNode', + }, + FlowStart: { + type: 'FlowStart', + props: { + connector: '?FlowConnector', + filters: ['FlowRecordFilter'], + object: '?string', + schedule: '?FlowSchedule', + triggerType: '?string', + }, + extends: 'FlowNode', + }, + FlowSchedule: { type: 'FlowSchedule', props: { frequency: '?string', startDate: '?string', startTime: '?string' } }, + FlowStep: { type: 'FlowStep', props: { connectors: ['FlowConnector'] }, extends: 'FlowNode' }, + FlowSubflow: { + type: 'FlowSubflow', + props: { + connector: '?FlowConnector', + flowName: 'string', + inputAssignments: ['FlowSubflowInputAssignment'], + outputAssignments: ['FlowSubflowOutputAssignment'], + }, + extends: 'FlowNode', + }, + FlowWait: { + type: 'FlowWait', + props: { + defaultConnector: '?FlowConnector', + defaultConnectorLabel: 'string', + faultConnector: '?FlowConnector', + waitEvents: ['FlowWaitEvent'], + }, + extends: 'FlowNode', + }, + FlowCategory: { + type: 'FlowCategory', + props: { description: '?string', flowCategoryItems: ['FlowCategoryItems'], masterLabel: 'string' }, + extends: 'Metadata', + }, + FlowCategoryItems: { type: 'FlowCategoryItems', props: { flow: 'string' } }, + FlowDefinition: { + type: 'FlowDefinition', + props: { activeVersionNumber: '?number', description: '?string', masterLabel: '?string' }, + extends: 'Metadata', + }, + FlowSettings: { + type: 'FlowSettings', + props: { + enableFlowBREncodedFixEnabled: '?boolean', + enableFlowDeployAsActiveEnabled: '?boolean', + enableFlowFieldFilterEnabled: '?boolean', + enableFlowFormulasFixEnabled: '?boolean', + enableFlowInterviewSharingEnabled: '?boolean', + enableFlowNullPreviousValueFix: '?boolean', + enableFlowPauseEnabled: '?boolean', + enableFlowUseApexExceptionEmail: '?boolean', + enableInvocableFlowFixEnabled: '?boolean', + enableLightningRuntimeEnabled: '?boolean', + enableUseFlowBuilder: '?boolean', + isAccessToInvokedApexRequired: '?boolean', + isEnhancedFlowListViewVisible: '?boolean', + isManageFlowRequiredForAutomationCharts: '?boolean', + }, + extends: 'Metadata', + }, + Folder: { + type: 'Folder', + props: { + accessType: '?string', + folderShares: ['FolderShare'], + name: 'string', + publicFolderAccess: '?string', + sharedTo: '?SharedTo', + }, + extends: 'Metadata', + }, + FolderShare: { type: 'FolderShare', props: { accessLevel: 'string', sharedTo: 'string', sharedToType: 'string' } }, + DashboardFolder: { type: 'DashboardFolder', props: {}, extends: 'Folder' }, + DocumentFolder: { type: 'DocumentFolder', props: {}, extends: 'Folder' }, + EmailFolder: { type: 'EmailFolder', props: {}, extends: 'Folder' }, + ReportFolder: { type: 'ReportFolder', props: {}, extends: 'Folder' }, + ForecastingSettings: { + type: 'ForecastingSettings', + props: { + defaultToPersonalCurrency: '?boolean', + enableForecasts: '?boolean', + forecastingCategoryMappings: ['ForecastingCategoryMapping'], + forecastingDisplayedFamilySettings: ['ForecastingDisplayedFamilySettings'], + forecastingTypeSettings: ['ForecastingTypeSettings'], + }, + extends: 'Metadata', + }, + ForecastingCategoryMapping: { + type: 'ForecastingCategoryMapping', + props: { forecastingItemCategoryApiName: 'string', weightedSourceCategories: ['WeightedSourceCategory'] }, + }, + WeightedSourceCategory: { + type: 'WeightedSourceCategory', + props: { sourceCategoryApiName: 'string', weight: 'number' }, + }, + ForecastingDisplayedFamilySettings: { + type: 'ForecastingDisplayedFamilySettings', + props: { productFamily: '?string' }, + }, + ForecastingTypeSettings: { + type: 'ForecastingTypeSettings', + props: { + active: 'boolean', + adjustmentsSettings: 'AdjustmentsSettings', + displayedCategoryApiNames: ['string'], + forecastRangeSettings: 'ForecastRangeSettings', + forecastedCategoryApiNames: ['string'], + forecastingDateType: 'string', + hasProductFamily: 'boolean', + isAmount: 'boolean', + isAvailable: 'boolean', + isQuantity: 'boolean', + managerAdjustableCategoryApiNames: ['string'], + masterLabel: 'string', + name: 'string', + opportunityListFieldsLabelMappings: ['OpportunityListFieldsLabelMapping'], + opportunityListFieldsSelectedSettings: 'OpportunityListFieldsSelectedSettings', + opportunityListFieldsUnselectedSettings: 'OpportunityListFieldsUnselectedSettings', + opportunitySplitName: '?string', + ownerAdjustableCategoryApiNames: ['string'], + quotasSettings: 'QuotasSettings', + territory2ModelName: '?string', + }, + }, + AdjustmentsSettings: { + type: 'AdjustmentsSettings', + props: { enableAdjustments: 'boolean', enableOwnerAdjustments: 'boolean' }, + }, + ForecastRangeSettings: { + type: 'ForecastRangeSettings', + props: { beginning: 'number', displaying: 'number', periodType: 'string' }, + }, + OpportunityListFieldsLabelMapping: { + type: 'OpportunityListFieldsLabelMapping', + props: { field: 'string', label: 'string' }, + }, + OpportunityListFieldsSelectedSettings: { + type: 'OpportunityListFieldsSelectedSettings', + props: { field: ['string'] }, + }, + OpportunityListFieldsUnselectedSettings: { + type: 'OpportunityListFieldsUnselectedSettings', + props: { field: ['string'] }, + }, + QuotasSettings: { type: 'QuotasSettings', props: { showQuotas: 'boolean' } }, + Form: { + type: 'Form', + props: { description: '?string', formSections: ['FormSection'], masterLabel: 'string' }, + extends: 'Metadata', + }, + FormSection: { + type: 'FormSection', + props: { formColumns: ['FormColumn'], masterLabel: 'string', tabOrderType: 'string' }, + extends: 'Metadata', + }, + FormColumn: { type: 'FormColumn', props: { formItems: ['FormItem'] } }, + FormItem: { + type: 'FormItem', + props: { emptySpace: '?boolean', expression: '?string', formLayoutableItem: '?string', helpText: '?string' }, + }, + FormulaSettings: { type: 'FormulaSettings', props: { enableDSTAwareDatevalue: '?boolean' }, extends: 'Metadata' }, + GlobalValueSet: { + type: 'GlobalValueSet', + props: { customValue: ['CustomValue'], description: '?string', masterLabel: 'string', sorted: 'boolean' }, + extends: 'Metadata', + }, + GlobalValueSetTranslation: { + type: 'GlobalValueSetTranslation', + props: { valueTranslation: ['ValueTranslation'] }, + extends: 'Metadata', + }, + ValueTranslation: { type: 'ValueTranslation', props: { masterLabel: 'string', translation: '?string' } }, + GoogleAppsSettings: { + type: 'GoogleAppsSettings', + props: { + enableGmailButtons: '?boolean', + enableGmailButtonsAndLinks: '?boolean', + enableGmailLinks: '?boolean', + enableGoogleDocs: '?boolean', + enableGoogleDocsTab: '?boolean', + enableGoogleTalk: '?boolean', + googleAppsDomain: '?string', + googleAppsDomainLinked: '?boolean', + googleAppsDomainValidated: '?boolean', + }, + extends: 'Metadata', + }, + Group: { type: 'Group', props: { doesIncludeBosses: '?boolean', name: 'string' }, extends: 'Metadata' }, + HighVelocitySalesSettings: { + type: 'HighVelocitySalesSettings', + props: { + enableDispositionCategory: '?boolean', + enableEngagementWaveAnalyticsPref: '?boolean', + enableHighVelocitySales: '?boolean', + enableHighVelocitySalesSetup: '?boolean', + }, + extends: 'Metadata', + }, + HomePageComponent: { + type: 'HomePageComponent', + props: { + body: '?string', + height: '?number', + links: ['string'], + page: '?string', + pageComponentType: 'string', + showLabel: '?boolean', + showScrollbars: '?boolean', + width: '?string', + }, + extends: 'Metadata', + }, + HomePageLayout: { + type: 'HomePageLayout', + props: { narrowComponents: ['string'], wideComponents: ['string'] }, + extends: 'Metadata', + }, + IdeasSettings: { + type: 'IdeasSettings', + props: { + enableChatterProfile: '?boolean', + enableHtmlIdea: '?boolean', + enableIdeaMultipleCategory: '?boolean', + enableIdeaThemes: '?boolean', + enableIdeas: '?boolean', + enableIdeasControllerExtensions: '?boolean', + enableIdeasReputation: '?boolean', + halfLife: '?number', + ideasProfilePage: '?string', + }, + extends: 'Metadata', + }, + IndustriesManufacturingSettings: { + type: 'IndustriesManufacturingSettings', + props: { enableIndManufacturing: '?boolean', enableIndustriesMfgAccountForecast: '?boolean' }, + extends: 'Metadata', + }, + IndustriesSettings: { + type: 'IndustriesSettings', + props: { + allowMultipleProducersToWorkOnSamePolicy: '?boolean', + enableAccessToMasterListOfCoverageTypes: '?boolean', + enableBlockResourceAvailabilityOrgPref: '?boolean', + enableEventManagementOrgPref: '?boolean', + enableHCReferralScoring: '?boolean', + enableManyToManyRelationships: '?boolean', + enableMortgageRlaTotalsOrgPref: '?boolean', + enableMultiResourceOrgPref: '?boolean', + enableObjectDetection: '?boolean', + enableOverbookingOrgPref: '?boolean', + enableProviderSearchSyncOrgPref: '?boolean', + enableReferralScoring: '?boolean', + enableSentimentAnalysis: '?boolean', + }, + extends: 'Metadata', + }, + InstalledPackage: { + type: 'InstalledPackage', + props: { activateRSS: 'boolean', password: '?string', versionNumber: 'string' }, + extends: 'Metadata', + }, + IntegrationHubSettings: { + type: 'IntegrationHubSettings', + props: { + canonicalName: '?string', + canonicalNameBindingChar: '?string', + description: '?string', + isEnabled: '?boolean', + isProtected: '?boolean', + masterLabel: 'string', + setupData: '?string', + setupDefinition: '?string', + setupNamespace: '?string', + setupSimpleName: 'string', + uUID: '?string', + version: '?string', + versionBuild: '?number', + versionMajor: '?number', + versionMinor: '?number', + versionSetUuid: '?string', + }, + extends: 'Metadata', + }, + IntegrationHubSettingsType: { + type: 'IntegrationHubSettingsType', + props: { + canonicalName: '?string', + canonicalNameBindingChar: '?string', + description: '?string', + isEnabled: '?boolean', + isProtected: '?boolean', + masterLabel: 'string', + setupNamespace: '?string', + setupSimpleName: 'string', + uUID: '?string', + version: '?string', + versionBuild: '?number', + versionMajor: '?number', + versionMinor: '?number', + versionSetUuid: '?string', + }, + extends: 'Metadata', + }, + InvocableActionSettings: { + type: 'InvocableActionSettings', + props: { isPartialSaveAllowed: '?boolean' }, + extends: 'Metadata', + }, + IoTSettings: { + type: 'IoTSettings', + props: { enableIoT: '?boolean', enableIoTInsightsPilot: '?boolean', enableIoTUsageEmail: '?boolean' }, + extends: 'Metadata', + }, + IsvHammerSettings: { + type: 'IsvHammerSettings', + props: { enableIsvHammerSubIsOptedOut: '?boolean' }, + extends: 'Metadata', + }, + KeywordList: { + type: 'KeywordList', + props: { description: '?string', keywords: ['Keyword'], masterLabel: 'string' }, + extends: 'Metadata', + }, + Keyword: { type: 'Keyword', props: { keyword: 'string' } }, + KnowledgeSettings: { + type: 'KnowledgeSettings', + props: { + answers: '?KnowledgeAnswerSettings', + cases: '?KnowledgeCaseSettings', + defaultLanguage: '?string', + enableChatterQuestionKBDeflection: '?boolean', + enableCreateEditOnArticlesTab: '?boolean', + enableExternalMediaContent: '?boolean', + enableKnowledge: '?boolean', + enableKnowledgeArticleTextHighlights: '?boolean', + enableKnowledgeKeywordAutoComplete: '?boolean', + enableKnowledgeTitleAutoComplete: '?boolean', + enableLightningKbAutoLoadRichTextField: '?boolean', + enableLightningKnowledge: '?boolean', + languages: '?KnowledgeLanguageSettings', + showArticleSummariesCustomerPortal: '?boolean', + showArticleSummariesInternalApp: '?boolean', + showArticleSummariesPartnerPortal: '?boolean', + showValidationStatusField: '?boolean', + suggestedArticles: '?KnowledgeSuggestedArticlesSettings', + }, + extends: 'Metadata', + }, + KnowledgeAnswerSettings: { + type: 'KnowledgeAnswerSettings', + props: { assignTo: '?string', defaultArticleType: '?string', enableArticleCreation: '?boolean' }, + }, + KnowledgeCaseSettings: { + type: 'KnowledgeCaseSettings', + props: { + articlePDFCreationProfile: '?string', + articlePublicSharingCommunities: '?KnowledgeCommunitiesSettings', + articlePublicSharingSites: '?KnowledgeSitesSettings', + articlePublicSharingSitesChatterAnswers: '?KnowledgeSitesSettings', + assignTo: '?string', + customizationClass: '?string', + defaultContributionArticleType: '?string', + editor: '?string', + enableArticleCreation: '?boolean', + enableArticlePublicSharingSites: '?boolean', + enableCaseDataCategoryMapping: '?boolean', + useProfileForPDFCreation: '?boolean', + }, + }, + KnowledgeCommunitiesSettings: { type: 'KnowledgeCommunitiesSettings', props: { community: ['string'] } }, + KnowledgeSitesSettings: { type: 'KnowledgeSitesSettings', props: { site: ['string'] } }, + KnowledgeLanguageSettings: { type: 'KnowledgeLanguageSettings', props: { language: ['KnowledgeLanguage'] } }, + KnowledgeLanguage: { + type: 'KnowledgeLanguage', + props: { + active: '?boolean', + defaultAssignee: '?string', + defaultAssigneeType: '?string', + defaultReviewer: '?string', + defaultReviewerType: '?string', + name: 'string', + }, + }, + KnowledgeSuggestedArticlesSettings: { + type: 'KnowledgeSuggestedArticlesSettings', + props: { + caseFields: '?KnowledgeCaseFieldsSettings', + useSuggestedArticlesForCase: '?boolean', + workOrderFields: '?KnowledgeWorkOrderFieldsSettings', + workOrderLineItemFields: '?KnowledgeWorkOrderLineItemFieldsSettings', + }, + }, + KnowledgeCaseFieldsSettings: { type: 'KnowledgeCaseFieldsSettings', props: { field: ['KnowledgeCaseField'] } }, + KnowledgeCaseField: { type: 'KnowledgeCaseField', props: { name: '?string' } }, + KnowledgeWorkOrderFieldsSettings: { + type: 'KnowledgeWorkOrderFieldsSettings', + props: { field: ['KnowledgeWorkOrderField'] }, + }, + KnowledgeWorkOrderField: { type: 'KnowledgeWorkOrderField', props: { name: '?string' } }, + KnowledgeWorkOrderLineItemFieldsSettings: { + type: 'KnowledgeWorkOrderLineItemFieldsSettings', + props: { field: ['KnowledgeWorkOrderLineItemField'] }, + }, + KnowledgeWorkOrderLineItemField: { type: 'KnowledgeWorkOrderLineItemField', props: { name: '?string' } }, + LanguageSettings: { + type: 'LanguageSettings', + props: { + enableCanadaIcuFormat: '?boolean', + enableEndUserLanguages: '?boolean', + enableICULocaleDateFormat: '?boolean', + enablePlatformLanguages: '?boolean', + enableTranslationWorkbench: '?boolean', + useLanguageFallback: '?boolean', + }, + extends: 'Metadata', + }, + Layout: { + type: 'Layout', + props: { + customButtons: ['string'], + customConsoleComponents: '?CustomConsoleComponents', + emailDefault: '?boolean', + excludeButtons: ['string'], + feedLayout: '?FeedLayout', + headers: ['string'], + layoutSections: ['LayoutSection'], + miniLayout: '?MiniLayout', + multilineLayoutFields: ['string'], + platformActionList: '?PlatformActionList', + quickActionList: '?QuickActionList', + relatedContent: '?RelatedContent', + relatedLists: ['RelatedListItem'], + relatedObjects: ['string'], + runAssignmentRulesDefault: '?boolean', + showEmailCheckbox: '?boolean', + showHighlightsPanel: '?boolean', + showInteractionLogPanel: '?boolean', + showKnowledgeComponent: '?boolean', + showRunAssignmentRulesCheckbox: '?boolean', + showSolutionSection: '?boolean', + showSubmitAndAttachButton: '?boolean', + summaryLayout: '?SummaryLayout', + }, + extends: 'Metadata', + }, + CustomConsoleComponents: { + type: 'CustomConsoleComponents', + props: { primaryTabComponents: '?PrimaryTabComponents', subtabComponents: '?SubtabComponents' }, + }, + PrimaryTabComponents: { type: 'PrimaryTabComponents', props: { containers: ['Container'] } }, + Container: { + type: 'Container', + props: { + height: '?number', + isContainerAutoSizeEnabled: 'boolean', + region: 'string', + sidebarComponents: ['SidebarComponent'], + style: 'string', + unit: 'string', + width: '?number', + }, + }, + SidebarComponent: { + type: 'SidebarComponent', + props: { + componentType: 'string', + createAction: '?string', + enableLinking: '?boolean', + height: '?number', + label: '?string', + lookup: '?string', + page: '?string', + relatedLists: ['RelatedList'], + unit: '?string', + updateAction: '?string', + width: '?number', + }, + }, + RelatedList: { type: 'RelatedList', props: { hideOnDetail: 'boolean', name: 'string' } }, + SubtabComponents: { type: 'SubtabComponents', props: { containers: ['Container'] } }, + FeedLayout: { + type: 'FeedLayout', + props: { + autocollapsePublisher: '?boolean', + compactFeed: '?boolean', + feedFilterPosition: '?string', + feedFilters: ['FeedLayoutFilter'], + fullWidthFeed: '?boolean', + hideSidebar: '?boolean', + highlightExternalFeedItems: '?boolean', + leftComponents: ['FeedLayoutComponent'], + rightComponents: ['FeedLayoutComponent'], + useInlineFiltersInConsole: '?boolean', + }, + }, + FeedLayoutFilter: { + type: 'FeedLayoutFilter', + props: { feedFilterName: '?string', feedFilterType: 'string', feedItemType: '?string' }, + }, + FeedLayoutComponent: { + type: 'FeedLayoutComponent', + props: { componentType: 'string', height: '?number', page: '?string' }, + }, + LayoutSection: { + type: 'LayoutSection', + props: { + customLabel: '?boolean', + detailHeading: '?boolean', + editHeading: '?boolean', + label: '?string', + layoutColumns: ['LayoutColumn'], + style: 'string', + }, + }, + LayoutColumn: { type: 'LayoutColumn', props: { layoutItems: ['LayoutItem'], reserved: '?string' } }, + LayoutItem: { + type: 'LayoutItem', + props: { + analyticsCloudComponent: '?AnalyticsCloudComponentLayoutItem', + behavior: '?string', + canvas: '?string', + component: '?string', + customLink: '?string', + emptySpace: '?boolean', + field: '?string', + height: '?number', + page: '?string', + reportChartComponent: '?ReportChartComponentLayoutItem', + scontrol: '?string', + showLabel: '?boolean', + showScrollbars: '?boolean', + width: '?string', + }, + }, + AnalyticsCloudComponentLayoutItem: { + type: 'AnalyticsCloudComponentLayoutItem', + props: { + assetType: 'string', + devName: 'string', + error: '?string', + filter: '?string', + height: '?number', + hideOnError: '?boolean', + showHeader: '?boolean', + showSharing: '?boolean', + showTitle: '?boolean', + width: '?string', + }, + }, + ReportChartComponentLayoutItem: { + type: 'ReportChartComponentLayoutItem', + props: { + cacheData: '?boolean', + contextFilterableField: '?string', + error: '?string', + hideOnError: '?boolean', + includeContext: '?boolean', + reportName: 'string', + showTitle: '?boolean', + size: '?string', + }, + }, + MiniLayout: { type: 'MiniLayout', props: { fields: ['string'], relatedLists: ['RelatedListItem'] } }, + RelatedListItem: { + type: 'RelatedListItem', + props: { + customButtons: ['string'], + excludeButtons: ['string'], + fields: ['string'], + relatedList: 'string', + sortField: '?string', + sortOrder: '?string', + }, + }, + RelatedContent: { type: 'RelatedContent', props: { relatedContentItems: ['RelatedContentItem'] } }, + RelatedContentItem: { type: 'RelatedContentItem', props: { layoutItem: 'LayoutItem' } }, + SummaryLayout: { + type: 'SummaryLayout', + props: { + masterLabel: 'string', + sizeX: 'number', + sizeY: '?number', + sizeZ: '?number', + summaryLayoutItems: ['SummaryLayoutItem'], + summaryLayoutStyle: 'string', + }, + }, + SummaryLayoutItem: { + type: 'SummaryLayoutItem', + props: { customLink: '?string', field: '?string', posX: 'number', posY: '?number', posZ: '?number' }, + }, + LeadConfigSettings: { + type: 'LeadConfigSettings', + props: { + doesEnableLeadConvertDefaultSubjectBlankTaskCreation: '?boolean', + doesHideOpportunityInConvertLeadWindow: '?boolean', + doesPreserveLeadStatus: '?boolean', + doesSelectNoOpportunityOnConvertLead: '?boolean', + doesTrackHistory: '?boolean', + enableConversionsOnMobile: '?boolean', + enableOrgWideMergeAndDelete: '?boolean', + shouldLeadConvertRequireValidation: '?boolean', + }, + extends: 'Metadata', + }, + LeadConvertSettings: { + type: 'LeadConvertSettings', + props: { allowOwnerChange: '?boolean', objectMapping: ['ObjectMapping'], opportunityCreationOptions: '?string' }, + extends: 'Metadata', + }, + Letterhead: { + type: 'Letterhead', + props: { + available: 'boolean', + backgroundColor: 'string', + bodyColor: 'string', + bottomLine: 'LetterheadLine', + description: '?string', + footer: 'LetterheadHeaderFooter', + header: 'LetterheadHeaderFooter', + middleLine: 'LetterheadLine', + name: 'string', + topLine: 'LetterheadLine', + }, + extends: 'Metadata', + }, + LetterheadLine: { type: 'LetterheadLine', props: { color: 'string', height: 'number' } }, + LetterheadHeaderFooter: { + type: 'LetterheadHeaderFooter', + props: { + backgroundColor: 'string', + height: 'number', + horizontalAlignment: '?string', + logo: '?string', + verticalAlignment: '?string', + }, + }, + LicenseDefinition: { + type: 'LicenseDefinition', + props: { + aggregationGroup: 'string', + description: '?string', + isPublished: 'boolean', + label: 'string', + licensedCustomPermissions: ['LicensedCustomPermissions'], + licensingAuthority: 'string', + licensingAuthorityProvider: 'string', + minPlatformVersion: 'number', + origin: 'string', + revision: 'number', + trialLicenseDuration: 'number', + trialLicenseQuantity: 'number', + }, + extends: 'Metadata', + }, + LicensedCustomPermissions: { + type: 'LicensedCustomPermissions', + props: { customPermission: 'string', licenseDefinition: 'string' }, + }, + LightningBolt: { + type: 'LightningBolt', + props: { + category: 'string', + lightningBoltFeatures: ['LightningBoltFeatures'], + lightningBoltImages: ['LightningBoltImages'], + lightningBoltItems: ['LightningBoltItems'], + masterLabel: 'string', + publisher: 'string', + summary: 'string', + }, + extends: 'Metadata', + }, + LightningBoltFeatures: { + type: 'LightningBoltFeatures', + props: { description: '?string', order: 'number', title: 'string' }, + }, + LightningBoltImages: { type: 'LightningBoltImages', props: { image: 'string', order: 'number' } }, + LightningBoltItems: { type: 'LightningBoltItems', props: { name: 'string', type: 'string' } }, + LightningComponentBundle: { + type: 'LightningComponentBundle', + props: { + apiVersion: '?number', + description: '?string', + isExplicitImport: '?boolean', + isExposed: '?boolean', + lwcResources: '?LwcResources', + masterLabel: '?string', + runtimeNamespace: '?string', + targetConfigs: '?string', + targets: '?Targets', + }, + extends: 'Metadata', + }, + LwcResources: { type: 'LwcResources', props: { lwcResource: ['LwcResource'] } }, + LwcResource: { type: 'LwcResource', props: { filePath: 'string', source: 'string' } }, + Targets: { type: 'Targets', props: { target: ['string'] } }, + LightningExperienceSettings: { + type: 'LightningExperienceSettings', + props: { + enableAccessCheckCrucPref: '?boolean', + enableApiUserLtngOutAccessPref: '?boolean', + enableAuraCDNPref: '?boolean', + enableFeedbackInMobile: '?boolean', + enableIE11DeprecationMsgHidden: '?boolean', + enableIE11LEXCrucPref: '?boolean', + enableInAppTooltips: '?boolean', + enableLEXOnIpadEnabled: '?boolean', + enableLexEndUsersNoSwitching: '?boolean', + enableNavPersonalizationOptOut: '?boolean', + enableRemoveThemeBrandBanner: '?boolean', + enableS1BannerPref: '?boolean', + enableS1BrowserEnabled: '?boolean', + enableS1DesktopEnabled: '?boolean', + enableS1UiLoggingEnabled: '?boolean', + enableTryLightningOptOut: '?boolean', + enableUseS1AlohaDesktop: '?boolean', + enableUsersAreLightningOnly: '?boolean', + }, + extends: 'Metadata', + }, + LightningExperienceTheme: { + type: 'LightningExperienceTheme', + props: { + defaultBrandingSet: 'string', + description: '?string', + masterLabel: 'string', + shouldOverrideLoadingImage: '?boolean', + }, + extends: 'Metadata', + }, + LightningMessageChannel: { + type: 'LightningMessageChannel', + props: { + description: '?string', + isExposed: '?boolean', + lightningMessageFields: ['LightningMessageField'], + masterLabel: 'string', + }, + extends: 'Metadata', + }, + LightningMessageField: { type: 'LightningMessageField', props: { description: '?string', fieldName: 'string' } }, + LightningOnboardingConfig: { + type: 'LightningOnboardingConfig', + props: { + collaborationGroup: '?string', + customQuestion: 'string', + feedbackFormDaysFrequency: 'number', + isCustom: 'boolean', + masterLabel: 'string', + sendFeedbackToSalesforce: 'boolean', + }, + extends: 'Metadata', + }, + LiveAgentSettings: { + type: 'LiveAgentSettings', + props: { enableLiveAgent: '?boolean', enableQuickTextEnabled: '?boolean' }, + extends: 'Metadata', + }, + LiveChatAgentConfig: { + type: 'LiveChatAgentConfig', + props: { + assignments: '?AgentConfigAssignments', + autoGreeting: '?string', + capacity: '?number', + criticalWaitTime: '?number', + customAgentName: '?string', + enableAgentFileTransfer: '?boolean', + enableAgentSneakPeek: '?boolean', + enableAssistanceFlag: '?boolean', + enableAutoAwayOnDecline: '?boolean', + enableAutoAwayOnPushTimeout: '?boolean', + enableChatConferencing: '?boolean', + enableChatMonitoring: '?boolean', + enableChatTransferToAgent: '?boolean', + enableChatTransferToButton: '?boolean', + enableChatTransferToSkill: '?boolean', + enableLogoutSound: '?boolean', + enableNotifications: '?boolean', + enableRequestSound: '?boolean', + enableSneakPeek: '?boolean', + enableVisitorBlocking: '?boolean', + enableWhisperMessage: '?boolean', + label: 'string', + supervisorDefaultAgentStatusFilter: '?string', + supervisorDefaultButtonFilter: '?string', + supervisorDefaultSkillFilter: '?string', + supervisorSkills: '?SupervisorAgentConfigSkills', + transferableButtons: '?AgentConfigButtons', + transferableSkills: '?AgentConfigSkills', + }, + extends: 'Metadata', + }, + AgentConfigAssignments: { + type: 'AgentConfigAssignments', + props: { profiles: '?AgentConfigProfileAssignments', users: '?AgentConfigUserAssignments' }, + }, + AgentConfigProfileAssignments: { type: 'AgentConfigProfileAssignments', props: { profile: ['string'] } }, + AgentConfigUserAssignments: { type: 'AgentConfigUserAssignments', props: { user: ['string'] } }, + SupervisorAgentConfigSkills: { type: 'SupervisorAgentConfigSkills', props: { skill: ['string'] } }, + AgentConfigButtons: { type: 'AgentConfigButtons', props: { button: ['string'] } }, + AgentConfigSkills: { type: 'AgentConfigSkills', props: { skill: ['string'] } }, + LiveChatButton: { + type: 'LiveChatButton', + props: { + animation: '?string', + autoGreeting: '?string', + chasitorIdleTimeout: '?number', + chasitorIdleTimeoutWarning: '?number', + chatPage: '?string', + customAgentName: '?string', + deployments: '?LiveChatButtonDeployments', + enableQueue: '?boolean', + inviteEndPosition: '?string', + inviteImage: '?string', + inviteStartPosition: '?string', + isActive: '?boolean', + label: 'string', + numberOfReroutingAttempts: '?number', + offlineImage: '?string', + onlineImage: '?string', + optionsCustomRoutingIsEnabled: '?boolean', + optionsHasChasitorIdleTimeout: 'boolean', + optionsHasInviteAfterAccept: '?boolean', + optionsHasInviteAfterReject: '?boolean', + optionsHasRerouteDeclinedRequest: '?boolean', + optionsIsAutoAccept: '?boolean', + optionsIsInviteAutoRemove: '?boolean', + overallQueueLength: '?number', + perAgentQueueLength: '?number', + postChatPage: '?string', + postChatUrl: '?string', + preChatFormPage: '?string', + preChatFormUrl: '?string', + pushTimeOut: '?number', + routingType: 'string', + site: '?string', + skills: '?LiveChatButtonSkills', + timeToRemoveInvite: '?number', + type: 'string', + windowLanguage: '?string', + }, + extends: 'Metadata', + }, + LiveChatButtonDeployments: { type: 'LiveChatButtonDeployments', props: { deployment: ['string'] } }, + LiveChatButtonSkills: { type: 'LiveChatButtonSkills', props: { skill: ['string'] } }, + LiveChatDeployment: { + type: 'LiveChatDeployment', + props: { + brandingImage: '?string', + connectionTimeoutDuration: '?number', + connectionWarningDuration: '?number', + displayQueuePosition: '?boolean', + domainWhiteList: '?LiveChatDeploymentDomainWhitelist', + enablePrechatApi: '?boolean', + enableTranscriptSave: '?boolean', + label: 'string', + mobileBrandingImage: '?string', + site: '?string', + windowTitle: 'string', + }, + extends: 'Metadata', + }, + LiveChatDeploymentDomainWhitelist: { type: 'LiveChatDeploymentDomainWhitelist', props: { domain: ['string'] } }, + LiveChatSensitiveDataRule: { + type: 'LiveChatSensitiveDataRule', + props: { + actionType: 'string', + description: '?string', + enforceOn: 'number', + isEnabled: 'boolean', + pattern: 'string', + priority: 'number', + replacement: '?string', + }, + extends: 'Metadata', + }, + LiveMessageSettings: { type: 'LiveMessageSettings', props: { enableLiveMessage: '?boolean' }, extends: 'Metadata' }, + MacroSettings: { + type: 'MacroSettings', + props: { enableAdvancedSearch: '?boolean', macrosInFolders: '?boolean' }, + extends: 'Metadata', + }, + ManagedContentType: { + type: 'ManagedContentType', + props: { + description: '?string', + developerName: 'string', + managedContentNodeTypes: ['ManagedContentNodeType'], + masterLabel: 'string', + }, + extends: 'Metadata', + }, + ManagedContentNodeType: { + type: 'ManagedContentNodeType', + props: { + helpText: '?string', + isLocalizable: '?boolean', + isRequired: '?boolean', + nodeLabel: 'string', + nodeName: 'string', + nodeType: 'string', + placeholderText: '?string', + }, + }, + ManagedTopic: { + type: 'ManagedTopic', + props: { + managedTopicType: 'string', + name: 'string', + parentName: 'string', + position: 'number', + topicDescription: 'string', + }, + extends: 'Metadata', + }, + ManagedTopics: { type: 'ManagedTopics', props: { managedTopic: ['ManagedTopic'] }, extends: 'Metadata' }, + SourceTrackingSettings: { + type: 'SourceTrackingSettings', + props: { enableSourceTrackingSandboxes: '?boolean' }, + extends: 'Metadata', + }, + MapsAndLocationSettings: { + type: 'MapsAndLocationSettings', + props: { enableAddressAutoComplete: '?boolean', enableMapsAndLocation: '?boolean' }, + extends: 'Metadata', + }, + MatchingRule: { + type: 'MatchingRule', + props: { + booleanFilter: '?string', + description: '?string', + label: 'string', + matchingRuleItems: ['MatchingRuleItem'], + ruleStatus: 'string', + }, + extends: 'Metadata', + }, + MatchingRuleItem: { + type: 'MatchingRuleItem', + props: { blankValueBehavior: '?string', fieldName: 'string', matchingMethod: 'string' }, + }, + MatchingRules: { type: 'MatchingRules', props: { matchingRules: ['MatchingRule'] }, extends: 'Metadata' }, + MetadataWithContent: { type: 'MetadataWithContent', props: { content: '?string' }, extends: 'Metadata' }, + AccessControlPolicy: { + type: 'AccessControlPolicy', + props: { + active: 'boolean', + deploymentStatus: 'string', + description: '?string', + masterLabel: 'string', + targetEntity: 'string', + version: 'number', + }, + extends: 'MetadataWithContent', + }, + ApexClass: { + type: 'ApexClass', + props: { apiVersion: 'number', packageVersions: ['PackageVersion'], status: 'string' }, + extends: 'MetadataWithContent', + }, + ApexComponent: { + type: 'ApexComponent', + props: { apiVersion: '?number', description: '?string', label: 'string', packageVersions: ['PackageVersion'] }, + extends: 'MetadataWithContent', + }, + ApexPage: { + type: 'ApexPage', + props: { + apiVersion: 'number', + availableInTouch: '?boolean', + confirmationTokenRequired: '?boolean', + description: '?string', + label: 'string', + packageVersions: ['PackageVersion'], + }, + extends: 'MetadataWithContent', + }, + ApexTrigger: { + type: 'ApexTrigger', + props: { apiVersion: 'number', packageVersions: ['PackageVersion'], status: 'string' }, + extends: 'MetadataWithContent', + }, + Certificate: { + type: 'Certificate', + props: { + caSigned: 'boolean', + encryptedWithPlatformEncryption: '?boolean', + expirationDate: '?string', + keySize: '?number', + masterLabel: 'string', + privateKeyExportable: '?boolean', + }, + extends: 'MetadataWithContent', + }, + ContentAsset: { + type: 'ContentAsset', + props: { + format: '?string', + isVisibleByExternalUsers: '?boolean', + language: 'string', + masterLabel: 'string', + originNetwork: '?string', + relationships: '?ContentAssetRelationships', + versions: 'ContentAssetVersions', + }, + extends: 'MetadataWithContent', + }, + ContentAssetRelationships: { + type: 'ContentAssetRelationships', + props: { + insightsApplication: ['ContentAssetLink'], + network: ['ContentAssetLink'], + organization: '?ContentAssetLink', + workspace: ['ContentAssetLink'], + }, + }, + ContentAssetLink: { + type: 'ContentAssetLink', + props: { access: 'string', isManagingWorkspace: '?boolean', name: '?string' }, + }, + ContentAssetVersions: { type: 'ContentAssetVersions', props: { version: ['ContentAssetVersion'] } }, + ContentAssetVersion: { + type: 'ContentAssetVersion', + props: { number: 'string', pathOnClient: 'string', zipEntry: '?string' }, + }, + Document: { + type: 'Document', + props: { + description: '?string', + internalUseOnly: 'boolean', + keywords: '?string', + name: '?string', + public: 'boolean', + }, + extends: 'MetadataWithContent', + }, + EclairGeoData: { + type: 'EclairGeoData', + props: { maps: ['EclairMap'], masterLabel: 'string' }, + extends: 'MetadataWithContent', + }, + EclairMap: { + type: 'EclairMap', + props: { + boundingBoxBottom: '?number', + boundingBoxLeft: '?number', + boundingBoxRight: '?number', + boundingBoxTop: '?number', + mapLabel: '?string', + mapName: 'string', + projection: 'string', + }, + }, + EmailTemplate: { + type: 'EmailTemplate', + props: { + apiVersion: '?number', + attachedDocuments: ['string'], + attachments: ['Attachment'], + available: 'boolean', + description: '?string', + encodingKey: 'string', + letterhead: '?string', + name: 'string', + packageVersions: ['PackageVersion'], + relatedEntityType: '?string', + style: 'string', + subject: '?string', + textOnly: '?string', + type: 'string', + uiType: '?string', + }, + extends: 'MetadataWithContent', + }, + Attachment: { type: 'Attachment', props: { content: 'string', name: 'string' } }, + NetworkBranding: { + type: 'NetworkBranding', + props: { + loginBackgroundImageUrl: '?string', + loginFooterText: '?string', + loginLogo: '?string', + loginLogoName: '?string', + loginPrimaryColor: '?string', + loginQuaternaryColor: '?string', + loginRightFrameUrl: '?string', + network: '?string', + pageFooter: '?string', + pageHeader: '?string', + primaryColor: 'string', + primaryComplementColor: 'string', + quaternaryColor: 'string', + quaternaryComplementColor: 'string', + secondaryColor: 'string', + staticLogoImageUrl: '?string', + tertiaryColor: 'string', + tertiaryComplementColor: 'string', + zeronaryColor: 'string', + zeronaryComplementColor: 'string', + }, + extends: 'MetadataWithContent', + }, + Orchestration: { + type: 'Orchestration', + props: { context: 'string', masterLabel: 'string' }, + extends: 'MetadataWithContent', + }, + Scontrol: { + type: 'Scontrol', + props: { + contentSource: 'string', + description: '?string', + encodingKey: 'string', + fileContent: '?string', + fileName: '?string', + name: 'string', + supportsCaching: 'boolean', + }, + extends: 'MetadataWithContent', + }, + SiteDotCom: { type: 'SiteDotCom', props: { label: 'string', siteType: 'string' }, extends: 'MetadataWithContent' }, + StaticResource: { + type: 'StaticResource', + props: { cacheControl: 'string', contentType: 'string', description: '?string' }, + extends: 'MetadataWithContent', + }, + UiPlugin: { + type: 'UiPlugin', + props: { + description: '?string', + extensionPointIdentifier: 'string', + isEnabled: 'boolean', + language: 'string', + masterLabel: 'string', + }, + extends: 'MetadataWithContent', + }, + WaveDashboard: { + type: 'WaveDashboard', + props: { + application: 'string', + description: '?string', + masterLabel: 'string', + templateAssetSourceName: '?string', + }, + extends: 'MetadataWithContent', + }, + WaveDataflow: { + type: 'WaveDataflow', + props: { dataflowType: '?string', description: '?string', masterLabel: 'string' }, + extends: 'MetadataWithContent', + }, + WaveLens: { + type: 'WaveLens', + props: { + application: 'string', + datasets: ['string'], + description: '?string', + masterLabel: 'string', + templateAssetSourceName: '?string', + visualizationType: 'string', + }, + extends: 'MetadataWithContent', + }, + WaveRecipe: { + type: 'WaveRecipe', + props: { dataflow: 'string', masterLabel: 'string', securityPredicate: '?string', targetDatasetAlias: 'string' }, + extends: 'MetadataWithContent', + }, + MilestoneType: { + type: 'MilestoneType', + props: { description: '?string', recurrenceType: '?string' }, + extends: 'Metadata', + }, + MlDomain: { + type: 'MlDomain', + props: { description: '?string', label: 'string', mlIntents: ['MlIntent'], mlSlotClasses: ['MlSlotClass'] }, + extends: 'Metadata', + }, + MobileApplicationDetail: { + type: 'MobileApplicationDetail', + props: { + applicationBinaryFile: '?string', + applicationBinaryFileName: '?string', + applicationBundleIdentifier: '?string', + applicationFileLength: '?number', + applicationIconFile: '?string', + applicationIconFileName: '?string', + applicationInstallUrl: '?string', + devicePlatform: 'string', + deviceType: '?string', + minimumOsVersion: '?string', + privateApp: '?boolean', + version: 'string', + }, + extends: 'Metadata', + }, + MobileSettings: { + type: 'MobileSettings', + props: { + dashboardMobile: '?DashboardMobileSettings', + enableImportContactFromDevice: '?boolean', + enableLightningOnMobile: '?boolean', + enableOfflineDraftsEnabled: '?boolean', + enablePopulateNameManuallyInToday: '?boolean', + enableS1EncryptedStoragePref2: '?boolean', + enableS1OfflinePref: '?boolean', + }, + extends: 'Metadata', + }, + DashboardMobileSettings: { type: 'DashboardMobileSettings', props: { enableDashboardIPadApp: '?boolean' } }, + ModerationRule: { + type: 'ModerationRule', + props: { + action: 'string', + actionLimit: '?number', + active: 'boolean', + description: '?string', + entitiesAndFields: ['ModeratedEntityField'], + masterLabel: 'string', + notifyLimit: '?number', + timePeriod: '?string', + type: '?string', + userCriteria: ['string'], + userMessage: '?string', + }, + extends: 'Metadata', + }, + ModeratedEntityField: { + type: 'ModeratedEntityField', + props: { entityName: 'string', fieldName: '?string', keywordList: '?string' }, + }, + MyDomainSettings: { + type: 'MyDomainSettings', + props: { + canOnlyLoginWithMyDomainUrl: '?boolean', + doesApiLoginRequireOrgDomain: '?boolean', + enableNativeBrowserForAuthOnAndroid: '?boolean', + enableNativeBrowserForAuthOnIos: '?boolean', + useStabilizedMyDomainHostnames: '?boolean', + useStabilizedSandboxMyDomainHostnames: '?boolean', + }, + extends: 'Metadata', + }, + NameSettings: { + type: 'NameSettings', + props: { enableMiddleName: '?boolean', enableNameSuffix: '?boolean' }, + extends: 'Metadata', + }, + NamedCredential: { + type: 'NamedCredential', + props: { + allowMergeFieldsInBody: '?boolean', + allowMergeFieldsInHeader: '?boolean', + authProvider: '?string', + authTokenEndpointUrl: '?string', + awsAccessKey: '?string', + awsAccessSecret: '?string', + awsRegion: '?string', + awsService: '?string', + certificate: '?string', + endpoint: '?string', + generateAuthorizationHeader: '?boolean', + jwtAudience: '?string', + jwtFormulaSubject: '?string', + jwtIssuer: '?string', + jwtSigningCertificate: '?string', + jwtTextSubject: '?string', + jwtValidityPeriodSeconds: '?number', + label: 'string', + oauthRefreshToken: '?string', + oauthScope: '?string', + oauthToken: '?string', + password: '?string', + principalType: 'string', + privateConnection: '?string', + protocol: 'string', + username: '?string', + }, + extends: 'Metadata', + }, + NavigationMenu: { + type: 'NavigationMenu', + props: { + container: 'string', + containerType: 'string', + label: 'string', + navigationMenuItem: ['NavigationMenuItem'], + }, + extends: 'Metadata', + }, + Network: { + type: 'Network', + props: { + allowInternalUserLogin: '?boolean', + allowMembersToFlag: '?boolean', + allowedExtensions: '?string', + caseCommentEmailTemplate: '?string', + changePasswordTemplate: 'string', + communityRoles: '?CommunityRoles', + description: '?string', + disableReputationRecordConversations: '?boolean', + emailFooterLogo: '?string', + emailFooterText: '?string', + emailSenderAddress: 'string', + emailSenderName: 'string', + enableCustomVFErrorPageOverrides: '?boolean', + enableDirectMessages: '?boolean', + enableGuestChatter: '?boolean', + enableGuestFileAccess: '?boolean', + enableGuestMemberVisibility: '?boolean', + enableInvitation: '?boolean', + enableKnowledgeable: '?boolean', + enableMemberVisibility: '?boolean', + enableNicknameDisplay: '?boolean', + enablePrivateMessages: '?boolean', + enableReputation: '?boolean', + enableShowAllNetworkSettings: '?boolean', + enableSiteAsContainer: '?boolean', + enableTalkingAboutStats: '?boolean', + enableTopicAssignmentRules: '?boolean', + enableTopicSuggestions: '?boolean', + enableUpDownVote: '?boolean', + feedChannel: '?string', + forgotPasswordTemplate: 'string', + gatherCustomerSentimentData: '?boolean', + lockoutTemplate: '?string', + logoutUrl: '?string', + maxFileSizeKb: '?number', + navigationLinkSet: '?NavigationLinkSet', + networkMemberGroups: '?NetworkMemberGroup', + networkPageOverrides: '?NetworkPageOverride', + newSenderAddress: '?string', + picassoSite: '?string', + recommendationAudience: '?RecommendationAudience', + recommendationDefinition: '?RecommendationDefinition', + reputationLevels: '?ReputationLevelDefinitions', + reputationPointsRules: '?ReputationPointsRules', + selfRegProfile: '?string', + selfRegistration: '?boolean', + sendWelcomeEmail: '?boolean', + site: 'string', + status: 'string', + tabs: 'NetworkTabSet', + urlPathPrefix: '?string', + verificationTemplate: '?string', + welcomeTemplate: 'string', + }, + extends: 'Metadata', + }, + CommunityRoles: { + type: 'CommunityRoles', + props: { customerUserRole: '?string', employeeUserRole: '?string', partnerUserRole: '?string' }, + }, + NetworkMemberGroup: { type: 'NetworkMemberGroup', props: { permissionSet: ['string'], profile: ['string'] } }, + NetworkPageOverride: { + type: 'NetworkPageOverride', + props: { + changePasswordPageOverrideSetting: '?string', + forgotPasswordPageOverrideSetting: '?string', + homePageOverrideSetting: '?string', + loginPageOverrideSetting: '?string', + selfRegProfilePageOverrideSetting: '?string', + }, + }, + RecommendationAudience: { + type: 'RecommendationAudience', + props: { recommendationAudienceDetails: ['RecommendationAudienceDetail'] }, + }, + RecommendationAudienceDetail: { + type: 'RecommendationAudienceDetail', + props: { audienceCriteriaType: '?string', audienceCriteriaValue: '?string', setupName: '?string' }, + }, + RecommendationDefinition: { + type: 'RecommendationDefinition', + props: { recommendationDefinitionDetails: ['RecommendationDefinitionDetail'] }, + }, + RecommendationDefinitionDetail: { + type: 'RecommendationDefinitionDetail', + props: { + actionUrl: '?string', + description: '?string', + linkText: '?string', + scheduledRecommendations: '?ScheduledRecommendation', + setupName: '?string', + title: '?string', + }, + }, + ScheduledRecommendation: { + type: 'ScheduledRecommendation', + props: { scheduledRecommendationDetails: ['ScheduledRecommendationDetail'] }, + }, + ScheduledRecommendationDetail: { + type: 'ScheduledRecommendationDetail', + props: { channel: '?string', enabled: '?boolean', rank: '?number', recommendationAudience: '?string' }, + }, + ReputationLevelDefinitions: { type: 'ReputationLevelDefinitions', props: { level: ['ReputationLevel'] } }, + ReputationLevel: { + type: 'ReputationLevel', + props: { branding: '?ReputationBranding', label: '?string', lowerThreshold: 'number' }, + }, + ReputationBranding: { type: 'ReputationBranding', props: { smallImage: '?string' } }, + ReputationPointsRules: { type: 'ReputationPointsRules', props: { pointsRule: ['ReputationPointsRule'] } }, + ReputationPointsRule: { type: 'ReputationPointsRule', props: { eventType: 'string', points: 'number' } }, + NetworkTabSet: { + type: 'NetworkTabSet', + props: { customTab: ['string'], defaultTab: 'string', standardTab: ['string'] }, + }, + NotificationsSettings: { + type: 'NotificationsSettings', + props: { enableMobileAppPushNotifications: '?boolean', enableNotifications: '?boolean' }, + extends: 'Metadata', + }, + OauthCustomScope: { + type: 'OauthCustomScope', + props: { + description: 'string', + developerName: 'string', + isProtected: '?boolean', + isPublic: '?boolean', + masterLabel: 'string', + }, + extends: 'Metadata', + }, + ObjectLinkingSettings: { + type: 'ObjectLinkingSettings', + props: { enableObjectLinking: '?boolean' }, + extends: 'Metadata', + }, + OmniChannelSettings: { + type: 'OmniChannelSettings', + props: { + enableOmniAutoLoginPrompt: '?boolean', + enableOmniChannel: '?boolean', + enableOmniSecondaryRoutingPriority: '?boolean', + enableOmniSkillsRouting: '?boolean', + }, + extends: 'Metadata', + }, + OpportunitySettings: { + type: 'OpportunitySettings', + props: { + autoActivateNewReminders: '?boolean', + customizableProductSchedulesEnabled: '?boolean', + doesAutoAddSplitOwnerAsOpportunityTeamMember: '?boolean', + doesEnforceStandardOpportunitySaveLogic: '?boolean', + enableFindSimilarOpportunities: '?boolean', + enableOpportunityFieldHistoryTracking: '?boolean', + enableOpportunityInsightsInMobile: '?boolean', + enableOpportunityTeam: '?boolean', + enableUpdateReminders: '?boolean', + findSimilarOppFilter: '?FindSimilarOppFilter', + promptToAddProducts: '?boolean', + }, + extends: 'Metadata', + }, + FindSimilarOppFilter: { + type: 'FindSimilarOppFilter', + props: { similarOpportunitiesDisplayColumns: ['string'], similarOpportunitiesMatchFields: ['string'] }, + }, + OrchestrationContext: { + type: 'OrchestrationContext', + props: { + datasets: ['OrchestrationContextDataset'], + description: '?string', + events: ['OrchestrationContextEvent'], + imageFile: 'string', + imageScale: 'number', + masterLabel: 'string', + runtimeType: 'string', + salesforceObject: '?string', + salesforceObjectPrimaryKey: '?string', + }, + extends: 'Metadata', + }, + OrchestrationContextDataset: { + type: 'OrchestrationContextDataset', + props: { datasetType: 'string', orchestrationDataset: 'string' }, + }, + OrchestrationContextEvent: { + type: 'OrchestrationContextEvent', + props: { + eventType: 'string', + orchestrationEvent: 'string', + platformEvent: 'string', + platformEventPrimaryKey: 'string', + }, + }, + OrderManagementSettings: { + type: 'OrderManagementSettings', + props: { enableOrderManagement: '?boolean' }, + extends: 'Metadata', + }, + OrderSettings: { + type: 'OrderSettings', + props: { + enableNegativeQuantity: '?boolean', + enableOrders: '?boolean', + enableReductionOrders: '?boolean', + enableZeroQuantity: '?boolean', + }, + extends: 'Metadata', + }, + OrgPreferenceSettings: { + type: 'OrgPreferenceSettings', + props: { preferences: ['OrganizationSettingsDetail'] }, + extends: 'Metadata', + }, + OrganizationSettingsDetail: { + type: 'OrganizationSettingsDetail', + props: { settingName: 'string', settingValue: 'boolean' }, + }, + OrgSettings: { + type: 'OrgSettings', + props: { + enableCustomerSuccessPortal: '?boolean', + enableExtendedMailMerge: '?boolean', + enableIncludeContractStatus: '?boolean', + enableMakeDeploymentsMandatory: '?boolean', + enableManageSelfServiceUsers: '?boolean', + enableOrgFeedSentimentAnalysis: '?boolean', + enableRADeploymentAttributeOnly: '?boolean', + enableResetDivisionOnLogin: '?boolean', + saveMailMergeDocsAsSalesforceDocs: '?boolean', + }, + extends: 'Metadata', + }, + Package: { + type: 'Package', + props: { + apiAccessLevel: '?string', + description: '?string', + namespacePrefix: '?string', + objectPermissions: ['ProfileObjectPermissions'], + packageType: '?string', + postInstallClass: '?string', + setupWeblink: '?string', + types: ['PackageTypeMembers'], + uninstallClass: '?string', + version: 'string', + }, + extends: 'Metadata', + }, + ProfileObjectPermissions: { + type: 'ProfileObjectPermissions', + props: { + allowCreate: '?boolean', + allowDelete: '?boolean', + allowEdit: '?boolean', + allowRead: '?boolean', + modifyAllRecords: '?boolean', + object: 'string', + viewAllRecords: '?boolean', + }, + }, + PackageTypeMembers: { type: 'PackageTypeMembers', props: { members: ['string'], name: 'string' } }, + PardotEinsteinSettings: { + type: 'PardotEinsteinSettings', + props: { enableCampaignInsight: '?boolean', enableEngagementScore: '?boolean' }, + extends: 'Metadata', + }, + PardotSettings: { + type: 'PardotSettings', + props: { + enableB2bmaAppEnabled: '?boolean', + enableEngagementHistoryDashboards: '?boolean', + enablePardotAppV1Enabled: '?boolean', + enablePardotEnabled: '?boolean', + enableProspectActivityDataset: '?boolean', + }, + extends: 'Metadata', + }, + PartyDataModelSettings: { + type: 'PartyDataModelSettings', + props: { enableAutoSelectIndividualOnMerge: '?boolean', enableConsentManagement: '?boolean' }, + extends: 'Metadata', + }, + PathAssistant: { + type: 'PathAssistant', + props: { + active: 'boolean', + entityName: 'string', + fieldName: 'string', + masterLabel: 'string', + pathAssistantSteps: ['PathAssistantStep'], + recordTypeName: 'string', + }, + extends: 'Metadata', + }, + PathAssistantStep: { + type: 'PathAssistantStep', + props: { fieldNames: ['string'], info: '?string', picklistValueName: 'string' }, + }, + PathAssistantSettings: { + type: 'PathAssistantSettings', + props: { canOverrideAutoPathCollapseWithUserPref: '?boolean', pathAssistantEnabled: '?boolean' }, + extends: 'Metadata', + }, + PermissionSet: { + type: 'PermissionSet', + props: { + applicationVisibilities: ['PermissionSetApplicationVisibility'], + classAccesses: ['PermissionSetApexClassAccess'], + customMetadataTypeAccesses: ['PermissionSetCustomMetadataTypeAccess'], + customPermissions: ['PermissionSetCustomPermissions'], + description: '?string', + externalDataSourceAccesses: ['PermissionSetExternalDataSourceAccess'], + fieldPermissions: ['PermissionSetFieldPermissions'], + flowAccesses: ['PermissionSetFlowAccess'], + hasActivationRequired: '?boolean', + label: 'string', + license: '?string', + objectPermissions: ['PermissionSetObjectPermissions'], + pageAccesses: ['PermissionSetApexPageAccess'], + recordTypeVisibilities: ['PermissionSetRecordTypeVisibility'], + tabSettings: ['PermissionSetTabSetting'], + userPermissions: ['PermissionSetUserPermission'], + }, + extends: 'Metadata', + }, + PermissionSetApplicationVisibility: { + type: 'PermissionSetApplicationVisibility', + props: { application: 'string', visible: 'boolean' }, + }, + PermissionSetApexClassAccess: { + type: 'PermissionSetApexClassAccess', + props: { apexClass: 'string', enabled: 'boolean' }, + }, + PermissionSetCustomMetadataTypeAccess: { + type: 'PermissionSetCustomMetadataTypeAccess', + props: { enabled: 'boolean', name: 'string' }, + }, + PermissionSetCustomPermissions: { + type: 'PermissionSetCustomPermissions', + props: { enabled: 'boolean', name: 'string' }, + }, + PermissionSetExternalDataSourceAccess: { + type: 'PermissionSetExternalDataSourceAccess', + props: { enabled: 'boolean', externalDataSource: 'string' }, + }, + PermissionSetFieldPermissions: { + type: 'PermissionSetFieldPermissions', + props: { editable: 'boolean', field: 'string', readable: '?boolean' }, + }, + PermissionSetFlowAccess: { type: 'PermissionSetFlowAccess', props: { enabled: 'boolean', flow: 'string' } }, + PermissionSetObjectPermissions: { + type: 'PermissionSetObjectPermissions', + props: { + allowCreate: 'boolean', + allowDelete: 'boolean', + allowEdit: 'boolean', + allowRead: 'boolean', + modifyAllRecords: 'boolean', + object: 'string', + viewAllRecords: 'boolean', + }, + }, + PermissionSetApexPageAccess: { + type: 'PermissionSetApexPageAccess', + props: { apexPage: 'string', enabled: 'boolean' }, + }, + PermissionSetRecordTypeVisibility: { + type: 'PermissionSetRecordTypeVisibility', + props: { recordType: 'string', visible: 'boolean' }, + }, + PermissionSetTabSetting: { type: 'PermissionSetTabSetting', props: { tab: 'string', visibility: 'string' } }, + PermissionSetUserPermission: { type: 'PermissionSetUserPermission', props: { enabled: 'boolean', name: 'string' } }, + MutingPermissionSet: { type: 'MutingPermissionSet', props: { label: 'string' }, extends: 'PermissionSet' }, + PermissionSetGroup: { + type: 'PermissionSetGroup', + props: { + description: '?string', + label: 'string', + mutingPermissionSets: ['string'], + permissionSets: ['string'], + status: '?string', + }, + extends: 'Metadata', + }, + PersonListSettings: { type: 'PersonListSettings', props: { enablePersonList: 'boolean' }, extends: 'Metadata' }, + PicklistSettings: { + type: 'PicklistSettings', + props: { isPicklistApiNameEditDisabled: '?boolean' }, + extends: 'Metadata', + }, + PlatformCachePartition: { + type: 'PlatformCachePartition', + props: { + description: '?string', + isDefaultPartition: 'boolean', + masterLabel: 'string', + platformCachePartitionTypes: ['PlatformCachePartitionType'], + }, + extends: 'Metadata', + }, + PlatformCachePartitionType: { + type: 'PlatformCachePartitionType', + props: { + allocatedCapacity: 'number', + allocatedPurchasedCapacity: 'number', + allocatedTrialCapacity: 'number', + cacheType: 'string', + }, + }, + PlatformEncryptionSettings: { + type: 'PlatformEncryptionSettings', + props: { + canEncryptManagedPackageFields: '?boolean', + enableDeterministicEncryption: '?boolean', + enableEncryptFieldHistory: '?boolean', + enableEventBusEncryption: '?boolean', + isMEKForEncryptionRequired: '?boolean', + isUseHighAssuranceKeysRequired: '?boolean', + }, + extends: 'Metadata', + }, + PlatformEventChannel: { + type: 'PlatformEventChannel', + props: { channelType: 'string', label: 'string' }, + extends: 'Metadata', + }, + PlatformEventChannelMember: { + type: 'PlatformEventChannelMember', + props: { eventChannel: 'string', selectedEntity: 'string' }, + extends: 'Metadata', + }, + Portal: { + type: 'Portal', + props: { + active: 'boolean', + admin: '?string', + defaultLanguage: '?string', + description: '?string', + emailSenderAddress: 'string', + emailSenderName: 'string', + enableSelfCloseCase: '?boolean', + footerDocument: '?string', + forgotPassTemplate: '?string', + headerDocument: '?string', + isSelfRegistrationActivated: '?boolean', + loginHeaderDocument: '?string', + logoDocument: '?string', + logoutUrl: '?string', + newCommentTemplate: '?string', + newPassTemplate: '?string', + newUserTemplate: '?string', + ownerNotifyTemplate: '?string', + selfRegNewUserUrl: '?string', + selfRegUserDefaultProfile: '?string', + selfRegUserDefaultRole: '?string', + selfRegUserTemplate: '?string', + showActionConfirmation: '?boolean', + stylesheetDocument: '?string', + type: 'string', + }, + extends: 'Metadata', + }, + PostTemplate: { + type: 'PostTemplate', + props: { default: '?boolean', description: '?string', fields: ['string'], label: 'string' }, + extends: 'Metadata', + }, + PresenceDeclineReason: { type: 'PresenceDeclineReason', props: { label: 'string' }, extends: 'Metadata' }, + PresenceUserConfig: { + type: 'PresenceUserConfig', + props: { + assignments: '?PresenceConfigAssignments', + capacity: 'number', + declineReasons: ['string'], + enableAutoAccept: '?boolean', + enableDecline: '?boolean', + enableDeclineReason: '?boolean', + enableDisconnectSound: '?boolean', + enableRequestSound: '?boolean', + label: 'string', + presenceStatusOnDecline: '?string', + presenceStatusOnPushTimeout: '?string', + }, + extends: 'Metadata', + }, + PresenceConfigAssignments: { + type: 'PresenceConfigAssignments', + props: { profiles: '?PresenceConfigProfileAssignments', users: '?PresenceConfigUserAssignments' }, + }, + PresenceConfigProfileAssignments: { type: 'PresenceConfigProfileAssignments', props: { profile: ['string'] } }, + PresenceConfigUserAssignments: { type: 'PresenceConfigUserAssignments', props: { user: ['string'] } }, + PrivacySettings: { + type: 'PrivacySettings', + props: { + enableConsentAuditTrail: '?boolean', + enableConsentEventStream: '?boolean', + enableDefaultMetadataValues: '?boolean', + }, + extends: 'Metadata', + }, + PrivateConnection: { + type: 'PrivateConnection', + props: { + description: '?string', + direction: 'string', + externalConnectionProperties: ['ExternalConnectionProperty'], + label: 'string', + status: 'string', + type: 'string', + }, + extends: 'Metadata', + }, + ExternalConnectionProperty: { + type: 'ExternalConnectionProperty', + props: { propertyName: 'string', propertyValue: 'string' }, + }, + ProductSettings: { + type: 'ProductSettings', + props: { + enableCascadeActivateToRelatedPrices: '?boolean', + enableMySettings: '?boolean', + enableQuantitySchedule: '?boolean', + enableRevenueSchedule: '?boolean', + }, + extends: 'Metadata', + }, + Profile: { + type: 'Profile', + props: { + applicationVisibilities: ['ProfileApplicationVisibility'], + categoryGroupVisibilities: ['ProfileCategoryGroupVisibility'], + classAccesses: ['ProfileApexClassAccess'], + custom: '?boolean', + customMetadataTypeAccesses: ['ProfileCustomMetadataTypeAccess'], + customPermissions: ['ProfileCustomPermissions'], + description: '?string', + externalDataSourceAccesses: ['ProfileExternalDataSourceAccess'], + fieldPermissions: ['ProfileFieldLevelSecurity'], + flowAccesses: ['ProfileFlowAccess'], + layoutAssignments: ['ProfileLayoutAssignment'], + loginHours: '?ProfileLoginHours', + loginIpRanges: ['ProfileLoginIpRange'], + objectPermissions: ['ProfileObjectPermissions'], + pageAccesses: ['ProfileApexPageAccess'], + profileActionOverrides: ['ProfileActionOverride'], + recordTypeVisibilities: ['ProfileRecordTypeVisibility'], + tabVisibilities: ['ProfileTabVisibility'], + userLicense: '?string', + userPermissions: ['ProfileUserPermission'], + }, + extends: 'Metadata', + }, + ProfileApplicationVisibility: { + type: 'ProfileApplicationVisibility', + props: { application: 'string', default: 'boolean', visible: 'boolean' }, + }, + ProfileCategoryGroupVisibility: { + type: 'ProfileCategoryGroupVisibility', + props: { dataCategories: ['string'], dataCategoryGroup: 'string', visibility: 'string' }, + }, + ProfileApexClassAccess: { type: 'ProfileApexClassAccess', props: { apexClass: 'string', enabled: 'boolean' } }, + ProfileCustomMetadataTypeAccess: { + type: 'ProfileCustomMetadataTypeAccess', + props: { enabled: 'boolean', name: 'string' }, + }, + ProfileCustomPermissions: { type: 'ProfileCustomPermissions', props: { enabled: 'boolean', name: 'string' } }, + ProfileExternalDataSourceAccess: { + type: 'ProfileExternalDataSourceAccess', + props: { enabled: 'boolean', externalDataSource: 'string' }, + }, + ProfileFieldLevelSecurity: { + type: 'ProfileFieldLevelSecurity', + props: { editable: 'boolean', field: 'string', readable: '?boolean' }, + }, + ProfileFlowAccess: { type: 'ProfileFlowAccess', props: { enabled: 'boolean', flow: 'string' } }, + ProfileLayoutAssignment: { type: 'ProfileLayoutAssignment', props: { layout: 'string', recordType: '?string' } }, + ProfileLoginHours: { + type: 'ProfileLoginHours', + props: { + fridayEnd: '?string', + fridayStart: '?string', + mondayEnd: '?string', + mondayStart: '?string', + saturdayEnd: '?string', + saturdayStart: '?string', + sundayEnd: '?string', + sundayStart: '?string', + thursdayEnd: '?string', + thursdayStart: '?string', + tuesdayEnd: '?string', + tuesdayStart: '?string', + wednesdayEnd: '?string', + wednesdayStart: '?string', + }, + }, + ProfileLoginIpRange: { + type: 'ProfileLoginIpRange', + props: { description: '?string', endAddress: 'string', startAddress: 'string' }, + }, + ProfileApexPageAccess: { type: 'ProfileApexPageAccess', props: { apexPage: 'string', enabled: 'boolean' } }, + ProfileRecordTypeVisibility: { + type: 'ProfileRecordTypeVisibility', + props: { default: 'boolean', personAccountDefault: '?boolean', recordType: 'string', visible: 'boolean' }, + }, + ProfileTabVisibility: { type: 'ProfileTabVisibility', props: { tab: 'string', visibility: 'string' } }, + ProfileUserPermission: { type: 'ProfileUserPermission', props: { enabled: 'boolean', name: 'string' } }, + ProfilePasswordPolicy: { + type: 'ProfilePasswordPolicy', + props: { + forgotPasswordRedirect: '?boolean', + lockoutInterval: 'number', + maxLoginAttempts: 'number', + minimumPasswordLength: 'number', + minimumPasswordLifetime: '?boolean', + obscure: '?boolean', + passwordComplexity: 'number', + passwordExpiration: 'number', + passwordHistory: 'number', + passwordQuestion: 'number', + profile: 'string', + }, + extends: 'Metadata', + }, + ProfileSessionSetting: { + type: 'ProfileSessionSetting', + props: { + externalCommunityUserIdentityVerif: 'boolean', + forceLogout: 'boolean', + profile: 'string', + requiredSessionLevel: '?string', + sessionPersistence: 'boolean', + sessionTimeout: 'number', + sessionTimeoutWarning: 'boolean', + }, + extends: 'Metadata', + }, + Prompt: { + type: 'Prompt', + props: { masterLabel: 'string', promptVersions: ['PromptVersion'] }, + extends: 'Metadata', + }, + PromptVersion: { + type: 'PromptVersion', + props: { + actionButtonLabel: '?string', + actionButtonLink: '?string', + body: 'string', + customApplication: '?string', + delayDays: 'number', + description: '?string', + dismissButtonLabel: '?string', + displayPosition: '?string', + displayType: 'string', + endDate: '?string', + header: '?string', + indexWithIsPublished: '?string', + indexWithoutIsPublished: '?string', + isPublished: '?boolean', + masterLabel: 'string', + publishedByUser: '?string', + publishedDate: '?string', + shouldDisplayActionButton: 'boolean', + startDate: 'string', + targetAppDeveloperName: 'string', + targetAppNamespacePrefix: '?string', + targetPageKey1: 'string', + targetPageKey2: '?string', + targetPageType: 'string', + timesToDisplay: 'number', + title: 'string', + uiFormulaRule: '?UiFormulaRule', + userAccess: 'string', + versionNumber: 'number', + }, + }, + Queue: { + type: 'Queue', + props: { + doesSendEmailToMembers: '?boolean', + email: '?string', + name: 'string', + queueMembers: '?QueueMembers', + queueRoutingConfig: '?string', + queueSobject: ['QueueSobject'], + }, + extends: 'Metadata', + }, + QueueMembers: { + type: 'QueueMembers', + props: { + publicGroups: '?PublicGroups', + roleAndSubordinates: '?RoleAndSubordinates', + roleAndSubordinatesInternal: '?RoleAndSubordinatesInternal', + roles: '?Roles', + users: '?Users', + }, + }, + PublicGroups: { type: 'PublicGroups', props: { publicGroup: ['string'] } }, + RoleAndSubordinates: { type: 'RoleAndSubordinates', props: { roleAndSubordinate: ['string'] } }, + RoleAndSubordinatesInternal: { + type: 'RoleAndSubordinatesInternal', + props: { roleAndSubordinateInternal: ['string'] }, + }, + Roles: { type: 'Roles', props: { role: ['string'] } }, + Users: { type: 'Users', props: { user: ['string'] } }, + QueueSobject: { type: 'QueueSobject', props: { sobjectType: 'string' } }, + QueueRoutingConfig: { + type: 'QueueRoutingConfig', + props: { + capacityPercentage: '?number', + capacityWeight: '?number', + dropAdditionalSkillsTimeout: '?number', + isAttributeBased: '?boolean', + label: 'string', + pushTimeout: '?number', + queueOverflowAssignee: '?string', + routingModel: 'string', + routingPriority: 'number', + userOverflowAssignee: '?string', + }, + extends: 'Metadata', + }, + QuickAction: { + type: 'QuickAction', + props: { + canvas: '?string', + description: '?string', + fieldOverrides: ['FieldOverride'], + flowDefinition: '?string', + height: '?number', + icon: '?string', + isProtected: '?boolean', + label: '?string', + lightningComponent: '?string', + mobExtDisplayMode: '?string', + optionsCreateFeedItem: 'boolean', + page: '?string', + quickActionLayout: '?QuickActionLayout', + quickActionSendEmailOptions: '?QuickActionSendEmailOptions', + standardLabel: '?string', + successMessage: '?string', + targetObject: '?string', + targetParentField: '?string', + targetRecordType: '?string', + type: 'string', + width: '?number', + }, + extends: 'Metadata', + }, + FieldOverride: { type: 'FieldOverride', props: { field: 'string', formula: '?string', literalValue: '?string' } }, + QuickActionLayout: { + type: 'QuickActionLayout', + props: { layoutSectionStyle: 'string', quickActionLayoutColumns: ['QuickActionLayoutColumn'] }, + }, + QuickActionLayoutColumn: { + type: 'QuickActionLayoutColumn', + props: { quickActionLayoutItems: ['QuickActionLayoutItem'] }, + }, + QuickActionLayoutItem: { + type: 'QuickActionLayoutItem', + props: { emptySpace: '?boolean', field: '?string', uiBehavior: '?string' }, + }, + QuickActionSendEmailOptions: { + type: 'QuickActionSendEmailOptions', + props: { defaultEmailTemplateName: '?string', ignoreDefaultEmailTemplateSubject: 'boolean' }, + }, + QuoteSettings: { + type: 'QuoteSettings', + props: { enableQuote: 'boolean', enableQuotesWithoutOppEnabled: '?boolean' }, + extends: 'Metadata', + }, + RecommendationStrategy: { + type: 'RecommendationStrategy', + props: { + actionContext: ['StrategyAction'], + contextRecordType: '?string', + description: '?string', + filter: ['StrategyNodeFilter'], + if: ['StrategyNodeIf'], + invocableAction: ['StrategyNodeInvocableAction'], + isTemplate: '?boolean', + label: 'string', + map: ['StrategyNodeMap'], + mutuallyExclusive: ['StrategyNodeExclusive'], + onBehalfOfExpression: '?string', + recommendationLimit: ['StrategyNodeRecommendationLimit'], + recommendationLoad: ['StrategyNodeRecommendationLoad'], + sort: ['StrategyNodeSort'], + union: ['StrategyNodeUnion'], + }, + extends: 'Metadata', + }, + StrategyAction: { + type: 'StrategyAction', + props: { + action: 'string', + argument: ['StrategyActionArg'], + description: '?string', + label: '?string', + name: 'string', + type: 'string', + }, + }, + StrategyActionArg: { type: 'StrategyActionArg', props: { name: 'string', value: 'string' } }, + StrategyNodeFilter: { + type: 'StrategyNodeFilter', + props: { expression: 'string' }, + extends: 'StrategyNodeUnionBase', + }, + StrategyNodeUnionBase: { type: 'StrategyNodeUnionBase', props: { limit: '?number' }, extends: 'StrategyNodeBase' }, + StrategyNodeBase: { + type: 'StrategyNodeBase', + props: { childNode: ['string'], description: '?string', label: '?string', name: 'string' }, + }, + StrategyNodeExclusive: { type: 'StrategyNodeExclusive', props: {}, extends: 'StrategyNodeUnionBase' }, + StrategyNodeIf: { + type: 'StrategyNodeIf', + props: { childNodeExpression: ['IfExpression'], onlyFirstMatch: '?boolean' }, + extends: 'StrategyNodeUnionBase', + }, + IfExpression: { type: 'IfExpression', props: { childName: 'string', expression: 'string' } }, + StrategyNodeInvocableAction: { + type: 'StrategyNodeInvocableAction', + props: { action: 'string', argument: ['StrategyNodeInvocableActionArg'], isGenerator: 'boolean', type: 'string' }, + extends: 'StrategyNodeUnionBase', + }, + StrategyNodeInvocableActionArg: { + type: 'StrategyNodeInvocableActionArg', + props: { name: 'string', value: 'string' }, + }, + StrategyNodeMap: { + type: 'StrategyNodeMap', + props: { mapExpression: ['MapExpression'] }, + extends: 'StrategyNodeUnionBase', + }, + MapExpression: { type: 'MapExpression', props: { expression: 'string', name: 'string', type: 'string' } }, + StrategyNodeRecommendationLimit: { + type: 'StrategyNodeRecommendationLimit', + props: { filterMode: ['string'], lookbackDuration: '?number', maxRecommendationCount: '?number' }, + extends: 'StrategyNodeUnionBase', + }, + StrategyNodeRecommendationLoad: { + type: 'StrategyNodeRecommendationLoad', + props: { condition: ['RecommendationLoadCondition'], conditionLogic: '?string' }, + extends: 'StrategyNodeUnionBase', + }, + RecommendationLoadCondition: { + type: 'RecommendationLoadCondition', + props: { field: 'string', operator: 'string', value: 'RecommendationConditionValue' }, + }, + RecommendationConditionValue: { type: 'RecommendationConditionValue', props: { type: 'string', value: '?string' } }, + StrategyNodeSort: { + type: 'StrategyNodeSort', + props: { field: ['StrategyNodeSortField'] }, + extends: 'StrategyNodeUnionBase', + }, + StrategyNodeSortField: { + type: 'StrategyNodeSortField', + props: { name: 'string', nullsFirst: '?boolean', order: '?string' }, + }, + StrategyNodeUnion: { type: 'StrategyNodeUnion', props: {}, extends: 'StrategyNodeUnionBase' }, + RecordActionDeployment: { + type: 'RecordActionDeployment', + props: { + channelConfigurations: ['RecordActionDeploymentChannel'], + deploymentContexts: ['RecordActionDeploymentContext'], + hasGuidedActions: '?boolean', + hasRecommendations: '?boolean', + masterLabel: 'string', + recommendation: '?RecordActionRecommendation', + selectableItems: ['RecordActionSelectableItem'], + }, + extends: 'Metadata', + }, + RecordActionDeploymentChannel: { + type: 'RecordActionDeploymentChannel', + props: { channel: 'string', channelItems: ['RecordActionDefaultItem'], isAutopopEnabled: '?boolean' }, + }, + RecordActionDefaultItem: { + type: 'RecordActionDefaultItem', + props: { + action: 'string', + isMandatory: '?boolean', + isUiRemoveHidden: '?boolean', + pinned: 'string', + position: 'number', + type: 'string', + }, + }, + RecordActionDeploymentContext: { + type: 'RecordActionDeploymentContext', + props: { entityName: 'string', recommendationStrategy: '?string' }, + }, + RecordActionRecommendation: { + type: 'RecordActionRecommendation', + props: { + defaultStrategy: '?string', + hasDescription: 'boolean', + hasImage: 'boolean', + hasRejectAction: 'boolean', + hasTitle: 'boolean', + maxDisplayRecommendations: 'number', + }, + }, + RecordActionSelectableItem: { type: 'RecordActionSelectableItem', props: { action: 'string', type: 'string' } }, + RecordPageSettings: { + type: 'RecordPageSettings', + props: { enableActivityRelatedList: '?boolean', enableFullRecordView: '?boolean' }, + extends: 'Metadata', + }, + RemoteSiteSetting: { + type: 'RemoteSiteSetting', + props: { description: '?string', disableProtocolSecurity: 'boolean', isActive: 'boolean', url: 'string' }, + extends: 'Metadata', + }, + Report: { + type: 'Report', + props: { + aggregates: ['ReportAggregate'], + block: ['Report'], + blockInfo: '?ReportBlockInfo', + buckets: ['ReportBucketField'], + chart: '?ReportChart', + colorRanges: ['ReportColorRange'], + columns: ['ReportColumn'], + crossFilters: ['ReportCrossFilter'], + currency: '?string', + customDetailFormulas: ['ReportCustomDetailFormula'], + dataCategoryFilters: ['ReportDataCategoryFilter'], + description: '?string', + division: '?string', + filter: '?ReportFilter', + folderName: '?string', + format: 'string', + formattingRules: ['ReportFormattingRule'], + groupingsAcross: ['ReportGrouping'], + groupingsDown: ['ReportGrouping'], + historicalSelector: '?ReportHistoricalSelector', + name: 'string', + numSubscriptions: '?number', + params: ['ReportParam'], + reportType: 'string', + roleHierarchyFilter: '?string', + rowLimit: '?number', + scope: '?string', + showCurrentDate: '?boolean', + showDetails: '?boolean', + showGrandTotal: '?boolean', + showSubTotals: '?boolean', + sortColumn: '?string', + sortOrder: '?string', + territoryHierarchyFilter: '?string', + timeFrameFilter: '?ReportTimeFrameFilter', + userFilter: '?string', + }, + extends: 'Metadata', + }, + ReportAggregate: { + type: 'ReportAggregate', + props: { + acrossGroupingContext: '?string', + calculatedFormula: 'string', + datatype: 'string', + description: '?string', + developerName: 'string', + downGroupingContext: '?string', + isActive: 'boolean', + isCrossBlock: '?boolean', + masterLabel: 'string', + reportType: '?string', + scale: '?number', + }, + }, + ReportBlockInfo: { + type: 'ReportBlockInfo', + props: { aggregateReferences: ['ReportAggregateReference'], blockId: 'string', joinTable: 'string' }, + }, + ReportAggregateReference: { type: 'ReportAggregateReference', props: { aggregate: 'string' } }, + ReportBucketField: { + type: 'ReportBucketField', + props: { + bucketType: 'string', + developerName: 'string', + masterLabel: 'string', + nullTreatment: '?string', + otherBucketLabel: '?string', + sourceColumnName: 'string', + useOther: '?boolean', + values: ['ReportBucketFieldValue'], + }, + }, + ReportBucketFieldValue: { + type: 'ReportBucketFieldValue', + props: { sourceValues: ['ReportBucketFieldSourceValue'], value: 'string' }, + }, + ReportBucketFieldSourceValue: { + type: 'ReportBucketFieldSourceValue', + props: { from: '?string', sourceValue: '?string', to: '?string' }, + }, + ReportChart: { + type: 'ReportChart', + props: { + backgroundColor1: '?string', + backgroundColor2: '?string', + backgroundFadeDir: '?string', + chartSummaries: ['ChartSummary'], + chartType: 'string', + enableHoverLabels: '?boolean', + expandOthers: '?boolean', + groupingColumn: '?string', + legendPosition: '?string', + location: '?string', + secondaryGroupingColumn: '?string', + showAxisLabels: '?boolean', + showPercentage: '?boolean', + showTotal: '?boolean', + showValues: '?boolean', + size: '?string', + summaryAxisManualRangeEnd: '?number', + summaryAxisManualRangeStart: '?number', + summaryAxisRange: '?string', + textColor: '?string', + textSize: '?number', + title: '?string', + titleColor: '?string', + titleSize: '?number', + }, + }, + ReportColorRange: { + type: 'ReportColorRange', + props: { + aggregate: '?string', + columnName: 'string', + highBreakpoint: '?number', + highColor: 'string', + lowBreakpoint: '?number', + lowColor: 'string', + midColor: 'string', + }, + }, + ReportColumn: { + type: 'ReportColumn', + props: { aggregateTypes: ['string'], field: 'string', reverseColors: '?boolean', showChanges: '?boolean' }, + }, + ReportCrossFilter: { + type: 'ReportCrossFilter', + props: { + criteriaItems: ['ReportFilterItem'], + operation: 'string', + primaryTableColumn: 'string', + relatedTable: 'string', + relatedTableJoinColumn: 'string', + }, + }, + ReportFilterItem: { + type: 'ReportFilterItem', + props: { + column: 'string', + columnToColumn: '?boolean', + isUnlocked: '?boolean', + operator: 'string', + snapshot: '?string', + value: '?string', + }, + }, + ReportCustomDetailFormula: { + type: 'ReportCustomDetailFormula', + props: { + calculatedFormula: 'string', + dataType: 'string', + description: '?string', + developerName: 'string', + label: 'string', + scale: 'number', + }, + }, + ReportDataCategoryFilter: { + type: 'ReportDataCategoryFilter', + props: { dataCategory: 'string', dataCategoryGroup: 'string', operator: 'string' }, + }, + ReportFilter: { + type: 'ReportFilter', + props: { booleanFilter: '?string', criteriaItems: ['ReportFilterItem'], language: '?string' }, + }, + ReportFormattingRule: { + type: 'ReportFormattingRule', + props: { aggregate: '?string', columnName: 'string', values: ['ReportFormattingRuleValue'] }, + }, + ReportFormattingRuleValue: { + type: 'ReportFormattingRuleValue', + props: { backgroundColor: '?string', rangeUpperBound: '?number' }, + }, + ReportGrouping: { + type: 'ReportGrouping', + props: { + aggregateType: '?string', + dateGranularity: '?string', + field: 'string', + sortByName: '?string', + sortOrder: 'string', + sortType: '?string', + }, + }, + ReportHistoricalSelector: { type: 'ReportHistoricalSelector', props: { snapshot: ['string'] } }, + ReportParam: { type: 'ReportParam', props: { name: 'string', value: 'string' } }, + ReportTimeFrameFilter: { + type: 'ReportTimeFrameFilter', + props: { dateColumn: 'string', endDate: '?string', interval: 'string', startDate: '?string' }, + }, + ReportType: { + type: 'ReportType', + props: { + autogenerated: '?boolean', + baseObject: 'string', + category: 'string', + deployed: 'boolean', + description: '?string', + join: '?ObjectRelationship', + label: 'string', + sections: ['ReportLayoutSection'], + }, + extends: 'Metadata', + }, + ObjectRelationship: { + type: 'ObjectRelationship', + props: { join: '?ObjectRelationship', outerJoin: 'boolean', relationship: 'string' }, + }, + ReportLayoutSection: { + type: 'ReportLayoutSection', + props: { columns: ['ReportTypeColumn'], masterLabel: 'string' }, + }, + ReportTypeColumn: { + type: 'ReportTypeColumn', + props: { checkedByDefault: 'boolean', displayNameOverride: '?string', field: 'string', table: 'string' }, + }, + RestrictionRule: { + type: 'RestrictionRule', + props: { + active: 'boolean', + description: 'string', + enforcementType: 'string', + masterLabel: 'string', + recordFilter: 'string', + targetEntity: 'string', + userCriteria: 'string', + version: 'number', + }, + extends: 'Metadata', + }, + RetailExecutionSettings: { + type: 'RetailExecutionSettings', + props: { enableRetailExecution: '?boolean' }, + extends: 'Metadata', + }, + RoleOrTerritory: { + type: 'RoleOrTerritory', + props: { + caseAccessLevel: '?string', + contactAccessLevel: '?string', + description: '?string', + mayForecastManagerShare: '?boolean', + name: 'string', + opportunityAccessLevel: '?string', + }, + extends: 'Metadata', + }, + Role: { type: 'Role', props: { parentRole: '?string' }, extends: 'RoleOrTerritory' }, + Territory: { + type: 'Territory', + props: { accountAccessLevel: '?string', parentTerritory: '?string' }, + extends: 'RoleOrTerritory', + }, + SamlSsoConfig: { + type: 'SamlSsoConfig', + props: { + attributeName: '?string', + attributeNameIdFormat: '?string', + decryptionCertificate: '?string', + errorUrl: '?string', + executionUserId: '?string', + identityLocation: 'string', + identityMapping: 'string', + issuer: 'string', + loginUrl: '?string', + logoutUrl: '?string', + name: 'string', + oauthTokenEndpoint: '?string', + redirectBinding: '?boolean', + requestSignatureMethod: '?string', + requestSigningCertId: '?string', + salesforceLoginUrl: '?string', + samlEntityId: 'string', + samlJitHandlerId: '?string', + samlVersion: 'string', + singleLogoutBinding: '?string', + singleLogoutUrl: '?string', + userProvisioning: '?boolean', + validationCert: 'string', + }, + extends: 'Metadata', + }, + SchemaSettings: { + type: 'SchemaSettings', + props: { + enableAdvancedCMTSecurity: '?boolean', + enableAdvancedCSSecurity: '?boolean', + enableListCustomSettingCreation: '?boolean', + enableSOSLOnCustomSettings: '?boolean', + }, + extends: 'Metadata', + }, + SearchSettings: { + type: 'SearchSettings', + props: { + documentContentSearchEnabled: 'boolean', + enableAdvancedSearchInAlohaSidebar: '?boolean', + enableEinsteinSearchPersonalization: '?boolean', + enableQuerySuggestionPigOn: '?boolean', + enableSalesforceGeneratedSynonyms: '?boolean', + enableSetupSearch: '?boolean', + optimizeSearchForCJKEnabled: 'boolean', + recentlyViewedUsersForBlankLookupEnabled: 'boolean', + searchSettingsByObject: 'SearchSettingsByObject', + sidebarAutoCompleteEnabled: 'boolean', + sidebarDropDownListEnabled: 'boolean', + sidebarLimitToItemsIOwnCheckboxEnabled: 'boolean', + singleSearchResultShortcutEnabled: 'boolean', + spellCorrectKnowledgeSearchEnabled: 'boolean', + }, + extends: 'Metadata', + }, + SearchSettingsByObject: { + type: 'SearchSettingsByObject', + props: { searchSettingsByObject: ['ObjectSearchSetting'] }, + }, + ObjectSearchSetting: { + type: 'ObjectSearchSetting', + props: { + enhancedLookupEnabled: 'boolean', + lookupAutoCompleteEnabled: 'boolean', + name: 'string', + resultsPerPageCount: 'number', + }, + }, + SecuritySettings: { + type: 'SecuritySettings', + props: { + canUsersGrantLoginAccess: '?boolean', + enableAdminLoginAsAnyUser: '?boolean', + enableAuditFieldsInactiveOwner: '?boolean', + enableAuraSecureEvalPref: '?boolean', + enableRequireHttpsConnection: '?boolean', + isTLSv12Required: '?boolean', + isTLSv12RequiredCommunities: '?boolean', + networkAccess: '?NetworkAccess', + passwordPolicies: '?PasswordPolicies', + sessionSettings: '?SessionSettings', + singleSignOnSettings: '?SingleSignOnSettings', + }, + extends: 'Metadata', + }, + NetworkAccess: { type: 'NetworkAccess', props: { ipRanges: ['IpRange'] } }, + IpRange: { type: 'IpRange', props: { description: '?string', end: '?string', start: '?string' } }, + PasswordPolicies: { + type: 'PasswordPolicies', + props: { + apiOnlyUserHomePageURL: '?string', + complexity: '?string', + enableSetPasswordInApi: '?boolean', + expiration: '?string', + historyRestriction: '?string', + lockoutInterval: '?string', + maxLoginAttempts: '?string', + minimumPasswordLength: '?string', + minimumPasswordLifetime: '?boolean', + obscureSecretAnswer: '?boolean', + passwordAssistanceMessage: '?string', + passwordAssistanceURL: '?string', + questionRestriction: '?string', + }, + }, + SessionSettings: { + type: 'SessionSettings', + props: { + allowUserAuthenticationByCertificate: '?boolean', + canConfirmEmailChangeInLightningCommunities: '?boolean', + disableTimeoutWarning: '?boolean', + enableCSPOnEmail: '?boolean', + enableCSRFOnGet: '?boolean', + enableCSRFOnPost: '?boolean', + enableCacheAndAutocomplete: '?boolean', + enableClickjackNonsetupSFDC: '?boolean', + enableClickjackNonsetupUser: '?boolean', + enableClickjackNonsetupUserHeaderless: '?boolean', + enableClickjackSetup: '?boolean', + enableContentSniffingProtection: '?boolean', + enableLightningLogin: '?boolean', + enableLightningLoginOnlyWithUserPerm: '?boolean', + enablePostForSessions: '?boolean', + enableSMSIdentity: '?boolean', + enableU2F: '?boolean', + enableUpgradeInsecureRequests: '?boolean', + enableXssProtection: '?boolean', + enforceIpRangesEveryRequest: '?boolean', + forceLogoutOnSessionTimeout: '?boolean', + forceRelogin: '?boolean', + hasRetainedLoginHints: '?boolean', + hasUserSwitching: '?boolean', + hstsOnForcecomSites: '?boolean', + identityConfirmationOnEmailChange: '?boolean', + identityConfirmationOnTwoFactorRegistrationEnabled: '?boolean', + lockSessionsToDomain: '?boolean', + lockSessionsToIp: '?boolean', + lockerServiceAPIVersion: '?string', + lockerServiceCSP: '?boolean', + lockerServiceFrozenRealm: '?boolean', + logoutURL: '?string', + redirectionWarning: '?boolean', + referrerPolicy: '?boolean', + requireHttpOnly: '?boolean', + requireHttps: '?boolean', + securityCentralKillSession: '?boolean', + sessionTimeout: '?string', + }, + }, + SingleSignOnSettings: { + type: 'SingleSignOnSettings', + props: { + enableForceDelegatedCallout: '?boolean', + enableMultipleSamlConfigs: '?boolean', + enableSamlJitProvisioning: '?boolean', + enableSamlLogin: '?boolean', + }, + }, + ServiceChannel: { + type: 'ServiceChannel', + props: { + interactionComponent: '?string', + label: 'string', + relatedEntityType: 'string', + secondaryRoutingPriorityField: '?string', + serviceChannelFieldPriorities: ['ServiceChannelFieldPriority'], + }, + extends: 'Metadata', + }, + ServiceChannelFieldPriority: { + type: 'ServiceChannelFieldPriority', + props: { priority: 'number', value: 'string' }, + }, + ServicePresenceStatus: { + type: 'ServicePresenceStatus', + props: { channels: '?ServiceChannelStatus', label: 'string' }, + extends: 'Metadata', + }, + ServiceChannelStatus: { type: 'ServiceChannelStatus', props: { channel: ['string'] } }, + SharingBaseRule: { + type: 'SharingBaseRule', + props: { + accessLevel: 'string', + accountSettings: '?AccountSharingRuleSettings', + description: '?string', + label: 'string', + sharedTo: 'SharedTo', + }, + extends: 'Metadata', + }, + AccountSharingRuleSettings: { + type: 'AccountSharingRuleSettings', + props: { caseAccessLevel: 'string', contactAccessLevel: 'string', opportunityAccessLevel: 'string' }, + }, + SharingCriteriaRule: { + type: 'SharingCriteriaRule', + props: { booleanFilter: '?string', criteriaItems: ['FilterItem'] }, + extends: 'SharingBaseRule', + }, + SharingGuestRule: { + type: 'SharingGuestRule', + props: { booleanFilter: '?string', criteriaItems: ['FilterItem'] }, + extends: 'SharingBaseRule', + }, + SharingOwnerRule: { type: 'SharingOwnerRule', props: { sharedFrom: 'SharedTo' }, extends: 'SharingBaseRule' }, + SharingTerritoryRule: { type: 'SharingTerritoryRule', props: {}, extends: 'SharingOwnerRule' }, + SharingRules: { + type: 'SharingRules', + props: { + sharingCriteriaRules: ['SharingCriteriaRule'], + sharingGuestRules: ['SharingGuestRule'], + sharingOwnerRules: ['SharingOwnerRule'], + sharingTerritoryRules: ['SharingTerritoryRule'], + }, + extends: 'Metadata', + }, + SharingSet: { + type: 'SharingSet', + props: { accessMappings: ['AccessMapping'], description: '?string', name: 'string', profiles: ['string'] }, + extends: 'Metadata', + }, + AccessMapping: { + type: 'AccessMapping', + props: { accessLevel: 'string', object: 'string', objectField: 'string', userField: 'string' }, + }, + SharingSettings: { + type: 'SharingSettings', + props: { + enableAccountRoleOptimization: '?boolean', + enableAssetSharing: '?boolean', + enableCommunityUserVisibility: '?boolean', + enableExternalSharingModel: '?boolean', + enableManagerGroups: '?boolean', + enableManualUserRecordSharing: '?boolean', + enablePartnerSuperUserAccess: '?boolean', + enablePortalUserCaseSharing: '?boolean', + enablePortalUserVisibility: '?boolean', + enableRemoveTMGroupMembership: '?boolean', + enableSecureGuestAccess: '?boolean', + enableStandardReportVisibility: '?boolean', + enableTerritoryForecastManager: '?boolean', + }, + extends: 'Metadata', + }, + SiteSettings: { + type: 'SiteSettings', + props: { + enableProxyLoginICHeader: '?boolean', + enableTopicsInSites: '?boolean', + enableVisualforceApiAccessAllowed: '?boolean', + }, + extends: 'Metadata', + }, + Skill: { + type: 'Skill', + props: { assignments: '?SkillAssignments', description: '?string', label: 'string' }, + extends: 'Metadata', + }, + SkillAssignments: { + type: 'SkillAssignments', + props: { profiles: '?SkillProfileAssignments', users: '?SkillUserAssignments' }, + }, + SkillProfileAssignments: { type: 'SkillProfileAssignments', props: { profile: ['string'] } }, + SkillUserAssignments: { type: 'SkillUserAssignments', props: { user: ['string'] } }, + SocialCustomerServiceSettings: { + type: 'SocialCustomerServiceSettings', + props: { + caseSubjectOption: 'string', + enableSocialApprovals: '?boolean', + enableSocialCaseAssignmentRules: '?boolean', + enableSocialCustomerService: '?boolean', + enableSocialPersonaHistoryTracking: '?boolean', + enableSocialPostHistoryTracking: '?boolean', + enableSocialReceiveParentPost: '?boolean', + }, + extends: 'Metadata', + }, + SocialProfileSettings: { + type: 'SocialProfileSettings', + props: { + enableSocialProfiles: '?boolean', + isFacebookSocialProfilesDisabled: '?boolean', + isLinkedInSocialProfilesDisabled: '?boolean', + isTwitterSocialProfilesDisabled: '?boolean', + isYouTubeSocialProfilesDisabled: '?boolean', + }, + extends: 'Metadata', + }, + StandardValueSet: { + type: 'StandardValueSet', + props: { groupingStringEnum: '?string', sorted: 'boolean', standardValue: ['StandardValue'] }, + extends: 'Metadata', + }, + StandardValueSetTranslation: { + type: 'StandardValueSetTranslation', + props: { valueTranslation: ['ValueTranslation'] }, + extends: 'Metadata', + }, + SurveySettings: { + type: 'SurveySettings', + props: { enableSurvey: '?boolean', enableSurveyOwnerCanManageResponse: '?boolean' }, + extends: 'Metadata', + }, + SynonymDictionary: { + type: 'SynonymDictionary', + props: { groups: ['SynonymGroup'], isProtected: '?boolean', label: 'string' }, + extends: 'Metadata', + }, + SystemNotificationSettings: { + type: 'SystemNotificationSettings', + props: { disableDowntimeNotifications: '?boolean', disableMaintenanceNotifications: '?boolean' }, + extends: 'Metadata', + }, + Territory2: { + type: 'Territory2', + props: { + accountAccessLevel: '?string', + caseAccessLevel: '?string', + contactAccessLevel: '?string', + customFields: ['FieldValue'], + description: '?string', + name: 'string', + opportunityAccessLevel: '?string', + parentTerritory: '?string', + ruleAssociations: ['Territory2RuleAssociation'], + territory2Type: 'string', + }, + extends: 'Metadata', + }, + FieldValue: { type: 'FieldValue', props: { name: 'string', value: '?any' } }, + Territory2RuleAssociation: { + type: 'Territory2RuleAssociation', + props: { inherited: 'boolean', ruleName: 'string' }, + }, + Territory2Model: { + type: 'Territory2Model', + props: { customFields: ['FieldValue'], description: '?string', name: 'string' }, + extends: 'Metadata', + }, + Territory2Rule: { + type: 'Territory2Rule', + props: { + active: 'boolean', + booleanFilter: '?string', + name: 'string', + objectType: 'string', + ruleItems: ['Territory2RuleItem'], + }, + extends: 'Metadata', + }, + Territory2RuleItem: { + type: 'Territory2RuleItem', + props: { field: 'string', operation: 'string', value: '?string' }, + }, + Territory2Settings: { + type: 'Territory2Settings', + props: { + defaultAccountAccessLevel: '?string', + defaultCaseAccessLevel: '?string', + defaultContactAccessLevel: '?string', + defaultOpportunityAccessLevel: '?string', + enableTerritoryManagement2: '?boolean', + opportunityFilterSettings: '?Territory2SettingsOpportunityFilter', + }, + extends: 'Metadata', + }, + Territory2SettingsOpportunityFilter: { + type: 'Territory2SettingsOpportunityFilter', + props: { apexClassName: '?string', enableFilter: 'boolean', runOnCreate: 'boolean' }, + }, + Territory2Type: { + type: 'Territory2Type', + props: { description: '?string', name: 'string', priority: 'number' }, + extends: 'Metadata', + }, + TimeSheetTemplate: { + type: 'TimeSheetTemplate', + props: { + active: 'boolean', + description: '?string', + frequency: 'string', + masterLabel: 'string', + startDate: 'string', + timeSheetTemplateAssignments: ['TimeSheetTemplateAssignment'], + workWeekEndDay: 'string', + workWeekStartDay: 'string', + }, + extends: 'Metadata', + }, + TimeSheetTemplateAssignment: { type: 'TimeSheetTemplateAssignment', props: { assignedTo: '?string' } }, + TopicsForObjects: { + type: 'TopicsForObjects', + props: { enableTopics: 'boolean', entityApiName: 'string' }, + extends: 'Metadata', + }, + TrailheadSettings: { type: 'TrailheadSettings', props: { enableMyTrailheadPref: '?boolean' }, extends: 'Metadata' }, + TransactionSecurityPolicy: { + type: 'TransactionSecurityPolicy', + props: { + action: 'TransactionSecurityAction', + active: 'boolean', + apexClass: '?string', + description: '?string', + developerName: '?string', + eventName: '?string', + eventType: '?string', + executionUser: '?string', + flow: '?string', + masterLabel: '?string', + resourceName: '?string', + type: '?string', + }, + extends: 'Metadata', + }, + TransactionSecurityAction: { + type: 'TransactionSecurityAction', + props: { + block: 'boolean', + endSession: 'boolean', + freezeUser: 'boolean', + notifications: ['TransactionSecurityNotification'], + twoFactorAuthentication: 'boolean', + }, + }, + TransactionSecurityNotification: { + type: 'TransactionSecurityNotification', + props: { inApp: 'boolean', sendEmail: 'boolean', user: 'string' }, + }, + Translations: { + type: 'Translations', + props: { + customApplications: ['CustomApplicationTranslation'], + customDataTypeTranslations: ['CustomDataTypeTranslation'], + customLabels: ['CustomLabelTranslation'], + customPageWebLinks: ['CustomPageWebLinkTranslation'], + customTabs: ['CustomTabTranslation'], + flowDefinitions: ['FlowDefinitionTranslation'], + quickActions: ['GlobalQuickActionTranslation'], + reportTypes: ['ReportTypeTranslation'], + scontrols: ['ScontrolTranslation'], + }, + extends: 'Metadata', + }, + CustomApplicationTranslation: { type: 'CustomApplicationTranslation', props: { label: 'string', name: 'string' } }, + CustomDataTypeTranslation: { + type: 'CustomDataTypeTranslation', + props: { + components: ['CustomDataTypeComponentTranslation'], + customDataTypeName: 'string', + description: '?string', + label: '?string', + }, + }, + CustomDataTypeComponentTranslation: { + type: 'CustomDataTypeComponentTranslation', + props: { developerSuffix: 'string', label: '?string' }, + }, + CustomLabelTranslation: { type: 'CustomLabelTranslation', props: { label: 'string', name: 'string' } }, + CustomPageWebLinkTranslation: { type: 'CustomPageWebLinkTranslation', props: { label: 'string', name: 'string' } }, + CustomTabTranslation: { type: 'CustomTabTranslation', props: { label: 'string', name: 'string' } }, + FlowDefinitionTranslation: { + type: 'FlowDefinitionTranslation', + props: { flows: ['FlowTranslation'], fullName: 'string', label: '?string' }, + }, + FlowTranslation: { + type: 'FlowTranslation', + props: { + choices: ['FlowChoiceTranslation'], + fullName: 'string', + label: '?string', + screens: ['FlowScreenTranslation'], + stages: ['FlowStageTranslation'], + textTemplates: ['FlowTextTemplateTranslation'], + }, + }, + FlowChoiceTranslation: { + type: 'FlowChoiceTranslation', + props: { choiceText: '?string', name: 'string', userInput: '?FlowChoiceUserInputTranslation' }, + }, + FlowChoiceUserInputTranslation: { + type: 'FlowChoiceUserInputTranslation', + props: { promptText: '?string', validationRule: '?FlowInputValidationRuleTranslation' }, + }, + FlowInputValidationRuleTranslation: { + type: 'FlowInputValidationRuleTranslation', + props: { errorMessage: '?string' }, + }, + FlowScreenTranslation: { + type: 'FlowScreenTranslation', + props: { fields: ['FlowScreenFieldTranslation'], helpText: '?string', name: 'string', pausedText: '?string' }, + }, + FlowScreenFieldTranslation: { + type: 'FlowScreenFieldTranslation', + props: { + fieldText: '?string', + helpText: '?string', + name: 'string', + validationRule: '?FlowInputValidationRuleTranslation', + }, + }, + FlowStageTranslation: { type: 'FlowStageTranslation', props: { label: '?string', name: 'string' } }, + FlowTextTemplateTranslation: { type: 'FlowTextTemplateTranslation', props: { name: 'string', text: '?string' } }, + GlobalQuickActionTranslation: { type: 'GlobalQuickActionTranslation', props: { label: 'string', name: 'string' } }, + ReportTypeTranslation: { + type: 'ReportTypeTranslation', + props: { description: '?string', label: '?string', name: 'string', sections: ['ReportTypeSectionTranslation'] }, + }, + ReportTypeSectionTranslation: { + type: 'ReportTypeSectionTranslation', + props: { columns: ['ReportTypeColumnTranslation'], label: '?string', name: 'string' }, + }, + ReportTypeColumnTranslation: { type: 'ReportTypeColumnTranslation', props: { label: 'string', name: 'string' } }, + ScontrolTranslation: { type: 'ScontrolTranslation', props: { label: 'string', name: 'string' } }, + UIObjectRelationConfig: { + type: 'UIObjectRelationConfig', + props: { + UIObjectRelationFieldConfigs: ['UIObjectRelationFieldConfig'], + contextObject: 'string', + contextObjectRecordType: '?string', + directRelationshipField: '?string', + indirectObjectContextField: '?string', + indirectObjectRelatedField: '?string', + indirectRelationshipObject: '?string', + isActive: 'boolean', + masterLabel: 'string', + relatedObject: 'string', + relatedObjectRecordType: '?string', + relationshipType: 'string', + }, + extends: 'Metadata', + }, + UIObjectRelationFieldConfig: { + type: 'UIObjectRelationFieldConfig', + props: { displayLabel: 'string', queryText: 'string', rowOrder: 'number' }, + }, + UserCriteria: { + type: 'UserCriteria', + props: { + creationAgeInSeconds: '?number', + description: '?string', + lastChatterActivityAgeInSeconds: '?number', + masterLabel: 'string', + profiles: ['string'], + userTypes: ['string'], + }, + extends: 'Metadata', + }, + UserEngagementSettings: { + type: 'UserEngagementSettings', + props: { + canGovCloudUseAdoptionApps: '?boolean', + doesScheduledSwitcherRunDaily: '?boolean', + enableCustomHelpGlobalSection: '?boolean', + enableHelpMenuShowFeedback: '?boolean', + enableHelpMenuShowHelp: '?boolean', + enableHelpMenuShowNewUser: '?boolean', + enableHelpMenuShowSearch: '?boolean', + enableHelpMenuShowSfdcContent: '?boolean', + enableHelpMenuShowShortcut: '?boolean', + enableHelpMenuShowSupport: '?boolean', + enableHelpMenuShowTrailhead: '?boolean', + enableIBILOptOutDashboards: '?boolean', + enableIBILOptOutEvents: '?boolean', + enableIBILOptOutReports: '?boolean', + enableIBILOptOutTasks: '?boolean', + enableLexToClassicFeedbackEnable: '?boolean', + enableOrchestrationInSandbox: '?boolean', + enableOrgUserAssistEnabled: '?boolean', + enableScheduledSwitcher: '?boolean', + enableSfdcProductFeedbackSurvey: '?boolean', + enableShowSalesforceUserAssist: '?boolean', + isAutoTransitionDelayed: '?boolean', + isCrucNotificationDisabled: '?boolean', + isCustomProfileAutoTransitionDelayed: '?boolean', + isLEXWelcomeMatDisabled: '?boolean', + isMeetTheAssistantDisabledInClassic: '?boolean', + isMeetTheAssistantDisabledInLightning: '?boolean', + optimizerAppEnabled: '?boolean', + }, + extends: 'Metadata', + }, + UserInterfaceSettings: { + type: 'UserInterfaceSettings', + props: { + alternateAlohaListView: '?boolean', + enableAsyncRelatedLists: '?boolean', + enableClickjackUserPageHeaderless: '?boolean', + enableCollapsibleSections: '?boolean', + enableCollapsibleSideBar: '?boolean', + enableCustomObjectTruncate: '?boolean', + enableCustomeSideBarOnAllPages: '?boolean', + enableDeleteFieldHistory: '?boolean', + enableHoverDetails: '?boolean', + enableInlineEdit: '?boolean', + enableNewPageLayoutEditor: '?boolean', + enablePersonalCanvas: '?boolean', + enablePrintableListViews: '?boolean', + enableProfileCustomTabsets: '?boolean', + enableQuickCreate: '?boolean', + enableTabOrganizer: '?boolean', + }, + extends: 'Metadata', + }, + UserManagementSettings: { + type: 'UserManagementSettings', + props: { + enableCanAnswerContainUsername: '?boolean', + enableCanSaveUserPerm: '?boolean', + enableConcealPersonalInfo: '?boolean', + enableContactlessExternalIdentityUsers: '?boolean', + enableEnhancedPermsetMgmt: '?boolean', + enableEnhancedProfileMgmt: '?boolean', + enableNewProfileUI: '?boolean', + enableScrambleUserData: '?boolean', + enableUserSelfDeactivate: '?boolean', + }, + extends: 'Metadata', + }, + VoiceSettings: { + type: 'VoiceSettings', + props: { + enableCallDisposition: '?boolean', + enableVoiceCallList: '?boolean', + enableVoiceCallRecording: '?boolean', + enableVoiceCoaching: '?boolean', + enableVoiceConferencing: '?boolean', + enableVoiceLocalPresence: '?boolean', + enableVoiceMail: '?boolean', + enableVoiceMailDrop: '?boolean', + }, + extends: 'Metadata', + }, + WaveApplication: { + type: 'WaveApplication', + props: { + assetIcon: '?string', + description: '?string', + folder: 'string', + masterLabel: 'string', + shares: ['FolderShare'], + templateOrigin: '?string', + templateVersion: '?string', + }, + extends: 'Metadata', + }, + WaveDataset: { + type: 'WaveDataset', + props: { + application: 'string', + description: '?string', + masterLabel: 'string', + templateAssetSourceName: '?string', + }, + extends: 'Metadata', + }, + WaveTemplateBundle: { + type: 'WaveTemplateBundle', + props: { + assetIcon: '?string', + assetVersion: '?number', + description: '?string', + label: 'string', + templateType: 'string', + }, + extends: 'Metadata', + }, + WaveXmd: { + type: 'WaveXmd', + props: { + application: '?string', + dataset: 'string', + datasetConnector: '?string', + datasetFullyQualifiedName: '?string', + dates: ['WaveXmdDate'], + dimensions: ['WaveXmdDimension'], + measures: ['WaveXmdMeasure'], + organizations: ['WaveXmdOrganization'], + origin: '?string', + type: '?string', + waveVisualization: '?string', + }, + extends: 'Metadata', + }, + WaveXmdDate: { + type: 'WaveXmdDate', + props: { + alias: 'string', + compact: '?boolean', + dateFieldDay: '?string', + dateFieldEpochDay: '?string', + dateFieldEpochSecond: '?string', + dateFieldFiscalMonth: '?string', + dateFieldFiscalQuarter: '?string', + dateFieldFiscalWeek: '?string', + dateFieldFiscalYear: '?string', + dateFieldFullYear: '?string', + dateFieldHour: '?string', + dateFieldMinute: '?string', + dateFieldMonth: '?string', + dateFieldQuarter: '?string', + dateFieldSecond: '?string', + dateFieldWeek: '?string', + dateFieldYear: '?string', + description: '?string', + firstDayOfWeek: 'number', + fiscalMonthOffset: 'number', + isYearEndFiscalYear: '?boolean', + label: '?string', + showInExplorer: '?boolean', + sortIndex: 'number', + type: 'string', + }, + }, + WaveXmdDimension: { + type: 'WaveXmdDimension', + props: { + conditionalFormatting: ['WaveXmdFormattingProperty'], + customActions: ['WaveXmdDimensionCustomAction'], + customActionsEnabled: '?boolean', + dateFormat: '?string', + description: '?string', + field: 'string', + fullyQualifiedName: '?string', + imageTemplate: '?string', + isDerived: 'boolean', + isMultiValue: '?boolean', + label: '?string', + linkTemplate: '?string', + linkTemplateEnabled: '?boolean', + linkTooltip: '?string', + members: ['WaveXmdDimensionMember'], + origin: '?string', + recordDisplayFields: ['WaveXmdRecordDisplayLookup'], + recordIdField: '?string', + recordOrganizationIdField: '?string', + salesforceActions: ['WaveXmdDimensionSalesforceAction'], + salesforceActionsEnabled: '?boolean', + showDetailsDefaultFieldIndex: '?number', + showInExplorer: '?boolean', + sortIndex: 'number', + }, + }, + WaveXmdFormattingProperty: { + type: 'WaveXmdFormattingProperty', + props: { + formattingBins: ['WaveXmdFormattingBin'], + formattingPredicates: ['WaveXmdFormattingPredicate'], + property: 'string', + referenceField: 'string', + sortIndex: 'number', + type: 'string', + }, + }, + WaveXmdFormattingBin: { + type: 'WaveXmdFormattingBin', + props: { bin: 'string', formatValue: 'string', label: 'string', sortIndex: 'number' }, + }, + WaveXmdFormattingPredicate: { + type: 'WaveXmdFormattingPredicate', + props: { formatValue: 'string', operator: 'string', sortIndex: 'number', value: 'string' }, + }, + WaveXmdDimensionCustomAction: { + type: 'WaveXmdDimensionCustomAction', + props: { + customActionName: 'string', + enabled: 'boolean', + icon: '?string', + method: '?string', + sortIndex: 'number', + target: '?string', + tooltip: '?string', + url: '?string', + }, + }, + WaveXmdDimensionMember: { + type: 'WaveXmdDimensionMember', + props: { color: '?string', label: '?string', member: 'string', sortIndex: 'number' }, + }, + WaveXmdRecordDisplayLookup: { type: 'WaveXmdRecordDisplayLookup', props: { recordDisplayField: 'string' } }, + WaveXmdDimensionSalesforceAction: { + type: 'WaveXmdDimensionSalesforceAction', + props: { enabled: 'boolean', salesforceActionName: 'string', sortIndex: 'number' }, + }, + WaveXmdMeasure: { + type: 'WaveXmdMeasure', + props: { + conditionalFormatting: ['WaveXmdFormattingProperty'], + dateFormat: '?string', + description: '?string', + field: 'string', + formatCustomFormat: '?string', + formatDecimalDigits: '?number', + formatIsNegativeParens: '?boolean', + formatPrefix: '?string', + formatSuffix: '?string', + formatUnit: '?string', + formatUnitMultiplier: '?number', + fullyQualifiedName: '?string', + isDerived: 'boolean', + label: '?string', + origin: '?string', + showDetailsDefaultFieldIndex: '?number', + showInExplorer: '?boolean', + sortIndex: 'number', + }, + }, + WaveXmdOrganization: { + type: 'WaveXmdOrganization', + props: { instanceUrl: 'string', label: 'string', organizationIdentifier: 'string', sortIndex: 'number' }, + }, + WorkDotComSettings: { + type: 'WorkDotComSettings', + props: { + enableCoachingManagerGroupAccess: '?boolean', + enableGoalManagerGroupAccess: '?boolean', + enableProfileSkills: '?boolean', + enableProfileSkillsAddFeedPost: '?boolean', + enableProfileSkillsAutoSuggest: '?boolean', + enableProfileSkillsUsePlatform: '?boolean', + enableWorkBadgeDefRestrictPref: '?boolean', + enableWorkCalibration: '?boolean', + enableWorkCanvasPref: '?boolean', + enableWorkCertification: '?boolean', + enableWorkCertificationNotification: '?boolean', + enableWorkRewardsPref: '?boolean', + enableWorkThanksPref: '?boolean', + enableWorkUseObjectivesForGoals: '?boolean', + }, + extends: 'Metadata', + }, + Workflow: { + type: 'Workflow', + props: { + alerts: ['WorkflowAlert'], + fieldUpdates: ['WorkflowFieldUpdate'], + flowActions: ['WorkflowFlowAction'], + knowledgePublishes: ['WorkflowKnowledgePublish'], + outboundMessages: ['WorkflowOutboundMessage'], + rules: ['WorkflowRule'], + send: ['WorkflowSend'], + tasks: ['WorkflowTask'], + }, + extends: 'Metadata', + }, + WorkflowAlert: { + type: 'WorkflowAlert', + props: { + ccEmails: ['string'], + description: 'string', + protected: 'boolean', + recipients: ['WorkflowEmailRecipient'], + senderAddress: '?string', + senderType: '?string', + template: 'string', + }, + extends: 'WorkflowAction', + }, + WorkflowAction: { type: 'WorkflowAction', props: {}, extends: 'Metadata' }, + WorkflowFieldUpdate: { + type: 'WorkflowFieldUpdate', + props: { + description: '?string', + field: 'string', + formula: '?string', + literalValue: '?string', + lookupValue: '?string', + lookupValueType: '?string', + name: 'string', + notifyAssignee: 'boolean', + operation: 'string', + protected: 'boolean', + reevaluateOnChange: '?boolean', + targetObject: '?string', + }, + extends: 'WorkflowAction', + }, + WorkflowFlowAction: { + type: 'WorkflowFlowAction', + props: { + description: '?string', + flow: 'string', + flowInputs: ['WorkflowFlowActionParameter'], + label: 'string', + language: '?string', + protected: 'boolean', + }, + extends: 'WorkflowAction', + }, + WorkflowFlowActionParameter: { type: 'WorkflowFlowActionParameter', props: { name: 'string', value: '?string' } }, + WorkflowKnowledgePublish: { + type: 'WorkflowKnowledgePublish', + props: { action: 'string', description: '?string', label: 'string', language: '?string', protected: 'boolean' }, + extends: 'WorkflowAction', + }, + WorkflowOutboundMessage: { + type: 'WorkflowOutboundMessage', + props: { + apiVersion: 'number', + description: '?string', + endpointUrl: 'string', + fields: ['string'], + includeSessionId: 'boolean', + integrationUser: 'string', + name: 'string', + protected: 'boolean', + useDeadLetterQueue: '?boolean', + }, + extends: 'WorkflowAction', + }, + WorkflowSend: { + type: 'WorkflowSend', + props: { action: 'string', description: '?string', label: 'string', language: '?string', protected: 'boolean' }, + extends: 'WorkflowAction', + }, + WorkflowTask: { + type: 'WorkflowTask', + props: { + assignedTo: '?string', + assignedToType: 'string', + description: '?string', + dueDateOffset: 'number', + notifyAssignee: 'boolean', + offsetFromField: '?string', + priority: 'string', + protected: 'boolean', + status: 'string', + subject: 'string', + }, + extends: 'WorkflowAction', + }, + WorkflowEmailRecipient: { + type: 'WorkflowEmailRecipient', + props: { field: '?string', recipient: '?string', type: 'string' }, + }, + WorkflowRule: { + type: 'WorkflowRule', + props: { + actions: ['WorkflowActionReference'], + active: 'boolean', + booleanFilter: '?string', + criteriaItems: ['FilterItem'], + description: '?string', + formula: '?string', + triggerType: 'string', + workflowTimeTriggers: ['WorkflowTimeTrigger'], + }, + extends: 'Metadata', + }, + WorkflowTimeTrigger: { + type: 'WorkflowTimeTrigger', + props: { + actions: ['WorkflowActionReference'], + offsetFromField: '?string', + timeLength: '?string', + workflowTimeTriggerUnit: 'string', + }, + }, + SaveResult: { type: 'SaveResult', props: { errors: ['Error'], fullName: 'string', success: 'boolean' } }, + Error: { + type: 'Error', + props: { + extendedErrorDetails: ['ExtendedErrorDetails'], + fields: ['string'], + message: 'string', + statusCode: 'string', + }, + }, + ExtendedErrorDetails: { type: 'ExtendedErrorDetails', props: { extendedErrorCode: 'string' } }, + DeleteResult: { type: 'DeleteResult', props: { errors: ['Error'], fullName: 'string', success: 'boolean' } }, + DeployOptions: { + type: 'DeployOptions', + props: { + allowMissingFiles: 'boolean', + autoUpdatePackage: 'boolean', + checkOnly: 'boolean', + ignoreWarnings: 'boolean', + performRetrieve: 'boolean', + purgeOnDelete: 'boolean', + rollbackOnError: 'boolean', + runTests: ['string'], + singlePackage: 'boolean', + testLevel: 'string', + }, + }, + AsyncResult: { + type: 'AsyncResult', + props: { done: 'boolean', id: 'string', message: '?string', state: 'string', statusCode: '?string' }, + }, + DescribeMetadataResult: { + type: 'DescribeMetadataResult', + props: { + metadataObjects: ['DescribeMetadataObject'], + organizationNamespace: 'string', + partialSaveAllowed: 'boolean', + testRequired: 'boolean', + }, + }, + DescribeMetadataObject: { + type: 'DescribeMetadataObject', + props: { + childXmlNames: ['string'], + directoryName: 'string', + inFolder: 'boolean', + metaFile: 'boolean', + suffix: '?string', + xmlName: 'string', + }, + }, + DescribeValueTypeResult: { + type: 'DescribeValueTypeResult', + props: { + apiCreatable: 'boolean', + apiDeletable: 'boolean', + apiReadable: 'boolean', + apiUpdatable: 'boolean', + parentField: '?ValueTypeField', + valueTypeFields: ['ValueTypeField'], + }, + }, + ValueTypeField: { + type: 'ValueTypeField', + props: { + fields: ['ValueTypeField'], + foreignKeyDomain: ['string'], + isForeignKey: 'boolean', + isNameField: 'boolean', + minOccurs: 'number', + name: 'string', + picklistValues: ['PicklistEntry'], + soapType: 'string', + valueRequired: 'boolean', + }, + }, + PicklistEntry: { + type: 'PicklistEntry', + props: { active: 'boolean', defaultValue: 'boolean', label: 'string', validFor: '?string', value: 'string' }, + }, + ListMetadataQuery: { type: 'ListMetadataQuery', props: { folder: '?string', type: 'string' } }, + ReadResult: { type: 'ReadResult', props: { records: ['Metadata'] } }, + RetrieveRequest: { + type: 'RetrieveRequest', + props: { + apiVersion: 'number', + packageNames: ['string'], + singlePackage: 'boolean', + specificFiles: ['string'], + unpackaged: '?Package', + }, + }, + UpsertResult: { + type: 'UpsertResult', + props: { created: 'boolean', errors: ['Error'], fullName: 'string', success: 'boolean' }, + }, + LogInfo: { type: 'LogInfo', props: { category: 'string', level: 'string' } }, + }; + r8.ApiSchemas = Gmt; +}); +var n1e = d((fn) => { + 'use strict'; + var Gge, + Ps = Ce(), + iP = ge(), + Wmt = Ur(), + Wge = $r(), + rP = Bt(), + Zge = Br(), + Kmt = Qt(), + Kge = Vr(), + e1e = Ve(); + Zt(); + iP(fn, '__esModule', { value: !0 }); + var Xmt = { MetadataApi: !0, AsyncResultLocator: !0, RetrieveResultLocator: !0, DeployResultLocator: !0 }; + fn.default = fn.DeployResultLocator = fn.RetrieveResultLocator = fn.AsyncResultLocator = fn.MetadataApi = void 0; + var Xge = Ps(Gm()), + Jmt = Ps(hv()), + t1e = Ps(cn()), + Jge = Ps(sa()), + r1e = Ps(jn()), + Ih = Ps(Da()), + bd = Ps(Ye()), + Ymt = Ps(Ro()), + Qmt = require('events'), + Zmt = require('stream'), + eht = Ps(yv()), + tht = $a(), + rht = Ps(eP()), + iht = sy(), + ur = Hge(); + rP((Gge = e1e(ur))).call(Gge, function (e) { + e === 'default' || + e === '__esModule' || + Object.prototype.hasOwnProperty.call(Xmt, e) || + (e in fn && fn[e] === ur[e]) || + iP(fn, e, { + enumerable: !0, + get: function () { + return ur[e]; + }, + }); + }); + function Yge(e, t) { + var r = e1e(e); + if (Kge) { + var n = Kge(e); + t && + (n = Kmt(n).call(n, function (a) { + return Zge(e, a).enumerable; + })), + r.push.apply(r, n); + } + return r; + } + function i1e(e) { + for (var t = 1; t < arguments.length; t++) { + var r = arguments[t] != null ? arguments[t] : {}; + if (t % 2) { + var n; + rP((n = Yge(Object(r), !0))).call(n, function (o) { + (0, bd.default)(e, o, r[o]); + }); + } else if (Wge) Wmt(e, Wge(r)); + else { + var a; + rP((a = Yge(Object(r)))).call(a, function (o) { + iP(e, o, Zge(r, o)); + }); + } + } + return e; + } + function Qge(e) { + let t = e, + { $: r } = t; + return (0, Ymt.default)(t, ['$']); + } + function tP(e, t) { + let r = (n) => i1e({ '@xsi:type': t }, n); + return (0, Ih.default)(e) ? (0, r1e.default)(e).call(e, r) : r(e); + } + var Ey = class { + constructor(t) { + (0, bd.default)(this, '_conn', void 0), + (0, bd.default)(this, 'pollInterval', 1e3), + (0, bd.default)(this, 'pollTimeout', 1e4), + (this._conn = t); + } + async _invoke(t, r, n) { + return ( + await new rht.default(this._conn, { + xmlns: 'http://soap.sforce.com/2006/04/metadata', + endpointUrl: `${this._conn.instanceUrl}/services/Soap/m/${this._conn.version}`, + }).invoke(t, r, n ? { result: n } : void 0, ur.ApiSchemas) + ).result; + } + create(t, r) { + let n = (0, Ih.default)(r); + r = tP(r, t); + let a = n ? [ur.ApiSchemas.SaveResult] : ur.ApiSchemas.SaveResult; + return this._invoke('createMetadata', { metadata: r }, a); + } + async read(t, r) { + var n; + let a = + t in ur.ApiSchemas + ? { type: ur.ApiSchemas.ReadResult.type, props: { records: [t] } } + : ur.ApiSchemas.ReadResult, + o = await this._invoke('readMetadata', { type: t, fullNames: r }, a); + return (0, Ih.default)(r) ? (0, r1e.default)((n = o.records)).call(n, Qge) : Qge(o.records[0]); + } + update(t, r) { + let n = (0, Ih.default)(r); + r = tP(r, t); + let a = n ? [ur.ApiSchemas.SaveResult] : ur.ApiSchemas.SaveResult; + return this._invoke('updateMetadata', { metadata: r }, a); + } + upsert(t, r) { + let n = (0, Ih.default)(r); + r = tP(r, t); + let a = n ? [ur.ApiSchemas.UpsertResult] : ur.ApiSchemas.UpsertResult; + return this._invoke('upsertMetadata', { metadata: r }, a); + } + delete(t, r) { + let n = (0, Ih.default)(r) ? [ur.ApiSchemas.SaveResult] : ur.ApiSchemas.SaveResult; + return this._invoke('deleteMetadata', { type: t, fullNames: r }, n); + } + rename(t, r, n) { + return this._invoke('renameMetadata', { type: t, oldFullName: r, newFullName: n }, ur.ApiSchemas.SaveResult); + } + describe(t) { + return ( + t || (t = this._conn.version), + this._invoke('describeMetadata', { asOfVersion: t }, ur.ApiSchemas.DescribeMetadataResult) + ); + } + list(t, r) { + return ( + r || (r = this._conn.version), + this._invoke('listMetadata', { queries: t, asOfVersion: r }, [ur.ApiSchemas.FileProperties]) + ); + } + checkStatus(t) { + let r = this._invoke('checkStatus', { asyncProcessId: t }, ur.ApiSchemas.AsyncResult); + return new Ph(this, r); + } + retrieve(t) { + let r = this._invoke('retrieve', { request: t }, ur.ApiSchemas.RetrieveResult); + return new i8(this, r); + } + checkRetrieveStatus(t) { + return this._invoke('checkRetrieveStatus', { asyncProcessId: t }, ur.ApiSchemas.RetrieveResult); + } + async deployRecentValidation(t) { + let { id: r, rest: n } = t, + a; + if (n) { + let o = (0, Jge.default)({ validatedDeployRequestId: r }), + s = { + method: 'POST', + url: `${this._conn._baseUrl()}/metadata/deployRequest`, + body: o, + headers: { 'content-type': 'application/json' }, + }, + l = { headers: 'json' }; + a = (await this._conn.request(s, l)).id; + } else a = await this._invoke('deployRecentValidation', { validationId: r }); + return a; + } + deployRest(t, r = {}) { + let n = new eht.default(); + n.append('file', t, { contentType: 'application/zip', filename: 'package.xml' }), + n.append('entity_content', (0, Jge.default)({ deployOptions: r }), { contentType: 'application/json' }); + let a = { url: '/metadata/deployRequest', method: 'POST', headers: i1e({}, n.getHeaders()), body: n.getBuffer() }, + o = this._conn.request(a); + return new xy(this, o); + } + deploy(t, r = {}) { + let n = (async () => { + let a = await new t1e.default((o, s) => { + if ((0, iht.isObject)(t) && 'pipe' in t && typeof t.pipe == 'function') { + let l = []; + t.on('data', (u) => l.push(u)), + t.on('error', s), + t.on('end', () => { + o((0, Jmt.default)(Buffer).call(Buffer, l).toString('base64')); + }); + } else if (t instanceof Buffer) o(t.toString('base64')); + else if (t instanceof String || typeof t == 'string') o(t); + else throw 'Unexpected zipInput type'; + }); + return this._invoke('deploy', { ZipFile: a, DeployOptions: r }, ur.ApiSchemas.DeployResult); + })(); + return new xy(this, n); + } + checkDeployStatus(t, r = !1) { + return this._invoke('checkDeployStatus', { asyncProcessId: t, includeDetails: r }, ur.ApiSchemas.DeployResult); + } + }; + fn.MetadataApi = Ey; + var Ph = class extends Qmt.EventEmitter { + constructor(t, r) { + super(), + (0, bd.default)(this, '_meta', void 0), + (0, bd.default)(this, '_promise', void 0), + (0, bd.default)(this, '_id', void 0), + (this._meta = t), + (this._promise = r); + } + then(t, r) { + return this._promise.then(t, r); + } + async check() { + let t = await this._promise; + return (this._id = t.id), await this._meta.checkStatus(t.id); + } + poll(t, r) { + let n = new Date().getTime(), + a = async () => { + try { + let o = new Date().getTime(); + if (n + r < o) { + let l = 'Polling time out.'; + this._id && (l += ' Process Id = ' + this._id), this.emit('error', new Error(l)); + return; + } + let s = await this.check(); + s.done ? this.emit('complete', s) : (this.emit('progress', s), (0, Xge.default)(a, t)); + } catch (o) { + this.emit('error', o); + } + }; + (0, Xge.default)(a, t); + } + complete() { + return new t1e.default((t, r) => { + this.on('complete', t), this.on('error', r), this.poll(this._meta.pollInterval, this._meta.pollTimeout); + }); + } + }; + fn.AsyncResultLocator = Ph; + var i8 = class extends Ph { + async complete() { + let t = await super.complete(); + return this._meta.checkRetrieveStatus(t.id); + } + stream() { + let t = new Zmt.Readable(), + r = !1; + return ( + (t._read = async () => { + if (!r) { + r = !0; + try { + let n = await this.complete(); + t.push(Buffer.from(n.zipFile, 'base64')), t.push(null); + } catch (n) { + t.emit('error', n); + } + } + }), + t + ); + } + }; + fn.RetrieveResultLocator = i8; + var xy = class extends Ph { + async complete(t) { + let r = await super.complete(); + return this._meta.checkDeployStatus(r.id, t); + } + }; + fn.DeployResultLocator = xy; + (0, tht.registerModule)('metadata', (e) => new Ey(e)); + var nht = Ey; + fn.default = nht; +}); +var a1e = d((n8) => { + 'use strict'; + var aht = ge(); + aht(n8, '__esModule', { value: !0 }); + n8.ApiSchemas = void 0; + var oht = { + sObject: { type: 'sObject', props: { type: 'string', fieldsToNull: ['?', 'string'], Id: '?string' } }, + address: { + type: 'address', + props: { + city: '?string', + country: '?string', + countryCode: '?string', + geocodeAccuracy: '?string', + postalCode: '?string', + state: '?string', + stateCode: '?string', + street: '?string', + }, + extends: 'location', + }, + location: { type: 'location', props: { latitude: '?number', longitude: '?number' } }, + QueryResult: { + type: 'QueryResult', + props: { done: 'boolean', queryLocator: '?string', records: ['?', 'sObject'], size: 'number' }, + }, + SearchResult: { + type: 'SearchResult', + props: { queryId: 'string', searchRecords: ['SearchRecord'], searchResultsMetadata: '?SearchResultsMetadata' }, + }, + SearchRecord: { + type: 'SearchRecord', + props: { record: 'sObject', searchRecordMetadata: '?SearchRecordMetadata', snippet: '?SearchSnippet' }, + }, + SearchRecordMetadata: { + type: 'SearchRecordMetadata', + props: { searchPromoted: 'boolean', spellCorrected: 'boolean' }, + }, + SearchSnippet: { type: 'SearchSnippet', props: { text: '?string', wholeFields: ['NameValuePair'] } }, + SearchResultsMetadata: { + type: 'SearchResultsMetadata', + props: { entityLabelMetadata: ['LabelsSearchMetadata'], entityMetadata: ['EntitySearchMetadata'] }, + }, + LabelsSearchMetadata: { + type: 'LabelsSearchMetadata', + props: { entityFieldLabels: ['NameValuePair'], entityName: 'string' }, + }, + EntitySearchMetadata: { + type: 'EntitySearchMetadata', + props: { + entityName: 'string', + errorMetadata: '?EntityErrorMetadata', + fieldMetadata: ['FieldLevelSearchMetadata'], + intentQueryMetadata: '?EntityIntentQueryMetadata', + searchPromotionMetadata: '?EntitySearchPromotionMetadata', + spellCorrectionMetadata: '?EntitySpellCorrectionMetadata', + }, + }, + FieldLevelSearchMetadata: { + type: 'FieldLevelSearchMetadata', + props: { label: '?string', name: 'string', type: '?string' }, + }, + EntitySpellCorrectionMetadata: { + type: 'EntitySpellCorrectionMetadata', + props: { correctedQuery: 'string', hasNonCorrectedResults: 'boolean' }, + }, + EntitySearchPromotionMetadata: { type: 'EntitySearchPromotionMetadata', props: { promotedResultCount: 'number' } }, + EntityIntentQueryMetadata: { + type: 'EntityIntentQueryMetadata', + props: { intentQuery: 'boolean', message: '?string' }, + }, + EntityErrorMetadata: { type: 'EntityErrorMetadata', props: { errorCode: '?string', message: '?string' } }, + RelationshipReferenceTo: { type: 'RelationshipReferenceTo', props: { referenceTo: ['string'] } }, + RecordTypesSupported: { type: 'RecordTypesSupported', props: { recordTypeInfos: ['RecordTypeInfo'] } }, + JunctionIdListNames: { type: 'JunctionIdListNames', props: { names: ['string'] } }, + SearchLayoutButtonsDisplayed: { + type: 'SearchLayoutButtonsDisplayed', + props: { applicable: 'boolean', buttons: ['SearchLayoutButton'] }, + }, + SearchLayoutButton: { type: 'SearchLayoutButton', props: { apiName: 'string', label: 'string' } }, + SearchLayoutFieldsDisplayed: { + type: 'SearchLayoutFieldsDisplayed', + props: { applicable: 'boolean', fields: ['SearchLayoutField'] }, + }, + SearchLayoutField: { + type: 'SearchLayoutField', + props: { apiName: 'string', label: 'string', sortable: 'boolean' }, + }, + NameValuePair: { type: 'NameValuePair', props: { name: 'string', value: 'string' } }, + NameObjectValuePair: { + type: 'NameObjectValuePair', + props: { isVisible: '?boolean', name: 'string', value: ['any'] }, + }, + GetUpdatedResult: { type: 'GetUpdatedResult', props: { ids: ['string'], latestDateCovered: 'string' } }, + GetDeletedResult: { + type: 'GetDeletedResult', + props: { deletedRecords: ['DeletedRecord'], earliestDateAvailable: 'string', latestDateCovered: 'string' }, + }, + DeletedRecord: { type: 'DeletedRecord', props: { deletedDate: 'string', id: 'string' } }, + GetServerTimestampResult: { type: 'GetServerTimestampResult', props: { timestamp: 'string' } }, + InvalidateSessionsResult: { type: 'InvalidateSessionsResult', props: { errors: ['Error'], success: 'boolean' } }, + SetPasswordResult: { type: 'SetPasswordResult', props: {} }, + ChangeOwnPasswordResult: { type: 'ChangeOwnPasswordResult', props: {} }, + ResetPasswordResult: { type: 'ResetPasswordResult', props: { password: 'string' } }, + GetUserInfoResult: { + type: 'GetUserInfoResult', + props: { + accessibilityMode: 'boolean', + chatterExternal: 'boolean', + currencySymbol: '?string', + orgAttachmentFileSizeLimit: 'number', + orgDefaultCurrencyIsoCode: '?string', + orgDefaultCurrencyLocale: '?string', + orgDisallowHtmlAttachments: 'boolean', + orgHasPersonAccounts: 'boolean', + organizationId: 'string', + organizationMultiCurrency: 'boolean', + organizationName: 'string', + profileId: 'string', + roleId: '?string', + sessionSecondsValid: 'number', + userDefaultCurrencyIsoCode: '?string', + userEmail: 'string', + userFullName: 'string', + userId: 'string', + userLanguage: 'string', + userLocale: 'string', + userName: 'string', + userTimeZone: 'string', + userType: 'string', + userUiSkin: 'string', + }, + }, + LoginResult: { + type: 'LoginResult', + props: { + metadataServerUrl: '?string', + passwordExpired: 'boolean', + sandbox: 'boolean', + serverUrl: '?string', + sessionId: '?string', + userId: '?string', + userInfo: '?GetUserInfoResult', + }, + }, + ExtendedErrorDetails: { type: 'ExtendedErrorDetails', props: { extendedErrorCode: 'string' } }, + Error: { + type: 'Error', + props: { + extendedErrorDetails: ['?', 'ExtendedErrorDetails'], + fields: ['?', 'string'], + message: 'string', + statusCode: 'string', + }, + }, + SendEmailError: { + type: 'SendEmailError', + props: { fields: ['?', 'string'], message: 'string', statusCode: 'string', targetObjectId: '?string' }, + }, + SaveResult: { type: 'SaveResult', props: { errors: ['Error'], id: '?string', success: 'boolean' } }, + RenderEmailTemplateError: { + type: 'RenderEmailTemplateError', + props: { fieldName: 'string', message: 'string', offset: 'number', statusCode: 'string' }, + }, + UpsertResult: { + type: 'UpsertResult', + props: { created: 'boolean', errors: ['Error'], id: '?string', success: 'boolean' }, + }, + PerformQuickActionResult: { + type: 'PerformQuickActionResult', + props: { + contextId: '?string', + created: 'boolean', + errors: ['Error'], + feedItemIds: ['?', 'string'], + ids: ['?', 'string'], + success: 'boolean', + successMessage: '?string', + }, + }, + QuickActionTemplateResult: { + type: 'QuickActionTemplateResult', + props: { + contextId: '?string', + defaultValueFormulas: '?sObject', + defaultValues: '?sObject', + errors: ['Error'], + success: 'boolean', + }, + }, + MergeRequest: { + type: 'MergeRequest', + props: { + additionalInformationMap: ['AdditionalInformationMap'], + masterRecord: 'sObject', + recordToMergeIds: ['string'], + }, + }, + MergeResult: { + type: 'MergeResult', + props: { + errors: ['Error'], + id: '?string', + mergedRecordIds: ['string'], + success: 'boolean', + updatedRelatedIds: ['string'], + }, + }, + ProcessRequest: { type: 'ProcessRequest', props: { comments: '?string', nextApproverIds: ['?', 'string'] } }, + ProcessSubmitRequest: { + type: 'ProcessSubmitRequest', + props: { + objectId: 'string', + submitterId: '?string', + processDefinitionNameOrId: '?string', + skipEntryCriteria: '?boolean', + }, + extends: 'ProcessRequest', + }, + ProcessWorkitemRequest: { + type: 'ProcessWorkitemRequest', + props: { action: 'string', workitemId: 'string' }, + extends: 'ProcessRequest', + }, + PerformQuickActionRequest: { + type: 'PerformQuickActionRequest', + props: { contextId: '?string', quickActionName: 'string', records: ['?', 'sObject'] }, + }, + DescribeAvailableQuickActionResult: { + type: 'DescribeAvailableQuickActionResult', + props: { actionEnumOrId: 'string', label: 'string', name: 'string', type: 'string' }, + }, + DescribeQuickActionResult: { + type: 'DescribeQuickActionResult', + props: { + accessLevelRequired: '?string', + actionEnumOrId: 'string', + canvasApplicationId: '?string', + canvasApplicationName: '?string', + colors: ['DescribeColor'], + contextSobjectType: '?string', + defaultValues: ['?', 'DescribeQuickActionDefaultValue'], + flowDevName: '?string', + flowRecordIdVar: '?string', + height: '?number', + iconName: '?string', + iconUrl: '?string', + icons: ['DescribeIcon'], + label: 'string', + layout: '?DescribeLayoutSection', + lightningComponentBundleId: '?string', + lightningComponentBundleName: '?string', + lightningComponentQualifiedName: '?string', + miniIconUrl: '?string', + mobileExtensionDisplayMode: '?string', + mobileExtensionId: '?string', + name: 'string', + showQuickActionLcHeader: 'boolean', + showQuickActionVfHeader: 'boolean', + targetParentField: '?string', + targetRecordTypeId: '?string', + targetSobjectType: '?string', + type: 'string', + visualforcePageName: '?string', + visualforcePageUrl: '?string', + width: '?number', + }, + }, + DescribeQuickActionDefaultValue: { + type: 'DescribeQuickActionDefaultValue', + props: { defaultValue: '?string', field: 'string' }, + }, + DescribeVisualForceResult: { type: 'DescribeVisualForceResult', props: { domain: 'string' } }, + ProcessResult: { + type: 'ProcessResult', + props: { + actorIds: ['string'], + entityId: '?string', + errors: ['Error'], + instanceId: '?string', + instanceStatus: '?string', + newWorkitemIds: ['?', 'string'], + success: 'boolean', + }, + }, + DeleteResult: { type: 'DeleteResult', props: { errors: ['?', 'Error'], id: '?string', success: 'boolean' } }, + UndeleteResult: { type: 'UndeleteResult', props: { errors: ['Error'], id: '?string', success: 'boolean' } }, + DeleteByExampleResult: { + type: 'DeleteByExampleResult', + props: { entity: '?sObject', errors: ['?', 'Error'], rowCount: 'number', success: 'boolean' }, + }, + EmptyRecycleBinResult: { + type: 'EmptyRecycleBinResult', + props: { errors: ['Error'], id: '?string', success: 'boolean' }, + }, + LeadConvert: { + type: 'LeadConvert', + props: { + accountId: '?string', + accountRecord: '?sObject', + bypassAccountDedupeCheck: '?boolean', + bypassContactDedupeCheck: '?boolean', + contactId: '?string', + contactRecord: '?sObject', + convertedStatus: 'string', + doNotCreateOpportunity: 'boolean', + leadId: 'string', + opportunityId: '?string', + opportunityName: '?string', + opportunityRecord: '?sObject', + overwriteLeadSource: 'boolean', + ownerId: '?string', + sendNotificationEmail: 'boolean', + }, + }, + LeadConvertResult: { + type: 'LeadConvertResult', + props: { + accountId: '?string', + contactId: '?string', + errors: ['Error'], + leadId: '?string', + opportunityId: '?string', + success: 'boolean', + }, + }, + DescribeSObjectResult: { + type: 'DescribeSObjectResult', + props: { + actionOverrides: ['?', 'ActionOverride'], + activateable: 'boolean', + childRelationships: ['ChildRelationship'], + compactLayoutable: 'boolean', + createable: 'boolean', + custom: 'boolean', + customSetting: 'boolean', + dataTranslationEnabled: '?boolean', + deepCloneable: 'boolean', + defaultImplementation: '?string', + deletable: 'boolean', + deprecatedAndHidden: 'boolean', + feedEnabled: 'boolean', + fields: ['?', 'Field'], + hasSubtypes: 'boolean', + idEnabled: 'boolean', + implementedBy: '?string', + implementsInterfaces: '?string', + isInterface: 'boolean', + isSubtype: 'boolean', + keyPrefix: '?string', + label: 'string', + labelPlural: 'string', + layoutable: 'boolean', + mergeable: 'boolean', + mruEnabled: 'boolean', + name: 'string', + namedLayoutInfos: ['NamedLayoutInfo'], + networkScopeFieldName: '?string', + queryable: 'boolean', + recordTypeInfos: ['RecordTypeInfo'], + replicateable: 'boolean', + retrieveable: 'boolean', + searchLayoutable: '?boolean', + searchable: 'boolean', + supportedScopes: ['?', 'ScopeInfo'], + triggerable: '?boolean', + undeletable: 'boolean', + updateable: 'boolean', + urlDetail: '?string', + urlEdit: '?string', + urlNew: '?string', + }, + }, + DescribeGlobalSObjectResult: { + type: 'DescribeGlobalSObjectResult', + props: { + activateable: 'boolean', + createable: 'boolean', + custom: 'boolean', + customSetting: 'boolean', + dataTranslationEnabled: '?boolean', + deepCloneable: 'boolean', + deletable: 'boolean', + deprecatedAndHidden: 'boolean', + feedEnabled: 'boolean', + hasSubtypes: 'boolean', + idEnabled: 'boolean', + isInterface: 'boolean', + isSubtype: 'boolean', + keyPrefix: '?string', + label: 'string', + labelPlural: 'string', + layoutable: 'boolean', + mergeable: 'boolean', + mruEnabled: 'boolean', + name: 'string', + queryable: 'boolean', + replicateable: 'boolean', + retrieveable: 'boolean', + searchable: 'boolean', + triggerable: 'boolean', + undeletable: 'boolean', + updateable: 'boolean', + }, + }, + ChildRelationship: { + type: 'ChildRelationship', + props: { + cascadeDelete: 'boolean', + childSObject: 'string', + deprecatedAndHidden: 'boolean', + field: 'string', + junctionIdListNames: ['?', 'string'], + junctionReferenceTo: ['?', 'string'], + relationshipName: '?string', + restrictedDelete: '?boolean', + }, + }, + DescribeGlobalResult: { + type: 'DescribeGlobalResult', + props: { encoding: '?string', maxBatchSize: 'number', sobjects: ['DescribeGlobalSObjectResult'] }, + }, + DescribeGlobalTheme: { + type: 'DescribeGlobalTheme', + props: { global: 'DescribeGlobalResult', theme: 'DescribeThemeResult' }, + }, + ScopeInfo: { type: 'ScopeInfo', props: { label: 'string', name: 'string' } }, + StringList: { type: 'StringList', props: { values: ['string'] } }, + ChangeEventHeader: { + type: 'ChangeEventHeader', + props: { + entityName: 'string', + recordIds: ['string'], + commitTimestamp: 'number', + commitNumber: 'number', + commitUser: 'string', + diffFields: ['string'], + changeType: 'string', + changeOrigin: 'string', + transactionKey: 'string', + sequenceNumber: 'number', + nulledFields: ['string'], + changedFields: ['string'], + }, + }, + FilteredLookupInfo: { + type: 'FilteredLookupInfo', + props: { controllingFields: ['string'], dependent: 'boolean', optionalFilter: 'boolean' }, + }, + Field: { + type: 'Field', + props: { + aggregatable: 'boolean', + aiPredictionField: 'boolean', + autoNumber: 'boolean', + byteLength: 'number', + calculated: 'boolean', + calculatedFormula: '?string', + cascadeDelete: '?boolean', + caseSensitive: 'boolean', + compoundFieldName: '?string', + controllerName: '?string', + createable: 'boolean', + custom: 'boolean', + dataTranslationEnabled: '?boolean', + defaultValue: '?any', + defaultValueFormula: '?string', + defaultedOnCreate: 'boolean', + dependentPicklist: '?boolean', + deprecatedAndHidden: 'boolean', + digits: 'number', + displayLocationInDecimal: '?boolean', + encrypted: '?boolean', + externalId: '?boolean', + extraTypeInfo: '?string', + filterable: 'boolean', + filteredLookupInfo: '?FilteredLookupInfo', + formulaTreatNullNumberAsZero: '?boolean', + groupable: 'boolean', + highScaleNumber: '?boolean', + htmlFormatted: '?boolean', + idLookup: 'boolean', + inlineHelpText: '?string', + label: 'string', + length: 'number', + mask: '?string', + maskType: '?string', + name: 'string', + nameField: 'boolean', + namePointing: '?boolean', + nillable: 'boolean', + permissionable: 'boolean', + picklistValues: ['?', 'PicklistEntry'], + polymorphicForeignKey: 'boolean', + precision: 'number', + queryByDistance: 'boolean', + referenceTargetField: '?string', + referenceTo: ['?', 'string'], + relationshipName: '?string', + relationshipOrder: '?number', + restrictedDelete: '?boolean', + restrictedPicklist: 'boolean', + scale: 'number', + searchPrefilterable: 'boolean', + soapType: 'string', + sortable: '?boolean', + type: 'string', + unique: 'boolean', + updateable: 'boolean', + writeRequiresMasterRead: '?boolean', + }, + }, + PicklistEntry: { + type: 'PicklistEntry', + props: { active: 'boolean', defaultValue: 'boolean', label: '?string', validFor: '?string', value: 'string' }, + }, + DescribeDataCategoryGroupResult: { + type: 'DescribeDataCategoryGroupResult', + props: { categoryCount: 'number', description: 'string', label: 'string', name: 'string', sobject: 'string' }, + }, + DescribeDataCategoryGroupStructureResult: { + type: 'DescribeDataCategoryGroupStructureResult', + props: { + description: 'string', + label: 'string', + name: 'string', + sobject: 'string', + topCategories: ['DataCategory'], + }, + }, + DataCategoryGroupSobjectTypePair: { + type: 'DataCategoryGroupSobjectTypePair', + props: { dataCategoryGroupName: 'string', sobject: 'string' }, + }, + DataCategory: { + type: 'DataCategory', + props: { childCategories: ['DataCategory'], label: 'string', name: 'string' }, + }, + DescribeDataCategoryMappingResult: { + type: 'DescribeDataCategoryMappingResult', + props: { + dataCategoryGroupId: 'string', + dataCategoryGroupLabel: 'string', + dataCategoryGroupName: 'string', + dataCategoryId: 'string', + dataCategoryLabel: 'string', + dataCategoryName: 'string', + id: 'string', + mappedEntity: 'string', + mappedField: 'string', + }, + }, + KnowledgeSettings: { + type: 'KnowledgeSettings', + props: { defaultLanguage: '?string', knowledgeEnabled: 'boolean', languages: ['KnowledgeLanguageItem'] }, + }, + KnowledgeLanguageItem: { + type: 'KnowledgeLanguageItem', + props: { active: 'boolean', assigneeId: '?string', name: 'string' }, + }, + FieldDiff: { type: 'FieldDiff', props: { difference: 'string', name: 'string' } }, + AdditionalInformationMap: { type: 'AdditionalInformationMap', props: { name: 'string', value: 'string' } }, + MatchRecord: { + type: 'MatchRecord', + props: { + additionalInformation: ['AdditionalInformationMap'], + fieldDiffs: ['FieldDiff'], + matchConfidence: 'number', + record: 'sObject', + }, + }, + MatchResult: { + type: 'MatchResult', + props: { + entityType: 'string', + errors: ['Error'], + matchEngine: 'string', + matchRecords: ['MatchRecord'], + rule: 'string', + size: 'number', + success: 'boolean', + }, + }, + DuplicateResult: { + type: 'DuplicateResult', + props: { + allowSave: 'boolean', + duplicateRule: 'string', + duplicateRuleEntityType: 'string', + errorMessage: '?string', + matchResults: ['MatchResult'], + }, + }, + DuplicateError: { type: 'DuplicateError', props: { duplicateResult: 'DuplicateResult' }, extends: 'Error' }, + DescribeNounResult: { + type: 'DescribeNounResult', + props: { + caseValues: ['NameCaseValue'], + developerName: 'string', + gender: '?string', + name: 'string', + pluralAlias: '?string', + startsWith: '?string', + }, + }, + NameCaseValue: { + type: 'NameCaseValue', + props: { article: '?string', caseType: '?string', number: '?string', possessive: '?string', value: '?string' }, + }, + FindDuplicatesResult: { + type: 'FindDuplicatesResult', + props: { duplicateResults: ['DuplicateResult'], errors: ['Error'], success: 'boolean' }, + }, + DescribeAppMenuResult: { type: 'DescribeAppMenuResult', props: { appMenuItems: ['DescribeAppMenuItem'] } }, + DescribeAppMenuItem: { + type: 'DescribeAppMenuItem', + props: { + colors: ['DescribeColor'], + content: 'string', + icons: ['DescribeIcon'], + label: 'string', + name: 'string', + type: 'string', + url: 'string', + }, + }, + DescribeThemeResult: { type: 'DescribeThemeResult', props: { themeItems: ['DescribeThemeItem'] } }, + DescribeThemeItem: { + type: 'DescribeThemeItem', + props: { colors: ['DescribeColor'], icons: ['DescribeIcon'], name: 'string' }, + }, + DescribeSoftphoneLayoutResult: { + type: 'DescribeSoftphoneLayoutResult', + props: { callTypes: ['DescribeSoftphoneLayoutCallType'], id: 'string', name: 'string' }, + }, + DescribeSoftphoneLayoutCallType: { + type: 'DescribeSoftphoneLayoutCallType', + props: { + infoFields: ['DescribeSoftphoneLayoutInfoField'], + name: 'string', + screenPopOptions: ['DescribeSoftphoneScreenPopOption'], + screenPopsOpenWithin: '?string', + sections: ['DescribeSoftphoneLayoutSection'], + }, + }, + DescribeSoftphoneScreenPopOption: { + type: 'DescribeSoftphoneScreenPopOption', + props: { matchType: 'string', screenPopData: 'string', screenPopType: 'string' }, + }, + DescribeSoftphoneLayoutInfoField: { type: 'DescribeSoftphoneLayoutInfoField', props: { name: 'string' } }, + DescribeSoftphoneLayoutSection: { + type: 'DescribeSoftphoneLayoutSection', + props: { entityApiName: 'string', items: ['DescribeSoftphoneLayoutItem'] }, + }, + DescribeSoftphoneLayoutItem: { type: 'DescribeSoftphoneLayoutItem', props: { itemApiName: 'string' } }, + DescribeCompactLayoutsResult: { + type: 'DescribeCompactLayoutsResult', + props: { + compactLayouts: ['DescribeCompactLayout'], + defaultCompactLayoutId: 'string', + recordTypeCompactLayoutMappings: ['RecordTypeCompactLayoutMapping'], + }, + }, + DescribeCompactLayout: { + type: 'DescribeCompactLayout', + props: { + actions: ['DescribeLayoutButton'], + fieldItems: ['DescribeLayoutItem'], + id: 'string', + imageItems: ['DescribeLayoutItem'], + label: 'string', + name: 'string', + objectType: 'string', + }, + }, + RecordTypeCompactLayoutMapping: { + type: 'RecordTypeCompactLayoutMapping', + props: { + available: 'boolean', + compactLayoutId: '?string', + compactLayoutName: 'string', + recordTypeId: 'string', + recordTypeName: 'string', + }, + }, + DescribePathAssistantsResult: { + type: 'DescribePathAssistantsResult', + props: { pathAssistants: ['DescribePathAssistant'] }, + }, + DescribePathAssistant: { + type: 'DescribePathAssistant', + props: { + active: 'boolean', + animationRule: ['?', 'DescribeAnimationRule'], + apiName: 'string', + label: 'string', + pathPicklistField: 'string', + picklistsForRecordType: ['?', 'PicklistForRecordType'], + recordTypeId: '?string', + steps: ['DescribePathAssistantStep'], + }, + }, + DescribePathAssistantStep: { + type: 'DescribePathAssistantStep', + props: { + closed: 'boolean', + converted: 'boolean', + fields: ['DescribePathAssistantField'], + info: '?string', + layoutSection: '?DescribeLayoutSection', + picklistLabel: 'string', + picklistValue: 'string', + won: 'boolean', + }, + }, + DescribePathAssistantField: { + type: 'DescribePathAssistantField', + props: { apiName: 'string', label: 'string', readOnly: 'boolean', required: 'boolean' }, + }, + DescribeAnimationRule: { + type: 'DescribeAnimationRule', + props: { + animationFrequency: 'string', + isActive: 'boolean', + recordTypeContext: 'string', + recordTypeId: '?string', + targetField: 'string', + targetFieldChangeToValues: 'string', + }, + }, + DescribeApprovalLayoutResult: { + type: 'DescribeApprovalLayoutResult', + props: { approvalLayouts: ['DescribeApprovalLayout'] }, + }, + DescribeApprovalLayout: { + type: 'DescribeApprovalLayout', + props: { id: 'string', label: 'string', layoutItems: ['DescribeLayoutItem'], name: 'string' }, + }, + DescribeLayoutResult: { + type: 'DescribeLayoutResult', + props: { + layouts: ['DescribeLayout'], + recordTypeMappings: ['RecordTypeMapping'], + recordTypeSelectorRequired: 'boolean', + }, + }, + DescribeLayout: { + type: 'DescribeLayout', + props: { + buttonLayoutSection: '?DescribeLayoutButtonSection', + detailLayoutSections: ['DescribeLayoutSection'], + editLayoutSections: ['DescribeLayoutSection'], + feedView: '?DescribeLayoutFeedView', + highlightsPanelLayoutSection: '?DescribeLayoutSection', + id: '?string', + quickActionList: '?DescribeQuickActionListResult', + relatedContent: '?RelatedContent', + relatedLists: ['RelatedList'], + saveOptions: ['DescribeLayoutSaveOption'], + }, + }, + DescribeQuickActionListResult: { + type: 'DescribeQuickActionListResult', + props: { quickActionListItems: ['DescribeQuickActionListItemResult'] }, + }, + DescribeQuickActionListItemResult: { + type: 'DescribeQuickActionListItemResult', + props: { + accessLevelRequired: '?string', + colors: ['DescribeColor'], + iconUrl: '?string', + icons: ['DescribeIcon'], + label: 'string', + miniIconUrl: 'string', + quickActionName: 'string', + targetSobjectType: '?string', + type: 'string', + }, + }, + DescribeLayoutFeedView: { type: 'DescribeLayoutFeedView', props: { feedFilters: ['DescribeLayoutFeedFilter'] } }, + DescribeLayoutFeedFilter: { + type: 'DescribeLayoutFeedFilter', + props: { label: 'string', name: 'string', type: 'string' }, + }, + DescribeLayoutSaveOption: { + type: 'DescribeLayoutSaveOption', + props: { + defaultValue: 'boolean', + isDisplayed: 'boolean', + label: 'string', + name: 'string', + restHeaderName: 'string', + soapHeaderName: 'string', + }, + }, + DescribeLayoutSection: { + type: 'DescribeLayoutSection', + props: { + collapsed: 'boolean', + columns: 'number', + heading: '?string', + layoutRows: ['DescribeLayoutRow'], + layoutSectionId: '?string', + parentLayoutId: 'string', + rows: 'number', + tabOrder: 'string', + useCollapsibleSection: 'boolean', + useHeading: 'boolean', + }, + }, + DescribeLayoutButtonSection: { + type: 'DescribeLayoutButtonSection', + props: { detailButtons: ['DescribeLayoutButton'] }, + }, + DescribeLayoutRow: { + type: 'DescribeLayoutRow', + props: { layoutItems: ['DescribeLayoutItem'], numItems: 'number' }, + }, + DescribeLayoutItem: { + type: 'DescribeLayoutItem', + props: { + editableForNew: 'boolean', + editableForUpdate: 'boolean', + label: '?string', + layoutComponents: ['DescribeLayoutComponent'], + placeholder: 'boolean', + required: 'boolean', + }, + }, + DescribeLayoutButton: { + type: 'DescribeLayoutButton', + props: { + behavior: '?string', + colors: ['DescribeColor'], + content: '?string', + contentSource: '?string', + custom: 'boolean', + encoding: '?string', + height: '?number', + icons: ['DescribeIcon'], + label: '?string', + menubar: '?boolean', + name: '?string', + overridden: 'boolean', + resizeable: '?boolean', + scrollbars: '?boolean', + showsLocation: '?boolean', + showsStatus: '?boolean', + toolbar: '?boolean', + url: '?string', + width: '?number', + windowPosition: '?string', + }, + }, + DescribeLayoutComponent: { + type: 'DescribeLayoutComponent', + props: { displayLines: 'number', tabOrder: 'number', type: 'string', value: '?string' }, + }, + FieldComponent: { type: 'FieldComponent', props: { field: 'Field' }, extends: 'DescribeLayoutComponent' }, + FieldLayoutComponent: { + type: 'FieldLayoutComponent', + props: { components: ['DescribeLayoutComponent'], fieldType: 'string' }, + extends: 'DescribeLayoutComponent', + }, + VisualforcePage: { + type: 'VisualforcePage', + props: { + showLabel: 'boolean', + showScrollbars: 'boolean', + suggestedHeight: 'string', + suggestedWidth: 'string', + url: 'string', + }, + extends: 'DescribeLayoutComponent', + }, + Canvas: { + type: 'Canvas', + props: { + displayLocation: 'string', + referenceId: 'string', + showLabel: 'boolean', + showScrollbars: 'boolean', + suggestedHeight: 'string', + suggestedWidth: 'string', + }, + extends: 'DescribeLayoutComponent', + }, + ReportChartComponent: { + type: 'ReportChartComponent', + props: { + cacheData: 'boolean', + contextFilterableField: 'string', + error: 'string', + hideOnError: 'boolean', + includeContext: 'boolean', + showTitle: 'boolean', + size: 'string', + }, + extends: 'DescribeLayoutComponent', + }, + AnalyticsCloudComponent: { + type: 'AnalyticsCloudComponent', + props: { + error: 'string', + filter: 'string', + height: 'string', + hideOnError: 'boolean', + showSharing: 'boolean', + showTitle: 'boolean', + width: 'string', + }, + extends: 'DescribeLayoutComponent', + }, + CustomLinkComponent: { + type: 'CustomLinkComponent', + props: { customLink: 'DescribeLayoutButton' }, + extends: 'DescribeLayoutComponent', + }, + NamedLayoutInfo: { type: 'NamedLayoutInfo', props: { name: 'string' } }, + RecordTypeInfo: { + type: 'RecordTypeInfo', + props: { + active: 'boolean', + available: 'boolean', + defaultRecordTypeMapping: 'boolean', + developerName: 'string', + master: 'boolean', + name: 'string', + recordTypeId: '?string', + }, + }, + RecordTypeMapping: { + type: 'RecordTypeMapping', + props: { + active: 'boolean', + available: 'boolean', + defaultRecordTypeMapping: 'boolean', + developerName: 'string', + layoutId: 'string', + master: 'boolean', + name: 'string', + picklistsForRecordType: ['?', 'PicklistForRecordType'], + recordTypeId: '?string', + }, + }, + PicklistForRecordType: { + type: 'PicklistForRecordType', + props: { picklistName: 'string', picklistValues: ['?', 'PicklistEntry'] }, + }, + RelatedContent: { type: 'RelatedContent', props: { relatedContentItems: ['DescribeRelatedContentItem'] } }, + DescribeRelatedContentItem: { + type: 'DescribeRelatedContentItem', + props: { describeLayoutItem: 'DescribeLayoutItem' }, + }, + RelatedList: { + type: 'RelatedList', + props: { + accessLevelRequiredForCreate: '?string', + buttons: ['?', 'DescribeLayoutButton'], + columns: ['RelatedListColumn'], + custom: 'boolean', + field: '?string', + label: 'string', + limitRows: 'number', + name: 'string', + sobject: '?string', + sort: ['RelatedListSort'], + }, + }, + RelatedListColumn: { + type: 'RelatedListColumn', + props: { + field: '?string', + fieldApiName: 'string', + format: '?string', + label: 'string', + lookupId: '?string', + name: 'string', + sortable: 'boolean', + }, + }, + RelatedListSort: { type: 'RelatedListSort', props: { ascending: 'boolean', column: 'string' } }, + EmailFileAttachment: { + type: 'EmailFileAttachment', + props: { body: '?string', contentType: '?string', fileName: 'string', id: '?string', inline: '?boolean' }, + }, + Email: { + type: 'Email', + props: { + bccSender: '?boolean', + emailPriority: '?string', + replyTo: '?string', + saveAsActivity: '?boolean', + senderDisplayName: '?string', + subject: '?string', + useSignature: '?boolean', + }, + }, + MassEmailMessage: { + type: 'MassEmailMessage', + props: { description: '?string', targetObjectIds: '?string', templateId: 'string', whatIds: '?string' }, + extends: 'Email', + }, + SingleEmailMessage: { + type: 'SingleEmailMessage', + props: { + bccAddresses: '?string', + ccAddresses: '?string', + charset: '?string', + documentAttachments: ['string'], + entityAttachments: ['string'], + fileAttachments: ['EmailFileAttachment'], + htmlBody: '?string', + inReplyTo: '?string', + optOutPolicy: '?string', + orgWideEmailAddressId: '?string', + plainTextBody: '?string', + references: '?string', + targetObjectId: '?string', + templateId: '?string', + templateName: '?string', + toAddresses: '?string', + treatBodiesAsTemplate: '?boolean', + treatTargetObjectAsRecipient: '?boolean', + whatId: '?string', + }, + extends: 'Email', + }, + SendEmailResult: { type: 'SendEmailResult', props: { errors: ['SendEmailError'], success: 'boolean' } }, + ListViewColumn: { + type: 'ListViewColumn', + props: { + ascendingLabel: '?string', + descendingLabel: '?string', + fieldNameOrPath: 'string', + hidden: 'boolean', + label: 'string', + searchable: 'boolean', + selectListItem: 'string', + sortDirection: '?string', + sortIndex: '?number', + sortable: 'boolean', + type: 'string', + }, + }, + ListViewOrderBy: { + type: 'ListViewOrderBy', + props: { fieldNameOrPath: 'string', nullsPosition: '?string', sortDirection: '?string' }, + }, + DescribeSoqlListView: { + type: 'DescribeSoqlListView', + props: { + columns: ['ListViewColumn'], + id: 'string', + orderBy: ['ListViewOrderBy'], + query: 'string', + relatedEntityId: '?string', + scope: '?string', + scopeEntityId: '?string', + sobjectType: 'string', + whereCondition: '?SoqlWhereCondition', + }, + }, + DescribeSoqlListViewsRequest: { + type: 'DescribeSoqlListViewsRequest', + props: { listViewParams: ['DescribeSoqlListViewParams'] }, + }, + DescribeSoqlListViewParams: { + type: 'DescribeSoqlListViewParams', + props: { developerNameOrId: 'string', sobjectType: '?string' }, + }, + DescribeSoqlListViewResult: { + type: 'DescribeSoqlListViewResult', + props: { describeSoqlListViews: ['DescribeSoqlListView'] }, + }, + ExecuteListViewRequest: { + type: 'ExecuteListViewRequest', + props: { + developerNameOrId: 'string', + limit: '?number', + offset: '?number', + orderBy: ['ListViewOrderBy'], + sobjectType: 'string', + }, + }, + ExecuteListViewResult: { + type: 'ExecuteListViewResult', + props: { + columns: ['ListViewColumn'], + developerName: 'string', + done: 'boolean', + id: 'string', + label: 'string', + records: ['ListViewRecord'], + size: 'number', + }, + }, + ListViewRecord: { type: 'ListViewRecord', props: { columns: ['ListViewRecordColumn'] } }, + ListViewRecordColumn: { type: 'ListViewRecordColumn', props: { fieldNameOrPath: 'string', value: '?string' } }, + SoqlWhereCondition: { type: 'SoqlWhereCondition', props: {} }, + SoqlCondition: { + type: 'SoqlCondition', + props: { field: 'string', operator: 'string', values: ['string'] }, + extends: 'SoqlWhereCondition', + }, + SoqlNotCondition: { + type: 'SoqlNotCondition', + props: { condition: 'SoqlWhereCondition' }, + extends: 'SoqlWhereCondition', + }, + SoqlConditionGroup: { + type: 'SoqlConditionGroup', + props: { conditions: ['SoqlWhereCondition'], conjunction: 'string' }, + extends: 'SoqlWhereCondition', + }, + SoqlSubQueryCondition: { + type: 'SoqlSubQueryCondition', + props: { field: 'string', operator: 'string', subQuery: 'string' }, + extends: 'SoqlWhereCondition', + }, + DescribeSearchLayoutResult: { + type: 'DescribeSearchLayoutResult', + props: { + errorMsg: '?string', + label: '?string', + limitRows: '?number', + objectType: 'string', + searchColumns: ['?', 'DescribeColumn'], + }, + }, + DescribeColumn: { + type: 'DescribeColumn', + props: { field: 'string', format: '?string', label: 'string', name: 'string' }, + }, + DescribeSearchScopeOrderResult: { + type: 'DescribeSearchScopeOrderResult', + props: { keyPrefix: 'string', name: 'string' }, + }, + DescribeSearchableEntityResult: { + type: 'DescribeSearchableEntityResult', + props: { label: 'string', name: 'string', pluralLabel: 'string' }, + }, + DescribeTabSetResult: { + type: 'DescribeTabSetResult', + props: { + description: 'string', + label: 'string', + logoUrl: 'string', + namespace: '?string', + selected: 'boolean', + tabSetId: 'string', + tabs: ['DescribeTab'], + }, + }, + DescribeTab: { + type: 'DescribeTab', + props: { + colors: ['DescribeColor'], + custom: 'boolean', + iconUrl: 'string', + icons: ['DescribeIcon'], + label: 'string', + miniIconUrl: 'string', + name: 'string', + sobjectName: '?string', + url: 'string', + }, + }, + DescribeColor: { type: 'DescribeColor', props: { color: 'string', context: 'string', theme: 'string' } }, + DescribeIcon: { + type: 'DescribeIcon', + props: { contentType: 'string', height: '?number', theme: 'string', url: 'string', width: '?number' }, + }, + ActionOverride: { + type: 'ActionOverride', + props: { formFactor: 'string', isAvailableInTouch: 'boolean', name: 'string', pageId: 'string', url: '?string' }, + }, + RenderEmailTemplateRequest: { + type: 'RenderEmailTemplateRequest', + props: { escapeHtmlInMergeFields: '?boolean', templateBodies: 'string', whatId: '?string', whoId: '?string' }, + }, + RenderEmailTemplateBodyResult: { + type: 'RenderEmailTemplateBodyResult', + props: { errors: ['RenderEmailTemplateError'], mergedBody: '?string', success: 'boolean' }, + }, + RenderEmailTemplateResult: { + type: 'RenderEmailTemplateResult', + props: { bodyResults: '?RenderEmailTemplateBodyResult', errors: ['Error'], success: 'boolean' }, + }, + RenderStoredEmailTemplateRequest: { + type: 'RenderStoredEmailTemplateRequest', + props: { + attachmentRetrievalOption: '?string', + templateId: 'string', + updateTemplateUsage: '?boolean', + whatId: '?string', + whoId: '?string', + }, + }, + RenderStoredEmailTemplateResult: { + type: 'RenderStoredEmailTemplateResult', + props: { errors: ['Error'], renderedEmail: '?SingleEmailMessage', success: 'boolean' }, + }, + LimitInfo: { type: 'LimitInfo', props: { current: 'number', limit: 'number', type: 'string' } }, + OwnerChangeOption: { type: 'OwnerChangeOption', props: { type: 'string', execute: 'boolean' } }, + ApiFault: { + type: 'ApiFault', + props: { + exceptionCode: 'string', + exceptionMessage: 'string', + extendedErrorDetails: ['?', 'ExtendedErrorDetails'], + }, + }, + ApiQueryFault: { type: 'ApiQueryFault', props: { row: 'number', column: 'number' }, extends: 'ApiFault' }, + LoginFault: { type: 'LoginFault', props: {}, extends: 'ApiFault' }, + InvalidQueryLocatorFault: { type: 'InvalidQueryLocatorFault', props: {}, extends: 'ApiFault' }, + InvalidNewPasswordFault: { type: 'InvalidNewPasswordFault', props: {}, extends: 'ApiFault' }, + InvalidOldPasswordFault: { type: 'InvalidOldPasswordFault', props: {}, extends: 'ApiFault' }, + InvalidIdFault: { type: 'InvalidIdFault', props: {}, extends: 'ApiFault' }, + UnexpectedErrorFault: { type: 'UnexpectedErrorFault', props: {}, extends: 'ApiFault' }, + InvalidFieldFault: { type: 'InvalidFieldFault', props: {}, extends: 'ApiQueryFault' }, + InvalidSObjectFault: { type: 'InvalidSObjectFault', props: {}, extends: 'ApiQueryFault' }, + MalformedQueryFault: { type: 'MalformedQueryFault', props: {}, extends: 'ApiQueryFault' }, + MalformedSearchFault: { type: 'MalformedSearchFault', props: {}, extends: 'ApiQueryFault' }, + }; + n8.ApiSchemas = oht; +}); +var m1e = d((Rh) => { + 'use strict'; + var wd = Ce(), + c1e = ge(), + sht = Ur(), + o1e = $r(), + s1e = Bt(), + d1e = Br(), + lht = Qt(), + l1e = Vr(), + uht = Ve(); + kr(); + Zt(); + c1e(Rh, '__esModule', { value: !0 }); + Rh.default = Rh.SoapApi = void 0; + var f1e = wd(Ye()), + pht = wd(Ve()), + cht = wd(Qt()), + dht = wd(Ro()), + _d = wd(Da()), + fht = wd(jn()), + mht = $a(), + hht = wd(eP()), + yi = a1e(); + function u1e(e, t) { + var r = uht(e); + if (l1e) { + var n = l1e(e); + t && + (n = lht(n).call(n, function (a) { + return d1e(e, a).enumerable; + })), + r.push.apply(r, n); + } + return r; + } + function p1e(e) { + for (var t = 1; t < arguments.length; t++) { + var r = arguments[t] != null ? arguments[t] : {}; + if (t % 2) { + var n; + s1e((n = u1e(Object(r), !0))).call(n, function (o) { + (0, f1e.default)(e, o, r[o]); + }); + } else if (o1e) sht(e, o1e(r)); + else { + var a; + s1e((a = u1e(Object(r)))).call(a, function (o) { + c1e(e, o, d1e(r, o)); + }); + } + } + return e; + } + function nP(e) { + var t; + return (0, fht.default)((t = (0, _d.default)(e) ? e : [e])).call(t, (r) => { + var n; + let { type: a, attributes: o } = r, + s = (0, dht.default)(r, ['type', 'attributes']), + l = a || o?.type; + if (!l) throw new Error('Given record is not including sObject type information'); + let u = (0, cht.default)((n = (0, pht.default)(s))).call(n, (p) => r[p] === null); + for (let p of u) delete s[p]; + return u.length > 0 ? p1e({ type: l, fieldsToNull: u }, s) : p1e({ type: l }, s); + }); + } + var Oy = class { + constructor(t) { + (0, f1e.default)(this, '_conn', void 0), (this._conn = t); + } + async _invoke(t, r, n) { + return ( + await new hht.default(this._conn, { + xmlns: 'urn:partner.soap.sforce.com', + endpointUrl: `${this._conn.instanceUrl}/services/Soap/u/${this._conn.version}`, + }).invoke(t, r, n ? { result: n } : void 0, yi.ApiSchemas) + ).result; + } + async convertLead(t) { + let r = (0, _d.default)(t) ? [yi.ApiSchemas.LeadConvertResult] : yi.ApiSchemas.LeadConvertResult; + return this._invoke('convertLead', { leadConverts: t }, r); + } + async merge(t) { + let r = (0, _d.default)(t) ? [yi.ApiSchemas.MergeResult] : yi.ApiSchemas.MergeResult; + return this._invoke('merge', { mergeRequests: t }, r); + } + async emptyRecycleBin(t) { + return this._invoke('emptyRecycleBin', { ids: t }, [yi.ApiSchemas.EmptyRecycleBinResult]); + } + async describeTabs() { + return this._invoke('describeTabs', {}, [yi.ApiSchemas.DescribeTabSetResult]); + } + async getServerTimestamp() { + return this._invoke('getServerTimestamp', {}, yi.ApiSchemas.GetServerTimestampResult); + } + async getUserInfo() { + return this._invoke('getUserInfo', {}, yi.ApiSchemas.GetUserInfoResult); + } + setPassword(t, r) { + return this._invoke('setPassword', { userId: t, password: r }, 'string'); + } + resetPassword(t) { + return this._invoke('resetPassword', { userId: t }, yi.ApiSchemas.ResetPasswordResult); + } + create(t) { + let r = (0, _d.default)(t) ? [yi.ApiSchemas.SaveResult] : yi.ApiSchemas.SaveResult, + n = { + '@xmlns': 'urn:partner.soap.sforce.com', + '@xmlns:ns1': 'sobject.partner.soap.sforce.com', + 'ns1:sObjects': nP(t), + }; + return this._invoke('create', n, r); + } + update(t) { + let r = (0, _d.default)(t) ? [yi.ApiSchemas.SaveResult] : yi.ApiSchemas.SaveResult, + n = { + '@xmlns': 'urn:partner.soap.sforce.com', + '@xmlns:ns1': 'sobject.partner.soap.sforce.com', + 'ns1:sObjects': nP(t), + }; + return this._invoke('update', n, r); + } + upsert(t, r) { + let n = (0, _d.default)(r) ? [yi.ApiSchemas.UpsertResult] : yi.ApiSchemas.UpsertResult, + a = { + '@xmlns': 'urn:partner.soap.sforce.com', + '@xmlns:ns1': 'sobject.partner.soap.sforce.com', + 'ns1:externalIDFieldName': t, + 'ns1:sObjects': nP(r), + }; + return this._invoke('upsert', a, n); + } + delete(t) { + let r = (0, _d.default)(t) ? [yi.ApiSchemas.DeleteResult] : yi.ApiSchemas.DeleteResult, + n = { '@xmlns': 'urn:partner.soap.sforce.com', '@xmlns:ns1': 'sobject.partner.soap.sforce.com', 'ns1:ids': t }; + return this._invoke('delete', n, r); + } + }; + Rh.SoapApi = Oy; + (0, mht.registerModule)('soap', (e) => new Oy(e)); + var ght = Oy; + Rh.default = ght; +}); +var jh = d((nJt, h1e) => { + h1e.exports = { + VERSION: '1.4.0', + BAYEUX_VERSION: '1.0', + ID_LENGTH: 160, + JSONP_CALLBACK: 'jsonpcallback', + CONNECTION_TYPES: [ + 'long-polling', + 'cross-origin-long-polling', + 'callback-polling', + 'websocket', + 'eventsource', + 'in-process', + ], + MANDATORY_CONNECTION_TYPES: ['long-polling', 'callback-polling', 'in-process'], + }; +}); +var Dh = d((aJt, g1e) => { + 'use strict'; + g1e.exports = function (e) { + return JSON.stringify(e, function (t, r) { + return this[t] instanceof Array ? this[t] : r; + }); + }; +}); +var Yl = d((oJt, y1e) => { + 'use strict'; + var vht = Dh(), + Nh = { + LOG_LEVELS: { fatal: 4, error: 3, warn: 2, info: 1, debug: 0 }, + writeLog: function (e, t) { + var r = Nh.logger || (Nh.wrapper || Nh).logger; + if (r) { + var n = Array.prototype.slice.apply(e), + a = '[Faye', + o = this.className, + s = n.shift().replace(/\?/g, function () { + try { + return vht(n.shift()); + } catch { + return '[Object]'; + } + }); + o && (a += '.' + o), + (a += '] '), + typeof r[t] == 'function' ? r[t](a + s) : typeof r == 'function' && r(a + s); + } + }, + }; + for (v1e in Nh.LOG_LEVELS) + (function (e) { + Nh[e] = function () { + this.writeLog(arguments, e); + }; + })(v1e); + var v1e; + y1e.exports = Nh; +}); +var E1e = d((sJt, S1e) => { + 'use strict'; + var a8, + yht = typeof setImmediate == 'function'; + S1e.exports = _1e; + function _1e(e) { + js.length || (w1e(), (aP = !0)), (js[js.length] = e); + } + var js = [], + aP = !1, + Rs = 0, + bht = 1024; + function b1e() { + for (; Rs < js.length; ) { + var e = Rs; + if (((Rs = Rs + 1), js[e].call(), Rs > bht)) { + for (var t = 0, r = js.length - Rs; t < r; t++) js[t] = js[t + Rs]; + (js.length -= Rs), (Rs = 0); + } + } + (js.length = 0), (Rs = 0), (aP = !1); + } + _1e.requestFlush = w1e; + function w1e() { + var e = process.domain; + e && (a8 || (a8 = require('domain')), (a8.active = process.domain = null)), + aP && yht ? setImmediate(b1e) : process.nextTick(b1e), + e && (a8.active = process.domain = e); + } +}); +var Ty = d((lJt, T1e) => { + 'use strict'; + var x1e = E1e(), + oP = []; + T1e.exports = _ht; + function _ht(e) { + var t; + oP.length ? (t = oP.pop()) : (t = new O1e()), (t.task = e), (t.domain = process.domain), x1e(t); + } + function O1e() { + (this.task = null), (this.domain = null); + } + O1e.prototype.call = function () { + this.domain && this.domain.enter(); + var e = !0; + try { + this.task.call(), (e = !1), this.domain && this.domain.exit(); + } finally { + e && x1e.requestFlush(), (this.task = null), (this.domain = null), oP.push(this); + } + }; +}); +var ai = d((uJt, C1e) => { + 'use strict'; + var wht = Array.prototype.forEach, + Sht = Object.prototype.hasOwnProperty; + C1e.exports = function (e) { + return ( + wht.call(arguments, function (t, r) { + if (r !== 0) for (var n in t) Sht.call(t, n) && (e[n] = t[n]); + }), + e + ); + }; +}); +var oi = d((pJt, k1e) => { + 'use strict'; + var Eht = ai(); + k1e.exports = function (e, t) { + typeof e != 'function' && ((t = e), (e = Object)); + var r = function () { + return this.initialize ? this.initialize.apply(this, arguments) || this : this; + }, + n = function () {}; + return (n.prototype = e.prototype), (r.prototype = new n()), Eht(r.prototype, t), r; + }; +}); +var qh = d((cJt, D1e) => { + 'use strict'; + var xht = Ty(), + A1e = -1, + Oht = 0, + Tht = 1, + Pi = function (e) { + (this._state = A1e), (this._value = null), (this._defer = []), I1e(this, e); + }; + Pi.prototype.then = function (e, t) { + var r = new Pi(), + n = { promise: r, onFulfilled: e, onRejected: t }; + return this._state === A1e ? this._defer.push(n) : P1e(this, n), r; + }; + Pi.prototype.catch = function (e) { + return this.then(null, e); + }; + var I1e = function (e, t) { + if (typeof t == 'function') { + var r = 0, + n = function (o) { + r++ === 0 && sP(e, o); + }, + a = function (o) { + r++ === 0 && Cy(e, o); + }; + try { + t(n, a); + } catch (o) { + a(o); + } + } + }, + P1e = function (e, t) { + var r = e._state, + n = e._value, + a = t.promise, + o = [t.onFulfilled, t.onRejected][r], + s = [sP, Cy][r]; + if (typeof o != 'function') return s(a, n); + xht(function () { + try { + sP(a, o(n)); + } catch (l) { + Cy(a, l); + } + }); + }, + sP = function (e, t) { + if (e === t) return Cy(e, new TypeError('Recursive promise chain detected')); + var r; + try { + r = R1e(t); + } catch (n) { + return Cy(e, n); + } + if (!r) return Cht(e, t); + I1e(e, function (n, a) { + r.call(t, n, a); + }); + }, + R1e = function (e) { + var t = typeof e, + r = (t === 'object' || t === 'function') && e && e.then; + return typeof r == 'function' ? r : null; + }, + Cht = function (e, t) { + j1e(e, Oht, t); + }, + Cy = function (e, t) { + j1e(e, Tht, t); + }, + j1e = function (e, t, r) { + var n = e._defer, + a = 0; + if (((e._state = t), (e._value = r), (e._defer = null), n.length !== 0)) for (; a < n.length; ) P1e(e, n[a++]); + }; + Pi.resolve = function (e) { + try { + if (R1e(e)) return e; + } catch (t) { + return Pi.reject(t); + } + return new Pi(function (t, r) { + t(e); + }); + }; + Pi.reject = function (e) { + return new Pi(function (t, r) { + r(e); + }); + }; + Pi.all = function (e) { + return new Pi(function (t, r) { + var n = [], + a = e.length, + o; + if (a === 0) return t(n); + var s = function (l, u) { + Pi.resolve(l).then(function (p) { + (n[u] = p), --a === 0 && t(n); + }, r); + }; + for (o = 0; o < a; o++) s(e[o], o); + }); + }; + Pi.race = function (e) { + return new Pi(function (t, r) { + for (var n = 0, a = e.length; n < a; n++) Pi.resolve(e[n]).then(t, r); + }); + }; + Pi.deferred = function () { + var e = {}; + return ( + (e.promise = new Pi(function (t, r) { + (e.resolve = t), (e.reject = r); + })), + e + ); + }; + D1e.exports = Pi; +}); +var Fh = d((dJt, N1e) => { + 'use strict'; + N1e.exports = { + commonElement: function (e, t) { + for (var r = 0, n = e.length; r < n; r++) if (this.indexOf(t, e[r]) !== -1) return e[r]; + return null; + }, + indexOf: function (e, t) { + if (e.indexOf) return e.indexOf(t); + for (var r = 0, n = e.length; r < n; r++) if (e[r] === t) return r; + return -1; + }, + map: function (e, t, r) { + if (e.map) return e.map(t, r); + var n = []; + if (e instanceof Array) for (var a = 0, o = e.length; a < o; a++) n.push(t.call(r || null, e[a], a)); + else for (var s in e) e.hasOwnProperty(s) && n.push(t.call(r || null, s, e[s])); + return n; + }, + filter: function (e, t, r) { + if (e.filter) return e.filter(t, r); + for (var n = [], a = 0, o = e.length; a < o; a++) t.call(r || null, e[a], a) && n.push(e[a]); + return n; + }, + asyncEach: function (e, t, r, n) { + var a = e.length, + o = -1, + s = 0, + l = !1, + u = function () { + if (((s -= 1), (o += 1), o === a)) return r && r.call(n); + t(e[o], c); + }, + p = function () { + if (!l) { + for (l = !0; s > 0; ) u(); + l = !1; + } + }, + c = function () { + (s += 1), p(); + }; + c(); + }, + }; +}); +var lP = d((fJt, q1e) => { + 'use strict'; + q1e.exports = {}; +}); +var uP = d((mJt, F1e) => { + 'use strict'; + var kht = Fh(); + F1e.exports = function (e, t) { + for (var r in e) if (kht.indexOf(t, r) < 0) throw new Error('Unrecognized option: ' + r); + }; +}); +var Lh = d((hJt, L1e) => { + 'use strict'; + var Aht = qh(); + L1e.exports = { + then: function (e, t) { + var r = this; + return ( + this._promise || + (this._promise = new Aht(function (n, a) { + (r._resolve = n), (r._reject = a); + })), + arguments.length === 0 ? this._promise : this._promise.then(e, t) + ); + }, + callback: function (e, t) { + return this.then(function (r) { + e.call(t, r); + }); + }, + errback: function (e, t) { + return this.then(null, function (r) { + e.call(t, r); + }); + }, + timeout: function (e, t) { + this.then(); + var r = this; + this._timer = global.setTimeout(function () { + r._reject(t); + }, e * 1e3); + }, + setDeferredStatus: function (e, t) { + this._timer && global.clearTimeout(this._timer), + this.then(), + e === 'succeeded' ? this._resolve(t) : e === 'failed' ? this._reject(t) : delete this._promise; + }, + }; +}); +var U1e = d((gJt, M1e) => { + var ky = + typeof Array.isArray == 'function' + ? Array.isArray + : function (e) { + return Object.prototype.toString.call(e) === '[object Array]'; + }; + function Iht(e, t) { + if (e.indexOf) return e.indexOf(t); + for (var r = 0; r < e.length; r++) if (t === e[r]) return r; + return -1; + } + function Ql() {} + M1e.exports = Ql; + Ql.prototype.emit = function (e) { + if ( + e === 'error' && + (!this._events || !this._events.error || (ky(this._events.error) && !this._events.error.length)) + ) + throw arguments[1] instanceof Error ? arguments[1] : new Error("Uncaught, unspecified 'error' event."); + if (!this._events) return !1; + var t = this._events[e]; + if (!t) return !1; + if (typeof t == 'function') { + switch (arguments.length) { + case 1: + t.call(this); + break; + case 2: + t.call(this, arguments[1]); + break; + case 3: + t.call(this, arguments[1], arguments[2]); + break; + default: + var r = Array.prototype.slice.call(arguments, 1); + t.apply(this, r); + } + return !0; + } else if (ky(t)) { + for (var r = Array.prototype.slice.call(arguments, 1), n = t.slice(), a = 0, o = n.length; a < o; a++) + n[a].apply(this, r); + return !0; + } else return !1; + }; + Ql.prototype.addListener = function (e, t) { + if (typeof t != 'function') throw new Error('addListener only takes instances of Function'); + return ( + this._events || (this._events = {}), + this.emit('newListener', e, t), + this._events[e] + ? ky(this._events[e]) + ? this._events[e].push(t) + : (this._events[e] = [this._events[e], t]) + : (this._events[e] = t), + this + ); + }; + Ql.prototype.on = Ql.prototype.addListener; + Ql.prototype.once = function (e, t) { + var r = this; + return ( + r.on(e, function n() { + r.removeListener(e, n), t.apply(this, arguments); + }), + this + ); + }; + Ql.prototype.removeListener = function (e, t) { + if (typeof t != 'function') throw new Error('removeListener only takes instances of Function'); + if (!this._events || !this._events[e]) return this; + var r = this._events[e]; + if (ky(r)) { + var n = Iht(r, t); + if (n < 0) return this; + r.splice(n, 1), r.length == 0 && delete this._events[e]; + } else this._events[e] === t && delete this._events[e]; + return this; + }; + Ql.prototype.removeAllListeners = function (e) { + return arguments.length === 0 + ? ((this._events = {}), this) + : (e && this._events && this._events[e] && (this._events[e] = null), this); + }; + Ql.prototype.listeners = function (e) { + return ( + this._events || (this._events = {}), + this._events[e] || (this._events[e] = []), + ky(this._events[e]) || (this._events[e] = [this._events[e]]), + this._events[e] + ); + }; +}); +var Mh = d((vJt, $1e) => { + 'use strict'; + var Pht = ai(), + Rht = U1e(), + o8 = { + countListeners: function (e) { + return this.listeners(e).length; + }, + bind: function (e, t, r) { + var n = Array.prototype.slice, + a = function () { + t.apply(r, n.call(arguments)); + }; + return (this._listeners = this._listeners || []), this._listeners.push([e, t, r, a]), this.on(e, a); + }, + unbind: function (e, t, r) { + this._listeners = this._listeners || []; + for (var n = this._listeners.length, a; n--; ) + (a = this._listeners[n]), + a[0] === e && + ((t && (a[1] !== t || a[2] !== r)) || (this._listeners.splice(n, 1), this.removeListener(e, a[3]))); + }, + }; + Pht(o8, Rht.prototype); + o8.trigger = o8.emit; + $1e.exports = o8; +}); +var s8 = d((yJt, B1e) => { + 'use strict'; + B1e.exports = { + CHANNEL_NAME: + /^\/(((([a-z]|[A-Z])|[0-9])|(\-|\_|\!|\~|\(|\)|\$|\@)))+(\/(((([a-z]|[A-Z])|[0-9])|(\-|\_|\!|\~|\(|\)|\$|\@)))+)*$/, + CHANNEL_PATTERN: /^(\/(((([a-z]|[A-Z])|[0-9])|(\-|\_|\!|\~|\(|\)|\$|\@)))+)*\/\*{1,2}$/, + ERROR: + /^([0-9][0-9][0-9]:(((([a-z]|[A-Z])|[0-9])|(\-|\_|\!|\~|\(|\)|\$|\@)| |\/|\*|\.))*(,(((([a-z]|[A-Z])|[0-9])|(\-|\_|\!|\~|\(|\)|\$|\@)| |\/|\*|\.))*)*:(((([a-z]|[A-Z])|[0-9])|(\-|\_|\!|\~|\(|\)|\$|\@)| |\/|\*|\.))*|[0-9][0-9][0-9]::(((([a-z]|[A-Z])|[0-9])|(\-|\_|\!|\~|\(|\)|\$|\@)| |\/|\*|\.))*)$/, + VERSION: /^([0-9])+(\.(([a-z]|[A-Z])|[0-9])(((([a-z]|[A-Z])|[0-9])|\-|\_))*)*$/, + }; +}); +var Iy = d((bJt, G1e) => { + 'use strict'; + var z1e = oi(), + H1e = ai(), + jht = Mh(), + V1e = s8(), + Ay = z1e({ + initialize: function (e) { + this.id = this.name = e; + }, + push: function (e) { + this.trigger('message', e); + }, + isUnused: function () { + return this.countListeners('message') === 0; + }, + }); + H1e(Ay.prototype, jht); + H1e(Ay, { + HANDSHAKE: '/meta/handshake', + CONNECT: '/meta/connect', + SUBSCRIBE: '/meta/subscribe', + UNSUBSCRIBE: '/meta/unsubscribe', + DISCONNECT: '/meta/disconnect', + META: 'meta', + SERVICE: 'service', + expand: function (e) { + var t = this.parse(e), + r = ['/**', e], + n = t.slice(); + (n[n.length - 1] = '*'), r.push(this.unparse(n)); + for (var a = 1, o = t.length; a < o; a++) (n = t.slice(0, a)), n.push('**'), r.push(this.unparse(n)); + return r; + }, + isValid: function (e) { + return V1e.CHANNEL_NAME.test(e) || V1e.CHANNEL_PATTERN.test(e); + }, + parse: function (e) { + return this.isValid(e) ? e.split('/').slice(1) : null; + }, + unparse: function (e) { + return '/' + e.join('/'); + }, + isMeta: function (e) { + var t = this.parse(e); + return t ? t[0] === this.META : null; + }, + isService: function (e) { + var t = this.parse(e); + return t ? t[0] === this.SERVICE : null; + }, + isSubscribable: function (e) { + return this.isValid(e) ? !this.isMeta(e) && !this.isService(e) : null; + }, + Set: z1e({ + initialize: function () { + this._channels = {}; + }, + getKeys: function () { + var e = []; + for (var t in this._channels) e.push(t); + return e; + }, + remove: function (e) { + delete this._channels[e]; + }, + hasSubscription: function (e) { + return this._channels.hasOwnProperty(e); + }, + subscribe: function (e, t) { + for (var r, n = 0, a = e.length; n < a; n++) { + r = e[n]; + var o = (this._channels[r] = this._channels[r] || new Ay(r)); + o.bind('message', t); + } + }, + unsubscribe: function (e, t) { + var r = this._channels[e]; + return r ? (r.unbind('message', t), r.isUnused() ? (this.remove(e), !0) : !1) : !1; + }, + distributeMessage: function (e) { + for (var t = Ay.expand(e.channel), r = 0, n = t.length; r < n; r++) { + var a = this._channels[t[r]]; + a && a.trigger('message', e); + } + }, + }), + }); + G1e.exports = Ay; +}); +var Py = d((_Jt, W1e) => { + 'use strict'; + W1e.exports = { + isURI: function (e) { + return e && e.protocol && e.host && e.path; + }, + isSameOrigin: function (e) { + return e.protocol === location.protocol && e.hostname === location.hostname && e.port === location.port; + }, + parse: function (e) { + if (typeof e != 'string') return e; + var t = {}, + r, + n, + a, + o, + s, + l, + u = function (p, c) { + (e = e.replace(c, function (f) { + return (t[p] = f), ''; + })), + (t[p] = t[p] || ''); + }; + for ( + u('protocol', /^[a-z]+\:/i), + u('host', /^\/\/[^\/\?#]+/), + !/^\//.test(e) && !t.host && (e = location.pathname.replace(/[^\/]*$/, '') + e), + u('pathname', /^[^\?#]*/), + u('search', /^\?[^#]*/), + u('hash', /^#.*/), + t.protocol = t.protocol || location.protocol, + t.host + ? ((t.host = t.host.substr(2)), + /@/.test(t.host) && ((t.auth = t.host.split('@')[0]), (t.host = t.host.split('@')[1])), + (r = t.host.match(/^\[([^\]]+)\]|^[^:]+/)), + (t.hostname = r[1] || r[0]), + (t.port = (t.host.match(/:(\d+)$/) || [])[1] || '')) + : ((t.host = location.host), (t.hostname = location.hostname), (t.port = location.port)), + t.pathname = t.pathname || '/', + t.path = t.pathname + t.search, + n = t.search.replace(/^\?/, ''), + a = n ? n.split('&') : [], + l = {}, + o = 0, + s = a.length; + o < s; + o++ + ) + (r = a[o].split('=')), (l[decodeURIComponent(r[0] || '')] = decodeURIComponent(r[1] || '')); + return (t.query = l), (t.href = this.stringify(t)), t; + }, + stringify: function (e) { + var t = e.auth ? e.auth + '@' : '', + r = e.protocol + '//' + t + e.host; + return (r += e.pathname + this.queryString(e.query) + (e.hash || '')), r; + }, + queryString: function (e) { + var t = []; + for (var r in e) e.hasOwnProperty(r) && t.push(encodeURIComponent(r) + '=' + encodeURIComponent(e[r])); + return t.length === 0 ? '' : '?' + t.join('&'); + }, + }; +}); +var r0e = d((wJt, t0e) => { + 'use strict'; + var X1e = '-', + Dht = /^xn--/, + Nht = /[^\0-\x7E]/, + qht = /[\x2E\u3002\uFF0E\uFF61]/g, + Fht = { + overflow: 'Overflow: input needs wider integers to process', + 'not-basic': 'Illegal input >= 0x80 (not a basic code point)', + 'invalid-input': 'Invalid input', + }, + pP = 36 - 1, + Ds = Math.floor, + cP = String.fromCharCode; + function Sd(e) { + throw new RangeError(Fht[e]); + } + function Lht(e, t) { + let r = [], + n = e.length; + for (; n--; ) r[n] = t(e[n]); + return r; + } + function J1e(e, t) { + let r = e.split('@'), + n = ''; + r.length > 1 && ((n = r[0] + '@'), (e = r[1])), (e = e.replace(qht, '.')); + let a = e.split('.'), + o = Lht(a, t).join('.'); + return n + o; + } + function Y1e(e) { + let t = [], + r = 0, + n = e.length; + for (; r < n; ) { + let a = e.charCodeAt(r++); + if (a >= 55296 && a <= 56319 && r < n) { + let o = e.charCodeAt(r++); + (o & 64512) == 56320 ? t.push(((a & 1023) << 10) + (o & 1023) + 65536) : (t.push(a), r--); + } else t.push(a); + } + return t; + } + var Mht = (e) => String.fromCodePoint(...e), + Uht = function (e) { + return e - 48 < 10 ? e - 22 : e - 65 < 26 ? e - 65 : e - 97 < 26 ? e - 97 : 36; + }, + K1e = function (e, t) { + return e + 22 + 75 * (e < 26) - ((t != 0) << 5); + }, + Q1e = function (e, t, r) { + let n = 0; + for (e = r ? Ds(e / 700) : e >> 1, e += Ds(e / t); e > (pP * 26) >> 1; n += 36) e = Ds(e / pP); + return Ds(n + ((pP + 1) * e) / (e + 38)); + }, + Z1e = function (e) { + let t = [], + r = e.length, + n = 0, + a = 128, + o = 72, + s = e.lastIndexOf(X1e); + s < 0 && (s = 0); + for (let l = 0; l < s; ++l) e.charCodeAt(l) >= 128 && Sd('not-basic'), t.push(e.charCodeAt(l)); + for (let l = s > 0 ? s + 1 : 0; l < r; ) { + let u = n; + for (let c = 1, f = 36; ; f += 36) { + l >= r && Sd('invalid-input'); + let h = Uht(e.charCodeAt(l++)); + (h >= 36 || h > Ds((2147483647 - n) / c)) && Sd('overflow'), (n += h * c); + let m = f <= o ? 1 : f >= o + 26 ? 26 : f - o; + if (h < m) break; + let v = 36 - m; + c > Ds(2147483647 / v) && Sd('overflow'), (c *= v); + } + let p = t.length + 1; + (o = Q1e(n - u, p, u == 0)), + Ds(n / p) > 2147483647 - a && Sd('overflow'), + (a += Ds(n / p)), + (n %= p), + t.splice(n++, 0, a); + } + return String.fromCodePoint(...t); + }, + e0e = function (e) { + let t = []; + e = Y1e(e); + let r = e.length, + n = 128, + a = 0, + o = 72; + for (let u of e) u < 128 && t.push(cP(u)); + let s = t.length, + l = s; + for (s && t.push(X1e); l < r; ) { + let u = 2147483647; + for (let c of e) c >= n && c < u && (u = c); + let p = l + 1; + u - n > Ds((2147483647 - a) / p) && Sd('overflow'), (a += (u - n) * p), (n = u); + for (let c of e) + if ((c < n && ++a > 2147483647 && Sd('overflow'), c == n)) { + let f = a; + for (let h = 36; ; h += 36) { + let m = h <= o ? 1 : h >= o + 26 ? 26 : h - o; + if (f < m) break; + let v = f - m, + y = 36 - m; + t.push(cP(K1e(m + (v % y), 0))), (f = Ds(v / y)); + } + t.push(cP(K1e(f, 0))), (o = Q1e(a, p, l == s)), (a = 0), ++l; + } + ++a, ++n; + } + return t.join(''); + }, + $ht = function (e) { + return J1e(e, function (t) { + return Dht.test(t) ? Z1e(t.slice(4).toLowerCase()) : t; + }); + }, + Bht = function (e) { + return J1e(e, function (t) { + return Nht.test(t) ? 'xn--' + e0e(t) : t; + }); + }, + Vht = { + version: '2.1.0', + ucs2: { decode: Y1e, encode: Mht }, + decode: Z1e, + encode: e0e, + toASCII: Bht, + toUnicode: $ht, + }; + t0e.exports = Vht; +}); +var n0e = d((SJt, i0e) => { + 'use strict'; + i0e.exports = function (t, r) { + if (((r = r.split(':')[0]), (t = +t), !t)) return !1; + switch (r) { + case 'http': + case 'ws': + return t !== 80; + case 'https': + case 'wss': + return t !== 443; + case 'ftp': + return t !== 21; + case 'gopher': + return t !== 70; + case 'file': + return !1; + } + return t !== 0; + }; +}); +var s0e = d((dP) => { + 'use strict'; + var zht = Object.prototype.hasOwnProperty, + Hht; + function a0e(e) { + try { + return decodeURIComponent(e.replace(/\+/g, ' ')); + } catch { + return null; + } + } + function o0e(e) { + try { + return encodeURIComponent(e); + } catch { + return null; + } + } + function Ght(e) { + for (var t = /([^=?#&]+)=?([^&]*)/g, r = {}, n; (n = t.exec(e)); ) { + var a = a0e(n[1]), + o = a0e(n[2]); + a === null || o === null || a in r || (r[a] = o); + } + return r; + } + function Wht(e, t) { + t = t || ''; + var r = [], + n, + a; + typeof t != 'string' && (t = '?'); + for (a in e) + if (zht.call(e, a)) { + if ( + ((n = e[a]), + !n && (n === null || n === Hht || isNaN(n)) && (n = ''), + (a = o0e(a)), + (n = o0e(n)), + a === null || n === null) + ) + continue; + r.push(a + '=' + n); + } + return r.length ? t + r.join('&') : ''; + } + dP.stringify = Wht; + dP.parse = Ght; +}); +var h0e = d((xJt, m0e) => { + 'use strict'; + var u0e = n0e(), + l8 = s0e(), + Kht = /^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/, + p0e = /[\n\r\t]/g, + Xht = /^[A-Za-z][A-Za-z0-9+-.]*:\/\//, + c0e = /:\d+$/, + Jht = /^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i, + Yht = /^[a-zA-Z]:/; + function mP(e) { + return (e || '').toString().replace(Kht, ''); + } + var fP = [ + ['#', 'hash'], + ['?', 'query'], + function (t, r) { + return Ns(r.protocol) ? t.replace(/\\/g, '/') : t; + }, + ['/', 'pathname'], + ['@', 'auth', 1], + [NaN, 'host', void 0, 1, 1], + [/:(\d*)$/, 'port', void 0, 1], + [NaN, 'hostname', void 0, 1, 1], + ], + l0e = { hash: 1, query: 1 }; + function d0e(e) { + var t; + typeof window < 'u' ? (t = window) : typeof global < 'u' ? (t = global) : typeof self < 'u' ? (t = self) : (t = {}); + var r = t.location || {}; + e = e || r; + var n = {}, + a = typeof e, + o; + if (e.protocol === 'blob:') n = new qs(unescape(e.pathname), {}); + else if (a === 'string') { + n = new qs(e, {}); + for (o in l0e) delete n[o]; + } else if (a === 'object') { + for (o in e) o in l0e || (n[o] = e[o]); + n.slashes === void 0 && (n.slashes = Xht.test(e.href)); + } + return n; + } + function Ns(e) { + return e === 'file:' || e === 'ftp:' || e === 'http:' || e === 'https:' || e === 'ws:' || e === 'wss:'; + } + function f0e(e, t) { + (e = mP(e)), (e = e.replace(p0e, '')), (t = t || {}); + var r = Jht.exec(e), + n = r[1] ? r[1].toLowerCase() : '', + a = !!r[2], + o = !!r[3], + s = 0, + l; + return ( + a + ? o + ? ((l = r[2] + r[3] + r[4]), (s = r[2].length + r[3].length)) + : ((l = r[2] + r[4]), (s = r[2].length)) + : o + ? ((l = r[3] + r[4]), (s = r[3].length)) + : (l = r[4]), + n === 'file:' + ? s >= 2 && (l = l.slice(2)) + : Ns(n) + ? (l = r[4]) + : n + ? a && (l = l.slice(2)) + : s >= 2 && Ns(t.protocol) && (l = r[4]), + { protocol: n, slashes: a || Ns(n), slashesCount: s, rest: l } + ); + } + function Qht(e, t) { + if (e === '') return t; + for ( + var r = (t || '/').split('/').slice(0, -1).concat(e.split('/')), n = r.length, a = r[n - 1], o = !1, s = 0; + n--; + + ) + r[n] === '.' + ? r.splice(n, 1) + : r[n] === '..' + ? (r.splice(n, 1), s++) + : s && (n === 0 && (o = !0), r.splice(n, 1), s--); + return o && r.unshift(''), (a === '.' || a === '..') && r.push(''), r.join('/'); + } + function qs(e, t, r) { + if (((e = mP(e)), (e = e.replace(p0e, '')), !(this instanceof qs))) return new qs(e, t, r); + var n, + a, + o, + s, + l, + u, + p = fP.slice(), + c = typeof t, + f = this, + h = 0; + for ( + c !== 'object' && c !== 'string' && ((r = t), (t = null)), + r && typeof r != 'function' && (r = l8.parse), + t = d0e(t), + a = f0e(e || '', t), + n = !a.protocol && !a.slashes, + f.slashes = a.slashes || (n && t.slashes), + f.protocol = a.protocol || t.protocol || '', + e = a.rest, + ((a.protocol === 'file:' && (a.slashesCount !== 2 || Yht.test(e))) || + (!a.slashes && (a.protocol || a.slashesCount < 2 || !Ns(f.protocol)))) && + (p[3] = [/(.*)/, 'pathname']); + h < p.length; + h++ + ) { + if (((s = p[h]), typeof s == 'function')) { + e = s(e, f); + continue; + } + (o = s[0]), + (u = s[1]), + o !== o + ? (f[u] = e) + : typeof o == 'string' + ? ((l = o === '@' ? e.lastIndexOf(o) : e.indexOf(o)), + ~l && + (typeof s[2] == 'number' + ? ((f[u] = e.slice(0, l)), (e = e.slice(l + s[2]))) + : ((f[u] = e.slice(l)), (e = e.slice(0, l))))) + : (l = o.exec(e)) && ((f[u] = l[1]), (e = e.slice(0, l.index))), + (f[u] = f[u] || (n && s[3] && t[u]) || ''), + s[4] && (f[u] = f[u].toLowerCase()); + } + r && (f.query = r(f.query)), + n && + t.slashes && + f.pathname.charAt(0) !== '/' && + (f.pathname !== '' || t.pathname !== '') && + (f.pathname = Qht(f.pathname, t.pathname)), + f.pathname.charAt(0) !== '/' && Ns(f.protocol) && (f.pathname = '/' + f.pathname), + u0e(f.port, f.protocol) || ((f.host = f.hostname), (f.port = '')), + (f.username = f.password = ''), + f.auth && + ((l = f.auth.indexOf(':')), + ~l + ? ((f.username = f.auth.slice(0, l)), + (f.username = encodeURIComponent(decodeURIComponent(f.username))), + (f.password = f.auth.slice(l + 1)), + (f.password = encodeURIComponent(decodeURIComponent(f.password)))) + : (f.username = encodeURIComponent(decodeURIComponent(f.auth))), + (f.auth = f.password ? f.username + ':' + f.password : f.username)), + (f.origin = f.protocol !== 'file:' && Ns(f.protocol) && f.host ? f.protocol + '//' + f.host : 'null'), + (f.href = f.toString()); + } + function Zht(e, t, r) { + var n = this; + switch (e) { + case 'query': + typeof t == 'string' && t.length && (t = (r || l8.parse)(t)), (n[e] = t); + break; + case 'port': + (n[e] = t), u0e(t, n.protocol) ? t && (n.host = n.hostname + ':' + t) : ((n.host = n.hostname), (n[e] = '')); + break; + case 'hostname': + (n[e] = t), n.port && (t += ':' + n.port), (n.host = t); + break; + case 'host': + (n[e] = t), + c0e.test(t) + ? ((t = t.split(':')), (n.port = t.pop()), (n.hostname = t.join(':'))) + : ((n.hostname = t), (n.port = '')); + break; + case 'protocol': + (n.protocol = t.toLowerCase()), (n.slashes = !r); + break; + case 'pathname': + case 'hash': + if (t) { + var a = e === 'pathname' ? '/' : '#'; + n[e] = t.charAt(0) !== a ? a + t : t; + } else n[e] = t; + break; + case 'username': + case 'password': + n[e] = encodeURIComponent(t); + break; + case 'auth': + var o = t.indexOf(':'); + ~o + ? ((n.username = t.slice(0, o)), + (n.username = encodeURIComponent(decodeURIComponent(n.username))), + (n.password = t.slice(o + 1)), + (n.password = encodeURIComponent(decodeURIComponent(n.password)))) + : (n.username = encodeURIComponent(decodeURIComponent(t))); + } + for (var s = 0; s < fP.length; s++) { + var l = fP[s]; + l[4] && (n[l[1]] = n[l[1]].toLowerCase()); + } + return ( + (n.auth = n.password ? n.username + ':' + n.password : n.username), + (n.origin = n.protocol !== 'file:' && Ns(n.protocol) && n.host ? n.protocol + '//' + n.host : 'null'), + (n.href = n.toString()), + n + ); + } + function egt(e) { + (!e || typeof e != 'function') && (e = l8.stringify); + var t, + r = this, + n = r.host, + a = r.protocol; + a && a.charAt(a.length - 1) !== ':' && (a += ':'); + var o = a + ((r.protocol && r.slashes) || Ns(r.protocol) ? '//' : ''); + return ( + r.username + ? ((o += r.username), r.password && (o += ':' + r.password), (o += '@')) + : r.password + ? ((o += ':' + r.password), (o += '@')) + : r.protocol !== 'file:' && Ns(r.protocol) && !n && r.pathname !== '/' && (o += '@'), + (n[n.length - 1] === ':' || (c0e.test(r.hostname) && !r.port)) && (n += ':'), + (o += n + r.pathname), + (t = typeof r.query == 'object' ? e(r.query) : r.query), + t && (o += t.charAt(0) !== '?' ? '?' + t : t), + r.hash && (o += r.hash), + o + ); + } + qs.prototype = { set: Zht, toString: egt }; + qs.extractProtocol = f0e; + qs.location = d0e; + qs.trimLeft = mP; + qs.qs = l8; + m0e.exports = qs; +}); +var g0e = d((OJt, tgt) => { + tgt.exports = [ + 'ac', + 'com.ac', + 'edu.ac', + 'gov.ac', + 'net.ac', + 'mil.ac', + 'org.ac', + 'ad', + 'nom.ad', + 'ae', + 'co.ae', + 'net.ae', + 'org.ae', + 'sch.ae', + 'ac.ae', + 'gov.ae', + 'mil.ae', + 'aero', + 'accident-investigation.aero', + 'accident-prevention.aero', + 'aerobatic.aero', + 'aeroclub.aero', + 'aerodrome.aero', + 'agents.aero', + 'aircraft.aero', + 'airline.aero', + 'airport.aero', + 'air-surveillance.aero', + 'airtraffic.aero', + 'air-traffic-control.aero', + 'ambulance.aero', + 'amusement.aero', + 'association.aero', + 'author.aero', + 'ballooning.aero', + 'broker.aero', + 'caa.aero', + 'cargo.aero', + 'catering.aero', + 'certification.aero', + 'championship.aero', + 'charter.aero', + 'civilaviation.aero', + 'club.aero', + 'conference.aero', + 'consultant.aero', + 'consulting.aero', + 'control.aero', + 'council.aero', + 'crew.aero', + 'design.aero', + 'dgca.aero', + 'educator.aero', + 'emergency.aero', + 'engine.aero', + 'engineer.aero', + 'entertainment.aero', + 'equipment.aero', + 'exchange.aero', + 'express.aero', + 'federation.aero', + 'flight.aero', + 'fuel.aero', + 'gliding.aero', + 'government.aero', + 'groundhandling.aero', + 'group.aero', + 'hanggliding.aero', + 'homebuilt.aero', + 'insurance.aero', + 'journal.aero', + 'journalist.aero', + 'leasing.aero', + 'logistics.aero', + 'magazine.aero', + 'maintenance.aero', + 'media.aero', + 'microlight.aero', + 'modelling.aero', + 'navigation.aero', + 'parachuting.aero', + 'paragliding.aero', + 'passenger-association.aero', + 'pilot.aero', + 'press.aero', + 'production.aero', + 'recreation.aero', + 'repbody.aero', + 'res.aero', + 'research.aero', + 'rotorcraft.aero', + 'safety.aero', + 'scientist.aero', + 'services.aero', + 'show.aero', + 'skydiving.aero', + 'software.aero', + 'student.aero', + 'trader.aero', + 'trading.aero', + 'trainer.aero', + 'union.aero', + 'workinggroup.aero', + 'works.aero', + 'af', + 'gov.af', + 'com.af', + 'org.af', + 'net.af', + 'edu.af', + 'ag', + 'com.ag', + 'org.ag', + 'net.ag', + 'co.ag', + 'nom.ag', + 'ai', + 'off.ai', + 'com.ai', + 'net.ai', + 'org.ai', + 'al', + 'com.al', + 'edu.al', + 'gov.al', + 'mil.al', + 'net.al', + 'org.al', + 'am', + 'co.am', + 'com.am', + 'commune.am', + 'net.am', + 'org.am', + 'ao', + 'ed.ao', + 'gv.ao', + 'og.ao', + 'co.ao', + 'pb.ao', + 'it.ao', + 'aq', + 'ar', + 'bet.ar', + 'com.ar', + 'coop.ar', + 'edu.ar', + 'gob.ar', + 'gov.ar', + 'int.ar', + 'mil.ar', + 'musica.ar', + 'mutual.ar', + 'net.ar', + 'org.ar', + 'senasa.ar', + 'tur.ar', + 'arpa', + 'e164.arpa', + 'in-addr.arpa', + 'ip6.arpa', + 'iris.arpa', + 'uri.arpa', + 'urn.arpa', + 'as', + 'gov.as', + 'asia', + 'at', + 'ac.at', + 'co.at', + 'gv.at', + 'or.at', + 'sth.ac.at', + 'au', + 'com.au', + 'net.au', + 'org.au', + 'edu.au', + 'gov.au', + 'asn.au', + 'id.au', + 'info.au', + 'conf.au', + 'oz.au', + 'act.au', + 'nsw.au', + 'nt.au', + 'qld.au', + 'sa.au', + 'tas.au', + 'vic.au', + 'wa.au', + 'act.edu.au', + 'catholic.edu.au', + 'nsw.edu.au', + 'nt.edu.au', + 'qld.edu.au', + 'sa.edu.au', + 'tas.edu.au', + 'vic.edu.au', + 'wa.edu.au', + 'qld.gov.au', + 'sa.gov.au', + 'tas.gov.au', + 'vic.gov.au', + 'wa.gov.au', + 'schools.nsw.edu.au', + 'aw', + 'com.aw', + 'ax', + 'az', + 'com.az', + 'net.az', + 'int.az', + 'gov.az', + 'org.az', + 'edu.az', + 'info.az', + 'pp.az', + 'mil.az', + 'name.az', + 'pro.az', + 'biz.az', + 'ba', + 'com.ba', + 'edu.ba', + 'gov.ba', + 'mil.ba', + 'net.ba', + 'org.ba', + 'bb', + 'biz.bb', + 'co.bb', + 'com.bb', + 'edu.bb', + 'gov.bb', + 'info.bb', + 'net.bb', + 'org.bb', + 'store.bb', + 'tv.bb', + '*.bd', + 'be', + 'ac.be', + 'bf', + 'gov.bf', + 'bg', + 'a.bg', + 'b.bg', + 'c.bg', + 'd.bg', + 'e.bg', + 'f.bg', + 'g.bg', + 'h.bg', + 'i.bg', + 'j.bg', + 'k.bg', + 'l.bg', + 'm.bg', + 'n.bg', + 'o.bg', + 'p.bg', + 'q.bg', + 'r.bg', + 's.bg', + 't.bg', + 'u.bg', + 'v.bg', + 'w.bg', + 'x.bg', + 'y.bg', + 'z.bg', + '0.bg', + '1.bg', + '2.bg', + '3.bg', + '4.bg', + '5.bg', + '6.bg', + '7.bg', + '8.bg', + '9.bg', + 'bh', + 'com.bh', + 'edu.bh', + 'net.bh', + 'org.bh', + 'gov.bh', + 'bi', + 'co.bi', + 'com.bi', + 'edu.bi', + 'or.bi', + 'org.bi', + 'biz', + 'bj', + 'asso.bj', + 'barreau.bj', + 'gouv.bj', + 'bm', + 'com.bm', + 'edu.bm', + 'gov.bm', + 'net.bm', + 'org.bm', + 'bn', + 'com.bn', + 'edu.bn', + 'gov.bn', + 'net.bn', + 'org.bn', + 'bo', + 'com.bo', + 'edu.bo', + 'gob.bo', + 'int.bo', + 'org.bo', + 'net.bo', + 'mil.bo', + 'tv.bo', + 'web.bo', + 'academia.bo', + 'agro.bo', + 'arte.bo', + 'blog.bo', + 'bolivia.bo', + 'ciencia.bo', + 'cooperativa.bo', + 'democracia.bo', + 'deporte.bo', + 'ecologia.bo', + 'economia.bo', + 'empresa.bo', + 'indigena.bo', + 'industria.bo', + 'info.bo', + 'medicina.bo', + 'movimiento.bo', + 'musica.bo', + 'natural.bo', + 'nombre.bo', + 'noticias.bo', + 'patria.bo', + 'politica.bo', + 'profesional.bo', + 'plurinacional.bo', + 'pueblo.bo', + 'revista.bo', + 'salud.bo', + 'tecnologia.bo', + 'tksat.bo', + 'transporte.bo', + 'wiki.bo', + 'br', + '9guacu.br', + 'abc.br', + 'adm.br', + 'adv.br', + 'agr.br', + 'aju.br', + 'am.br', + 'anani.br', + 'aparecida.br', + 'app.br', + 'arq.br', + 'art.br', + 'ato.br', + 'b.br', + 'barueri.br', + 'belem.br', + 'bhz.br', + 'bib.br', + 'bio.br', + 'blog.br', + 'bmd.br', + 'boavista.br', + 'bsb.br', + 'campinagrande.br', + 'campinas.br', + 'caxias.br', + 'cim.br', + 'cng.br', + 'cnt.br', + 'com.br', + 'contagem.br', + 'coop.br', + 'coz.br', + 'cri.br', + 'cuiaba.br', + 'curitiba.br', + 'def.br', + 'des.br', + 'det.br', + 'dev.br', + 'ecn.br', + 'eco.br', + 'edu.br', + 'emp.br', + 'enf.br', + 'eng.br', + 'esp.br', + 'etc.br', + 'eti.br', + 'far.br', + 'feira.br', + 'flog.br', + 'floripa.br', + 'fm.br', + 'fnd.br', + 'fortal.br', + 'fot.br', + 'foz.br', + 'fst.br', + 'g12.br', + 'geo.br', + 'ggf.br', + 'goiania.br', + 'gov.br', + 'ac.gov.br', + 'al.gov.br', + 'am.gov.br', + 'ap.gov.br', + 'ba.gov.br', + 'ce.gov.br', + 'df.gov.br', + 'es.gov.br', + 'go.gov.br', + 'ma.gov.br', + 'mg.gov.br', + 'ms.gov.br', + 'mt.gov.br', + 'pa.gov.br', + 'pb.gov.br', + 'pe.gov.br', + 'pi.gov.br', + 'pr.gov.br', + 'rj.gov.br', + 'rn.gov.br', + 'ro.gov.br', + 'rr.gov.br', + 'rs.gov.br', + 'sc.gov.br', + 'se.gov.br', + 'sp.gov.br', + 'to.gov.br', + 'gru.br', + 'imb.br', + 'ind.br', + 'inf.br', + 'jab.br', + 'jampa.br', + 'jdf.br', + 'joinville.br', + 'jor.br', + 'jus.br', + 'leg.br', + 'lel.br', + 'log.br', + 'londrina.br', + 'macapa.br', + 'maceio.br', + 'manaus.br', + 'maringa.br', + 'mat.br', + 'med.br', + 'mil.br', + 'morena.br', + 'mp.br', + 'mus.br', + 'natal.br', + 'net.br', + 'niteroi.br', + '*.nom.br', + 'not.br', + 'ntr.br', + 'odo.br', + 'ong.br', + 'org.br', + 'osasco.br', + 'palmas.br', + 'poa.br', + 'ppg.br', + 'pro.br', + 'psc.br', + 'psi.br', + 'pvh.br', + 'qsl.br', + 'radio.br', + 'rec.br', + 'recife.br', + 'rep.br', + 'ribeirao.br', + 'rio.br', + 'riobranco.br', + 'riopreto.br', + 'salvador.br', + 'sampa.br', + 'santamaria.br', + 'santoandre.br', + 'saobernardo.br', + 'saogonca.br', + 'seg.br', + 'sjc.br', + 'slg.br', + 'slz.br', + 'sorocaba.br', + 'srv.br', + 'taxi.br', + 'tc.br', + 'tec.br', + 'teo.br', + 'the.br', + 'tmp.br', + 'trd.br', + 'tur.br', + 'tv.br', + 'udi.br', + 'vet.br', + 'vix.br', + 'vlog.br', + 'wiki.br', + 'zlg.br', + 'bs', + 'com.bs', + 'net.bs', + 'org.bs', + 'edu.bs', + 'gov.bs', + 'bt', + 'com.bt', + 'edu.bt', + 'gov.bt', + 'net.bt', + 'org.bt', + 'bv', + 'bw', + 'co.bw', + 'org.bw', + 'by', + 'gov.by', + 'mil.by', + 'com.by', + 'of.by', + 'bz', + 'com.bz', + 'net.bz', + 'org.bz', + 'edu.bz', + 'gov.bz', + 'ca', + 'ab.ca', + 'bc.ca', + 'mb.ca', + 'nb.ca', + 'nf.ca', + 'nl.ca', + 'ns.ca', + 'nt.ca', + 'nu.ca', + 'on.ca', + 'pe.ca', + 'qc.ca', + 'sk.ca', + 'yk.ca', + 'gc.ca', + 'cat', + 'cc', + 'cd', + 'gov.cd', + 'cf', + 'cg', + 'ch', + 'ci', + 'org.ci', + 'or.ci', + 'com.ci', + 'co.ci', + 'edu.ci', + 'ed.ci', + 'ac.ci', + 'net.ci', + 'go.ci', + 'asso.ci', + 'a\xE9roport.ci', + 'int.ci', + 'presse.ci', + 'md.ci', + 'gouv.ci', + '*.ck', + '!www.ck', + 'cl', + 'co.cl', + 'gob.cl', + 'gov.cl', + 'mil.cl', + 'cm', + 'co.cm', + 'com.cm', + 'gov.cm', + 'net.cm', + 'cn', + 'ac.cn', + 'com.cn', + 'edu.cn', + 'gov.cn', + 'net.cn', + 'org.cn', + 'mil.cn', + '\u516C\u53F8.cn', + '\u7F51\u7EDC.cn', + '\u7DB2\u7D61.cn', + 'ah.cn', + 'bj.cn', + 'cq.cn', + 'fj.cn', + 'gd.cn', + 'gs.cn', + 'gz.cn', + 'gx.cn', + 'ha.cn', + 'hb.cn', + 'he.cn', + 'hi.cn', + 'hl.cn', + 'hn.cn', + 'jl.cn', + 'js.cn', + 'jx.cn', + 'ln.cn', + 'nm.cn', + 'nx.cn', + 'qh.cn', + 'sc.cn', + 'sd.cn', + 'sh.cn', + 'sn.cn', + 'sx.cn', + 'tj.cn', + 'xj.cn', + 'xz.cn', + 'yn.cn', + 'zj.cn', + 'hk.cn', + 'mo.cn', + 'tw.cn', + 'co', + 'arts.co', + 'com.co', + 'edu.co', + 'firm.co', + 'gov.co', + 'info.co', + 'int.co', + 'mil.co', + 'net.co', + 'nom.co', + 'org.co', + 'rec.co', + 'web.co', + 'com', + 'coop', + 'cr', + 'ac.cr', + 'co.cr', + 'ed.cr', + 'fi.cr', + 'go.cr', + 'or.cr', + 'sa.cr', + 'cu', + 'com.cu', + 'edu.cu', + 'org.cu', + 'net.cu', + 'gov.cu', + 'inf.cu', + 'cv', + 'com.cv', + 'edu.cv', + 'int.cv', + 'nome.cv', + 'org.cv', + 'cw', + 'com.cw', + 'edu.cw', + 'net.cw', + 'org.cw', + 'cx', + 'gov.cx', + 'cy', + 'ac.cy', + 'biz.cy', + 'com.cy', + 'ekloges.cy', + 'gov.cy', + 'ltd.cy', + 'mil.cy', + 'net.cy', + 'org.cy', + 'press.cy', + 'pro.cy', + 'tm.cy', + 'cz', + 'de', + 'dj', + 'dk', + 'dm', + 'com.dm', + 'net.dm', + 'org.dm', + 'edu.dm', + 'gov.dm', + 'do', + 'art.do', + 'com.do', + 'edu.do', + 'gob.do', + 'gov.do', + 'mil.do', + 'net.do', + 'org.do', + 'sld.do', + 'web.do', + 'dz', + 'art.dz', + 'asso.dz', + 'com.dz', + 'edu.dz', + 'gov.dz', + 'org.dz', + 'net.dz', + 'pol.dz', + 'soc.dz', + 'tm.dz', + 'ec', + 'com.ec', + 'info.ec', + 'net.ec', + 'fin.ec', + 'k12.ec', + 'med.ec', + 'pro.ec', + 'org.ec', + 'edu.ec', + 'gov.ec', + 'gob.ec', + 'mil.ec', + 'edu', + 'ee', + 'edu.ee', + 'gov.ee', + 'riik.ee', + 'lib.ee', + 'med.ee', + 'com.ee', + 'pri.ee', + 'aip.ee', + 'org.ee', + 'fie.ee', + 'eg', + 'com.eg', + 'edu.eg', + 'eun.eg', + 'gov.eg', + 'mil.eg', + 'name.eg', + 'net.eg', + 'org.eg', + 'sci.eg', + '*.er', + 'es', + 'com.es', + 'nom.es', + 'org.es', + 'gob.es', + 'edu.es', + 'et', + 'com.et', + 'gov.et', + 'org.et', + 'edu.et', + 'biz.et', + 'name.et', + 'info.et', + 'net.et', + 'eu', + 'fi', + 'aland.fi', + 'fj', + 'ac.fj', + 'biz.fj', + 'com.fj', + 'gov.fj', + 'info.fj', + 'mil.fj', + 'name.fj', + 'net.fj', + 'org.fj', + 'pro.fj', + '*.fk', + 'com.fm', + 'edu.fm', + 'net.fm', + 'org.fm', + 'fm', + 'fo', + 'fr', + 'asso.fr', + 'com.fr', + 'gouv.fr', + 'nom.fr', + 'prd.fr', + 'tm.fr', + 'aeroport.fr', + 'avocat.fr', + 'avoues.fr', + 'cci.fr', + 'chambagri.fr', + 'chirurgiens-dentistes.fr', + 'experts-comptables.fr', + 'geometre-expert.fr', + 'greta.fr', + 'huissier-justice.fr', + 'medecin.fr', + 'notaires.fr', + 'pharmacien.fr', + 'port.fr', + 'veterinaire.fr', + 'ga', + 'gb', + 'edu.gd', + 'gov.gd', + 'gd', + 'ge', + 'com.ge', + 'edu.ge', + 'gov.ge', + 'org.ge', + 'mil.ge', + 'net.ge', + 'pvt.ge', + 'gf', + 'gg', + 'co.gg', + 'net.gg', + 'org.gg', + 'gh', + 'com.gh', + 'edu.gh', + 'gov.gh', + 'org.gh', + 'mil.gh', + 'gi', + 'com.gi', + 'ltd.gi', + 'gov.gi', + 'mod.gi', + 'edu.gi', + 'org.gi', + 'gl', + 'co.gl', + 'com.gl', + 'edu.gl', + 'net.gl', + 'org.gl', + 'gm', + 'gn', + 'ac.gn', + 'com.gn', + 'edu.gn', + 'gov.gn', + 'org.gn', + 'net.gn', + 'gov', + 'gp', + 'com.gp', + 'net.gp', + 'mobi.gp', + 'edu.gp', + 'org.gp', + 'asso.gp', + 'gq', + 'gr', + 'com.gr', + 'edu.gr', + 'net.gr', + 'org.gr', + 'gov.gr', + 'gs', + 'gt', + 'com.gt', + 'edu.gt', + 'gob.gt', + 'ind.gt', + 'mil.gt', + 'net.gt', + 'org.gt', + 'gu', + 'com.gu', + 'edu.gu', + 'gov.gu', + 'guam.gu', + 'info.gu', + 'net.gu', + 'org.gu', + 'web.gu', + 'gw', + 'gy', + 'co.gy', + 'com.gy', + 'edu.gy', + 'gov.gy', + 'net.gy', + 'org.gy', + 'hk', + 'com.hk', + 'edu.hk', + 'gov.hk', + 'idv.hk', + 'net.hk', + 'org.hk', + '\u516C\u53F8.hk', + '\u6559\u80B2.hk', + '\u654E\u80B2.hk', + '\u653F\u5E9C.hk', + '\u500B\u4EBA.hk', + '\u4E2A\uFFFD\uFFFD.hk', + '\u7B87\u4EBA.hk', + '\u7DB2\u7EDC.hk', + '\u7F51\u7EDC.hk', + '\u7EC4\u7E54.hk', + '\u7DB2\u7D61.hk', + '\u7F51\u7D61.hk', + '\u7EC4\u7EC7.hk', + '\u7D44\u7E54.hk', + '\u7D44\u7EC7.hk', + 'hm', + 'hn', + 'com.hn', + 'edu.hn', + 'org.hn', + 'net.hn', + 'mil.hn', + 'gob.hn', + 'hr', + 'iz.hr', + 'from.hr', + 'name.hr', + 'com.hr', + 'ht', + 'com.ht', + 'shop.ht', + 'firm.ht', + 'info.ht', + 'adult.ht', + 'net.ht', + 'pro.ht', + 'org.ht', + 'med.ht', + 'art.ht', + 'coop.ht', + 'pol.ht', + 'asso.ht', + 'edu.ht', + 'rel.ht', + 'gouv.ht', + 'perso.ht', + 'hu', + 'co.hu', + 'info.hu', + 'org.hu', + 'priv.hu', + 'sport.hu', + 'tm.hu', + '2000.hu', + 'agrar.hu', + 'bolt.hu', + 'casino.hu', + 'city.hu', + 'erotica.hu', + 'erotika.hu', + 'film.hu', + 'forum.hu', + 'games.hu', + 'hotel.hu', + 'ingatlan.hu', + 'jogasz.hu', + 'konyvelo.hu', + 'lakas.hu', + 'media.hu', + 'news.hu', + 'reklam.hu', + 'sex.hu', + 'shop.hu', + 'suli.hu', + 'szex.hu', + 'tozsde.hu', + 'utazas.hu', + 'video.hu', + 'id', + 'ac.id', + 'biz.id', + 'co.id', + 'desa.id', + 'go.id', + 'mil.id', + 'my.id', + 'net.id', + 'or.id', + 'ponpes.id', + 'sch.id', + 'web.id', + 'ie', + 'gov.ie', + 'il', + 'ac.il', + 'co.il', + 'gov.il', + 'idf.il', + 'k12.il', + 'muni.il', + 'net.il', + 'org.il', + 'im', + 'ac.im', + 'co.im', + 'com.im', + 'ltd.co.im', + 'net.im', + 'org.im', + 'plc.co.im', + 'tt.im', + 'tv.im', + 'in', + 'co.in', + 'firm.in', + 'net.in', + 'org.in', + 'gen.in', + 'ind.in', + 'nic.in', + 'ac.in', + 'edu.in', + 'res.in', + 'gov.in', + 'mil.in', + 'info', + 'int', + 'eu.int', + 'io', + 'com.io', + 'iq', + 'gov.iq', + 'edu.iq', + 'mil.iq', + 'com.iq', + 'org.iq', + 'net.iq', + 'ir', + 'ac.ir', + 'co.ir', + 'gov.ir', + 'id.ir', + 'net.ir', + 'org.ir', + 'sch.ir', + '\u0627\u06CC\u0631\u0627\u0646.ir', + '\u0627\u064A\u0631\u0627\u0646.ir', + 'is', + 'net.is', + 'com.is', + 'edu.is', + 'gov.is', + 'org.is', + 'int.is', + 'it', + 'gov.it', + 'edu.it', + 'abr.it', + 'abruzzo.it', + 'aosta-valley.it', + 'aostavalley.it', + 'bas.it', + 'basilicata.it', + 'cal.it', + 'calabria.it', + 'cam.it', + 'campania.it', + 'emilia-romagna.it', + 'emiliaromagna.it', + 'emr.it', + 'friuli-v-giulia.it', + 'friuli-ve-giulia.it', + 'friuli-vegiulia.it', + 'friuli-venezia-giulia.it', + 'friuli-veneziagiulia.it', + 'friuli-vgiulia.it', + 'friuliv-giulia.it', + 'friulive-giulia.it', + 'friulivegiulia.it', + 'friulivenezia-giulia.it', + 'friuliveneziagiulia.it', + 'friulivgiulia.it', + 'fvg.it', + 'laz.it', + 'lazio.it', + 'lig.it', + 'liguria.it', + 'lom.it', + 'lombardia.it', + 'lombardy.it', + 'lucania.it', + 'mar.it', + 'marche.it', + 'mol.it', + 'molise.it', + 'piedmont.it', + 'piemonte.it', + 'pmn.it', + 'pug.it', + 'puglia.it', + 'sar.it', + 'sardegna.it', + 'sardinia.it', + 'sic.it', + 'sicilia.it', + 'sicily.it', + 'taa.it', + 'tos.it', + 'toscana.it', + 'trentin-sud-tirol.it', + 'trentin-s\xFCd-tirol.it', + 'trentin-sudtirol.it', + 'trentin-s\xFCdtirol.it', + 'trentin-sued-tirol.it', + 'trentin-suedtirol.it', + 'trentino-a-adige.it', + 'trentino-aadige.it', + 'trentino-alto-adige.it', + 'trentino-altoadige.it', + 'trentino-s-tirol.it', + 'trentino-stirol.it', + 'trentino-sud-tirol.it', + 'trentino-s\xFCd-tirol.it', + 'trentino-sudtirol.it', + 'trentino-s\xFCdtirol.it', + 'trentino-sued-tirol.it', + 'trentino-suedtirol.it', + 'trentino.it', + 'trentinoa-adige.it', + 'trentinoaadige.it', + 'trentinoalto-adige.it', + 'trentinoaltoadige.it', + 'trentinos-tirol.it', + 'trentinostirol.it', + 'trentinosud-tirol.it', + 'trentinos\xFCd-tirol.it', + 'trentinosudtirol.it', + 'trentinos\xFCdtirol.it', + 'trentinosued-tirol.it', + 'trentinosuedtirol.it', + 'trentinsud-tirol.it', + 'trentins\xFCd-tirol.it', + 'trentinsudtirol.it', + 'trentins\xFCdtirol.it', + 'trentinsued-tirol.it', + 'trentinsuedtirol.it', + 'tuscany.it', + 'umb.it', + 'umbria.it', + 'val-d-aosta.it', + 'val-daosta.it', + 'vald-aosta.it', + 'valdaosta.it', + 'valle-aosta.it', + 'valle-d-aosta.it', + 'valle-daosta.it', + 'valleaosta.it', + 'valled-aosta.it', + 'valledaosta.it', + 'vallee-aoste.it', + 'vall\xE9e-aoste.it', + 'vallee-d-aoste.it', + 'vall\xE9e-d-aoste.it', + 'valleeaoste.it', + 'vall\xE9eaoste.it', + 'valleedaoste.it', + 'vall\xE9edaoste.it', + 'vao.it', + 'vda.it', + 'ven.it', + 'veneto.it', + 'ag.it', + 'agrigento.it', + 'al.it', + 'alessandria.it', + 'alto-adige.it', + 'altoadige.it', + 'an.it', + 'ancona.it', + 'andria-barletta-trani.it', + 'andria-trani-barletta.it', + 'andriabarlettatrani.it', + 'andriatranibarletta.it', + 'ao.it', + 'aosta.it', + 'aoste.it', + 'ap.it', + 'aq.it', + 'aquila.it', + 'ar.it', + 'arezzo.it', + 'ascoli-piceno.it', + 'ascolipiceno.it', + 'asti.it', + 'at.it', + 'av.it', + 'avellino.it', + 'ba.it', + 'balsan-sudtirol.it', + 'balsan-s\xFCdtirol.it', + 'balsan-suedtirol.it', + 'balsan.it', + 'bari.it', + 'barletta-trani-andria.it', + 'barlettatraniandria.it', + 'belluno.it', + 'benevento.it', + 'bergamo.it', + 'bg.it', + 'bi.it', + 'biella.it', + 'bl.it', + 'bn.it', + 'bo.it', + 'bologna.it', + 'bolzano-altoadige.it', + 'bolzano.it', + 'bozen-sudtirol.it', + 'bozen-s\xFCdtirol.it', + 'bozen-suedtirol.it', + 'bozen.it', + 'br.it', + 'brescia.it', + 'brindisi.it', + 'bs.it', + 'bt.it', + 'bulsan-sudtirol.it', + 'bulsan-s\xFCdtirol.it', + 'bulsan-suedtirol.it', + 'bulsan.it', + 'bz.it', + 'ca.it', + 'cagliari.it', + 'caltanissetta.it', + 'campidano-medio.it', + 'campidanomedio.it', + 'campobasso.it', + 'carbonia-iglesias.it', + 'carboniaiglesias.it', + 'carrara-massa.it', + 'carraramassa.it', + 'caserta.it', + 'catania.it', + 'catanzaro.it', + 'cb.it', + 'ce.it', + 'cesena-forli.it', + 'cesena-forl\xEC.it', + 'cesenaforli.it', + 'cesenaforl\xEC.it', + 'ch.it', + 'chieti.it', + 'ci.it', + 'cl.it', + 'cn.it', + 'co.it', + 'como.it', + 'cosenza.it', + 'cr.it', + 'cremona.it', + 'crotone.it', + 'cs.it', + 'ct.it', + 'cuneo.it', + 'cz.it', + 'dell-ogliastra.it', + 'dellogliastra.it', + 'en.it', + 'enna.it', + 'fc.it', + 'fe.it', + 'fermo.it', + 'ferrara.it', + 'fg.it', + 'fi.it', + 'firenze.it', + 'florence.it', + 'fm.it', + 'foggia.it', + 'forli-cesena.it', + 'forl\xEC-cesena.it', + 'forlicesena.it', + 'forl\xECcesena.it', + 'fr.it', + 'frosinone.it', + 'ge.it', + 'genoa.it', + 'genova.it', + 'go.it', + 'gorizia.it', + 'gr.it', + 'grosseto.it', + 'iglesias-carbonia.it', + 'iglesiascarbonia.it', + 'im.it', + 'imperia.it', + 'is.it', + 'isernia.it', + 'kr.it', + 'la-spezia.it', + 'laquila.it', + 'laspezia.it', + 'latina.it', + 'lc.it', + 'le.it', + 'lecce.it', + 'lecco.it', + 'li.it', + 'livorno.it', + 'lo.it', + 'lodi.it', + 'lt.it', + 'lu.it', + 'lucca.it', + 'macerata.it', + 'mantova.it', + 'massa-carrara.it', + 'massacarrara.it', + 'matera.it', + 'mb.it', + 'mc.it', + 'me.it', + 'medio-campidano.it', + 'mediocampidano.it', + 'messina.it', + 'mi.it', + 'milan.it', + 'milano.it', + 'mn.it', + 'mo.it', + 'modena.it', + 'monza-brianza.it', + 'monza-e-della-brianza.it', + 'monza.it', + 'monzabrianza.it', + 'monzaebrianza.it', + 'monzaedellabrianza.it', + 'ms.it', + 'mt.it', + 'na.it', + 'naples.it', + 'napoli.it', + 'no.it', + 'novara.it', + 'nu.it', + 'nuoro.it', + 'og.it', + 'ogliastra.it', + 'olbia-tempio.it', + 'olbiatempio.it', + 'or.it', + 'oristano.it', + 'ot.it', + 'pa.it', + 'padova.it', + 'padua.it', + 'palermo.it', + 'parma.it', + 'pavia.it', + 'pc.it', + 'pd.it', + 'pe.it', + 'perugia.it', + 'pesaro-urbino.it', + 'pesarourbino.it', + 'pescara.it', + 'pg.it', + 'pi.it', + 'piacenza.it', + 'pisa.it', + 'pistoia.it', + 'pn.it', + 'po.it', + 'pordenone.it', + 'potenza.it', + 'pr.it', + 'prato.it', + 'pt.it', + 'pu.it', + 'pv.it', + 'pz.it', + 'ra.it', + 'ragusa.it', + 'ravenna.it', + 'rc.it', + 're.it', + 'reggio-calabria.it', + 'reggio-emilia.it', + 'reggiocalabria.it', + 'reggioemilia.it', + 'rg.it', + 'ri.it', + 'rieti.it', + 'rimini.it', + 'rm.it', + 'rn.it', + 'ro.it', + 'roma.it', + 'rome.it', + 'rovigo.it', + 'sa.it', + 'salerno.it', + 'sassari.it', + 'savona.it', + 'si.it', + 'siena.it', + 'siracusa.it', + 'so.it', + 'sondrio.it', + 'sp.it', + 'sr.it', + 'ss.it', + 'suedtirol.it', + 's\xFCdtirol.it', + 'sv.it', + 'ta.it', + 'taranto.it', + 'te.it', + 'tempio-olbia.it', + 'tempioolbia.it', + 'teramo.it', + 'terni.it', + 'tn.it', + 'to.it', + 'torino.it', + 'tp.it', + 'tr.it', + 'trani-andria-barletta.it', + 'trani-barletta-andria.it', + 'traniandriabarletta.it', + 'tranibarlettaandria.it', + 'trapani.it', + 'trento.it', + 'treviso.it', + 'trieste.it', + 'ts.it', + 'turin.it', + 'tv.it', + 'ud.it', + 'udine.it', + 'urbino-pesaro.it', + 'urbinopesaro.it', + 'va.it', + 'varese.it', + 'vb.it', + 'vc.it', + 've.it', + 'venezia.it', + 'venice.it', + 'verbania.it', + 'vercelli.it', + 'verona.it', + 'vi.it', + 'vibo-valentia.it', + 'vibovalentia.it', + 'vicenza.it', + 'viterbo.it', + 'vr.it', + 'vs.it', + 'vt.it', + 'vv.it', + 'je', + 'co.je', + 'net.je', + 'org.je', + '*.jm', + 'jo', + 'com.jo', + 'org.jo', + 'net.jo', + 'edu.jo', + 'sch.jo', + 'gov.jo', + 'mil.jo', + 'name.jo', + 'jobs', + 'jp', + 'ac.jp', + 'ad.jp', + 'co.jp', + 'ed.jp', + 'go.jp', + 'gr.jp', + 'lg.jp', + 'ne.jp', + 'or.jp', + 'aichi.jp', + 'akita.jp', + 'aomori.jp', + 'chiba.jp', + 'ehime.jp', + 'fukui.jp', + 'fukuoka.jp', + 'fukushima.jp', + 'gifu.jp', + 'gunma.jp', + 'hiroshima.jp', + 'hokkaido.jp', + 'hyogo.jp', + 'ibaraki.jp', + 'ishikawa.jp', + 'iwate.jp', + 'kagawa.jp', + 'kagoshima.jp', + 'kanagawa.jp', + 'kochi.jp', + 'kumamoto.jp', + 'kyoto.jp', + 'mie.jp', + 'miyagi.jp', + 'miyazaki.jp', + 'nagano.jp', + 'nagasaki.jp', + 'nara.jp', + 'niigata.jp', + 'oita.jp', + 'okayama.jp', + 'okinawa.jp', + 'osaka.jp', + 'saga.jp', + 'saitama.jp', + 'shiga.jp', + 'shimane.jp', + 'shizuoka.jp', + 'tochigi.jp', + 'tokushima.jp', + 'tokyo.jp', + 'tottori.jp', + 'toyama.jp', + 'wakayama.jp', + 'yamagata.jp', + 'yamaguchi.jp', + 'yamanashi.jp', + '\u6803\u6728.jp', + '\u611B\u77E5.jp', + '\u611B\u5A9B.jp', + '\u5175\u5EAB.jp', + '\u718A\u672C.jp', + '\u8328\u57CE.jp', + '\u5317\u6D77\u9053.jp', + '\u5343\u8449.jp', + '\u548C\u6B4C\u5C71.jp', + '\u9577\u5D0E.jp', + '\u9577\u91CE.jp', + '\u65B0\u6F5F.jp', + '\u9752\u68EE.jp', + '\u9759\u5CA1.jp', + '\u6771\u4EAC.jp', + '\u77F3\u5DDD.jp', + '\u57FC\u7389.jp', + '\u4E09\u91CD.jp', + '\u4EAC\u90FD.jp', + '\u4F50\u8CC0.jp', + '\u5927\u5206.jp', + '\u5927\u962A.jp', + '\u5948\u826F.jp', + '\u5BAE\u57CE.jp', + '\u5BAE\u5D0E.jp', + '\u5BCC\u5C71.jp', + '\u5C71\u53E3.jp', + '\u5C71\u5F62.jp', + '\u5C71\u68A8.jp', + '\u5CA9\u624B.jp', + '\u5C90\u961C.jp', + '\u5CA1\u5C71.jp', + '\u5CF6\u6839.jp', + '\u5E83\u5CF6.jp', + '\u5FB3\u5CF6.jp', + '\u6C96\u7E04.jp', + '\u6ECB\u8CC0.jp', + '\u795E\u5948\u5DDD.jp', + '\u798F\u4E95.jp', + '\u798F\u5CA1.jp', + '\u798F\u5CF6.jp', + '\u79CB\u7530.jp', + '\u7FA4\u99AC.jp', + '\u9999\u5DDD.jp', + '\u9AD8\u77E5.jp', + '\u9CE5\u53D6.jp', + '\u9E7F\u5150\u5CF6.jp', + '*.kawasaki.jp', + '*.kitakyushu.jp', + '*.kobe.jp', + '*.nagoya.jp', + '*.sapporo.jp', + '*.sendai.jp', + '*.yokohama.jp', + '!city.kawasaki.jp', + '!city.kitakyushu.jp', + '!city.kobe.jp', + '!city.nagoya.jp', + '!city.sapporo.jp', + '!city.sendai.jp', + '!city.yokohama.jp', + 'aisai.aichi.jp', + 'ama.aichi.jp', + 'anjo.aichi.jp', + 'asuke.aichi.jp', + 'chiryu.aichi.jp', + 'chita.aichi.jp', + 'fuso.aichi.jp', + 'gamagori.aichi.jp', + 'handa.aichi.jp', + 'hazu.aichi.jp', + 'hekinan.aichi.jp', + 'higashiura.aichi.jp', + 'ichinomiya.aichi.jp', + 'inazawa.aichi.jp', + 'inuyama.aichi.jp', + 'isshiki.aichi.jp', + 'iwakura.aichi.jp', + 'kanie.aichi.jp', + 'kariya.aichi.jp', + 'kasugai.aichi.jp', + 'kira.aichi.jp', + 'kiyosu.aichi.jp', + 'komaki.aichi.jp', + 'konan.aichi.jp', + 'kota.aichi.jp', + 'mihama.aichi.jp', + 'miyoshi.aichi.jp', + 'nishio.aichi.jp', + 'nisshin.aichi.jp', + 'obu.aichi.jp', + 'oguchi.aichi.jp', + 'oharu.aichi.jp', + 'okazaki.aichi.jp', + 'owariasahi.aichi.jp', + 'seto.aichi.jp', + 'shikatsu.aichi.jp', + 'shinshiro.aichi.jp', + 'shitara.aichi.jp', + 'tahara.aichi.jp', + 'takahama.aichi.jp', + 'tobishima.aichi.jp', + 'toei.aichi.jp', + 'togo.aichi.jp', + 'tokai.aichi.jp', + 'tokoname.aichi.jp', + 'toyoake.aichi.jp', + 'toyohashi.aichi.jp', + 'toyokawa.aichi.jp', + 'toyone.aichi.jp', + 'toyota.aichi.jp', + 'tsushima.aichi.jp', + 'yatomi.aichi.jp', + 'akita.akita.jp', + 'daisen.akita.jp', + 'fujisato.akita.jp', + 'gojome.akita.jp', + 'hachirogata.akita.jp', + 'happou.akita.jp', + 'higashinaruse.akita.jp', + 'honjo.akita.jp', + 'honjyo.akita.jp', + 'ikawa.akita.jp', + 'kamikoani.akita.jp', + 'kamioka.akita.jp', + 'katagami.akita.jp', + 'kazuno.akita.jp', + 'kitaakita.akita.jp', + 'kosaka.akita.jp', + 'kyowa.akita.jp', + 'misato.akita.jp', + 'mitane.akita.jp', + 'moriyoshi.akita.jp', + 'nikaho.akita.jp', + 'noshiro.akita.jp', + 'odate.akita.jp', + 'oga.akita.jp', + 'ogata.akita.jp', + 'semboku.akita.jp', + 'yokote.akita.jp', + 'yurihonjo.akita.jp', + 'aomori.aomori.jp', + 'gonohe.aomori.jp', + 'hachinohe.aomori.jp', + 'hashikami.aomori.jp', + 'hiranai.aomori.jp', + 'hirosaki.aomori.jp', + 'itayanagi.aomori.jp', + 'kuroishi.aomori.jp', + 'misawa.aomori.jp', + 'mutsu.aomori.jp', + 'nakadomari.aomori.jp', + 'noheji.aomori.jp', + 'oirase.aomori.jp', + 'owani.aomori.jp', + 'rokunohe.aomori.jp', + 'sannohe.aomori.jp', + 'shichinohe.aomori.jp', + 'shingo.aomori.jp', + 'takko.aomori.jp', + 'towada.aomori.jp', + 'tsugaru.aomori.jp', + 'tsuruta.aomori.jp', + 'abiko.chiba.jp', + 'asahi.chiba.jp', + 'chonan.chiba.jp', + 'chosei.chiba.jp', + 'choshi.chiba.jp', + 'chuo.chiba.jp', + 'funabashi.chiba.jp', + 'futtsu.chiba.jp', + 'hanamigawa.chiba.jp', + 'ichihara.chiba.jp', + 'ichikawa.chiba.jp', + 'ichinomiya.chiba.jp', + 'inzai.chiba.jp', + 'isumi.chiba.jp', + 'kamagaya.chiba.jp', + 'kamogawa.chiba.jp', + 'kashiwa.chiba.jp', + 'katori.chiba.jp', + 'katsuura.chiba.jp', + 'kimitsu.chiba.jp', + 'kisarazu.chiba.jp', + 'kozaki.chiba.jp', + 'kujukuri.chiba.jp', + 'kyonan.chiba.jp', + 'matsudo.chiba.jp', + 'midori.chiba.jp', + 'mihama.chiba.jp', + 'minamiboso.chiba.jp', + 'mobara.chiba.jp', + 'mutsuzawa.chiba.jp', + 'nagara.chiba.jp', + 'nagareyama.chiba.jp', + 'narashino.chiba.jp', + 'narita.chiba.jp', + 'noda.chiba.jp', + 'oamishirasato.chiba.jp', + 'omigawa.chiba.jp', + 'onjuku.chiba.jp', + 'otaki.chiba.jp', + 'sakae.chiba.jp', + 'sakura.chiba.jp', + 'shimofusa.chiba.jp', + 'shirako.chiba.jp', + 'shiroi.chiba.jp', + 'shisui.chiba.jp', + 'sodegaura.chiba.jp', + 'sosa.chiba.jp', + 'tako.chiba.jp', + 'tateyama.chiba.jp', + 'togane.chiba.jp', + 'tohnosho.chiba.jp', + 'tomisato.chiba.jp', + 'urayasu.chiba.jp', + 'yachimata.chiba.jp', + 'yachiyo.chiba.jp', + 'yokaichiba.chiba.jp', + 'yokoshibahikari.chiba.jp', + 'yotsukaido.chiba.jp', + 'ainan.ehime.jp', + 'honai.ehime.jp', + 'ikata.ehime.jp', + 'imabari.ehime.jp', + 'iyo.ehime.jp', + 'kamijima.ehime.jp', + 'kihoku.ehime.jp', + 'kumakogen.ehime.jp', + 'masaki.ehime.jp', + 'matsuno.ehime.jp', + 'matsuyama.ehime.jp', + 'namikata.ehime.jp', + 'niihama.ehime.jp', + 'ozu.ehime.jp', + 'saijo.ehime.jp', + 'seiyo.ehime.jp', + 'shikokuchuo.ehime.jp', + 'tobe.ehime.jp', + 'toon.ehime.jp', + 'uchiko.ehime.jp', + 'uwajima.ehime.jp', + 'yawatahama.ehime.jp', + 'echizen.fukui.jp', + 'eiheiji.fukui.jp', + 'fukui.fukui.jp', + 'ikeda.fukui.jp', + 'katsuyama.fukui.jp', + 'mihama.fukui.jp', + 'minamiechizen.fukui.jp', + 'obama.fukui.jp', + 'ohi.fukui.jp', + 'ono.fukui.jp', + 'sabae.fukui.jp', + 'sakai.fukui.jp', + 'takahama.fukui.jp', + 'tsuruga.fukui.jp', + 'wakasa.fukui.jp', + 'ashiya.fukuoka.jp', + 'buzen.fukuoka.jp', + 'chikugo.fukuoka.jp', + 'chikuho.fukuoka.jp', + 'chikujo.fukuoka.jp', + 'chikushino.fukuoka.jp', + 'chikuzen.fukuoka.jp', + 'chuo.fukuoka.jp', + 'dazaifu.fukuoka.jp', + 'fukuchi.fukuoka.jp', + 'hakata.fukuoka.jp', + 'higashi.fukuoka.jp', + 'hirokawa.fukuoka.jp', + 'hisayama.fukuoka.jp', + 'iizuka.fukuoka.jp', + 'inatsuki.fukuoka.jp', + 'kaho.fukuoka.jp', + 'kasuga.fukuoka.jp', + 'kasuya.fukuoka.jp', + 'kawara.fukuoka.jp', + 'keisen.fukuoka.jp', + 'koga.fukuoka.jp', + 'kurate.fukuoka.jp', + 'kurogi.fukuoka.jp', + 'kurume.fukuoka.jp', + 'minami.fukuoka.jp', + 'miyako.fukuoka.jp', + 'miyama.fukuoka.jp', + 'miyawaka.fukuoka.jp', + 'mizumaki.fukuoka.jp', + 'munakata.fukuoka.jp', + 'nakagawa.fukuoka.jp', + 'nakama.fukuoka.jp', + 'nishi.fukuoka.jp', + 'nogata.fukuoka.jp', + 'ogori.fukuoka.jp', + 'okagaki.fukuoka.jp', + 'okawa.fukuoka.jp', + 'oki.fukuoka.jp', + 'omuta.fukuoka.jp', + 'onga.fukuoka.jp', + 'onojo.fukuoka.jp', + 'oto.fukuoka.jp', + 'saigawa.fukuoka.jp', + 'sasaguri.fukuoka.jp', + 'shingu.fukuoka.jp', + 'shinyoshitomi.fukuoka.jp', + 'shonai.fukuoka.jp', + 'soeda.fukuoka.jp', + 'sue.fukuoka.jp', + 'tachiarai.fukuoka.jp', + 'tagawa.fukuoka.jp', + 'takata.fukuoka.jp', + 'toho.fukuoka.jp', + 'toyotsu.fukuoka.jp', + 'tsuiki.fukuoka.jp', + 'ukiha.fukuoka.jp', + 'umi.fukuoka.jp', + 'usui.fukuoka.jp', + 'yamada.fukuoka.jp', + 'yame.fukuoka.jp', + 'yanagawa.fukuoka.jp', + 'yukuhashi.fukuoka.jp', + 'aizubange.fukushima.jp', + 'aizumisato.fukushima.jp', + 'aizuwakamatsu.fukushima.jp', + 'asakawa.fukushima.jp', + 'bandai.fukushima.jp', + 'date.fukushima.jp', + 'fukushima.fukushima.jp', + 'furudono.fukushima.jp', + 'futaba.fukushima.jp', + 'hanawa.fukushima.jp', + 'higashi.fukushima.jp', + 'hirata.fukushima.jp', + 'hirono.fukushima.jp', + 'iitate.fukushima.jp', + 'inawashiro.fukushima.jp', + 'ishikawa.fukushima.jp', + 'iwaki.fukushima.jp', + 'izumizaki.fukushima.jp', + 'kagamiishi.fukushima.jp', + 'kaneyama.fukushima.jp', + 'kawamata.fukushima.jp', + 'kitakata.fukushima.jp', + 'kitashiobara.fukushima.jp', + 'koori.fukushima.jp', + 'koriyama.fukushima.jp', + 'kunimi.fukushima.jp', + 'miharu.fukushima.jp', + 'mishima.fukushima.jp', + 'namie.fukushima.jp', + 'nango.fukushima.jp', + 'nishiaizu.fukushima.jp', + 'nishigo.fukushima.jp', + 'okuma.fukushima.jp', + 'omotego.fukushima.jp', + 'ono.fukushima.jp', + 'otama.fukushima.jp', + 'samegawa.fukushima.jp', + 'shimogo.fukushima.jp', + 'shirakawa.fukushima.jp', + 'showa.fukushima.jp', + 'soma.fukushima.jp', + 'sukagawa.fukushima.jp', + 'taishin.fukushima.jp', + 'tamakawa.fukushima.jp', + 'tanagura.fukushima.jp', + 'tenei.fukushima.jp', + 'yabuki.fukushima.jp', + 'yamato.fukushima.jp', + 'yamatsuri.fukushima.jp', + 'yanaizu.fukushima.jp', + 'yugawa.fukushima.jp', + 'anpachi.gifu.jp', + 'ena.gifu.jp', + 'gifu.gifu.jp', + 'ginan.gifu.jp', + 'godo.gifu.jp', + 'gujo.gifu.jp', + 'hashima.gifu.jp', + 'hichiso.gifu.jp', + 'hida.gifu.jp', + 'higashishirakawa.gifu.jp', + 'ibigawa.gifu.jp', + 'ikeda.gifu.jp', + 'kakamigahara.gifu.jp', + 'kani.gifu.jp', + 'kasahara.gifu.jp', + 'kasamatsu.gifu.jp', + 'kawaue.gifu.jp', + 'kitagata.gifu.jp', + 'mino.gifu.jp', + 'minokamo.gifu.jp', + 'mitake.gifu.jp', + 'mizunami.gifu.jp', + 'motosu.gifu.jp', + 'nakatsugawa.gifu.jp', + 'ogaki.gifu.jp', + 'sakahogi.gifu.jp', + 'seki.gifu.jp', + 'sekigahara.gifu.jp', + 'shirakawa.gifu.jp', + 'tajimi.gifu.jp', + 'takayama.gifu.jp', + 'tarui.gifu.jp', + 'toki.gifu.jp', + 'tomika.gifu.jp', + 'wanouchi.gifu.jp', + 'yamagata.gifu.jp', + 'yaotsu.gifu.jp', + 'yoro.gifu.jp', + 'annaka.gunma.jp', + 'chiyoda.gunma.jp', + 'fujioka.gunma.jp', + 'higashiagatsuma.gunma.jp', + 'isesaki.gunma.jp', + 'itakura.gunma.jp', + 'kanna.gunma.jp', + 'kanra.gunma.jp', + 'katashina.gunma.jp', + 'kawaba.gunma.jp', + 'kiryu.gunma.jp', + 'kusatsu.gunma.jp', + 'maebashi.gunma.jp', + 'meiwa.gunma.jp', + 'midori.gunma.jp', + 'minakami.gunma.jp', + 'naganohara.gunma.jp', + 'nakanojo.gunma.jp', + 'nanmoku.gunma.jp', + 'numata.gunma.jp', + 'oizumi.gunma.jp', + 'ora.gunma.jp', + 'ota.gunma.jp', + 'shibukawa.gunma.jp', + 'shimonita.gunma.jp', + 'shinto.gunma.jp', + 'showa.gunma.jp', + 'takasaki.gunma.jp', + 'takayama.gunma.jp', + 'tamamura.gunma.jp', + 'tatebayashi.gunma.jp', + 'tomioka.gunma.jp', + 'tsukiyono.gunma.jp', + 'tsumagoi.gunma.jp', + 'ueno.gunma.jp', + 'yoshioka.gunma.jp', + 'asaminami.hiroshima.jp', + 'daiwa.hiroshima.jp', + 'etajima.hiroshima.jp', + 'fuchu.hiroshima.jp', + 'fukuyama.hiroshima.jp', + 'hatsukaichi.hiroshima.jp', + 'higashihiroshima.hiroshima.jp', + 'hongo.hiroshima.jp', + 'jinsekikogen.hiroshima.jp', + 'kaita.hiroshima.jp', + 'kui.hiroshima.jp', + 'kumano.hiroshima.jp', + 'kure.hiroshima.jp', + 'mihara.hiroshima.jp', + 'miyoshi.hiroshima.jp', + 'naka.hiroshima.jp', + 'onomichi.hiroshima.jp', + 'osakikamijima.hiroshima.jp', + 'otake.hiroshima.jp', + 'saka.hiroshima.jp', + 'sera.hiroshima.jp', + 'seranishi.hiroshima.jp', + 'shinichi.hiroshima.jp', + 'shobara.hiroshima.jp', + 'takehara.hiroshima.jp', + 'abashiri.hokkaido.jp', + 'abira.hokkaido.jp', + 'aibetsu.hokkaido.jp', + 'akabira.hokkaido.jp', + 'akkeshi.hokkaido.jp', + 'asahikawa.hokkaido.jp', + 'ashibetsu.hokkaido.jp', + 'ashoro.hokkaido.jp', + 'assabu.hokkaido.jp', + 'atsuma.hokkaido.jp', + 'bibai.hokkaido.jp', + 'biei.hokkaido.jp', + 'bifuka.hokkaido.jp', + 'bihoro.hokkaido.jp', + 'biratori.hokkaido.jp', + 'chippubetsu.hokkaido.jp', + 'chitose.hokkaido.jp', + 'date.hokkaido.jp', + 'ebetsu.hokkaido.jp', + 'embetsu.hokkaido.jp', + 'eniwa.hokkaido.jp', + 'erimo.hokkaido.jp', + 'esan.hokkaido.jp', + 'esashi.hokkaido.jp', + 'fukagawa.hokkaido.jp', + 'fukushima.hokkaido.jp', + 'furano.hokkaido.jp', + 'furubira.hokkaido.jp', + 'haboro.hokkaido.jp', + 'hakodate.hokkaido.jp', + 'hamatonbetsu.hokkaido.jp', + 'hidaka.hokkaido.jp', + 'higashikagura.hokkaido.jp', + 'higashikawa.hokkaido.jp', + 'hiroo.hokkaido.jp', + 'hokuryu.hokkaido.jp', + 'hokuto.hokkaido.jp', + 'honbetsu.hokkaido.jp', + 'horokanai.hokkaido.jp', + 'horonobe.hokkaido.jp', + 'ikeda.hokkaido.jp', + 'imakane.hokkaido.jp', + 'ishikari.hokkaido.jp', + 'iwamizawa.hokkaido.jp', + 'iwanai.hokkaido.jp', + 'kamifurano.hokkaido.jp', + 'kamikawa.hokkaido.jp', + 'kamishihoro.hokkaido.jp', + 'kamisunagawa.hokkaido.jp', + 'kamoenai.hokkaido.jp', + 'kayabe.hokkaido.jp', + 'kembuchi.hokkaido.jp', + 'kikonai.hokkaido.jp', + 'kimobetsu.hokkaido.jp', + 'kitahiroshima.hokkaido.jp', + 'kitami.hokkaido.jp', + 'kiyosato.hokkaido.jp', + 'koshimizu.hokkaido.jp', + 'kunneppu.hokkaido.jp', + 'kuriyama.hokkaido.jp', + 'kuromatsunai.hokkaido.jp', + 'kushiro.hokkaido.jp', + 'kutchan.hokkaido.jp', + 'kyowa.hokkaido.jp', + 'mashike.hokkaido.jp', + 'matsumae.hokkaido.jp', + 'mikasa.hokkaido.jp', + 'minamifurano.hokkaido.jp', + 'mombetsu.hokkaido.jp', + 'moseushi.hokkaido.jp', + 'mukawa.hokkaido.jp', + 'muroran.hokkaido.jp', + 'naie.hokkaido.jp', + 'nakagawa.hokkaido.jp', + 'nakasatsunai.hokkaido.jp', + 'nakatombetsu.hokkaido.jp', + 'nanae.hokkaido.jp', + 'nanporo.hokkaido.jp', + 'nayoro.hokkaido.jp', + 'nemuro.hokkaido.jp', + 'niikappu.hokkaido.jp', + 'niki.hokkaido.jp', + 'nishiokoppe.hokkaido.jp', + 'noboribetsu.hokkaido.jp', + 'numata.hokkaido.jp', + 'obihiro.hokkaido.jp', + 'obira.hokkaido.jp', + 'oketo.hokkaido.jp', + 'okoppe.hokkaido.jp', + 'otaru.hokkaido.jp', + 'otobe.hokkaido.jp', + 'otofuke.hokkaido.jp', + 'otoineppu.hokkaido.jp', + 'oumu.hokkaido.jp', + 'ozora.hokkaido.jp', + 'pippu.hokkaido.jp', + 'rankoshi.hokkaido.jp', + 'rebun.hokkaido.jp', + 'rikubetsu.hokkaido.jp', + 'rishiri.hokkaido.jp', + 'rishirifuji.hokkaido.jp', + 'saroma.hokkaido.jp', + 'sarufutsu.hokkaido.jp', + 'shakotan.hokkaido.jp', + 'shari.hokkaido.jp', + 'shibecha.hokkaido.jp', + 'shibetsu.hokkaido.jp', + 'shikabe.hokkaido.jp', + 'shikaoi.hokkaido.jp', + 'shimamaki.hokkaido.jp', + 'shimizu.hokkaido.jp', + 'shimokawa.hokkaido.jp', + 'shinshinotsu.hokkaido.jp', + 'shintoku.hokkaido.jp', + 'shiranuka.hokkaido.jp', + 'shiraoi.hokkaido.jp', + 'shiriuchi.hokkaido.jp', + 'sobetsu.hokkaido.jp', + 'sunagawa.hokkaido.jp', + 'taiki.hokkaido.jp', + 'takasu.hokkaido.jp', + 'takikawa.hokkaido.jp', + 'takinoue.hokkaido.jp', + 'teshikaga.hokkaido.jp', + 'tobetsu.hokkaido.jp', + 'tohma.hokkaido.jp', + 'tomakomai.hokkaido.jp', + 'tomari.hokkaido.jp', + 'toya.hokkaido.jp', + 'toyako.hokkaido.jp', + 'toyotomi.hokkaido.jp', + 'toyoura.hokkaido.jp', + 'tsubetsu.hokkaido.jp', + 'tsukigata.hokkaido.jp', + 'urakawa.hokkaido.jp', + 'urausu.hokkaido.jp', + 'uryu.hokkaido.jp', + 'utashinai.hokkaido.jp', + 'wakkanai.hokkaido.jp', + 'wassamu.hokkaido.jp', + 'yakumo.hokkaido.jp', + 'yoichi.hokkaido.jp', + 'aioi.hyogo.jp', + 'akashi.hyogo.jp', + 'ako.hyogo.jp', + 'amagasaki.hyogo.jp', + 'aogaki.hyogo.jp', + 'asago.hyogo.jp', + 'ashiya.hyogo.jp', + 'awaji.hyogo.jp', + 'fukusaki.hyogo.jp', + 'goshiki.hyogo.jp', + 'harima.hyogo.jp', + 'himeji.hyogo.jp', + 'ichikawa.hyogo.jp', + 'inagawa.hyogo.jp', + 'itami.hyogo.jp', + 'kakogawa.hyogo.jp', + 'kamigori.hyogo.jp', + 'kamikawa.hyogo.jp', + 'kasai.hyogo.jp', + 'kasuga.hyogo.jp', + 'kawanishi.hyogo.jp', + 'miki.hyogo.jp', + 'minamiawaji.hyogo.jp', + 'nishinomiya.hyogo.jp', + 'nishiwaki.hyogo.jp', + 'ono.hyogo.jp', + 'sanda.hyogo.jp', + 'sannan.hyogo.jp', + 'sasayama.hyogo.jp', + 'sayo.hyogo.jp', + 'shingu.hyogo.jp', + 'shinonsen.hyogo.jp', + 'shiso.hyogo.jp', + 'sumoto.hyogo.jp', + 'taishi.hyogo.jp', + 'taka.hyogo.jp', + 'takarazuka.hyogo.jp', + 'takasago.hyogo.jp', + 'takino.hyogo.jp', + 'tamba.hyogo.jp', + 'tatsuno.hyogo.jp', + 'toyooka.hyogo.jp', + 'yabu.hyogo.jp', + 'yashiro.hyogo.jp', + 'yoka.hyogo.jp', + 'yokawa.hyogo.jp', + 'ami.ibaraki.jp', + 'asahi.ibaraki.jp', + 'bando.ibaraki.jp', + 'chikusei.ibaraki.jp', + 'daigo.ibaraki.jp', + 'fujishiro.ibaraki.jp', + 'hitachi.ibaraki.jp', + 'hitachinaka.ibaraki.jp', + 'hitachiomiya.ibaraki.jp', + 'hitachiota.ibaraki.jp', + 'ibaraki.ibaraki.jp', + 'ina.ibaraki.jp', + 'inashiki.ibaraki.jp', + 'itako.ibaraki.jp', + 'iwama.ibaraki.jp', + 'joso.ibaraki.jp', + 'kamisu.ibaraki.jp', + 'kasama.ibaraki.jp', + 'kashima.ibaraki.jp', + 'kasumigaura.ibaraki.jp', + 'koga.ibaraki.jp', + 'miho.ibaraki.jp', + 'mito.ibaraki.jp', + 'moriya.ibaraki.jp', + 'naka.ibaraki.jp', + 'namegata.ibaraki.jp', + 'oarai.ibaraki.jp', + 'ogawa.ibaraki.jp', + 'omitama.ibaraki.jp', + 'ryugasaki.ibaraki.jp', + 'sakai.ibaraki.jp', + 'sakuragawa.ibaraki.jp', + 'shimodate.ibaraki.jp', + 'shimotsuma.ibaraki.jp', + 'shirosato.ibaraki.jp', + 'sowa.ibaraki.jp', + 'suifu.ibaraki.jp', + 'takahagi.ibaraki.jp', + 'tamatsukuri.ibaraki.jp', + 'tokai.ibaraki.jp', + 'tomobe.ibaraki.jp', + 'tone.ibaraki.jp', + 'toride.ibaraki.jp', + 'tsuchiura.ibaraki.jp', + 'tsukuba.ibaraki.jp', + 'uchihara.ibaraki.jp', + 'ushiku.ibaraki.jp', + 'yachiyo.ibaraki.jp', + 'yamagata.ibaraki.jp', + 'yawara.ibaraki.jp', + 'yuki.ibaraki.jp', + 'anamizu.ishikawa.jp', + 'hakui.ishikawa.jp', + 'hakusan.ishikawa.jp', + 'kaga.ishikawa.jp', + 'kahoku.ishikawa.jp', + 'kanazawa.ishikawa.jp', + 'kawakita.ishikawa.jp', + 'komatsu.ishikawa.jp', + 'nakanoto.ishikawa.jp', + 'nanao.ishikawa.jp', + 'nomi.ishikawa.jp', + 'nonoichi.ishikawa.jp', + 'noto.ishikawa.jp', + 'shika.ishikawa.jp', + 'suzu.ishikawa.jp', + 'tsubata.ishikawa.jp', + 'tsurugi.ishikawa.jp', + 'uchinada.ishikawa.jp', + 'wajima.ishikawa.jp', + 'fudai.iwate.jp', + 'fujisawa.iwate.jp', + 'hanamaki.iwate.jp', + 'hiraizumi.iwate.jp', + 'hirono.iwate.jp', + 'ichinohe.iwate.jp', + 'ichinoseki.iwate.jp', + 'iwaizumi.iwate.jp', + 'iwate.iwate.jp', + 'joboji.iwate.jp', + 'kamaishi.iwate.jp', + 'kanegasaki.iwate.jp', + 'karumai.iwate.jp', + 'kawai.iwate.jp', + 'kitakami.iwate.jp', + 'kuji.iwate.jp', + 'kunohe.iwate.jp', + 'kuzumaki.iwate.jp', + 'miyako.iwate.jp', + 'mizusawa.iwate.jp', + 'morioka.iwate.jp', + 'ninohe.iwate.jp', + 'noda.iwate.jp', + 'ofunato.iwate.jp', + 'oshu.iwate.jp', + 'otsuchi.iwate.jp', + 'rikuzentakata.iwate.jp', + 'shiwa.iwate.jp', + 'shizukuishi.iwate.jp', + 'sumita.iwate.jp', + 'tanohata.iwate.jp', + 'tono.iwate.jp', + 'yahaba.iwate.jp', + 'yamada.iwate.jp', + 'ayagawa.kagawa.jp', + 'higashikagawa.kagawa.jp', + 'kanonji.kagawa.jp', + 'kotohira.kagawa.jp', + 'manno.kagawa.jp', + 'marugame.kagawa.jp', + 'mitoyo.kagawa.jp', + 'naoshima.kagawa.jp', + 'sanuki.kagawa.jp', + 'tadotsu.kagawa.jp', + 'takamatsu.kagawa.jp', + 'tonosho.kagawa.jp', + 'uchinomi.kagawa.jp', + 'utazu.kagawa.jp', + 'zentsuji.kagawa.jp', + 'akune.kagoshima.jp', + 'amami.kagoshima.jp', + 'hioki.kagoshima.jp', + 'isa.kagoshima.jp', + 'isen.kagoshima.jp', + 'izumi.kagoshima.jp', + 'kagoshima.kagoshima.jp', + 'kanoya.kagoshima.jp', + 'kawanabe.kagoshima.jp', + 'kinko.kagoshima.jp', + 'kouyama.kagoshima.jp', + 'makurazaki.kagoshima.jp', + 'matsumoto.kagoshima.jp', + 'minamitane.kagoshima.jp', + 'nakatane.kagoshima.jp', + 'nishinoomote.kagoshima.jp', + 'satsumasendai.kagoshima.jp', + 'soo.kagoshima.jp', + 'tarumizu.kagoshima.jp', + 'yusui.kagoshima.jp', + 'aikawa.kanagawa.jp', + 'atsugi.kanagawa.jp', + 'ayase.kanagawa.jp', + 'chigasaki.kanagawa.jp', + 'ebina.kanagawa.jp', + 'fujisawa.kanagawa.jp', + 'hadano.kanagawa.jp', + 'hakone.kanagawa.jp', + 'hiratsuka.kanagawa.jp', + 'isehara.kanagawa.jp', + 'kaisei.kanagawa.jp', + 'kamakura.kanagawa.jp', + 'kiyokawa.kanagawa.jp', + 'matsuda.kanagawa.jp', + 'minamiashigara.kanagawa.jp', + 'miura.kanagawa.jp', + 'nakai.kanagawa.jp', + 'ninomiya.kanagawa.jp', + 'odawara.kanagawa.jp', + 'oi.kanagawa.jp', + 'oiso.kanagawa.jp', + 'sagamihara.kanagawa.jp', + 'samukawa.kanagawa.jp', + 'tsukui.kanagawa.jp', + 'yamakita.kanagawa.jp', + 'yamato.kanagawa.jp', + 'yokosuka.kanagawa.jp', + 'yugawara.kanagawa.jp', + 'zama.kanagawa.jp', + 'zushi.kanagawa.jp', + 'aki.kochi.jp', + 'geisei.kochi.jp', + 'hidaka.kochi.jp', + 'higashitsuno.kochi.jp', + 'ino.kochi.jp', + 'kagami.kochi.jp', + 'kami.kochi.jp', + 'kitagawa.kochi.jp', + 'kochi.kochi.jp', + 'mihara.kochi.jp', + 'motoyama.kochi.jp', + 'muroto.kochi.jp', + 'nahari.kochi.jp', + 'nakamura.kochi.jp', + 'nankoku.kochi.jp', + 'nishitosa.kochi.jp', + 'niyodogawa.kochi.jp', + 'ochi.kochi.jp', + 'okawa.kochi.jp', + 'otoyo.kochi.jp', + 'otsuki.kochi.jp', + 'sakawa.kochi.jp', + 'sukumo.kochi.jp', + 'susaki.kochi.jp', + 'tosa.kochi.jp', + 'tosashimizu.kochi.jp', + 'toyo.kochi.jp', + 'tsuno.kochi.jp', + 'umaji.kochi.jp', + 'yasuda.kochi.jp', + 'yusuhara.kochi.jp', + 'amakusa.kumamoto.jp', + 'arao.kumamoto.jp', + 'aso.kumamoto.jp', + 'choyo.kumamoto.jp', + 'gyokuto.kumamoto.jp', + 'kamiamakusa.kumamoto.jp', + 'kikuchi.kumamoto.jp', + 'kumamoto.kumamoto.jp', + 'mashiki.kumamoto.jp', + 'mifune.kumamoto.jp', + 'minamata.kumamoto.jp', + 'minamioguni.kumamoto.jp', + 'nagasu.kumamoto.jp', + 'nishihara.kumamoto.jp', + 'oguni.kumamoto.jp', + 'ozu.kumamoto.jp', + 'sumoto.kumamoto.jp', + 'takamori.kumamoto.jp', + 'uki.kumamoto.jp', + 'uto.kumamoto.jp', + 'yamaga.kumamoto.jp', + 'yamato.kumamoto.jp', + 'yatsushiro.kumamoto.jp', + 'ayabe.kyoto.jp', + 'fukuchiyama.kyoto.jp', + 'higashiyama.kyoto.jp', + 'ide.kyoto.jp', + 'ine.kyoto.jp', + 'joyo.kyoto.jp', + 'kameoka.kyoto.jp', + 'kamo.kyoto.jp', + 'kita.kyoto.jp', + 'kizu.kyoto.jp', + 'kumiyama.kyoto.jp', + 'kyotamba.kyoto.jp', + 'kyotanabe.kyoto.jp', + 'kyotango.kyoto.jp', + 'maizuru.kyoto.jp', + 'minami.kyoto.jp', + 'minamiyamashiro.kyoto.jp', + 'miyazu.kyoto.jp', + 'muko.kyoto.jp', + 'nagaokakyo.kyoto.jp', + 'nakagyo.kyoto.jp', + 'nantan.kyoto.jp', + 'oyamazaki.kyoto.jp', + 'sakyo.kyoto.jp', + 'seika.kyoto.jp', + 'tanabe.kyoto.jp', + 'uji.kyoto.jp', + 'ujitawara.kyoto.jp', + 'wazuka.kyoto.jp', + 'yamashina.kyoto.jp', + 'yawata.kyoto.jp', + 'asahi.mie.jp', + 'inabe.mie.jp', + 'ise.mie.jp', + 'kameyama.mie.jp', + 'kawagoe.mie.jp', + 'kiho.mie.jp', + 'kisosaki.mie.jp', + 'kiwa.mie.jp', + 'komono.mie.jp', + 'kumano.mie.jp', + 'kuwana.mie.jp', + 'matsusaka.mie.jp', + 'meiwa.mie.jp', + 'mihama.mie.jp', + 'minamiise.mie.jp', + 'misugi.mie.jp', + 'miyama.mie.jp', + 'nabari.mie.jp', + 'shima.mie.jp', + 'suzuka.mie.jp', + 'tado.mie.jp', + 'taiki.mie.jp', + 'taki.mie.jp', + 'tamaki.mie.jp', + 'toba.mie.jp', + 'tsu.mie.jp', + 'udono.mie.jp', + 'ureshino.mie.jp', + 'watarai.mie.jp', + 'yokkaichi.mie.jp', + 'furukawa.miyagi.jp', + 'higashimatsushima.miyagi.jp', + 'ishinomaki.miyagi.jp', + 'iwanuma.miyagi.jp', + 'kakuda.miyagi.jp', + 'kami.miyagi.jp', + 'kawasaki.miyagi.jp', + 'marumori.miyagi.jp', + 'matsushima.miyagi.jp', + 'minamisanriku.miyagi.jp', + 'misato.miyagi.jp', + 'murata.miyagi.jp', + 'natori.miyagi.jp', + 'ogawara.miyagi.jp', + 'ohira.miyagi.jp', + 'onagawa.miyagi.jp', + 'osaki.miyagi.jp', + 'rifu.miyagi.jp', + 'semine.miyagi.jp', + 'shibata.miyagi.jp', + 'shichikashuku.miyagi.jp', + 'shikama.miyagi.jp', + 'shiogama.miyagi.jp', + 'shiroishi.miyagi.jp', + 'tagajo.miyagi.jp', + 'taiwa.miyagi.jp', + 'tome.miyagi.jp', + 'tomiya.miyagi.jp', + 'wakuya.miyagi.jp', + 'watari.miyagi.jp', + 'yamamoto.miyagi.jp', + 'zao.miyagi.jp', + 'aya.miyazaki.jp', + 'ebino.miyazaki.jp', + 'gokase.miyazaki.jp', + 'hyuga.miyazaki.jp', + 'kadogawa.miyazaki.jp', + 'kawaminami.miyazaki.jp', + 'kijo.miyazaki.jp', + 'kitagawa.miyazaki.jp', + 'kitakata.miyazaki.jp', + 'kitaura.miyazaki.jp', + 'kobayashi.miyazaki.jp', + 'kunitomi.miyazaki.jp', + 'kushima.miyazaki.jp', + 'mimata.miyazaki.jp', + 'miyakonojo.miyazaki.jp', + 'miyazaki.miyazaki.jp', + 'morotsuka.miyazaki.jp', + 'nichinan.miyazaki.jp', + 'nishimera.miyazaki.jp', + 'nobeoka.miyazaki.jp', + 'saito.miyazaki.jp', + 'shiiba.miyazaki.jp', + 'shintomi.miyazaki.jp', + 'takaharu.miyazaki.jp', + 'takanabe.miyazaki.jp', + 'takazaki.miyazaki.jp', + 'tsuno.miyazaki.jp', + 'achi.nagano.jp', + 'agematsu.nagano.jp', + 'anan.nagano.jp', + 'aoki.nagano.jp', + 'asahi.nagano.jp', + 'azumino.nagano.jp', + 'chikuhoku.nagano.jp', + 'chikuma.nagano.jp', + 'chino.nagano.jp', + 'fujimi.nagano.jp', + 'hakuba.nagano.jp', + 'hara.nagano.jp', + 'hiraya.nagano.jp', + 'iida.nagano.jp', + 'iijima.nagano.jp', + 'iiyama.nagano.jp', + 'iizuna.nagano.jp', + 'ikeda.nagano.jp', + 'ikusaka.nagano.jp', + 'ina.nagano.jp', + 'karuizawa.nagano.jp', + 'kawakami.nagano.jp', + 'kiso.nagano.jp', + 'kisofukushima.nagano.jp', + 'kitaaiki.nagano.jp', + 'komagane.nagano.jp', + 'komoro.nagano.jp', + 'matsukawa.nagano.jp', + 'matsumoto.nagano.jp', + 'miasa.nagano.jp', + 'minamiaiki.nagano.jp', + 'minamimaki.nagano.jp', + 'minamiminowa.nagano.jp', + 'minowa.nagano.jp', + 'miyada.nagano.jp', + 'miyota.nagano.jp', + 'mochizuki.nagano.jp', + 'nagano.nagano.jp', + 'nagawa.nagano.jp', + 'nagiso.nagano.jp', + 'nakagawa.nagano.jp', + 'nakano.nagano.jp', + 'nozawaonsen.nagano.jp', + 'obuse.nagano.jp', + 'ogawa.nagano.jp', + 'okaya.nagano.jp', + 'omachi.nagano.jp', + 'omi.nagano.jp', + 'ookuwa.nagano.jp', + 'ooshika.nagano.jp', + 'otaki.nagano.jp', + 'otari.nagano.jp', + 'sakae.nagano.jp', + 'sakaki.nagano.jp', + 'saku.nagano.jp', + 'sakuho.nagano.jp', + 'shimosuwa.nagano.jp', + 'shinanomachi.nagano.jp', + 'shiojiri.nagano.jp', + 'suwa.nagano.jp', + 'suzaka.nagano.jp', + 'takagi.nagano.jp', + 'takamori.nagano.jp', + 'takayama.nagano.jp', + 'tateshina.nagano.jp', + 'tatsuno.nagano.jp', + 'togakushi.nagano.jp', + 'togura.nagano.jp', + 'tomi.nagano.jp', + 'ueda.nagano.jp', + 'wada.nagano.jp', + 'yamagata.nagano.jp', + 'yamanouchi.nagano.jp', + 'yasaka.nagano.jp', + 'yasuoka.nagano.jp', + 'chijiwa.nagasaki.jp', + 'futsu.nagasaki.jp', + 'goto.nagasaki.jp', + 'hasami.nagasaki.jp', + 'hirado.nagasaki.jp', + 'iki.nagasaki.jp', + 'isahaya.nagasaki.jp', + 'kawatana.nagasaki.jp', + 'kuchinotsu.nagasaki.jp', + 'matsuura.nagasaki.jp', + 'nagasaki.nagasaki.jp', + 'obama.nagasaki.jp', + 'omura.nagasaki.jp', + 'oseto.nagasaki.jp', + 'saikai.nagasaki.jp', + 'sasebo.nagasaki.jp', + 'seihi.nagasaki.jp', + 'shimabara.nagasaki.jp', + 'shinkamigoto.nagasaki.jp', + 'togitsu.nagasaki.jp', + 'tsushima.nagasaki.jp', + 'unzen.nagasaki.jp', + 'ando.nara.jp', + 'gose.nara.jp', + 'heguri.nara.jp', + 'higashiyoshino.nara.jp', + 'ikaruga.nara.jp', + 'ikoma.nara.jp', + 'kamikitayama.nara.jp', + 'kanmaki.nara.jp', + 'kashiba.nara.jp', + 'kashihara.nara.jp', + 'katsuragi.nara.jp', + 'kawai.nara.jp', + 'kawakami.nara.jp', + 'kawanishi.nara.jp', + 'koryo.nara.jp', + 'kurotaki.nara.jp', + 'mitsue.nara.jp', + 'miyake.nara.jp', + 'nara.nara.jp', + 'nosegawa.nara.jp', + 'oji.nara.jp', + 'ouda.nara.jp', + 'oyodo.nara.jp', + 'sakurai.nara.jp', + 'sango.nara.jp', + 'shimoichi.nara.jp', + 'shimokitayama.nara.jp', + 'shinjo.nara.jp', + 'soni.nara.jp', + 'takatori.nara.jp', + 'tawaramoto.nara.jp', + 'tenkawa.nara.jp', + 'tenri.nara.jp', + 'uda.nara.jp', + 'yamatokoriyama.nara.jp', + 'yamatotakada.nara.jp', + 'yamazoe.nara.jp', + 'yoshino.nara.jp', + 'aga.niigata.jp', + 'agano.niigata.jp', + 'gosen.niigata.jp', + 'itoigawa.niigata.jp', + 'izumozaki.niigata.jp', + 'joetsu.niigata.jp', + 'kamo.niigata.jp', + 'kariwa.niigata.jp', + 'kashiwazaki.niigata.jp', + 'minamiuonuma.niigata.jp', + 'mitsuke.niigata.jp', + 'muika.niigata.jp', + 'murakami.niigata.jp', + 'myoko.niigata.jp', + 'nagaoka.niigata.jp', + 'niigata.niigata.jp', + 'ojiya.niigata.jp', + 'omi.niigata.jp', + 'sado.niigata.jp', + 'sanjo.niigata.jp', + 'seiro.niigata.jp', + 'seirou.niigata.jp', + 'sekikawa.niigata.jp', + 'shibata.niigata.jp', + 'tagami.niigata.jp', + 'tainai.niigata.jp', + 'tochio.niigata.jp', + 'tokamachi.niigata.jp', + 'tsubame.niigata.jp', + 'tsunan.niigata.jp', + 'uonuma.niigata.jp', + 'yahiko.niigata.jp', + 'yoita.niigata.jp', + 'yuzawa.niigata.jp', + 'beppu.oita.jp', + 'bungoono.oita.jp', + 'bungotakada.oita.jp', + 'hasama.oita.jp', + 'hiji.oita.jp', + 'himeshima.oita.jp', + 'hita.oita.jp', + 'kamitsue.oita.jp', + 'kokonoe.oita.jp', + 'kuju.oita.jp', + 'kunisaki.oita.jp', + 'kusu.oita.jp', + 'oita.oita.jp', + 'saiki.oita.jp', + 'taketa.oita.jp', + 'tsukumi.oita.jp', + 'usa.oita.jp', + 'usuki.oita.jp', + 'yufu.oita.jp', + 'akaiwa.okayama.jp', + 'asakuchi.okayama.jp', + 'bizen.okayama.jp', + 'hayashima.okayama.jp', + 'ibara.okayama.jp', + 'kagamino.okayama.jp', + 'kasaoka.okayama.jp', + 'kibichuo.okayama.jp', + 'kumenan.okayama.jp', + 'kurashiki.okayama.jp', + 'maniwa.okayama.jp', + 'misaki.okayama.jp', + 'nagi.okayama.jp', + 'niimi.okayama.jp', + 'nishiawakura.okayama.jp', + 'okayama.okayama.jp', + 'satosho.okayama.jp', + 'setouchi.okayama.jp', + 'shinjo.okayama.jp', + 'shoo.okayama.jp', + 'soja.okayama.jp', + 'takahashi.okayama.jp', + 'tamano.okayama.jp', + 'tsuyama.okayama.jp', + 'wake.okayama.jp', + 'yakage.okayama.jp', + 'aguni.okinawa.jp', + 'ginowan.okinawa.jp', + 'ginoza.okinawa.jp', + 'gushikami.okinawa.jp', + 'haebaru.okinawa.jp', + 'higashi.okinawa.jp', + 'hirara.okinawa.jp', + 'iheya.okinawa.jp', + 'ishigaki.okinawa.jp', + 'ishikawa.okinawa.jp', + 'itoman.okinawa.jp', + 'izena.okinawa.jp', + 'kadena.okinawa.jp', + 'kin.okinawa.jp', + 'kitadaito.okinawa.jp', + 'kitanakagusuku.okinawa.jp', + 'kumejima.okinawa.jp', + 'kunigami.okinawa.jp', + 'minamidaito.okinawa.jp', + 'motobu.okinawa.jp', + 'nago.okinawa.jp', + 'naha.okinawa.jp', + 'nakagusuku.okinawa.jp', + 'nakijin.okinawa.jp', + 'nanjo.okinawa.jp', + 'nishihara.okinawa.jp', + 'ogimi.okinawa.jp', + 'okinawa.okinawa.jp', + 'onna.okinawa.jp', + 'shimoji.okinawa.jp', + 'taketomi.okinawa.jp', + 'tarama.okinawa.jp', + 'tokashiki.okinawa.jp', + 'tomigusuku.okinawa.jp', + 'tonaki.okinawa.jp', + 'urasoe.okinawa.jp', + 'uruma.okinawa.jp', + 'yaese.okinawa.jp', + 'yomitan.okinawa.jp', + 'yonabaru.okinawa.jp', + 'yonaguni.okinawa.jp', + 'zamami.okinawa.jp', + 'abeno.osaka.jp', + 'chihayaakasaka.osaka.jp', + 'chuo.osaka.jp', + 'daito.osaka.jp', + 'fujiidera.osaka.jp', + 'habikino.osaka.jp', + 'hannan.osaka.jp', + 'higashiosaka.osaka.jp', + 'higashisumiyoshi.osaka.jp', + 'higashiyodogawa.osaka.jp', + 'hirakata.osaka.jp', + 'ibaraki.osaka.jp', + 'ikeda.osaka.jp', + 'izumi.osaka.jp', + 'izumiotsu.osaka.jp', + 'izumisano.osaka.jp', + 'kadoma.osaka.jp', + 'kaizuka.osaka.jp', + 'kanan.osaka.jp', + 'kashiwara.osaka.jp', + 'katano.osaka.jp', + 'kawachinagano.osaka.jp', + 'kishiwada.osaka.jp', + 'kita.osaka.jp', + 'kumatori.osaka.jp', + 'matsubara.osaka.jp', + 'minato.osaka.jp', + 'minoh.osaka.jp', + 'misaki.osaka.jp', + 'moriguchi.osaka.jp', + 'neyagawa.osaka.jp', + 'nishi.osaka.jp', + 'nose.osaka.jp', + 'osakasayama.osaka.jp', + 'sakai.osaka.jp', + 'sayama.osaka.jp', + 'sennan.osaka.jp', + 'settsu.osaka.jp', + 'shijonawate.osaka.jp', + 'shimamoto.osaka.jp', + 'suita.osaka.jp', + 'tadaoka.osaka.jp', + 'taishi.osaka.jp', + 'tajiri.osaka.jp', + 'takaishi.osaka.jp', + 'takatsuki.osaka.jp', + 'tondabayashi.osaka.jp', + 'toyonaka.osaka.jp', + 'toyono.osaka.jp', + 'yao.osaka.jp', + 'ariake.saga.jp', + 'arita.saga.jp', + 'fukudomi.saga.jp', + 'genkai.saga.jp', + 'hamatama.saga.jp', + 'hizen.saga.jp', + 'imari.saga.jp', + 'kamimine.saga.jp', + 'kanzaki.saga.jp', + 'karatsu.saga.jp', + 'kashima.saga.jp', + 'kitagata.saga.jp', + 'kitahata.saga.jp', + 'kiyama.saga.jp', + 'kouhoku.saga.jp', + 'kyuragi.saga.jp', + 'nishiarita.saga.jp', + 'ogi.saga.jp', + 'omachi.saga.jp', + 'ouchi.saga.jp', + 'saga.saga.jp', + 'shiroishi.saga.jp', + 'taku.saga.jp', + 'tara.saga.jp', + 'tosu.saga.jp', + 'yoshinogari.saga.jp', + 'arakawa.saitama.jp', + 'asaka.saitama.jp', + 'chichibu.saitama.jp', + 'fujimi.saitama.jp', + 'fujimino.saitama.jp', + 'fukaya.saitama.jp', + 'hanno.saitama.jp', + 'hanyu.saitama.jp', + 'hasuda.saitama.jp', + 'hatogaya.saitama.jp', + 'hatoyama.saitama.jp', + 'hidaka.saitama.jp', + 'higashichichibu.saitama.jp', + 'higashimatsuyama.saitama.jp', + 'honjo.saitama.jp', + 'ina.saitama.jp', + 'iruma.saitama.jp', + 'iwatsuki.saitama.jp', + 'kamiizumi.saitama.jp', + 'kamikawa.saitama.jp', + 'kamisato.saitama.jp', + 'kasukabe.saitama.jp', + 'kawagoe.saitama.jp', + 'kawaguchi.saitama.jp', + 'kawajima.saitama.jp', + 'kazo.saitama.jp', + 'kitamoto.saitama.jp', + 'koshigaya.saitama.jp', + 'kounosu.saitama.jp', + 'kuki.saitama.jp', + 'kumagaya.saitama.jp', + 'matsubushi.saitama.jp', + 'minano.saitama.jp', + 'misato.saitama.jp', + 'miyashiro.saitama.jp', + 'miyoshi.saitama.jp', + 'moroyama.saitama.jp', + 'nagatoro.saitama.jp', + 'namegawa.saitama.jp', + 'niiza.saitama.jp', + 'ogano.saitama.jp', + 'ogawa.saitama.jp', + 'ogose.saitama.jp', + 'okegawa.saitama.jp', + 'omiya.saitama.jp', + 'otaki.saitama.jp', + 'ranzan.saitama.jp', + 'ryokami.saitama.jp', + 'saitama.saitama.jp', + 'sakado.saitama.jp', + 'satte.saitama.jp', + 'sayama.saitama.jp', + 'shiki.saitama.jp', + 'shiraoka.saitama.jp', + 'soka.saitama.jp', + 'sugito.saitama.jp', + 'toda.saitama.jp', + 'tokigawa.saitama.jp', + 'tokorozawa.saitama.jp', + 'tsurugashima.saitama.jp', + 'urawa.saitama.jp', + 'warabi.saitama.jp', + 'yashio.saitama.jp', + 'yokoze.saitama.jp', + 'yono.saitama.jp', + 'yorii.saitama.jp', + 'yoshida.saitama.jp', + 'yoshikawa.saitama.jp', + 'yoshimi.saitama.jp', + 'aisho.shiga.jp', + 'gamo.shiga.jp', + 'higashiomi.shiga.jp', + 'hikone.shiga.jp', + 'koka.shiga.jp', + 'konan.shiga.jp', + 'kosei.shiga.jp', + 'koto.shiga.jp', + 'kusatsu.shiga.jp', + 'maibara.shiga.jp', + 'moriyama.shiga.jp', + 'nagahama.shiga.jp', + 'nishiazai.shiga.jp', + 'notogawa.shiga.jp', + 'omihachiman.shiga.jp', + 'otsu.shiga.jp', + 'ritto.shiga.jp', + 'ryuoh.shiga.jp', + 'takashima.shiga.jp', + 'takatsuki.shiga.jp', + 'torahime.shiga.jp', + 'toyosato.shiga.jp', + 'yasu.shiga.jp', + 'akagi.shimane.jp', + 'ama.shimane.jp', + 'gotsu.shimane.jp', + 'hamada.shimane.jp', + 'higashiizumo.shimane.jp', + 'hikawa.shimane.jp', + 'hikimi.shimane.jp', + 'izumo.shimane.jp', + 'kakinoki.shimane.jp', + 'masuda.shimane.jp', + 'matsue.shimane.jp', + 'misato.shimane.jp', + 'nishinoshima.shimane.jp', + 'ohda.shimane.jp', + 'okinoshima.shimane.jp', + 'okuizumo.shimane.jp', + 'shimane.shimane.jp', + 'tamayu.shimane.jp', + 'tsuwano.shimane.jp', + 'unnan.shimane.jp', + 'yakumo.shimane.jp', + 'yasugi.shimane.jp', + 'yatsuka.shimane.jp', + 'arai.shizuoka.jp', + 'atami.shizuoka.jp', + 'fuji.shizuoka.jp', + 'fujieda.shizuoka.jp', + 'fujikawa.shizuoka.jp', + 'fujinomiya.shizuoka.jp', + 'fukuroi.shizuoka.jp', + 'gotemba.shizuoka.jp', + 'haibara.shizuoka.jp', + 'hamamatsu.shizuoka.jp', + 'higashiizu.shizuoka.jp', + 'ito.shizuoka.jp', + 'iwata.shizuoka.jp', + 'izu.shizuoka.jp', + 'izunokuni.shizuoka.jp', + 'kakegawa.shizuoka.jp', + 'kannami.shizuoka.jp', + 'kawanehon.shizuoka.jp', + 'kawazu.shizuoka.jp', + 'kikugawa.shizuoka.jp', + 'kosai.shizuoka.jp', + 'makinohara.shizuoka.jp', + 'matsuzaki.shizuoka.jp', + 'minamiizu.shizuoka.jp', + 'mishima.shizuoka.jp', + 'morimachi.shizuoka.jp', + 'nishiizu.shizuoka.jp', + 'numazu.shizuoka.jp', + 'omaezaki.shizuoka.jp', + 'shimada.shizuoka.jp', + 'shimizu.shizuoka.jp', + 'shimoda.shizuoka.jp', + 'shizuoka.shizuoka.jp', + 'susono.shizuoka.jp', + 'yaizu.shizuoka.jp', + 'yoshida.shizuoka.jp', + 'ashikaga.tochigi.jp', + 'bato.tochigi.jp', + 'haga.tochigi.jp', + 'ichikai.tochigi.jp', + 'iwafune.tochigi.jp', + 'kaminokawa.tochigi.jp', + 'kanuma.tochigi.jp', + 'karasuyama.tochigi.jp', + 'kuroiso.tochigi.jp', + 'mashiko.tochigi.jp', + 'mibu.tochigi.jp', + 'moka.tochigi.jp', + 'motegi.tochigi.jp', + 'nasu.tochigi.jp', + 'nasushiobara.tochigi.jp', + 'nikko.tochigi.jp', + 'nishikata.tochigi.jp', + 'nogi.tochigi.jp', + 'ohira.tochigi.jp', + 'ohtawara.tochigi.jp', + 'oyama.tochigi.jp', + 'sakura.tochigi.jp', + 'sano.tochigi.jp', + 'shimotsuke.tochigi.jp', + 'shioya.tochigi.jp', + 'takanezawa.tochigi.jp', + 'tochigi.tochigi.jp', + 'tsuga.tochigi.jp', + 'ujiie.tochigi.jp', + 'utsunomiya.tochigi.jp', + 'yaita.tochigi.jp', + 'aizumi.tokushima.jp', + 'anan.tokushima.jp', + 'ichiba.tokushima.jp', + 'itano.tokushima.jp', + 'kainan.tokushima.jp', + 'komatsushima.tokushima.jp', + 'matsushige.tokushima.jp', + 'mima.tokushima.jp', + 'minami.tokushima.jp', + 'miyoshi.tokushima.jp', + 'mugi.tokushima.jp', + 'nakagawa.tokushima.jp', + 'naruto.tokushima.jp', + 'sanagochi.tokushima.jp', + 'shishikui.tokushima.jp', + 'tokushima.tokushima.jp', + 'wajiki.tokushima.jp', + 'adachi.tokyo.jp', + 'akiruno.tokyo.jp', + 'akishima.tokyo.jp', + 'aogashima.tokyo.jp', + 'arakawa.tokyo.jp', + 'bunkyo.tokyo.jp', + 'chiyoda.tokyo.jp', + 'chofu.tokyo.jp', + 'chuo.tokyo.jp', + 'edogawa.tokyo.jp', + 'fuchu.tokyo.jp', + 'fussa.tokyo.jp', + 'hachijo.tokyo.jp', + 'hachioji.tokyo.jp', + 'hamura.tokyo.jp', + 'higashikurume.tokyo.jp', + 'higashimurayama.tokyo.jp', + 'higashiyamato.tokyo.jp', + 'hino.tokyo.jp', + 'hinode.tokyo.jp', + 'hinohara.tokyo.jp', + 'inagi.tokyo.jp', + 'itabashi.tokyo.jp', + 'katsushika.tokyo.jp', + 'kita.tokyo.jp', + 'kiyose.tokyo.jp', + 'kodaira.tokyo.jp', + 'koganei.tokyo.jp', + 'kokubunji.tokyo.jp', + 'komae.tokyo.jp', + 'koto.tokyo.jp', + 'kouzushima.tokyo.jp', + 'kunitachi.tokyo.jp', + 'machida.tokyo.jp', + 'meguro.tokyo.jp', + 'minato.tokyo.jp', + 'mitaka.tokyo.jp', + 'mizuho.tokyo.jp', + 'musashimurayama.tokyo.jp', + 'musashino.tokyo.jp', + 'nakano.tokyo.jp', + 'nerima.tokyo.jp', + 'ogasawara.tokyo.jp', + 'okutama.tokyo.jp', + 'ome.tokyo.jp', + 'oshima.tokyo.jp', + 'ota.tokyo.jp', + 'setagaya.tokyo.jp', + 'shibuya.tokyo.jp', + 'shinagawa.tokyo.jp', + 'shinjuku.tokyo.jp', + 'suginami.tokyo.jp', + 'sumida.tokyo.jp', + 'tachikawa.tokyo.jp', + 'taito.tokyo.jp', + 'tama.tokyo.jp', + 'toshima.tokyo.jp', + 'chizu.tottori.jp', + 'hino.tottori.jp', + 'kawahara.tottori.jp', + 'koge.tottori.jp', + 'kotoura.tottori.jp', + 'misasa.tottori.jp', + 'nanbu.tottori.jp', + 'nichinan.tottori.jp', + 'sakaiminato.tottori.jp', + 'tottori.tottori.jp', + 'wakasa.tottori.jp', + 'yazu.tottori.jp', + 'yonago.tottori.jp', + 'asahi.toyama.jp', + 'fuchu.toyama.jp', + 'fukumitsu.toyama.jp', + 'funahashi.toyama.jp', + 'himi.toyama.jp', + 'imizu.toyama.jp', + 'inami.toyama.jp', + 'johana.toyama.jp', + 'kamiichi.toyama.jp', + 'kurobe.toyama.jp', + 'nakaniikawa.toyama.jp', + 'namerikawa.toyama.jp', + 'nanto.toyama.jp', + 'nyuzen.toyama.jp', + 'oyabe.toyama.jp', + 'taira.toyama.jp', + 'takaoka.toyama.jp', + 'tateyama.toyama.jp', + 'toga.toyama.jp', + 'tonami.toyama.jp', + 'toyama.toyama.jp', + 'unazuki.toyama.jp', + 'uozu.toyama.jp', + 'yamada.toyama.jp', + 'arida.wakayama.jp', + 'aridagawa.wakayama.jp', + 'gobo.wakayama.jp', + 'hashimoto.wakayama.jp', + 'hidaka.wakayama.jp', + 'hirogawa.wakayama.jp', + 'inami.wakayama.jp', + 'iwade.wakayama.jp', + 'kainan.wakayama.jp', + 'kamitonda.wakayama.jp', + 'katsuragi.wakayama.jp', + 'kimino.wakayama.jp', + 'kinokawa.wakayama.jp', + 'kitayama.wakayama.jp', + 'koya.wakayama.jp', + 'koza.wakayama.jp', + 'kozagawa.wakayama.jp', + 'kudoyama.wakayama.jp', + 'kushimoto.wakayama.jp', + 'mihama.wakayama.jp', + 'misato.wakayama.jp', + 'nachikatsuura.wakayama.jp', + 'shingu.wakayama.jp', + 'shirahama.wakayama.jp', + 'taiji.wakayama.jp', + 'tanabe.wakayama.jp', + 'wakayama.wakayama.jp', + 'yuasa.wakayama.jp', + 'yura.wakayama.jp', + 'asahi.yamagata.jp', + 'funagata.yamagata.jp', + 'higashine.yamagata.jp', + 'iide.yamagata.jp', + 'kahoku.yamagata.jp', + 'kaminoyama.yamagata.jp', + 'kaneyama.yamagata.jp', + 'kawanishi.yamagata.jp', + 'mamurogawa.yamagata.jp', + 'mikawa.yamagata.jp', + 'murayama.yamagata.jp', + 'nagai.yamagata.jp', + 'nakayama.yamagata.jp', + 'nanyo.yamagata.jp', + 'nishikawa.yamagata.jp', + 'obanazawa.yamagata.jp', + 'oe.yamagata.jp', + 'oguni.yamagata.jp', + 'ohkura.yamagata.jp', + 'oishida.yamagata.jp', + 'sagae.yamagata.jp', + 'sakata.yamagata.jp', + 'sakegawa.yamagata.jp', + 'shinjo.yamagata.jp', + 'shirataka.yamagata.jp', + 'shonai.yamagata.jp', + 'takahata.yamagata.jp', + 'tendo.yamagata.jp', + 'tozawa.yamagata.jp', + 'tsuruoka.yamagata.jp', + 'yamagata.yamagata.jp', + 'yamanobe.yamagata.jp', + 'yonezawa.yamagata.jp', + 'yuza.yamagata.jp', + 'abu.yamaguchi.jp', + 'hagi.yamaguchi.jp', + 'hikari.yamaguchi.jp', + 'hofu.yamaguchi.jp', + 'iwakuni.yamaguchi.jp', + 'kudamatsu.yamaguchi.jp', + 'mitou.yamaguchi.jp', + 'nagato.yamaguchi.jp', + 'oshima.yamaguchi.jp', + 'shimonoseki.yamaguchi.jp', + 'shunan.yamaguchi.jp', + 'tabuse.yamaguchi.jp', + 'tokuyama.yamaguchi.jp', + 'toyota.yamaguchi.jp', + 'ube.yamaguchi.jp', + 'yuu.yamaguchi.jp', + 'chuo.yamanashi.jp', + 'doshi.yamanashi.jp', + 'fuefuki.yamanashi.jp', + 'fujikawa.yamanashi.jp', + 'fujikawaguchiko.yamanashi.jp', + 'fujiyoshida.yamanashi.jp', + 'hayakawa.yamanashi.jp', + 'hokuto.yamanashi.jp', + 'ichikawamisato.yamanashi.jp', + 'kai.yamanashi.jp', + 'kofu.yamanashi.jp', + 'koshu.yamanashi.jp', + 'kosuge.yamanashi.jp', + 'minami-alps.yamanashi.jp', + 'minobu.yamanashi.jp', + 'nakamichi.yamanashi.jp', + 'nanbu.yamanashi.jp', + 'narusawa.yamanashi.jp', + 'nirasaki.yamanashi.jp', + 'nishikatsura.yamanashi.jp', + 'oshino.yamanashi.jp', + 'otsuki.yamanashi.jp', + 'showa.yamanashi.jp', + 'tabayama.yamanashi.jp', + 'tsuru.yamanashi.jp', + 'uenohara.yamanashi.jp', + 'yamanakako.yamanashi.jp', + 'yamanashi.yamanashi.jp', + 'ke', + 'ac.ke', + 'co.ke', + 'go.ke', + 'info.ke', + 'me.ke', + 'mobi.ke', + 'ne.ke', + 'or.ke', + 'sc.ke', + 'kg', + 'org.kg', + 'net.kg', + 'com.kg', + 'edu.kg', + 'gov.kg', + 'mil.kg', + '*.kh', + 'ki', + 'edu.ki', + 'biz.ki', + 'net.ki', + 'org.ki', + 'gov.ki', + 'info.ki', + 'com.ki', + 'km', + 'org.km', + 'nom.km', + 'gov.km', + 'prd.km', + 'tm.km', + 'edu.km', + 'mil.km', + 'ass.km', + 'com.km', + 'coop.km', + 'asso.km', + 'presse.km', + 'medecin.km', + 'notaires.km', + 'pharmaciens.km', + 'veterinaire.km', + 'gouv.km', + 'kn', + 'net.kn', + 'org.kn', + 'edu.kn', + 'gov.kn', + 'kp', + 'com.kp', + 'edu.kp', + 'gov.kp', + 'org.kp', + 'rep.kp', + 'tra.kp', + 'kr', + 'ac.kr', + 'co.kr', + 'es.kr', + 'go.kr', + 'hs.kr', + 'kg.kr', + 'mil.kr', + 'ms.kr', + 'ne.kr', + 'or.kr', + 'pe.kr', + 're.kr', + 'sc.kr', + 'busan.kr', + 'chungbuk.kr', + 'chungnam.kr', + 'daegu.kr', + 'daejeon.kr', + 'gangwon.kr', + 'gwangju.kr', + 'gyeongbuk.kr', + 'gyeonggi.kr', + 'gyeongnam.kr', + 'incheon.kr', + 'jeju.kr', + 'jeonbuk.kr', + 'jeonnam.kr', + 'seoul.kr', + 'ulsan.kr', + 'kw', + 'com.kw', + 'edu.kw', + 'emb.kw', + 'gov.kw', + 'ind.kw', + 'net.kw', + 'org.kw', + 'ky', + 'com.ky', + 'edu.ky', + 'net.ky', + 'org.ky', + 'kz', + 'org.kz', + 'edu.kz', + 'net.kz', + 'gov.kz', + 'mil.kz', + 'com.kz', + 'la', + 'int.la', + 'net.la', + 'info.la', + 'edu.la', + 'gov.la', + 'per.la', + 'com.la', + 'org.la', + 'lb', + 'com.lb', + 'edu.lb', + 'gov.lb', + 'net.lb', + 'org.lb', + 'lc', + 'com.lc', + 'net.lc', + 'co.lc', + 'org.lc', + 'edu.lc', + 'gov.lc', + 'li', + 'lk', + 'gov.lk', + 'sch.lk', + 'net.lk', + 'int.lk', + 'com.lk', + 'org.lk', + 'edu.lk', + 'ngo.lk', + 'soc.lk', + 'web.lk', + 'ltd.lk', + 'assn.lk', + 'grp.lk', + 'hotel.lk', + 'ac.lk', + 'lr', + 'com.lr', + 'edu.lr', + 'gov.lr', + 'org.lr', + 'net.lr', + 'ls', + 'ac.ls', + 'biz.ls', + 'co.ls', + 'edu.ls', + 'gov.ls', + 'info.ls', + 'net.ls', + 'org.ls', + 'sc.ls', + 'lt', + 'gov.lt', + 'lu', + 'lv', + 'com.lv', + 'edu.lv', + 'gov.lv', + 'org.lv', + 'mil.lv', + 'id.lv', + 'net.lv', + 'asn.lv', + 'conf.lv', + 'ly', + 'com.ly', + 'net.ly', + 'gov.ly', + 'plc.ly', + 'edu.ly', + 'sch.ly', + 'med.ly', + 'org.ly', + 'id.ly', + 'ma', + 'co.ma', + 'net.ma', + 'gov.ma', + 'org.ma', + 'ac.ma', + 'press.ma', + 'mc', + 'tm.mc', + 'asso.mc', + 'md', + 'me', + 'co.me', + 'net.me', + 'org.me', + 'edu.me', + 'ac.me', + 'gov.me', + 'its.me', + 'priv.me', + 'mg', + 'org.mg', + 'nom.mg', + 'gov.mg', + 'prd.mg', + 'tm.mg', + 'edu.mg', + 'mil.mg', + 'com.mg', + 'co.mg', + 'mh', + 'mil', + 'mk', + 'com.mk', + 'org.mk', + 'net.mk', + 'edu.mk', + 'gov.mk', + 'inf.mk', + 'name.mk', + 'ml', + 'com.ml', + 'edu.ml', + 'gouv.ml', + 'gov.ml', + 'net.ml', + 'org.ml', + 'presse.ml', + '*.mm', + 'mn', + 'gov.mn', + 'edu.mn', + 'org.mn', + 'mo', + 'com.mo', + 'net.mo', + 'org.mo', + 'edu.mo', + 'gov.mo', + 'mobi', + 'mp', + 'mq', + 'mr', + 'gov.mr', + 'ms', + 'com.ms', + 'edu.ms', + 'gov.ms', + 'net.ms', + 'org.ms', + 'mt', + 'com.mt', + 'edu.mt', + 'net.mt', + 'org.mt', + 'mu', + 'com.mu', + 'net.mu', + 'org.mu', + 'gov.mu', + 'ac.mu', + 'co.mu', + 'or.mu', + 'museum', + 'academy.museum', + 'agriculture.museum', + 'air.museum', + 'airguard.museum', + 'alabama.museum', + 'alaska.museum', + 'amber.museum', + 'ambulance.museum', + 'american.museum', + 'americana.museum', + 'americanantiques.museum', + 'americanart.museum', + 'amsterdam.museum', + 'and.museum', + 'annefrank.museum', + 'anthro.museum', + 'anthropology.museum', + 'antiques.museum', + 'aquarium.museum', + 'arboretum.museum', + 'archaeological.museum', + 'archaeology.museum', + 'architecture.museum', + 'art.museum', + 'artanddesign.museum', + 'artcenter.museum', + 'artdeco.museum', + 'arteducation.museum', + 'artgallery.museum', + 'arts.museum', + 'artsandcrafts.museum', + 'asmatart.museum', + 'assassination.museum', + 'assisi.museum', + 'association.museum', + 'astronomy.museum', + 'atlanta.museum', + 'austin.museum', + 'australia.museum', + 'automotive.museum', + 'aviation.museum', + 'axis.museum', + 'badajoz.museum', + 'baghdad.museum', + 'bahn.museum', + 'bale.museum', + 'baltimore.museum', + 'barcelona.museum', + 'baseball.museum', + 'basel.museum', + 'baths.museum', + 'bauern.museum', + 'beauxarts.museum', + 'beeldengeluid.museum', + 'bellevue.museum', + 'bergbau.museum', + 'berkeley.museum', + 'berlin.museum', + 'bern.museum', + 'bible.museum', + 'bilbao.museum', + 'bill.museum', + 'birdart.museum', + 'birthplace.museum', + 'bonn.museum', + 'boston.museum', + 'botanical.museum', + 'botanicalgarden.museum', + 'botanicgarden.museum', + 'botany.museum', + 'brandywinevalley.museum', + 'brasil.museum', + 'bristol.museum', + 'british.museum', + 'britishcolumbia.museum', + 'broadcast.museum', + 'brunel.museum', + 'brussel.museum', + 'brussels.museum', + 'bruxelles.museum', + 'building.museum', + 'burghof.museum', + 'bus.museum', + 'bushey.museum', + 'cadaques.museum', + 'california.museum', + 'cambridge.museum', + 'can.museum', + 'canada.museum', + 'capebreton.museum', + 'carrier.museum', + 'cartoonart.museum', + 'casadelamoneda.museum', + 'castle.museum', + 'castres.museum', + 'celtic.museum', + 'center.museum', + 'chattanooga.museum', + 'cheltenham.museum', + 'chesapeakebay.museum', + 'chicago.museum', + 'children.museum', + 'childrens.museum', + 'childrensgarden.museum', + 'chiropractic.museum', + 'chocolate.museum', + 'christiansburg.museum', + 'cincinnati.museum', + 'cinema.museum', + 'circus.museum', + 'civilisation.museum', + 'civilization.museum', + 'civilwar.museum', + 'clinton.museum', + 'clock.museum', + 'coal.museum', + 'coastaldefence.museum', + 'cody.museum', + 'coldwar.museum', + 'collection.museum', + 'colonialwilliamsburg.museum', + 'coloradoplateau.museum', + 'columbia.museum', + 'columbus.museum', + 'communication.museum', + 'communications.museum', + 'community.museum', + 'computer.museum', + 'computerhistory.museum', + 'comunica\xE7\xF5es.museum', + 'contemporary.museum', + 'contemporaryart.museum', + 'convent.museum', + 'copenhagen.museum', + 'corporation.museum', + 'correios-e-telecomunica\xE7\xF5es.museum', + 'corvette.museum', + 'costume.museum', + 'countryestate.museum', + 'county.museum', + 'crafts.museum', + 'cranbrook.museum', + 'creation.museum', + 'cultural.museum', + 'culturalcenter.museum', + 'culture.museum', + 'cyber.museum', + 'cymru.museum', + 'dali.museum', + 'dallas.museum', + 'database.museum', + 'ddr.museum', + 'decorativearts.museum', + 'delaware.museum', + 'delmenhorst.museum', + 'denmark.museum', + 'depot.museum', + 'design.museum', + 'detroit.museum', + 'dinosaur.museum', + 'discovery.museum', + 'dolls.museum', + 'donostia.museum', + 'durham.museum', + 'eastafrica.museum', + 'eastcoast.museum', + 'education.museum', + 'educational.museum', + 'egyptian.museum', + 'eisenbahn.museum', + 'elburg.museum', + 'elvendrell.museum', + 'embroidery.museum', + 'encyclopedic.museum', + 'england.museum', + 'entomology.museum', + 'environment.museum', + 'environmentalconservation.museum', + 'epilepsy.museum', + 'essex.museum', + 'estate.museum', + 'ethnology.museum', + 'exeter.museum', + 'exhibition.museum', + 'family.museum', + 'farm.museum', + 'farmequipment.museum', + 'farmers.museum', + 'farmstead.museum', + 'field.museum', + 'figueres.museum', + 'filatelia.museum', + 'film.museum', + 'fineart.museum', + 'finearts.museum', + 'finland.museum', + 'flanders.museum', + 'florida.museum', + 'force.museum', + 'fortmissoula.museum', + 'fortworth.museum', + 'foundation.museum', + 'francaise.museum', + 'frankfurt.museum', + 'franziskaner.museum', + 'freemasonry.museum', + 'freiburg.museum', + 'fribourg.museum', + 'frog.museum', + 'fundacio.museum', + 'furniture.museum', + 'gallery.museum', + 'garden.museum', + 'gateway.museum', + 'geelvinck.museum', + 'gemological.museum', + 'geology.museum', + 'georgia.museum', + 'giessen.museum', + 'glas.museum', + 'glass.museum', + 'gorge.museum', + 'grandrapids.museum', + 'graz.museum', + 'guernsey.museum', + 'halloffame.museum', + 'hamburg.museum', + 'handson.museum', + 'harvestcelebration.museum', + 'hawaii.museum', + 'health.museum', + 'heimatunduhren.museum', + 'hellas.museum', + 'helsinki.museum', + 'hembygdsforbund.museum', + 'heritage.museum', + 'histoire.museum', + 'historical.museum', + 'historicalsociety.museum', + 'historichouses.museum', + 'historisch.museum', + 'historisches.museum', + 'history.museum', + 'historyofscience.museum', + 'horology.museum', + 'house.museum', + 'humanities.museum', + 'illustration.museum', + 'imageandsound.museum', + 'indian.museum', + 'indiana.museum', + 'indianapolis.museum', + 'indianmarket.museum', + 'intelligence.museum', + 'interactive.museum', + 'iraq.museum', + 'iron.museum', + 'isleofman.museum', + 'jamison.museum', + 'jefferson.museum', + 'jerusalem.museum', + 'jewelry.museum', + 'jewish.museum', + 'jewishart.museum', + 'jfk.museum', + 'journalism.museum', + 'judaica.museum', + 'judygarland.museum', + 'juedisches.museum', + 'juif.museum', + 'karate.museum', + 'karikatur.museum', + 'kids.museum', + 'koebenhavn.museum', + 'koeln.museum', + 'kunst.museum', + 'kunstsammlung.museum', + 'kunstunddesign.museum', + 'labor.museum', + 'labour.museum', + 'lajolla.museum', + 'lancashire.museum', + 'landes.museum', + 'lans.museum', + 'l\xE4ns.museum', + 'larsson.museum', + 'lewismiller.museum', + 'lincoln.museum', + 'linz.museum', + 'living.museum', + 'livinghistory.museum', + 'localhistory.museum', + 'london.museum', + 'losangeles.museum', + 'louvre.museum', + 'loyalist.museum', + 'lucerne.museum', + 'luxembourg.museum', + 'luzern.museum', + 'mad.museum', + 'madrid.museum', + 'mallorca.museum', + 'manchester.museum', + 'mansion.museum', + 'mansions.museum', + 'manx.museum', + 'marburg.museum', + 'maritime.museum', + 'maritimo.museum', + 'maryland.museum', + 'marylhurst.museum', + 'media.museum', + 'medical.museum', + 'medizinhistorisches.museum', + 'meeres.museum', + 'memorial.museum', + 'mesaverde.museum', + 'michigan.museum', + 'midatlantic.museum', + 'military.museum', + 'mill.museum', + 'miners.museum', + 'mining.museum', + 'minnesota.museum', + 'missile.museum', + 'missoula.museum', + 'modern.museum', + 'moma.museum', + 'money.museum', + 'monmouth.museum', + 'monticello.museum', + 'montreal.museum', + 'moscow.museum', + 'motorcycle.museum', + 'muenchen.museum', + 'muenster.museum', + 'mulhouse.museum', + 'muncie.museum', + 'museet.museum', + 'museumcenter.museum', + 'museumvereniging.museum', + 'music.museum', + 'national.museum', + 'nationalfirearms.museum', + 'nationalheritage.museum', + 'nativeamerican.museum', + 'naturalhistory.museum', + 'naturalhistorymuseum.museum', + 'naturalsciences.museum', + 'nature.museum', + 'naturhistorisches.museum', + 'natuurwetenschappen.museum', + 'naumburg.museum', + 'naval.museum', + 'nebraska.museum', + 'neues.museum', + 'newhampshire.museum', + 'newjersey.museum', + 'newmexico.museum', + 'newport.museum', + 'newspaper.museum', + 'newyork.museum', + 'niepce.museum', + 'norfolk.museum', + 'north.museum', + 'nrw.museum', + 'nyc.museum', + 'nyny.museum', + 'oceanographic.museum', + 'oceanographique.museum', + 'omaha.museum', + 'online.museum', + 'ontario.museum', + 'openair.museum', + 'oregon.museum', + 'oregontrail.museum', + 'otago.museum', + 'oxford.museum', + 'pacific.museum', + 'paderborn.museum', + 'palace.museum', + 'paleo.museum', + 'palmsprings.museum', + 'panama.museum', + 'paris.museum', + 'pasadena.museum', + 'pharmacy.museum', + 'philadelphia.museum', + 'philadelphiaarea.museum', + 'philately.museum', + 'phoenix.museum', + 'photography.museum', + 'pilots.museum', + 'pittsburgh.museum', + 'planetarium.museum', + 'plantation.museum', + 'plants.museum', + 'plaza.museum', + 'portal.museum', + 'portland.museum', + 'portlligat.museum', + 'posts-and-telecommunications.museum', + 'preservation.museum', + 'presidio.museum', + 'press.museum', + 'project.museum', + 'public.museum', + 'pubol.museum', + 'quebec.museum', + 'railroad.museum', + 'railway.museum', + 'research.museum', + 'resistance.museum', + 'riodejaneiro.museum', + 'rochester.museum', + 'rockart.museum', + 'roma.museum', + 'russia.museum', + 'saintlouis.museum', + 'salem.museum', + 'salvadordali.museum', + 'salzburg.museum', + 'sandiego.museum', + 'sanfrancisco.museum', + 'santabarbara.museum', + 'santacruz.museum', + 'santafe.museum', + 'saskatchewan.museum', + 'satx.museum', + 'savannahga.museum', + 'schlesisches.museum', + 'schoenbrunn.museum', + 'schokoladen.museum', + 'school.museum', + 'schweiz.museum', + 'science.museum', + 'scienceandhistory.museum', + 'scienceandindustry.museum', + 'sciencecenter.museum', + 'sciencecenters.museum', + 'science-fiction.museum', + 'sciencehistory.museum', + 'sciences.museum', + 'sciencesnaturelles.museum', + 'scotland.museum', + 'seaport.museum', + 'settlement.museum', + 'settlers.museum', + 'shell.museum', + 'sherbrooke.museum', + 'sibenik.museum', + 'silk.museum', + 'ski.museum', + 'skole.museum', + 'society.museum', + 'sologne.museum', + 'soundandvision.museum', + 'southcarolina.museum', + 'southwest.museum', + 'space.museum', + 'spy.museum', + 'square.museum', + 'stadt.museum', + 'stalbans.museum', + 'starnberg.museum', + 'state.museum', + 'stateofdelaware.museum', + 'station.museum', + 'steam.museum', + 'steiermark.museum', + 'stjohn.museum', + 'stockholm.museum', + 'stpetersburg.museum', + 'stuttgart.museum', + 'suisse.museum', + 'surgeonshall.museum', + 'surrey.museum', + 'svizzera.museum', + 'sweden.museum', + 'sydney.museum', + 'tank.museum', + 'tcm.museum', + 'technology.museum', + 'telekommunikation.museum', + 'television.museum', + 'texas.museum', + 'textile.museum', + 'theater.museum', + 'time.museum', + 'timekeeping.museum', + 'topology.museum', + 'torino.museum', + 'touch.museum', + 'town.museum', + 'transport.museum', + 'tree.museum', + 'trolley.museum', + 'trust.museum', + 'trustee.museum', + 'uhren.museum', + 'ulm.museum', + 'undersea.museum', + 'university.museum', + 'usa.museum', + 'usantiques.museum', + 'usarts.museum', + 'uscountryestate.museum', + 'usculture.museum', + 'usdecorativearts.museum', + 'usgarden.museum', + 'ushistory.museum', + 'ushuaia.museum', + 'uslivinghistory.museum', + 'utah.museum', + 'uvic.museum', + 'valley.museum', + 'vantaa.museum', + 'versailles.museum', + 'viking.museum', + 'village.museum', + 'virginia.museum', + 'virtual.museum', + 'virtuel.museum', + 'vlaanderen.museum', + 'volkenkunde.museum', + 'wales.museum', + 'wallonie.museum', + 'war.museum', + 'washingtondc.museum', + 'watchandclock.museum', + 'watch-and-clock.museum', + 'western.museum', + 'westfalen.museum', + 'whaling.museum', + 'wildlife.museum', + 'williamsburg.museum', + 'windmill.museum', + 'workshop.museum', + 'york.museum', + 'yorkshire.museum', + 'yosemite.museum', + 'youth.museum', + 'zoological.museum', + 'zoology.museum', + '\u05D9\u05E8\u05D5\u05E9\u05DC\u05D9\u05DD.museum', + '\u0438\u043A\u043E\u043C.museum', + 'mv', + 'aero.mv', + 'biz.mv', + 'com.mv', + 'coop.mv', + 'edu.mv', + 'gov.mv', + 'info.mv', + 'int.mv', + 'mil.mv', + 'museum.mv', + 'name.mv', + 'net.mv', + 'org.mv', + 'pro.mv', + 'mw', + 'ac.mw', + 'biz.mw', + 'co.mw', + 'com.mw', + 'coop.mw', + 'edu.mw', + 'gov.mw', + 'int.mw', + 'museum.mw', + 'net.mw', + 'org.mw', + 'mx', + 'com.mx', + 'org.mx', + 'gob.mx', + 'edu.mx', + 'net.mx', + 'my', + 'biz.my', + 'com.my', + 'edu.my', + 'gov.my', + 'mil.my', + 'name.my', + 'net.my', + 'org.my', + 'mz', + 'ac.mz', + 'adv.mz', + 'co.mz', + 'edu.mz', + 'gov.mz', + 'mil.mz', + 'net.mz', + 'org.mz', + 'na', + 'info.na', + 'pro.na', + 'name.na', + 'school.na', + 'or.na', + 'dr.na', + 'us.na', + 'mx.na', + 'ca.na', + 'in.na', + 'cc.na', + 'tv.na', + 'ws.na', + 'mobi.na', + 'co.na', + 'com.na', + 'org.na', + 'name', + 'nc', + 'asso.nc', + 'nom.nc', + 'ne', + 'net', + 'nf', + 'com.nf', + 'net.nf', + 'per.nf', + 'rec.nf', + 'web.nf', + 'arts.nf', + 'firm.nf', + 'info.nf', + 'other.nf', + 'store.nf', + 'ng', + 'com.ng', + 'edu.ng', + 'gov.ng', + 'i.ng', + 'mil.ng', + 'mobi.ng', + 'name.ng', + 'net.ng', + 'org.ng', + 'sch.ng', + 'ni', + 'ac.ni', + 'biz.ni', + 'co.ni', + 'com.ni', + 'edu.ni', + 'gob.ni', + 'in.ni', + 'info.ni', + 'int.ni', + 'mil.ni', + 'net.ni', + 'nom.ni', + 'org.ni', + 'web.ni', + 'nl', + 'no', + 'fhs.no', + 'vgs.no', + 'fylkesbibl.no', + 'folkebibl.no', + 'museum.no', + 'idrett.no', + 'priv.no', + 'mil.no', + 'stat.no', + 'dep.no', + 'kommune.no', + 'herad.no', + 'aa.no', + 'ah.no', + 'bu.no', + 'fm.no', + 'hl.no', + 'hm.no', + 'jan-mayen.no', + 'mr.no', + 'nl.no', + 'nt.no', + 'of.no', + 'ol.no', + 'oslo.no', + 'rl.no', + 'sf.no', + 'st.no', + 'svalbard.no', + 'tm.no', + 'tr.no', + 'va.no', + 'vf.no', + 'gs.aa.no', + 'gs.ah.no', + 'gs.bu.no', + 'gs.fm.no', + 'gs.hl.no', + 'gs.hm.no', + 'gs.jan-mayen.no', + 'gs.mr.no', + 'gs.nl.no', + 'gs.nt.no', + 'gs.of.no', + 'gs.ol.no', + 'gs.oslo.no', + 'gs.rl.no', + 'gs.sf.no', + 'gs.st.no', + 'gs.svalbard.no', + 'gs.tm.no', + 'gs.tr.no', + 'gs.va.no', + 'gs.vf.no', + 'akrehamn.no', + '\xE5krehamn.no', + 'algard.no', + '\xE5lg\xE5rd.no', + 'arna.no', + 'brumunddal.no', + 'bryne.no', + 'bronnoysund.no', + 'br\xF8nn\xF8ysund.no', + 'drobak.no', + 'dr\xF8bak.no', + 'egersund.no', + 'fetsund.no', + 'floro.no', + 'flor\xF8.no', + 'fredrikstad.no', + 'hokksund.no', + 'honefoss.no', + 'h\xF8nefoss.no', + 'jessheim.no', + 'jorpeland.no', + 'j\xF8rpeland.no', + 'kirkenes.no', + 'kopervik.no', + 'krokstadelva.no', + 'langevag.no', + 'langev\xE5g.no', + 'leirvik.no', + 'mjondalen.no', + 'mj\xF8ndalen.no', + 'mo-i-rana.no', + 'mosjoen.no', + 'mosj\xF8en.no', + 'nesoddtangen.no', + 'orkanger.no', + 'osoyro.no', + 'os\xF8yro.no', + 'raholt.no', + 'r\xE5holt.no', + 'sandnessjoen.no', + 'sandnessj\xF8en.no', + 'skedsmokorset.no', + 'slattum.no', + 'spjelkavik.no', + 'stathelle.no', + 'stavern.no', + 'stjordalshalsen.no', + 'stj\xF8rdalshalsen.no', + 'tananger.no', + 'tranby.no', + 'vossevangen.no', + 'afjord.no', + '\xE5fjord.no', + 'agdenes.no', + 'al.no', + '\xE5l.no', + 'alesund.no', + '\xE5lesund.no', + 'alstahaug.no', + 'alta.no', + '\xE1lt\xE1.no', + 'alaheadju.no', + '\xE1laheadju.no', + 'alvdal.no', + 'amli.no', + '\xE5mli.no', + 'amot.no', + '\xE5mot.no', + 'andebu.no', + 'andoy.no', + 'and\xF8y.no', + 'andasuolo.no', + 'ardal.no', + '\xE5rdal.no', + 'aremark.no', + 'arendal.no', + '\xE5s.no', + 'aseral.no', + '\xE5seral.no', + 'asker.no', + 'askim.no', + 'askvoll.no', + 'askoy.no', + 'ask\xF8y.no', + 'asnes.no', + '\xE5snes.no', + 'audnedaln.no', + 'aukra.no', + 'aure.no', + 'aurland.no', + 'aurskog-holand.no', + 'aurskog-h\xF8land.no', + 'austevoll.no', + 'austrheim.no', + 'averoy.no', + 'aver\xF8y.no', + 'balestrand.no', + 'ballangen.no', + 'balat.no', + 'b\xE1l\xE1t.no', + 'balsfjord.no', + 'bahccavuotna.no', + 'b\xE1hccavuotna.no', + 'bamble.no', + 'bardu.no', + 'beardu.no', + 'beiarn.no', + 'bajddar.no', + 'b\xE1jddar.no', + 'baidar.no', + 'b\xE1id\xE1r.no', + 'berg.no', + 'bergen.no', + 'berlevag.no', + 'berlev\xE5g.no', + 'bearalvahki.no', + 'bearalv\xE1hki.no', + 'bindal.no', + 'birkenes.no', + 'bjarkoy.no', + 'bjark\xF8y.no', + 'bjerkreim.no', + 'bjugn.no', + 'bodo.no', + 'bod\xF8.no', + 'badaddja.no', + 'b\xE5d\xE5ddj\xE5.no', + 'budejju.no', + 'bokn.no', + 'bremanger.no', + 'bronnoy.no', + 'br\xF8nn\xF8y.no', + 'bygland.no', + 'bykle.no', + 'barum.no', + 'b\xE6rum.no', + 'bo.telemark.no', + 'b\xF8.telemark.no', + 'bo.nordland.no', + 'b\xF8.nordland.no', + 'bievat.no', + 'biev\xE1t.no', + 'bomlo.no', + 'b\xF8mlo.no', + 'batsfjord.no', + 'b\xE5tsfjord.no', + 'bahcavuotna.no', + 'b\xE1hcavuotna.no', + 'dovre.no', + 'drammen.no', + 'drangedal.no', + 'dyroy.no', + 'dyr\xF8y.no', + 'donna.no', + 'd\xF8nna.no', + 'eid.no', + 'eidfjord.no', + 'eidsberg.no', + 'eidskog.no', + 'eidsvoll.no', + 'eigersund.no', + 'elverum.no', + 'enebakk.no', + 'engerdal.no', + 'etne.no', + 'etnedal.no', + 'evenes.no', + 'evenassi.no', + 'even\xE1\u0161\u0161i.no', + 'evje-og-hornnes.no', + 'farsund.no', + 'fauske.no', + 'fuossko.no', + 'fuoisku.no', + 'fedje.no', + 'fet.no', + 'finnoy.no', + 'finn\xF8y.no', + 'fitjar.no', + 'fjaler.no', + 'fjell.no', + 'flakstad.no', + 'flatanger.no', + 'flekkefjord.no', + 'flesberg.no', + 'flora.no', + 'fla.no', + 'fl\xE5.no', + 'folldal.no', + 'forsand.no', + 'fosnes.no', + 'frei.no', + 'frogn.no', + 'froland.no', + 'frosta.no', + 'frana.no', + 'fr\xE6na.no', + 'froya.no', + 'fr\xF8ya.no', + 'fusa.no', + 'fyresdal.no', + 'forde.no', + 'f\xF8rde.no', + 'gamvik.no', + 'gangaviika.no', + 'g\xE1\u014Bgaviika.no', + 'gaular.no', + 'gausdal.no', + 'gildeskal.no', + 'gildesk\xE5l.no', + 'giske.no', + 'gjemnes.no', + 'gjerdrum.no', + 'gjerstad.no', + 'gjesdal.no', + 'gjovik.no', + 'gj\xF8vik.no', + 'gloppen.no', + 'gol.no', + 'gran.no', + 'grane.no', + 'granvin.no', + 'gratangen.no', + 'grimstad.no', + 'grong.no', + 'kraanghke.no', + 'kr\xE5anghke.no', + 'grue.no', + 'gulen.no', + 'hadsel.no', + 'halden.no', + 'halsa.no', + 'hamar.no', + 'hamaroy.no', + 'habmer.no', + 'h\xE1bmer.no', + 'hapmir.no', + 'h\xE1pmir.no', + 'hammerfest.no', + 'hammarfeasta.no', + 'h\xE1mm\xE1rfeasta.no', + 'haram.no', + 'hareid.no', + 'harstad.no', + 'hasvik.no', + 'aknoluokta.no', + '\xE1k\u014Boluokta.no', + 'hattfjelldal.no', + 'aarborte.no', + 'haugesund.no', + 'hemne.no', + 'hemnes.no', + 'hemsedal.no', + 'heroy.more-og-romsdal.no', + 'her\xF8y.m\xF8re-og-romsdal.no', + 'heroy.nordland.no', + 'her\xF8y.nordland.no', + 'hitra.no', + 'hjartdal.no', + 'hjelmeland.no', + 'hobol.no', + 'hob\xF8l.no', + 'hof.no', + 'hol.no', + 'hole.no', + 'holmestrand.no', + 'holtalen.no', + 'holt\xE5len.no', + 'hornindal.no', + 'horten.no', + 'hurdal.no', + 'hurum.no', + 'hvaler.no', + 'hyllestad.no', + 'hagebostad.no', + 'h\xE6gebostad.no', + 'hoyanger.no', + 'h\xF8yanger.no', + 'hoylandet.no', + 'h\xF8ylandet.no', + 'ha.no', + 'h\xE5.no', + 'ibestad.no', + 'inderoy.no', + 'inder\xF8y.no', + 'iveland.no', + 'jevnaker.no', + 'jondal.no', + 'jolster.no', + 'j\xF8lster.no', + 'karasjok.no', + 'karasjohka.no', + 'k\xE1r\xE1\u0161johka.no', + 'karlsoy.no', + 'galsa.no', + 'g\xE1ls\xE1.no', + 'karmoy.no', + 'karm\xF8y.no', + 'kautokeino.no', + 'guovdageaidnu.no', + 'klepp.no', + 'klabu.no', + 'kl\xE6bu.no', + 'kongsberg.no', + 'kongsvinger.no', + 'kragero.no', + 'krager\xF8.no', + 'kristiansand.no', + 'kristiansund.no', + 'krodsherad.no', + 'kr\xF8dsherad.no', + 'kvalsund.no', + 'rahkkeravju.no', + 'r\xE1hkker\xE1vju.no', + 'kvam.no', + 'kvinesdal.no', + 'kvinnherad.no', + 'kviteseid.no', + 'kvitsoy.no', + 'kvits\xF8y.no', + 'kvafjord.no', + 'kv\xE6fjord.no', + 'giehtavuoatna.no', + 'kvanangen.no', + 'kv\xE6nangen.no', + 'navuotna.no', + 'n\xE1vuotna.no', + 'kafjord.no', + 'k\xE5fjord.no', + 'gaivuotna.no', + 'g\xE1ivuotna.no', + 'larvik.no', + 'lavangen.no', + 'lavagis.no', + 'loabat.no', + 'loab\xE1t.no', + 'lebesby.no', + 'davvesiida.no', + 'leikanger.no', + 'leirfjord.no', + 'leka.no', + 'leksvik.no', + 'lenvik.no', + 'leangaviika.no', + 'lea\u014Bgaviika.no', + 'lesja.no', + 'levanger.no', + 'lier.no', + 'lierne.no', + 'lillehammer.no', + 'lillesand.no', + 'lindesnes.no', + 'lindas.no', + 'lind\xE5s.no', + 'lom.no', + 'loppa.no', + 'lahppi.no', + 'l\xE1hppi.no', + 'lund.no', + 'lunner.no', + 'luroy.no', + 'lur\xF8y.no', + 'luster.no', + 'lyngdal.no', + 'lyngen.no', + 'ivgu.no', + 'lardal.no', + 'lerdal.no', + 'l\xE6rdal.no', + 'lodingen.no', + 'l\xF8dingen.no', + 'lorenskog.no', + 'l\xF8renskog.no', + 'loten.no', + 'l\xF8ten.no', + 'malvik.no', + 'masoy.no', + 'm\xE5s\xF8y.no', + 'muosat.no', + 'muos\xE1t.no', + 'mandal.no', + 'marker.no', + 'marnardal.no', + 'masfjorden.no', + 'meland.no', + 'meldal.no', + 'melhus.no', + 'meloy.no', + 'mel\xF8y.no', + 'meraker.no', + 'mer\xE5ker.no', + 'moareke.no', + 'mo\xE5reke.no', + 'midsund.no', + 'midtre-gauldal.no', + 'modalen.no', + 'modum.no', + 'molde.no', + 'moskenes.no', + 'moss.no', + 'mosvik.no', + 'malselv.no', + 'm\xE5lselv.no', + 'malatvuopmi.no', + 'm\xE1latvuopmi.no', + 'namdalseid.no', + 'aejrie.no', + 'namsos.no', + 'namsskogan.no', + 'naamesjevuemie.no', + 'n\xE5\xE5mesjevuemie.no', + 'laakesvuemie.no', + 'nannestad.no', + 'narvik.no', + 'narviika.no', + 'naustdal.no', + 'nedre-eiker.no', + 'nes.akershus.no', + 'nes.buskerud.no', + 'nesna.no', + 'nesodden.no', + 'nesseby.no', + 'unjarga.no', + 'unj\xE1rga.no', + 'nesset.no', + 'nissedal.no', + 'nittedal.no', + 'nord-aurdal.no', + 'nord-fron.no', + 'nord-odal.no', + 'norddal.no', + 'nordkapp.no', + 'davvenjarga.no', + 'davvenj\xE1rga.no', + 'nordre-land.no', + 'nordreisa.no', + 'raisa.no', + 'r\xE1isa.no', + 'nore-og-uvdal.no', + 'notodden.no', + 'naroy.no', + 'n\xE6r\xF8y.no', + 'notteroy.no', + 'n\xF8tter\xF8y.no', + 'odda.no', + 'oksnes.no', + '\xF8ksnes.no', + 'oppdal.no', + 'oppegard.no', + 'oppeg\xE5rd.no', + 'orkdal.no', + 'orland.no', + '\xF8rland.no', + 'orskog.no', + '\xF8rskog.no', + 'orsta.no', + '\xF8rsta.no', + 'os.hedmark.no', + 'os.hordaland.no', + 'osen.no', + 'osteroy.no', + 'oster\xF8y.no', + 'ostre-toten.no', + '\xF8stre-toten.no', + 'overhalla.no', + 'ovre-eiker.no', + '\xF8vre-eiker.no', + 'oyer.no', + '\xF8yer.no', + 'oygarden.no', + '\xF8ygarden.no', + 'oystre-slidre.no', + '\xF8ystre-slidre.no', + 'porsanger.no', + 'porsangu.no', + 'pors\xE1\u014Bgu.no', + 'porsgrunn.no', + 'radoy.no', + 'rad\xF8y.no', + 'rakkestad.no', + 'rana.no', + 'ruovat.no', + 'randaberg.no', + 'rauma.no', + 'rendalen.no', + 'rennebu.no', + 'rennesoy.no', + 'rennes\xF8y.no', + 'rindal.no', + 'ringebu.no', + 'ringerike.no', + 'ringsaker.no', + 'rissa.no', + 'risor.no', + 'ris\xF8r.no', + 'roan.no', + 'rollag.no', + 'rygge.no', + 'ralingen.no', + 'r\xE6lingen.no', + 'rodoy.no', + 'r\xF8d\xF8y.no', + 'romskog.no', + 'r\xF8mskog.no', + 'roros.no', + 'r\xF8ros.no', + 'rost.no', + 'r\xF8st.no', + 'royken.no', + 'r\xF8yken.no', + 'royrvik.no', + 'r\xF8yrvik.no', + 'rade.no', + 'r\xE5de.no', + 'salangen.no', + 'siellak.no', + 'saltdal.no', + 'salat.no', + 's\xE1l\xE1t.no', + 's\xE1lat.no', + 'samnanger.no', + 'sande.more-og-romsdal.no', + 'sande.m\xF8re-og-romsdal.no', + 'sande.vestfold.no', + 'sandefjord.no', + 'sandnes.no', + 'sandoy.no', + 'sand\xF8y.no', + 'sarpsborg.no', + 'sauda.no', + 'sauherad.no', + 'sel.no', + 'selbu.no', + 'selje.no', + 'seljord.no', + 'sigdal.no', + 'siljan.no', + 'sirdal.no', + 'skaun.no', + 'skedsmo.no', + 'ski.no', + 'skien.no', + 'skiptvet.no', + 'skjervoy.no', + 'skjerv\xF8y.no', + 'skierva.no', + 'skierv\xE1.no', + 'skjak.no', + 'skj\xE5k.no', + 'skodje.no', + 'skanland.no', + 'sk\xE5nland.no', + 'skanit.no', + 'sk\xE1nit.no', + 'smola.no', + 'sm\xF8la.no', + 'snillfjord.no', + 'snasa.no', + 'sn\xE5sa.no', + 'snoasa.no', + 'snaase.no', + 'sn\xE5ase.no', + 'sogndal.no', + 'sokndal.no', + 'sola.no', + 'solund.no', + 'songdalen.no', + 'sortland.no', + 'spydeberg.no', + 'stange.no', + 'stavanger.no', + 'steigen.no', + 'steinkjer.no', + 'stjordal.no', + 'stj\xF8rdal.no', + 'stokke.no', + 'stor-elvdal.no', + 'stord.no', + 'stordal.no', + 'storfjord.no', + 'omasvuotna.no', + 'strand.no', + 'stranda.no', + 'stryn.no', + 'sula.no', + 'suldal.no', + 'sund.no', + 'sunndal.no', + 'surnadal.no', + 'sveio.no', + 'svelvik.no', + 'sykkylven.no', + 'sogne.no', + 's\xF8gne.no', + 'somna.no', + 's\xF8mna.no', + 'sondre-land.no', + 's\xF8ndre-land.no', + 'sor-aurdal.no', + 's\xF8r-aurdal.no', + 'sor-fron.no', + 's\xF8r-fron.no', + 'sor-odal.no', + 's\xF8r-odal.no', + 'sor-varanger.no', + 's\xF8r-varanger.no', + 'matta-varjjat.no', + 'm\xE1tta-v\xE1rjjat.no', + 'sorfold.no', + 's\xF8rfold.no', + 'sorreisa.no', + 's\xF8rreisa.no', + 'sorum.no', + 's\xF8rum.no', + 'tana.no', + 'deatnu.no', + 'time.no', + 'tingvoll.no', + 'tinn.no', + 'tjeldsund.no', + 'dielddanuorri.no', + 'tjome.no', + 'tj\xF8me.no', + 'tokke.no', + 'tolga.no', + 'torsken.no', + 'tranoy.no', + 'tran\xF8y.no', + 'tromso.no', + 'troms\xF8.no', + 'tromsa.no', + 'romsa.no', + 'trondheim.no', + 'troandin.no', + 'trysil.no', + 'trana.no', + 'tr\xE6na.no', + 'trogstad.no', + 'tr\xF8gstad.no', + 'tvedestrand.no', + 'tydal.no', + 'tynset.no', + 'tysfjord.no', + 'divtasvuodna.no', + 'divttasvuotna.no', + 'tysnes.no', + 'tysvar.no', + 'tysv\xE6r.no', + 'tonsberg.no', + 't\xF8nsberg.no', + 'ullensaker.no', + 'ullensvang.no', + 'ulvik.no', + 'utsira.no', + 'vadso.no', + 'vads\xF8.no', + 'cahcesuolo.no', + '\u010D\xE1hcesuolo.no', + 'vaksdal.no', + 'valle.no', + 'vang.no', + 'vanylven.no', + 'vardo.no', + 'vard\xF8.no', + 'varggat.no', + 'v\xE1rgg\xE1t.no', + 'vefsn.no', + 'vaapste.no', + 'vega.no', + 'vegarshei.no', + 'veg\xE5rshei.no', + 'vennesla.no', + 'verdal.no', + 'verran.no', + 'vestby.no', + 'vestnes.no', + 'vestre-slidre.no', + 'vestre-toten.no', + 'vestvagoy.no', + 'vestv\xE5g\xF8y.no', + 'vevelstad.no', + 'vik.no', + 'vikna.no', + 'vindafjord.no', + 'volda.no', + 'voss.no', + 'varoy.no', + 'v\xE6r\xF8y.no', + 'vagan.no', + 'v\xE5gan.no', + 'voagat.no', + 'vagsoy.no', + 'v\xE5gs\xF8y.no', + 'vaga.no', + 'v\xE5g\xE5.no', + 'valer.ostfold.no', + 'v\xE5ler.\xF8stfold.no', + 'valer.hedmark.no', + 'v\xE5ler.hedmark.no', + '*.np', + 'nr', + 'biz.nr', + 'info.nr', + 'gov.nr', + 'edu.nr', + 'org.nr', + 'net.nr', + 'com.nr', + 'nu', + 'nz', + 'ac.nz', + 'co.nz', + 'cri.nz', + 'geek.nz', + 'gen.nz', + 'govt.nz', + 'health.nz', + 'iwi.nz', + 'kiwi.nz', + 'maori.nz', + 'mil.nz', + 'm\u0101ori.nz', + 'net.nz', + 'org.nz', + 'parliament.nz', + 'school.nz', + 'om', + 'co.om', + 'com.om', + 'edu.om', + 'gov.om', + 'med.om', + 'museum.om', + 'net.om', + 'org.om', + 'pro.om', + 'onion', + 'org', + 'pa', + 'ac.pa', + 'gob.pa', + 'com.pa', + 'org.pa', + 'sld.pa', + 'edu.pa', + 'net.pa', + 'ing.pa', + 'abo.pa', + 'med.pa', + 'nom.pa', + 'pe', + 'edu.pe', + 'gob.pe', + 'nom.pe', + 'mil.pe', + 'org.pe', + 'com.pe', + 'net.pe', + 'pf', + 'com.pf', + 'org.pf', + 'edu.pf', + '*.pg', + 'ph', + 'com.ph', + 'net.ph', + 'org.ph', + 'gov.ph', + 'edu.ph', + 'ngo.ph', + 'mil.ph', + 'i.ph', + 'pk', + 'com.pk', + 'net.pk', + 'edu.pk', + 'org.pk', + 'fam.pk', + 'biz.pk', + 'web.pk', + 'gov.pk', + 'gob.pk', + 'gok.pk', + 'gon.pk', + 'gop.pk', + 'gos.pk', + 'info.pk', + 'pl', + 'com.pl', + 'net.pl', + 'org.pl', + 'aid.pl', + 'agro.pl', + 'atm.pl', + 'auto.pl', + 'biz.pl', + 'edu.pl', + 'gmina.pl', + 'gsm.pl', + 'info.pl', + 'mail.pl', + 'miasta.pl', + 'media.pl', + 'mil.pl', + 'nieruchomosci.pl', + 'nom.pl', + 'pc.pl', + 'powiat.pl', + 'priv.pl', + 'realestate.pl', + 'rel.pl', + 'sex.pl', + 'shop.pl', + 'sklep.pl', + 'sos.pl', + 'szkola.pl', + 'targi.pl', + 'tm.pl', + 'tourism.pl', + 'travel.pl', + 'turystyka.pl', + 'gov.pl', + 'ap.gov.pl', + 'ic.gov.pl', + 'is.gov.pl', + 'us.gov.pl', + 'kmpsp.gov.pl', + 'kppsp.gov.pl', + 'kwpsp.gov.pl', + 'psp.gov.pl', + 'wskr.gov.pl', + 'kwp.gov.pl', + 'mw.gov.pl', + 'ug.gov.pl', + 'um.gov.pl', + 'umig.gov.pl', + 'ugim.gov.pl', + 'upow.gov.pl', + 'uw.gov.pl', + 'starostwo.gov.pl', + 'pa.gov.pl', + 'po.gov.pl', + 'psse.gov.pl', + 'pup.gov.pl', + 'rzgw.gov.pl', + 'sa.gov.pl', + 'so.gov.pl', + 'sr.gov.pl', + 'wsa.gov.pl', + 'sko.gov.pl', + 'uzs.gov.pl', + 'wiih.gov.pl', + 'winb.gov.pl', + 'pinb.gov.pl', + 'wios.gov.pl', + 'witd.gov.pl', + 'wzmiuw.gov.pl', + 'piw.gov.pl', + 'wiw.gov.pl', + 'griw.gov.pl', + 'wif.gov.pl', + 'oum.gov.pl', + 'sdn.gov.pl', + 'zp.gov.pl', + 'uppo.gov.pl', + 'mup.gov.pl', + 'wuoz.gov.pl', + 'konsulat.gov.pl', + 'oirm.gov.pl', + 'augustow.pl', + 'babia-gora.pl', + 'bedzin.pl', + 'beskidy.pl', + 'bialowieza.pl', + 'bialystok.pl', + 'bielawa.pl', + 'bieszczady.pl', + 'boleslawiec.pl', + 'bydgoszcz.pl', + 'bytom.pl', + 'cieszyn.pl', + 'czeladz.pl', + 'czest.pl', + 'dlugoleka.pl', + 'elblag.pl', + 'elk.pl', + 'glogow.pl', + 'gniezno.pl', + 'gorlice.pl', + 'grajewo.pl', + 'ilawa.pl', + 'jaworzno.pl', + 'jelenia-gora.pl', + 'jgora.pl', + 'kalisz.pl', + 'kazimierz-dolny.pl', + 'karpacz.pl', + 'kartuzy.pl', + 'kaszuby.pl', + 'katowice.pl', + 'kepno.pl', + 'ketrzyn.pl', + 'klodzko.pl', + 'kobierzyce.pl', + 'kolobrzeg.pl', + 'konin.pl', + 'konskowola.pl', + 'kutno.pl', + 'lapy.pl', + 'lebork.pl', + 'legnica.pl', + 'lezajsk.pl', + 'limanowa.pl', + 'lomza.pl', + 'lowicz.pl', + 'lubin.pl', + 'lukow.pl', + 'malbork.pl', + 'malopolska.pl', + 'mazowsze.pl', + 'mazury.pl', + 'mielec.pl', + 'mielno.pl', + 'mragowo.pl', + 'naklo.pl', + 'nowaruda.pl', + 'nysa.pl', + 'olawa.pl', + 'olecko.pl', + 'olkusz.pl', + 'olsztyn.pl', + 'opoczno.pl', + 'opole.pl', + 'ostroda.pl', + 'ostroleka.pl', + 'ostrowiec.pl', + 'ostrowwlkp.pl', + 'pila.pl', + 'pisz.pl', + 'podhale.pl', + 'podlasie.pl', + 'polkowice.pl', + 'pomorze.pl', + 'pomorskie.pl', + 'prochowice.pl', + 'pruszkow.pl', + 'przeworsk.pl', + 'pulawy.pl', + 'radom.pl', + 'rawa-maz.pl', + 'rybnik.pl', + 'rzeszow.pl', + 'sanok.pl', + 'sejny.pl', + 'slask.pl', + 'slupsk.pl', + 'sosnowiec.pl', + 'stalowa-wola.pl', + 'skoczow.pl', + 'starachowice.pl', + 'stargard.pl', + 'suwalki.pl', + 'swidnica.pl', + 'swiebodzin.pl', + 'swinoujscie.pl', + 'szczecin.pl', + 'szczytno.pl', + 'tarnobrzeg.pl', + 'tgory.pl', + 'turek.pl', + 'tychy.pl', + 'ustka.pl', + 'walbrzych.pl', + 'warmia.pl', + 'warszawa.pl', + 'waw.pl', + 'wegrow.pl', + 'wielun.pl', + 'wlocl.pl', + 'wloclawek.pl', + 'wodzislaw.pl', + 'wolomin.pl', + 'wroclaw.pl', + 'zachpomor.pl', + 'zagan.pl', + 'zarow.pl', + 'zgora.pl', + 'zgorzelec.pl', + 'pm', + 'pn', + 'gov.pn', + 'co.pn', + 'org.pn', + 'edu.pn', + 'net.pn', + 'post', + 'pr', + 'com.pr', + 'net.pr', + 'org.pr', + 'gov.pr', + 'edu.pr', + 'isla.pr', + 'pro.pr', + 'biz.pr', + 'info.pr', + 'name.pr', + 'est.pr', + 'prof.pr', + 'ac.pr', + 'pro', + 'aaa.pro', + 'aca.pro', + 'acct.pro', + 'avocat.pro', + 'bar.pro', + 'cpa.pro', + 'eng.pro', + 'jur.pro', + 'law.pro', + 'med.pro', + 'recht.pro', + 'ps', + 'edu.ps', + 'gov.ps', + 'sec.ps', + 'plo.ps', + 'com.ps', + 'org.ps', + 'net.ps', + 'pt', + 'net.pt', + 'gov.pt', + 'org.pt', + 'edu.pt', + 'int.pt', + 'publ.pt', + 'com.pt', + 'nome.pt', + 'pw', + 'co.pw', + 'ne.pw', + 'or.pw', + 'ed.pw', + 'go.pw', + 'belau.pw', + 'py', + 'com.py', + 'coop.py', + 'edu.py', + 'gov.py', + 'mil.py', + 'net.py', + 'org.py', + 'qa', + 'com.qa', + 'edu.qa', + 'gov.qa', + 'mil.qa', + 'name.qa', + 'net.qa', + 'org.qa', + 'sch.qa', + 're', + 'asso.re', + 'com.re', + 'nom.re', + 'ro', + 'arts.ro', + 'com.ro', + 'firm.ro', + 'info.ro', + 'nom.ro', + 'nt.ro', + 'org.ro', + 'rec.ro', + 'store.ro', + 'tm.ro', + 'www.ro', + 'rs', + 'ac.rs', + 'co.rs', + 'edu.rs', + 'gov.rs', + 'in.rs', + 'org.rs', + 'ru', + 'rw', + 'ac.rw', + 'co.rw', + 'coop.rw', + 'gov.rw', + 'mil.rw', + 'net.rw', + 'org.rw', + 'sa', + 'com.sa', + 'net.sa', + 'org.sa', + 'gov.sa', + 'med.sa', + 'pub.sa', + 'edu.sa', + 'sch.sa', + 'sb', + 'com.sb', + 'edu.sb', + 'gov.sb', + 'net.sb', + 'org.sb', + 'sc', + 'com.sc', + 'gov.sc', + 'net.sc', + 'org.sc', + 'edu.sc', + 'sd', + 'com.sd', + 'net.sd', + 'org.sd', + 'edu.sd', + 'med.sd', + 'tv.sd', + 'gov.sd', + 'info.sd', + 'se', + 'a.se', + 'ac.se', + 'b.se', + 'bd.se', + 'brand.se', + 'c.se', + 'd.se', + 'e.se', + 'f.se', + 'fh.se', + 'fhsk.se', + 'fhv.se', + 'g.se', + 'h.se', + 'i.se', + 'k.se', + 'komforb.se', + 'kommunalforbund.se', + 'komvux.se', + 'l.se', + 'lanbib.se', + 'm.se', + 'n.se', + 'naturbruksgymn.se', + 'o.se', + 'org.se', + 'p.se', + 'parti.se', + 'pp.se', + 'press.se', + 'r.se', + 's.se', + 't.se', + 'tm.se', + 'u.se', + 'w.se', + 'x.se', + 'y.se', + 'z.se', + 'sg', + 'com.sg', + 'net.sg', + 'org.sg', + 'gov.sg', + 'edu.sg', + 'per.sg', + 'sh', + 'com.sh', + 'net.sh', + 'gov.sh', + 'org.sh', + 'mil.sh', + 'si', + 'sj', + 'sk', + 'sl', + 'com.sl', + 'net.sl', + 'edu.sl', + 'gov.sl', + 'org.sl', + 'sm', + 'sn', + 'art.sn', + 'com.sn', + 'edu.sn', + 'gouv.sn', + 'org.sn', + 'perso.sn', + 'univ.sn', + 'so', + 'com.so', + 'edu.so', + 'gov.so', + 'me.so', + 'net.so', + 'org.so', + 'sr', + 'ss', + 'biz.ss', + 'com.ss', + 'edu.ss', + 'gov.ss', + 'me.ss', + 'net.ss', + 'org.ss', + 'sch.ss', + 'st', + 'co.st', + 'com.st', + 'consulado.st', + 'edu.st', + 'embaixada.st', + 'mil.st', + 'net.st', + 'org.st', + 'principe.st', + 'saotome.st', + 'store.st', + 'su', + 'sv', + 'com.sv', + 'edu.sv', + 'gob.sv', + 'org.sv', + 'red.sv', + 'sx', + 'gov.sx', + 'sy', + 'edu.sy', + 'gov.sy', + 'net.sy', + 'mil.sy', + 'com.sy', + 'org.sy', + 'sz', + 'co.sz', + 'ac.sz', + 'org.sz', + 'tc', + 'td', + 'tel', + 'tf', + 'tg', + 'th', + 'ac.th', + 'co.th', + 'go.th', + 'in.th', + 'mi.th', + 'net.th', + 'or.th', + 'tj', + 'ac.tj', + 'biz.tj', + 'co.tj', + 'com.tj', + 'edu.tj', + 'go.tj', + 'gov.tj', + 'int.tj', + 'mil.tj', + 'name.tj', + 'net.tj', + 'nic.tj', + 'org.tj', + 'test.tj', + 'web.tj', + 'tk', + 'tl', + 'gov.tl', + 'tm', + 'com.tm', + 'co.tm', + 'org.tm', + 'net.tm', + 'nom.tm', + 'gov.tm', + 'mil.tm', + 'edu.tm', + 'tn', + 'com.tn', + 'ens.tn', + 'fin.tn', + 'gov.tn', + 'ind.tn', + 'info.tn', + 'intl.tn', + 'mincom.tn', + 'nat.tn', + 'net.tn', + 'org.tn', + 'perso.tn', + 'tourism.tn', + 'to', + 'com.to', + 'gov.to', + 'net.to', + 'org.to', + 'edu.to', + 'mil.to', + 'tr', + 'av.tr', + 'bbs.tr', + 'bel.tr', + 'biz.tr', + 'com.tr', + 'dr.tr', + 'edu.tr', + 'gen.tr', + 'gov.tr', + 'info.tr', + 'mil.tr', + 'k12.tr', + 'kep.tr', + 'name.tr', + 'net.tr', + 'org.tr', + 'pol.tr', + 'tel.tr', + 'tsk.tr', + 'tv.tr', + 'web.tr', + 'nc.tr', + 'gov.nc.tr', + 'tt', + 'co.tt', + 'com.tt', + 'org.tt', + 'net.tt', + 'biz.tt', + 'info.tt', + 'pro.tt', + 'int.tt', + 'coop.tt', + 'jobs.tt', + 'mobi.tt', + 'travel.tt', + 'museum.tt', + 'aero.tt', + 'name.tt', + 'gov.tt', + 'edu.tt', + 'tv', + 'tw', + 'edu.tw', + 'gov.tw', + 'mil.tw', + 'com.tw', + 'net.tw', + 'org.tw', + 'idv.tw', + 'game.tw', + 'ebiz.tw', + 'club.tw', + '\u7DB2\u8DEF.tw', + '\u7D44\u7E54.tw', + '\u5546\u696D.tw', + 'tz', + 'ac.tz', + 'co.tz', + 'go.tz', + 'hotel.tz', + 'info.tz', + 'me.tz', + 'mil.tz', + 'mobi.tz', + 'ne.tz', + 'or.tz', + 'sc.tz', + 'tv.tz', + 'ua', + 'com.ua', + 'edu.ua', + 'gov.ua', + 'in.ua', + 'net.ua', + 'org.ua', + 'cherkassy.ua', + 'cherkasy.ua', + 'chernigov.ua', + 'chernihiv.ua', + 'chernivtsi.ua', + 'chernovtsy.ua', + 'ck.ua', + 'cn.ua', + 'cr.ua', + 'crimea.ua', + 'cv.ua', + 'dn.ua', + 'dnepropetrovsk.ua', + 'dnipropetrovsk.ua', + 'donetsk.ua', + 'dp.ua', + 'if.ua', + 'ivano-frankivsk.ua', + 'kh.ua', + 'kharkiv.ua', + 'kharkov.ua', + 'kherson.ua', + 'khmelnitskiy.ua', + 'khmelnytskyi.ua', + 'kiev.ua', + 'kirovograd.ua', + 'km.ua', + 'kr.ua', + 'krym.ua', + 'ks.ua', + 'kv.ua', + 'kyiv.ua', + 'lg.ua', + 'lt.ua', + 'lugansk.ua', + 'lutsk.ua', + 'lv.ua', + 'lviv.ua', + 'mk.ua', + 'mykolaiv.ua', + 'nikolaev.ua', + 'od.ua', + 'odesa.ua', + 'odessa.ua', + 'pl.ua', + 'poltava.ua', + 'rivne.ua', + 'rovno.ua', + 'rv.ua', + 'sb.ua', + 'sebastopol.ua', + 'sevastopol.ua', + 'sm.ua', + 'sumy.ua', + 'te.ua', + 'ternopil.ua', + 'uz.ua', + 'uzhgorod.ua', + 'vinnica.ua', + 'vinnytsia.ua', + 'vn.ua', + 'volyn.ua', + 'yalta.ua', + 'zaporizhzhe.ua', + 'zaporizhzhia.ua', + 'zhitomir.ua', + 'zhytomyr.ua', + 'zp.ua', + 'zt.ua', + 'ug', + 'co.ug', + 'or.ug', + 'ac.ug', + 'sc.ug', + 'go.ug', + 'ne.ug', + 'com.ug', + 'org.ug', + 'uk', + 'ac.uk', + 'co.uk', + 'gov.uk', + 'ltd.uk', + 'me.uk', + 'net.uk', + 'nhs.uk', + 'org.uk', + 'plc.uk', + 'police.uk', + '*.sch.uk', + 'us', + 'dni.us', + 'fed.us', + 'isa.us', + 'kids.us', + 'nsn.us', + 'ak.us', + 'al.us', + 'ar.us', + 'as.us', + 'az.us', + 'ca.us', + 'co.us', + 'ct.us', + 'dc.us', + 'de.us', + 'fl.us', + 'ga.us', + 'gu.us', + 'hi.us', + 'ia.us', + 'id.us', + 'il.us', + 'in.us', + 'ks.us', + 'ky.us', + 'la.us', + 'ma.us', + 'md.us', + 'me.us', + 'mi.us', + 'mn.us', + 'mo.us', + 'ms.us', + 'mt.us', + 'nc.us', + 'nd.us', + 'ne.us', + 'nh.us', + 'nj.us', + 'nm.us', + 'nv.us', + 'ny.us', + 'oh.us', + 'ok.us', + 'or.us', + 'pa.us', + 'pr.us', + 'ri.us', + 'sc.us', + 'sd.us', + 'tn.us', + 'tx.us', + 'ut.us', + 'vi.us', + 'vt.us', + 'va.us', + 'wa.us', + 'wi.us', + 'wv.us', + 'wy.us', + 'k12.ak.us', + 'k12.al.us', + 'k12.ar.us', + 'k12.as.us', + 'k12.az.us', + 'k12.ca.us', + 'k12.co.us', + 'k12.ct.us', + 'k12.dc.us', + 'k12.de.us', + 'k12.fl.us', + 'k12.ga.us', + 'k12.gu.us', + 'k12.ia.us', + 'k12.id.us', + 'k12.il.us', + 'k12.in.us', + 'k12.ks.us', + 'k12.ky.us', + 'k12.la.us', + 'k12.ma.us', + 'k12.md.us', + 'k12.me.us', + 'k12.mi.us', + 'k12.mn.us', + 'k12.mo.us', + 'k12.ms.us', + 'k12.mt.us', + 'k12.nc.us', + 'k12.ne.us', + 'k12.nh.us', + 'k12.nj.us', + 'k12.nm.us', + 'k12.nv.us', + 'k12.ny.us', + 'k12.oh.us', + 'k12.ok.us', + 'k12.or.us', + 'k12.pa.us', + 'k12.pr.us', + 'k12.sc.us', + 'k12.tn.us', + 'k12.tx.us', + 'k12.ut.us', + 'k12.vi.us', + 'k12.vt.us', + 'k12.va.us', + 'k12.wa.us', + 'k12.wi.us', + 'k12.wy.us', + 'cc.ak.us', + 'cc.al.us', + 'cc.ar.us', + 'cc.as.us', + 'cc.az.us', + 'cc.ca.us', + 'cc.co.us', + 'cc.ct.us', + 'cc.dc.us', + 'cc.de.us', + 'cc.fl.us', + 'cc.ga.us', + 'cc.gu.us', + 'cc.hi.us', + 'cc.ia.us', + 'cc.id.us', + 'cc.il.us', + 'cc.in.us', + 'cc.ks.us', + 'cc.ky.us', + 'cc.la.us', + 'cc.ma.us', + 'cc.md.us', + 'cc.me.us', + 'cc.mi.us', + 'cc.mn.us', + 'cc.mo.us', + 'cc.ms.us', + 'cc.mt.us', + 'cc.nc.us', + 'cc.nd.us', + 'cc.ne.us', + 'cc.nh.us', + 'cc.nj.us', + 'cc.nm.us', + 'cc.nv.us', + 'cc.ny.us', + 'cc.oh.us', + 'cc.ok.us', + 'cc.or.us', + 'cc.pa.us', + 'cc.pr.us', + 'cc.ri.us', + 'cc.sc.us', + 'cc.sd.us', + 'cc.tn.us', + 'cc.tx.us', + 'cc.ut.us', + 'cc.vi.us', + 'cc.vt.us', + 'cc.va.us', + 'cc.wa.us', + 'cc.wi.us', + 'cc.wv.us', + 'cc.wy.us', + 'lib.ak.us', + 'lib.al.us', + 'lib.ar.us', + 'lib.as.us', + 'lib.az.us', + 'lib.ca.us', + 'lib.co.us', + 'lib.ct.us', + 'lib.dc.us', + 'lib.fl.us', + 'lib.ga.us', + 'lib.gu.us', + 'lib.hi.us', + 'lib.ia.us', + 'lib.id.us', + 'lib.il.us', + 'lib.in.us', + 'lib.ks.us', + 'lib.ky.us', + 'lib.la.us', + 'lib.ma.us', + 'lib.md.us', + 'lib.me.us', + 'lib.mi.us', + 'lib.mn.us', + 'lib.mo.us', + 'lib.ms.us', + 'lib.mt.us', + 'lib.nc.us', + 'lib.nd.us', + 'lib.ne.us', + 'lib.nh.us', + 'lib.nj.us', + 'lib.nm.us', + 'lib.nv.us', + 'lib.ny.us', + 'lib.oh.us', + 'lib.ok.us', + 'lib.or.us', + 'lib.pa.us', + 'lib.pr.us', + 'lib.ri.us', + 'lib.sc.us', + 'lib.sd.us', + 'lib.tn.us', + 'lib.tx.us', + 'lib.ut.us', + 'lib.vi.us', + 'lib.vt.us', + 'lib.va.us', + 'lib.wa.us', + 'lib.wi.us', + 'lib.wy.us', + 'pvt.k12.ma.us', + 'chtr.k12.ma.us', + 'paroch.k12.ma.us', + 'ann-arbor.mi.us', + 'cog.mi.us', + 'dst.mi.us', + 'eaton.mi.us', + 'gen.mi.us', + 'mus.mi.us', + 'tec.mi.us', + 'washtenaw.mi.us', + 'uy', + 'com.uy', + 'edu.uy', + 'gub.uy', + 'mil.uy', + 'net.uy', + 'org.uy', + 'uz', + 'co.uz', + 'com.uz', + 'net.uz', + 'org.uz', + 'va', + 'vc', + 'com.vc', + 'net.vc', + 'org.vc', + 'gov.vc', + 'mil.vc', + 'edu.vc', + 've', + 'arts.ve', + 'bib.ve', + 'co.ve', + 'com.ve', + 'e12.ve', + 'edu.ve', + 'firm.ve', + 'gob.ve', + 'gov.ve', + 'info.ve', + 'int.ve', + 'mil.ve', + 'net.ve', + 'nom.ve', + 'org.ve', + 'rar.ve', + 'rec.ve', + 'store.ve', + 'tec.ve', + 'web.ve', + 'vg', + 'vi', + 'co.vi', + 'com.vi', + 'k12.vi', + 'net.vi', + 'org.vi', + 'vn', + 'com.vn', + 'net.vn', + 'org.vn', + 'edu.vn', + 'gov.vn', + 'int.vn', + 'ac.vn', + 'biz.vn', + 'info.vn', + 'name.vn', + 'pro.vn', + 'health.vn', + 'vu', + 'com.vu', + 'edu.vu', + 'net.vu', + 'org.vu', + 'wf', + 'ws', + 'com.ws', + 'net.ws', + 'org.ws', + 'gov.ws', + 'edu.ws', + 'yt', + '\u0627\u0645\u0627\u0631\u0627\u062A', + '\u0570\u0561\u0575', + '\u09AC\u09BE\u0982\u09B2\u09BE', + '\u0431\u0433', + '\u0627\u0644\u0628\u062D\u0631\u064A\u0646', + '\u0431\u0435\u043B', + '\u4E2D\u56FD', + '\u4E2D\u570B', + '\u0627\u0644\u062C\u0632\u0627\u0626\u0631', + '\u0645\u0635\u0631', + '\u0435\u044E', + '\u03B5\u03C5', + '\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0627', + '\u10D2\u10D4', + '\u03B5\u03BB', + '\u9999\u6E2F', + '\u516C\u53F8.\u9999\u6E2F', + '\u6559\u80B2.\u9999\u6E2F', + '\u653F\u5E9C.\u9999\u6E2F', + '\u500B\u4EBA.\u9999\u6E2F', + '\u7DB2\u7D61.\u9999\u6E2F', + '\u7D44\u7E54.\u9999\u6E2F', + '\u0CAD\u0CBE\u0CB0\u0CA4', + '\u0B2D\u0B3E\u0B30\u0B24', + '\u09AD\u09BE\u09F0\u09A4', + '\u092D\u093E\u0930\u0924\u092E\u094D', + '\u092D\u093E\u0930\u094B\u0924', + '\u0680\u0627\u0631\u062A', + '\u0D2D\u0D3E\u0D30\u0D24\u0D02', + '\u092D\u093E\u0930\u0924', + '\u0628\u0627\u0631\u062A', + '\u0628\u06BE\u0627\u0631\u062A', + '\u0C2D\u0C3E\u0C30\u0C24\u0C4D', + '\u0AAD\u0ABE\u0AB0\u0AA4', + '\u0A2D\u0A3E\u0A30\u0A24', + '\u09AD\u09BE\u09B0\u09A4', + '\u0B87\u0BA8\u0BCD\u0BA4\u0BBF\u0BAF\u0BBE', + '\u0627\u06CC\u0631\u0627\u0646', + '\u0627\u064A\u0631\u0627\u0646', + '\u0639\u0631\u0627\u0642', + '\u0627\u0644\u0627\u0631\u062F\u0646', + '\uD55C\uAD6D', + '\u049B\u0430\u0437', + '\u0EA5\u0EB2\u0EA7', + '\u0DBD\u0D82\u0D9A\u0DCF', + '\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8', + '\u0627\u0644\u0645\u063A\u0631\u0628', + '\u043C\u043A\u0434', + '\u043C\u043E\u043D', + '\u6FB3\u9580', + '\u6FB3\u95E8', + '\u0645\u0644\u064A\u0633\u064A\u0627', + '\u0639\u0645\u0627\u0646', + '\u067E\u0627\u06A9\u0633\u062A\u0627\u0646', + '\u067E\u0627\u0643\u0633\u062A\u0627\u0646', + '\u0641\u0644\u0633\u0637\u064A\u0646', + '\u0441\u0440\u0431', + '\u043F\u0440.\u0441\u0440\u0431', + '\u043E\u0440\u0433.\u0441\u0440\u0431', + '\u043E\u0431\u0440.\u0441\u0440\u0431', + '\u043E\u0434.\u0441\u0440\u0431', + '\u0443\u043F\u0440.\u0441\u0440\u0431', + '\u0430\u043A.\u0441\u0440\u0431', + '\u0440\u0444', + '\u0642\u0637\u0631', + '\u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629', + '\u0627\u0644\u0633\u0639\u0648\u062F\u06CC\u0629', + '\u0627\u0644\u0633\u0639\u0648\u062F\u06CC\u06C3', + '\u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0647', + '\u0633\u0648\u062F\u0627\u0646', + '\u65B0\u52A0\u5761', + '\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD', + '\u0633\u0648\u0631\u064A\u0629', + '\u0633\u0648\u0631\u064A\u0627', + '\u0E44\u0E17\u0E22', + '\u0E28\u0E36\u0E01\u0E29\u0E32.\u0E44\u0E17\u0E22', + '\u0E18\u0E38\u0E23\u0E01\u0E34\u0E08.\u0E44\u0E17\u0E22', + '\u0E23\u0E31\u0E10\u0E1A\u0E32\u0E25.\u0E44\u0E17\u0E22', + '\u0E17\u0E2B\u0E32\u0E23.\u0E44\u0E17\u0E22', + '\u0E40\u0E19\u0E47\u0E15.\u0E44\u0E17\u0E22', + '\u0E2D\u0E07\u0E04\u0E4C\u0E01\u0E23.\u0E44\u0E17\u0E22', + '\u062A\u0648\u0646\u0633', + '\u53F0\u7063', + '\u53F0\u6E7E', + '\u81FA\u7063', + '\u0443\u043A\u0440', + '\u0627\u0644\u064A\u0645\u0646', + 'xxx', + 'ye', + 'com.ye', + 'edu.ye', + 'gov.ye', + 'net.ye', + 'mil.ye', + 'org.ye', + 'ac.za', + 'agric.za', + 'alt.za', + 'co.za', + 'edu.za', + 'gov.za', + 'grondar.za', + 'law.za', + 'mil.za', + 'net.za', + 'ngo.za', + 'nic.za', + 'nis.za', + 'nom.za', + 'org.za', + 'school.za', + 'tm.za', + 'web.za', + 'zm', + 'ac.zm', + 'biz.zm', + 'co.zm', + 'com.zm', + 'edu.zm', + 'gov.zm', + 'info.zm', + 'mil.zm', + 'net.zm', + 'org.zm', + 'sch.zm', + 'zw', + 'ac.zw', + 'co.zw', + 'gov.zw', + 'mil.zw', + 'org.zw', + 'aaa', + 'aarp', + 'abarth', + 'abb', + 'abbott', + 'abbvie', + 'abc', + 'able', + 'abogado', + 'abudhabi', + 'academy', + 'accenture', + 'accountant', + 'accountants', + 'aco', + 'actor', + 'adac', + 'ads', + 'adult', + 'aeg', + 'aetna', + 'afl', + 'africa', + 'agakhan', + 'agency', + 'aig', + 'airbus', + 'airforce', + 'airtel', + 'akdn', + 'alfaromeo', + 'alibaba', + 'alipay', + 'allfinanz', + 'allstate', + 'ally', + 'alsace', + 'alstom', + 'amazon', + 'americanexpress', + 'americanfamily', + 'amex', + 'amfam', + 'amica', + 'amsterdam', + 'analytics', + 'android', + 'anquan', + 'anz', + 'aol', + 'apartments', + 'app', + 'apple', + 'aquarelle', + 'arab', + 'aramco', + 'archi', + 'army', + 'art', + 'arte', + 'asda', + 'associates', + 'athleta', + 'attorney', + 'auction', + 'audi', + 'audible', + 'audio', + 'auspost', + 'author', + 'auto', + 'autos', + 'avianca', + 'aws', + 'axa', + 'azure', + 'baby', + 'baidu', + 'banamex', + 'bananarepublic', + 'band', + 'bank', + 'bar', + 'barcelona', + 'barclaycard', + 'barclays', + 'barefoot', + 'bargains', + 'baseball', + 'basketball', + 'bauhaus', + 'bayern', + 'bbc', + 'bbt', + 'bbva', + 'bcg', + 'bcn', + 'beats', + 'beauty', + 'beer', + 'bentley', + 'berlin', + 'best', + 'bestbuy', + 'bet', + 'bharti', + 'bible', + 'bid', + 'bike', + 'bing', + 'bingo', + 'bio', + 'black', + 'blackfriday', + 'blockbuster', + 'blog', + 'bloomberg', + 'blue', + 'bms', + 'bmw', + 'bnpparibas', + 'boats', + 'boehringer', + 'bofa', + 'bom', + 'bond', + 'boo', + 'book', + 'booking', + 'bosch', + 'bostik', + 'boston', + 'bot', + 'boutique', + 'box', + 'bradesco', + 'bridgestone', + 'broadway', + 'broker', + 'brother', + 'brussels', + 'bugatti', + 'build', + 'builders', + 'business', + 'buy', + 'buzz', + 'bzh', + 'cab', + 'cafe', + 'cal', + 'call', + 'calvinklein', + 'cam', + 'camera', + 'camp', + 'cancerresearch', + 'canon', + 'capetown', + 'capital', + 'capitalone', + 'car', + 'caravan', + 'cards', + 'care', + 'career', + 'careers', + 'cars', + 'casa', + 'case', + 'cash', + 'casino', + 'catering', + 'catholic', + 'cba', + 'cbn', + 'cbre', + 'cbs', + 'center', + 'ceo', + 'cern', + 'cfa', + 'cfd', + 'chanel', + 'channel', + 'charity', + 'chase', + 'chat', + 'cheap', + 'chintai', + 'christmas', + 'chrome', + 'church', + 'cipriani', + 'circle', + 'cisco', + 'citadel', + 'citi', + 'citic', + 'city', + 'cityeats', + 'claims', + 'cleaning', + 'click', + 'clinic', + 'clinique', + 'clothing', + 'cloud', + 'club', + 'clubmed', + 'coach', + 'codes', + 'coffee', + 'college', + 'cologne', + 'comcast', + 'commbank', + 'community', + 'company', + 'compare', + 'computer', + 'comsec', + 'condos', + 'construction', + 'consulting', + 'contact', + 'contractors', + 'cooking', + 'cookingchannel', + 'cool', + 'corsica', + 'country', + 'coupon', + 'coupons', + 'courses', + 'cpa', + 'credit', + 'creditcard', + 'creditunion', + 'cricket', + 'crown', + 'crs', + 'cruise', + 'cruises', + 'cuisinella', + 'cymru', + 'cyou', + 'dabur', + 'dad', + 'dance', + 'data', + 'date', + 'dating', + 'datsun', + 'day', + 'dclk', + 'dds', + 'deal', + 'dealer', + 'deals', + 'degree', + 'delivery', + 'dell', + 'deloitte', + 'delta', + 'democrat', + 'dental', + 'dentist', + 'desi', + 'design', + 'dev', + 'dhl', + 'diamonds', + 'diet', + 'digital', + 'direct', + 'directory', + 'discount', + 'discover', + 'dish', + 'diy', + 'dnp', + 'docs', + 'doctor', + 'dog', + 'domains', + 'dot', + 'download', + 'drive', + 'dtv', + 'dubai', + 'dunlop', + 'dupont', + 'durban', + 'dvag', + 'dvr', + 'earth', + 'eat', + 'eco', + 'edeka', + 'education', + 'email', + 'emerck', + 'energy', + 'engineer', + 'engineering', + 'enterprises', + 'epson', + 'equipment', + 'ericsson', + 'erni', + 'esq', + 'estate', + 'etisalat', + 'eurovision', + 'eus', + 'events', + 'exchange', + 'expert', + 'exposed', + 'express', + 'extraspace', + 'fage', + 'fail', + 'fairwinds', + 'faith', + 'family', + 'fan', + 'fans', + 'farm', + 'farmers', + 'fashion', + 'fast', + 'fedex', + 'feedback', + 'ferrari', + 'ferrero', + 'fiat', + 'fidelity', + 'fido', + 'film', + 'final', + 'finance', + 'financial', + 'fire', + 'firestone', + 'firmdale', + 'fish', + 'fishing', + 'fit', + 'fitness', + 'flickr', + 'flights', + 'flir', + 'florist', + 'flowers', + 'fly', + 'foo', + 'food', + 'foodnetwork', + 'football', + 'ford', + 'forex', + 'forsale', + 'forum', + 'foundation', + 'fox', + 'free', + 'fresenius', + 'frl', + 'frogans', + 'frontdoor', + 'frontier', + 'ftr', + 'fujitsu', + 'fun', + 'fund', + 'furniture', + 'futbol', + 'fyi', + 'gal', + 'gallery', + 'gallo', + 'gallup', + 'game', + 'games', + 'gap', + 'garden', + 'gay', + 'gbiz', + 'gdn', + 'gea', + 'gent', + 'genting', + 'george', + 'ggee', + 'gift', + 'gifts', + 'gives', + 'giving', + 'glass', + 'gle', + 'global', + 'globo', + 'gmail', + 'gmbh', + 'gmo', + 'gmx', + 'godaddy', + 'gold', + 'goldpoint', + 'golf', + 'goo', + 'goodyear', + 'goog', + 'google', + 'gop', + 'got', + 'grainger', + 'graphics', + 'gratis', + 'green', + 'gripe', + 'grocery', + 'group', + 'guardian', + 'gucci', + 'guge', + 'guide', + 'guitars', + 'guru', + 'hair', + 'hamburg', + 'hangout', + 'haus', + 'hbo', + 'hdfc', + 'hdfcbank', + 'health', + 'healthcare', + 'help', + 'helsinki', + 'here', + 'hermes', + 'hgtv', + 'hiphop', + 'hisamitsu', + 'hitachi', + 'hiv', + 'hkt', + 'hockey', + 'holdings', + 'holiday', + 'homedepot', + 'homegoods', + 'homes', + 'homesense', + 'honda', + 'horse', + 'hospital', + 'host', + 'hosting', + 'hot', + 'hoteles', + 'hotels', + 'hotmail', + 'house', + 'how', + 'hsbc', + 'hughes', + 'hyatt', + 'hyundai', + 'ibm', + 'icbc', + 'ice', + 'icu', + 'ieee', + 'ifm', + 'ikano', + 'imamat', + 'imdb', + 'immo', + 'immobilien', + 'inc', + 'industries', + 'infiniti', + 'ing', + 'ink', + 'institute', + 'insurance', + 'insure', + 'international', + 'intuit', + 'investments', + 'ipiranga', + 'irish', + 'ismaili', + 'ist', + 'istanbul', + 'itau', + 'itv', + 'jaguar', + 'java', + 'jcb', + 'jeep', + 'jetzt', + 'jewelry', + 'jio', + 'jll', + 'jmp', + 'jnj', + 'joburg', + 'jot', + 'joy', + 'jpmorgan', + 'jprs', + 'juegos', + 'juniper', + 'kaufen', + 'kddi', + 'kerryhotels', + 'kerrylogistics', + 'kerryproperties', + 'kfh', + 'kia', + 'kids', + 'kim', + 'kinder', + 'kindle', + 'kitchen', + 'kiwi', + 'koeln', + 'komatsu', + 'kosher', + 'kpmg', + 'kpn', + 'krd', + 'kred', + 'kuokgroup', + 'kyoto', + 'lacaixa', + 'lamborghini', + 'lamer', + 'lancaster', + 'lancia', + 'land', + 'landrover', + 'lanxess', + 'lasalle', + 'lat', + 'latino', + 'latrobe', + 'law', + 'lawyer', + 'lds', + 'lease', + 'leclerc', + 'lefrak', + 'legal', + 'lego', + 'lexus', + 'lgbt', + 'lidl', + 'life', + 'lifeinsurance', + 'lifestyle', + 'lighting', + 'like', + 'lilly', + 'limited', + 'limo', + 'lincoln', + 'linde', + 'link', + 'lipsy', + 'live', + 'living', + 'llc', + 'llp', + 'loan', + 'loans', + 'locker', + 'locus', + 'loft', + 'lol', + 'london', + 'lotte', + 'lotto', + 'love', + 'lpl', + 'lplfinancial', + 'ltd', + 'ltda', + 'lundbeck', + 'luxe', + 'luxury', + 'macys', + 'madrid', + 'maif', + 'maison', + 'makeup', + 'man', + 'management', + 'mango', + 'map', + 'market', + 'marketing', + 'markets', + 'marriott', + 'marshalls', + 'maserati', + 'mattel', + 'mba', + 'mckinsey', + 'med', + 'media', + 'meet', + 'melbourne', + 'meme', + 'memorial', + 'men', + 'menu', + 'merckmsd', + 'miami', + 'microsoft', + 'mini', + 'mint', + 'mit', + 'mitsubishi', + 'mlb', + 'mls', + 'mma', + 'mobile', + 'moda', + 'moe', + 'moi', + 'mom', + 'monash', + 'money', + 'monster', + 'mormon', + 'mortgage', + 'moscow', + 'moto', + 'motorcycles', + 'mov', + 'movie', + 'msd', + 'mtn', + 'mtr', + 'music', + 'mutual', + 'nab', + 'nagoya', + 'natura', + 'navy', + 'nba', + 'nec', + 'netbank', + 'netflix', + 'network', + 'neustar', + 'new', + 'news', + 'next', + 'nextdirect', + 'nexus', + 'nfl', + 'ngo', + 'nhk', + 'nico', + 'nike', + 'nikon', + 'ninja', + 'nissan', + 'nissay', + 'nokia', + 'northwesternmutual', + 'norton', + 'now', + 'nowruz', + 'nowtv', + 'nra', + 'nrw', + 'ntt', + 'nyc', + 'obi', + 'observer', + 'office', + 'okinawa', + 'olayan', + 'olayangroup', + 'oldnavy', + 'ollo', + 'omega', + 'one', + 'ong', + 'onl', + 'online', + 'ooo', + 'open', + 'oracle', + 'orange', + 'organic', + 'origins', + 'osaka', + 'otsuka', + 'ott', + 'ovh', + 'page', + 'panasonic', + 'paris', + 'pars', + 'partners', + 'parts', + 'party', + 'passagens', + 'pay', + 'pccw', + 'pet', + 'pfizer', + 'pharmacy', + 'phd', + 'philips', + 'phone', + 'photo', + 'photography', + 'photos', + 'physio', + 'pics', + 'pictet', + 'pictures', + 'pid', + 'pin', + 'ping', + 'pink', + 'pioneer', + 'pizza', + 'place', + 'play', + 'playstation', + 'plumbing', + 'plus', + 'pnc', + 'pohl', + 'poker', + 'politie', + 'porn', + 'pramerica', + 'praxi', + 'press', + 'prime', + 'prod', + 'productions', + 'prof', + 'progressive', + 'promo', + 'properties', + 'property', + 'protection', + 'pru', + 'prudential', + 'pub', + 'pwc', + 'qpon', + 'quebec', + 'quest', + 'racing', + 'radio', + 'read', + 'realestate', + 'realtor', + 'realty', + 'recipes', + 'red', + 'redstone', + 'redumbrella', + 'rehab', + 'reise', + 'reisen', + 'reit', + 'reliance', + 'ren', + 'rent', + 'rentals', + 'repair', + 'report', + 'republican', + 'rest', + 'restaurant', + 'review', + 'reviews', + 'rexroth', + 'rich', + 'richardli', + 'ricoh', + 'ril', + 'rio', + 'rip', + 'rocher', + 'rocks', + 'rodeo', + 'rogers', + 'room', + 'rsvp', + 'rugby', + 'ruhr', + 'run', + 'rwe', + 'ryukyu', + 'saarland', + 'safe', + 'safety', + 'sakura', + 'sale', + 'salon', + 'samsclub', + 'samsung', + 'sandvik', + 'sandvikcoromant', + 'sanofi', + 'sap', + 'sarl', + 'sas', + 'save', + 'saxo', + 'sbi', + 'sbs', + 'sca', + 'scb', + 'schaeffler', + 'schmidt', + 'scholarships', + 'school', + 'schule', + 'schwarz', + 'science', + 'scot', + 'search', + 'seat', + 'secure', + 'security', + 'seek', + 'select', + 'sener', + 'services', + 'ses', + 'seven', + 'sew', + 'sex', + 'sexy', + 'sfr', + 'shangrila', + 'sharp', + 'shaw', + 'shell', + 'shia', + 'shiksha', + 'shoes', + 'shop', + 'shopping', + 'shouji', + 'show', + 'showtime', + 'silk', + 'sina', + 'singles', + 'site', + 'ski', + 'skin', + 'sky', + 'skype', + 'sling', + 'smart', + 'smile', + 'sncf', + 'soccer', + 'social', + 'softbank', + 'software', + 'sohu', + 'solar', + 'solutions', + 'song', + 'sony', + 'soy', + 'spa', + 'space', + 'sport', + 'spot', + 'srl', + 'stada', + 'staples', + 'star', + 'statebank', + 'statefarm', + 'stc', + 'stcgroup', + 'stockholm', + 'storage', + 'store', + 'stream', + 'studio', + 'study', + 'style', + 'sucks', + 'supplies', + 'supply', + 'support', + 'surf', + 'surgery', + 'suzuki', + 'swatch', + 'swiss', + 'sydney', + 'systems', + 'tab', + 'taipei', + 'talk', + 'taobao', + 'target', + 'tatamotors', + 'tatar', + 'tattoo', + 'tax', + 'taxi', + 'tci', + 'tdk', + 'team', + 'tech', + 'technology', + 'temasek', + 'tennis', + 'teva', + 'thd', + 'theater', + 'theatre', + 'tiaa', + 'tickets', + 'tienda', + 'tiffany', + 'tips', + 'tires', + 'tirol', + 'tjmaxx', + 'tjx', + 'tkmaxx', + 'tmall', + 'today', + 'tokyo', + 'tools', + 'top', + 'toray', + 'toshiba', + 'total', + 'tours', + 'town', + 'toyota', + 'toys', + 'trade', + 'trading', + 'training', + 'travel', + 'travelchannel', + 'travelers', + 'travelersinsurance', + 'trust', + 'trv', + 'tube', + 'tui', + 'tunes', + 'tushu', + 'tvs', + 'ubank', + 'ubs', + 'unicom', + 'university', + 'uno', + 'uol', + 'ups', + 'vacations', + 'vana', + 'vanguard', + 'vegas', + 'ventures', + 'verisign', + 'versicherung', + 'vet', + 'viajes', + 'video', + 'vig', + 'viking', + 'villas', + 'vin', + 'vip', + 'virgin', + 'visa', + 'vision', + 'viva', + 'vivo', + 'vlaanderen', + 'vodka', + 'volkswagen', + 'volvo', + 'vote', + 'voting', + 'voto', + 'voyage', + 'vuelos', + 'wales', + 'walmart', + 'walter', + 'wang', + 'wanggou', + 'watch', + 'watches', + 'weather', + 'weatherchannel', + 'webcam', + 'weber', + 'website', + 'wedding', + 'weibo', + 'weir', + 'whoswho', + 'wien', + 'wiki', + 'williamhill', + 'win', + 'windows', + 'wine', + 'winners', + 'wme', + 'wolterskluwer', + 'woodside', + 'work', + 'works', + 'world', + 'wow', + 'wtc', + 'wtf', + 'xbox', + 'xerox', + 'xfinity', + 'xihuan', + 'xin', + '\u0915\u0949\u092E', + '\u30BB\u30FC\u30EB', + '\u4F5B\u5C71', + '\u6148\u5584', + '\u96C6\u56E2', + '\u5728\u7EBF', + '\u70B9\u770B', + '\u0E04\u0E2D\u0E21', + '\u516B\u5366', + '\u0645\u0648\u0642\u0639', + '\u516C\u76CA', + '\u516C\u53F8', + '\u9999\u683C\u91CC\u62C9', + '\u7F51\u7AD9', + '\u79FB\u52A8', + '\u6211\u7231\u4F60', + '\u043C\u043E\u0441\u043A\u0432\u0430', + '\u043A\u0430\u0442\u043E\u043B\u0438\u043A', + '\u043E\u043D\u043B\u0430\u0439\u043D', + '\u0441\u0430\u0439\u0442', + '\u8054\u901A', + '\u05E7\u05D5\u05DD', + '\u65F6\u5C1A', + '\u5FAE\u535A', + '\u6DE1\u9A6C\u9521', + '\u30D5\u30A1\u30C3\u30B7\u30E7\u30F3', + '\u043E\u0440\u0433', + '\u0928\u0947\u091F', + '\u30B9\u30C8\u30A2', + '\u30A2\u30DE\u30BE\u30F3', + '\uC0BC\uC131', + '\u5546\u6807', + '\u5546\u5E97', + '\u5546\u57CE', + '\u0434\u0435\u0442\u0438', + '\u30DD\u30A4\u30F3\u30C8', + '\u65B0\u95FB', + '\u5BB6\u96FB', + '\u0643\u0648\u0645', + '\u4E2D\u6587\u7F51', + '\u4E2D\u4FE1', + '\u5A31\u4E50', + '\u8C37\u6B4C', + '\u96FB\u8A0A\u76C8\u79D1', + '\u8D2D\u7269', + '\u30AF\u30E9\u30A6\u30C9', + '\u901A\u8CA9', + '\u7F51\u5E97', + '\u0938\u0902\u0917\u0920\u0928', + '\u9910\u5385', + '\u7F51\u7EDC', + '\u043A\u043E\u043C', + '\u4E9A\u9A6C\u900A', + '\u8BFA\u57FA\u4E9A', + '\u98DF\u54C1', + '\u98DE\u5229\u6D66', + '\u624B\u673A', + '\u0627\u0631\u0627\u0645\u0643\u0648', + '\u0627\u0644\u0639\u0644\u064A\u0627\u0646', + '\u0627\u062A\u0635\u0627\u0644\u0627\u062A', + '\u0628\u0627\u0632\u0627\u0631', + '\u0627\u0628\u0648\u0638\u0628\u064A', + '\u0643\u0627\u062B\u0648\u0644\u064A\u0643', + '\u0647\u0645\u0631\u0627\u0647', + '\uB2F7\uCEF4', + '\u653F\u5E9C', + '\u0634\u0628\u0643\u0629', + '\u0628\u064A\u062A\u0643', + '\u0639\u0631\u0628', + '\u673A\u6784', + '\u7EC4\u7EC7\u673A\u6784', + '\u5065\u5EB7', + '\u62DB\u8058', + '\u0440\u0443\u0441', + '\u5927\u62FF', + '\u307F\u3093\u306A', + '\u30B0\u30FC\u30B0\u30EB', + '\u4E16\u754C', + '\u66F8\u7C4D', + '\u7F51\u5740', + '\uB2F7\uB137', + '\u30B3\u30E0', + '\u5929\u4E3B\u6559', + '\u6E38\u620F', + 'verm\xF6gensberater', + 'verm\xF6gensberatung', + '\u4F01\u4E1A', + '\u4FE1\u606F', + '\u5609\u91CC\u5927\u9152\u5E97', + '\u5609\u91CC', + '\u5E7F\u4E1C', + '\u653F\u52A1', + 'xyz', + 'yachts', + 'yahoo', + 'yamaxun', + 'yandex', + 'yodobashi', + 'yoga', + 'yokohama', + 'you', + 'youtube', + 'yun', + 'zappos', + 'zara', + 'zero', + 'zip', + 'zone', + 'zuerich', + 'cc.ua', + 'inf.ua', + 'ltd.ua', + '611.to', + 'graphox.us', + '*.devcdnaccesso.com', + 'adobeaemcloud.com', + '*.dev.adobeaemcloud.com', + 'hlx.live', + 'adobeaemcloud.net', + 'hlx.page', + 'hlx3.page', + 'beep.pl', + 'airkitapps.com', + 'airkitapps-au.com', + 'airkitapps.eu', + 'aivencloud.com', + 'barsy.ca', + '*.compute.estate', + '*.alces.network', + 'kasserver.com', + 'altervista.org', + 'alwaysdata.net', + 'cloudfront.net', + '*.compute.amazonaws.com', + '*.compute-1.amazonaws.com', + '*.compute.amazonaws.com.cn', + 'us-east-1.amazonaws.com', + 'cn-north-1.eb.amazonaws.com.cn', + 'cn-northwest-1.eb.amazonaws.com.cn', + 'elasticbeanstalk.com', + 'ap-northeast-1.elasticbeanstalk.com', + 'ap-northeast-2.elasticbeanstalk.com', + 'ap-northeast-3.elasticbeanstalk.com', + 'ap-south-1.elasticbeanstalk.com', + 'ap-southeast-1.elasticbeanstalk.com', + 'ap-southeast-2.elasticbeanstalk.com', + 'ca-central-1.elasticbeanstalk.com', + 'eu-central-1.elasticbeanstalk.com', + 'eu-west-1.elasticbeanstalk.com', + 'eu-west-2.elasticbeanstalk.com', + 'eu-west-3.elasticbeanstalk.com', + 'sa-east-1.elasticbeanstalk.com', + 'us-east-1.elasticbeanstalk.com', + 'us-east-2.elasticbeanstalk.com', + 'us-gov-west-1.elasticbeanstalk.com', + 'us-west-1.elasticbeanstalk.com', + 'us-west-2.elasticbeanstalk.com', + '*.elb.amazonaws.com', + '*.elb.amazonaws.com.cn', + 'awsglobalaccelerator.com', + 's3.amazonaws.com', + 's3-ap-northeast-1.amazonaws.com', + 's3-ap-northeast-2.amazonaws.com', + 's3-ap-south-1.amazonaws.com', + 's3-ap-southeast-1.amazonaws.com', + 's3-ap-southeast-2.amazonaws.com', + 's3-ca-central-1.amazonaws.com', + 's3-eu-central-1.amazonaws.com', + 's3-eu-west-1.amazonaws.com', + 's3-eu-west-2.amazonaws.com', + 's3-eu-west-3.amazonaws.com', + 's3-external-1.amazonaws.com', + 's3-fips-us-gov-west-1.amazonaws.com', + 's3-sa-east-1.amazonaws.com', + 's3-us-gov-west-1.amazonaws.com', + 's3-us-east-2.amazonaws.com', + 's3-us-west-1.amazonaws.com', + 's3-us-west-2.amazonaws.com', + 's3.ap-northeast-2.amazonaws.com', + 's3.ap-south-1.amazonaws.com', + 's3.cn-north-1.amazonaws.com.cn', + 's3.ca-central-1.amazonaws.com', + 's3.eu-central-1.amazonaws.com', + 's3.eu-west-2.amazonaws.com', + 's3.eu-west-3.amazonaws.com', + 's3.us-east-2.amazonaws.com', + 's3.dualstack.ap-northeast-1.amazonaws.com', + 's3.dualstack.ap-northeast-2.amazonaws.com', + 's3.dualstack.ap-south-1.amazonaws.com', + 's3.dualstack.ap-southeast-1.amazonaws.com', + 's3.dualstack.ap-southeast-2.amazonaws.com', + 's3.dualstack.ca-central-1.amazonaws.com', + 's3.dualstack.eu-central-1.amazonaws.com', + 's3.dualstack.eu-west-1.amazonaws.com', + 's3.dualstack.eu-west-2.amazonaws.com', + 's3.dualstack.eu-west-3.amazonaws.com', + 's3.dualstack.sa-east-1.amazonaws.com', + 's3.dualstack.us-east-1.amazonaws.com', + 's3.dualstack.us-east-2.amazonaws.com', + 's3-website-us-east-1.amazonaws.com', + 's3-website-us-west-1.amazonaws.com', + 's3-website-us-west-2.amazonaws.com', + 's3-website-ap-northeast-1.amazonaws.com', + 's3-website-ap-southeast-1.amazonaws.com', + 's3-website-ap-southeast-2.amazonaws.com', + 's3-website-eu-west-1.amazonaws.com', + 's3-website-sa-east-1.amazonaws.com', + 's3-website.ap-northeast-2.amazonaws.com', + 's3-website.ap-south-1.amazonaws.com', + 's3-website.ca-central-1.amazonaws.com', + 's3-website.eu-central-1.amazonaws.com', + 's3-website.eu-west-2.amazonaws.com', + 's3-website.eu-west-3.amazonaws.com', + 's3-website.us-east-2.amazonaws.com', + 't3l3p0rt.net', + 'tele.amune.org', + 'apigee.io', + 'siiites.com', + 'appspacehosted.com', + 'appspaceusercontent.com', + 'appudo.net', + 'on-aptible.com', + 'user.aseinet.ne.jp', + 'gv.vc', + 'd.gv.vc', + 'user.party.eus', + 'pimienta.org', + 'poivron.org', + 'potager.org', + 'sweetpepper.org', + 'myasustor.com', + 'cdn.prod.atlassian-dev.net', + 'translated.page', + 'myfritz.net', + 'onavstack.net', + '*.awdev.ca', + '*.advisor.ws', + 'ecommerce-shop.pl', + 'b-data.io', + 'backplaneapp.io', + 'balena-devices.com', + 'rs.ba', + '*.banzai.cloud', + 'app.banzaicloud.io', + '*.backyards.banzaicloud.io', + 'base.ec', + 'official.ec', + 'buyshop.jp', + 'fashionstore.jp', + 'handcrafted.jp', + 'kawaiishop.jp', + 'supersale.jp', + 'theshop.jp', + 'shopselect.net', + 'base.shop', + '*.beget.app', + 'betainabox.com', + 'bnr.la', + 'bitbucket.io', + 'blackbaudcdn.net', + 'of.je', + 'bluebite.io', + 'boomla.net', + 'boutir.com', + 'boxfuse.io', + 'square7.ch', + 'bplaced.com', + 'bplaced.de', + 'square7.de', + 'bplaced.net', + 'square7.net', + 'shop.brendly.rs', + 'browsersafetymark.io', + 'uk0.bigv.io', + 'dh.bytemark.co.uk', + 'vm.bytemark.co.uk', + 'cafjs.com', + 'mycd.eu', + 'drr.ac', + 'uwu.ai', + 'carrd.co', + 'crd.co', + 'ju.mp', + 'ae.org', + 'br.com', + 'cn.com', + 'com.de', + 'com.se', + 'de.com', + 'eu.com', + 'gb.net', + 'hu.net', + 'jp.net', + 'jpn.com', + 'mex.com', + 'ru.com', + 'sa.com', + 'se.net', + 'uk.com', + 'uk.net', + 'us.com', + 'za.bz', + 'za.com', + 'ar.com', + 'hu.com', + 'kr.com', + 'no.com', + 'qc.com', + 'uy.com', + 'africa.com', + 'gr.com', + 'in.net', + 'web.in', + 'us.org', + 'co.com', + 'aus.basketball', + 'nz.basketball', + 'radio.am', + 'radio.fm', + 'c.la', + 'certmgr.org', + 'cx.ua', + 'discourse.group', + 'discourse.team', + 'cleverapps.io', + 'clerk.app', + 'clerkstage.app', + '*.lcl.dev', + '*.lclstage.dev', + '*.stg.dev', + '*.stgstage.dev', + 'clickrising.net', + 'c66.me', + 'cloud66.ws', + 'cloud66.zone', + 'jdevcloud.com', + 'wpdevcloud.com', + 'cloudaccess.host', + 'freesite.host', + 'cloudaccess.net', + 'cloudcontrolled.com', + 'cloudcontrolapp.com', + '*.cloudera.site', + 'pages.dev', + 'trycloudflare.com', + 'workers.dev', + 'wnext.app', + 'co.ca', + '*.otap.co', + 'co.cz', + 'c.cdn77.org', + 'cdn77-ssl.net', + 'r.cdn77.net', + 'rsc.cdn77.org', + 'ssl.origin.cdn77-secure.org', + 'cloudns.asia', + 'cloudns.biz', + 'cloudns.club', + 'cloudns.cc', + 'cloudns.eu', + 'cloudns.in', + 'cloudns.info', + 'cloudns.org', + 'cloudns.pro', + 'cloudns.pw', + 'cloudns.us', + 'cnpy.gdn', + 'codeberg.page', + 'co.nl', + 'co.no', + 'webhosting.be', + 'hosting-cluster.nl', + 'ac.ru', + 'edu.ru', + 'gov.ru', + 'int.ru', + 'mil.ru', + 'test.ru', + 'dyn.cosidns.de', + 'dynamisches-dns.de', + 'dnsupdater.de', + 'internet-dns.de', + 'l-o-g-i-n.de', + 'dynamic-dns.info', + 'feste-ip.net', + 'knx-server.net', + 'static-access.net', + 'realm.cz', + '*.cryptonomic.net', + 'cupcake.is', + 'curv.dev', + '*.customer-oci.com', + '*.oci.customer-oci.com', + '*.ocp.customer-oci.com', + '*.ocs.customer-oci.com', + 'cyon.link', + 'cyon.site', + 'fnwk.site', + 'folionetwork.site', + 'platform0.app', + 'daplie.me', + 'localhost.daplie.me', + 'dattolocal.com', + 'dattorelay.com', + 'dattoweb.com', + 'mydatto.com', + 'dattolocal.net', + 'mydatto.net', + 'biz.dk', + 'co.dk', + 'firm.dk', + 'reg.dk', + 'store.dk', + 'dyndns.dappnode.io', + '*.dapps.earth', + '*.bzz.dapps.earth', + 'builtwithdark.com', + 'demo.datadetect.com', + 'instance.datadetect.com', + 'edgestack.me', + 'ddns5.com', + 'debian.net', + 'deno.dev', + 'deno-staging.dev', + 'dedyn.io', + 'deta.app', + 'deta.dev', + '*.rss.my.id', + '*.diher.solutions', + 'discordsays.com', + 'discordsez.com', + 'jozi.biz', + 'dnshome.de', + 'online.th', + 'shop.th', + 'drayddns.com', + 'shoparena.pl', + 'dreamhosters.com', + 'mydrobo.com', + 'drud.io', + 'drud.us', + 'duckdns.org', + 'bip.sh', + 'bitbridge.net', + 'dy.fi', + 'tunk.org', + 'dyndns-at-home.com', + 'dyndns-at-work.com', + 'dyndns-blog.com', + 'dyndns-free.com', + 'dyndns-home.com', + 'dyndns-ip.com', + 'dyndns-mail.com', + 'dyndns-office.com', + 'dyndns-pics.com', + 'dyndns-remote.com', + 'dyndns-server.com', + 'dyndns-web.com', + 'dyndns-wiki.com', + 'dyndns-work.com', + 'dyndns.biz', + 'dyndns.info', + 'dyndns.org', + 'dyndns.tv', + 'at-band-camp.net', + 'ath.cx', + 'barrel-of-knowledge.info', + 'barrell-of-knowledge.info', + 'better-than.tv', + 'blogdns.com', + 'blogdns.net', + 'blogdns.org', + 'blogsite.org', + 'boldlygoingnowhere.org', + 'broke-it.net', + 'buyshouses.net', + 'cechire.com', + 'dnsalias.com', + 'dnsalias.net', + 'dnsalias.org', + 'dnsdojo.com', + 'dnsdojo.net', + 'dnsdojo.org', + 'does-it.net', + 'doesntexist.com', + 'doesntexist.org', + 'dontexist.com', + 'dontexist.net', + 'dontexist.org', + 'doomdns.com', + 'doomdns.org', + 'dvrdns.org', + 'dyn-o-saur.com', + 'dynalias.com', + 'dynalias.net', + 'dynalias.org', + 'dynathome.net', + 'dyndns.ws', + 'endofinternet.net', + 'endofinternet.org', + 'endoftheinternet.org', + 'est-a-la-maison.com', + 'est-a-la-masion.com', + 'est-le-patron.com', + 'est-mon-blogueur.com', + 'for-better.biz', + 'for-more.biz', + 'for-our.info', + 'for-some.biz', + 'for-the.biz', + 'forgot.her.name', + 'forgot.his.name', + 'from-ak.com', + 'from-al.com', + 'from-ar.com', + 'from-az.net', + 'from-ca.com', + 'from-co.net', + 'from-ct.com', + 'from-dc.com', + 'from-de.com', + 'from-fl.com', + 'from-ga.com', + 'from-hi.com', + 'from-ia.com', + 'from-id.com', + 'from-il.com', + 'from-in.com', + 'from-ks.com', + 'from-ky.com', + 'from-la.net', + 'from-ma.com', + 'from-md.com', + 'from-me.org', + 'from-mi.com', + 'from-mn.com', + 'from-mo.com', + 'from-ms.com', + 'from-mt.com', + 'from-nc.com', + 'from-nd.com', + 'from-ne.com', + 'from-nh.com', + 'from-nj.com', + 'from-nm.com', + 'from-nv.com', + 'from-ny.net', + 'from-oh.com', + 'from-ok.com', + 'from-or.com', + 'from-pa.com', + 'from-pr.com', + 'from-ri.com', + 'from-sc.com', + 'from-sd.com', + 'from-tn.com', + 'from-tx.com', + 'from-ut.com', + 'from-va.com', + 'from-vt.com', + 'from-wa.com', + 'from-wi.com', + 'from-wv.com', + 'from-wy.com', + 'ftpaccess.cc', + 'fuettertdasnetz.de', + 'game-host.org', + 'game-server.cc', + 'getmyip.com', + 'gets-it.net', + 'go.dyndns.org', + 'gotdns.com', + 'gotdns.org', + 'groks-the.info', + 'groks-this.info', + 'ham-radio-op.net', + 'here-for-more.info', + 'hobby-site.com', + 'hobby-site.org', + 'home.dyndns.org', + 'homedns.org', + 'homeftp.net', + 'homeftp.org', + 'homeip.net', + 'homelinux.com', + 'homelinux.net', + 'homelinux.org', + 'homeunix.com', + 'homeunix.net', + 'homeunix.org', + 'iamallama.com', + 'in-the-band.net', + 'is-a-anarchist.com', + 'is-a-blogger.com', + 'is-a-bookkeeper.com', + 'is-a-bruinsfan.org', + 'is-a-bulls-fan.com', + 'is-a-candidate.org', + 'is-a-caterer.com', + 'is-a-celticsfan.org', + 'is-a-chef.com', + 'is-a-chef.net', + 'is-a-chef.org', + 'is-a-conservative.com', + 'is-a-cpa.com', + 'is-a-cubicle-slave.com', + 'is-a-democrat.com', + 'is-a-designer.com', + 'is-a-doctor.com', + 'is-a-financialadvisor.com', + 'is-a-geek.com', + 'is-a-geek.net', + 'is-a-geek.org', + 'is-a-green.com', + 'is-a-guru.com', + 'is-a-hard-worker.com', + 'is-a-hunter.com', + 'is-a-knight.org', + 'is-a-landscaper.com', + 'is-a-lawyer.com', + 'is-a-liberal.com', + 'is-a-libertarian.com', + 'is-a-linux-user.org', + 'is-a-llama.com', + 'is-a-musician.com', + 'is-a-nascarfan.com', + 'is-a-nurse.com', + 'is-a-painter.com', + 'is-a-patsfan.org', + 'is-a-personaltrainer.com', + 'is-a-photographer.com', + 'is-a-player.com', + 'is-a-republican.com', + 'is-a-rockstar.com', + 'is-a-socialist.com', + 'is-a-soxfan.org', + 'is-a-student.com', + 'is-a-teacher.com', + 'is-a-techie.com', + 'is-a-therapist.com', + 'is-an-accountant.com', + 'is-an-actor.com', + 'is-an-actress.com', + 'is-an-anarchist.com', + 'is-an-artist.com', + 'is-an-engineer.com', + 'is-an-entertainer.com', + 'is-by.us', + 'is-certified.com', + 'is-found.org', + 'is-gone.com', + 'is-into-anime.com', + 'is-into-cars.com', + 'is-into-cartoons.com', + 'is-into-games.com', + 'is-leet.com', + 'is-lost.org', + 'is-not-certified.com', + 'is-saved.org', + 'is-slick.com', + 'is-uberleet.com', + 'is-very-bad.org', + 'is-very-evil.org', + 'is-very-good.org', + 'is-very-nice.org', + 'is-very-sweet.org', + 'is-with-theband.com', + 'isa-geek.com', + 'isa-geek.net', + 'isa-geek.org', + 'isa-hockeynut.com', + 'issmarterthanyou.com', + 'isteingeek.de', + 'istmein.de', + 'kicks-ass.net', + 'kicks-ass.org', + 'knowsitall.info', + 'land-4-sale.us', + 'lebtimnetz.de', + 'leitungsen.de', + 'likes-pie.com', + 'likescandy.com', + 'merseine.nu', + 'mine.nu', + 'misconfused.org', + 'mypets.ws', + 'myphotos.cc', + 'neat-url.com', + 'office-on-the.net', + 'on-the-web.tv', + 'podzone.net', + 'podzone.org', + 'readmyblog.org', + 'saves-the-whales.com', + 'scrapper-site.net', + 'scrapping.cc', + 'selfip.biz', + 'selfip.com', + 'selfip.info', + 'selfip.net', + 'selfip.org', + 'sells-for-less.com', + 'sells-for-u.com', + 'sells-it.net', + 'sellsyourhome.org', + 'servebbs.com', + 'servebbs.net', + 'servebbs.org', + 'serveftp.net', + 'serveftp.org', + 'servegame.org', + 'shacknet.nu', + 'simple-url.com', + 'space-to-rent.com', + 'stuff-4-sale.org', + 'stuff-4-sale.us', + 'teaches-yoga.com', + 'thruhere.net', + 'traeumtgerade.de', + 'webhop.biz', + 'webhop.info', + 'webhop.net', + 'webhop.org', + 'worse-than.tv', + 'writesthisblog.com', + 'ddnss.de', + 'dyn.ddnss.de', + 'dyndns.ddnss.de', + 'dyndns1.de', + 'dyn-ip24.de', + 'home-webserver.de', + 'dyn.home-webserver.de', + 'myhome-server.de', + 'ddnss.org', + 'definima.net', + 'definima.io', + 'ondigitalocean.app', + '*.digitaloceanspaces.com', + 'bci.dnstrace.pro', + 'ddnsfree.com', + 'ddnsgeek.com', + 'giize.com', + 'gleeze.com', + 'kozow.com', + 'loseyourip.com', + 'ooguy.com', + 'theworkpc.com', + 'casacam.net', + 'dynu.net', + 'accesscam.org', + 'camdvr.org', + 'freeddns.org', + 'mywire.org', + 'webredirect.org', + 'myddns.rocks', + 'blogsite.xyz', + 'dynv6.net', + 'e4.cz', + 'eero.online', + 'eero-stage.online', + 'elementor.cloud', + 'elementor.cool', + 'en-root.fr', + 'mytuleap.com', + 'tuleap-partners.com', + 'encr.app', + 'encoreapi.com', + 'onred.one', + 'staging.onred.one', + 'eu.encoway.cloud', + 'eu.org', + 'al.eu.org', + 'asso.eu.org', + 'at.eu.org', + 'au.eu.org', + 'be.eu.org', + 'bg.eu.org', + 'ca.eu.org', + 'cd.eu.org', + 'ch.eu.org', + 'cn.eu.org', + 'cy.eu.org', + 'cz.eu.org', + 'de.eu.org', + 'dk.eu.org', + 'edu.eu.org', + 'ee.eu.org', + 'es.eu.org', + 'fi.eu.org', + 'fr.eu.org', + 'gr.eu.org', + 'hr.eu.org', + 'hu.eu.org', + 'ie.eu.org', + 'il.eu.org', + 'in.eu.org', + 'int.eu.org', + 'is.eu.org', + 'it.eu.org', + 'jp.eu.org', + 'kr.eu.org', + 'lt.eu.org', + 'lu.eu.org', + 'lv.eu.org', + 'mc.eu.org', + 'me.eu.org', + 'mk.eu.org', + 'mt.eu.org', + 'my.eu.org', + 'net.eu.org', + 'ng.eu.org', + 'nl.eu.org', + 'no.eu.org', + 'nz.eu.org', + 'paris.eu.org', + 'pl.eu.org', + 'pt.eu.org', + 'q-a.eu.org', + 'ro.eu.org', + 'ru.eu.org', + 'se.eu.org', + 'si.eu.org', + 'sk.eu.org', + 'tr.eu.org', + 'uk.eu.org', + 'us.eu.org', + 'eurodir.ru', + 'eu-1.evennode.com', + 'eu-2.evennode.com', + 'eu-3.evennode.com', + 'eu-4.evennode.com', + 'us-1.evennode.com', + 'us-2.evennode.com', + 'us-3.evennode.com', + 'us-4.evennode.com', + 'twmail.cc', + 'twmail.net', + 'twmail.org', + 'mymailer.com.tw', + 'url.tw', + 'onfabrica.com', + 'apps.fbsbx.com', + 'ru.net', + 'adygeya.ru', + 'bashkiria.ru', + 'bir.ru', + 'cbg.ru', + 'com.ru', + 'dagestan.ru', + 'grozny.ru', + 'kalmykia.ru', + 'kustanai.ru', + 'marine.ru', + 'mordovia.ru', + 'msk.ru', + 'mytis.ru', + 'nalchik.ru', + 'nov.ru', + 'pyatigorsk.ru', + 'spb.ru', + 'vladikavkaz.ru', + 'vladimir.ru', + 'abkhazia.su', + 'adygeya.su', + 'aktyubinsk.su', + 'arkhangelsk.su', + 'armenia.su', + 'ashgabad.su', + 'azerbaijan.su', + 'balashov.su', + 'bashkiria.su', + 'bryansk.su', + 'bukhara.su', + 'chimkent.su', + 'dagestan.su', + 'east-kazakhstan.su', + 'exnet.su', + 'georgia.su', + 'grozny.su', + 'ivanovo.su', + 'jambyl.su', + 'kalmykia.su', + 'kaluga.su', + 'karacol.su', + 'karaganda.su', + 'karelia.su', + 'khakassia.su', + 'krasnodar.su', + 'kurgan.su', + 'kustanai.su', + 'lenug.su', + 'mangyshlak.su', + 'mordovia.su', + 'msk.su', + 'murmansk.su', + 'nalchik.su', + 'navoi.su', + 'north-kazakhstan.su', + 'nov.su', + 'obninsk.su', + 'penza.su', + 'pokrovsk.su', + 'sochi.su', + 'spb.su', + 'tashkent.su', + 'termez.su', + 'togliatti.su', + 'troitsk.su', + 'tselinograd.su', + 'tula.su', + 'tuva.su', + 'vladikavkaz.su', + 'vladimir.su', + 'vologda.su', + 'channelsdvr.net', + 'u.channelsdvr.net', + 'edgecompute.app', + 'fastly-terrarium.com', + 'fastlylb.net', + 'map.fastlylb.net', + 'freetls.fastly.net', + 'map.fastly.net', + 'a.prod.fastly.net', + 'global.prod.fastly.net', + 'a.ssl.fastly.net', + 'b.ssl.fastly.net', + 'global.ssl.fastly.net', + 'fastvps-server.com', + 'fastvps.host', + 'myfast.host', + 'fastvps.site', + 'myfast.space', + 'fedorainfracloud.org', + 'fedorapeople.org', + 'cloud.fedoraproject.org', + 'app.os.fedoraproject.org', + 'app.os.stg.fedoraproject.org', + 'conn.uk', + 'copro.uk', + 'hosp.uk', + 'mydobiss.com', + 'fh-muenster.io', + 'filegear.me', + 'filegear-au.me', + 'filegear-de.me', + 'filegear-gb.me', + 'filegear-ie.me', + 'filegear-jp.me', + 'filegear-sg.me', + 'firebaseapp.com', + 'fireweb.app', + 'flap.id', + 'onflashdrive.app', + 'fldrv.com', + 'fly.dev', + 'edgeapp.net', + 'shw.io', + 'flynnhosting.net', + 'forgeblocks.com', + 'id.forgerock.io', + 'framer.app', + 'framercanvas.com', + '*.frusky.de', + 'ravpage.co.il', + '0e.vc', + 'freebox-os.com', + 'freeboxos.com', + 'fbx-os.fr', + 'fbxos.fr', + 'freebox-os.fr', + 'freeboxos.fr', + 'freedesktop.org', + 'freemyip.com', + 'wien.funkfeuer.at', + '*.futurecms.at', + '*.ex.futurecms.at', + '*.in.futurecms.at', + 'futurehosting.at', + 'futuremailing.at', + '*.ex.ortsinfo.at', + '*.kunden.ortsinfo.at', + '*.statics.cloud', + 'independent-commission.uk', + 'independent-inquest.uk', + 'independent-inquiry.uk', + 'independent-panel.uk', + 'independent-review.uk', + 'public-inquiry.uk', + 'royal-commission.uk', + 'campaign.gov.uk', + 'service.gov.uk', + 'api.gov.uk', + 'gehirn.ne.jp', + 'usercontent.jp', + 'gentapps.com', + 'gentlentapis.com', + 'lab.ms', + 'cdn-edges.net', + 'ghost.io', + 'gsj.bz', + 'githubusercontent.com', + 'githubpreview.dev', + 'github.io', + 'gitlab.io', + 'gitapp.si', + 'gitpage.si', + 'glitch.me', + 'nog.community', + 'co.ro', + 'shop.ro', + 'lolipop.io', + 'angry.jp', + 'babyblue.jp', + 'babymilk.jp', + 'backdrop.jp', + 'bambina.jp', + 'bitter.jp', + 'blush.jp', + 'boo.jp', + 'boy.jp', + 'boyfriend.jp', + 'but.jp', + 'candypop.jp', + 'capoo.jp', + 'catfood.jp', + 'cheap.jp', + 'chicappa.jp', + 'chillout.jp', + 'chips.jp', + 'chowder.jp', + 'chu.jp', + 'ciao.jp', + 'cocotte.jp', + 'coolblog.jp', + 'cranky.jp', + 'cutegirl.jp', + 'daa.jp', + 'deca.jp', + 'deci.jp', + 'digick.jp', + 'egoism.jp', + 'fakefur.jp', + 'fem.jp', + 'flier.jp', + 'floppy.jp', + 'fool.jp', + 'frenchkiss.jp', + 'girlfriend.jp', + 'girly.jp', + 'gloomy.jp', + 'gonna.jp', + 'greater.jp', + 'hacca.jp', + 'heavy.jp', + 'her.jp', + 'hiho.jp', + 'hippy.jp', + 'holy.jp', + 'hungry.jp', + 'icurus.jp', + 'itigo.jp', + 'jellybean.jp', + 'kikirara.jp', + 'kill.jp', + 'kilo.jp', + 'kuron.jp', + 'littlestar.jp', + 'lolipopmc.jp', + 'lolitapunk.jp', + 'lomo.jp', + 'lovepop.jp', + 'lovesick.jp', + 'main.jp', + 'mods.jp', + 'mond.jp', + 'mongolian.jp', + 'moo.jp', + 'namaste.jp', + 'nikita.jp', + 'nobushi.jp', + 'noor.jp', + 'oops.jp', + 'parallel.jp', + 'parasite.jp', + 'pecori.jp', + 'peewee.jp', + 'penne.jp', + 'pepper.jp', + 'perma.jp', + 'pigboat.jp', + 'pinoko.jp', + 'punyu.jp', + 'pupu.jp', + 'pussycat.jp', + 'pya.jp', + 'raindrop.jp', + 'readymade.jp', + 'sadist.jp', + 'schoolbus.jp', + 'secret.jp', + 'staba.jp', + 'stripper.jp', + 'sub.jp', + 'sunnyday.jp', + 'thick.jp', + 'tonkotsu.jp', + 'under.jp', + 'upper.jp', + 'velvet.jp', + 'verse.jp', + 'versus.jp', + 'vivian.jp', + 'watson.jp', + 'weblike.jp', + 'whitesnow.jp', + 'zombie.jp', + 'heteml.net', + 'cloudapps.digital', + 'london.cloudapps.digital', + 'pymnt.uk', + 'homeoffice.gov.uk', + 'ro.im', + 'goip.de', + 'run.app', + 'a.run.app', + 'web.app', + '*.0emm.com', + 'appspot.com', + '*.r.appspot.com', + 'codespot.com', + 'googleapis.com', + 'googlecode.com', + 'pagespeedmobilizer.com', + 'publishproxy.com', + 'withgoogle.com', + 'withyoutube.com', + '*.gateway.dev', + 'cloud.goog', + 'translate.goog', + '*.usercontent.goog', + 'cloudfunctions.net', + 'blogspot.ae', + 'blogspot.al', + 'blogspot.am', + 'blogspot.ba', + 'blogspot.be', + 'blogspot.bg', + 'blogspot.bj', + 'blogspot.ca', + 'blogspot.cf', + 'blogspot.ch', + 'blogspot.cl', + 'blogspot.co.at', + 'blogspot.co.id', + 'blogspot.co.il', + 'blogspot.co.ke', + 'blogspot.co.nz', + 'blogspot.co.uk', + 'blogspot.co.za', + 'blogspot.com', + 'blogspot.com.ar', + 'blogspot.com.au', + 'blogspot.com.br', + 'blogspot.com.by', + 'blogspot.com.co', + 'blogspot.com.cy', + 'blogspot.com.ee', + 'blogspot.com.eg', + 'blogspot.com.es', + 'blogspot.com.mt', + 'blogspot.com.ng', + 'blogspot.com.tr', + 'blogspot.com.uy', + 'blogspot.cv', + 'blogspot.cz', + 'blogspot.de', + 'blogspot.dk', + 'blogspot.fi', + 'blogspot.fr', + 'blogspot.gr', + 'blogspot.hk', + 'blogspot.hr', + 'blogspot.hu', + 'blogspot.ie', + 'blogspot.in', + 'blogspot.is', + 'blogspot.it', + 'blogspot.jp', + 'blogspot.kr', + 'blogspot.li', + 'blogspot.lt', + 'blogspot.lu', + 'blogspot.md', + 'blogspot.mk', + 'blogspot.mr', + 'blogspot.mx', + 'blogspot.my', + 'blogspot.nl', + 'blogspot.no', + 'blogspot.pe', + 'blogspot.pt', + 'blogspot.qa', + 'blogspot.re', + 'blogspot.ro', + 'blogspot.rs', + 'blogspot.ru', + 'blogspot.se', + 'blogspot.sg', + 'blogspot.si', + 'blogspot.sk', + 'blogspot.sn', + 'blogspot.td', + 'blogspot.tw', + 'blogspot.ug', + 'blogspot.vn', + 'goupile.fr', + 'gov.nl', + 'awsmppl.com', + 'g\xFCnstigbestellen.de', + 'g\xFCnstigliefern.de', + 'fin.ci', + 'free.hr', + 'caa.li', + 'ua.rs', + 'conf.se', + 'hs.zone', + 'hs.run', + 'hashbang.sh', + 'hasura.app', + 'hasura-app.io', + 'pages.it.hs-heilbronn.de', + 'hepforge.org', + 'herokuapp.com', + 'herokussl.com', + 'ravendb.cloud', + 'myravendb.com', + 'ravendb.community', + 'ravendb.me', + 'development.run', + 'ravendb.run', + 'homesklep.pl', + 'secaas.hk', + 'hoplix.shop', + 'orx.biz', + 'biz.gl', + 'col.ng', + 'firm.ng', + 'gen.ng', + 'ltd.ng', + 'ngo.ng', + 'edu.scot', + 'sch.so', + 'hostyhosting.io', + 'h\xE4kkinen.fi', + '*.moonscale.io', + 'moonscale.net', + 'iki.fi', + 'ibxos.it', + 'iliadboxos.it', + 'impertrixcdn.com', + 'impertrix.com', + 'smushcdn.com', + 'wphostedmail.com', + 'wpmucdn.com', + 'tempurl.host', + 'wpmudev.host', + 'dyn-berlin.de', + 'in-berlin.de', + 'in-brb.de', + 'in-butter.de', + 'in-dsl.de', + 'in-dsl.net', + 'in-dsl.org', + 'in-vpn.de', + 'in-vpn.net', + 'in-vpn.org', + 'biz.at', + 'info.at', + 'info.cx', + 'ac.leg.br', + 'al.leg.br', + 'am.leg.br', + 'ap.leg.br', + 'ba.leg.br', + 'ce.leg.br', + 'df.leg.br', + 'es.leg.br', + 'go.leg.br', + 'ma.leg.br', + 'mg.leg.br', + 'ms.leg.br', + 'mt.leg.br', + 'pa.leg.br', + 'pb.leg.br', + 'pe.leg.br', + 'pi.leg.br', + 'pr.leg.br', + 'rj.leg.br', + 'rn.leg.br', + 'ro.leg.br', + 'rr.leg.br', + 'rs.leg.br', + 'sc.leg.br', + 'se.leg.br', + 'sp.leg.br', + 'to.leg.br', + 'pixolino.com', + 'na4u.ru', + 'iopsys.se', + 'ipifony.net', + 'iservschule.de', + 'mein-iserv.de', + 'schulplattform.de', + 'schulserver.de', + 'test-iserv.de', + 'iserv.dev', + 'iobb.net', + 'mel.cloudlets.com.au', + 'cloud.interhostsolutions.be', + 'users.scale.virtualcloud.com.br', + 'mycloud.by', + 'alp1.ae.flow.ch', + 'appengine.flow.ch', + 'es-1.axarnet.cloud', + 'diadem.cloud', + 'vip.jelastic.cloud', + 'jele.cloud', + 'it1.eur.aruba.jenv-aruba.cloud', + 'it1.jenv-aruba.cloud', + 'keliweb.cloud', + 'cs.keliweb.cloud', + 'oxa.cloud', + 'tn.oxa.cloud', + 'uk.oxa.cloud', + 'primetel.cloud', + 'uk.primetel.cloud', + 'ca.reclaim.cloud', + 'uk.reclaim.cloud', + 'us.reclaim.cloud', + 'ch.trendhosting.cloud', + 'de.trendhosting.cloud', + 'jele.club', + 'amscompute.com', + 'clicketcloud.com', + 'dopaas.com', + 'hidora.com', + 'paas.hosted-by-previder.com', + 'rag-cloud.hosteur.com', + 'rag-cloud-ch.hosteur.com', + 'jcloud.ik-server.com', + 'jcloud-ver-jpc.ik-server.com', + 'demo.jelastic.com', + 'kilatiron.com', + 'paas.massivegrid.com', + 'jed.wafaicloud.com', + 'lon.wafaicloud.com', + 'ryd.wafaicloud.com', + 'j.scaleforce.com.cy', + 'jelastic.dogado.eu', + 'fi.cloudplatform.fi', + 'demo.datacenter.fi', + 'paas.datacenter.fi', + 'jele.host', + 'mircloud.host', + 'paas.beebyte.io', + 'sekd1.beebyteapp.io', + 'jele.io', + 'cloud-fr1.unispace.io', + 'jc.neen.it', + 'cloud.jelastic.open.tim.it', + 'jcloud.kz', + 'upaas.kazteleport.kz', + 'cloudjiffy.net', + 'fra1-de.cloudjiffy.net', + 'west1-us.cloudjiffy.net', + 'jls-sto1.elastx.net', + 'jls-sto2.elastx.net', + 'jls-sto3.elastx.net', + 'faststacks.net', + 'fr-1.paas.massivegrid.net', + 'lon-1.paas.massivegrid.net', + 'lon-2.paas.massivegrid.net', + 'ny-1.paas.massivegrid.net', + 'ny-2.paas.massivegrid.net', + 'sg-1.paas.massivegrid.net', + 'jelastic.saveincloud.net', + 'nordeste-idc.saveincloud.net', + 'j.scaleforce.net', + 'jelastic.tsukaeru.net', + 'sdscloud.pl', + 'unicloud.pl', + 'mircloud.ru', + 'jelastic.regruhosting.ru', + 'enscaled.sg', + 'jele.site', + 'jelastic.team', + 'orangecloud.tn', + 'j.layershift.co.uk', + 'phx.enscaled.us', + 'mircloud.us', + 'myjino.ru', + '*.hosting.myjino.ru', + '*.landing.myjino.ru', + '*.spectrum.myjino.ru', + '*.vps.myjino.ru', + 'jotelulu.cloud', + '*.triton.zone', + '*.cns.joyent.com', + 'js.org', + 'kaas.gg', + 'khplay.nl', + 'ktistory.com', + 'kapsi.fi', + 'keymachine.de', + 'kinghost.net', + 'uni5.net', + 'knightpoint.systems', + 'koobin.events', + 'oya.to', + 'kuleuven.cloud', + 'ezproxy.kuleuven.be', + 'co.krd', + 'edu.krd', + 'krellian.net', + 'webthings.io', + 'git-repos.de', + 'lcube-server.de', + 'svn-repos.de', + 'leadpages.co', + 'lpages.co', + 'lpusercontent.com', + 'lelux.site', + 'co.business', + 'co.education', + 'co.events', + 'co.financial', + 'co.network', + 'co.place', + 'co.technology', + 'app.lmpm.com', + 'linkyard.cloud', + 'linkyard-cloud.ch', + 'members.linode.com', + '*.nodebalancer.linode.com', + '*.linodeobjects.com', + 'ip.linodeusercontent.com', + 'we.bs', + '*.user.localcert.dev', + 'localzone.xyz', + 'loginline.app', + 'loginline.dev', + 'loginline.io', + 'loginline.services', + 'loginline.site', + 'servers.run', + 'lohmus.me', + 'krasnik.pl', + 'leczna.pl', + 'lubartow.pl', + 'lublin.pl', + 'poniatowa.pl', + 'swidnik.pl', + 'glug.org.uk', + 'lug.org.uk', + 'lugs.org.uk', + 'barsy.bg', + 'barsy.co.uk', + 'barsyonline.co.uk', + 'barsycenter.com', + 'barsyonline.com', + 'barsy.club', + 'barsy.de', + 'barsy.eu', + 'barsy.in', + 'barsy.info', + 'barsy.io', + 'barsy.me', + 'barsy.menu', + 'barsy.mobi', + 'barsy.net', + 'barsy.online', + 'barsy.org', + 'barsy.pro', + 'barsy.pub', + 'barsy.ro', + 'barsy.shop', + 'barsy.site', + 'barsy.support', + 'barsy.uk', + '*.magentosite.cloud', + 'mayfirst.info', + 'mayfirst.org', + 'hb.cldmail.ru', + 'cn.vu', + 'mazeplay.com', + 'mcpe.me', + 'mcdir.me', + 'mcdir.ru', + 'mcpre.ru', + 'vps.mcdir.ru', + 'mediatech.by', + 'mediatech.dev', + 'hra.health', + 'miniserver.com', + 'memset.net', + 'messerli.app', + '*.cloud.metacentrum.cz', + 'custom.metacentrum.cz', + 'flt.cloud.muni.cz', + 'usr.cloud.muni.cz', + 'meteorapp.com', + 'eu.meteorapp.com', + 'co.pl', + '*.azurecontainer.io', + 'azurewebsites.net', + 'azure-mobile.net', + 'cloudapp.net', + 'azurestaticapps.net', + '1.azurestaticapps.net', + 'centralus.azurestaticapps.net', + 'eastasia.azurestaticapps.net', + 'eastus2.azurestaticapps.net', + 'westeurope.azurestaticapps.net', + 'westus2.azurestaticapps.net', + 'csx.cc', + 'mintere.site', + 'forte.id', + 'mozilla-iot.org', + 'bmoattachments.org', + 'net.ru', + 'org.ru', + 'pp.ru', + 'hostedpi.com', + 'customer.mythic-beasts.com', + 'caracal.mythic-beasts.com', + 'fentiger.mythic-beasts.com', + 'lynx.mythic-beasts.com', + 'ocelot.mythic-beasts.com', + 'oncilla.mythic-beasts.com', + 'onza.mythic-beasts.com', + 'sphinx.mythic-beasts.com', + 'vs.mythic-beasts.com', + 'x.mythic-beasts.com', + 'yali.mythic-beasts.com', + 'cust.retrosnub.co.uk', + 'ui.nabu.casa', + 'pony.club', + 'of.fashion', + 'in.london', + 'of.london', + 'from.marketing', + 'with.marketing', + 'for.men', + 'repair.men', + 'and.mom', + 'for.mom', + 'for.one', + 'under.one', + 'for.sale', + 'that.win', + 'from.work', + 'to.work', + 'cloud.nospamproxy.com', + 'netlify.app', + '4u.com', + 'ngrok.io', + 'nh-serv.co.uk', + 'nfshost.com', + '*.developer.app', + 'noop.app', + '*.northflank.app', + '*.build.run', + '*.code.run', + '*.database.run', + '*.migration.run', + 'noticeable.news', + 'dnsking.ch', + 'mypi.co', + 'n4t.co', + '001www.com', + 'ddnslive.com', + 'myiphost.com', + 'forumz.info', + '16-b.it', + '32-b.it', + '64-b.it', + 'soundcast.me', + 'tcp4.me', + 'dnsup.net', + 'hicam.net', + 'now-dns.net', + 'ownip.net', + 'vpndns.net', + 'dynserv.org', + 'now-dns.org', + 'x443.pw', + 'now-dns.top', + 'ntdll.top', + 'freeddns.us', + 'crafting.xyz', + 'zapto.xyz', + 'nsupdate.info', + 'nerdpol.ovh', + 'blogsyte.com', + 'brasilia.me', + 'cable-modem.org', + 'ciscofreak.com', + 'collegefan.org', + 'couchpotatofries.org', + 'damnserver.com', + 'ddns.me', + 'ditchyourip.com', + 'dnsfor.me', + 'dnsiskinky.com', + 'dvrcam.info', + 'dynns.com', + 'eating-organic.net', + 'fantasyleague.cc', + 'geekgalaxy.com', + 'golffan.us', + 'health-carereform.com', + 'homesecuritymac.com', + 'homesecuritypc.com', + 'hopto.me', + 'ilovecollege.info', + 'loginto.me', + 'mlbfan.org', + 'mmafan.biz', + 'myactivedirectory.com', + 'mydissent.net', + 'myeffect.net', + 'mymediapc.net', + 'mypsx.net', + 'mysecuritycamera.com', + 'mysecuritycamera.net', + 'mysecuritycamera.org', + 'net-freaks.com', + 'nflfan.org', + 'nhlfan.net', + 'no-ip.ca', + 'no-ip.co.uk', + 'no-ip.net', + 'noip.us', + 'onthewifi.com', + 'pgafan.net', + 'point2this.com', + 'pointto.us', + 'privatizehealthinsurance.net', + 'quicksytes.com', + 'read-books.org', + 'securitytactics.com', + 'serveexchange.com', + 'servehumour.com', + 'servep2p.com', + 'servesarcasm.com', + 'stufftoread.com', + 'ufcfan.org', + 'unusualperson.com', + 'workisboring.com', + '3utilities.com', + 'bounceme.net', + 'ddns.net', + 'ddnsking.com', + 'gotdns.ch', + 'hopto.org', + 'myftp.biz', + 'myftp.org', + 'myvnc.com', + 'no-ip.biz', + 'no-ip.info', + 'no-ip.org', + 'noip.me', + 'redirectme.net', + 'servebeer.com', + 'serveblog.net', + 'servecounterstrike.com', + 'serveftp.com', + 'servegame.com', + 'servehalflife.com', + 'servehttp.com', + 'serveirc.com', + 'serveminecraft.net', + 'servemp3.com', + 'servepics.com', + 'servequake.com', + 'sytes.net', + 'webhop.me', + 'zapto.org', + 'stage.nodeart.io', + 'pcloud.host', + 'nyc.mn', + 'static.observableusercontent.com', + 'cya.gg', + 'omg.lol', + 'cloudycluster.net', + 'omniwe.site', + 'service.one', + 'nid.io', + 'opensocial.site', + 'opencraft.hosting', + 'orsites.com', + 'operaunite.com', + 'tech.orange', + 'authgear-staging.com', + 'authgearapps.com', + 'skygearapp.com', + 'outsystemscloud.com', + '*.webpaas.ovh.net', + '*.hosting.ovh.net', + 'ownprovider.com', + 'own.pm', + '*.owo.codes', + 'ox.rs', + 'oy.lc', + 'pgfog.com', + 'pagefrontapp.com', + 'pagexl.com', + '*.paywhirl.com', + 'bar0.net', + 'bar1.net', + 'bar2.net', + 'rdv.to', + 'art.pl', + 'gliwice.pl', + 'krakow.pl', + 'poznan.pl', + 'wroc.pl', + 'zakopane.pl', + 'pantheonsite.io', + 'gotpantheon.com', + 'mypep.link', + 'perspecta.cloud', + 'lk3.ru', + 'on-web.fr', + 'bc.platform.sh', + 'ent.platform.sh', + 'eu.platform.sh', + 'us.platform.sh', + '*.platformsh.site', + '*.tst.site', + 'platter-app.com', + 'platter-app.dev', + 'platterp.us', + 'pdns.page', + 'plesk.page', + 'pleskns.com', + 'dyn53.io', + 'onporter.run', + 'co.bn', + 'postman-echo.com', + 'pstmn.io', + 'mock.pstmn.io', + 'httpbin.org', + 'prequalifyme.today', + 'xen.prgmr.com', + 'priv.at', + 'prvcy.page', + '*.dweb.link', + 'protonet.io', + 'chirurgiens-dentistes-en-france.fr', + 'byen.site', + 'pubtls.org', + 'pythonanywhere.com', + 'eu.pythonanywhere.com', + 'qoto.io', + 'qualifioapp.com', + 'qbuser.com', + 'cloudsite.builders', + 'instances.spawn.cc', + 'instantcloud.cn', + 'ras.ru', + 'qa2.com', + 'qcx.io', + '*.sys.qcx.io', + 'dev-myqnapcloud.com', + 'alpha-myqnapcloud.com', + 'myqnapcloud.com', + '*.quipelements.com', + 'vapor.cloud', + 'vaporcloud.io', + 'rackmaze.com', + 'rackmaze.net', + 'g.vbrplsbx.io', + '*.on-k3s.io', + '*.on-rancher.cloud', + '*.on-rio.io', + 'readthedocs.io', + 'rhcloud.com', + 'app.render.com', + 'onrender.com', + 'repl.co', + 'id.repl.co', + 'repl.run', + 'resindevice.io', + 'devices.resinstaging.io', + 'hzc.io', + 'wellbeingzone.eu', + 'wellbeingzone.co.uk', + 'adimo.co.uk', + 'itcouldbewor.se', + 'git-pages.rit.edu', + 'rocky.page', + '\u0431\u0438\u0437.\u0440\u0443\u0441', + '\u043A\u043E\u043C.\u0440\u0443\u0441', + '\u043A\u0440\u044B\u043C.\u0440\u0443\u0441', + '\u043C\u0438\u0440.\u0440\u0443\u0441', + '\u043C\u0441\u043A.\u0440\u0443\u0441', + '\u043E\u0440\u0433.\u0440\u0443\u0441', + '\u0441\u0430\u043C\u0430\u0440\u0430.\u0440\u0443\u0441', + '\u0441\u043E\u0447\u0438.\u0440\u0443\u0441', + '\u0441\u043F\u0431.\u0440\u0443\u0441', + '\u044F.\u0440\u0443\u0441', + '*.builder.code.com', + '*.dev-builder.code.com', + '*.stg-builder.code.com', + 'sandcats.io', + 'logoip.de', + 'logoip.com', + 'fr-par-1.baremetal.scw.cloud', + 'fr-par-2.baremetal.scw.cloud', + 'nl-ams-1.baremetal.scw.cloud', + 'fnc.fr-par.scw.cloud', + 'functions.fnc.fr-par.scw.cloud', + 'k8s.fr-par.scw.cloud', + 'nodes.k8s.fr-par.scw.cloud', + 's3.fr-par.scw.cloud', + 's3-website.fr-par.scw.cloud', + 'whm.fr-par.scw.cloud', + 'priv.instances.scw.cloud', + 'pub.instances.scw.cloud', + 'k8s.scw.cloud', + 'k8s.nl-ams.scw.cloud', + 'nodes.k8s.nl-ams.scw.cloud', + 's3.nl-ams.scw.cloud', + 's3-website.nl-ams.scw.cloud', + 'whm.nl-ams.scw.cloud', + 'k8s.pl-waw.scw.cloud', + 'nodes.k8s.pl-waw.scw.cloud', + 's3.pl-waw.scw.cloud', + 's3-website.pl-waw.scw.cloud', + 'scalebook.scw.cloud', + 'smartlabeling.scw.cloud', + 'dedibox.fr', + 'schokokeks.net', + 'gov.scot', + 'service.gov.scot', + 'scrysec.com', + 'firewall-gateway.com', + 'firewall-gateway.de', + 'my-gateway.de', + 'my-router.de', + 'spdns.de', + 'spdns.eu', + 'firewall-gateway.net', + 'my-firewall.org', + 'myfirewall.org', + 'spdns.org', + 'seidat.net', + 'sellfy.store', + 'senseering.net', + 'minisite.ms', + 'magnet.page', + 'biz.ua', + 'co.ua', + 'pp.ua', + 'shiftcrypto.dev', + 'shiftcrypto.io', + 'shiftedit.io', + 'myshopblocks.com', + 'myshopify.com', + 'shopitsite.com', + 'shopware.store', + 'mo-siemens.io', + '1kapp.com', + 'appchizi.com', + 'applinzi.com', + 'sinaapp.com', + 'vipsinaapp.com', + 'siteleaf.net', + 'bounty-full.com', + 'alpha.bounty-full.com', + 'beta.bounty-full.com', + 'small-web.org', + 'vp4.me', + 'try-snowplow.com', + 'srht.site', + 'stackhero-network.com', + 'musician.io', + 'novecore.site', + 'static.land', + 'dev.static.land', + 'sites.static.land', + 'storebase.store', + 'vps-host.net', + 'atl.jelastic.vps-host.net', + 'njs.jelastic.vps-host.net', + 'ric.jelastic.vps-host.net', + 'playstation-cloud.com', + 'apps.lair.io', + '*.stolos.io', + 'spacekit.io', + 'customer.speedpartner.de', + 'myspreadshop.at', + 'myspreadshop.com.au', + 'myspreadshop.be', + 'myspreadshop.ca', + 'myspreadshop.ch', + 'myspreadshop.com', + 'myspreadshop.de', + 'myspreadshop.dk', + 'myspreadshop.es', + 'myspreadshop.fi', + 'myspreadshop.fr', + 'myspreadshop.ie', + 'myspreadshop.it', + 'myspreadshop.net', + 'myspreadshop.nl', + 'myspreadshop.no', + 'myspreadshop.pl', + 'myspreadshop.se', + 'myspreadshop.co.uk', + 'api.stdlib.com', + 'storj.farm', + 'utwente.io', + 'soc.srcf.net', + 'user.srcf.net', + 'temp-dns.com', + 'supabase.co', + 'supabase.in', + 'supabase.net', + 'su.paba.se', + '*.s5y.io', + '*.sensiosite.cloud', + 'syncloud.it', + 'dscloud.biz', + 'direct.quickconnect.cn', + 'dsmynas.com', + 'familyds.com', + 'diskstation.me', + 'dscloud.me', + 'i234.me', + 'myds.me', + 'synology.me', + 'dscloud.mobi', + 'dsmynas.net', + 'familyds.net', + 'dsmynas.org', + 'familyds.org', + 'vpnplus.to', + 'direct.quickconnect.to', + 'tabitorder.co.il', + 'taifun-dns.de', + 'beta.tailscale.net', + 'ts.net', + 'gda.pl', + 'gdansk.pl', + 'gdynia.pl', + 'med.pl', + 'sopot.pl', + 'site.tb-hosting.com', + 'edugit.io', + 's3.teckids.org', + 'telebit.app', + 'telebit.io', + '*.telebit.xyz', + 'gwiddle.co.uk', + '*.firenet.ch', + '*.svc.firenet.ch', + 'reservd.com', + 'thingdustdata.com', + 'cust.dev.thingdust.io', + 'cust.disrec.thingdust.io', + 'cust.prod.thingdust.io', + 'cust.testing.thingdust.io', + 'reservd.dev.thingdust.io', + 'reservd.disrec.thingdust.io', + 'reservd.testing.thingdust.io', + 'tickets.io', + 'arvo.network', + 'azimuth.network', + 'tlon.network', + 'torproject.net', + 'pages.torproject.net', + 'bloxcms.com', + 'townnews-staging.com', + 'tbits.me', + '12hp.at', + '2ix.at', + '4lima.at', + 'lima-city.at', + '12hp.ch', + '2ix.ch', + '4lima.ch', + 'lima-city.ch', + 'trafficplex.cloud', + 'de.cool', + '12hp.de', + '2ix.de', + '4lima.de', + 'lima-city.de', + '1337.pictures', + 'clan.rip', + 'lima-city.rocks', + 'webspace.rocks', + 'lima.zone', + '*.transurl.be', + '*.transurl.eu', + '*.transurl.nl', + 'site.transip.me', + 'tuxfamily.org', + 'dd-dns.de', + 'diskstation.eu', + 'diskstation.org', + 'dray-dns.de', + 'draydns.de', + 'dyn-vpn.de', + 'dynvpn.de', + 'mein-vigor.de', + 'my-vigor.de', + 'my-wan.de', + 'syno-ds.de', + 'synology-diskstation.de', + 'synology-ds.de', + 'typedream.app', + 'pro.typeform.com', + 'uber.space', + '*.uberspace.de', + 'hk.com', + 'hk.org', + 'ltd.hk', + 'inc.hk', + 'name.pm', + 'sch.tf', + 'biz.wf', + 'sch.wf', + 'org.yt', + 'virtualuser.de', + 'virtual-user.de', + 'upli.io', + 'urown.cloud', + 'dnsupdate.info', + 'lib.de.us', + '2038.io', + 'vercel.app', + 'vercel.dev', + 'now.sh', + 'router.management', + 'v-info.info', + 'voorloper.cloud', + 'neko.am', + 'nyaa.am', + 'be.ax', + 'cat.ax', + 'es.ax', + 'eu.ax', + 'gg.ax', + 'mc.ax', + 'us.ax', + 'xy.ax', + 'nl.ci', + 'xx.gl', + 'app.gp', + 'blog.gt', + 'de.gt', + 'to.gt', + 'be.gy', + 'cc.hn', + 'blog.kg', + 'io.kg', + 'jp.kg', + 'tv.kg', + 'uk.kg', + 'us.kg', + 'de.ls', + 'at.md', + 'de.md', + 'jp.md', + 'to.md', + 'indie.porn', + 'vxl.sh', + 'ch.tc', + 'me.tc', + 'we.tc', + 'nyan.to', + 'at.vg', + 'blog.vu', + 'dev.vu', + 'me.vu', + 'v.ua', + '*.vultrobjects.com', + 'wafflecell.com', + '*.webhare.dev', + 'reserve-online.net', + 'reserve-online.com', + 'bookonline.app', + 'hotelwithflight.com', + 'wedeploy.io', + 'wedeploy.me', + 'wedeploy.sh', + 'remotewd.com', + 'pages.wiardweb.com', + 'wmflabs.org', + 'toolforge.org', + 'wmcloud.org', + 'panel.gg', + 'daemon.panel.gg', + 'messwithdns.com', + 'woltlab-demo.com', + 'myforum.community', + 'community-pro.de', + 'diskussionsbereich.de', + 'community-pro.net', + 'meinforum.net', + 'affinitylottery.org.uk', + 'raffleentry.org.uk', + 'weeklylottery.org.uk', + 'wpenginepowered.com', + 'js.wpenginepowered.com', + 'wixsite.com', + 'editorx.io', + 'half.host', + 'xnbay.com', + 'u2.xnbay.com', + 'u2-local.xnbay.com', + 'cistron.nl', + 'demon.nl', + 'xs4all.space', + 'yandexcloud.net', + 'storage.yandexcloud.net', + 'website.yandexcloud.net', + 'official.academy', + 'yolasite.com', + 'ybo.faith', + 'yombo.me', + 'homelink.one', + 'ybo.party', + 'ybo.review', + 'ybo.science', + 'ybo.trade', + 'ynh.fr', + 'nohost.me', + 'noho.st', + 'za.net', + 'za.org', + 'bss.design', + 'basicserver.io', + 'virtualserver.io', + 'enterprisecloud.nu', + ]; +}); +var v0e = d((Ep) => { + 'use strict'; + var Ry = require('punycode'), + Sp = {}; + Sp.rules = g0e().map(function (e) { + return { + rule: e, + suffix: e.replace(/^(\*\.|\!)/, ''), + punySuffix: -1, + wildcard: e.charAt(0) === '*', + exception: e.charAt(0) === '!', + }; + }); + Sp.endsWith = function (e, t) { + return e.indexOf(t, e.length - t.length) !== -1; + }; + Sp.findRule = function (e) { + var t = Ry.toASCII(e); + return Sp.rules.reduce(function (r, n) { + return ( + n.punySuffix === -1 && (n.punySuffix = Ry.toASCII(n.suffix)), + !Sp.endsWith(t, '.' + n.punySuffix) && t !== n.punySuffix ? r : n + ); + }, null); + }; + Ep.errorCodes = { + DOMAIN_TOO_SHORT: 'Domain name too short.', + DOMAIN_TOO_LONG: 'Domain name too long. It should be no more than 255 chars.', + LABEL_STARTS_WITH_DASH: 'Domain name label can not start with a dash.', + LABEL_ENDS_WITH_DASH: 'Domain name label can not end with a dash.', + LABEL_TOO_LONG: 'Domain name label should be at most 63 chars long.', + LABEL_TOO_SHORT: 'Domain name label should be at least 1 character long.', + LABEL_INVALID_CHARS: 'Domain name label can only contain alphanumeric characters or dashes.', + }; + Sp.validate = function (e) { + var t = Ry.toASCII(e); + if (t.length < 1) return 'DOMAIN_TOO_SHORT'; + if (t.length > 255) return 'DOMAIN_TOO_LONG'; + for (var r = t.split('.'), n, a = 0; a < r.length; ++a) { + if (((n = r[a]), !n.length)) return 'LABEL_TOO_SHORT'; + if (n.length > 63) return 'LABEL_TOO_LONG'; + if (n.charAt(0) === '-') return 'LABEL_STARTS_WITH_DASH'; + if (n.charAt(n.length - 1) === '-') return 'LABEL_ENDS_WITH_DASH'; + if (!/^[a-z0-9\-]+$/.test(n)) return 'LABEL_INVALID_CHARS'; + } + }; + Ep.parse = function (e) { + if (typeof e != 'string') throw new TypeError('Domain name must be a string.'); + var t = e.slice(0).toLowerCase(); + t.charAt(t.length - 1) === '.' && (t = t.slice(0, t.length - 1)); + var r = Sp.validate(t); + if (r) return { input: e, error: { message: Ep.errorCodes[r], code: r } }; + var n = { input: e, tld: null, sld: null, domain: null, subdomain: null, listed: !1 }, + a = t.split('.'); + if (a[a.length - 1] === 'local') return n; + var o = function () { + return ( + /xn--/.test(t) && + (n.domain && (n.domain = Ry.toASCII(n.domain)), n.subdomain && (n.subdomain = Ry.toASCII(n.subdomain))), + n + ); + }, + s = Sp.findRule(t); + if (!s) + return a.length < 2 + ? n + : ((n.tld = a.pop()), + (n.sld = a.pop()), + (n.domain = [n.sld, n.tld].join('.')), + a.length && (n.subdomain = a.pop()), + o()); + n.listed = !0; + var l = s.suffix.split('.'), + u = a.slice(0, a.length - l.length); + return ( + s.exception && u.push(l.shift()), + (n.tld = l.join('.')), + !u.length || + (s.wildcard && (l.unshift(u.pop()), (n.tld = l.join('.'))), !u.length) || + ((n.sld = u.pop()), (n.domain = [n.sld, n.tld].join('.')), u.length && (n.subdomain = u.join('.'))), + o() + ); + }; + Ep.get = function (e) { + return (e && Ep.parse(e).domain) || null; + }; + Ep.isValid = function (e) { + var t = Ep.parse(e); + return !!(t.domain && t.listed); + }; +}); +var hP = d((b0e) => { + 'use strict'; + var rgt = v0e(), + y0e = ['local', 'example', 'invalid', 'localhost', 'test'], + igt = ['localhost', 'invalid']; + function ngt(e, t = {}) { + let r = e.split('.'), + n = r[r.length - 1], + a = !!t.allowSpecialUseDomain, + o = !!t.ignoreError; + if (a && y0e.includes(n)) { + if (r.length > 1) return `${r[r.length - 2]}.${n}`; + if (igt.includes(n)) return `${n}`; + } + if (!o && y0e.includes(n)) + throw new Error( + `Cookie has domain set to the public suffix "${n}" which is a special use domain. To allow this, configure your CookieJar with {allowSpecialUseDomain:true, rejectPublicSuffixes: false}.` + ); + return rgt.get(e); + } + b0e.getPublicSuffix = ngt; +}); +var vP = d((_0e) => { + 'use strict'; + var gP = class { + constructor() { + this.synchronous = !1; + } + findCookie(t, r, n, a) { + throw new Error('findCookie is not implemented'); + } + findCookies(t, r, n, a) { + throw new Error('findCookies is not implemented'); + } + putCookie(t, r) { + throw new Error('putCookie is not implemented'); + } + updateCookie(t, r, n) { + throw new Error('updateCookie is not implemented'); + } + removeCookie(t, r, n, a) { + throw new Error('removeCookie is not implemented'); + } + removeCookies(t, r, n) { + throw new Error('removeCookies is not implemented'); + } + removeAllCookies(t) { + throw new Error('removeAllCookies is not implemented'); + } + getAllCookies(t) { + throw new Error('getAllCookies is not implemented (therefore jar cannot be serialized)'); + } + }; + _0e.Store = gP; +}); +var bP = d((yP) => { + 'use strict'; + yP.fromCallback = function (e) { + return Object.defineProperty( + function () { + if (typeof arguments[arguments.length - 1] == 'function') e.apply(this, arguments); + else + return new Promise((t, r) => { + (arguments[arguments.length] = (n, a) => { + if (n) return r(n); + t(a); + }), + arguments.length++, + e.apply(this, arguments); + }); + }, + 'name', + { value: e.name } + ); + }; + yP.fromPromise = function (e) { + return Object.defineProperty( + function () { + let t = arguments[arguments.length - 1]; + if (typeof t != 'function') return e.apply(this, arguments); + delete arguments[arguments.length - 1], arguments.length--, e.apply(this, arguments).then((r) => t(null, r), t); + }, + 'name', + { value: e.name } + ); + }; +}); +var _P = d((w0e) => { + 'use strict'; + var agt = hP(); + function ogt(e, t) { + let r = agt.getPublicSuffix(e, { allowSpecialUseDomain: t }); + if (!r) return null; + if (r == e) return [e]; + e.slice(-1) == '.' && (e = e.slice(0, -1)); + let a = e + .slice(0, -(r.length + 1)) + .split('.') + .reverse(), + o = r, + s = [o]; + for (; a.length; ) (o = `${a.shift()}.${o}`), s.push(o); + return s; + } + w0e.permuteDomain = ogt; +}); +var wP = d((S0e) => { + 'use strict'; + function sgt(e, t) { + return t === e || (e.indexOf(t) === 0 && (t.substr(-1) === '/' || e.substr(t.length, 1) === '/')); + } + S0e.pathMatch = sgt; +}); +var EP = d((SP) => { + function E0e() { + try { + return require('util'); + } catch { + return null; + } + } + function lgt() { + return Symbol.for('nodejs.util.inspect.custom'); + } + function ugt(e) { + let r = (e.requireUtil || E0e)(); + return r ? r.inspect.custom : null; + } + SP.getUtilInspect = function (t, r = {}) { + let a = (r.requireUtil || E0e)(); + return function (s, l, u) { + return a ? a.inspect(s, l, u) : t(s); + }; + }; + SP.getCustomInspectSymbol = function (t = {}) { + return (t.lookupCustomInspectSymbol || lgt)() || ugt(t); + }; +}); +var O0e = d((xP) => { + 'use strict'; + var { fromCallback: pgt } = bP(), + cgt = vP().Store, + dgt = _P().permuteDomain, + fgt = wP().pathMatch, + { getCustomInspectSymbol: mgt, getUtilInspect: hgt } = EP(), + jy = class extends cgt { + constructor() { + super(), (this.synchronous = !0), (this.idx = Object.create(null)); + let t = mgt(); + t && (this[t] = this.inspect); + } + inspect() { + return `{ idx: ${{ inspect: hgt(x0e) }.inspect(this.idx, !1, 2)} }`; + } + findCookie(t, r, n, a) { + return !this.idx[t] || !this.idx[t][r] ? a(null, void 0) : a(null, this.idx[t][r][n] || null); + } + findCookies(t, r, n, a) { + let o = []; + if ((typeof n == 'function' && ((a = n), (n = !0)), !t)) return a(null, []); + let s; + r + ? (s = function (c) { + Object.keys(c).forEach((f) => { + if (fgt(r, f)) { + let h = c[f]; + for (let m in h) o.push(h[m]); + } + }); + }) + : (s = function (c) { + for (let f in c) { + let h = c[f]; + for (let m in h) o.push(h[m]); + } + }); + let l = dgt(t, n) || [t], + u = this.idx; + l.forEach((p) => { + let c = u[p]; + c && s(c); + }), + a(null, o); + } + putCookie(t, r) { + this.idx[t.domain] || (this.idx[t.domain] = Object.create(null)), + this.idx[t.domain][t.path] || (this.idx[t.domain][t.path] = Object.create(null)), + (this.idx[t.domain][t.path][t.key] = t), + r(null); + } + updateCookie(t, r, n) { + this.putCookie(r, n); + } + removeCookie(t, r, n, a) { + this.idx[t] && this.idx[t][r] && this.idx[t][r][n] && delete this.idx[t][r][n], a(null); + } + removeCookies(t, r, n) { + return this.idx[t] && (r ? delete this.idx[t][r] : delete this.idx[t]), n(null); + } + removeAllCookies(t) { + return (this.idx = Object.create(null)), t(null); + } + getAllCookies(t) { + let r = [], + n = this.idx; + Object.keys(n).forEach((o) => { + Object.keys(n[o]).forEach((l) => { + Object.keys(n[o][l]).forEach((p) => { + p !== null && r.push(n[o][l][p]); + }); + }); + }), + r.sort((o, s) => (o.creationIndex || 0) - (s.creationIndex || 0)), + t(null, r); + } + }; + [ + 'findCookie', + 'findCookies', + 'putCookie', + 'updateCookie', + 'removeCookie', + 'removeCookies', + 'removeAllCookies', + 'getAllCookies', + ].forEach((e) => { + jy.prototype[e] = pgt(jy.prototype[e]); + }); + xP.MemoryCookieStore = jy; + function x0e(e) { + let t = Object.keys(e); + if (t.length === 0) return '[Object: null prototype] {}'; + let r = `[Object: null prototype] { +`; + return ( + Object.keys(e).forEach((n, a) => { + (r += ggt(n, e[n])), + a < t.length - 1 && (r += ','), + (r += ` +`); + }), + (r += '}'), + r + ); + } + function ggt(e, t) { + let r = ' ', + n = `${r}'${e}': [Object: null prototype] { +`; + return ( + Object.keys(t).forEach((a, o, s) => { + (n += vgt(a, t[a])), + o < s.length - 1 && (n += ','), + (n += ` +`); + }), + (n += `${r}}`), + n + ); + } + function vgt(e, t) { + let r = ' ', + n = `${r}'${e}': [Object: null prototype] { +`; + return ( + Object.keys(t).forEach((a, o, s) => { + let l = t[a]; + (n += ` ${a}: ${l.inspect()}`), + o < s.length - 1 && (n += ','), + (n += ` +`); + }), + (n += `${r}}`), + n + ); + } + xP.inspectFallback = x0e; +}); +var A0e = d((Zl) => { + 'use strict'; + function T0e(e) { + return typeof e == 'function'; + } + function ygt(e) { + return C0e(e) && e !== ''; + } + function bgt(e) { + return wgt(e, Date) && Sgt(e.getTime()); + } + function _gt(e) { + return e === '' || (e instanceof String && e.toString() === ''); + } + function C0e(e) { + return typeof e == 'string' || e instanceof String; + } + function k0e(e) { + return toString.call(e) === '[object Object]'; + } + function wgt(e, t) { + try { + return e instanceof t; + } catch { + return !1; + } + } + function Sgt(e) { + return typeof e == 'number' && e % 1 === 0; + } + function Egt(e, t, r) { + if ((T0e(t) || ((r = t), (t = null)), k0e(r) || (r = { Error: 'Failed Check' }), !e)) + if (t) t(new Dy(r)); + else throw new Dy(r); + } + var Dy = class extends Error { + constructor(...t) { + super(...t); + } + }; + Zl.ParameterError = Dy; + Zl.isFunction = T0e; + Zl.isNonEmptyString = ygt; + Zl.isDate = bgt; + Zl.isEmptyString = _gt; + Zl.isString = C0e; + Zl.isObject = k0e; + Zl.validate = Egt; +}); +var P0e = d((NJt, I0e) => { + I0e.exports = '4.1.3'; +}); +var X0e = d((Gr) => { + 'use strict'; + var R0e = r0e(), + xgt = h0e(), + AP = hP(), + M0e = vP().Store, + U0e = O0e().MemoryCookieStore, + $0e = wP().pathMatch, + ye = A0e(), + B0e = P0e(), + { fromCallback: V0e } = bP(), + { getCustomInspectSymbol: Ogt } = EP(), + Tgt = /^[\x21\x23-\x2B\x2D-\x3A\x3C-\x5B\x5D-\x7E]+$/, + j0e = /[\x00-\x1F]/, + D0e = [ + ` +`, + '\r', + '\0', + ], + Cgt = /[\x20-\x3A\x3C-\x7E]+/, + kgt = /[\x09\x20-\x2F\x3B-\x40\x5B-\x60\x7B-\x7E]/, + Agt = { jan: 0, feb: 1, mar: 2, apr: 3, may: 4, jun: 5, jul: 6, aug: 7, sep: 8, oct: 9, nov: 10, dec: 11 }, + OP = 2147483647e3, + Igt = 0, + N0e = 'Invalid sameSiteContext option for getCookies(); expected one of "strict", "lax", or "none"'; + function q0e(e) { + ye.validate(ye.isNonEmptyString(e), e); + let t = String(e).toLowerCase(); + return t === 'none' || t === 'lax' || t === 'strict' ? t : null; + } + var Ed = Object.freeze({ SILENT: 'silent', STRICT: 'strict', DISABLED: 'unsafe-disabled' }), + Pgt = + /(?:^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}$)|(?:^(?:(?:[a-f\d]{1,4}:){7}(?:[a-f\d]{1,4}|:)|(?:[a-f\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|:[a-f\d]{1,4}|:)|(?:[a-f\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,2}|:)|(?:[a-f\d]{1,4}:){4}(?:(?::[a-f\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,3}|:)|(?:[a-f\d]{1,4}:){3}(?:(?::[a-f\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,4}|:)|(?:[a-f\d]{1,4}:){2}(?:(?::[a-f\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,5}|:)|(?:[a-f\d]{1,4}:){1}(?:(?::[a-f\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,6}|:)|(?::(?:(?::[a-f\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,7}|:)))$)/, + Rgt = ` +\\[?(?: +(?:[a-fA-F\\d]{1,4}:){7}(?:[a-fA-F\\d]{1,4}|:)| +(?:[a-fA-F\\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|:[a-fA-F\\d]{1,4}|:)| +(?:[a-fA-F\\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,2}|:)| +(?:[a-fA-F\\d]{1,4}:){4}(?:(?::[a-fA-F\\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,3}|:)| +(?:[a-fA-F\\d]{1,4}:){3}(?:(?::[a-fA-F\\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,4}|:)| +(?:[a-fA-F\\d]{1,4}:){2}(?:(?::[a-fA-F\\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,5}|:)| +(?:[a-fA-F\\d]{1,4}:){1}(?:(?::[a-fA-F\\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,6}|:)| +(?::(?:(?::[a-fA-F\\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,7}|:)) +)(?:%[0-9a-zA-Z]{1,})?\\]? +` + .replace(/\s*\/\/.*$/gm, '') + .replace(/\n/g, '') + .trim(), + z0e = new RegExp(`^${Rgt}$`); + function TP(e, t, r, n) { + let a = 0; + for (; a < e.length; ) { + let o = e.charCodeAt(a); + if (o <= 47 || o >= 58) break; + a++; + } + return a < t || a > r || (!n && a != e.length) ? null : parseInt(e.substr(0, a), 10); + } + function jgt(e) { + let t = e.split(':'), + r = [0, 0, 0]; + if (t.length !== 3) return null; + for (let n = 0; n < 3; n++) { + let a = n == 2, + o = TP(t[n], 1, 2, a); + if (o === null) return null; + r[n] = o; + } + return r; + } + function Dgt(e) { + e = String(e).substr(0, 3).toLowerCase(); + let t = Agt[e]; + return t >= 0 ? t : null; + } + function Ny(e) { + if (!e) return; + let t = e.split(kgt); + if (!t) return; + let r = null, + n = null, + a = null, + o = null, + s = null, + l = null; + for (let u = 0; u < t.length; u++) { + let p = t[u].trim(); + if (!p.length) continue; + let c; + if (a === null && ((c = jgt(p)), c)) { + (r = c[0]), (n = c[1]), (a = c[2]); + continue; + } + if (o === null && ((c = TP(p, 1, 2, !0)), c !== null)) { + o = c; + continue; + } + if (s === null && ((c = Dgt(p)), c !== null)) { + s = c; + continue; + } + l === null && + ((c = TP(p, 2, 4, !0)), + c !== null && ((l = c), l >= 70 && l <= 99 ? (l += 1900) : l >= 0 && l <= 69 && (l += 2e3))); + } + if ( + !( + o === null || + s === null || + l === null || + a === null || + o < 1 || + o > 31 || + l < 1601 || + r > 23 || + n > 59 || + a > 59 + ) + ) + return new Date(Date.UTC(l, s, o, r, n, a)); + } + function H0e(e) { + return ye.validate(ye.isDate(e), e), e.toUTCString(); + } + function Uh(e) { + return e == null + ? null + : ((e = e.trim().replace(/^\./, '')), + z0e.test(e) && (e = e.replace('[', '').replace(']', '')), + R0e && /[^\u0001-\u007f]/.test(e) && (e = R0e.toASCII(e)), + e.toLowerCase()); + } + function CP(e, t, r) { + if (e == null || t == null) return null; + if ((r !== !1 && ((e = Uh(e)), (t = Uh(t))), e == t)) return !0; + let n = e.lastIndexOf(t); + return !(n <= 0 || e.length !== t.length + n || e.substr(n - 1, 1) !== '.' || Pgt.test(e)); + } + function G0e(e) { + if (!e || e.substr(0, 1) !== '/') return '/'; + if (e === '/') return e; + let t = e.lastIndexOf('/'); + return t === 0 ? '/' : e.slice(0, t); + } + function Ngt(e) { + if (ye.isEmptyString(e)) return e; + for (let t = 0; t < D0e.length; t++) { + let r = e.indexOf(D0e[t]); + r !== -1 && (e = e.substr(0, r)); + } + return e; + } + function qgt(e, t) { + (e = Ngt(e)), ye.validate(ye.isString(e), e); + let r = e.indexOf('='); + if (t) r === 0 && ((e = e.substr(1)), (r = e.indexOf('='))); + else if (r <= 0) return; + let n, a; + if ( + (r <= 0 ? ((n = ''), (a = e.trim())) : ((n = e.substr(0, r).trim()), (a = e.substr(r + 1).trim())), + j0e.test(n) || j0e.test(a)) + ) + return; + let o = new bi(); + return (o.key = n), (o.value = a), o; + } + function W0e(e, t) { + if (((!t || typeof t != 'object') && (t = {}), ye.isEmptyString(e) || !ye.isString(e))) return null; + e = e.trim(); + let r = e.indexOf(';'), + n = r === -1 ? e : e.substr(0, r), + a = qgt(n, !!t.loose); + if (!a) return; + if (r === -1) return a; + let o = e.slice(r + 1).trim(); + if (o.length === 0) return a; + let s = o.split(';'); + for (; s.length; ) { + let l = s.shift().trim(); + if (l.length === 0) continue; + let u = l.indexOf('='), + p, + c; + switch ( + (u === -1 ? ((p = l), (c = null)) : ((p = l.substr(0, u)), (c = l.substr(u + 1))), + (p = p.trim().toLowerCase()), + c && (c = c.trim()), + p) + ) { + case 'expires': + if (c) { + let h = Ny(c); + h && (a.expires = h); + } + break; + case 'max-age': + if (c && /^-?[0-9]+$/.test(c)) { + let h = parseInt(c, 10); + a.setMaxAge(h); + } + break; + case 'domain': + if (c) { + let h = c.trim().replace(/^\./, ''); + h && (a.domain = h.toLowerCase()); + } + break; + case 'path': + a.path = c && c[0] === '/' ? c : null; + break; + case 'secure': + a.secure = !0; + break; + case 'httponly': + a.httpOnly = !0; + break; + case 'samesite': + switch (c ? c.toLowerCase() : '') { + case 'strict': + a.sameSite = 'strict'; + break; + case 'lax': + a.sameSite = 'lax'; + break; + case 'none': + a.sameSite = 'none'; + break; + default: + a.sameSite = void 0; + break; + } + break; + default: + (a.extensions = a.extensions || []), a.extensions.push(l); + break; + } + } + return a; + } + function Fgt(e) { + return ye.validate(ye.isObject(e), e), !e.key.startsWith('__Secure-') || e.secure; + } + function Lgt(e) { + return ( + ye.validate(ye.isObject(e)), + !e.key.startsWith('__Host-') || (e.secure && e.hostOnly && e.path != null && e.path === '/') + ); + } + function K0e(e) { + let t; + try { + t = JSON.parse(e); + } catch (r) { + return r; + } + return t; + } + function u8(e) { + if (!e || ye.isEmptyString(e)) return null; + let t; + if (typeof e == 'string') { + if (((t = K0e(e)), t instanceof Error)) return null; + } else t = e; + let r = new bi(); + for (let n = 0; n < bi.serializableProperties.length; n++) { + let a = bi.serializableProperties[n]; + t[a] === void 0 || + t[a] === qy[a] || + (a === 'expires' || a === 'creation' || a === 'lastAccessed' + ? t[a] === null + ? (r[a] = null) + : (r[a] = t[a] == 'Infinity' ? 'Infinity' : new Date(t[a])) + : (r[a] = t[a])); + } + return r; + } + function kP(e, t) { + ye.validate(ye.isObject(e), e), ye.validate(ye.isObject(t), t); + let r = 0, + n = e.path ? e.path.length : 0; + if (((r = (t.path ? t.path.length : 0) - n), r !== 0)) return r; + let o = e.creation ? e.creation.getTime() : OP, + s = t.creation ? t.creation.getTime() : OP; + return (r = o - s), r !== 0 || (r = e.creationIndex - t.creationIndex), r; + } + function Mgt(e) { + if ((ye.validate(ye.isString(e)), e === '/')) return ['/']; + let t = [e]; + for (; e.length > 1; ) { + let r = e.lastIndexOf('/'); + if (r === 0) break; + (e = e.substr(0, r)), t.push(e); + } + return t.push('/'), t; + } + function F0e(e) { + if (e instanceof Object) return e; + try { + e = decodeURI(e); + } catch {} + return xgt(e); + } + var qy = { + key: '', + value: '', + expires: 'Infinity', + maxAge: null, + domain: null, + path: null, + secure: !1, + httpOnly: !1, + extensions: null, + hostOnly: null, + pathIsDefault: null, + creation: null, + lastAccessed: null, + sameSite: void 0, + }, + bi = class e { + constructor(t = {}) { + let r = Ogt(); + r && (this[r] = this.inspect), + Object.assign(this, qy, t), + (this.creation = this.creation || new Date()), + Object.defineProperty(this, 'creationIndex', { + configurable: !1, + enumerable: !1, + writable: !0, + value: ++e.cookiesCreated, + }); + } + inspect() { + let t = Date.now(), + r = this.hostOnly != null ? this.hostOnly : '?', + n = this.creation ? `${t - this.creation.getTime()}ms` : '?', + a = this.lastAccessed ? `${t - this.lastAccessed.getTime()}ms` : '?'; + return `Cookie="${this.toString()}; hostOnly=${r}; aAge=${a}; cAge=${n}"`; + } + toJSON() { + let t = {}; + for (let r of e.serializableProperties) + this[r] !== qy[r] && + (r === 'expires' || r === 'creation' || r === 'lastAccessed' + ? this[r] === null + ? (t[r] = null) + : (t[r] = this[r] == 'Infinity' ? 'Infinity' : this[r].toISOString()) + : r === 'maxAge' + ? this[r] !== null && (t[r] = this[r] == 1 / 0 || this[r] == -1 / 0 ? this[r].toString() : this[r]) + : this[r] !== qy[r] && (t[r] = this[r])); + return t; + } + clone() { + return u8(this.toJSON()); + } + validate() { + if ( + !Tgt.test(this.value) || + (this.expires != 1 / 0 && !(this.expires instanceof Date) && !Ny(this.expires)) || + (this.maxAge != null && this.maxAge <= 0) || + (this.path != null && !Cgt.test(this.path)) + ) + return !1; + let t = this.cdomain(); + return !(t && (t.match(/\.$/) || AP.getPublicSuffix(t) == null)); + } + setExpires(t) { + t instanceof Date ? (this.expires = t) : (this.expires = Ny(t) || 'Infinity'); + } + setMaxAge(t) { + t === 1 / 0 || t === -1 / 0 ? (this.maxAge = t.toString()) : (this.maxAge = t); + } + cookieString() { + let t = this.value; + return t == null && (t = ''), this.key === '' ? t : `${this.key}=${t}`; + } + toString() { + let t = this.cookieString(); + if ( + (this.expires != 1 / 0 && + (this.expires instanceof Date + ? (t += `; Expires=${H0e(this.expires)}`) + : (t += `; Expires=${this.expires}`)), + this.maxAge != null && this.maxAge != 1 / 0 && (t += `; Max-Age=${this.maxAge}`), + this.domain && !this.hostOnly && (t += `; Domain=${this.domain}`), + this.path && (t += `; Path=${this.path}`), + this.secure && (t += '; Secure'), + this.httpOnly && (t += '; HttpOnly'), + this.sameSite && this.sameSite !== 'none') + ) { + let r = e.sameSiteCanonical[this.sameSite.toLowerCase()]; + t += `; SameSite=${r || this.sameSite}`; + } + return ( + this.extensions && + this.extensions.forEach((r) => { + t += `; ${r}`; + }), + t + ); + } + TTL(t) { + if (this.maxAge != null) return this.maxAge <= 0 ? 0 : this.maxAge * 1e3; + let r = this.expires; + return r != 1 / 0 + ? (r instanceof Date || (r = Ny(r) || 1 / 0), r == 1 / 0 ? 1 / 0 : r.getTime() - (t || Date.now())) + : 1 / 0; + } + expiryTime(t) { + if (this.maxAge != null) { + let r = t || this.creation || new Date(), + n = this.maxAge <= 0 ? -1 / 0 : this.maxAge * 1e3; + return r.getTime() + n; + } + return this.expires == 1 / 0 ? 1 / 0 : this.expires.getTime(); + } + expiryDate(t) { + let r = this.expiryTime(t); + return r == 1 / 0 ? new Date(OP) : r == -1 / 0 ? new Date(Igt) : new Date(r); + } + isPersistent() { + return this.maxAge != null || this.expires != 1 / 0; + } + canonicalizedDomain() { + return this.domain == null ? null : Uh(this.domain); + } + cdomain() { + return this.canonicalizedDomain(); + } + }; + bi.cookiesCreated = 0; + bi.parse = W0e; + bi.fromJSON = u8; + bi.serializableProperties = Object.keys(qy); + bi.sameSiteLevel = { strict: 3, lax: 2, none: 1 }; + bi.sameSiteCanonical = { strict: 'Strict', lax: 'Lax' }; + function L0e(e) { + if (e != null) { + let t = e.toLowerCase(); + switch (t) { + case Ed.STRICT: + case Ed.SILENT: + case Ed.DISABLED: + return t; + } + } + return Ed.SILENT; + } + var eu = class e { + constructor(t, r = { rejectPublicSuffixes: !0 }) { + typeof r == 'boolean' && (r = { rejectPublicSuffixes: r }), + ye.validate(ye.isObject(r), r), + (this.rejectPublicSuffixes = r.rejectPublicSuffixes), + (this.enableLooseMode = !!r.looseMode), + (this.allowSpecialUseDomain = typeof r.allowSpecialUseDomain == 'boolean' ? r.allowSpecialUseDomain : !0), + (this.store = t || new U0e()), + (this.prefixSecurity = L0e(r.prefixSecurity)), + (this._cloneSync = xp('clone')), + (this._importCookiesSync = xp('_importCookies')), + (this.getCookiesSync = xp('getCookies')), + (this.getCookieStringSync = xp('getCookieString')), + (this.getSetCookieStringsSync = xp('getSetCookieStrings')), + (this.removeAllCookiesSync = xp('removeAllCookies')), + (this.setCookieSync = xp('setCookie')), + (this.serializeSync = xp('serialize')); + } + setCookie(t, r, n, a) { + ye.validate(ye.isNonEmptyString(r), a, n); + let o; + if (ye.isFunction(r)) return (a = r), a(new Error('No URL was specified')); + let s = F0e(r); + if ( + (ye.isFunction(n) && ((a = n), (n = {})), + ye.validate(ye.isFunction(a), a), + !ye.isNonEmptyString(t) && !ye.isObject(t) && t instanceof String && t.length == 0) + ) + return a(null); + let l = Uh(s.hostname), + u = n.loose || this.enableLooseMode, + p = null; + if (n.sameSiteContext && ((p = q0e(n.sameSiteContext)), !p)) return a(new Error(N0e)); + if (typeof t == 'string' || t instanceof String) { + if (((t = bi.parse(t, { loose: u })), !t)) + return (o = new Error('Cookie failed to parse')), a(n.ignoreError ? null : o); + } else if (!(t instanceof bi)) + return ( + (o = new Error('First argument to setCookie must be a Cookie object or string')), a(n.ignoreError ? null : o) + ); + let c = n.now || new Date(); + if ( + this.rejectPublicSuffixes && + t.domain && + AP.getPublicSuffix(t.cdomain(), { + allowSpecialUseDomain: this.allowSpecialUseDomain, + ignoreError: n.ignoreError, + }) == null && + !z0e.test(t.domain) + ) + return (o = new Error('Cookie has domain set to a public suffix')), a(n.ignoreError ? null : o); + if (t.domain) { + if (!CP(l, t.cdomain(), !1)) + return ( + (o = new Error(`Cookie not in this host's domain. Cookie:${t.cdomain()} Request:${l}`)), + a(n.ignoreError ? null : o) + ); + t.hostOnly == null && (t.hostOnly = !1); + } else (t.hostOnly = !0), (t.domain = l); + if ( + ((!t.path || t.path[0] !== '/') && ((t.path = G0e(s.pathname)), (t.pathIsDefault = !0)), + n.http === !1 && t.httpOnly) + ) + return (o = new Error("Cookie is HttpOnly and this isn't an HTTP API")), a(n.ignoreError ? null : o); + if (t.sameSite !== 'none' && t.sameSite !== void 0 && p && p === 'none') + return (o = new Error('Cookie is SameSite but this is a cross-origin request')), a(n.ignoreError ? null : o); + let f = this.prefixSecurity === Ed.SILENT; + if (!(this.prefixSecurity === Ed.DISABLED)) { + let y = !1, + S; + if ( + (Fgt(t) + ? Lgt(t) || + ((y = !0), + (S = "Cookie has __Host prefix but either Secure or HostOnly attribute is not set or Path is not '/'")) + : ((y = !0), (S = 'Cookie has __Secure prefix but Secure attribute is not set')), + y) + ) + return a(n.ignoreError || f ? null : new Error(S)); + } + let m = this.store; + m.updateCookie || + (m.updateCookie = function (y, S, w) { + this.putCookie(S, w); + }); + function v(y, S) { + if (y) return a(y); + let w = function (O) { + if (O) return a(O); + a(null, t); + }; + if (S) { + if (n.http === !1 && S.httpOnly) + return (y = new Error("old Cookie is HttpOnly and this isn't an HTTP API")), a(n.ignoreError ? null : y); + (t.creation = S.creation), (t.creationIndex = S.creationIndex), (t.lastAccessed = c), m.updateCookie(S, t, w); + } else (t.creation = t.lastAccessed = c), m.putCookie(t, w); + } + m.findCookie(t.domain, t.path, t.key, v); + } + getCookies(t, r, n) { + ye.validate(ye.isNonEmptyString(t), n, t); + let a = F0e(t); + ye.isFunction(r) && ((n = r), (r = {})), ye.validate(ye.isObject(r), n, r), ye.validate(ye.isFunction(n), n); + let o = Uh(a.hostname), + s = a.pathname || '/', + l = r.secure; + l == null && a.protocol && (a.protocol == 'https:' || a.protocol == 'wss:') && (l = !0); + let u = 0; + if (r.sameSiteContext) { + let y = q0e(r.sameSiteContext); + if (((u = bi.sameSiteLevel[y]), !u)) return n(new Error(N0e)); + } + let p = r.http; + p == null && (p = !0); + let c = r.now || Date.now(), + f = r.expire !== !1, + h = !!r.allPaths, + m = this.store; + function v(y) { + if (y.hostOnly) { + if (y.domain != o) return !1; + } else if (!CP(o, y.domain, !1)) return !1; + return (!h && !$0e(s, y.path)) || + (y.secure && !l) || + (y.httpOnly && !p) || + (u && bi.sameSiteLevel[y.sameSite || 'none'] > u) + ? !1 + : f && y.expiryTime() <= c + ? (m.removeCookie(y.domain, y.path, y.key, () => {}), !1) + : !0; + } + m.findCookies(o, h ? null : s, this.allowSpecialUseDomain, (y, S) => { + if (y) return n(y); + (S = S.filter(v)), r.sort !== !1 && (S = S.sort(kP)); + let w = new Date(); + for (let O of S) O.lastAccessed = w; + n(null, S); + }); + } + getCookieString(...t) { + let r = t.pop(); + ye.validate(ye.isFunction(r), r); + let n = function (a, o) { + a + ? r(a) + : r( + null, + o + .sort(kP) + .map((s) => s.cookieString()) + .join('; ') + ); + }; + t.push(n), this.getCookies.apply(this, t); + } + getSetCookieStrings(...t) { + let r = t.pop(); + ye.validate(ye.isFunction(r), r); + let n = function (a, o) { + a + ? r(a) + : r( + null, + o.map((s) => s.toString()) + ); + }; + t.push(n), this.getCookies.apply(this, t); + } + serialize(t) { + ye.validate(ye.isFunction(t), t); + let r = this.store.constructor.name; + ye.isObject(r) && (r = null); + let n = { + version: `tough-cookie@${B0e}`, + storeType: r, + rejectPublicSuffixes: !!this.rejectPublicSuffixes, + enableLooseMode: !!this.enableLooseMode, + allowSpecialUseDomain: !!this.allowSpecialUseDomain, + prefixSecurity: L0e(this.prefixSecurity), + cookies: [], + }; + if (!(this.store.getAllCookies && typeof this.store.getAllCookies == 'function')) + return t(new Error('store does not support getAllCookies and cannot be serialized')); + this.store.getAllCookies((a, o) => + a + ? t(a) + : ((n.cookies = o.map((s) => ((s = s instanceof bi ? s.toJSON() : s), delete s.creationIndex, s))), + t(null, n)) + ); + } + toJSON() { + return this.serializeSync(); + } + _importCookies(t, r) { + let n = t.cookies; + if (!n || !Array.isArray(n)) return r(new Error('serialized jar has no cookies array')); + n = n.slice(); + let a = (o) => { + if (o) return r(o); + if (!n.length) return r(o, this); + let s; + try { + s = u8(n.shift()); + } catch (l) { + return r(l); + } + if (s === null) return a(null); + this.store.putCookie(s, a); + }; + a(); + } + clone(t, r) { + arguments.length === 1 && ((r = t), (t = null)), + this.serialize((n, a) => { + if (n) return r(n); + e.deserialize(a, t, r); + }); + } + cloneSync(t) { + if (arguments.length === 0) return this._cloneSync(); + if (!t.synchronous) + throw new Error('CookieJar clone destination store is not synchronous; use async API instead.'); + return this._cloneSync(t); + } + removeAllCookies(t) { + ye.validate(ye.isFunction(t), t); + let r = this.store; + if (typeof r.removeAllCookies == 'function' && r.removeAllCookies !== M0e.prototype.removeAllCookies) + return r.removeAllCookies(t); + r.getAllCookies((n, a) => { + if (n) return t(n); + if (a.length === 0) return t(null); + let o = 0, + s = []; + function l(u) { + if ((u && s.push(u), o++, o === a.length)) return t(s.length ? s[0] : null); + } + a.forEach((u) => { + r.removeCookie(u.domain, u.path, u.key, l); + }); + }); + } + static deserialize(t, r, n) { + arguments.length !== 3 && ((n = r), (r = null)), ye.validate(ye.isFunction(n), n); + let a; + if (typeof t == 'string') { + if (((a = K0e(t)), a instanceof Error)) return n(a); + } else a = t; + let o = new e(r, { + rejectPublicSuffixes: a.rejectPublicSuffixes, + looseMode: a.enableLooseMode, + allowSpecialUseDomain: a.allowSpecialUseDomain, + prefixSecurity: a.prefixSecurity, + }); + o._importCookies(a, (s) => { + if (s) return n(s); + n(null, o); + }); + } + static deserializeSync(t, r) { + let n = typeof t == 'string' ? JSON.parse(t) : t, + a = new e(r, { rejectPublicSuffixes: n.rejectPublicSuffixes, looseMode: n.enableLooseMode }); + if (!a.store.synchronous) throw new Error('CookieJar store is not synchronous; use async API instead.'); + return a._importCookiesSync(n), a; + } + }; + eu.fromJSON = eu.deserializeSync; + [ + '_importCookies', + 'clone', + 'getCookies', + 'getCookieString', + 'getSetCookieStrings', + 'removeAllCookies', + 'serialize', + 'setCookie', + ].forEach((e) => { + eu.prototype[e] = V0e(eu.prototype[e]); + }); + eu.deserialize = V0e(eu.deserialize); + function xp(e) { + return function (...t) { + if (!this.store.synchronous) throw new Error('CookieJar store is not synchronous; use async API instead.'); + let r, n; + if ( + (this[e](...t, (a, o) => { + (r = a), (n = o); + }), + r) + ) + throw r; + return n; + }; + } + Gr.version = B0e; + Gr.CookieJar = eu; + Gr.Cookie = bi; + Gr.Store = M0e; + Gr.MemoryCookieStore = U0e; + Gr.parseDate = Ny; + Gr.formatDate = H0e; + Gr.parse = W0e; + Gr.fromJSON = u8; + Gr.domainMatch = CP; + Gr.defaultPath = G0e; + Gr.pathMatch = $0e; + Gr.getPublicSuffix = AP.getPublicSuffix; + Gr.cookieCompare = kP; + Gr.permuteDomain = _P().permuteDomain; + Gr.permutePath = Mgt; + Gr.canonicalDomain = Uh; + Gr.PrefixSecurityEnum = Ed; + Gr.ParameterError = ye.ParameterError; +}); +var IP = d((FJt, J0e) => { + 'use strict'; + J0e.exports = X0e(); +}); +var p8 = d((LJt, Y0e) => { + 'use strict'; + Y0e.exports = { + addTimeout: function (e, t, r, n) { + if (((this._timeouts = this._timeouts || {}), !this._timeouts.hasOwnProperty(e))) { + var a = this; + this._timeouts[e] = global.setTimeout(function () { + delete a._timeouts[e], r.call(n); + }, 1e3 * t); + } + }, + removeTimeout: function (e) { + this._timeouts = this._timeouts || {}; + var t = this._timeouts[e]; + t && (global.clearTimeout(t), delete this._timeouts[e]); + }, + removeAllTimeouts: function () { + this._timeouts = this._timeouts || {}; + for (var e in this._timeouts) this.removeTimeout(e); + }, + }; +}); +var Ly = d((MJt, eve) => { + 'use strict'; + var Ugt = oi(), + $gt = IP().Cookie, + Q0e = qh(), + Fy = Fh(), + c8 = ai(), + Bgt = Yl(), + Vgt = p8(), + Z0e = Iy(), + PP = c8( + Ugt({ + className: 'Transport', + DEFAULT_PORTS: { 'http:': 80, 'https:': 443, 'ws:': 80, 'wss:': 443 }, + MAX_DELAY: 0, + batching: !0, + initialize: function (e, t) { + (this._dispatcher = e), + (this.endpoint = t), + (this._outbox = []), + (this._proxy = c8({}, this._dispatcher.proxy)), + this._proxy.origin || (this._proxy.origin = this._findProxy()); + }, + close: function () {}, + encode: function (e) { + return ''; + }, + sendMessage: function (e) { + return ( + this.debug('Client ? sending message to ?: ?', this._dispatcher.clientId, this.endpoint.href, e), + this.batching + ? (this._outbox.push(e), + this._flushLargeBatch(), + e.channel === Z0e.HANDSHAKE + ? this._publish(0.01) + : (e.channel === Z0e.CONNECT && (this._connectMessage = e), this._publish(this.MAX_DELAY))) + : Q0e.resolve(this.request([e])) + ); + }, + _makePromise: function () { + var e = this; + this._requestPromise = + this._requestPromise || + new Q0e(function (t) { + e._resolvePromise = t; + }); + }, + _publish: function (e) { + return ( + this._makePromise(), + this.addTimeout( + 'publish', + e, + function () { + this._flush(), delete this._requestPromise; + }, + this + ), + this._requestPromise + ); + }, + _flush: function () { + this.removeTimeout('publish'), + this._outbox.length > 1 && this._connectMessage && (this._connectMessage.advice = { timeout: 0 }), + this._resolvePromise(this.request(this._outbox)), + (this._connectMessage = null), + (this._outbox = []); + }, + _flushLargeBatch: function () { + var e = this.encode(this._outbox); + if (!(e.length < this._dispatcher.maxRequestSize)) { + var t = this._outbox.pop(); + this._makePromise(), this._flush(), t && this._outbox.push(t); + } + }, + _receive: function (e) { + if (e) { + (e = [].concat(e)), + this.debug( + 'Client ? received from ? via ?: ?', + this._dispatcher.clientId, + this.endpoint.href, + this.connectionType, + e + ); + for (var t = 0, r = e.length; t < r; t++) this._dispatcher.handleResponse(e[t]); + } + }, + _handleError: function (e, t) { + (e = [].concat(e)), + this.debug( + 'Client ? failed to send to ? via ?: ?', + this._dispatcher.clientId, + this.endpoint.href, + this.connectionType, + e + ); + for (var r = 0, n = e.length; r < n; r++) this._dispatcher.handleError(e[r]); + }, + _getCookies: function () { + var e = this._dispatcher.cookies, + t = this.endpoint.href; + return e + ? Fy.map(e.getCookiesSync(t), function (r) { + return r.cookieString(); + }).join('; ') + : ''; + }, + _storeCookies: function (e) { + var t = this._dispatcher.cookies, + r = this.endpoint.href, + n; + if (!(!e || !t)) { + e = [].concat(e); + for (var a = 0, o = e.length; a < o; a++) (n = $gt.parse(e[a])), t.setCookieSync(n, r); + } + }, + _findProxy: function () { + if (!(typeof process > 'u')) { + var e = this.endpoint.protocol; + if (e) { + var t = e.replace(/:$/, '').toLowerCase() + '_proxy', + r = t.toUpperCase(), + n = process.env, + a, + o; + return ( + t === 'http_proxy' && n.REQUEST_METHOD + ? ((a = Object.keys(n).filter(function (s) { + return /^http_proxy$/i.test(s); + })), + a.length === 1 ? a[0] === t && n[r] === void 0 && (o = n[t]) : a.length > 1 && (o = n[t]), + (o = o || n['CGI_' + r])) + : ((o = n[t] || n[r]), + o && !n[t] && console.warn('The environment variable ' + r + ' is discouraged. Use ' + t + '.')), + o + ); + } + } + }, + }), + { + get: function (e, t, r, n, a) { + var o = e.endpoint; + Fy.asyncEach( + this._transports, + function (s, l) { + var u = s[0], + p = s[1], + c = e.endpointFor(u); + if (Fy.indexOf(r, u) >= 0) return l(); + if (Fy.indexOf(t, u) < 0) return p.isUsable(e, c, function () {}), l(); + p.isUsable(e, c, function (f) { + if (!f) return l(); + var h = p.hasOwnProperty('create') ? p.create(e, c) : new p(e, c); + n.call(a, h); + }); + }, + function () { + throw new Error('Could not find a usable connection type for ' + o.href); + } + ); + }, + register: function (e, t) { + this._transports.push([e, t]), (t.prototype.connectionType = e); + }, + getConnectionTypes: function () { + return Fy.map(this._transports, function (e) { + return e[0]; + }); + }, + disable: function (e) { + if (e === 'autodisconnect') + for (var t = 0; t < this._transports.length; t++) this._transports[t][1]._unloaded = !1; + }, + _transports: [], + } + ); + c8(PP.prototype, Bgt); + c8(PP.prototype, Vgt); + eve.exports = PP; +}); +var d8 = d((UJt, tve) => { + 'use strict'; + var RP = function (e) { + var t, r, n; + if (e instanceof Array) { + for (t = [], r = e.length; r--; ) t[r] = RP(e[r]); + return t; + } else if (typeof e == 'object') { + t = e === null ? null : {}; + for (n in e) t[n] = RP(e[n]); + return t; + } else return e; + }; + tve.exports = RP; +}); +var ive = d(($Jt, rve) => { + 'use strict'; + var $h = function (e, t) { + t = t || (e instanceof Buffer ? 8 : 1); + var r = '', + n, + a, + o; + for (a = 0, o = e.length; a < o; a++) { + for (n = this._get(e, a).toString(2); n.length < t; ) n = '0' + n; + r = r + n; + } + (r = r.split('').map(function (s) { + return parseInt(s, 2); + })), + (this._bases = { 2: r }); + }; + $h.prototype.generate = function (e, t, r) { + t = t || 2; + var n = e, + a = Math.ceil(Math.log(e) / Math.log(t)), + o = Math.pow(t, a) - e, + s; + e: for (; n >= e; ) { + if (((s = this._shift(t, a)), !s)) return r ? e : null; + if (((n = this._evaluate(s, t)), n >= e)) { + if (o === 1) continue e; + this._push(o, n - e), (n = this.generate(e, o, !0)); + } + } + return n; + }; + $h.prototype._get = function (e, t) { + return e.readUInt8 ? e.readUInt8(t) : e[t]; + }; + $h.prototype._evaluate = function (e, t) { + for (var r = 0, n = e.length; n--; ) r += e[n] * Math.pow(t, e.length - (n + 1)); + return r; + }; + $h.prototype._push = function (e, t) { + (this._bases[e] = this._bases[e] || []), this._bases[e].push(t); + }; + $h.prototype._shift = function (e, t) { + var r = this._bases[e]; + return !r || r.length < t ? null : r.splice(0, t); + }; + rve.exports = $h; +}); +var ave = d((BJt, nve) => { + var zgt = 128, + Hgt = 16, + Ggt = '0123456789abcdefghijklmnopqrstuvwxyz'.split(''), + Wgt = require('crypto'), + Kgt = ive(), + Xgt = function (e, t) { + if (((e = e || zgt), (t = t || Hgt), t < 2 || t > 36)) throw new Error('radix argument must be between 2 and 36'); + for ( + var r = Math.ceil((e * Math.log(2)) / Math.log(t)), n = Wgt.randomBytes(e), a = new Kgt(n), o = ''; + o.length < r; + + ) + o += Ggt[a.generate(t)]; + return o; + }; + nve.exports = Xgt; +}); +var jP = d((VJt, ove) => { + 'use strict'; + var Jgt = ave(), + Ygt = jh(); + ove.exports = function (e) { + e = e || Ygt.ID_LENGTH; + for (var t = Math.ceil((e * Math.log(2)) / Math.log(36)), r = Jgt(e, 36); r.length < t; ) r = '0' + r; + return r; + }; +}); +var uve = d((zJt, lve) => { + 'use strict'; + var Qgt = oi(), + sve = ai(), + Zgt = Lh(), + e1t = p8(), + DP = Qgt({ + initialize: function (e, t, r) { + (this._engine = e), (this._id = t), (this._options = r), (this._inbox = []); + }, + deliver: function (e) { + if ((delete e.clientId, this.socket)) return this.socket.send(e); + this._inbox.push(e), this._beginDeliveryTimeout(); + }, + connect: function (e, t, r) { + e = e || {}; + var n = e.timeout !== void 0 ? e.timeout / 1e3 : this._engine.timeout; + this.setDeferredStatus('unknown'), + this.callback(t, r), + this._beginDeliveryTimeout(), + this._beginConnectionTimeout(n); + }, + flush: function () { + this.removeTimeout('connection'), + this.removeTimeout('delivery'), + this.setDeferredStatus('succeeded', this._inbox), + (this._inbox = []), + this.socket || this._engine.closeConnection(this._id); + }, + _beginDeliveryTimeout: function () { + this._inbox.length !== 0 && this.addTimeout('delivery', this._engine.MAX_DELAY, this.flush, this); + }, + _beginConnectionTimeout: function (e) { + this.addTimeout('connection', e, this.flush, this); + }, + }); + sve(DP.prototype, Zgt); + sve(DP.prototype, e1t); + lve.exports = DP; +}); +var dve = d((HJt, cve) => { + 'use strict'; + var t1t = oi(), + pve = jP(); + cve.exports = t1t({ + initialize: function () { + this._used = {}; + }, + exists: function (e) { + return this._used.hasOwnProperty(e); + }, + generate: function () { + for (var e = pve(); this._used.hasOwnProperty(e); ) e = pve(); + return (this._used[e] = e); + }, + release: function (e) { + delete this._used[e]; + }, + }); +}); +var NP = d((GJt, fve) => { + 'use strict'; + var r1t = oi(); + fve.exports = r1t({ + initialize: function () { + this._index = {}; + }, + add: function (e) { + var t = e.id !== void 0 ? e.id : e; + return this._index.hasOwnProperty(t) ? !1 : ((this._index[t] = e), !0); + }, + forEach: function (e, t) { + for (var r in this._index) this._index.hasOwnProperty(r) && e.call(t, this._index[r]); + }, + isEmpty: function () { + for (var e in this._index) if (this._index.hasOwnProperty(e)) return !1; + return !0; + }, + member: function (e) { + for (var t in this._index) if (this._index[t] === e) return !0; + return !1; + }, + remove: function (e) { + var t = e.id !== void 0 ? e.id : e, + r = this._index[t]; + return delete this._index[t], r; + }, + toArray: function () { + var e = []; + return ( + this.forEach(function (t) { + e.push(t); + }), + e + ); + }, + }); +}); +var hve = d((WJt, mve) => { + 'use strict'; + var i1t = d8(), + n1t = ai(), + a1t = dve(), + qP = NP(), + o1t = p8(), + My = function (e, t) { + (this._server = e), (this._options = t || {}), this.reset(); + }; + My.create = function (e, t) { + return new My(e, t); + }; + My.prototype = { + disconnect: function () { + this.reset(), this.removeAllTimeouts(); + }, + reset: function () { + (this._namespace = new a1t()), (this._clients = {}), (this._channels = {}), (this._messages = {}); + }, + createClient: function (e, t) { + var r = this._namespace.generate(); + this._server.debug('Created new client ?', r), this.ping(r), this._server.trigger('handshake', r), e.call(t, r); + }, + destroyClient: function (e, t, r) { + if (this._namespace.exists(e)) { + var n = this._clients; + n[e] && + n[e].forEach(function (a) { + this.unsubscribe(e, a); + }, this), + this.removeTimeout(e), + this._namespace.release(e), + delete this._messages[e], + this._server.debug('Destroyed client ?', e), + this._server.trigger('disconnect', e), + this._server.trigger('close', e), + t && t.call(r); + } + }, + clientExists: function (e, t, r) { + t.call(r, this._namespace.exists(e)); + }, + ping: function (e) { + var t = this._server.timeout; + typeof t == 'number' && + (this._server.debug('Ping ?, ?', e, t), + this.removeTimeout(e), + this.addTimeout( + e, + 2 * t, + function () { + this.destroyClient(e); + }, + this + )); + }, + subscribe: function (e, t, r, n) { + var a = this._clients, + o = this._channels; + a[e] = a[e] || new qP(); + var s = a[e].add(t); + (o[t] = o[t] || new qP()), + o[t].add(e), + this._server.debug('Subscribed client ? to channel ?', e, t), + s && this._server.trigger('subscribe', e, t), + r && r.call(n, !0); + }, + unsubscribe: function (e, t, r, n) { + var a = this._clients, + o = this._channels, + s = !1; + a[e] && ((s = a[e].remove(t)), a[e].isEmpty() && delete a[e]), + o[t] && (o[t].remove(e), o[t].isEmpty() && delete o[t]), + this._server.debug('Unsubscribed client ? from channel ?', e, t), + s && this._server.trigger('unsubscribe', e, t), + r && r.call(n, !0); + }, + publish: function (e, t) { + this._server.debug('Publishing message ?', e); + for (var r = this._messages, n = new qP(), a, o = 0, s = t.length; o < s; o++) + (a = this._channels[t[o]]), a && a.forEach(n.add, n); + n.forEach(function (l) { + this._server.debug('Queueing for client ?: ?', l, e), + (r[l] = r[l] || []), + r[l].push(i1t(e)), + this.emptyQueue(l); + }, this), + this._server.trigger('publish', e.clientId, e.channel, e.data); + }, + emptyQueue: function (e) { + this._server.hasConnection(e) && (this._server.deliver(e, this._messages[e]), delete this._messages[e]); + }, + }; + n1t(My.prototype, o1t); + mve.exports = My; +}); +var vve = d((XJt, gve) => { + 'use strict'; + var s1t = Ty(), + FP = ai(), + l1t = jP(), + u1t = oi(), + KJt = qh(), + p1t = Yl(), + c1t = Mh(), + d1t = Iy(), + f1t = uve(), + m1t = hve(), + Uy = FP( + u1t({ + className: 'Engine.Proxy', + MAX_DELAY: 0, + INTERVAL: 0, + TIMEOUT: 60, + initialize: function (e) { + (this._options = e || {}), + (this._connections = {}), + (this.interval = this._options.interval || this.INTERVAL), + (this.timeout = this._options.timeout || this.TIMEOUT); + var t = this._options.type || m1t; + (this._engine = t.create(this, this._options)), + this.bind( + 'close', + function (r) { + var n = this; + s1t(function () { + n.flushConnection(r); + }); + }, + this + ), + this.debug('Created new engine: ?', this._options); + }, + connect: function (e, t, r, n) { + this.debug('Accepting connection from ?', e), this._engine.ping(e); + var a = this.connection(e, !0); + a.connect(t, r, n), this._engine.emptyQueue(e); + }, + hasConnection: function (e) { + return this._connections.hasOwnProperty(e); + }, + connection: function (e, t) { + var r = this._connections[e]; + return r || !t + ? r + : ((this._connections[e] = new f1t(this, e)), this.trigger('connection:open', e), this._connections[e]); + }, + closeConnection: function (e) { + this.debug('Closing connection for ?', e); + var t = this._connections[e]; + t && (t.socket && t.socket.close(), this.trigger('connection:close', e), delete this._connections[e]); + }, + openSocket: function (e, t) { + var r = this.connection(e, !0); + r.socket = t; + }, + deliver: function (e, t) { + if (!t || t.length === 0) return !1; + var r = this.connection(e, !1); + if (!r) return !1; + for (var n = 0, a = t.length; n < a; n++) r.deliver(t[n]); + return !0; + }, + generateId: function () { + return l1t(); + }, + flushConnection: function (e, t) { + if (e) { + this.debug('Flushing connection for ?', e); + var r = this.connection(e, !1); + r && (t === !1 && (r.socket = null), r.flush(), this.closeConnection(e)); + } + }, + close: function () { + for (var e in this._connections) this.flushConnection(e); + this._engine.disconnect(); + }, + disconnect: function () { + if (this._engine.disconnect) return this._engine.disconnect(); + }, + publish: function (e) { + var t = d1t.expand(e.channel); + return this._engine.publish(e, t); + }, + }), + { + get: function (e) { + return new Uy(e); + }, + } + ), + h1t = ['createClient', 'clientExists', 'destroyClient', 'ping', 'subscribe', 'unsubscribe']; + h1t.forEach(function (e) { + Uy.prototype[e] = function () { + return this._engine[e].apply(this._engine, arguments); + }; + }); + FP(Uy.prototype, c1t); + FP(Uy.prototype, p1t); + gve.exports = Uy; +}); +var MP = d((JJt, bve) => { + 'use strict'; + var g1t = oi(), + v1t = s8(), + Bh = g1t({ + initialize: function (e, t, r) { + (this.code = e), (this.params = Array.prototype.slice.call(t)), (this.message = r); + }, + toString: function () { + return this.code + ':' + this.params.join(',') + ':' + this.message; + }, + }); + Bh.parse = function (a) { + if (((a = a || ''), !v1t.ERROR.test(a))) return new Bh(null, [], a); + var t = a.split(':'), + r = parseInt(t[0]), + n = t[1].split(','), + a = t[2]; + return new Bh(r, n, a); + }; + var LP = { + versionMismatch: [300, 'Version mismatch'], + conntypeMismatch: [301, 'Connection types not supported'], + extMismatch: [302, 'Extension mismatch'], + badRequest: [400, 'Bad request'], + clientUnknown: [401, 'Unknown client'], + parameterMissing: [402, 'Missing required parameter'], + channelForbidden: [403, 'Forbidden channel'], + channelUnknown: [404, 'Unknown channel'], + channelInvalid: [405, 'Invalid channel'], + extUnknown: [406, 'Unknown extension'], + publishFailed: [407, 'Failed to publish'], + serverError: [500, 'Internal server error'], + }; + for (yve in LP) + (function (e) { + Bh[e] = function () { + return new Bh(LP[e][0], arguments, LP[e][1]).toString(); + }; + })(yve); + var yve; + bve.exports = Bh; +}); +var UP = d((YJt, wve) => { + 'use strict'; + var y1t = ai(), + b1t = Yl(), + _ve = { + addExtension: function (e) { + (this._extensions = this._extensions || []), this._extensions.push(e), e.added && e.added(this); + }, + removeExtension: function (e) { + if (this._extensions) + for (var t = this._extensions.length; t--; ) + this._extensions[t] === e && (this._extensions.splice(t, 1), e.removed && e.removed(this)); + }, + pipeThroughExtensions: function (e, t, r, n, a) { + if ((this.debug('Passing through ? extensions: ?', e, t), !this._extensions)) return n.call(a, t); + var o = this._extensions.slice(), + s = function (l) { + if (!l) return n.call(a, l); + var u = o.shift(); + if (!u) return n.call(a, l); + var p = u[e]; + if (!p) return s(l); + p.length >= 3 ? u[e](l, r, s) : u[e](l, s); + }; + s(t); + }, + }; + y1t(_ve, b1t); + wve.exports = _ve; +}); +var Eve = d((QJt, Sve) => { + 'use strict'; + var _1t = oi(), + w1t = Dh(); + Sve.exports = _1t({ + initialize: function (e, t, r) { + (this._server = e), (this._socket = t), (this._request = r); + }, + send: function (e) { + this._server.pipeThroughExtensions( + 'outgoing', + e, + this._request, + function (t) { + this._socket && this._socket.send(w1t([t])); + }, + this + ); + }, + close: function () { + this._socket && this._socket.close(), delete this._socket; + }, + }); +}); +var $P = d((ZJt, xve) => { + 'use strict'; + var S1t = oi(), + f8 = Fh(), + h8 = ai(), + m8 = jh(), + E1t = Yl(), + x1t = vve(), + Wa = Iy(), + wr = MP(), + O1t = UP(), + T1t = s8(), + C1t = Eve(), + $y = S1t({ + className: 'Server', + initialize: function (e) { + this._options = e || {}; + var t = this._options.engine || {}; + (t.timeout = this._options.timeout), + (this._engine = x1t.get(t)), + this.info('Created new server: ?', this._options); + }, + close: function () { + return this._engine.close(); + }, + openSocket: function (e, t, r) { + !e || !t || this._engine.openSocket(e, new C1t(this, t, r)); + }, + closeSocket: function (e, t) { + this._engine.flushConnection(e, t); + }, + process: function (e, t, r, n) { + var a = t === null; + if (((e = [].concat(e)), this.info('Processing messages: ? (local: ?)', e, a), e.length === 0)) + return r.call(n, []); + for ( + var o = 0, + s = [], + l = this, + u = function (h) { + if (((s = s.concat(h)), (o += 1), !(o < e.length))) { + for (var m = s.length; m--; ) s[m] || s.splice(m, 1); + l.info('Returning replies: ?', s), r.call(n, s); + } + }, + p = function (h) { + var m = 0, + v = h.length; + v === 0 && u(h); + for (var y = 0, S = h.length; y < S; y++) + this.debug('Processing reply: ?', h[y]), + (function (w) { + l.pipeThroughExtensions('outgoing', h[w], t, function (O) { + (h[w] = O), (m += 1), m === v && u(h); + }); + })(y); + }, + c = 0, + f = e.length; + c < f; + c++ + ) + this.pipeThroughExtensions( + 'incoming', + e[c], + t, + function (h) { + this._handle(h, a, p, this); + }, + this + ); + }, + _makeResponse: function (e) { + var t = {}; + return ( + e.id && (t.id = e.id), + e.clientId && (t.clientId = e.clientId), + e.channel && (t.channel = e.channel), + e.error && (t.error = e.error), + (t.successful = !t.error), + t + ); + }, + _handle: function (e, t, r, n) { + if (!e) return r.call(n, []); + this.info('Handling message: ? (local: ?)', e, t); + var a = e.channel, + o = e.error, + s; + if (Wa.isMeta(a)) return this._handleMeta(e, t, r, n); + T1t.CHANNEL_NAME.test(a) || (o = wr.channelInvalid(a)), + e.data === void 0 && (o = wr.parameterMissing('data')), + o || this._engine.publish(e), + (s = this._makeResponse(e)), + o && (s.error = o), + (s.successful = !s.error), + r.call(n, [s]); + }, + _handleMeta: function (e, t, r, n) { + var a = this._methodFor(e), + o; + if (a === null) + return ( + (o = this._makeResponse(e)), (o.error = wr.channelForbidden(e.channel)), (o.successful = !1), r.call(n, [o]) + ); + this[a]( + e, + t, + function (s) { + s = [].concat(s); + for (var l = 0, u = s.length; l < u; l++) this._advize(s[l], e.connectionType); + r.call(n, s); + }, + this + ); + }, + _methodFor: function (e) { + var t = e.channel; + return t === Wa.HANDSHAKE + ? 'handshake' + : t === Wa.CONNECT + ? 'connect' + : t === Wa.SUBSCRIBE + ? 'subscribe' + : t === Wa.UNSUBSCRIBE + ? 'unsubscribe' + : t === Wa.DISCONNECT + ? 'disconnect' + : null; + }, + _advize: function (e, t) { + if (!(f8.indexOf([Wa.HANDSHAKE, Wa.CONNECT], e.channel) < 0)) { + var r, n; + t === 'eventsource' + ? ((r = Math.floor(this._engine.timeout * 1e3)), (n = 0)) + : ((r = Math.floor(this._engine.interval * 1e3)), (n = Math.floor(this._engine.timeout * 1e3))), + (e.advice = e.advice || {}), + e.error + ? h8(e.advice, { reconnect: 'handshake' }, !1) + : h8(e.advice, { reconnect: 'retry', interval: r, timeout: n }, !1); + } + }, + handshake: function (e, t, r, n) { + var a = this._makeResponse(e); + (a.version = m8.BAYEUX_VERSION), e.version || (a.error = wr.parameterMissing('version')); + var o = e.supportedConnectionTypes, + s; + if ( + ((a.supportedConnectionTypes = m8.CONNECTION_TYPES), + o + ? ((s = f8.filter(o, function (l) { + return f8.indexOf(m8.CONNECTION_TYPES, l) >= 0; + })), + s.length === 0 && (a.error = wr.conntypeMismatch(o))) + : (a.error = wr.parameterMissing('supportedConnectionTypes')), + (a.successful = !a.error), + !a.successful) + ) + return r.call(n, a); + this._engine.createClient(function (l) { + (a.clientId = l), r.call(n, a); + }, this); + }, + connect: function (e, t, r, n) { + var a = this._makeResponse(e), + o = e.clientId, + s = e.connectionType; + this._engine.clientExists( + o, + function (l) { + if ( + (l || (a.error = wr.clientUnknown(o)), + o || (a.error = wr.parameterMissing('clientId')), + f8.indexOf(m8.CONNECTION_TYPES, s) < 0 && (a.error = wr.conntypeMismatch(s)), + s || (a.error = wr.parameterMissing('connectionType')), + (a.successful = !a.error), + !a.successful) + ) + return delete a.clientId, r.call(n, a); + e.connectionType === 'eventsource' && ((e.advice = e.advice || {}), (e.advice.timeout = 0)), + this._engine.connect(a.clientId, e.advice, function (u) { + r.call(n, [a].concat(u)); + }); + }, + this + ); + }, + disconnect: function (e, t, r, n) { + var a = this._makeResponse(e), + o = e.clientId; + this._engine.clientExists( + o, + function (s) { + s || (a.error = wr.clientUnknown(o)), + o || (a.error = wr.parameterMissing('clientId')), + (a.successful = !a.error), + a.successful || delete a.clientId, + a.successful && this._engine.destroyClient(o), + r.call(n, a); + }, + this + ); + }, + subscribe: function (e, t, r, n) { + var a = this._makeResponse(e), + o = e.clientId, + s = e.subscription, + l; + (s = s ? [].concat(s) : []), + this._engine.clientExists( + o, + function (u) { + u || (a.error = wr.clientUnknown(o)), + o || (a.error = wr.parameterMissing('clientId')), + e.subscription || (a.error = wr.parameterMissing('subscription')), + (a.subscription = e.subscription || []); + for ( + var p = 0, c = s.length; + p < c && + ((l = s[p]), + !( + a.error || + (!t && !Wa.isSubscribable(l) && (a.error = wr.channelForbidden(l)), + Wa.isValid(l) || (a.error = wr.channelInvalid(l)), + a.error) + )); + p++ + ) + this._engine.subscribe(o, l); + (a.successful = !a.error), r.call(n, a); + }, + this + ); + }, + unsubscribe: function (e, t, r, n) { + var a = this._makeResponse(e), + o = e.clientId, + s = e.subscription, + l; + (s = s ? [].concat(s) : []), + this._engine.clientExists( + o, + function (u) { + u || (a.error = wr.clientUnknown(o)), + o || (a.error = wr.parameterMissing('clientId')), + e.subscription || (a.error = wr.parameterMissing('subscription')), + (a.subscription = e.subscription || []); + for ( + var p = 0, c = s.length; + p < c && + ((l = s[p]), + !( + a.error || + (!t && !Wa.isSubscribable(l) && (a.error = wr.channelForbidden(l)), + Wa.isValid(l) || (a.error = wr.channelInvalid(l)), + a.error) + )); + p++ + ) + this._engine.unsubscribe(o, l); + (a.successful = !a.error), r.call(n, a); + }, + this + ); + }, + }); + $y.create = function (e) { + return new $y(e); + }; + h8($y.prototype, E1t); + h8($y.prototype, O1t); + xve.exports = $y; +}); +var Cve = d((tYt, Tve) => { + 'use strict'; + var k1t = Ty(), + A1t = oi(), + eYt = Py(), + Ove = d8(), + I1t = ai(), + P1t = $P(), + R1t = Ly(), + j1t = I1t( + A1t(R1t, { + batching: !1, + request: function (e) { + e = Ove(e); + var t = this; + k1t(function () { + t.endpoint.process(e, null, function (r) { + t._receive(Ove(r)); + }); + }); + }, + }), + { + isUsable: function (e, t, r, n) { + r.call(n, t instanceof P1t); + }, + } + ); + Tve.exports = j1t; +}); +var Ive = d((BP) => { + 'use strict'; + var kve = require('stream').Stream, + Ave = require('util'), + xd = function (e) { + (this.readable = this.writable = !0), (this._paused = !1), (this._driver = e); + }; + Ave.inherits(xd, kve); + xd.prototype.pause = function () { + (this._paused = !0), (this._driver.messages._paused = !0); + }; + xd.prototype.resume = function () { + (this._paused = !1), this.emit('drain'); + var e = this._driver.messages; + (e._paused = !1), e.emit('drain'); + }; + xd.prototype.write = function (e) { + return this.writable ? (this._driver.parse(e), !this._paused) : !1; + }; + xd.prototype.end = function (e) { + if (this.writable) { + e !== void 0 && this.write(e), (this.writable = !1); + var t = this._driver.messages; + t.readable && ((t.readable = t.writable = !1), t.emit('end')); + } + }; + xd.prototype.destroy = function () { + this.end(); + }; + var Od = function (e) { + (this.readable = this.writable = !0), (this._paused = !1), (this._driver = e); + }; + Ave.inherits(Od, kve); + Od.prototype.pause = function () { + this._driver.io._paused = !0; + }; + Od.prototype.resume = function () { + (this._driver.io._paused = !1), this._driver.io.emit('drain'); + }; + Od.prototype.write = function (e) { + return this.writable ? (typeof e == 'string' ? this._driver.text(e) : this._driver.binary(e), !this._paused) : !1; + }; + Od.prototype.end = function (e) { + e !== void 0 && this.write(e); + }; + Od.prototype.destroy = function () {}; + BP.IO = xd; + BP.Messages = Od; +}); +var g8 = d((iYt, Pve) => { + 'use strict'; + var Vh = function () { + this.clear(); + }; + Vh.prototype.ALLOWED_DUPLICATES = ['set-cookie', 'set-cookie2', 'warning', 'www-authenticate']; + Vh.prototype.clear = function () { + (this._sent = {}), (this._lines = []); + }; + Vh.prototype.set = function (e, t) { + if (t !== void 0) { + (e = this._strip(e)), (t = this._strip(t)); + var r = e.toLowerCase(); + (!this._sent.hasOwnProperty(r) || this.ALLOWED_DUPLICATES.indexOf(r) >= 0) && + ((this._sent[r] = !0), + this._lines.push( + e + + ': ' + + t + + `\r +` + )); + } + }; + Vh.prototype.toString = function () { + return this._lines.join(''); + }; + Vh.prototype._strip = function (e) { + return e.toString().replace(/^ */, '').replace(/ *$/, ''); + }; + Pve.exports = Vh; +}); +var jve = d((nYt, Rve) => { + 'use strict'; + var v8 = ii().Buffer, + y8 = function () { + (this._queue = []), (this._queueSize = 0), (this._offset = 0); + }; + y8.prototype.put = function (e) { + !e || e.length === 0 || (v8.isBuffer(e) || (e = v8.from(e)), this._queue.push(e), (this._queueSize += e.length)); + }; + y8.prototype.read = function (e) { + if (e > this._queueSize) return null; + if (e === 0) return v8.alloc(0); + this._queueSize -= e; + var t = this._queue, + r = e, + n = t[0], + a, + o; + if (n.length >= e) return n.length === e ? t.shift() : ((o = n.slice(0, e)), (t[0] = n.slice(e)), o); + for (var s = 0, l = t.length; s < l && !(r < t[s].length); s++) r -= t[s].length; + return ( + (a = t.splice(0, s)), r > 0 && t.length > 0 && (a.push(t[0].slice(0, r)), (t[0] = t[0].slice(r))), v8.concat(a, e) + ); + }; + y8.prototype.eachByte = function (e, t) { + for (var r, n, a; this._queue.length > 0; ) { + for (r = this._queue[0], n = r.length; this._offset < n; ) + (a = this._offset), (this._offset += 1), e.call(t, r[a]); + (this._offset = 0), this._queue.shift(); + } + }; + Rve.exports = y8; +}); +var Op = d((aYt, Mve) => { + 'use strict'; + var Dve = ii().Buffer, + Fve = require('events').EventEmitter, + D1t = require('util'), + Nve = Ive(), + Lve = g8(), + N1t = jve(), + mn = function (e, t, r) { + Fve.call(this), + mn.validateOptions(r || {}, ['maxLength', 'masking', 'requireMasking', 'protocols']), + (this._request = e), + (this._reader = new N1t()), + (this._options = r || {}), + (this._maxLength = this._options.maxLength || this.MAX_LENGTH), + (this._headers = new Lve()), + (this.__queue = []), + (this.readyState = 0), + (this.url = t), + (this.io = new Nve.IO(this)), + (this.messages = new Nve.Messages(this)), + this._bindEventListeners(); + }; + D1t.inherits(mn, Fve); + mn.isWebSocket = function (e) { + var t = e.headers.connection || '', + r = e.headers.upgrade || ''; + return ( + e.method === 'GET' && t.toLowerCase().split(/ *, */).indexOf('upgrade') >= 0 && r.toLowerCase() === 'websocket' + ); + }; + mn.validateOptions = function (e, t) { + for (var r in e) if (t.indexOf(r) < 0) throw new Error('Unrecognized option: ' + r); + }; + var qve = { + MAX_LENGTH: 67108863, + STATES: ['connecting', 'open', 'closing', 'closed'], + _bindEventListeners: function () { + var e = this; + this.messages.on('error', function () {}), + this.on('message', function (t) { + var r = e.messages; + r.readable && r.emit('data', t.data); + }), + this.on('error', function (t) { + var r = e.messages; + r.readable && r.emit('error', t); + }), + this.on('close', function () { + var t = e.messages; + t.readable && ((t.readable = t.writable = !1), t.emit('end')); + }); + }, + getState: function () { + return this.STATES[this.readyState] || null; + }, + addExtension: function (e) { + return !1; + }, + setHeader: function (e, t) { + return this.readyState > 0 ? !1 : (this._headers.set(e, t), !0); + }, + start: function () { + if (this.readyState !== 0) return !1; + if (!mn.isWebSocket(this._request)) return this._failHandshake(new Error('Not a WebSocket request')); + var e; + try { + e = this._handshakeResponse(); + } catch (t) { + return this._failHandshake(t); + } + return this._write(e), this._stage !== -1 && this._open(), !0; + }, + _failHandshake: function (e) { + var t = new Lve(); + return ( + t.set('Content-Type', 'text/plain'), + t.set('Content-Length', Dve.byteLength(e.message, 'utf8')), + (t = ['HTTP/1.1 400 Bad Request', t.toString(), e.message]), + this._write( + Dve.from( + t.join(`\r +`), + 'utf8' + ) + ), + this._fail('protocol_error', e.message), + !1 + ); + }, + text: function (e) { + return this.frame(e); + }, + binary: function (e) { + return !1; + }, + ping: function () { + return !1; + }, + pong: function () { + return !1; + }, + close: function (e, t) { + return this.readyState !== 1 + ? !1 + : ((this.readyState = 3), this.emit('close', new mn.CloseEvent(null, null)), !0); + }, + _open: function () { + (this.readyState = 1), + this.__queue.forEach(function (e) { + this.frame.apply(this, e); + }, this), + (this.__queue = []), + this.emit('open', new mn.OpenEvent()); + }, + _queue: function (e) { + return this.__queue.push(e), !0; + }, + _write: function (e) { + var t = this.io; + t.readable && t.emit('data', e); + }, + _fail: function (e, t) { + (this.readyState = 2), this.emit('error', new Error(t)), this.close(); + }, + }; + for (VP in qve) mn.prototype[VP] = qve[VP]; + var VP; + mn.ConnectEvent = function () {}; + mn.OpenEvent = function () {}; + mn.CloseEvent = function (e, t) { + (this.code = e), (this.reason = t); + }; + mn.MessageEvent = function (e) { + this.data = e; + }; + mn.PingEvent = function (e) { + this.data = e; + }; + mn.PongEvent = function (e) { + this.data = e; + }; + Mve.exports = mn; +}); +var zve = d((WP) => { + var HP = require('assert'); + WP.HTTPParser = me; + function me(e) { + HP.ok(e === me.REQUEST || e === me.RESPONSE || e === void 0), + e === void 0 || this.initialize(e), + (this.maxHeaderSize = me.maxHeaderSize); + } + me.prototype.initialize = function (e, t) { + HP.ok(e === me.REQUEST || e === me.RESPONSE), + (this.type = e), + (this.state = e + '_LINE'), + (this.info = { headers: [], upgrade: !1 }), + (this.trailers = []), + (this.line = ''), + (this.isChunked = !1), + (this.connection = ''), + (this.headerSize = 0), + (this.body_bytes = null), + (this.isUserCall = !1), + (this.hadError = !1); + }; + me.encoding = 'ascii'; + me.maxHeaderSize = 80 * 1024; + me.REQUEST = 'REQUEST'; + me.RESPONSE = 'RESPONSE'; + var Uve = (me.kOnHeaders = 1), + zP = (me.kOnHeadersComplete = 2), + b8 = (me.kOnBody = 3), + GP = (me.kOnMessageComplete = 4); + me.prototype[Uve] = me.prototype[zP] = me.prototype[b8] = me.prototype[GP] = function () {}; + var $ve = !0; + Object.defineProperty(me, 'kOnExecute', { + get: function () { + return ($ve = !1), 99; + }, + }); + var Bve = + (WP.methods = + me.methods = + [ + 'DELETE', + 'GET', + 'HEAD', + 'POST', + 'PUT', + 'CONNECT', + 'OPTIONS', + 'TRACE', + 'COPY', + 'LOCK', + 'MKCOL', + 'MOVE', + 'PROPFIND', + 'PROPPATCH', + 'SEARCH', + 'UNLOCK', + 'BIND', + 'REBIND', + 'UNBIND', + 'ACL', + 'REPORT', + 'MKACTIVITY', + 'CHECKOUT', + 'MERGE', + 'M-SEARCH', + 'NOTIFY', + 'SUBSCRIBE', + 'UNSUBSCRIBE', + 'PATCH', + 'PURGE', + 'MKCALENDAR', + 'LINK', + 'UNLINK', + 'SOURCE', + ]), + Vve = Bve.indexOf('CONNECT'); + me.prototype.reinitialize = me; + me.prototype.close = me.prototype.pause = me.prototype.resume = me.prototype.free = function () {}; + me.prototype._compatMode0_11 = !1; + me.prototype.getAsyncId = function () { + return 0; + }; + var q1t = { REQUEST_LINE: !0, RESPONSE_LINE: !0, HEADER: !0 }; + me.prototype.execute = function (e, t, r) { + if (!(this instanceof me)) throw new TypeError('not a HTTPParser'); + (t = t || 0), (r = typeof r == 'number' ? r : e.length), (this.chunk = e), (this.offset = t); + var n = (this.end = t + r); + try { + for (; this.offset < n && !this[this.state](); ); + } catch (a) { + if (this.isUserCall) throw a; + return (this.hadError = !0), a; + } + return ( + (this.chunk = null), + (r = this.offset - t), + q1t[this.state] && ((this.headerSize += r), this.headerSize > (this.maxHeaderSize || me.maxHeaderSize)) + ? new Error('max header size exceeded') + : r + ); + }; + var F1t = { REQUEST_LINE: !0, RESPONSE_LINE: !0, BODY_RAW: !0 }; + me.prototype.finish = function () { + if (!this.hadError) { + if (!F1t[this.state]) return new Error('invalid state for EOF'); + this.state === 'BODY_RAW' && this.userCall()(this[GP]()); + } + }; + me.prototype.consume = me.prototype.unconsume = me.prototype.getCurrentBuffer = function () {}; + me.prototype.userCall = function () { + this.isUserCall = !0; + var e = this; + return function (t) { + return (e.isUserCall = !1), t; + }; + }; + me.prototype.nextRequest = function () { + this.userCall()(this[GP]()), this.reinitialize(this.type); + }; + me.prototype.consumeLine = function () { + for (var e = this.end, t = this.chunk, r = this.offset; r < e; r++) + if (t[r] === 10) { + var n = this.line + t.toString(me.encoding, this.offset, r); + return ( + n.charAt(n.length - 1) === '\r' && (n = n.substr(0, n.length - 1)), (this.line = ''), (this.offset = r + 1), n + ); + } + (this.line += t.toString(me.encoding, this.offset, this.end)), (this.offset = this.end); + }; + var L1t = /^([^: \t]+):[ \t]*((?:.*[^ \t])|)/, + M1t = /^[ \t]+(.*[^ \t])/; + me.prototype.parseHeader = function (e, t) { + if (e.indexOf('\r') !== -1) throw _8('HPE_LF_EXPECTED'); + var r = L1t.exec(e), + n = r && r[1]; + if (n) t.push(n), t.push(r[2]); + else { + var a = M1t.exec(e); + a && t.length && (t[t.length - 1] && (t[t.length - 1] += ' '), (t[t.length - 1] += a[1])); + } + }; + var U1t = /^([A-Z-]+) ([^ ]+) HTTP\/(\d)\.(\d)$/; + me.prototype.REQUEST_LINE = function () { + var e = this.consumeLine(); + if (e) { + var t = U1t.exec(e); + if (t === null) throw _8('HPE_INVALID_CONSTANT'); + if (((this.info.method = this._compatMode0_11 ? t[1] : Bve.indexOf(t[1])), this.info.method === -1)) + throw new Error('invalid request method'); + (this.info.url = t[2]), + (this.info.versionMajor = +t[3]), + (this.info.versionMinor = +t[4]), + (this.body_bytes = 0), + (this.state = 'HEADER'); + } + }; + var $1t = /^HTTP\/(\d)\.(\d) (\d{3}) ?(.*)$/; + me.prototype.RESPONSE_LINE = function () { + var e = this.consumeLine(); + if (e) { + var t = $1t.exec(e); + if (t === null) throw _8('HPE_INVALID_CONSTANT'); + (this.info.versionMajor = +t[1]), (this.info.versionMinor = +t[2]); + var r = (this.info.statusCode = +t[3]); + (this.info.statusMessage = t[4]), + (((r / 100) | 0) === 1 || r === 204 || r === 304) && (this.body_bytes = 0), + (this.state = 'HEADER'); + } + }; + me.prototype.shouldKeepAlive = function () { + if (this.info.versionMajor > 0 && this.info.versionMinor > 0) { + if (this.connection.indexOf('close') !== -1) return !1; + } else if (this.connection.indexOf('keep-alive') === -1) return !1; + return !!(this.body_bytes !== null || this.isChunked); + }; + me.prototype.HEADER = function () { + var e = this.consumeLine(); + if (e !== void 0) { + var t = this.info; + if (e) this.parseHeader(e, t.headers); + else { + for (var r = t.headers, n = !1, a, o = !1, s = 0; s < r.length; s += 2) + switch (r[s].toLowerCase()) { + case 'transfer-encoding': + this.isChunked = r[s + 1].toLowerCase() === 'chunked'; + break; + case 'content-length': + if (((a = +r[s + 1]), n)) { + if (a !== this.body_bytes) throw _8('HPE_UNEXPECTED_CONTENT_LENGTH'); + } else (n = !0), (this.body_bytes = a); + break; + case 'connection': + this.connection += r[s + 1].toLowerCase(); + break; + case 'upgrade': + o = !0; + break; + } + this.isChunked && n && ((n = !1), (this.body_bytes = null)), + o && this.connection.indexOf('upgrade') != -1 + ? (t.upgrade = this.type === me.REQUEST || t.statusCode === 101) + : (t.upgrade = t.method === Vve), + this.isChunked && t.upgrade && (this.isChunked = !1), + (t.shouldKeepAlive = this.shouldKeepAlive()); + var l; + if ( + ($ve + ? (l = this.userCall()(this[zP](t))) + : (l = this.userCall()( + this[zP]( + t.versionMajor, + t.versionMinor, + t.headers, + t.method, + t.url, + t.statusCode, + t.statusMessage, + t.upgrade, + t.shouldKeepAlive + ) + )), + l === 2) + ) + return this.nextRequest(), !0; + if (this.isChunked && !l) this.state = 'BODY_CHUNKHEAD'; + else { + if (l || this.body_bytes === 0) return this.nextRequest(), t.upgrade; + this.body_bytes === null ? (this.state = 'BODY_RAW') : (this.state = 'BODY_SIZED'); + } + } + } + }; + me.prototype.BODY_CHUNKHEAD = function () { + var e = this.consumeLine(); + e !== void 0 && + ((this.body_bytes = parseInt(e, 16)), + this.body_bytes ? (this.state = 'BODY_CHUNK') : (this.state = 'BODY_CHUNKTRAILERS')); + }; + me.prototype.BODY_CHUNK = function () { + var e = Math.min(this.end - this.offset, this.body_bytes); + this.userCall()(this[b8](this.chunk, this.offset, e)), + (this.offset += e), + (this.body_bytes -= e), + this.body_bytes || (this.state = 'BODY_CHUNKEMPTYLINE'); + }; + me.prototype.BODY_CHUNKEMPTYLINE = function () { + var e = this.consumeLine(); + e !== void 0 && (HP.equal(e, ''), (this.state = 'BODY_CHUNKHEAD')); + }; + me.prototype.BODY_CHUNKTRAILERS = function () { + var e = this.consumeLine(); + e !== void 0 && + (e + ? this.parseHeader(e, this.trailers) + : (this.trailers.length && this.userCall()(this[Uve](this.trailers, '')), this.nextRequest())); + }; + me.prototype.BODY_RAW = function () { + var e = this.end - this.offset; + this.userCall()(this[b8](this.chunk, this.offset, e)), (this.offset = this.end); + }; + me.prototype.BODY_SIZED = function () { + var e = Math.min(this.end - this.offset, this.body_bytes); + this.userCall()(this[b8](this.chunk, this.offset, e)), + (this.offset += e), + (this.body_bytes -= e), + this.body_bytes || this.nextRequest(); + }; + ['Headers', 'HeadersComplete', 'Body', 'MessageComplete'].forEach(function (e) { + var t = me['kOn' + e]; + Object.defineProperty(me.prototype, 'on' + e, { + get: function () { + return this[t]; + }, + set: function (r) { + return (this._compatMode0_11 = !0), (Vve = 'CONNECT'), (this[t] = r); + }, + }); + }); + function _8(e) { + var t = new Error('Parse Error'); + return (t.code = e), t; + } +}); +var S8 = d((sYt, Gve) => { + 'use strict'; + var w8 = zve().HTTPParser, + B1t = ii().Buffer, + V1t = { request: w8.REQUEST || 'request', response: w8.RESPONSE || 'response' }, + hn = function (e) { + (this._type = e), (this._parser = new w8(V1t[e])), (this._complete = !1), (this.headers = {}); + var t = null, + r = this; + (this._parser.onHeaderField = function (n, a, o) { + t = n.toString('utf8', a, a + o).toLowerCase(); + }), + (this._parser.onHeaderValue = function (n, a, o) { + var s = n.toString('utf8', a, a + o); + r.headers.hasOwnProperty(t) ? (r.headers[t] += ', ' + s) : (r.headers[t] = s); + }), + (this._parser.onHeadersComplete = this._parser[w8.kOnHeadersComplete] = + function (n, a, o, s, l, u) { + var p = arguments[0]; + if ( + (typeof p == 'object' && ((s = p.method), (l = p.url), (u = p.statusCode), (o = p.headers)), + (r.method = typeof s == 'number' ? hn.METHODS[s] : s), + (r.statusCode = u), + (r.url = l), + !!o) + ) { + for (var c = 0, f = o.length, h, m; c < f; c += 2) + (h = o[c].toLowerCase()), + (m = o[c + 1]), + r.headers.hasOwnProperty(h) ? (r.headers[h] += ', ' + m) : (r.headers[h] = m); + r._complete = !0; + } + }); + }; + hn.METHODS = { + 0: 'DELETE', + 1: 'GET', + 2: 'HEAD', + 3: 'POST', + 4: 'PUT', + 5: 'CONNECT', + 6: 'OPTIONS', + 7: 'TRACE', + 8: 'COPY', + 9: 'LOCK', + 10: 'MKCOL', + 11: 'MOVE', + 12: 'PROPFIND', + 13: 'PROPPATCH', + 14: 'SEARCH', + 15: 'UNLOCK', + 16: 'BIND', + 17: 'REBIND', + 18: 'UNBIND', + 19: 'ACL', + 20: 'REPORT', + 21: 'MKACTIVITY', + 22: 'CHECKOUT', + 23: 'MERGE', + 24: 'M-SEARCH', + 25: 'NOTIFY', + 26: 'SUBSCRIBE', + 27: 'UNSUBSCRIBE', + 28: 'PATCH', + 29: 'PURGE', + 30: 'MKCALENDAR', + 31: 'LINK', + 32: 'UNLINK', + }; + var Hve = process.version + ? process.version.match(/[0-9]+/g).map(function (e) { + return parseInt(e, 10); + }) + : []; + Hve[0] === 0 && + Hve[1] === 12 && + ((hn.METHODS[16] = 'REPORT'), + (hn.METHODS[17] = 'MKACTIVITY'), + (hn.METHODS[18] = 'CHECKOUT'), + (hn.METHODS[19] = 'MERGE'), + (hn.METHODS[20] = 'M-SEARCH'), + (hn.METHODS[21] = 'NOTIFY'), + (hn.METHODS[22] = 'SUBSCRIBE'), + (hn.METHODS[23] = 'UNSUBSCRIBE'), + (hn.METHODS[24] = 'PATCH'), + (hn.METHODS[25] = 'PURGE')); + hn.prototype.isComplete = function () { + return this._complete; + }; + hn.prototype.parse = function (e) { + var t = this._parser.execute(e, 0, e.length); + if (typeof t != 'number') { + (this.error = t), (this._complete = !0); + return; + } + this._complete && (this.body = t < e.length ? e.slice(t) : B1t.alloc(0)); + }; + Gve.exports = hn; +}); +var Xve = d((lYt, Kve) => { + 'use strict'; + var KP = /([!#\$%&'\*\+\-\.\^_`\|~0-9A-Za-z]+)/, + z1t = /([^!#\$%&'\*\+\-\.\^_`\|~0-9A-Za-z])/g, + H1t = /"((?:\\[\x00-\x7f]|[^\x00-\x08\x0a-\x1f\x7f"\\])*)"/, + XP = new RegExp(KP.source + '(?:=(?:' + KP.source + '|' + H1t.source + '))?'), + JP = new RegExp(KP.source + '(?: *; *' + XP.source + ')*', 'g'), + G1t = new RegExp('^' + JP.source + '(?: *, *' + JP.source + ')*$'), + W1t = /^-?(0|[1-9][0-9]*)(\.[0-9]+)?$/, + Wve = Object.prototype.hasOwnProperty, + K1t = { + parseHeader: function (e) { + var t = new By(); + if (e === '' || e === void 0) return t; + if (!G1t.test(e)) throw new SyntaxError('Invalid Sec-WebSocket-Extensions header: ' + e); + var r = e.match(JP); + return ( + r.forEach(function (n) { + var a = n.match(new RegExp(XP.source, 'g')), + o = a.shift(), + s = {}; + a.forEach(function (l) { + var u = l.match(XP), + p = u[1], + c; + u[2] !== void 0 ? (c = u[2]) : u[3] !== void 0 ? (c = u[3].replace(/\\/g, '')) : (c = !0), + W1t.test(c) && (c = parseFloat(c)), + Wve.call(s, p) ? ((s[p] = [].concat(s[p])), s[p].push(c)) : (s[p] = c); + }, this), + t.push(o, s); + }, this), + t + ); + }, + serializeParams: function (e, t) { + var r = [], + n = function (o, s) { + s instanceof Array + ? s.forEach(function (l) { + n(o, l); + }) + : s === !0 + ? r.push(o) + : typeof s == 'number' + ? r.push(o + '=' + s) + : z1t.test(s) + ? r.push(o + '="' + s.replace(/"/g, '\\"') + '"') + : r.push(o + '=' + s); + }; + for (var a in t) n(a, t[a]); + return [e].concat(r).join('; '); + }, + }, + By = function () { + (this._byName = {}), (this._inOrder = []); + }; + By.prototype.push = function (e, t) { + Wve.call(this._byName, e) || (this._byName[e] = []), + this._byName[e].push(t), + this._inOrder.push({ name: e, params: t }); + }; + By.prototype.eachOffer = function (e, t) { + for (var r = this._inOrder, n = 0, a = r.length; n < a; n++) e.call(t, r[n].name, r[n].params); + }; + By.prototype.byName = function (e) { + return this._byName[e] || []; + }; + By.prototype.toArray = function () { + return this._inOrder.slice(); + }; + Kve.exports = K1t; +}); +var YP = d((uYt, Jve) => { + 'use strict'; + var Vy = function (e) { + (this._bufferSize = e), this.clear(); + }; + Vy.prototype.clear = function () { + (this._buffer = new Array(this._bufferSize)), + (this._ringOffset = 0), + (this._ringSize = this._bufferSize), + (this._head = 0), + (this._tail = 0), + (this.length = 0); + }; + Vy.prototype.push = function (e) { + var t = !1, + r = !1; + this._ringSize < this._bufferSize + ? (t = this._tail === 0) + : this._ringOffset === this._ringSize && ((t = !0), (r = this._tail === 0)), + t && + ((this._tail = this._bufferSize), + (this._buffer = this._buffer.concat(new Array(this._bufferSize))), + (this._bufferSize = this._buffer.length), + r && (this._ringSize = this._bufferSize)), + (this._buffer[this._tail] = e), + (this.length += 1), + this._tail < this._ringSize && (this._ringOffset += 1), + (this._tail = (this._tail + 1) % this._bufferSize); + }; + Vy.prototype.peek = function () { + if (this.length !== 0) return this._buffer[this._head]; + }; + Vy.prototype.shift = function () { + if (this.length !== 0) { + var e = this._buffer[this._head]; + return ( + (this._buffer[this._head] = void 0), + (this.length -= 1), + (this._ringOffset -= 1), + this._ringOffset === 0 && this.length > 0 + ? ((this._head = this._ringSize), (this._ringOffset = this.length), (this._ringSize = this._bufferSize)) + : (this._head = (this._head + 1) % this._ringSize), + e + ); + } + }; + Jve.exports = Vy; +}); +var Qve = d((pYt, Yve) => { + 'use strict'; + var X1t = YP(), + zh = function (e, t) { + (this._session = e), + (this._method = t), + (this._queue = new X1t(zh.QUEUE_SIZE)), + (this._stopped = !1), + (this.pending = 0); + }; + zh.QUEUE_SIZE = 8; + zh.prototype.call = function (e, t, r, n) { + if (!this._stopped) { + var a = { error: e, message: t, callback: r, context: n, done: !1 }, + o = !1, + s = this; + if ((this._queue.push(a), a.error)) return (a.done = !0), this._stop(), this._flushQueue(); + var l = function (u, p) { + o ^ (o = !0) && + (u ? (s._stop(), (a.error = u), (a.message = null)) : (a.message = p), (a.done = !0), s._flushQueue()); + }; + try { + this._session[this._method](t, l); + } catch (u) { + l(u); + } + } + }; + zh.prototype._stop = function () { + (this.pending = this._queue.length), (this._stopped = !0); + }; + zh.prototype._flushQueue = function () { + for (var e = this._queue, t; e.length > 0 && e.peek().done; ) + (t = e.shift()), + t.error ? ((this.pending = 0), e.clear()) : (this.pending -= 1), + t.callback.call(t.context, t.error, t.message); + }; + Yve.exports = zh; +}); +var QP = d((cYt, Zve) => { + 'use strict'; + var J1t = YP(), + Td = function () { + (this._complete = !1), (this._callbacks = new J1t(Td.QUEUE_SIZE)); + }; + Td.QUEUE_SIZE = 4; + Td.all = function (e) { + var t = new Td(), + r = e.length, + n = r; + for (r === 0 && t.done(); n--; ) + e[n].then(function () { + (r -= 1), r === 0 && t.done(); + }); + return t; + }; + Td.prototype.then = function (e) { + this._complete ? e() : this._callbacks.push(e); + }; + Td.prototype.done = function () { + this._complete = !0; + for (var e = this._callbacks, t; (t = e.shift()); ) t(); + }; + Zve.exports = Td; +}); +var rye = d((dYt, tye) => { + 'use strict'; + var eye = Qve(), + Y1t = QP(), + Cd = function (e) { + (this._ext = e[0]), + (this._session = e[1]), + (this._functors = { + incoming: new eye(this._session, 'processIncomingMessage'), + outgoing: new eye(this._session, 'processOutgoingMessage'), + }); + }; + Cd.prototype.pending = function (e) { + var t = this._functors[e]; + t._stopped || (t.pending += 1); + }; + Cd.prototype.incoming = function (e, t, r, n) { + this._exec('incoming', e, t, r, n); + }; + Cd.prototype.outgoing = function (e, t, r, n) { + this._exec('outgoing', e, t, r, n); + }; + Cd.prototype.close = function () { + return (this._closed = this._closed || new Y1t()), this._doClose(), this._closed; + }; + Cd.prototype._exec = function (e, t, r, n, a) { + this._functors[e].call( + t, + r, + function (o, s) { + o && (o.message = this._ext.name + ': ' + o.message), n.call(a, o, s), this._doClose(); + }, + this + ); + }; + Cd.prototype._doClose = function () { + var e = this._functors.incoming, + t = this._functors.outgoing; + !this._closed || + e.pending + t.pending !== 0 || + (this._session && this._session.close(), (this._session = null), this._closed.done()); + }; + tye.exports = Cd; +}); +var nye = d((fYt, iye) => { + 'use strict'; + var Q1t = rye(), + Z1t = QP(), + zy = function (e) { + (this._cells = e.map(function (t) { + return new Q1t(t); + })), + (this._stopped = { incoming: !1, outgoing: !1 }); + }; + zy.prototype.processIncomingMessage = function (e, t, r) { + this._stopped.incoming || this._loop('incoming', this._cells.length - 1, -1, -1, e, t, r); + }; + zy.prototype.processOutgoingMessage = function (e, t, r) { + this._stopped.outgoing || this._loop('outgoing', 0, this._cells.length, 1, e, t, r); + }; + zy.prototype.close = function (e, t) { + this._stopped = { incoming: !0, outgoing: !0 }; + var r = this._cells.map(function (n) { + return n.close(); + }); + e && + Z1t.all(r).then(function () { + e.call(t); + }); + }; + zy.prototype._loop = function (e, t, r, n, a, o, s) { + for (var l = this._cells, u = l.length, p = this; u--; ) l[u].pending(e); + var c = function (f, h, m) { + if (f === r) return o.call(s, h, m); + l[f][e](h, m, function (v, y) { + v && (p._stopped[e] = !0), c(f + n, v, y); + }); + }; + c(t, null, a); + }; + iye.exports = zy; +}); +var lye = d((mYt, sye) => { + 'use strict'; + var Hy = Xve(), + aye = nye(), + E8 = function () { + (this._rsv1 = this._rsv2 = this._rsv3 = null), + (this._byName = {}), + (this._inOrder = []), + (this._sessions = []), + (this._index = {}); + }; + E8.MESSAGE_OPCODES = [1, 2]; + var oye = { + add: function (e) { + if (typeof e.name != 'string') throw new TypeError('extension.name must be a string'); + if (e.type !== 'permessage') throw new TypeError('extension.type must be "permessage"'); + if (typeof e.rsv1 != 'boolean') throw new TypeError('extension.rsv1 must be true or false'); + if (typeof e.rsv2 != 'boolean') throw new TypeError('extension.rsv2 must be true or false'); + if (typeof e.rsv3 != 'boolean') throw new TypeError('extension.rsv3 must be true or false'); + if (this._byName.hasOwnProperty(e.name)) + throw new TypeError('An extension with name "' + e.name + '" is already registered'); + (this._byName[e.name] = e), this._inOrder.push(e); + }, + generateOffer: function () { + var e = [], + t = [], + r = {}; + return ( + this._inOrder.forEach(function (n) { + var a = n.createClientSession(); + if (a) { + var o = [n, a]; + e.push(o), (r[n.name] = o); + var s = a.generateOffer(); + (s = s ? [].concat(s) : []), + s.forEach(function (l) { + t.push(Hy.serializeParams(n.name, l)); + }, this); + } + }, this), + (this._sessions = e), + (this._index = r), + t.length > 0 ? t.join(', ') : null + ); + }, + activate: function (e) { + var t = Hy.parseHeader(e), + r = []; + t.eachOffer(function (n, a) { + var o = this._index[n]; + if (!o) throw new Error('Server sent an extension response for unknown extension "' + n + '"'); + var s = o[0], + l = o[1], + u = this._reserved(s); + if (u) + throw new Error( + 'Server sent two extension responses that use the RSV' + u[0] + ' bit: "' + u[1] + '" and "' + s.name + '"' + ); + if (l.activate(a) !== !0) + throw new Error('Server sent unacceptable extension parameters: ' + Hy.serializeParams(n, a)); + this._reserve(s), r.push(o); + }, this), + (this._sessions = r), + (this._pipeline = new aye(r)); + }, + generateResponse: function (e) { + var t = [], + r = [], + n = Hy.parseHeader(e); + return ( + this._inOrder.forEach(function (a) { + var o = n.byName(a.name); + if (!(o.length === 0 || this._reserved(a))) { + var s = a.createServerSession(o); + s && (this._reserve(a), t.push([a, s]), r.push(Hy.serializeParams(a.name, s.generateResponse()))); + } + }, this), + (this._sessions = t), + (this._pipeline = new aye(t)), + r.length > 0 ? r.join(', ') : null + ); + }, + validFrameRsv: function (e) { + var t = { rsv1: !1, rsv2: !1, rsv3: !1 }, + r; + if (E8.MESSAGE_OPCODES.indexOf(e.opcode) >= 0) + for (var n = 0, a = this._sessions.length; n < a; n++) + (r = this._sessions[n][0]), + (t.rsv1 = t.rsv1 || r.rsv1), + (t.rsv2 = t.rsv2 || r.rsv2), + (t.rsv3 = t.rsv3 || r.rsv3); + return (t.rsv1 || !e.rsv1) && (t.rsv2 || !e.rsv2) && (t.rsv3 || !e.rsv3); + }, + processIncomingMessage: function (e, t, r) { + this._pipeline.processIncomingMessage(e, t, r); + }, + processOutgoingMessage: function (e, t, r) { + this._pipeline.processOutgoingMessage(e, t, r); + }, + close: function (e, t) { + if (!this._pipeline) return e.call(t); + this._pipeline.close(e, t); + }, + _reserve: function (e) { + (this._rsv1 = this._rsv1 || (e.rsv1 && e.name)), + (this._rsv2 = this._rsv2 || (e.rsv2 && e.name)), + (this._rsv3 = this._rsv3 || (e.rsv3 && e.name)); + }, + _reserved: function (e) { + return this._rsv1 && e.rsv1 + ? [1, this._rsv1] + : this._rsv2 && e.rsv2 + ? [2, this._rsv2] + : this._rsv3 && e.rsv3 + ? [3, this._rsv3] + : !1; + }, + }; + for (ZP in oye) E8.prototype[ZP] = oye[ZP]; + var ZP; + sye.exports = E8; +}); +var dye = d((hYt, cye) => { + 'use strict'; + var pye = function () {}, + uye = { + final: !1, + rsv1: !1, + rsv2: !1, + rsv3: !1, + opcode: null, + masked: !1, + maskingKey: null, + lengthBytes: 1, + length: 0, + payload: null, + }; + for (eR in uye) pye.prototype[eR] = uye[eR]; + var eR; + cye.exports = pye; +}); +var gye = d((gYt, hye) => { + 'use strict'; + var e0t = ii().Buffer, + mye = function () { + (this.rsv1 = !1), + (this.rsv2 = !1), + (this.rsv3 = !1), + (this.opcode = null), + (this.length = 0), + (this._chunks = []); + }, + fye = { + read: function () { + return (this.data = this.data || e0t.concat(this._chunks, this.length)); + }, + pushFrame: function (e) { + (this.rsv1 = this.rsv1 || e.rsv1), + (this.rsv2 = this.rsv2 || e.rsv2), + (this.rsv3 = this.rsv3 || e.rsv3), + this.opcode === null && (this.opcode = e.opcode), + this._chunks.push(e.payload), + (this.length += e.length); + }, + }; + for (tR in fye) mye.prototype[tR] = fye[tR]; + var tR; + hye.exports = mye; +}); +var iR = d((vYt, wye) => { + 'use strict'; + var Gy = ii().Buffer, + _ye = require('crypto'), + t0t = require('util'), + r0t = lye(), + kd = Op(), + vye = dye(), + yye = gye(), + fa = function (e, t, r) { + if ( + (kd.apply(this, arguments), + (this._extensions = new r0t()), + (this._stage = 0), + (this._masking = this._options.masking), + (this._protocols = this._options.protocols || []), + (this._requireMasking = this._options.requireMasking), + (this._pingCallbacks = {}), + typeof this._protocols == 'string' && (this._protocols = this._protocols.split(/ *, */)), + !!this._request) + ) { + var n = this._request.headers['sec-websocket-protocol'], + a = this._protocols; + n !== void 0 && + (typeof n == 'string' && (n = n.split(/ *, */)), + (this.protocol = n.filter(function (o) { + return a.indexOf(o) >= 0; + })[0])), + (this.version = 'hybi-' + fa.VERSION); + } + }; + t0t.inherits(fa, kd); + fa.VERSION = '13'; + fa.mask = function (e, t, r) { + if (!t || t.length === 0) return e; + r = r || 0; + for (var n = 0, a = e.length - r; n < a; n++) e[r + n] = e[r + n] ^ t[n % 4]; + return e; + }; + fa.generateAccept = function (e) { + var t = _ye.createHash('sha1'); + return t.update(e + fa.GUID), t.digest('base64'); + }; + fa.GUID = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11'; + var bye = { + FIN: 128, + MASK: 128, + RSV1: 64, + RSV2: 32, + RSV3: 16, + OPCODE: 15, + LENGTH: 127, + OPCODES: { continuation: 0, text: 1, binary: 2, close: 8, ping: 9, pong: 10 }, + OPCODE_CODES: [0, 1, 2, 8, 9, 10], + MESSAGE_OPCODES: [0, 1, 2], + OPENING_OPCODES: [1, 2], + ERRORS: { + normal_closure: 1e3, + going_away: 1001, + protocol_error: 1002, + unacceptable: 1003, + encoding_error: 1007, + policy_violation: 1008, + too_large: 1009, + extension_error: 1010, + unexpected_condition: 1011, + }, + ERROR_CODES: [1e3, 1001, 1002, 1003, 1007, 1008, 1009, 1010, 1011], + DEFAULT_ERROR_CODE: 1e3, + MIN_RESERVED_ERROR: 3e3, + MAX_RESERVED_ERROR: 4999, + UTF8_MATCH: + /^([\x00-\x7F]|[\xC2-\xDF][\x80-\xBF]|\xE0[\xA0-\xBF][\x80-\xBF]|[\xE1-\xEC\xEE\xEF][\x80-\xBF]{2}|\xED[\x80-\x9F][\x80-\xBF]|\xF0[\x90-\xBF][\x80-\xBF]{2}|[\xF1-\xF3][\x80-\xBF]{3}|\xF4[\x80-\x8F][\x80-\xBF]{2})*$/, + addExtension: function (e) { + return this._extensions.add(e), !0; + }, + parse: function (e) { + this._reader.put(e); + for (var t = !0; t; ) + switch (this._stage) { + case 0: + (t = this._reader.read(1)), t && this._parseOpcode(t[0]); + break; + case 1: + (t = this._reader.read(1)), t && this._parseLength(t[0]); + break; + case 2: + (t = this._reader.read(this._frame.lengthBytes)), t && this._parseExtendedLength(t); + break; + case 3: + (t = this._reader.read(4)), t && ((this._stage = 4), (this._frame.maskingKey = t)); + break; + case 4: + (t = this._reader.read(this._frame.length)), t && ((this._stage = 0), this._emitFrame(t)); + break; + default: + t = null; + } + }, + text: function (e) { + return this.readyState > 1 ? !1 : this.frame(e, 'text'); + }, + binary: function (e) { + return this.readyState > 1 ? !1 : this.frame(e, 'binary'); + }, + ping: function (e, t) { + return this.readyState > 1 ? !1 : ((e = e || ''), t && (this._pingCallbacks[e] = t), this.frame(e, 'ping')); + }, + pong: function (e) { + return this.readyState > 1 ? !1 : ((e = e || ''), this.frame(e, 'pong')); + }, + close: function (e, t) { + return ( + (e = e || ''), + (t = t || this.ERRORS.normal_closure), + this.readyState <= 0 + ? ((this.readyState = 3), this.emit('close', new kd.CloseEvent(t, e)), !0) + : this.readyState === 1 + ? ((this.readyState = 2), + this._extensions.close(function () { + this.frame(e, 'close', t); + }, this), + !0) + : !1 + ); + }, + frame: function (e, t, r) { + if (this.readyState <= 0) return this._queue([e, t, r]); + if (this.readyState > 2) return !1; + e instanceof Array && (e = Gy.from(e)), typeof e == 'number' && (e = e.toString()); + var n = new yye(), + a = typeof e == 'string', + o, + s; + (n.rsv1 = n.rsv2 = n.rsv3 = !1), + (n.opcode = this.OPCODES[t || (a ? 'text' : 'binary')]), + (o = a ? Gy.from(e, 'utf8') : e), + r && ((s = o), (o = Gy.allocUnsafe(2 + s.length)), o.writeUInt16BE(r, 0), s.copy(o, 2)), + (n.data = o); + var l = function (u) { + var p = new vye(); + (p.final = !0), + (p.rsv1 = u.rsv1), + (p.rsv2 = u.rsv2), + (p.rsv3 = u.rsv3), + (p.opcode = u.opcode), + (p.masked = !!this._masking), + (p.length = u.data.length), + (p.payload = u.data), + p.masked && (p.maskingKey = _ye.randomBytes(4)), + this._sendFrame(p); + }; + return ( + this.MESSAGE_OPCODES.indexOf(n.opcode) >= 0 + ? this._extensions.processOutgoingMessage( + n, + function (u, p) { + if (u) return this._fail('extension_error', u.message); + l.call(this, p); + }, + this + ) + : l.call(this, n), + !0 + ); + }, + _sendFrame: function (e) { + var t = e.length, + r = t <= 125 ? 2 : t <= 65535 ? 4 : 10, + n = r + (e.masked ? 4 : 0), + a = Gy.allocUnsafe(n + t), + o = e.masked ? this.MASK : 0; + (a[0] = + (e.final ? this.FIN : 0) | + (e.rsv1 ? this.RSV1 : 0) | + (e.rsv2 ? this.RSV2 : 0) | + (e.rsv3 ? this.RSV3 : 0) | + e.opcode), + t <= 125 + ? (a[1] = o | t) + : t <= 65535 + ? ((a[1] = o | 126), a.writeUInt16BE(t, 2)) + : ((a[1] = o | 127), a.writeUInt32BE(Math.floor(t / 4294967296), 2), a.writeUInt32BE(t % 4294967296, 6)), + e.payload.copy(a, n), + e.masked && (e.maskingKey.copy(a, r), fa.mask(a, e.maskingKey, n)), + this._write(a); + }, + _handshakeResponse: function () { + var e = this._request.headers['sec-websocket-key'], + t = this._request.headers['sec-websocket-version']; + if (t !== fa.VERSION) throw new Error('Unsupported WebSocket version: ' + t); + if (typeof e != 'string') throw new Error('Missing handshake request header: Sec-WebSocket-Key'); + this._headers.set('Upgrade', 'websocket'), + this._headers.set('Connection', 'Upgrade'), + this._headers.set('Sec-WebSocket-Accept', fa.generateAccept(e)), + this.protocol && this._headers.set('Sec-WebSocket-Protocol', this.protocol); + var r = this._extensions.generateResponse(this._request.headers['sec-websocket-extensions']); + r && this._headers.set('Sec-WebSocket-Extensions', r); + var n = 'HTTP/1.1 101 Switching Protocols', + a = [n, this._headers.toString(), '']; + return Gy.from( + a.join(`\r +`), + 'utf8' + ); + }, + _shutdown: function (e, t, r) { + delete this._frame, delete this._message, (this._stage = 5); + var n = this.readyState === 1; + (this.readyState = 2), + this._extensions.close(function () { + n && this.frame(t, 'close', e), + (this.readyState = 3), + r && this.emit('error', new Error(t)), + this.emit('close', new kd.CloseEvent(e, t)); + }, this); + }, + _fail: function (e, t) { + this.readyState > 1 || this._shutdown(this.ERRORS[e], t, !0); + }, + _parseOpcode: function (e) { + var t = [this.RSV1, this.RSV2, this.RSV3].map(function (n) { + return (e & n) === n; + }), + r = (this._frame = new vye()); + if ( + ((r.final = (e & this.FIN) === this.FIN), + (r.rsv1 = t[0]), + (r.rsv2 = t[1]), + (r.rsv3 = t[2]), + (r.opcode = e & this.OPCODE), + (this._stage = 1), + !this._extensions.validFrameRsv(r)) + ) + return this._fail( + 'protocol_error', + 'One or more reserved bits are on: reserved1 = ' + + (r.rsv1 ? 1 : 0) + + ', reserved2 = ' + + (r.rsv2 ? 1 : 0) + + ', reserved3 = ' + + (r.rsv3 ? 1 : 0) + ); + if (this.OPCODE_CODES.indexOf(r.opcode) < 0) + return this._fail('protocol_error', 'Unrecognized frame opcode: ' + r.opcode); + if (this.MESSAGE_OPCODES.indexOf(r.opcode) < 0 && !r.final) + return this._fail('protocol_error', 'Received fragmented control frame: opcode = ' + r.opcode); + if (this._message && this.OPENING_OPCODES.indexOf(r.opcode) >= 0) + return this._fail('protocol_error', 'Received new data frame but previous continuous frame is unfinished'); + }, + _parseLength: function (e) { + var t = this._frame; + if ( + ((t.masked = (e & this.MASK) === this.MASK), (t.length = e & this.LENGTH), t.length >= 0 && t.length <= 125) + ) { + if (((this._stage = t.masked ? 3 : 4), !this._checkFrameLength())) return; + } else (this._stage = 2), (t.lengthBytes = t.length === 126 ? 2 : 8); + if (this._requireMasking && !t.masked) + return this._fail('unacceptable', 'Received unmasked frame but masking is required'); + }, + _parseExtendedLength: function (e) { + var t = this._frame; + if ( + ((t.length = this._readUInt(e)), + (this._stage = t.masked ? 3 : 4), + this.MESSAGE_OPCODES.indexOf(t.opcode) < 0 && t.length > 125) + ) + return this._fail('protocol_error', 'Received control frame having too long payload: ' + t.length); + this._checkFrameLength(); + }, + _checkFrameLength: function () { + var e = this._message ? this._message.length : 0; + return e + this._frame.length > this._maxLength + ? (this._fail('too_large', 'WebSocket frame length too large'), !1) + : !0; + }, + _emitFrame: function (e) { + var t = this._frame, + r = (t.payload = fa.mask(e, t.maskingKey)), + n = t.opcode, + a, + o, + s, + l, + u; + if ((delete this._frame, n === this.OPCODES.continuation)) { + if (!this._message) return this._fail('protocol_error', 'Received unexpected continuation frame'); + this._message.pushFrame(t); + } + if ( + ((n === this.OPCODES.text || n === this.OPCODES.binary) && + ((this._message = new yye()), this._message.pushFrame(t)), + t.final && this.MESSAGE_OPCODES.indexOf(n) >= 0) + ) + return this._emitMessage(this._message); + n === this.OPCODES.close && + ((o = r.length >= 2 ? r.readUInt16BE(0) : null), + (s = r.length > 2 ? this._encode(r.slice(2)) : null), + r.length !== 0 && + !(o !== null && o >= this.MIN_RESERVED_ERROR && o <= this.MAX_RESERVED_ERROR) && + this.ERROR_CODES.indexOf(o) < 0 && + (o = this.ERRORS.protocol_error), + (r.length > 125 || (r.length > 2 && !s)) && (o = this.ERRORS.protocol_error), + this._shutdown(o || this.DEFAULT_ERROR_CODE, s || '')), + n === this.OPCODES.ping && (this.frame(r, 'pong'), this.emit('ping', new kd.PingEvent(r.toString()))), + n === this.OPCODES.pong && + ((l = this._pingCallbacks), + (a = this._encode(r)), + (u = l[a]), + delete l[a], + u && u(), + this.emit('pong', new kd.PongEvent(r.toString()))); + }, + _emitMessage: function (t) { + var t = this._message; + t.read(), + delete this._message, + this._extensions.processIncomingMessage( + t, + function (r, n) { + if (r) return this._fail('extension_error', r.message); + var a = n.data; + if ((n.opcode === this.OPCODES.text && (a = this._encode(a)), a === null)) + return this._fail('encoding_error', 'Could not decode a text frame as UTF-8'); + this.emit('message', new kd.MessageEvent(a)); + }, + this + ); + }, + _encode: function (e) { + try { + var t = e.toString('binary', 0, e.length); + if (!this.UTF8_MATCH.test(t)) return null; + } catch {} + return e.toString('utf8', 0, e.length); + }, + _readUInt: function (e) { + return e.length === 2 ? e.readUInt16BE(0) : e.readUInt32BE(0) * 4294967296 + e.readUInt32BE(4); + }, + }; + for (rR in bye) fa.prototype[rR] = bye[rR]; + var rR; + wye.exports = fa; +}); +var Tye = d((yYt, Oye) => { + 'use strict'; + var xye = ii().Buffer, + i0t = require('stream').Stream, + Sye = require('url'), + n0t = require('util'), + a0t = Op(), + o0t = g8(), + s0t = S8(), + l0t = { 'ws:': 80, 'wss:': 443 }, + aR = function (e, t, r) { + (this._client = e), + (this._http = new s0t('response')), + (this._origin = typeof e.url == 'object' ? e.url : Sye.parse(e.url)), + (this._url = typeof t == 'object' ? t : Sye.parse(t)), + (this._options = r || {}), + (this._state = 0), + (this.readable = this.writable = !0), + (this._paused = !1), + (this._headers = new o0t()), + this._headers.set('Host', this._origin.host), + this._headers.set('Connection', 'keep-alive'), + this._headers.set('Proxy-Connection', 'keep-alive'); + var n = this._url.auth && xye.from(this._url.auth, 'utf8').toString('base64'); + n && this._headers.set('Proxy-Authorization', 'Basic ' + n); + }; + n0t.inherits(aR, i0t); + var Eye = { + setHeader: function (e, t) { + return this._state !== 0 ? !1 : (this._headers.set(e, t), !0); + }, + start: function () { + if (this._state !== 0) return !1; + this._state = 1; + var e = this._origin, + t = e.port || l0t[e.protocol], + r = 'CONNECT ' + e.hostname + ':' + t + ' HTTP/1.1', + n = [r, this._headers.toString(), '']; + return ( + this.emit( + 'data', + xye.from( + n.join(`\r +`), + 'utf8' + ) + ), + !0 + ); + }, + pause: function () { + this._paused = !0; + }, + resume: function () { + (this._paused = !1), this.emit('drain'); + }, + write: function (e) { + if (!this.writable) return !1; + if ((this._http.parse(e), !this._http.isComplete())) return !this._paused; + if (((this.statusCode = this._http.statusCode), (this.headers = this._http.headers), this.statusCode === 200)) + this.emit('connect', new a0t.ConnectEvent()); + else { + var t = "Can't establish a connection to the server at " + this._origin.href; + this.emit('error', new Error(t)); + } + return this.end(), !this._paused; + }, + end: function (e) { + this.writable && + (e !== void 0 && this.write(e), (this.readable = this.writable = !1), this.emit('close'), this.emit('end')); + }, + destroy: function () { + this.end(); + }, + }; + for (nR in Eye) aR.prototype[nR] = Eye[nR]; + var nR; + Oye.exports = aR; +}); +var Iye = d((bYt, Aye) => { + 'use strict'; + var kye = ii().Buffer, + u0t = require('crypto'), + p0t = require('url'), + c0t = require('util'), + d0t = S8(), + f0t = Op(), + Hh = iR(), + m0t = Tye(), + Wy = function (e, t) { + (this.version = 'hybi-' + Hh.VERSION), + Hh.call(this, null, e, t), + (this.readyState = -1), + (this._key = Wy.generateKey()), + (this._accept = Hh.generateAccept(this._key)), + (this._http = new d0t('response')); + var r = p0t.parse(this.url), + n = r.auth && kye.from(r.auth, 'utf8').toString('base64'); + if (this.VALID_PROTOCOLS.indexOf(r.protocol) < 0) throw new Error(this.url + ' is not a valid WebSocket URL'); + (this._pathname = (r.pathname || '/') + (r.search || '')), + this._headers.set('Host', r.host), + this._headers.set('Upgrade', 'websocket'), + this._headers.set('Connection', 'Upgrade'), + this._headers.set('Sec-WebSocket-Key', this._key), + this._headers.set('Sec-WebSocket-Version', Hh.VERSION), + this._protocols.length > 0 && this._headers.set('Sec-WebSocket-Protocol', this._protocols.join(', ')), + n && this._headers.set('Authorization', 'Basic ' + n); + }; + c0t.inherits(Wy, Hh); + Wy.generateKey = function () { + return u0t.randomBytes(16).toString('base64'); + }; + var Cye = { + VALID_PROTOCOLS: ['ws:', 'wss:'], + proxy: function (e, t) { + return new m0t(this, e, t); + }, + start: function () { + return this.readyState !== -1 ? !1 : (this._write(this._handshakeRequest()), (this.readyState = 0), !0); + }, + parse: function (e) { + if (this.readyState !== 3) { + if (this.readyState > 0) return Hh.prototype.parse.call(this, e); + this._http.parse(e), + this._http.isComplete() && + (this._validateHandshake(), this.readyState !== 3 && (this._open(), this.parse(this._http.body))); + } + }, + _handshakeRequest: function () { + var e = this._extensions.generateOffer(); + e && this._headers.set('Sec-WebSocket-Extensions', e); + var t = 'GET ' + this._pathname + ' HTTP/1.1', + r = [t, this._headers.toString(), '']; + return kye.from( + r.join(`\r +`), + 'utf8' + ); + }, + _failHandshake: function (e) { + (e = 'Error during WebSocket handshake: ' + e), + (this.readyState = 3), + this.emit('error', new Error(e)), + this.emit('close', new f0t.CloseEvent(this.ERRORS.protocol_error, e)); + }, + _validateHandshake: function () { + if (((this.statusCode = this._http.statusCode), (this.headers = this._http.headers), this._http.error)) + return this._failHandshake(this._http.error.message); + if (this._http.statusCode !== 101) + return this._failHandshake('Unexpected response code: ' + this._http.statusCode); + var e = this._http.headers, + t = e.upgrade || '', + r = e.connection || '', + n = e['sec-websocket-accept'] || '', + a = e['sec-websocket-protocol'] || ''; + if (t === '') return this._failHandshake("'Upgrade' header is missing"); + if (t.toLowerCase() !== 'websocket') return this._failHandshake("'Upgrade' header value is not 'WebSocket'"); + if (r === '') return this._failHandshake("'Connection' header is missing"); + if (r.toLowerCase() !== 'upgrade') return this._failHandshake("'Connection' header value is not 'Upgrade'"); + if (n !== this._accept) return this._failHandshake('Sec-WebSocket-Accept mismatch'); + if (((this.protocol = null), a !== '')) { + if (this._protocols.indexOf(a) < 0) return this._failHandshake('Sec-WebSocket-Protocol mismatch'); + this.protocol = a; + } + try { + this._extensions.activate(this.headers['sec-websocket-extensions']); + } catch (o) { + return this._failHandshake(o.message); + } + }, + }; + for (oR in Cye) Wy.prototype[oR] = Cye[oR]; + var oR; + Aye.exports = Wy; +}); +var uR = d((_Yt, Rye) => { + 'use strict'; + var x8 = ii().Buffer, + O8 = Op(), + h0t = require('util'), + lR = function (e, t, r) { + O8.apply(this, arguments), + (this._stage = 0), + (this.version = 'hixie-75'), + this._headers.set('Upgrade', 'WebSocket'), + this._headers.set('Connection', 'Upgrade'), + this._headers.set('WebSocket-Origin', this._request.headers.origin), + this._headers.set('WebSocket-Location', this.url); + }; + h0t.inherits(lR, O8); + var Pye = { + close: function () { + return this.readyState === 3 + ? !1 + : ((this.readyState = 3), this.emit('close', new O8.CloseEvent(null, null)), !0); + }, + parse: function (e) { + this.readyState > 1 || + (this._reader.put(e), + this._reader.eachByte(function (t) { + var r; + switch (this._stage) { + case -1: + this._body.push(t), this._sendHandshakeBody(); + break; + case 0: + this._parseLeadingByte(t); + break; + case 1: + if (((this._length = (t & 127) + 128 * this._length), this._closing && this._length === 0)) + return this.close(); + (t & 128) !== 128 && (this._length === 0 ? (this._stage = 0) : ((this._skipped = 0), (this._stage = 2))); + break; + case 2: + if (t === 255) + (this._stage = 0), + (r = x8.from(this._buffer).toString('utf8', 0, this._buffer.length)), + this.emit('message', new O8.MessageEvent(r)); + else if (this._length) (this._skipped += 1), this._skipped === this._length && (this._stage = 0); + else if ((this._buffer.push(t), this._buffer.length > this._maxLength)) return this.close(); + break; + } + }, this)); + }, + frame: function (e) { + if (this.readyState === 0) return this._queue([e]); + if (this.readyState > 1) return !1; + typeof e != 'string' && (e = e.toString()); + var t = x8.byteLength(e), + r = x8.allocUnsafe(t + 2); + return (r[0] = 0), r.write(e, 1), (r[r.length - 1] = 255), this._write(r), !0; + }, + _handshakeResponse: function () { + var e = 'HTTP/1.1 101 Web Socket Protocol Handshake', + t = [e, this._headers.toString(), '']; + return x8.from( + t.join(`\r +`), + 'utf8' + ); + }, + _parseLeadingByte: function (e) { + (e & 128) === 128 + ? ((this._length = 0), (this._stage = 1)) + : (delete this._length, delete this._skipped, (this._buffer = []), (this._stage = 2)); + }, + }; + for (sR in Pye) lR.prototype[sR] = Pye[sR]; + var sR; + Rye.exports = lR; +}); +var Fye = d((wYt, qye) => { + 'use strict'; + var Ky = ii().Buffer, + g0t = Op(), + T8 = uR(), + v0t = require('crypto'), + y0t = require('util'), + jye = function (e) { + return parseInt((e.match(/[0-9]/g) || []).join(''), 10); + }, + Dye = function (e) { + return (e.match(/ /g) || []).length; + }, + cR = function (e, t, r) { + T8.apply(this, arguments), + (this._stage = -1), + (this._body = []), + (this.version = 'hixie-76'), + this._headers.clear(), + this._headers.set('Upgrade', 'WebSocket'), + this._headers.set('Connection', 'Upgrade'), + this._headers.set('Sec-WebSocket-Origin', this._request.headers.origin), + this._headers.set('Sec-WebSocket-Location', this.url); + }; + y0t.inherits(cR, T8); + var Nye = { + BODY_SIZE: 8, + start: function () { + return T8.prototype.start.call(this) ? ((this._started = !0), this._sendHandshakeBody(), !0) : !1; + }, + close: function () { + return this.readyState === 3 + ? !1 + : (this.readyState === 1 && this._write(Ky.from([255, 0])), + (this.readyState = 3), + this.emit('close', new g0t.CloseEvent(null, null)), + !0); + }, + _handshakeResponse: function () { + var l = this._request.headers, + e = l['sec-websocket-key1'], + t = l['sec-websocket-key2']; + if (!e) throw new Error('Missing required header: Sec-WebSocket-Key1'); + if (!t) throw new Error('Missing required header: Sec-WebSocket-Key2'); + var r = jye(e), + n = Dye(e), + a = jye(t), + o = Dye(t); + if (r % n !== 0 || a % o !== 0) throw new Error('Client sent invalid Sec-WebSocket-Key headers'); + this._keyValues = [r / n, a / o]; + var s = 'HTTP/1.1 101 WebSocket Protocol Handshake', + l = [s, this._headers.toString(), '']; + return Ky.from( + l.join(`\r +`), + 'binary' + ); + }, + _handshakeSignature: function () { + if (this._body.length < this.BODY_SIZE) return null; + var e = v0t.createHash('md5'), + t = Ky.allocUnsafe(8 + this.BODY_SIZE); + return ( + t.writeUInt32BE(this._keyValues[0], 0), + t.writeUInt32BE(this._keyValues[1], 4), + Ky.from(this._body).copy(t, 8, 0, this.BODY_SIZE), + e.update(t), + Ky.from(e.digest('binary'), 'binary') + ); + }, + _sendHandshakeBody: function () { + if (this._started) { + var e = this._handshakeSignature(); + e && + (this._write(e), + (this._stage = 0), + this._open(), + this._body.length > this.BODY_SIZE && this.parse(this._body.slice(this.BODY_SIZE))); + } + }, + _parseLeadingByte: function (e) { + if (e !== 255) return T8.prototype._parseLeadingByte.call(this, e); + (this._closing = !0), (this._length = 0), (this._stage = 1); + }, + }; + for (pR in Nye) cR.prototype[pR] = Nye[pR]; + var pR; + qye.exports = cR; +}); +var Mye = d((SYt, Lye) => { + 'use strict'; + var b0t = require('util'), + _0t = S8(), + mR = Op(), + w0t = uR(), + S0t = Fye(), + E0t = iR(), + Ad = function (e) { + mR.call(this, null, null, e), (this._http = new _0t('request')); + }; + b0t.inherits(Ad, mR); + var fR = { + EVENTS: ['open', 'message', 'error', 'close', 'ping', 'pong'], + _bindEventListeners: function () { + this.messages.on('error', function () {}), this.on('error', function () {}); + }, + parse: function (e) { + if (this._delegate) return this._delegate.parse(e); + if ((this._http.parse(e), !!this._http.isComplete())) { + (this.method = this._http.method), + (this.url = this._http.url), + (this.headers = this._http.headers), + (this.body = this._http.body); + var t = this; + (this._delegate = Ad.http(this, this._options)), + (this._delegate.messages = this.messages), + (this._delegate.io = this.io), + this._open(), + this.EVENTS.forEach(function (r) { + this._delegate.on(r, function (n) { + t.emit(r, n); + }); + }, this), + (this.protocol = this._delegate.protocol), + (this.version = this._delegate.version), + this.parse(this._http.body), + this.emit('connect', new mR.ConnectEvent()); + } + }, + _open: function () { + this.__queue.forEach(function (e) { + this._delegate[e[0]].apply(this._delegate, e[1]); + }, this), + (this.__queue = []); + }, + }; + ['addExtension', 'setHeader', 'start', 'frame', 'text', 'binary', 'ping', 'close'].forEach(function (e) { + fR[e] = function () { + return this._delegate + ? this._delegate[e].apply(this._delegate, arguments) + : (this.__queue.push([e, arguments]), !0); + }; + }); + for (dR in fR) Ad.prototype[dR] = fR[dR]; + var dR; + Ad.isSecureRequest = function (e) { + if ((e.connection && e.connection.authorized !== void 0) || (e.socket && e.socket.secure)) return !0; + var t = e.headers; + return t + ? t.https === 'on' || + t['x-forwarded-ssl'] === 'on' || + t['x-forwarded-scheme'] === 'https' || + t['x-forwarded-proto'] === 'https' + : !1; + }; + Ad.determineUrl = function (e) { + var t = this.isSecureRequest(e) ? 'wss:' : 'ws:'; + return t + '//' + e.headers.host + e.url; + }; + Ad.http = function (e, t) { + (t = t || {}), t.requireMasking === void 0 && (t.requireMasking = !0); + var r = e.headers, + n = r['sec-websocket-version'], + a = r['sec-websocket-key'], + o = r['sec-websocket-key1'], + s = r['sec-websocket-key2'], + l = this.determineUrl(e); + return n || a ? new E0t(e, l, t) : o || s ? new S0t(e, l, t) : new w0t(e, l, t); + }; + Lye.exports = Ad; +}); +var Xy = d((EYt, $ye) => { + 'use strict'; + var Uye = Op(), + x0t = Iye(), + C8 = Mye(), + O0t = { + client: function (e, t) { + return (t = t || {}), t.masking === void 0 && (t.masking = !0), new x0t(e, t); + }, + server: function (e) { + return (e = e || {}), e.requireMasking === void 0 && (e.requireMasking = !0), new C8(e); + }, + http: function () { + return C8.http.apply(C8, arguments); + }, + isSecureRequest: function (e) { + return C8.isSecureRequest(e); + }, + isWebSocket: function (e) { + return Uye.isWebSocket(e); + }, + validateOptions: function (e, t) { + Uye.validateOptions(e, t); + }, + }; + $ye.exports = O0t; +}); +var Jy = d((xYt, Bye) => { + 'use strict'; + var Id = function (e, t) { + this.type = e; + for (var r in t) this[r] = t[r]; + }; + Id.prototype.initEvent = function (e, t, r) { + (this.type = e), (this.bubbles = t), (this.cancelable = r); + }; + Id.prototype.stopPropagation = function () {}; + Id.prototype.preventDefault = function () {}; + Id.CAPTURING_PHASE = 1; + Id.AT_TARGET = 2; + Id.BUBBLING_PHASE = 3; + Bye.exports = Id; +}); +var hR = d((OYt, Vye) => { + 'use strict'; + var T0t = Jy(), + C0t = { + onopen: null, + onmessage: null, + onerror: null, + onclose: null, + addEventListener: function (e, t, r) { + this.on(e, t); + }, + removeEventListener: function (e, t, r) { + this.removeListener(e, t); + }, + dispatchEvent: function (e) { + (e.target = e.currentTarget = this), + (e.eventPhase = T0t.AT_TARGET), + this['on' + e.type] && this['on' + e.type](e), + this.emit(e.type, e); + }, + }; + Vye.exports = C0t; +}); +var A8 = d((TYt, Gye) => { + 'use strict'; + var k0t = require('stream').Stream, + A0t = require('util'), + I0t = Xy(), + zye = hR(), + k8 = Jy(), + er = function (e) { + (e = e || {}), + I0t.validateOptions(e, ['headers', 'extensions', 'maxLength', 'ping', 'proxy', 'tls', 'ca']), + (this.readable = this.writable = !0); + var t = e.headers; + if (t) for (var r in t) this._driver.setHeader(r, t[r]); + var n = e.extensions; + n && [].concat(n).forEach(this._driver.addExtension, this._driver), + (this._ping = e.ping), + (this._pingId = 0), + (this.readyState = er.CONNECTING), + (this.bufferedAmount = 0), + (this.protocol = ''), + (this.url = this._driver.url), + (this.version = this._driver.version); + var a = this; + this._driver.on('open', function (o) { + a._open(); + }), + this._driver.on('message', function (o) { + a._receiveMessage(o.data); + }), + this._driver.on('close', function (o) { + a._beginClose(o.reason, o.code); + }), + this._driver.on('error', function (o) { + a._emitError(o.message); + }), + this.on('error', function () {}), + this._driver.messages.on('drain', function () { + a.emit('drain'); + }), + this._ping && + (this._pingTimer = setInterval(function () { + (a._pingId += 1), a.ping(a._pingId.toString()); + }, this._ping * 1e3)), + this._configureStream(), + this._proxy || (this._stream.pipe(this._driver.io), this._driver.io.pipe(this._stream)); + }; + A0t.inherits(er, k0t); + er.CONNECTING = 0; + er.OPEN = 1; + er.CLOSING = 2; + er.CLOSED = 3; + er.CLOSE_TIMEOUT = 3e4; + var Hye = { + write: function (e) { + return this.send(e); + }, + end: function (e) { + e !== void 0 && this.send(e), this.close(); + }, + pause: function () { + return this._driver.messages.pause(); + }, + resume: function () { + return this._driver.messages.resume(); + }, + send: function (e) { + return this.readyState > er.OPEN ? !1 : (e instanceof Buffer || (e = String(e)), this._driver.messages.write(e)); + }, + ping: function (e, t) { + return this.readyState > er.OPEN ? !1 : this._driver.ping(e, t); + }, + close: function (e, t) { + if ((e === void 0 && (e = 1e3), t === void 0 && (t = ''), e !== 1e3 && (e < 3e3 || e > 4999))) + throw new Error( + "Failed to execute 'close' on WebSocket: The code must be either 1000, or between 3000 and 4999. " + + e + + ' is neither.' + ); + if (this.readyState < er.CLOSING) { + var r = this; + this._closeTimer = setTimeout(function () { + r._beginClose('', 1006); + }, er.CLOSE_TIMEOUT); + } + this.readyState !== er.CLOSED && (this.readyState = er.CLOSING), this._driver.close(t, e); + }, + _configureStream: function () { + var e = this; + this._stream.setTimeout(0), + this._stream.setNoDelay(!0), + ['close', 'end'].forEach(function (t) { + this._stream.on(t, function () { + e._finalizeClose(); + }); + }, this), + this._stream.on('error', function (t) { + e._emitError('Network error: ' + e.url + ': ' + t.message), e._finalizeClose(); + }); + }, + _open: function () { + if (this.readyState === er.CONNECTING) { + (this.readyState = er.OPEN), (this.protocol = this._driver.protocol || ''); + var e = new k8('open'); + e.initEvent('open', !1, !1), this.dispatchEvent(e); + } + }, + _receiveMessage: function (e) { + if (this.readyState > er.OPEN) return !1; + this.readable && this.emit('data', e); + var t = new k8('message', { data: e }); + t.initEvent('message', !1, !1), this.dispatchEvent(t); + }, + _emitError: function (e) { + if (!(this.readyState >= er.CLOSING)) { + var t = new k8('error', { message: e }); + t.initEvent('error', !1, !1), this.dispatchEvent(t); + } + }, + _beginClose: function (e, t) { + this.readyState !== er.CLOSED && + ((this.readyState = er.CLOSING), + (this._closeParams = [e, t]), + this._stream && (this._stream.destroy(), this._stream.readable || this._finalizeClose())); + }, + _finalizeClose: function () { + if (this.readyState !== er.CLOSED) { + (this.readyState = er.CLOSED), + this._closeTimer && clearTimeout(this._closeTimer), + this._pingTimer && clearInterval(this._pingTimer), + this._stream && this._stream.end(), + this.readable && this.emit('end'), + (this.readable = this.writable = !1); + var e = this._closeParams ? this._closeParams[0] : '', + t = this._closeParams ? this._closeParams[1] : 1006, + r = new k8('close', { code: t, reason: e }); + r.initEvent('close', !1, !1), this.dispatchEvent(r); + } + }, + }; + for (gR in Hye) er.prototype[gR] = Hye[gR]; + var gR; + for (vR in zye) er.prototype[vR] = zye[vR]; + var vR; + Gye.exports = er; +}); +var Qye = d((kYt, Yye) => { + 'use strict'; + var P0t = require('util'), + R0t = require('net'), + Wye = require('tls'), + Kye = require('url'), + j0t = Xy(), + Xye = A8(), + CYt = Jy(), + D0t = { 'http:': 80, 'https:': 443, 'ws:': 80, 'wss:': 443 }, + Jye = ['https:', 'wss:'], + I8 = function (e, t, r) { + (r = r || {}), + (this.url = e), + (this._driver = j0t.client(this.url, { maxLength: r.maxLength, protocols: t })), + ['open', 'error'].forEach(function (h) { + this._driver.on(h, function () { + (f.headers = f._driver.headers), (f.statusCode = f._driver.statusCode); + }); + }, this); + var n = r.proxy || {}, + a = Kye.parse(n.origin || this.url), + o = a.port || D0t[a.protocol], + s = Jye.indexOf(a.protocol) >= 0, + l = function () { + f._onConnect(); + }, + u = r.net || {}, + p = r.tls || {}, + c = n.origin ? n.tls || {} : p, + f = this; + (u.host = c.host = a.hostname), + (u.port = c.port = o), + (p.ca = p.ca || r.ca), + (c.servername = c.servername || a.hostname), + (this._stream = s ? Wye.connect(c, l) : R0t.connect(u, l)), + n.origin && this._configureProxy(n, p), + Xye.call(this, r); + }; + P0t.inherits(I8, Xye); + I8.prototype._onConnect = function () { + var e = this._proxy || this._driver; + e.start(); + }; + I8.prototype._configureProxy = function (e, t) { + var r = Kye.parse(this.url), + n = Jye.indexOf(r.protocol) >= 0, + a = this, + o; + if (((this._proxy = this._driver.proxy(e.origin)), e.headers)) + for (o in e.headers) this._proxy.setHeader(o, e.headers[o]); + this._proxy.pipe(this._stream, { end: !1 }), + this._stream.pipe(this._proxy), + this._proxy.on('connect', function () { + if (n) { + var s = { socket: a._stream, servername: r.hostname }; + for (o in t) s[o] = t[o]; + (a._stream = Wye.connect(s)), a._configureStream(); + } + a._driver.io.pipe(a._stream), a._stream.pipe(a._driver.io), a._driver.start(); + }), + this._proxy.on('error', function (s) { + a._driver.emit('error', s); + }); + }; + Yye.exports = I8; +}); +var ibe = d((AYt, rbe) => { + 'use strict'; + var N0t = require('stream').Stream, + q0t = require('util'), + F0t = Xy(), + L0t = g8(), + Gh = A8(), + Zye = hR(), + ebe = Jy(), + Yy = function (e, t, r) { + (this.writable = !0), + (r = r || {}), + (this._stream = t.socket), + (this._ping = r.ping || this.DEFAULT_PING), + (this._retry = r.retry || this.DEFAULT_RETRY); + var n = F0t.isSecureRequest(e) ? 'https:' : 'http:'; + (this.url = n + '//' + e.headers.host + e.url), + (this.lastEventId = e.headers['last-event-id'] || ''), + (this.readyState = Gh.CONNECTING); + var a = new L0t(), + o = this; + if (r.headers) for (var s in r.headers) a.set(s, r.headers[s]); + if (!(!this._stream || !this._stream.writable)) { + process.nextTick(function () { + o._open(); + }), + this._stream.setTimeout(0), + this._stream.setNoDelay(!0); + var l = + `HTTP/1.1 200 OK\r +Content-Type: text/event-stream\r +Cache-Control: no-cache, no-store\r +Connection: close\r +` + + a.toString() + + `\r +retry: ` + + Math.floor(this._retry * 1e3) + + `\r +\r +`; + this._write(l), + this._stream.on('drain', function () { + o.emit('drain'); + }), + this._ping && + (this._pingTimer = setInterval(function () { + o.ping(); + }, this._ping * 1e3)), + ['error', 'end'].forEach(function (u) { + o._stream.on(u, function () { + o.close(); + }); + }); + } + }; + q0t.inherits(Yy, N0t); + Yy.isEventSource = function (e) { + if (e.method !== 'GET') return !1; + var t = (e.headers.accept || '').split(/\s*,\s*/); + return t.indexOf('text/event-stream') >= 0; + }; + var tbe = { + DEFAULT_PING: 10, + DEFAULT_RETRY: 5, + _write: function (e) { + if (!this.writable) return !1; + try { + return this._stream.write(e, 'utf8'); + } catch { + return !1; + } + }, + _open: function () { + if (this.readyState === Gh.CONNECTING) { + this.readyState = Gh.OPEN; + var e = new ebe('open'); + e.initEvent('open', !1, !1), this.dispatchEvent(e); + } + }, + write: function (e) { + return this.send(e); + }, + end: function (e) { + e !== void 0 && this.write(e), this.close(); + }, + send: function (e, t) { + if (this.readyState > Gh.OPEN) return !1; + (e = String(e).replace(/(\r\n|\r|\n)/g, '$1data: ')), (t = t || {}); + var r = ''; + return ( + t.event && + (r += + 'event: ' + + t.event + + `\r +`), + t.id && + (r += + 'id: ' + + t.id + + `\r +`), + (r += + 'data: ' + + e + + `\r +\r +`), + this._write(r) + ); + }, + ping: function () { + return this._write(`:\r +\r +`); + }, + close: function () { + if (this.readyState > Gh.OPEN) return !1; + (this.readyState = Gh.CLOSED), + (this.writable = !1), + this._pingTimer && clearInterval(this._pingTimer), + this._stream && this._stream.end(); + var e = new ebe('close'); + return e.initEvent('close', !1, !1), this.dispatchEvent(e), !0; + }, + }; + for (yR in tbe) Yy.prototype[yR] = tbe[yR]; + var yR; + for (bR in Zye) Yy.prototype[bR] = Zye[bR]; + var bR; + rbe.exports = Yy; +}); +var wR = d((IYt, abe) => { + 'use strict'; + var M0t = require('util'), + _R = Xy(), + nbe = A8(), + Tp = function (e, t, r, n, a) { + (a = a || {}), (this._stream = t), (this._driver = _R.http(e, { maxLength: a.maxLength, protocols: n })); + var o = this; + if (!(!this._stream || !this._stream.writable)) { + if (!this._stream.readable) return this._stream.end(); + var s = function () { + o._stream.removeListener('data', s); + }; + this._stream.on('data', s), + nbe.call(this, a), + process.nextTick(function () { + o._driver.start(), o._driver.io.write(r); + }); + } + }; + M0t.inherits(Tp, nbe); + Tp.isWebSocket = function (e) { + return _R.isWebSocket(e); + }; + Tp.validateOptions = function (e, t) { + _R.validateOptions(e, t); + }; + Tp.WebSocket = Tp; + Tp.Client = Qye(); + Tp.EventSource = ibe(); + abe.exports = Tp; +}); +var sbe = d((PYt, obe) => { + 'use strict'; + var U0t = wR().Client; + obe.exports = { + create: function (e, t, r) { + return new U0t(e, t, r); + }, + }; +}); +var cbe = d((RYt, pbe) => { + 'use strict'; + var $0t = oi(), + B0t = qh(), + V0t = NP(), + z0t = Py(), + lbe = lP(), + H0t = d8(), + ube = ai(), + G0t = Dh(), + W0t = sbe(), + K0t = Lh(), + X0t = Ly(), + Wh = ube( + $0t(X0t, { + UNCONNECTED: 1, + CONNECTING: 2, + CONNECTED: 3, + batching: !1, + isUsable: function (e, t) { + this.callback(function () { + e.call(t, !0); + }), + this.errback(function () { + e.call(t, !1); + }), + this.connect(); + }, + request: function (e) { + this._pending = this._pending || new V0t(); + for (var t = 0, r = e.length; t < r; t++) this._pending.add(e[t]); + var n = this, + a = new B0t(function (o, s) { + n.callback(function (l) { + !l || l.readyState !== 1 || (l.send(G0t(e)), o(l)); + }), + n.connect(); + }); + return { + abort: function () { + a.then(function (o) { + o.close(); + }); + }, + }; + }, + connect: function () { + if (!Wh._unloaded && ((this._state = this._state || this.UNCONNECTED), this._state === this.UNCONNECTED)) { + this._state = this.CONNECTING; + var e = this._createSocket(); + if (!e) return this.setDeferredStatus('failed'); + var t = this; + e.onopen = function () { + e.headers && t._storeCookies(e.headers['set-cookie']), + (t._socket = e), + (t._state = t.CONNECTED), + (t._everConnected = !0), + t.setDeferredStatus('succeeded', e); + }; + var r = !1; + (e.onclose = e.onerror = + function () { + if (!r) { + r = !0; + var n = t._state === t.CONNECTED; + (e.onopen = e.onclose = e.onerror = e.onmessage = null), delete t._socket, (t._state = t.UNCONNECTED); + var a = t._pending ? t._pending.toArray() : []; + delete t._pending, + n || t._everConnected + ? (t.setDeferredStatus('unknown'), t._handleError(a, n)) + : t.setDeferredStatus('failed'); + } + }), + (e.onmessage = function (n) { + var a; + try { + a = JSON.parse(n.data); + } catch {} + if (a) { + a = [].concat(a); + for (var o = 0, s = a.length; o < s; o++) a[o].successful !== void 0 && t._pending.remove(a[o]); + t._receive(a); + } + }); + } + }, + close: function () { + this._socket && this._socket.close(); + }, + _createSocket: function () { + var e = Wh.getSocketUrl(this.endpoint), + t = this._dispatcher.headers, + r = this._dispatcher.wsExtensions, + n = this._getCookies(), + a = this._dispatcher.tls, + o = { extensions: r, headers: t, proxy: this._proxy, tls: a }; + n !== '' && (o.headers.Cookie = n); + try { + return W0t.create(e, [], o); + } catch {} + }, + }), + { + PROTOCOLS: { 'http:': 'ws:', 'https:': 'wss:' }, + create: function (e, t) { + var r = (e.transports.websocket = e.transports.websocket || {}); + return (r[t.href] = r[t.href] || new this(e, t)), r[t.href]; + }, + getSocketUrl: function (e) { + return (e = H0t(e)), (e.protocol = this.PROTOCOLS[e.protocol]), z0t.stringify(e); + }, + isUsable: function (e, t, r, n) { + this.create(e, t).isUsable(r, n); + }, + } + ); + ube(Wh.prototype, K0t); + lbe.Event && + global.onbeforeunload !== void 0 && + lbe.Event.on(global, 'beforeunload', function () { + Wh._unloaded === void 0 && (Wh._unloaded = !0); + }); + pbe.exports = Wh; +}); +var hbe = d((Kh) => { + 'use strict'; + var jYt = require('net'), + J0t = require('tls'), + SR = require('http'), + dbe = require('https'), + Y0t = require('events'), + Q0t = require('assert'), + Z0t = require('util'), + evt = ii().Buffer; + Kh.httpOverHttp = tvt; + Kh.httpsOverHttp = rvt; + Kh.httpOverHttps = ivt; + Kh.httpsOverHttps = nvt; + function tvt(e) { + var t = new Fs(e); + return (t.request = SR.request), t; + } + function rvt(e) { + var t = new Fs(e); + return (t.request = SR.request), (t.createSocket = fbe), (t.defaultPort = 443), t; + } + function ivt(e) { + var t = new Fs(e); + return (t.request = dbe.request), t; + } + function nvt(e) { + var t = new Fs(e); + return (t.request = dbe.request), (t.createSocket = fbe), (t.defaultPort = 443), t; + } + function Fs(e) { + var t = this; + (t.options = e || {}), + (t.proxyOptions = t.options.proxy || {}), + (t.maxSockets = t.options.maxSockets || SR.Agent.defaultMaxSockets), + (t.requests = []), + (t.sockets = []), + t.on('free', function (n, a, o) { + for (var s = 0, l = t.requests.length; s < l; ++s) { + var u = t.requests[s]; + if (u.host === a && u.port === o) { + t.requests.splice(s, 1), u.request.onSocket(n); + return; + } + } + n.destroy(), t.removeSocket(n); + }); + } + Z0t.inherits(Fs, Y0t.EventEmitter); + Fs.prototype.addRequest = function (t, r) { + var n = this; + if ( + (typeof r == 'string' && (r = { host: r, port: arguments[2], path: arguments[3] }), + n.sockets.length >= this.maxSockets) + ) { + n.requests.push({ host: r.host, port: r.port, request: t }); + return; + } + n.createConnection({ host: r.host, port: r.port, request: t }); + }; + Fs.prototype.createConnection = function (t) { + var r = this; + r.createSocket(t, function (n) { + n.on('free', a), n.on('close', o), n.on('agentRemove', o), t.request.onSocket(n); + function a() { + r.emit('free', n, t.host, t.port); + } + function o(s) { + r.removeSocket(n), + n.removeListener('free', a), + n.removeListener('close', o), + n.removeListener('agentRemove', o); + } + }); + }; + Fs.prototype.createSocket = function (t, r) { + var n = this, + a = {}; + n.sockets.push(a); + var o = mbe({}, n.proxyOptions, { method: 'CONNECT', path: t.host + ':' + t.port, agent: !1 }); + o.proxyAuth && + ((o.headers = o.headers || {}), + (o.headers['Proxy-Authorization'] = 'Basic ' + evt.from(o.proxyAuth).toString('base64'))), + Pd('making CONNECT request'); + var s = n.request(o); + (s.useChunkedEncodingByDefault = !1), + s.once('response', l), + s.once('upgrade', u), + s.once('connect', p), + s.once('error', c), + s.end(); + function l(f) { + f.upgrade = !0; + } + function u(f, h, m) { + process.nextTick(function () { + p(f, h, m); + }); + } + function p(f, h, m) { + if ((s.removeAllListeners(), h.removeAllListeners(), f.statusCode === 200)) + Q0t.equal(m.length, 0), Pd('tunneling connection has established'), (n.sockets[n.sockets.indexOf(a)] = h), r(h); + else { + Pd('tunneling socket could not be established, statusCode=%d', f.statusCode); + var v = new Error('tunneling socket could not be established, statusCode=' + f.statusCode); + (v.code = 'ECONNRESET'), t.request.emit('error', v), n.removeSocket(a); + } + } + function c(f) { + s.removeAllListeners(), + Pd( + `tunneling socket could not be established, cause=%s +`, + f.message, + f.stack + ); + var h = new Error('tunneling socket could not be established, cause=' + f.message); + (h.code = 'ECONNRESET'), t.request.emit('error', h), n.removeSocket(a); + } + }; + Fs.prototype.removeSocket = function (t) { + var r = this.sockets.indexOf(t); + if (r !== -1) { + this.sockets.splice(r, 1); + var n = this.requests.shift(); + n && this.createConnection(n); + } + }; + function fbe(e, t) { + var r = this; + Fs.prototype.createSocket.call(r, e, function (n) { + var a = J0t.connect(0, mbe({}, r.options, { servername: e.host, socket: n })); + (r.sockets[r.sockets.indexOf(n)] = a), t(a); + }); + } + function mbe(e) { + for (var t = 1, r = arguments.length; t < r; ++t) { + var n = arguments[t]; + if (typeof n == 'object') + for (var a = Object.keys(n), o = 0, s = a.length; o < s; ++o) { + var l = a[o]; + n[l] !== void 0 && (e[l] = n[l]); + } + } + return e; + } + var Pd; + process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG) + ? (Pd = function () { + var e = Array.prototype.slice.call(arguments); + typeof e[0] == 'string' ? (e[0] = 'TUNNEL: ' + e[0]) : e.unshift('TUNNEL:'), console.error.apply(console, e); + }) + : (Pd = function () {}); + Kh.debug = Pd; +}); +var Sbe = d((NYt, wbe) => { + 'use strict'; + var ER = ii().Buffer, + gbe = require('http'), + vbe = require('https'), + ybe = hbe(), + avt = oi(), + bbe = Py(), + Rd = ai(), + ovt = Dh(), + _be = Ly(), + svt = Rd( + avt(_be, { + className: 'NodeHttp', + SECURE_PROTOCOLS: ['https:', 'wss:'], + initialize: function () { + _be.prototype.initialize.apply(this, arguments), + (this._endpointSecure = this.SECURE_PROTOCOLS.indexOf(this.endpoint.protocol) >= 0), + (this._httpClient = this._endpointSecure ? vbe : gbe); + var e = this._proxy; + if (e.origin) { + if ( + ((this._proxyUri = bbe.parse(e.origin)), + (this._proxySecure = this.SECURE_PROTOCOLS.indexOf(this._proxyUri.protocol) >= 0), + !this._endpointSecure) + ) { + this._httpClient = this._proxySecure ? vbe : gbe; + return; + } + var t = Rd( + { + proxy: { + host: this._proxyUri.hostname, + port: this._proxyUri.port || this.DEFAULT_PORTS[this._proxyUri.protocol], + proxyAuth: this._proxyUri.auth, + headers: Rd({ host: this.endpoint.host }, e.headers), + }, + }, + this._dispatcher.tls + ); + this._proxySecure + ? (Rd(t.proxy, e.tls), (this._tunnel = ybe.httpsOverHttps(t))) + : (this._tunnel = ybe.httpsOverHttp(t)); + } + }, + encode: function (e) { + return ovt(e); + }, + request: function (e) { + var t = ER.from(this.encode(e), 'utf8'), + r = this._buildParams(t), + n = this._httpClient.request(r), + a = this; + return ( + n.on('response', function (o) { + a._handleResponse(e, o), a._storeCookies(o.headers['set-cookie']); + }), + n.on('error', function (o) { + a.error('HTTP error: ' + o.message), a._handleError(e); + }), + n.end(t), + n + ); + }, + _buildParams: function (e) { + var t = this.endpoint, + r = this._proxyUri, + n = this._tunnel ? t : r || t, + a = { 'Content-Length': e.length, 'Content-Type': 'application/json', Host: t.host }; + t.auth && (a.Authorization = 'Basic ' + ER.from(t.auth, 'utf8').toString('base64')); + var o = { + method: 'POST', + host: n.hostname, + port: n.port || this.DEFAULT_PORTS[n.protocol], + path: t.path, + headers: Rd(a, this._dispatcher.headers), + }, + s = this._getCookies(); + return ( + s !== '' && (o.headers.Cookie = s), + this._tunnel + ? (o.agent = this._tunnel) + : this._endpointSecure + ? Rd(o, this._dispatcher.tls) + : r && + ((o.path = this.endpoint.href), + Rd(o, this._proxy.tls), + r.auth && (o.headers['Proxy-Authorization'] = ER.from(r.auth, 'utf8').toString('base64'))), + o + ); + }, + _handleResponse: function (e, t) { + var r = '', + n = this; + t.setEncoding('utf8'), + t.on('data', function (a) { + r += a; + }), + t.on('end', function () { + var a; + try { + a = JSON.parse(r); + } catch {} + a ? n._receive(a) : n._handleError(e); + }); + }, + }), + { + isUsable: function (e, t, r, n) { + r.call(n, bbe.isURI(t)); + }, + } + ); + wbe.exports = svt; +}); +var xbe = d((qYt, Ebe) => { + 'use strict'; + var P8 = Ly(); + P8.register('in-process', Cve()); + P8.register('websocket', cbe()); + P8.register('long-polling', Sbe()); + Ebe.exports = P8; +}); +var xR = d((FYt, Tbe) => { + 'use strict'; + var lvt = ai(), + Obe = function (e, t) { + (this.message = e), (this.options = t), (this.attempts = 0); + }; + lvt(Obe.prototype, { + getTimeout: function () { + return this.options.timeout; + }, + getInterval: function () { + return this.options.interval; + }, + isDeliverable: function () { + var e = this.options.attempts, + t = this.attempts, + r = this.options.deadline, + n = new Date().getTime(); + return !((e !== void 0 && t >= e) || (r !== void 0 && n > r)); + }, + send: function () { + this.attempts += 1; + }, + succeed: function () {}, + fail: function () {}, + abort: function () {}, + }); + Tbe.exports = Obe; +}); +var Pbe = d((LYt, Ibe) => { + 'use strict'; + var uvt = oi(), + Cbe = Py(), + kbe = IP(), + Abe = ai(), + pvt = Yl(), + cvt = Mh(), + OR = xbe(), + dvt = xR(), + Qy = uvt({ + className: 'Dispatcher', + MAX_REQUEST_SIZE: 2048, + DEFAULT_RETRY: 5, + UP: 1, + DOWN: 2, + initialize: function (e, t, r) { + (this._client = e), + (this.endpoint = Cbe.parse(t)), + (this._alternates = r.endpoints || {}), + (this.cookies = kbe.CookieJar && new kbe.CookieJar()), + (this._disabled = []), + (this._envelopes = {}), + (this.headers = {}), + (this.retry = r.retry || this.DEFAULT_RETRY), + (this._scheduler = r.scheduler || dvt), + (this._state = 0), + (this.transports = {}), + (this.wsExtensions = []), + (this.proxy = r.proxy || {}), + typeof this._proxy == 'string' && (this._proxy = { origin: this._proxy }); + var n = r.websocketExtensions; + if (n) { + n = [].concat(n); + for (var a = 0, o = n.length; a < o; a++) this.addWebsocketExtension(n[a]); + } + (this.tls = r.tls || {}), (this.tls.ca = this.tls.ca || r.ca); + for (var s in this._alternates) this._alternates[s] = Cbe.parse(this._alternates[s]); + this.maxRequestSize = this.MAX_REQUEST_SIZE; + }, + endpointFor: function (e) { + return this._alternates[e] || this.endpoint; + }, + addWebsocketExtension: function (e) { + this.wsExtensions.push(e); + }, + disable: function (e) { + this._disabled.push(e), OR.disable(e); + }, + setHeader: function (e, t) { + this.headers[e] = t; + }, + close: function () { + var e = this._transport; + delete this._transport, e && e.close(); + }, + getConnectionTypes: function () { + return OR.getConnectionTypes(); + }, + selectTransport: function (e) { + OR.get( + this, + e, + this._disabled, + function (t) { + this.debug('Selected ? transport for ?', t.connectionType, t.endpoint.href), + t !== this._transport && + (this._transport && this._transport.close(), + (this._transport = t), + (this.connectionType = t.connectionType)); + }, + this + ); + }, + sendMessage: function (e, t, r) { + r = r || {}; + var n = e.id, + a = r.attempts, + o = r.deadline && new Date().getTime() + r.deadline * 1e3, + s = this._envelopes[n], + l; + s || + ((l = new this._scheduler(e, { timeout: t, interval: this.retry, attempts: a, deadline: o })), + (s = this._envelopes[n] = { message: e, scheduler: l })), + this._sendEnvelope(s); + }, + _sendEnvelope: function (e) { + if (this._transport && !(e.request || e.timer)) { + var t = e.message, + r = e.scheduler, + n = this; + if (!r.isDeliverable()) { + r.abort(), delete this._envelopes[t.id]; + return; + } + (e.timer = global.setTimeout(function () { + n.handleError(t); + }, r.getTimeout() * 1e3)), + r.send(), + (e.request = this._transport.sendMessage(t)); + } + }, + handleResponse: function (e) { + var t = this._envelopes[e.id]; + e.successful !== void 0 && + t && + (t.scheduler.succeed(), delete this._envelopes[e.id], global.clearTimeout(t.timer)), + this.trigger('message', e), + this._state !== this.UP && ((this._state = this.UP), this._client.trigger('transport:up')); + }, + handleError: function (e, t) { + var r = this._envelopes[e.id], + n = r && r.request, + a = this; + if (n) { + n.then(function (s) { + s && s.abort && s.abort(); + }); + var o = r.scheduler; + o.fail(), + global.clearTimeout(r.timer), + (r.request = r.timer = null), + t + ? this._sendEnvelope(r) + : (r.timer = global.setTimeout(function () { + (r.timer = null), a._sendEnvelope(r); + }, o.getInterval() * 1e3)), + this._state !== this.DOWN && ((this._state = this.DOWN), this._client.trigger('transport:down')); + } + }, + }); + Qy.create = function (e, t, r) { + return new Qy(e, t, r); + }; + Abe(Qy.prototype, cvt); + Abe(Qy.prototype, pvt); + Ibe.exports = Qy; +}); +var jbe = d((MYt, Rbe) => { + 'use strict'; + var fvt = oi(), + mvt = Lh(); + Rbe.exports = fvt(mvt); +}); +var qbe = d((UYt, Nbe) => { + 'use strict'; + var hvt = oi(), + gvt = ai(), + vvt = Lh(), + Dbe = hvt({ + initialize: function (e, t, r, n) { + (this._client = e), (this._channels = t), (this._callback = r), (this._context = n), (this._cancelled = !1); + }, + withChannel: function (e, t) { + return (this._withChannel = [e, t]), this; + }, + apply: function (e, t) { + var r = t[0]; + this._callback && this._callback.call(this._context, r.data), + this._withChannel && this._withChannel[0].call(this._withChannel[1], r.channel, r.data); + }, + cancel: function () { + this._cancelled || (this._client.unsubscribe(this._channels, this), (this._cancelled = !0)); + }, + unsubscribe: function () { + this.cancel(); + }, + }); + gvt(Dbe.prototype, vvt); + Nbe.exports = Dbe; +}); +var kR = d((BYt, $be) => { + 'use strict'; + var yvt = Ty(), + bvt = oi(), + $Yt = qh(), + TR = Fh(), + Fbe = lP(), + Lbe = jh(), + Zy = ai(), + Mbe = uP(), + _vt = Lh(), + wvt = Yl(), + Svt = Mh(), + jd = Iy(), + Evt = Pbe(), + CR = MP(), + xvt = UP(), + Ube = jbe(), + Ovt = qbe(), + eb = bvt({ + className: 'Client', + UNCONNECTED: 1, + CONNECTING: 2, + CONNECTED: 3, + DISCONNECTED: 4, + HANDSHAKE: 'handshake', + RETRY: 'retry', + NONE: 'none', + CONNECTION_TIMEOUT: 60, + DEFAULT_ENDPOINT: '/bayeux', + INTERVAL: 0, + initialize: function (e, t) { + this.info('New client created for ?', e), + (t = t || {}), + Mbe(t, [ + 'interval', + 'timeout', + 'endpoints', + 'proxy', + 'retry', + 'scheduler', + 'websocketExtensions', + 'tls', + 'ca', + ]), + (this._channels = new jd.Set()), + (this._dispatcher = Evt.create(this, e || this.DEFAULT_ENDPOINT, t)), + (this._messageId = 0), + (this._state = this.UNCONNECTED), + (this._responseCallbacks = {}), + (this._advice = { + reconnect: this.RETRY, + interval: 1e3 * (t.interval || this.INTERVAL), + timeout: 1e3 * (t.timeout || this.CONNECTION_TIMEOUT), + }), + (this._dispatcher.timeout = this._advice.timeout / 1e3), + this._dispatcher.bind('message', this._receiveMessage, this), + Fbe.Event && + global.onbeforeunload !== void 0 && + Fbe.Event.on( + global, + 'beforeunload', + function () { + TR.indexOf(this._dispatcher._disabled, 'autodisconnect') < 0 && this.disconnect(); + }, + this + ); + }, + addWebsocketExtension: function (e) { + return this._dispatcher.addWebsocketExtension(e); + }, + disable: function (e) { + return this._dispatcher.disable(e); + }, + setHeader: function (e, t) { + return this._dispatcher.setHeader(e, t); + }, + handshake: function (e, t) { + if (this._advice.reconnect !== this.NONE && this._state === this.UNCONNECTED) { + this._state = this.CONNECTING; + var r = this; + this.info('Initiating handshake with ?', this._dispatcher.endpoint.href), + this._dispatcher.selectTransport(Lbe.MANDATORY_CONNECTION_TYPES), + this._sendMessage( + { + channel: jd.HANDSHAKE, + version: Lbe.BAYEUX_VERSION, + supportedConnectionTypes: this._dispatcher.getConnectionTypes(), + }, + {}, + function (n) { + n.successful + ? ((this._state = this.CONNECTED), + (this._dispatcher.clientId = n.clientId), + this._dispatcher.selectTransport(n.supportedConnectionTypes), + this.info('Handshake successful: ?', this._dispatcher.clientId), + this.subscribe(this._channels.getKeys(), !0), + e && + yvt(function () { + e.call(t); + })) + : (this.info('Handshake unsuccessful'), + global.setTimeout(function () { + r.handshake(e, t); + }, this._dispatcher.retry * 1e3), + (this._state = this.UNCONNECTED)); + }, + this + ); + } + }, + connect: function (e, t) { + if (this._advice.reconnect !== this.NONE && this._state !== this.DISCONNECTED) { + if (this._state === this.UNCONNECTED) + return this.handshake(function () { + this.connect(e, t); + }, this); + this.callback(e, t), + this._state === this.CONNECTED && + (this.info('Calling deferred actions for ?', this._dispatcher.clientId), + this.setDeferredStatus('succeeded'), + this.setDeferredStatus('unknown'), + !this._connectRequest && + ((this._connectRequest = !0), + this.info('Initiating connection for ?', this._dispatcher.clientId), + this._sendMessage( + { + channel: jd.CONNECT, + clientId: this._dispatcher.clientId, + connectionType: this._dispatcher.connectionType, + }, + {}, + this._cycleConnection, + this + ))); + } + }, + disconnect: function () { + if (this._state === this.CONNECTED) { + (this._state = this.DISCONNECTED), this.info('Disconnecting ?', this._dispatcher.clientId); + var e = new Ube(); + return ( + this._sendMessage( + { channel: jd.DISCONNECT, clientId: this._dispatcher.clientId }, + {}, + function (t) { + t.successful + ? (this._dispatcher.close(), e.setDeferredStatus('succeeded')) + : e.setDeferredStatus('failed', CR.parse(t.error)); + }, + this + ), + this.info('Clearing channel listeners for ?', this._dispatcher.clientId), + (this._channels = new jd.Set()), + e + ); + } + }, + subscribe: function (e, t, r) { + if (e instanceof Array) + return TR.map( + e, + function (s) { + return this.subscribe(s, t, r); + }, + this + ); + var n = new Ovt(this, e, t, r), + a = t === !0, + o = this._channels.hasSubscription(e); + return o && !a + ? (this._channels.subscribe([e], n), n.setDeferredStatus('succeeded'), n) + : (this.connect(function () { + this.info('Client ? attempting to subscribe to ?', this._dispatcher.clientId, e), + a || this._channels.subscribe([e], n), + this._sendMessage( + { channel: jd.SUBSCRIBE, clientId: this._dispatcher.clientId, subscription: e }, + {}, + function (s) { + if (!s.successful) + return n.setDeferredStatus('failed', CR.parse(s.error)), this._channels.unsubscribe(e, n); + var l = [].concat(s.subscription); + this.info('Subscription acknowledged for ? to ?', this._dispatcher.clientId, l), + n.setDeferredStatus('succeeded'); + }, + this + ); + }, this), + n); + }, + unsubscribe: function (e, t) { + if (e instanceof Array) + return TR.map( + e, + function (n) { + return this.unsubscribe(n, t); + }, + this + ); + var r = this._channels.unsubscribe(e, t); + r && + this.connect(function () { + this.info('Client ? attempting to unsubscribe from ?', this._dispatcher.clientId, e), + this._sendMessage( + { channel: jd.UNSUBSCRIBE, clientId: this._dispatcher.clientId, subscription: e }, + {}, + function (n) { + if (n.successful) { + var a = [].concat(n.subscription); + this.info('Unsubscription acknowledged for ? from ?', this._dispatcher.clientId, a); + } + }, + this + ); + }, this); + }, + publish: function (e, t, r) { + Mbe(r || {}, ['attempts', 'deadline']); + var n = new Ube(); + return ( + this.connect(function () { + this.info('Client ? queueing published message to ?: ?', this._dispatcher.clientId, e, t), + this._sendMessage( + { channel: e, data: t, clientId: this._dispatcher.clientId }, + r, + function (a) { + a.successful ? n.setDeferredStatus('succeeded') : n.setDeferredStatus('failed', CR.parse(a.error)); + }, + this + ); + }, this), + n + ); + }, + _sendMessage: function (e, t, r, n) { + e.id = this._generateMessageId(); + var a = this._advice.timeout ? (1.2 * this._advice.timeout) / 1e3 : 1.2 * this._dispatcher.retry; + this.pipeThroughExtensions( + 'outgoing', + e, + null, + function (o) { + o && (r && (this._responseCallbacks[o.id] = [r, n]), this._dispatcher.sendMessage(o, a, t || {})); + }, + this + ); + }, + _generateMessageId: function () { + return ( + (this._messageId += 1), + this._messageId >= Math.pow(2, 32) && (this._messageId = 0), + this._messageId.toString(36) + ); + }, + _receiveMessage: function (e) { + var t = e.id, + r; + e.successful !== void 0 && ((r = this._responseCallbacks[t]), delete this._responseCallbacks[t]), + this.pipeThroughExtensions( + 'incoming', + e, + null, + function (n) { + n && (n.advice && this._handleAdvice(n.advice), this._deliverMessage(n), r && r[0].call(r[1], n)); + }, + this + ); + }, + _handleAdvice: function (e) { + Zy(this._advice, e), + (this._dispatcher.timeout = this._advice.timeout / 1e3), + this._advice.reconnect === this.HANDSHAKE && + this._state !== this.DISCONNECTED && + ((this._state = this.UNCONNECTED), (this._dispatcher.clientId = null), this._cycleConnection()); + }, + _deliverMessage: function (e) { + !e.channel || + e.data === void 0 || + (this.info('Client ? calling listeners for ? with ?', this._dispatcher.clientId, e.channel, e.data), + this._channels.distributeMessage(e)); + }, + _cycleConnection: function () { + this._connectRequest && + ((this._connectRequest = null), this.info('Closed connection for ?', this._dispatcher.clientId)); + var e = this; + global.setTimeout(function () { + e.connect(); + }, this._advice.interval); + }, + }); + Zy(eb.prototype, _vt); + Zy(eb.prototype, Svt); + Zy(eb.prototype, wvt); + Zy(eb.prototype, xvt); + $be.exports = eb; +}); +var Vbe = d((VYt, Bbe) => { + 'use strict'; + var Tvt = Fh(); + Bbe.exports = function (e) { + var t = Tvt.filter([].concat(e), function (r) { + return r.channel === '/meta/connect'; + }); + return t[0] && t[0].clientId; + }; +}); +var AR = d((zYt, zbe) => { + zbe.exports = { + TYPE_JSON: { 'Content-Type': 'application/json; charset=utf-8' }, + TYPE_SCRIPT: { 'Content-Type': 'text/javascript; charset=utf-8' }, + TYPE_TEXT: { 'Content-Type': 'text/plain; charset=utf-8' }, + }; +}); +var Kbe = d((HYt, Wbe) => { + 'use strict'; + var Cvt = require('crypto'), + Hbe = require('fs'), + Gbe = require('path'), + kvt = require('url'), + Avt = oi(), + Ivt = ai(), + Pvt = AR(), + Rvt = Avt({ + initialize: function (e, t) { + (this._directory = e), (this._pathRegex = t), (this._pathMap = {}), (this._index = {}); + }, + map: function (e, t) { + this._pathMap[e] = t; + }, + test: function (e) { + return this._pathRegex.test(e); + }, + call: function (e, t) { + var r = kvt.parse(e.url, !0).pathname, + n = Gbe.basename(r); + (n = this._pathMap[n] || n), (this._index[n] = this._index[n] || {}); + var a = this._index[n], + o = Gbe.join(this._directory, n); + try { + (a.content = a.content || Hbe.readFileSync(o)), + (a.digest = a.digest || Cvt.createHash('sha1').update(a.content).digest('hex')), + (a.mtime = a.mtime || Hbe.statSync(o).mtime); + } catch { + return t.writeHead(404, {}), t.end(); + } + var s = /\.js$/.test(r) ? 'TYPE_SCRIPT' : 'TYPE_JSON', + l = e.headers['if-modified-since'], + u = { ETag: a.digest, 'Last-Modified': a.mtime.toGMTString() }; + e.headers['if-none-match'] === a.digest || (l && a.mtime <= new Date(l)) + ? (t.writeHead(304, u), t.end()) + : ((u['Content-Length'] = a.content.length), Ivt(u, Pvt[s]), t.writeHead(200, u), t.end(a.content)); + }, + }); + Wbe.exports = Rvt; +}); +var n2e = d((GYt, i2e) => { + 'use strict'; + var Xbe = ii().Buffer, + Jbe = require('path'), + jvt = require('querystring'), + Ybe = require('url'), + t2e = wR(), + Qbe = t2e.EventSource, + Dvt = jh(), + r2e = ai(), + Nvt = Vbe(), + Zbe = Dh(), + qvt = uP(), + Fvt = oi(), + Lvt = Yl(), + Mvt = Mh(), + Uvt = kR(), + $vt = $P(), + IR = AR(), + Bvt = Kbe(), + PR = Fvt({ + className: 'NodeAdapter', + DEFAULT_ENDPOINT: '/bayeux', + SCRIPT_PATH: 'faye-browser-min.js', + VALID_JSONP_CALLBACK: /^[a-z_\$][a-z0-9_\$]*(\.[a-z_\$][a-z0-9_\$]*)*$/i, + initialize: function (e) { + (this._options = e || {}), + qvt(this._options, ['engine', 'mount', 'ping', 'timeout', 'extensions', 'websocketExtensions']), + (this._extensions = []), + (this._endpoint = this._options.mount || this.DEFAULT_ENDPOINT), + (this._endpointRe = new RegExp('^' + this._endpoint.replace(/\/$/, '') + '(/[^/]*)*(\\.[^\\.]+)?$')), + (this._server = $vt.create(this._options)), + (this._static = new Bvt(Jbe.join(__dirname, '..', '..', 'client'), /\.(?:js|map)$/)), + this._static.map(Jbe.basename(this._endpoint) + '.js', this.SCRIPT_PATH), + this._static.map('client.js', this.SCRIPT_PATH); + var t = this._options.extensions, + r = this._options.websocketExtensions, + n, + a; + if (t) for (t = [].concat(t), n = 0, a = t.length; n < a; n++) this.addExtension(t[n]); + if (r) for (r = [].concat(r), n = 0, a = r.length; n < a; n++) this.addWebsocketExtension(r[n]); + }, + listen: function () { + throw new Error('The listen() method is deprecated - use the attach() method to bind Faye to an http.Server'); + }, + addExtension: function (e) { + return this._server.addExtension(e); + }, + removeExtension: function (e) { + return this._server.removeExtension(e); + }, + addWebsocketExtension: function (e) { + this._extensions.push(e); + }, + close: function () { + return this._server.close(); + }, + getClient: function () { + return (this._client = this._client || new Uvt(this._server)); + }, + attach: function (e) { + this._overrideListeners(e, 'request', 'handle'), this._overrideListeners(e, 'upgrade', 'handleUpgrade'); + }, + _overrideListeners: function (e, t, r) { + var n = e.listeners(t), + a = this; + e.removeAllListeners(t), + e.on(t, function (o) { + if (a.check(o)) return a[r].apply(a, arguments); + for (var s = 0, l = n.length; s < l; s++) n[s].apply(this, arguments); + }); + }, + check: function (e) { + var t = Ybe.parse(e.url, !0).pathname; + return !!this._endpointRe.test(t); + }, + handle: function (e, t) { + var r = Ybe.parse(e.url, !0), + n = e.method, + a = this; + if ( + ((e.originalUrl = e.url), + e.on('error', function (o) { + a._returnError(t, o); + }), + t.on('error', function (o) { + a._returnError(null, o); + }), + this._static.test(r.pathname)) + ) + return this._static.call(e, t); + if (n === 'OPTIONS' || e.headers['access-control-request-method'] === 'POST') return this._handleOptions(e, t); + if (Qbe.isEventSource(e)) return this.handleEventSource(e, t); + if (n === 'GET') return this._callWithParams(e, t, r.query); + if (n === 'POST') + return this._concatStream( + e, + function (o) { + var s = (e.headers['content-type'] || '').split(';')[0], + l = s === 'application/json' ? { message: o } : jvt.parse(o); + (e.body = o), this._callWithParams(e, t, l); + }, + this + ); + this._returnError(t, { message: 'Unrecognized request type' }); + }, + _callWithParams: function (e, t, r) { + if (!r.message) + return this._returnError(t, { message: 'Received request with no message: ' + this._formatRequest(e) }); + try { + this.debug('Received message via HTTP ' + e.method + ': ?', r.message); + var n = this._parseJSON(r.message), + a = r.jsonp || Dvt.JSONP_CALLBACK, + o = e.method === 'GET', + s = o ? IR.TYPE_SCRIPT : IR.TYPE_JSON, + l = r2e({}, s), + u = e.headers.origin; + if (!this.VALID_JSONP_CALLBACK.test(a)) + return this._returnError(t, { message: 'Invalid JSON-P callback: ' + a }); + (l['Cache-Control'] = 'no-cache, no-store'), + (l['X-Content-Type-Options'] = 'nosniff'), + u && ((l['Access-Control-Allow-Credentials'] = 'true'), (l['Access-Control-Allow-Origin'] = u)), + this._server.process( + n, + e, + function (p) { + var c = Zbe(p); + o && + ((c = '/**/' + a + '(' + this._jsonpEscape(c) + ');'), + (l['Content-Disposition'] = 'attachment; filename=f.txt')), + (l['Content-Length'] = Xbe.from(c, 'utf8').length.toString()), + this.debug('HTTP response: ?', c), + t.writeHead(200, l), + t.end(c); + }, + this + ); + } catch (p) { + this._returnError(t, p); + } + }, + _jsonpEscape: function (e) { + return e.replace(/\u2028/g, '\\u2028').replace(/\u2029/g, '\\u2029'); + }, + handleUpgrade: function (e, t, r) { + var n = { extensions: this._extensions, ping: this._options.ping }, + a = new t2e(e, t, r, [], n), + o = null, + s = this; + (e.originalUrl = e.url), + (a.onmessage = function (l) { + try { + s.debug('Received message via WebSocket[' + a.version + ']: ?', l.data); + var u = s._parseJSON(l.data), + p = Nvt(u); + o && p && p !== o && s._server.closeSocket(o, !1), + s._server.openSocket(p, a, e), + p && (o = p), + s._server.process(u, e, function (c) { + a && a.send(Zbe(c)); + }); + } catch (c) { + console.log(c.stack), + s.error( + c.message + + ` +Backtrace: +` + + c.stack + ); + } + }), + (a.onclose = function (l) { + s._server.closeSocket(o), (a = null); + }); + }, + handleEventSource: function (e, t) { + var r = new Qbe(e, t, { ping: this._options.ping }), + n = r.url.split('/').pop(), + a = this; + this.debug('Opened EventSource connection for ?', n), + this._server.openSocket(n, r, e), + (r.onclose = function (o) { + a._server.closeSocket(n), (r = null); + }); + }, + _handleOptions: function (e, t) { + var r = e.headers.origin || e.headers.referer, + n = { + 'Access-Control-Allow-Credentials': 'true', + 'Access-Control-Allow-Headers': 'Accept, Authorization, Content-Type, Pragma, X-Requested-With', + 'Access-Control-Allow-Methods': 'POST, GET', + 'Access-Control-Allow-Origin': r || '*', + 'Access-Control-Max-Age': '86400', + }; + t.writeHead(200, n), t.end(''); + }, + _concatStream: function (e, t, r) { + var n = [], + a = 0; + e.on('data', function (o) { + n.push(o), (a += o.length); + }), + e.on('end', function () { + for (var o = Xbe.alloc(a), s = 0, l = 0, u = n.length; l < u; l++) n[l].copy(o, s), (s += n[l].length); + t.call(r, o.toString('utf8')); + }); + }, + _parseJSON: function (e) { + var t = JSON.parse(e); + if (typeof t == 'object') return t; + throw new SyntaxError('JSON messages must contain an object or array'); + }, + _formatRequest: function (e) { + var t = e.method.toUpperCase(), + r = 'curl -X ' + t; + return ( + (r += " 'http://" + e.headers.host + e.url + "'"), + t === 'POST' && + ((r += " -H 'Content-Type: " + e.headers['content-type'] + "'"), (r += " -d '" + e.body + "'")), + r + ); + }, + _returnError: function (e, t) { + var r = t.message; + t.stack && + (r += + ` +Backtrace: +` + t.stack), + this.error(r), + e && (e.writeHead(400, IR.TYPE_TEXT), e.end('Bad request')); + }, + }); + for (e2e in Mvt) + (function (e) { + PR.prototype[e] = function () { + return this._server._engine[e].apply(this._server._engine, arguments); + }; + })(e2e); + var e2e; + r2e(PR.prototype, Lvt); + i2e.exports = PR; +}); +var RR = d((WYt, o2e) => { + 'use strict'; + var Vvt = jh(), + zvt = Yl(), + a2e = { VERSION: Vvt.VERSION, Client: kR(), Scheduler: xR(), NodeAdapter: n2e() }; + zvt.wrapper = a2e; + o2e.exports = a2e; +}); +var u2e = d((Xh) => { + 'use strict'; + var l2e = Ce(), + Hvt = ge(); + Hvt(Xh, '__esModule', { value: !0 }); + Xh.Replay = Xh.AuthFailure = void 0; + var Gvt = l2e(Tm()), + R8 = l2e(Ye()), + jR = class { + constructor(t) { + (0, R8.default)(this, '_failureCallback', void 0), (this._failureCallback = t); + } + incoming(t, r) { + (t.channel === '/meta/connect' || t.channel === '/meta/handshake') && t.advice && t.advice.reconnect == 'none' + ? this._failureCallback(t) + : r(t); + } + }; + Xh.AuthFailure = jR; + var s2e = 'replay', + DR = class { + constructor(t, r) { + (0, R8.default)(this, '_extensionEnabled', void 0), + (0, R8.default)(this, '_replay', void 0), + (0, R8.default)(this, '_channel', void 0), + (this._extensionEnabled = r != null), + (this._channel = t), + (this._replay = r); + } + setExtensionEnabled(t) { + this._extensionEnabled = t; + } + setReplay(t) { + this._replay = (0, Gvt.default)(t, 10); + } + setChannel(t) { + this._channel = t; + } + incoming(t, r) { + t.channel === '/meta/handshake' + ? t.ext && t.ext[s2e] == !0 && (this._extensionEnabled = !0) + : t.channel === this._channel && + t.data && + t.data.event && + t.data.event.replayId && + (this._replay = t.data.event.replayId), + r(t); + } + outgoing(t, r) { + if (t.channel === '/meta/subscribe' && this._extensionEnabled) { + t.ext || (t.ext = {}); + let n = { [this._channel]: this._replay }; + t.ext[s2e] = n; + } + r(t); + } + }; + Xh.Replay = DR; +}); +var p2e = d((Ls) => { + 'use strict'; + var Wvt = Pl(), + LR = Ce(), + MR = ge(); + kr(); + Zt(); + MR(Ls, '__esModule', { value: !0 }); + MR(Ls, 'Client', { + enumerable: !0, + get: function () { + return UR.Client; + }, + }); + MR(Ls, 'Subscription', { + enumerable: !0, + get: function () { + return UR.Subscription; + }, + }); + Ls.StreamingExtension = Ls.default = Ls.Streaming = void 0; + var tb = LR(Xu()), + NR = LR(Da()), + Cp = LR(Ye()), + Kvt = require('events'), + UR = RR(), + Xvt = $a(), + Jvt = Wvt(u2e()); + Ls.StreamingExtension = Jvt; + var qR = class { + constructor(t, r) { + (0, Cp.default)(this, '_streaming', void 0), + (0, Cp.default)(this, 'name', void 0), + (this._streaming = t), + (this.name = r); + } + subscribe(t) { + return this._streaming.subscribe(this.name, t); + } + unsubscribe(t) { + return this._streaming.unsubscribe(this.name, t), this; + } + }, + FR = class { + constructor(t, r) { + (0, Cp.default)(this, '_streaming', void 0), + (0, Cp.default)(this, '_id', void 0), + (0, Cp.default)(this, 'name', void 0), + (this._streaming = t), + (this.name = r); + } + subscribe(t) { + return this._streaming.subscribe(this.name, t); + } + unsubscribe(t) { + return this._streaming.unsubscribe(this.name, t), this; + } + async push(t) { + let r = (0, NR.default)(t), + n = (0, NR.default)(t) ? t : [t], + a = this._streaming._conn; + this._id || + (this._id = a + .sobject('StreamingChannel') + .findOne({ Name: this.name }, ['Id']) + .then((u) => u?.Id)); + let o = await this._id; + if (!o) throw new Error(`No streaming channel available for name: ${this.name}`); + let s = `/sobjects/StreamingChannel/${o}/push`, + l = await a.requestPost(s, { pushEvents: n }); + return r ? l : l[0]; + } + }, + rb = class extends Kvt.EventEmitter { + constructor(t) { + super(), + (0, Cp.default)(this, '_conn', void 0), + (0, Cp.default)(this, '_topics', {}), + (0, Cp.default)(this, '_fayeClients', {}), + (this._conn = t); + } + _createClient(t, r) { + var n; + let a = typeof t == 'string' && (0, tb.default)(t).call(t, '/u/') === 0, + o = [ + this._conn.instanceUrl, + 'cometd' + (a === !0 && this._conn.version === '36.0' ? '/replay' : ''), + this._conn.version, + ].join('/'), + s = new UR.Client(o, {}); + if ((s.setHeader('Authorization', 'OAuth ' + this._conn.accessToken), (0, NR.default)(r))) + for (let u of r) s.addExtension(u); + let l = s._dispatcher; + return ( + (0, tb.default)((n = l.getConnectionTypes())).call(n, 'callback-polling') === -1 && + (l.selectTransport('long-polling'), (l._transport.batching = !1)), + s + ); + } + _getFayeClient(t) { + let n = (0, tb.default)(t).call(t, '/u/') === 0 ? 'generic' : 'pushTopic'; + return this._fayeClients[n] || (this._fayeClients[n] = this._createClient(t)), this._fayeClients[n]; + } + topic(t) { + return (this._topics = this._topics || {}), (this._topics[t] = this._topics[t] || new qR(this, t)); + } + channel(t) { + return new FR(this, t); + } + subscribe(t, r) { + let n = (0, tb.default)(t).call(t, '/') === 0 ? t : '/topic/' + t; + return this._getFayeClient(n).subscribe(n, r); + } + unsubscribe(t, r) { + let n = (0, tb.default)(t).call(t, '/') === 0 ? t : '/topic/' + t; + return this._getFayeClient(n).unsubscribe(n, r), this; + } + createClient(t) { + return this._createClient(null, t); + } + }; + Ls.Streaming = rb; + (0, Xvt.registerModule)('streaming', (e) => new rb(e)); + var Yvt = rb; + Ls.default = Yvt; +}); +var GR = d((Jh) => { + 'use strict'; + var HR = Ce(), + Qvt = ge(); + kr(); + Qvt(Jh, '__esModule', { value: !0 }); + Jh.default = Jh.Tooling = void 0; + var ze = HR(Ye()), + Zvt = $a(), + eyt = HR(od()), + tyt = HR(Jk()), + { + query: ryt, + queryMore: iyt, + _ensureVersion: nyt, + create: c2e, + _createSingle: ayt, + _createMany: oyt, + _createParallel: syt, + retrieve: lyt, + _retrieveSingle: uyt, + _retrieveParallel: pyt, + _retrieveMany: cyt, + update: dyt, + _updateSingle: fyt, + _updateParallel: myt, + _updateMany: hyt, + upsert: gyt, + destroy: $R, + _destroySingle: vyt, + _destroyParallel: yyt, + _destroyMany: byt, + describe: BR, + describeGlobal: VR, + sobject: _yt, + } = eyt.default.prototype, + zR = (e) => (e ? `describe.${e}` : 'describe'), + ib = class { + get version() { + return this._conn.version; + } + constructor(t) { + (0, ze.default)(this, '_conn', void 0), + (0, ze.default)(this, 'query', ryt), + (0, ze.default)(this, 'queryMore', iyt), + (0, ze.default)(this, '_ensureVersion', nyt), + (0, ze.default)(this, 'create', c2e), + (0, ze.default)(this, '_createSingle', ayt), + (0, ze.default)(this, '_createParallel', syt), + (0, ze.default)(this, '_createMany', oyt), + (0, ze.default)(this, 'insert', c2e), + (0, ze.default)(this, 'retrieve', lyt), + (0, ze.default)(this, '_retrieveSingle', uyt), + (0, ze.default)(this, '_retrieveParallel', pyt), + (0, ze.default)(this, '_retrieveMany', cyt), + (0, ze.default)(this, 'update', dyt), + (0, ze.default)(this, '_updateSingle', fyt), + (0, ze.default)(this, '_updateParallel', myt), + (0, ze.default)(this, '_updateMany', hyt), + (0, ze.default)(this, 'upsert', gyt), + (0, ze.default)(this, 'destroy', $R), + (0, ze.default)(this, '_destroySingle', vyt), + (0, ze.default)(this, '_destroyParallel', yyt), + (0, ze.default)(this, '_destroyMany', byt), + (0, ze.default)(this, 'delete', $R), + (0, ze.default)(this, 'del', $R), + (0, ze.default)(this, 'cache', new tyt.default()), + (0, ze.default)( + this, + 'describe', + this.cache.createCachedFunction(BR, this, { key: zR, strategy: 'NOCACHE' }) + ), + (0, ze.default)(this, 'describe$', this.cache.createCachedFunction(BR, this, { key: zR, strategy: 'HIT' })), + (0, ze.default)( + this, + 'describe$$', + this.cache.createCachedFunction(BR, this, { key: zR, strategy: 'IMMEDIATE' }) + ), + (0, ze.default)(this, 'describeSObject', this.describe), + (0, ze.default)(this, 'describeSObject$', this.describe$), + (0, ze.default)(this, 'describeSObject$$', this.describe$$), + (0, ze.default)( + this, + 'describeGlobal', + this.cache.createCachedFunction(VR, this, { key: 'describeGlobal', strategy: 'NOCACHE' }) + ), + (0, ze.default)( + this, + 'describeGlobal$', + this.cache.createCachedFunction(VR, this, { key: 'describeGlobal', strategy: 'HIT' }) + ), + (0, ze.default)( + this, + 'describeGlobal$$', + this.cache.createCachedFunction(VR, this, { key: 'describeGlobal', strategy: 'IMMEDIATE' }) + ), + (0, ze.default)(this, 'sobject', _yt), + (0, ze.default)(this, 'sobjects', {}), + (this._conn = t); + } + _establish() { + (this.sobjects = {}), + this.cache.clear(), + this.cache.get('describeGlobal').removeAllListeners('value'), + this.cache.get('describeGlobal').on('value', (t) => { + if (t.result) for (let { name: r } of t.result.sobjects) this.sobject(r); + }); + } + _baseUrl() { + return this._conn._baseUrl() + '/tooling'; + } + _supports(t) { + return this._conn._supports(t); + } + request(t, r) { + return this._conn.request(t, r); + } + executeAnonymous(t) { + let r = this._baseUrl() + '/executeAnonymous?anonymousBody=' + encodeURIComponent(t); + return this.request(r); + } + runTestsAsynchronous(t) { + let r = this._baseUrl() + '/runTestsAsynchronous/'; + return this._conn.requestPost(r, t); + } + runTestsSynchronous(t) { + let r = this._baseUrl() + '/runTestsSynchronous/'; + return this._conn.requestPost(r, t); + } + completions(t = 'apex') { + let r = this._baseUrl() + '/completions?type=' + encodeURIComponent(t); + return this.request({ method: 'GET', url: r, headers: { Accept: 'application/json' } }); + } + }; + Jh.Tooling = ib; + (0, Zvt.registerModule)('tooling', (e) => new ib(e)); + var wyt = ib; + Jh.default = wyt; +}); +var d2e = d(() => { + 'use strict'; +}); +var f2e = d(() => { + 'use strict'; +}); +var m2e = d(() => { + 'use strict'; +}); +var h2e = d(() => { + 'use strict'; +}); +var g2e = d(() => { + 'use strict'; +}); +var v2e = d(() => { + 'use strict'; +}); +var y2e = d(() => { + 'use strict'; +}); +var ej = d((pr) => { + 'use strict'; + var Dd = Ve(), + Nd = Bt(), + b2e, + _2e, + w2e, + S2e, + E2e, + x2e, + O2e, + kp = ge(); + kp(pr, '__esModule', { value: !0 }); + var WR = d2e(); + Nd((b2e = Dd(WR))).call(b2e, function (e) { + e === 'default' || + e === '__esModule' || + (e in pr && pr[e] === WR[e]) || + kp(pr, e, { + enumerable: !0, + get: function () { + return WR[e]; + }, + }); + }); + var KR = f2e(); + Nd((_2e = Dd(KR))).call(_2e, function (e) { + e === 'default' || + e === '__esModule' || + (e in pr && pr[e] === KR[e]) || + kp(pr, e, { + enumerable: !0, + get: function () { + return KR[e]; + }, + }); + }); + var XR = m2e(); + Nd((w2e = Dd(XR))).call(w2e, function (e) { + e === 'default' || + e === '__esModule' || + (e in pr && pr[e] === XR[e]) || + kp(pr, e, { + enumerable: !0, + get: function () { + return XR[e]; + }, + }); + }); + var JR = h2e(); + Nd((S2e = Dd(JR))).call(S2e, function (e) { + e === 'default' || + e === '__esModule' || + (e in pr && pr[e] === JR[e]) || + kp(pr, e, { + enumerable: !0, + get: function () { + return JR[e]; + }, + }); + }); + var YR = g2e(); + Nd((E2e = Dd(YR))).call(E2e, function (e) { + e === 'default' || + e === '__esModule' || + (e in pr && pr[e] === YR[e]) || + kp(pr, e, { + enumerable: !0, + get: function () { + return YR[e]; + }, + }); + }); + var QR = v2e(); + Nd((x2e = Dd(QR))).call(x2e, function (e) { + e === 'default' || + e === '__esModule' || + (e in pr && pr[e] === QR[e]) || + kp(pr, e, { + enumerable: !0, + get: function () { + return QR[e]; + }, + }); + }); + var ZR = y2e(); + Nd((O2e = Dd(ZR))).call(O2e, function (e) { + e === 'default' || + e === '__esModule' || + (e in pr && pr[e] === ZR[e]) || + kp(pr, e, { + enumerable: !0, + get: function () { + return ZR[e]; + }, + }); + }); +}); +var N2e = d((it) => { + 'use strict'; + var qd = Ve(), + Fd = Bt(), + T2e, + C2e, + k2e, + A2e, + I2e, + P2e, + R2e, + Syt = Pl(), + Yh = Ce(), + Ji = ge(); + Ji(it, '__esModule', { value: !0 }); + var Ld = { + Date: !0, + SfDate: !0, + registry: !0, + browser: !0, + BrowserClient: !0, + VERSION: !0, + RecordReference: !0, + RecordStream: !0, + }; + Ji(it, 'Date', { + enumerable: !0, + get: function () { + return j2e.default; + }, + }); + Ji(it, 'SfDate', { + enumerable: !0, + get: function () { + return j2e.default; + }, + }); + Ji(it, 'registry', { + enumerable: !0, + get: function () { + return xyt.default; + }, + }); + Ji(it, 'browser', { + enumerable: !0, + get: function () { + return D2e.default; + }, + }); + Ji(it, 'BrowserClient', { + enumerable: !0, + get: function () { + return D2e.BrowserClient; + }, + }); + Ji(it, 'VERSION', { + enumerable: !0, + get: function () { + return Oyt.default; + }, + }); + Ji(it, 'RecordReference', { + enumerable: !0, + get: function () { + return Tyt.default; + }, + }); + Ji(it, 'RecordStream', { + enumerable: !0, + get: function () { + return Cyt.default; + }, + }); + it.default = void 0; + var Eyt = Yh($a()), + j2e = Yh(Xw()), + xyt = Yh(YA()), + D2e = Syt(ZA()), + Oyt = Yh(iT()), + Tyt = Yh(qA()), + Cyt = Yh(Ww()), + tj = Ym(); + Fd((T2e = qd(tj))).call(T2e, function (e) { + e === 'default' || + e === '__esModule' || + Object.prototype.hasOwnProperty.call(Ld, e) || + (e in it && it[e] === tj[e]) || + Ji(it, e, { + enumerable: !0, + get: function () { + return tj[e]; + }, + }); + }); + var rj = tI(); + Fd((C2e = qd(rj))).call(C2e, function (e) { + e === 'default' || + e === '__esModule' || + Object.prototype.hasOwnProperty.call(Ld, e) || + (e in it && it[e] === rj[e]) || + Ji(it, e, { + enumerable: !0, + get: function () { + return rj[e]; + }, + }); + }); + var ij = od(); + Fd((k2e = qd(ij))).call(k2e, function (e) { + e === 'default' || + e === '__esModule' || + Object.prototype.hasOwnProperty.call(Ld, e) || + (e in it && it[e] === ij[e]) || + Ji(it, e, { + enumerable: !0, + get: function () { + return ij[e]; + }, + }); + }); + var nj = e3(); + Fd((A2e = qd(nj))).call(A2e, function (e) { + e === 'default' || + e === '__esModule' || + Object.prototype.hasOwnProperty.call(Ld, e) || + (e in it && it[e] === nj[e]) || + Ji(it, e, { + enumerable: !0, + get: function () { + return nj[e]; + }, + }); + }); + var aj = i3(); + Fd((I2e = qd(aj))).call(I2e, function (e) { + e === 'default' || + e === '__esModule' || + Object.prototype.hasOwnProperty.call(Ld, e) || + (e in it && it[e] === aj[e]) || + Ji(it, e, { + enumerable: !0, + get: function () { + return aj[e]; + }, + }); + }); + var oj = MA(); + Fd((P2e = qd(oj))).call(P2e, function (e) { + e === 'default' || + e === '__esModule' || + Object.prototype.hasOwnProperty.call(Ld, e) || + (e in it && it[e] === oj[e]) || + Ji(it, e, { + enumerable: !0, + get: function () { + return oj[e]; + }, + }); + }); + var sj = ej(); + Fd((R2e = qd(sj))).call(R2e, function (e) { + e === 'default' || + e === '__esModule' || + Object.prototype.hasOwnProperty.call(Ld, e) || + (e in it && it[e] === sj[e]) || + Ji(it, e, { + enumerable: !0, + get: function () { + return sj[e]; + }, + }); + }); + var kyt = Eyt.default; + it.default = kyt; +}); +var $2e = d((Ms) => { + 'use strict'; + var L2e = Ve(), + M2e = Bt(), + q2e, + F2e, + Ayt = Ce(), + pj = ge(); + pj(Ms, '__esModule', { value: !0 }); + var U2e = {}; + Ms.default = void 0; + var Iyt = Ayt($a()); + Lme(); + $me(); + Age(); + qge(); + n1e(); + m1e(); + p2e(); + GR(); + var lj = ej(); + M2e((q2e = L2e(lj))).call(q2e, function (e) { + e === 'default' || + e === '__esModule' || + Object.prototype.hasOwnProperty.call(U2e, e) || + (e in Ms && Ms[e] === lj[e]) || + pj(Ms, e, { + enumerable: !0, + get: function () { + return lj[e]; + }, + }); + }); + var uj = N2e(); + M2e((F2e = L2e(uj))).call(F2e, function (e) { + e === 'default' || + e === '__esModule' || + Object.prototype.hasOwnProperty.call(U2e, e) || + (e in Ms && Ms[e] === uj[e]) || + pj(Ms, e, { + enumerable: !0, + get: function () { + return uj[e]; + }, + }); + }); + var Pyt = Iyt.default; + Ms.default = Pyt; +}); +var nb = d((mQt, B2e) => { + B2e.exports = $2e().default; +}); +var cj, + j8, + ab, + dj, + Qh, + Oe, + Yi = Tn(() => { + 'use strict'; + (cj = W(require('fs'))), (j8 = W(require('os'))), (ab = W(require('path'))), (dj = W(qe())); + Ut(); + (Qh = ((a) => ( + (a.PRODUCTION = 'production'), (a.DEVELOPMENT = 'development'), (a.DEMO = 'demo'), (a.TEST = 'test'), a + ))(Qh || {})), + (Oe = class e { + static { + this.SFDX_INTEROPERABILITY = dj.env.getBoolean('SF_SFDX_INTEROPERABILITY', !0); + } + static { + this.SFDX_STATE_FOLDER = '.sfdx'; + } + static { + this.SF_STATE_FOLDER = '.sf'; + } + static { + this.STATE_FOLDER = e.SFDX_STATE_FOLDER; + } + static get SFDX_DIR() { + return ab.join(j8.homedir(), e.SFDX_STATE_FOLDER); + } + static get SF_DIR() { + return ab.join(j8.homedir(), e.SF_STATE_FOLDER); + } + static get DIR() { + return ab.join(j8.homedir(), e.SFDX_STATE_FOLDER); + } + static getEnvironmentMode() { + return Qh[dj.env.getKeyOf('SFDX_ENV', Qh, 'production', (t) => t.toUpperCase())]; + } + static async createDir(t) { + t = t ? ab.join(e.SFDX_DIR, t) : e.SFDX_DIR; + try { + process.platform === 'win32' + ? await cj.promises.mkdir(t, { recursive: !0 }) + : await cj.promises.mkdir(t, { recursive: !0, mode: 448 }); + } catch { + throw new Q(`Failed to create directory or set permissions for: ${t}`); + } + } + }); + }); +var mj = d((vQt, H2e) => { + 'use strict'; + var ob = (e) => e && typeof e.message == 'string', + fj = (e) => { + if (!e) return; + let t = e.cause; + if (typeof t == 'function') { + let r = e.cause(); + return ob(r) ? r : void 0; + } else return ob(t) ? t : void 0; + }, + V2e = (e, t) => { + if (!ob(e)) return ''; + let r = e.stack || ''; + if (t.has(e)) + return ( + r + + ` +causes have become circular...` + ); + let n = fj(e); + return n + ? (t.add(e), + r + + ` +caused by: ` + + V2e(n, t)) + : r; + }, + Ryt = (e) => V2e(e, new Set()), + z2e = (e, t, r) => { + if (!ob(e)) return ''; + let n = r ? '' : e.message || ''; + if (t.has(e)) return n + ': ...'; + let a = fj(e); + if (a) { + t.add(e); + let o = typeof e.cause == 'function'; + return n + (o ? '' : ': ') + z2e(a, t, o); + } else return n; + }, + jyt = (e) => z2e(e, new Set()); + H2e.exports = { isErrorLike: ob, getErrorCause: fj, stackWithCauses: Ryt, messageWithCauses: jyt }; +}); +var hj = d((yQt, W2e) => { + 'use strict'; + var Dyt = Symbol('circular-ref-tag'), + D8 = Symbol('pino-raw-err-ref'), + G2e = Object.create( + {}, + { + type: { enumerable: !0, writable: !0, value: void 0 }, + message: { enumerable: !0, writable: !0, value: void 0 }, + stack: { enumerable: !0, writable: !0, value: void 0 }, + aggregateErrors: { enumerable: !0, writable: !0, value: void 0 }, + raw: { + enumerable: !1, + get: function () { + return this[D8]; + }, + set: function (e) { + this[D8] = e; + }, + }, + } + ); + Object.defineProperty(G2e, D8, { writable: !0, value: {} }); + W2e.exports = { pinoErrProto: G2e, pinoErrorSymbols: { seen: Dyt, rawSymbol: D8 } }; +}); +var J2e = d((bQt, X2e) => { + 'use strict'; + X2e.exports = vj; + var { messageWithCauses: Nyt, stackWithCauses: qyt, isErrorLike: K2e } = mj(), + { pinoErrProto: Fyt, pinoErrorSymbols: Lyt } = hj(), + { seen: gj } = Lyt, + { toString: Myt } = Object.prototype; + function vj(e) { + if (!K2e(e)) return e; + e[gj] = void 0; + let t = Object.create(Fyt); + (t.type = Myt.call(e.constructor) === '[object Function]' ? e.constructor.name : e.name), + (t.message = Nyt(e)), + (t.stack = qyt(e)), + Array.isArray(e.errors) && (t.aggregateErrors = e.errors.map((r) => vj(r))); + for (let r in e) + if (t[r] === void 0) { + let n = e[r]; + K2e(n) ? r !== 'cause' && !Object.prototype.hasOwnProperty.call(n, gj) && (t[r] = vj(n)) : (t[r] = n); + } + return delete e[gj], (t.raw = e), t; + } +}); +var Q2e = d((_Qt, Y2e) => { + 'use strict'; + Y2e.exports = q8; + var { isErrorLike: yj } = mj(), + { pinoErrProto: Uyt, pinoErrorSymbols: $yt } = hj(), + { seen: N8 } = $yt, + { toString: Byt } = Object.prototype; + function q8(e) { + if (!yj(e)) return e; + e[N8] = void 0; + let t = Object.create(Uyt); + (t.type = Byt.call(e.constructor) === '[object Function]' ? e.constructor.name : e.name), + (t.message = e.message), + (t.stack = e.stack), + Array.isArray(e.errors) && (t.aggregateErrors = e.errors.map((r) => q8(r))), + yj(e.cause) && !Object.prototype.hasOwnProperty.call(e.cause, N8) && (t.cause = q8(e.cause)); + for (let r in e) + if (t[r] === void 0) { + let n = e[r]; + yj(n) ? Object.prototype.hasOwnProperty.call(n, N8) || (t[r] = q8(n)) : (t[r] = n); + } + return delete e[N8], (t.raw = e), t; + } +}); +var r6e = d((wQt, t6e) => { + 'use strict'; + t6e.exports = { mapHttpRequest: Vyt, reqSerializer: e6e }; + var bj = Symbol('pino-raw-req-ref'), + Z2e = Object.create( + {}, + { + id: { enumerable: !0, writable: !0, value: '' }, + method: { enumerable: !0, writable: !0, value: '' }, + url: { enumerable: !0, writable: !0, value: '' }, + query: { enumerable: !0, writable: !0, value: '' }, + params: { enumerable: !0, writable: !0, value: '' }, + headers: { enumerable: !0, writable: !0, value: {} }, + remoteAddress: { enumerable: !0, writable: !0, value: '' }, + remotePort: { enumerable: !0, writable: !0, value: '' }, + raw: { + enumerable: !1, + get: function () { + return this[bj]; + }, + set: function (e) { + this[bj] = e; + }, + }, + } + ); + Object.defineProperty(Z2e, bj, { writable: !0, value: {} }); + function e6e(e) { + let t = e.info || e.socket, + r = Object.create(Z2e); + if ( + ((r.id = typeof e.id == 'function' ? e.id() : e.id || (e.info ? e.info.id : void 0)), + (r.method = e.method), + e.originalUrl) + ) + r.url = e.originalUrl; + else { + let n = e.path; + r.url = typeof n == 'string' ? n : e.url ? e.url.path || e.url : void 0; + } + return ( + e.query && (r.query = e.query), + e.params && (r.params = e.params), + (r.headers = e.headers), + (r.remoteAddress = t && t.remoteAddress), + (r.remotePort = t && t.remotePort), + (r.raw = e.raw || e), + r + ); + } + function Vyt(e) { + return { req: e6e(e) }; + } +}); +var o6e = d((SQt, a6e) => { + 'use strict'; + a6e.exports = { mapHttpResponse: zyt, resSerializer: n6e }; + var _j = Symbol('pino-raw-res-ref'), + i6e = Object.create( + {}, + { + statusCode: { enumerable: !0, writable: !0, value: 0 }, + headers: { enumerable: !0, writable: !0, value: '' }, + raw: { + enumerable: !1, + get: function () { + return this[_j]; + }, + set: function (e) { + this[_j] = e; + }, + }, + } + ); + Object.defineProperty(i6e, _j, { writable: !0, value: {} }); + function n6e(e) { + let t = Object.create(i6e); + return ( + (t.statusCode = e.headersSent ? e.statusCode : null), + (t.headers = e.getHeaders ? e.getHeaders() : e._headers), + (t.raw = e), + t + ); + } + function zyt(e) { + return { res: n6e(e) }; + } +}); +var Sj = d((EQt, s6e) => { + 'use strict'; + var wj = J2e(), + Hyt = Q2e(), + F8 = r6e(), + L8 = o6e(); + s6e.exports = { + err: wj, + errWithCause: Hyt, + mapHttpRequest: F8.mapHttpRequest, + mapHttpResponse: L8.mapHttpResponse, + req: F8.reqSerializer, + res: L8.resSerializer, + wrapErrorSerializer: function (t) { + return t === wj + ? t + : function (n) { + return t(wj(n)); + }; + }, + wrapRequestSerializer: function (t) { + return t === F8.reqSerializer + ? t + : function (n) { + return t(F8.reqSerializer(n)); + }; + }, + wrapResponseSerializer: function (t) { + return t === L8.resSerializer + ? t + : function (n) { + return t(L8.resSerializer(n)); + }; + }, + }; +}); +var Ej = d((xQt, l6e) => { + 'use strict'; + function Gyt(e, t) { + return t; + } + l6e.exports = function () { + let t = Error.prepareStackTrace; + Error.prepareStackTrace = Gyt; + let r = new Error().stack; + if (((Error.prepareStackTrace = t), !Array.isArray(r))) return; + let n = r.slice(2), + a = []; + for (let o of n) o && a.push(o.getFileName()); + return a; + }; +}); +var p6e = d((OQt, u6e) => { + 'use strict'; + u6e.exports = Wyt; + function Wyt(e = {}) { + let { + ERR_PATHS_MUST_BE_STRINGS: t = () => 'fast-redact - Paths must be (non-empty) strings', + ERR_INVALID_PATH: r = (n) => `fast-redact \u2013 Invalid path (${n})`, + } = e; + return function ({ paths: a }) { + a.forEach((o) => { + if (typeof o != 'string') throw Error(t()); + try { + if (/〇/.test(o)) throw Error(); + let s = + (o[0] === '[' ? '' : '.') + + o + .replace(/^\*/, '\u3007') + .replace(/\.\*/g, '.\u3007') + .replace(/\[\*\]/g, '[\u3007]'); + if (/\n|\r|;/.test(s) || /\/\*/.test(s)) throw Error(); + Function(` + 'use strict' + const o = new Proxy({}, { get: () => o, set: () => { throw Error() } }); + const \u3007 = null; + o${s} + if ([o${s}].length !== 1) throw Error()`)(); + } catch { + throw Error(r(o)); + } + }); + }; + } +}); +var M8 = d((TQt, c6e) => { + 'use strict'; + c6e.exports = /[^.[\]]+|\[((?:.)*?)\]/g; +}); +var f6e = d((CQt, d6e) => { + 'use strict'; + var Kyt = M8(); + d6e.exports = Xyt; + function Xyt({ paths: e }) { + let t = []; + var r = 0; + let n = e.reduce(function (a, o, s) { + var l = o.match(Kyt).map((c) => c.replace(/'|"|`/g, '')); + let u = o[0] === '['; + l = l.map((c) => (c[0] === '[' ? c.substr(1, c.length - 2) : c)); + let p = l.indexOf('*'); + if (p > -1) { + let c = l.slice(0, p), + f = c.join('.'), + h = l.slice(p + 1, l.length), + m = h.length > 0; + r++, t.push({ before: c, beforeStr: f, after: h, nested: m }); + } else a[o] = { path: l, val: void 0, precensored: !1, circle: '', escPath: JSON.stringify(o), leadingBracket: u }; + return a; + }, {}); + return { wildcards: t, wcLen: r, secret: n }; + } +}); +var h6e = d((kQt, m6e) => { + 'use strict'; + var Jyt = M8(); + m6e.exports = Yyt; + function Yyt({ secret: e, serialize: t, wcLen: r, strict: n, isCensorFct: a, censorFctTakesPath: o }, s) { + let l = Function( + 'o', + ` + if (typeof o !== 'object' || o == null) { + ${tbt(n, t)} + } + const { censor, secret } = this + ${Qyt(e, a, o)} + this.compileRestore() + ${Zyt(r > 0, a, o)} + ${ebt(t)} + ` + ).bind(s); + return t === !1 && (l.restore = (u) => s.restore(u)), l; + } + function Qyt(e, t, r) { + return Object.keys(e).map((n) => { + let { escPath: a, leadingBracket: o, path: s } = e[n], + l = o ? 1 : 0, + u = o ? '' : '.', + p = []; + for (var c; (c = Jyt.exec(n)) !== null; ) { + let [, v] = c, + { index: y, input: S } = c; + y > l && p.push(S.substring(0, y - (v ? 0 : 1))); + } + var f = p.map((v) => `o${u}${v}`).join(' && '); + f.length === 0 ? (f += `o${u}${n} != null`) : (f += ` && o${u}${n} != null`); + let h = ` + switch (true) { + ${p.reverse().map( + (v) => ` + case o${u}${v} === censor: + secret[${a}].circle = ${JSON.stringify(v)} + break + ` + ).join(` +`)} + } + `, + m = r ? `val, ${JSON.stringify(s)}` : 'val'; + return ` + if (${f}) { + const val = o${u}${n} + if (val === censor) { + secret[${a}].precensored = true + } else { + secret[${a}].val = val + o${u}${n} = ${t ? `censor(${m})` : 'censor'} + ${h} + } + } + `; + }).join(` +`); + } + function Zyt(e, t, r) { + return e === !0 + ? ` + { + const { wildcards, wcLen, groupRedact, nestedRedact } = this + for (var i = 0; i < wcLen; i++) { + const { before, beforeStr, after, nested } = wildcards[i] + if (nested === true) { + secret[beforeStr] = secret[beforeStr] || [] + nestedRedact(secret[beforeStr], o, before, after, censor, ${t}, ${r}) + } else secret[beforeStr] = groupRedact(o, before, censor, ${t}, ${r}) + } + } + ` + : ''; + } + function ebt(e) { + return e === !1 + ? 'return o' + : ` + var s = this.serialize(o) + this.restore(o) + return s + `; + } + function tbt(e, t) { + return e === !0 + ? "throw Error('fast-redact: primitives cannot be redacted')" + : t === !1 + ? 'return o' + : 'return this.serialize(o)'; + } +}); +var xj = d((AQt, b6e) => { + 'use strict'; + b6e.exports = { groupRedact: ibt, groupRestore: rbt, nestedRedact: abt, nestedRestore: nbt }; + function rbt({ keys: e, values: t, target: r }) { + if (r == null) return; + let n = e.length; + for (var a = 0; a < n; a++) { + let o = e[a]; + r[o] = t[a]; + } + } + function ibt(e, t, r, n, a) { + let o = g6e(e, t); + if (o == null) return { keys: null, values: null, target: null, flat: !0 }; + let s = Object.keys(o), + l = s.length, + u = t.length, + p = a ? [...t] : void 0, + c = new Array(l); + for (var f = 0; f < l; f++) { + let h = s[f]; + (c[f] = o[h]), a ? ((p[u] = h), (o[h] = r(o[h], p))) : n ? (o[h] = r(o[h])) : (o[h] = r); + } + return { keys: s, values: c, target: o, flat: !0 }; + } + function nbt(e) { + let t = e.length; + for (var r = 0; r < t; r++) { + let { key: a, target: o, value: s, level: l } = e[r]; + if (l === 0 || l === 1) { + if ((Zh(o, a) && (o[a] = s), typeof o == 'object')) { + let u = Object.keys(o); + for (var n = 0; n < u.length; n++) { + let p = u[n], + c = o[p]; + Zh(c, a) && (c[a] = s); + } + } + } else y6e(a, o, s, l); + } + } + function abt(e, t, r, n, a, o, s) { + let l = g6e(t, r); + if (l == null) return; + let u = Object.keys(l), + p = u.length; + for (var c = 0; c < p; c++) { + let f = u[c], + { value: h, parent: m, exists: v, level: y } = obt(l, f, r, n, a, o, s); + v === !0 && m !== null && e.push({ key: n[n.length - 1], target: m, value: h, level: y }); + } + return e; + } + function Zh(e, t) { + return e != null ? ('hasOwn' in Object ? Object.hasOwn(e, t) : Object.prototype.hasOwnProperty.call(e, t)) : !1; + } + function obt(e, t, r, n, a, o, s) { + let l = n.length, + u = l - 1, + p = t; + var c = -1, + f, + h, + m, + v = null, + y = !0, + S = null, + w, + O, + x = !1, + _ = 0; + if (((m = f = e[t]), typeof f != 'object')) return { value: null, parent: null, exists: y }; + for (; f != null && ++c < l; ) { + if (((t = n[c]), (v = m), t !== '*' && !S && !(typeof f == 'object' && t in f))) { + y = !1; + break; + } + if (!(t === '*' && (S === '*' && (x = !0), (S = t), c !== u))) { + if (S) { + let T = Object.keys(f); + for (var b = 0; b < T.length; b++) { + let R = T[b]; + (O = f[R]), + (w = t === '*'), + x + ? ((_ = c), (m = v6e(O, _ - 1, t, r, n, a, o, s, p, f, h, m, w, R, c, u, y))) + : (w || (typeof O == 'object' && O !== null && t in O)) && + (w ? (m = O) : (m = O[t]), + (h = c !== u ? m : o ? (s ? a(m, [...r, p, ...n]) : a(m)) : a), + w + ? (f[R] = h) + : O[t] === h + ? (y = !1) + : (O[t] = (h === void 0 && a !== void 0) || (Zh(O, t) && h === m) ? O[t] : h)); + } + S = null; + } else + (m = f[t]), + (h = c !== u ? m : o ? (s ? a(m, [...r, p, ...n]) : a(m)) : a), + (f[t] = (Zh(f, t) && h === m) || (h === void 0 && a !== void 0) ? f[t] : h), + (f = f[t]); + if (typeof f != 'object') break; + (m === v || typeof m > 'u') && (y = !1); + } + } + return { value: m, parent: v, exists: y, level: _ }; + } + function g6e(e, t) { + for (var r = -1, n = t.length, a = e; a != null && ++r < n; ) a = a[t[r]]; + return a; + } + function v6e(e, t, r, n, a, o, s, l, u, p, c, f, h, m, v, y, S) { + if (t === 0) + return ( + (h || (typeof e == 'object' && e !== null && r in e)) && + (h ? (f = e) : (f = e[r]), + (c = v !== y ? f : s ? (l ? o(f, [...n, u, ...a]) : o(f)) : o), + h + ? (p[m] = c) + : e[r] === c + ? (S = !1) + : (e[r] = (c === void 0 && o !== void 0) || (Zh(e, r) && c === f) ? e[r] : c)), + f + ); + for (let O in e) + if (typeof e[O] == 'object') { + var w = v6e(e[O], t - 1, r, n, a, o, s, l, u, p, c, f, h, m, v, y, S); + return w; + } + } + function y6e(e, t, r, n) { + if (n === 0) { + Zh(t, e) && (t[e] = r); + return; + } + for (let a in t) typeof t[a] == 'object' && y6e(e, t[a], r, n - 1); + } +}); +var w6e = d((IQt, _6e) => { + 'use strict'; + var { groupRestore: sbt, nestedRestore: lbt } = xj(); + _6e.exports = ubt; + function ubt({ secret: e, wcLen: t }) { + return function () { + if (this.restore) return; + let n = Object.keys(e), + a = pbt(e, n), + o = t > 0, + s = o ? { secret: e, groupRestore: sbt, nestedRestore: lbt } : { secret: e }; + this.restore = Function('o', cbt(a, n, o)).bind(s); + }; + } + function pbt(e, t) { + return t + .map((r) => { + let { circle: n, escPath: a, leadingBracket: o } = e[r], + l = n ? `o.${n} = secret[${a}].val` : `o${o ? '' : '.'}${r} = secret[${a}].val`, + u = `secret[${a}].val = undefined`; + return ` + if (secret[${a}].val !== undefined) { + try { ${l} } catch (e) {} + ${u} + } + `; + }) + .join(''); + } + function cbt(e, t, r) { + return ` + const secret = this.secret + ${ + r === !0 + ? ` + const keys = Object.keys(secret) + const len = keys.length + for (var i = len - 1; i >= ${t.length}; i--) { + const k = keys[i] + const o = secret[k] + if (o.flat === true) this.groupRestore(o) + else this.nestedRestore(o) + secret[k] = null + } + ` + : '' + } + ${e} + return o + `; + } +}); +var E6e = d((PQt, S6e) => { + 'use strict'; + S6e.exports = dbt; + function dbt(e) { + let { + secret: t, + censor: r, + compileRestore: n, + serialize: a, + groupRedact: o, + nestedRedact: s, + wildcards: l, + wcLen: u, + } = e, + p = [{ secret: t, censor: r, compileRestore: n }]; + return ( + a !== !1 && p.push({ serialize: a }), + u > 0 && p.push({ groupRedact: o, nestedRedact: s, wildcards: l, wcLen: u }), + Object.assign(...p) + ); + } +}); +var T6e = d((RQt, O6e) => { + 'use strict'; + var x6e = p6e(), + fbt = f6e(), + mbt = h6e(), + hbt = w6e(), + { groupRedact: gbt, nestedRedact: vbt } = xj(), + ybt = E6e(), + bbt = M8(), + _bt = x6e(), + Oj = (e) => e; + Oj.restore = Oj; + var wbt = '[REDACTED]'; + Tj.rx = bbt; + Tj.validator = x6e; + O6e.exports = Tj; + function Tj(e = {}) { + let t = Array.from(new Set(e.paths || [])), + r = 'serialize' in e && (e.serialize === !1 || typeof e.serialize == 'function') ? e.serialize : JSON.stringify, + n = e.remove; + if (n === !0 && r !== JSON.stringify) + throw Error('fast-redact \u2013 remove option may only be set when serializer is JSON.stringify'); + let a = n === !0 ? void 0 : 'censor' in e ? e.censor : wbt, + o = typeof a == 'function', + s = o && a.length > 1; + if (t.length === 0) return r || Oj; + _bt({ paths: t, serialize: r, censor: a }); + let { wildcards: l, wcLen: u, secret: p } = fbt({ paths: t, censor: a }), + c = hbt({ secret: p, wcLen: u }), + f = 'strict' in e ? e.strict : !0; + return mbt( + { secret: p, wcLen: u, serialize: r, strict: f, isCensorFct: o, censorFctTakesPath: s }, + ybt({ + secret: p, + censor: a, + compileRestore: c, + serialize: r, + groupRedact: gbt, + nestedRedact: vbt, + wildcards: l, + wcLen: u, + }) + ); + } +}); +var eg = d((jQt, C6e) => { + 'use strict'; + var Sbt = Symbol('pino.setLevel'), + Ebt = Symbol('pino.getLevel'), + xbt = Symbol('pino.levelVal'), + Obt = Symbol('pino.useLevelLabels'), + Tbt = Symbol('pino.useOnlyCustomLevels'), + Cbt = Symbol('pino.mixin'), + kbt = Symbol('pino.lsCache'), + Abt = Symbol('pino.chindings'), + Ibt = Symbol('pino.asJson'), + Pbt = Symbol('pino.write'), + Rbt = Symbol('pino.redactFmt'), + jbt = Symbol('pino.time'), + Dbt = Symbol('pino.timeSliceIndex'), + Nbt = Symbol('pino.stream'), + qbt = Symbol('pino.stringify'), + Fbt = Symbol('pino.stringifySafe'), + Lbt = Symbol('pino.stringifiers'), + Mbt = Symbol('pino.end'), + Ubt = Symbol('pino.formatOpts'), + $bt = Symbol('pino.messageKey'), + Bbt = Symbol('pino.errorKey'), + Vbt = Symbol('pino.nestedKey'), + zbt = Symbol('pino.nestedKeyStr'), + Hbt = Symbol('pino.mixinMergeStrategy'), + Gbt = Symbol('pino.msgPrefix'), + Wbt = Symbol('pino.wildcardFirst'), + Kbt = Symbol.for('pino.serializers'), + Xbt = Symbol.for('pino.formatters'), + Jbt = Symbol.for('pino.hooks'), + Ybt = Symbol.for('pino.metadata'); + C6e.exports = { + setLevelSym: Sbt, + getLevelSym: Ebt, + levelValSym: xbt, + useLevelLabelsSym: Obt, + mixinSym: Cbt, + lsCacheSym: kbt, + chindingsSym: Abt, + asJsonSym: Ibt, + writeSym: Pbt, + serializersSym: Kbt, + redactFmtSym: Rbt, + timeSym: jbt, + timeSliceIndexSym: Dbt, + streamSym: Nbt, + stringifySym: qbt, + stringifySafeSym: Fbt, + stringifiersSym: Lbt, + endSym: Mbt, + formatOptsSym: Ubt, + messageKeySym: $bt, + errorKeySym: Bbt, + nestedKeySym: Vbt, + wildcardFirstSym: Wbt, + needsMetadataGsym: Ybt, + useOnlyCustomLevelsSym: Tbt, + formattersSym: Xbt, + hooksSym: Jbt, + nestedKeyStrSym: zbt, + mixinMergeStrategySym: Hbt, + msgPrefixSym: Gbt, + }; +}); +var Aj = d((DQt, P6e) => { + 'use strict'; + var kj = T6e(), + { redactFmtSym: Qbt, wildcardFirstSym: U8 } = eg(), + { rx: Cj, validator: Zbt } = kj, + k6e = Zbt({ + ERR_PATHS_MUST_BE_STRINGS: () => 'pino \u2013 redacted paths must be strings', + ERR_INVALID_PATH: (e) => `pino \u2013 redact paths array contains an invalid path (${e})`, + }), + A6e = '[Redacted]', + I6e = !1; + function e2t(e, t) { + let { paths: r, censor: n } = t2t(e), + a = r.reduce((l, u) => { + Cj.lastIndex = 0; + let p = Cj.exec(u), + c = Cj.exec(u), + f = p[1] !== void 0 ? p[1].replace(/^(?:"|'|`)(.*)(?:"|'|`)$/, '$1') : p[0]; + if ((f === '*' && (f = U8), c === null)) return (l[f] = null), l; + if (l[f] === null) return l; + let { index: h } = c, + m = `${u.substr(h, u.length - 1)}`; + return ( + (l[f] = l[f] || []), + f !== U8 && l[f].length === 0 && l[f].push(...(l[U8] || [])), + f === U8 && + Object.keys(l).forEach(function (v) { + l[v] && l[v].push(m); + }), + l[f].push(m), + l + ); + }, {}), + o = { [Qbt]: kj({ paths: r, censor: n, serialize: t, strict: I6e }) }, + s = (...l) => t(typeof n == 'function' ? n(...l) : n); + return [...Object.keys(a), ...Object.getOwnPropertySymbols(a)].reduce((l, u) => { + if (a[u] === null) l[u] = (p) => s(p, [u]); + else { + let p = typeof n == 'function' ? (c, f) => n(c, [u, ...f]) : n; + l[u] = kj({ paths: a[u], censor: p, serialize: t, strict: I6e }); + } + return l; + }, o); + } + function t2t(e) { + if (Array.isArray(e)) return (e = { paths: e, censor: A6e }), k6e(e), e; + let { paths: t, censor: r = A6e, remove: n } = e; + if (Array.isArray(t) === !1) throw Error('pino \u2013 redact must contain an array of strings'); + return n === !0 && (r = void 0), k6e({ paths: t, censor: r }), { paths: t, censor: r }; + } + P6e.exports = e2t; +}); +var j6e = d((NQt, R6e) => { + 'use strict'; + var r2t = () => '', + i2t = () => `,"time":${Date.now()}`, + n2t = () => `,"time":${Math.round(Date.now() / 1e3)}`, + a2t = () => `,"time":"${new Date(Date.now()).toISOString()}"`; + R6e.exports = { nullTime: r2t, epochTime: i2t, unixTime: n2t, isoTime: a2t }; +}); +var N6e = d((qQt, D6e) => { + 'use strict'; + function o2t(e) { + try { + return JSON.stringify(e); + } catch { + return '"[Circular]"'; + } + } + D6e.exports = s2t; + function s2t(e, t, r) { + var n = (r && r.stringify) || o2t, + a = 1; + if (typeof e == 'object' && e !== null) { + var o = t.length + a; + if (o === 1) return e; + var s = new Array(o); + s[0] = n(e); + for (var l = 1; l < o; l++) s[l] = n(t[l]); + return s.join(' '); + } + if (typeof e != 'string') return e; + var u = t.length; + if (u === 0) return e; + for (var p = '', c = 1 - a, f = -1, h = (e && e.length) || 0, m = 0; m < h; ) { + if (e.charCodeAt(m) === 37 && m + 1 < h) { + switch (((f = f > -1 ? f : 0), e.charCodeAt(m + 1))) { + case 100: + case 102: + if (c >= u || t[c] == null) break; + f < m && (p += e.slice(f, m)), (p += Number(t[c])), (f = m + 2), m++; + break; + case 105: + if (c >= u || t[c] == null) break; + f < m && (p += e.slice(f, m)), (p += Math.floor(Number(t[c]))), (f = m + 2), m++; + break; + case 79: + case 111: + case 106: + if (c >= u || t[c] === void 0) break; + f < m && (p += e.slice(f, m)); + var v = typeof t[c]; + if (v === 'string') { + (p += "'" + t[c] + "'"), (f = m + 2), m++; + break; + } + if (v === 'function') { + (p += t[c].name || ''), (f = m + 2), m++; + break; + } + (p += n(t[c])), (f = m + 2), m++; + break; + case 115: + if (c >= u) break; + f < m && (p += e.slice(f, m)), (p += String(t[c])), (f = m + 2), m++; + break; + case 37: + f < m && (p += e.slice(f, m)), (p += '%'), (f = m + 2), m++, c--; + break; + } + ++c; + } + ++m; + } + return f === -1 ? e : (f < h && (p += e.slice(f)), p); + } +}); +var Pj = d((FQt, Ij) => { + 'use strict'; + if (typeof SharedArrayBuffer < 'u' && typeof Atomics < 'u') { + let t = function (r) { + if ((r > 0 && r < 1 / 0) === !1) + throw typeof r != 'number' && typeof r != 'bigint' + ? TypeError('sleep: ms must be a number') + : RangeError('sleep: ms must be a number that is greater than 0 but less than Infinity'); + Atomics.wait(e, 0, 0, Number(r)); + }, + e = new Int32Array(new SharedArrayBuffer(4)); + Ij.exports = t; + } else { + let e = function (t) { + if ((t > 0 && t < 1 / 0) === !1) + throw typeof t != 'number' && typeof t != 'bigint' + ? TypeError('sleep: ms must be a number') + : RangeError('sleep: ms must be a number that is greater than 0 but less than Infinity'); + let n = Date.now() + Number(t); + for (; n > Date.now(); ); + }; + Ij.exports = e; + } +}); +var V6e = d((LQt, B6e) => { + 'use strict'; + var Rr = require('fs'), + l2t = require('events'), + u2t = require('util').inherits, + q6e = require('path'), + Rj = Pj(), + $8 = 100, + B8 = Buffer.allocUnsafe(0), + p2t = 16 * 1024, + F6e = 'buffer', + L6e = 'utf8'; + function M6e(e, t) { + (t._opening = !0), (t._writing = !0), (t._asyncDrainScheduled = !1); + function r(o, s) { + if (o) { + (t._reopening = !1), + (t._writing = !1), + (t._opening = !1), + t.sync + ? process.nextTick(() => { + t.listenerCount('error') > 0 && t.emit('error', o); + }) + : t.emit('error', o); + return; + } + (t.fd = s), + (t.file = e), + (t._reopening = !1), + (t._opening = !1), + (t._writing = !1), + t.sync ? process.nextTick(() => t.emit('ready')) : t.emit('ready'), + !(t._reopening || t.destroyed) && + ((!t._writing && t._len > t.minLength) || t._flushPending) && + t._actualWrite(); + } + let n = t.append ? 'a' : 'w', + a = t.mode; + if (t.sync) + try { + t.mkdir && Rr.mkdirSync(q6e.dirname(e), { recursive: !0 }); + let o = Rr.openSync(e, n, a); + r(null, o); + } catch (o) { + throw (r(o), o); + } + else + t.mkdir + ? Rr.mkdir(q6e.dirname(e), { recursive: !0 }, (o) => { + if (o) return r(o); + Rr.open(e, n, a, r); + }) + : Rr.open(e, n, a, r); + } + function Mo(e) { + if (!(this instanceof Mo)) return new Mo(e); + let { + fd: t, + dest: r, + minLength: n, + maxLength: a, + maxWrite: o, + sync: s, + append: l = !0, + mkdir: u, + retryEAGAIN: p, + fsync: c, + contentMode: f, + mode: h, + } = e || {}; + (t = t || r), + (this._len = 0), + (this.fd = -1), + (this._bufs = []), + (this._lens = []), + (this._writing = !1), + (this._ending = !1), + (this._reopening = !1), + (this._asyncDrainScheduled = !1), + (this._flushPending = !1), + (this._hwm = Math.max(n || 0, 16387)), + (this.file = null), + (this.destroyed = !1), + (this.minLength = n || 0), + (this.maxLength = a || 0), + (this.maxWrite = o || p2t), + (this.sync = s || !1), + (this.writable = !0), + (this._fsync = c || !1), + (this.append = l || !1), + (this.mode = h), + (this.retryEAGAIN = p || (() => !0)), + (this.mkdir = u || !1); + let m, v; + if (f === F6e) + (this._writingBuf = B8), + (this.write = f2t), + (this.flush = h2t), + (this.flushSync = v2t), + (this._actualWrite = b2t), + (m = () => Rr.writeSync(this.fd, this._writingBuf)), + (v = () => Rr.write(this.fd, this._writingBuf, this.release)); + else if (f === void 0 || f === L6e) + (this._writingBuf = ''), + (this.write = d2t), + (this.flush = m2t), + (this.flushSync = g2t), + (this._actualWrite = y2t), + (m = () => Rr.writeSync(this.fd, this._writingBuf, 'utf8')), + (v = () => Rr.write(this.fd, this._writingBuf, 'utf8', this.release)); + else throw new Error(`SonicBoom supports "${L6e}" and "${F6e}", but passed ${f}`); + if (typeof t == 'number') (this.fd = t), process.nextTick(() => this.emit('ready')); + else if (typeof t == 'string') M6e(t, this); + else throw new Error('SonicBoom supports only file descriptors and files'); + if (this.minLength >= this.maxWrite) + throw new Error(`minLength should be smaller than maxWrite (${this.maxWrite})`); + (this.release = (y, S) => { + if (y) { + if ( + (y.code === 'EAGAIN' || y.code === 'EBUSY') && + this.retryEAGAIN(y, this._writingBuf.length, this._len - this._writingBuf.length) + ) + if (this.sync) + try { + Rj($8), this.release(void 0, 0); + } catch (O) { + this.release(O); + } + else setTimeout(v, $8); + else (this._writing = !1), this.emit('error', y); + return; + } + if ( + (this.emit('write', S), + (this._len -= S), + this._len < 0 && (this._len = 0), + (this._writingBuf = this._writingBuf.slice(S)), + this._writingBuf.length) + ) { + if (!this.sync) { + v(); + return; + } + try { + do { + let O = m(); + (this._len -= O), (this._writingBuf = this._writingBuf.slice(O)); + } while (this._writingBuf.length); + } catch (O) { + this.release(O); + return; + } + } + this._fsync && Rr.fsyncSync(this.fd); + let w = this._len; + this._reopening + ? ((this._writing = !1), (this._reopening = !1), this.reopen()) + : w > this.minLength + ? this._actualWrite() + : this._ending + ? w > 0 + ? this._actualWrite() + : ((this._writing = !1), V8(this)) + : ((this._writing = !1), + this.sync + ? this._asyncDrainScheduled || ((this._asyncDrainScheduled = !0), process.nextTick(c2t, this)) + : this.emit('drain')); + }), + this.on('newListener', function (y) { + y === 'drain' && (this._asyncDrainScheduled = !1); + }); + } + function c2t(e) { + e.listenerCount('drain') > 0 && ((e._asyncDrainScheduled = !1), e.emit('drain')); + } + u2t(Mo, l2t); + function U6e(e, t) { + return e.length === 0 ? B8 : e.length === 1 ? e[0] : Buffer.concat(e, t); + } + function d2t(e) { + if (this.destroyed) throw new Error('SonicBoom destroyed'); + let t = this._len + e.length, + r = this._bufs; + return this.maxLength && t > this.maxLength + ? (this.emit('drop', e), this._len < this._hwm) + : (r.length === 0 || r[r.length - 1].length + e.length > this.maxWrite ? r.push('' + e) : (r[r.length - 1] += e), + (this._len = t), + !this._writing && this._len >= this.minLength && this._actualWrite(), + this._len < this._hwm); + } + function f2t(e) { + if (this.destroyed) throw new Error('SonicBoom destroyed'); + let t = this._len + e.length, + r = this._bufs, + n = this._lens; + return this.maxLength && t > this.maxLength + ? (this.emit('drop', e), this._len < this._hwm) + : (r.length === 0 || n[n.length - 1] + e.length > this.maxWrite + ? (r.push([e]), n.push(e.length)) + : (r[r.length - 1].push(e), (n[n.length - 1] += e.length)), + (this._len = t), + !this._writing && this._len >= this.minLength && this._actualWrite(), + this._len < this._hwm); + } + function $6e(e) { + this._flushPending = !0; + let t = () => { + this._fsync + ? ((this._flushPending = !1), e()) + : Rr.fsync(this.fd, (n) => { + (this._flushPending = !1), e(n); + }), + this.off('error', r); + }, + r = (n) => { + (this._flushPending = !1), e(n), this.off('drain', t); + }; + this.once('drain', t), this.once('error', r); + } + function m2t(e) { + if (e != null && typeof e != 'function') throw new Error('flush cb must be a function'); + if (this.destroyed) { + let t = new Error('SonicBoom destroyed'); + if (e) { + e(t); + return; + } + throw t; + } + if (this.minLength <= 0) { + e?.(); + return; + } + e && $6e.call(this, e), !this._writing && (this._bufs.length === 0 && this._bufs.push(''), this._actualWrite()); + } + function h2t(e) { + if (e != null && typeof e != 'function') throw new Error('flush cb must be a function'); + if (this.destroyed) { + let t = new Error('SonicBoom destroyed'); + if (e) { + e(t); + return; + } + throw t; + } + if (this.minLength <= 0) { + e?.(); + return; + } + e && $6e.call(this, e), + !this._writing && (this._bufs.length === 0 && (this._bufs.push([]), this._lens.push(0)), this._actualWrite()); + } + Mo.prototype.reopen = function (e) { + if (this.destroyed) throw new Error('SonicBoom destroyed'); + if (this._opening) { + this.once('ready', () => { + this.reopen(e); + }); + return; + } + if (this._ending) return; + if (!this.file) throw new Error('Unable to reopen a file descriptor, you must pass a file to SonicBoom'); + if (((this._reopening = !0), this._writing)) return; + let t = this.fd; + this.once('ready', () => { + t !== this.fd && + Rr.close(t, (r) => { + if (r) return this.emit('error', r); + }); + }), + M6e(e || this.file, this); + }; + Mo.prototype.end = function () { + if (this.destroyed) throw new Error('SonicBoom destroyed'); + if (this._opening) { + this.once('ready', () => { + this.end(); + }); + return; + } + this._ending || + ((this._ending = !0), !this._writing && (this._len > 0 && this.fd >= 0 ? this._actualWrite() : V8(this))); + }; + function g2t() { + if (this.destroyed) throw new Error('SonicBoom destroyed'); + if (this.fd < 0) throw new Error('sonic boom is not ready yet'); + !this._writing && this._writingBuf.length > 0 && (this._bufs.unshift(this._writingBuf), (this._writingBuf = '')); + let e = ''; + for (; this._bufs.length || e; ) { + e.length <= 0 && (e = this._bufs[0]); + try { + let t = Rr.writeSync(this.fd, e, 'utf8'); + (e = e.slice(t)), (this._len = Math.max(this._len - t, 0)), e.length <= 0 && this._bufs.shift(); + } catch (t) { + if ((t.code === 'EAGAIN' || t.code === 'EBUSY') && !this.retryEAGAIN(t, e.length, this._len - e.length)) + throw t; + Rj($8); + } + } + try { + Rr.fsyncSync(this.fd); + } catch {} + } + function v2t() { + if (this.destroyed) throw new Error('SonicBoom destroyed'); + if (this.fd < 0) throw new Error('sonic boom is not ready yet'); + !this._writing && this._writingBuf.length > 0 && (this._bufs.unshift([this._writingBuf]), (this._writingBuf = B8)); + let e = B8; + for (; this._bufs.length || e.length; ) { + e.length <= 0 && (e = U6e(this._bufs[0], this._lens[0])); + try { + let t = Rr.writeSync(this.fd, e); + (e = e.subarray(t)), + (this._len = Math.max(this._len - t, 0)), + e.length <= 0 && (this._bufs.shift(), this._lens.shift()); + } catch (t) { + if ((t.code === 'EAGAIN' || t.code === 'EBUSY') && !this.retryEAGAIN(t, e.length, this._len - e.length)) + throw t; + Rj($8); + } + } + } + Mo.prototype.destroy = function () { + this.destroyed || V8(this); + }; + function y2t() { + let e = this.release; + if (((this._writing = !0), (this._writingBuf = this._writingBuf || this._bufs.shift() || ''), this.sync)) + try { + let t = Rr.writeSync(this.fd, this._writingBuf, 'utf8'); + e(null, t); + } catch (t) { + e(t); + } + else Rr.write(this.fd, this._writingBuf, 'utf8', e); + } + function b2t() { + let e = this.release; + if ( + ((this._writing = !0), + (this._writingBuf = this._writingBuf.length ? this._writingBuf : U6e(this._bufs.shift(), this._lens.shift())), + this.sync) + ) + try { + let t = Rr.writeSync(this.fd, this._writingBuf); + e(null, t); + } catch (t) { + e(t); + } + else Rr.write(this.fd, this._writingBuf, e); + } + function V8(e) { + if (e.fd === -1) { + e.once('ready', V8.bind(null, e)); + return; + } + (e.destroyed = !0), (e._bufs = []), (e._lens = []), Rr.fsync(e.fd, t); + function t() { + e.fd !== 1 && e.fd !== 2 ? Rr.close(e.fd, r) : r(); + } + function r(n) { + if (n) { + e.emit('error', n); + return; + } + e._ending && !e._writing && e.emit('finish'), e.emit('close'); + } + } + Mo.SonicBoom = Mo; + Mo.default = Mo; + B6e.exports = Mo; +}); +var jj = d((MQt, X6e) => { + 'use strict'; + var Ap = { exit: [], beforeExit: [] }, + z6e = { exit: w2t, beforeExit: S2t }, + H6e = new FinalizationRegistry(E2t); + function _2t(e) { + Ap[e].length > 0 || process.on(e, z6e[e]); + } + function G6e(e) { + Ap[e].length > 0 || process.removeListener(e, z6e[e]); + } + function w2t() { + W6e('exit'); + } + function S2t() { + W6e('beforeExit'); + } + function W6e(e) { + for (let t of Ap[e]) { + let r = t.deref(), + n = t.fn; + r !== void 0 && n(r, e); + } + } + function E2t(e) { + for (let t of ['exit', 'beforeExit']) { + let r = Ap[t].indexOf(e); + Ap[t].splice(r, r + 1), G6e(t); + } + } + function K6e(e, t, r) { + if (t === void 0) throw new Error("the object can't be undefined"); + _2t(e); + let n = new WeakRef(t); + (n.fn = r), H6e.register(t, n), Ap[e].push(n); + } + function x2t(e, t) { + K6e('exit', e, t); + } + function O2t(e, t) { + K6e('beforeExit', e, t); + } + function T2t(e) { + H6e.unregister(e); + for (let t of ['exit', 'beforeExit']) + (Ap[t] = Ap[t].filter((r) => { + let n = r.deref(); + return n && n !== e; + })), + G6e(t); + } + X6e.exports = { register: x2t, registerBeforeExit: O2t, unregister: T2t }; +}); +var J6e = d((UQt, C2t) => { + C2t.exports = { + name: 'thread-stream', + version: '2.3.0', + description: 'A streaming way to send data to a Node.js Worker Thread', + main: 'index.js', + types: 'index.d.ts', + dependencies: { 'real-require': '^0.2.0' }, + devDependencies: { + '@types/node': '^18.0.0', + '@types/tap': '^15.0.0', + desm: '^1.3.0', + fastbench: '^1.0.1', + husky: '^8.0.1', + 'sonic-boom': '^3.0.0', + standard: '^17.0.0', + tap: '^16.2.0', + 'ts-node': '^10.8.0', + typescript: '^4.7.2', + 'why-is-node-running': '^2.2.2', + }, + scripts: { + test: 'standard && npm run transpile && tap test/*.test.*js && tap --ts test/*.test.*ts', + 'test:ci': 'standard && npm run transpile && npm run test:ci:js && npm run test:ci:ts', + 'test:ci:js': 'tap --no-check-coverage --coverage-report=lcovonly "test/**/*.test.*js"', + 'test:ci:ts': 'tap --ts --no-check-coverage --coverage-report=lcovonly "test/**/*.test.*ts"', + 'test:yarn': 'npm run transpile && tap "test/**/*.test.js" --no-check-coverage', + transpile: 'sh ./test/ts/transpile.sh', + prepare: 'husky install', + }, + standard: { ignore: ['test/ts/**/*'] }, + repository: { type: 'git', url: 'git+https://github.com/mcollina/thread-stream.git' }, + keywords: ['worker', 'thread', 'threads', 'stream'], + author: 'Matteo Collina ', + license: 'MIT', + bugs: { url: 'https://github.com/mcollina/thread-stream/issues' }, + homepage: 'https://github.com/mcollina/thread-stream#readme', + }; +}); +var Q6e = d(($Qt, Y6e) => { + 'use strict'; + function k2t(e, t, r, n, a) { + let o = Date.now() + n, + s = Atomics.load(e, t); + if (s === r) { + a(null, 'ok'); + return; + } + let l = s, + u = (p) => { + Date.now() > o + ? a(null, 'timed-out') + : setTimeout(() => { + (l = s), + (s = Atomics.load(e, t)), + s === l ? u(p >= 1e3 ? 1e3 : p * 2) : s === r ? a(null, 'ok') : a(null, 'not-equal'); + }, p); + }; + u(1); + } + function A2t(e, t, r, n, a) { + let o = Date.now() + n, + s = Atomics.load(e, t); + if (s !== r) { + a(null, 'ok'); + return; + } + let l = (u) => { + Date.now() > o + ? a(null, 'timed-out') + : setTimeout(() => { + (s = Atomics.load(e, t)), s !== r ? a(null, 'ok') : l(u >= 1e3 ? 1e3 : u * 2); + }, u); + }; + l(1); + } + Y6e.exports = { wait: k2t, waitDiff: A2t }; +}); +var e4e = d((BQt, Z6e) => { + 'use strict'; + Z6e.exports = { WRITE_INDEX: 4, READ_INDEX: 8 }; +}); +var a4e = d((zQt, n4e) => { + 'use strict'; + var { version: I2t } = J6e(), + { EventEmitter: P2t } = require('events'), + { Worker: R2t } = require('worker_threads'), + { join: j2t } = require('path'), + { pathToFileURL: D2t } = require('url'), + { wait: N2t } = Q6e(), + { WRITE_INDEX: Ln, READ_INDEX: Us } = e4e(), + q2t = require('buffer'), + F2t = require('assert'), + Y = Symbol('kImpl'), + L2t = q2t.constants.MAX_STRING_LENGTH, + H8 = class { + constructor(t) { + this._value = t; + } + deref() { + return this._value; + } + }, + M2t = + global.FinalizationRegistry || + class { + register() {} + unregister() {} + }, + U2t = global.WeakRef || H8, + t4e = new M2t((e) => { + e.exited || e.terminate(); + }); + function $2t(e, t) { + let { filename: r, workerData: n } = t, + o = + ('__bundlerPathsOverrides' in globalThis ? globalThis.__bundlerPathsOverrides : {})['thread-stream-worker'] || + j2t(__dirname, 'lib', 'worker.js'), + s = new R2t(o, { + ...t.workerOpts, + trackUnmanagedFds: !1, + workerData: { + filename: r.indexOf('file://') === 0 ? r : D2t(r).href, + dataBuf: e[Y].dataBuf, + stateBuf: e[Y].stateBuf, + workerData: { $context: { threadStreamVersion: I2t }, ...n }, + }, + }); + return (s.stream = new H8(e)), s.on('message', B2t), s.on('exit', i4e), t4e.register(e, s), s; + } + function r4e(e) { + F2t(!e[Y].sync), e[Y].needDrain && ((e[Y].needDrain = !1), e.emit('drain')); + } + function z8(e) { + let t = Atomics.load(e[Y].state, Ln), + r = e[Y].data.length - t; + if (r > 0) { + if (e[Y].buf.length === 0) { + (e[Y].flushing = !1), e[Y].ending ? Lj(e) : e[Y].needDrain && process.nextTick(r4e, e); + return; + } + let n = e[Y].buf.slice(0, r), + a = Buffer.byteLength(n); + a <= r + ? ((e[Y].buf = e[Y].buf.slice(r)), G8(e, n, z8.bind(null, e))) + : e.flush(() => { + if (!e.destroyed) { + for (Atomics.store(e[Y].state, Us, 0), Atomics.store(e[Y].state, Ln, 0); a > e[Y].data.length; ) + (r = r / 2), (n = e[Y].buf.slice(0, r)), (a = Buffer.byteLength(n)); + (e[Y].buf = e[Y].buf.slice(r)), G8(e, n, z8.bind(null, e)); + } + }); + } else if (r === 0) { + if (t === 0 && e[Y].buf.length === 0) return; + e.flush(() => { + Atomics.store(e[Y].state, Us, 0), Atomics.store(e[Y].state, Ln, 0), z8(e); + }); + } else $s(e, new Error('overwritten')); + } + function B2t(e) { + let t = this.stream.deref(); + if (t === void 0) { + (this.exited = !0), this.terminate(); + return; + } + switch (e.code) { + case 'READY': + (this.stream = new U2t(t)), + t.flush(() => { + (t[Y].ready = !0), t.emit('ready'); + }); + break; + case 'ERROR': + $s(t, e.err); + break; + case 'EVENT': + Array.isArray(e.args) ? t.emit(e.name, ...e.args) : t.emit(e.name, e.args); + break; + default: + $s(t, new Error('this should not happen: ' + e.code)); + } + } + function i4e(e) { + let t = this.stream.deref(); + t !== void 0 && + (t4e.unregister(t), + (t.worker.exited = !0), + t.worker.off('exit', i4e), + $s(t, e !== 0 ? new Error('the worker thread exited') : null)); + } + var Nj = class extends P2t { + constructor(t = {}) { + if ((super(), t.bufferSize < 4)) throw new Error('bufferSize must at least fit a 4-byte utf-8 char'); + (this[Y] = {}), + (this[Y].stateBuf = new SharedArrayBuffer(128)), + (this[Y].state = new Int32Array(this[Y].stateBuf)), + (this[Y].dataBuf = new SharedArrayBuffer(t.bufferSize || 4 * 1024 * 1024)), + (this[Y].data = Buffer.from(this[Y].dataBuf)), + (this[Y].sync = t.sync || !1), + (this[Y].ending = !1), + (this[Y].ended = !1), + (this[Y].needDrain = !1), + (this[Y].destroyed = !1), + (this[Y].flushing = !1), + (this[Y].ready = !1), + (this[Y].finished = !1), + (this[Y].errored = null), + (this[Y].closed = !1), + (this[Y].buf = ''), + (this.worker = $2t(this, t)); + } + write(t) { + if (this[Y].destroyed) return qj(this, new Error('the worker has exited')), !1; + if (this[Y].ending) return qj(this, new Error('the worker is ending')), !1; + if (this[Y].flushing && this[Y].buf.length + t.length >= L2t) + try { + Dj(this), (this[Y].flushing = !0); + } catch (r) { + return $s(this, r), !1; + } + if (((this[Y].buf += t), this[Y].sync)) + try { + return Dj(this), !0; + } catch (r) { + return $s(this, r), !1; + } + return ( + this[Y].flushing || ((this[Y].flushing = !0), setImmediate(z8, this)), + (this[Y].needDrain = this[Y].data.length - this[Y].buf.length - Atomics.load(this[Y].state, Ln) <= 0), + !this[Y].needDrain + ); + } + end() { + this[Y].destroyed || ((this[Y].ending = !0), Lj(this)); + } + flush(t) { + if (this[Y].destroyed) { + typeof t == 'function' && process.nextTick(t, new Error('the worker has exited')); + return; + } + let r = Atomics.load(this[Y].state, Ln); + N2t(this[Y].state, Us, r, 1 / 0, (n, a) => { + if (n) { + $s(this, n), process.nextTick(t, n); + return; + } + if (a === 'not-equal') { + this.flush(t); + return; + } + process.nextTick(t); + }); + } + flushSync() { + this[Y].destroyed || (Dj(this), Fj(this)); + } + unref() { + this.worker.unref(); + } + ref() { + this.worker.ref(); + } + get ready() { + return this[Y].ready; + } + get destroyed() { + return this[Y].destroyed; + } + get closed() { + return this[Y].closed; + } + get writable() { + return !this[Y].destroyed && !this[Y].ending; + } + get writableEnded() { + return this[Y].ending; + } + get writableFinished() { + return this[Y].finished; + } + get writableNeedDrain() { + return this[Y].needDrain; + } + get writableObjectMode() { + return !1; + } + get writableErrored() { + return this[Y].errored; + } + }; + function qj(e, t) { + setImmediate(() => { + e.emit('error', t); + }); + } + function $s(e, t) { + e[Y].destroyed || + ((e[Y].destroyed = !0), + t && ((e[Y].errored = t), qj(e, t)), + e.worker.exited + ? setImmediate(() => { + (e[Y].closed = !0), e.emit('close'); + }) + : e.worker + .terminate() + .catch(() => {}) + .then(() => { + (e[Y].closed = !0), e.emit('close'); + })); + } + function G8(e, t, r) { + let n = Atomics.load(e[Y].state, Ln), + a = Buffer.byteLength(t); + return e[Y].data.write(t, n), Atomics.store(e[Y].state, Ln, n + a), Atomics.notify(e[Y].state, Ln), r(), !0; + } + function Lj(e) { + if (!(e[Y].ended || !e[Y].ending || e[Y].flushing)) { + e[Y].ended = !0; + try { + e.flushSync(); + let t = Atomics.load(e[Y].state, Us); + Atomics.store(e[Y].state, Ln, -1), Atomics.notify(e[Y].state, Ln); + let r = 0; + for (; t !== -1; ) { + if ((Atomics.wait(e[Y].state, Us, t, 1e3), (t = Atomics.load(e[Y].state, Us)), t === -2)) { + $s(e, new Error('end() failed')); + return; + } + if (++r === 10) { + $s(e, new Error('end() took too long (10s)')); + return; + } + } + process.nextTick(() => { + (e[Y].finished = !0), e.emit('finish'); + }); + } catch (t) { + $s(e, t); + } + } + } + function Dj(e) { + let t = () => { + e[Y].ending ? Lj(e) : e[Y].needDrain && process.nextTick(r4e, e); + }; + for (e[Y].flushing = !1; e[Y].buf.length !== 0; ) { + let r = Atomics.load(e[Y].state, Ln), + n = e[Y].data.length - r; + if (n === 0) { + Fj(e), Atomics.store(e[Y].state, Us, 0), Atomics.store(e[Y].state, Ln, 0); + continue; + } else if (n < 0) throw new Error('overwritten'); + let a = e[Y].buf.slice(0, n), + o = Buffer.byteLength(a); + if (o <= n) (e[Y].buf = e[Y].buf.slice(n)), G8(e, a, t); + else { + for (Fj(e), Atomics.store(e[Y].state, Us, 0), Atomics.store(e[Y].state, Ln, 0); o > e[Y].buf.length; ) + (n = n / 2), (a = e[Y].buf.slice(0, n)), (o = Buffer.byteLength(a)); + (e[Y].buf = e[Y].buf.slice(n)), G8(e, a, t); + } + } + } + function Fj(e) { + if (e[Y].flushing) throw new Error('unable to flush while flushing'); + let t = Atomics.load(e[Y].state, Ln), + r = 0; + for (;;) { + let n = Atomics.load(e[Y].state, Us); + if (n === -2) throw Error('_flushSync failed'); + if (n !== t) Atomics.wait(e[Y].state, Us, n, 1e3); + else break; + if (++r === 10) throw new Error('_flushSync took too long (10s)'); + } + } + n4e.exports = Nj; +}); +var $j = d((HQt, o4e) => { + 'use strict'; + var { createRequire: V2t } = require('module'), + z2t = Ej(), + { join: Mj, isAbsolute: H2t, sep: G2t } = require('path'), + W2t = Pj(), + Uj = jj(), + K2t = a4e(); + function X2t(e) { + Uj.register(e, Y2t), + Uj.registerBeforeExit(e, Q2t), + e.on('close', function () { + Uj.unregister(e); + }); + } + function J2t(e, t, r) { + let n = new K2t({ filename: e, workerData: t, workerOpts: r }); + n.on('ready', a), + n.on('close', function () { + process.removeListener('exit', o); + }), + process.on('exit', o); + function a() { + process.removeListener('exit', o), n.unref(), r.autoEnd !== !1 && X2t(n); + } + function o() { + n.closed || (n.flushSync(), W2t(100), n.end()); + } + return n; + } + function Y2t(e) { + e.ref(), + e.flushSync(), + e.end(), + e.once('close', function () { + e.unref(); + }); + } + function Q2t(e) { + e.flushSync(); + } + function Z2t(e) { + let { pipeline: t, targets: r, levels: n, dedupe: a, options: o = {}, worker: s = {}, caller: l = z2t() } = e, + u = typeof l == 'string' ? [l] : l, + p = '__bundlerPathsOverrides' in globalThis ? globalThis.__bundlerPathsOverrides : {}, + c = e.target; + if (c && r) throw new Error('only one of target or targets can be specified'); + return ( + r + ? ((c = p['pino-worker'] || Mj(__dirname, 'worker.js')), + (o.targets = r.map((h) => ({ ...h, target: f(h.target) })))) + : t && + ((c = p['pino-pipeline-worker'] || Mj(__dirname, 'worker-pipeline.js')), + (o.targets = t.map((h) => ({ ...h, target: f(h.target) })))), + n && (o.levels = n), + a && (o.dedupe = a), + J2t(f(c), o, s) + ); + function f(h) { + if (((h = p[h] || h), H2t(h) || h.indexOf('file://') === 0)) return h; + if (h === 'pino/file') return Mj(__dirname, '..', 'file.js'); + let m; + for (let v of u) + try { + let y = v === 'node:repl' ? process.cwd() + G2t : v; + m = V2t(y).resolve(h); + break; + } catch { + continue; + } + if (!m) throw new Error(`unable to determine transport target for "${h}"`); + return m; + } + } + o4e.exports = Z2t; +}); +var X8 = d((GQt, v4e) => { + 'use strict'; + var s4e = N6e(), + { mapHttpRequest: e6t, mapHttpResponse: t6t } = Sj(), + Vj = V6e(), + l4e = jj(), + { + lsCacheSym: r6t, + chindingsSym: c4e, + writeSym: u4e, + serializersSym: d4e, + formatOptsSym: p4e, + endSym: i6t, + stringifiersSym: f4e, + stringifySym: m4e, + stringifySafeSym: zj, + wildcardFirstSym: h4e, + nestedKeySym: n6t, + formattersSym: g4e, + messageKeySym: a6t, + errorKeySym: o6t, + nestedKeyStrSym: s6t, + msgPrefixSym: W8, + } = eg(), + { isMainThread: l6t } = require('worker_threads'), + u6t = $j(); + function tg() {} + function p6t(e, t) { + if (!t) return r; + return function (...a) { + t.call(this, a, r, e); + }; + function r(n, ...a) { + if (typeof n == 'object') { + let o = n; + n !== null && + (n.method && n.headers && n.socket ? (n = e6t(n)) : typeof n.setHeader == 'function' && (n = t6t(n))); + let s; + o === null && a.length === 0 ? (s = [null]) : ((o = a.shift()), (s = a)), + typeof this[W8] == 'string' && o !== void 0 && o !== null && (o = this[W8] + o), + this[u4e](n, s4e(o, s, this[p4e]), e); + } else { + let o = n === void 0 ? a.shift() : n; + typeof this[W8] == 'string' && o !== void 0 && o !== null && (o = this[W8] + o), + this[u4e](null, s4e(o, a, this[p4e]), e); + } + } + } + function Bj(e) { + let t = '', + r = 0, + n = !1, + a = 255, + o = e.length; + if (o > 100) return JSON.stringify(e); + for (var s = 0; s < o && a >= 32; s++) + (a = e.charCodeAt(s)), (a === 34 || a === 92) && ((t += e.slice(r, s) + '\\'), (r = s), (n = !0)); + return n ? (t += e.slice(r)) : (t = e), a < 32 ? JSON.stringify(e) : '"' + t + '"'; + } + function c6t(e, t, r, n) { + let a = this[m4e], + o = this[zj], + s = this[f4e], + l = this[i6t], + u = this[c4e], + p = this[d4e], + c = this[g4e], + f = this[a6t], + h = this[o6t], + m = this[r6t][r] + n; + m = m + u; + let v; + c.log && (e = c.log(e)); + let y = s[h4e], + S = ''; + for (let O in e) + if (((v = e[O]), Object.prototype.hasOwnProperty.call(e, O) && v !== void 0)) { + p[O] ? (v = p[O](v)) : O === h && p.err && (v = p.err(v)); + let x = s[O] || y; + switch (typeof v) { + case 'undefined': + case 'function': + continue; + case 'number': + Number.isFinite(v) === !1 && (v = null); + case 'boolean': + x && (v = x(v)); + break; + case 'string': + v = (x || Bj)(v); + break; + default: + v = (x || a)(v, o); + } + if (v === void 0) continue; + let _ = Bj(O); + S += ',' + _ + ':' + v; + } + let w = ''; + if (t !== void 0) { + v = p[f] ? p[f](t) : t; + let O = s[f] || y; + switch (typeof v) { + case 'function': + break; + case 'number': + Number.isFinite(v) === !1 && (v = null); + case 'boolean': + O && (v = O(v)), (w = ',"' + f + '":' + v); + break; + case 'string': + (v = (O || Bj)(v)), (w = ',"' + f + '":' + v); + break; + default: + (v = (O || a)(v, o)), (w = ',"' + f + '":' + v); + } + } + return this[n6t] && S ? m + this[s6t] + S.slice(1) + '}' + w + l : m + S + w + l; + } + function d6t(e, t) { + let r, + n = e[c4e], + a = e[m4e], + o = e[zj], + s = e[f4e], + l = s[h4e], + u = e[d4e], + p = e[g4e].bindings; + t = p(t); + for (let c in t) + if ( + ((r = t[c]), + (c !== 'level' && + c !== 'serializers' && + c !== 'formatters' && + c !== 'customLevels' && + t.hasOwnProperty(c) && + r !== void 0) === !0) + ) { + if (((r = u[c] ? u[c](r) : r), (r = (s[c] || l || a)(r, o)), r === void 0)) continue; + n += ',"' + c + '":' + r; + } + return n; + } + function f6t(e) { + return e.write !== e.constructor.prototype.write; + } + var m6t = process.env.NODE_V8_COVERAGE || process.env.V8_COVERAGE; + function K8(e) { + let t = new Vj(e); + return ( + t.on('error', r), + !m6t && + !e.sync && + l6t && + (l4e.register(t, h6t), + t.on('close', function () { + l4e.unregister(t); + })), + t + ); + function r(n) { + if (n.code === 'EPIPE') { + (t.write = tg), (t.end = tg), (t.flushSync = tg), (t.destroy = tg); + return; + } + t.removeListener('error', r), t.emit('error', n); + } + } + function h6t(e, t) { + e.destroyed || + (t === 'beforeExit' + ? (e.flush(), + e.on('drain', function () { + e.end(); + })) + : e.flushSync()); + } + function g6t(e) { + return function (r, n, a = {}, o) { + if (typeof a == 'string') (o = K8({ dest: a })), (a = {}); + else if (typeof o == 'string') { + if (a && a.transport) throw Error('only one of option.transport or stream can be specified'); + o = K8({ dest: o }); + } else if (a instanceof Vj || a.writable || a._writableState) (o = a), (a = {}); + else if (a.transport) { + if (a.transport instanceof Vj || a.transport.writable || a.transport._writableState) + throw Error('option.transport do not allow stream, please pass to option directly. e.g. pino(transport)'); + if ( + a.transport.targets && + a.transport.targets.length && + a.formatters && + typeof a.formatters.level == 'function' + ) + throw Error('option.transport.targets do not allow custom level formatters'); + let u; + a.customLevels && (u = a.useOnlyCustomLevels ? a.customLevels : Object.assign({}, a.levels, a.customLevels)), + (o = u6t({ caller: n, ...a.transport, levels: u })); + } + if ( + ((a = Object.assign({}, e, a)), + (a.serializers = Object.assign({}, e.serializers, a.serializers)), + (a.formatters = Object.assign({}, e.formatters, a.formatters)), + a.prettyPrint) + ) + throw new Error( + 'prettyPrint option is no longer supported, see the pino-pretty package (https://github.com/pinojs/pino-pretty)' + ); + let { enabled: s, onChild: l } = a; + return ( + s === !1 && (a.level = 'silent'), + l || (a.onChild = tg), + o || (f6t(process.stdout) ? (o = process.stdout) : (o = K8({ fd: process.stdout.fd || 1 }))), + { opts: a, stream: o } + ); + }; + } + function v6t(e, t) { + try { + return JSON.stringify(e); + } catch { + try { + return (t || this[zj])(e); + } catch { + return '"[unable to serialize, circular reference is too complex to analyze]"'; + } + } + } + function y6t(e, t, r) { + return { level: e, bindings: t, log: r }; + } + function b6t(e) { + let t = Number(e); + return typeof e == 'string' && Number.isFinite(t) ? t : e === void 0 ? 1 : e; + } + v4e.exports = { + noop: tg, + buildSafeSonicBoom: K8, + asChindings: d6t, + asJson: c6t, + genLog: p6t, + createArgsNormalizer: g6t, + stringify: v6t, + buildFormatters: y6t, + normalizeDestFileDescriptor: b6t, + }; +}); +var J8 = d((WQt, b4e) => { + 'use strict'; + var { + lsCacheSym: _6t, + levelValSym: Hj, + useOnlyCustomLevelsSym: w6t, + streamSym: S6t, + formattersSym: E6t, + hooksSym: x6t, + } = eg(), + { noop: O6t, genLog: Md } = X8(), + Uo = { trace: 10, debug: 20, info: 30, warn: 40, error: 50, fatal: 60 }, + y4e = { + fatal: (e) => { + let t = Md(Uo.fatal, e); + return function (...r) { + let n = this[S6t]; + if ((t.call(this, ...r), typeof n.flushSync == 'function')) + try { + n.flushSync(); + } catch {} + }; + }, + error: (e) => Md(Uo.error, e), + warn: (e) => Md(Uo.warn, e), + info: (e) => Md(Uo.info, e), + debug: (e) => Md(Uo.debug, e), + trace: (e) => Md(Uo.trace, e), + }, + Gj = Object.keys(Uo).reduce((e, t) => ((e[Uo[t]] = t), e), {}), + T6t = Object.keys(Gj).reduce((e, t) => ((e[t] = '{"level":' + Number(t)), e), {}); + function C6t(e) { + let t = e[E6t].level, + { labels: r } = e.levels, + n = {}; + for (let a in r) { + let o = t(r[a], Number(a)); + n[a] = JSON.stringify(o).slice(0, -1); + } + return (e[_6t] = n), e; + } + function k6t(e, t) { + if (t) return !1; + switch (e) { + case 'fatal': + case 'error': + case 'warn': + case 'info': + case 'debug': + case 'trace': + return !0; + default: + return !1; + } + } + function A6t(e) { + let { labels: t, values: r } = this.levels; + if (typeof e == 'number') { + if (t[e] === void 0) throw Error('unknown level value' + e); + e = t[e]; + } + if (r[e] === void 0) throw Error('unknown level ' + e); + let n = this[Hj], + a = (this[Hj] = r[e]), + o = this[w6t], + s = this[x6t].logMethod; + for (let l in r) { + if (a > r[l]) { + this[l] = O6t; + continue; + } + this[l] = k6t(l, o) ? y4e[l](s) : Md(r[l], s); + } + this.emit('level-change', e, a, t[n], n, this); + } + function I6t(e) { + let { levels: t, levelVal: r } = this; + return t && t.labels ? t.labels[r] : ''; + } + function P6t(e) { + let { values: t } = this.levels, + r = t[e]; + return r !== void 0 && r >= this[Hj]; + } + function R6t(e = null, t = !1) { + let r = e ? Object.keys(e).reduce((o, s) => ((o[e[s]] = s), o), {}) : null, + n = Object.assign(Object.create(Object.prototype, { Infinity: { value: 'silent' } }), t ? null : Gj, r), + a = Object.assign(Object.create(Object.prototype, { silent: { value: 1 / 0 } }), t ? null : Uo, e); + return { labels: n, values: a }; + } + function j6t(e, t, r) { + if (typeof e == 'number') { + if ( + ![] + .concat( + Object.keys(t || {}).map((o) => t[o]), + r ? [] : Object.keys(Gj).map((o) => +o), + 1 / 0 + ) + .includes(e) + ) + throw Error(`default level:${e} must be included in custom levels`); + return; + } + let n = Object.assign(Object.create(Object.prototype, { silent: { value: 1 / 0 } }), r ? null : Uo, t); + if (!(e in n)) throw Error(`default level:${e} must be included in custom levels`); + } + function D6t(e, t) { + let { labels: r, values: n } = e; + for (let a in t) { + if (a in n) throw Error('levels cannot be overridden'); + if (t[a] in r) throw Error('pre-existing level values cannot be used for new levels'); + } + } + b4e.exports = { + initialLsCache: T6t, + genLsCache: C6t, + levelMethods: y4e, + getLevel: I6t, + setLevel: A6t, + isLevelEnabled: P6t, + mappings: R6t, + levels: Uo, + assertNoLevelCollisions: D6t, + assertDefaultLevelFound: j6t, + }; +}); +var Wj = d((KQt, _4e) => { + 'use strict'; + _4e.exports = { version: '8.16.0' }; +}); +var P4e = d((JQt, I4e) => { + 'use strict'; + var { EventEmitter: N6t } = require('events'), + { + lsCacheSym: q6t, + levelValSym: F6t, + setLevelSym: Xj, + getLevelSym: w4e, + chindingsSym: Jj, + parsedChindingsSym: L6t, + mixinSym: M6t, + asJsonSym: T4e, + writeSym: U6t, + mixinMergeStrategySym: $6t, + timeSym: B6t, + timeSliceIndexSym: V6t, + streamSym: C4e, + serializersSym: Ud, + formattersSym: Kj, + errorKeySym: z6t, + messageKeySym: H6t, + useOnlyCustomLevelsSym: G6t, + needsMetadataGsym: W6t, + redactFmtSym: K6t, + stringifySym: X6t, + formatOptsSym: J6t, + stringifiersSym: Y6t, + msgPrefixSym: S4e, + } = eg(), + { + getLevel: Q6t, + setLevel: Z6t, + isLevelEnabled: e4t, + mappings: t4t, + initialLsCache: r4t, + genLsCache: i4t, + assertNoLevelCollisions: n4t, + } = J8(), + { asChindings: k4e, asJson: a4t, buildFormatters: E4e, stringify: x4e } = X8(), + { version: o4t } = Wj(), + s4t = Aj(), + l4t = class {}, + A4e = { + constructor: l4t, + child: u4t, + bindings: p4t, + setBindings: c4t, + flush: h4t, + isLevelEnabled: e4t, + version: o4t, + get level() { + return this[w4e](); + }, + set level(e) { + this[Xj](e); + }, + get levelVal() { + return this[F6t]; + }, + set levelVal(e) { + throw Error('levelVal is read-only'); + }, + [q6t]: r4t, + [U6t]: f4t, + [T4e]: a4t, + [w4e]: Q6t, + [Xj]: Z6t, + }; + Object.setPrototypeOf(A4e, N6t.prototype); + I4e.exports = function () { + return Object.create(A4e); + }; + var O4e = (e) => e; + function u4t(e, t) { + if (!e) throw Error('missing bindings for child Pino'); + t = t || {}; + let r = this[Ud], + n = this[Kj], + a = Object.create(this); + if (t.hasOwnProperty('serializers') === !0) { + a[Ud] = Object.create(null); + for (let c in r) a[Ud][c] = r[c]; + let u = Object.getOwnPropertySymbols(r); + for (var o = 0; o < u.length; o++) { + let c = u[o]; + a[Ud][c] = r[c]; + } + for (let c in t.serializers) a[Ud][c] = t.serializers[c]; + let p = Object.getOwnPropertySymbols(t.serializers); + for (var s = 0; s < p.length; s++) { + let c = p[s]; + a[Ud][c] = t.serializers[c]; + } + } else a[Ud] = r; + if (t.hasOwnProperty('formatters')) { + let { level: u, bindings: p, log: c } = t.formatters; + a[Kj] = E4e(u || n.level, p || O4e, c || n.log); + } else a[Kj] = E4e(n.level, O4e, n.log); + if ( + (t.hasOwnProperty('customLevels') === !0 && + (n4t(this.levels, t.customLevels), (a.levels = t4t(t.customLevels, a[G6t])), i4t(a)), + (typeof t.redact == 'object' && t.redact !== null) || Array.isArray(t.redact)) + ) { + a.redact = t.redact; + let u = s4t(a.redact, x4e), + p = { stringify: u[K6t] }; + (a[X6t] = x4e), (a[Y6t] = u), (a[J6t] = p); + } + typeof t.msgPrefix == 'string' && (a[S4e] = (this[S4e] || '') + t.msgPrefix), (a[Jj] = k4e(a, e)); + let l = t.level || this.level; + return a[Xj](l), this.onChild(a), a; + } + function p4t() { + let t = `{${this[Jj].substr(1)}}`, + r = JSON.parse(t); + return delete r.pid, delete r.hostname, r; + } + function c4t(e) { + let t = k4e(this, e); + (this[Jj] = t), delete this[L6t]; + } + function d4t(e, t) { + return Object.assign(t, e); + } + function f4t(e, t, r) { + let n = this[B6t](), + a = this[M6t], + o = this[z6t], + s = this[H6t], + l = this[$6t] || d4t, + u; + e == null + ? (u = {}) + : e instanceof Error + ? ((u = { [o]: e }), t === void 0 && (t = e.message)) + : ((u = e), t === void 0 && e[s] === void 0 && e[o] && (t = e[o].message)), + a && (u = l(u, a(u, r, this))); + let p = this[T4e](u, t, r, n), + c = this[C4e]; + c[W6t] === !0 && + ((c.lastLevel = r), (c.lastObj = u), (c.lastMsg = t), (c.lastTime = n.slice(this[V6t])), (c.lastLogger = this)), + c.write(p); + } + function m4t() {} + function h4t(e) { + if (e != null && typeof e != 'function') throw Error('callback must be a function'); + let t = this[C4e]; + 'flush' in t ? t.flush(e || m4t) : e && e(); + } +}); +var q4e = d((eD, N4e) => { + 'use strict'; + var { hasOwnProperty: Y8 } = Object.prototype, + Bd = Zj(); + Bd.configure = Zj; + Bd.stringify = Bd; + Bd.default = Bd; + eD.stringify = Bd; + eD.configure = Zj; + N4e.exports = Bd; + var g4t = + /[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/; + function Ip(e) { + return e.length < 5e3 && !g4t.test(e) ? `"${e}"` : JSON.stringify(e); + } + function Yj(e) { + if (e.length > 200) return e.sort(); + for (let t = 1; t < e.length; t++) { + let r = e[t], + n = t; + for (; n !== 0 && e[n - 1] > r; ) (e[n] = e[n - 1]), n--; + e[n] = r; + } + return e; + } + var v4t = Object.getOwnPropertyDescriptor( + Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array())), + Symbol.toStringTag + ).get; + function Qj(e) { + return v4t.call(e) !== void 0 && e.length !== 0; + } + function R4e(e, t, r) { + e.length < r && (r = e.length); + let n = t === ',' ? '' : ' ', + a = `"0":${n}${e[0]}`; + for (let o = 1; o < r; o++) a += `${t}"${o}":${n}${e[o]}`; + return a; + } + function y4t(e) { + if (Y8.call(e, 'circularValue')) { + let t = e.circularValue; + if (typeof t == 'string') return `"${t}"`; + if (t == null) return t; + if (t === Error || t === TypeError) + return { + toString() { + throw new TypeError('Converting circular structure to JSON'); + }, + }; + throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined'); + } + return '"[Circular]"'; + } + function j4e(e, t) { + let r; + if (Y8.call(e, t) && ((r = e[t]), typeof r != 'boolean')) + throw new TypeError(`The "${t}" argument must be of type boolean`); + return r === void 0 ? !0 : r; + } + function D4e(e, t) { + let r; + if (Y8.call(e, t)) { + if (((r = e[t]), typeof r != 'number')) throw new TypeError(`The "${t}" argument must be of type number`); + if (!Number.isInteger(r)) throw new TypeError(`The "${t}" argument must be an integer`); + if (r < 1) throw new RangeError(`The "${t}" argument must be >= 1`); + } + return r === void 0 ? 1 / 0 : r; + } + function $d(e) { + return e === 1 ? '1 item' : `${e} items`; + } + function b4t(e) { + let t = new Set(); + for (let r of e) (typeof r == 'string' || typeof r == 'number') && t.add(String(r)); + return t; + } + function _4t(e) { + if (Y8.call(e, 'strict')) { + let t = e.strict; + if (typeof t != 'boolean') throw new TypeError('The "strict" argument must be of type boolean'); + if (t) + return (r) => { + let n = `Object can not safely be stringified. Received type ${typeof r}`; + throw (typeof r != 'function' && (n += ` (${r.toString()})`), new Error(n)); + }; + } + } + function Zj(e) { + e = { ...e }; + let t = _4t(e); + t && (e.bigint === void 0 && (e.bigint = !1), 'circularValue' in e || (e.circularValue = Error)); + let r = y4t(e), + n = j4e(e, 'bigint'), + a = j4e(e, 'deterministic'), + o = D4e(e, 'maximumDepth'), + s = D4e(e, 'maximumBreadth'); + function l(h, m, v, y, S, w) { + let O = m[h]; + switch ( + (typeof O == 'object' && O !== null && typeof O.toJSON == 'function' && (O = O.toJSON(h)), + (O = y.call(m, h, O)), + typeof O) + ) { + case 'string': + return Ip(O); + case 'object': { + if (O === null) return 'null'; + if (v.indexOf(O) !== -1) return r; + let x = '', + _ = ',', + b = w; + if (Array.isArray(O)) { + if (O.length === 0) return '[]'; + if (o < v.length + 1) return '"[Array]"'; + v.push(O), + S !== '' && + ((w += S), + (x += ` +${w}`), + (_ = `, +${w}`)); + let j = Math.min(O.length, s), + U = 0; + for (; U < j - 1; U++) { + let K = l(String(U), O, v, y, S, w); + (x += K !== void 0 ? K : 'null'), (x += _); + } + let z = l(String(U), O, v, y, S, w); + if (((x += z !== void 0 ? z : 'null'), O.length - 1 > s)) { + let K = O.length - s - 1; + x += `${_}"... ${$d(K)} not stringified"`; + } + return ( + S !== '' && + (x += ` +${b}`), + v.pop(), + `[${x}]` + ); + } + let T = Object.keys(O), + R = T.length; + if (R === 0) return '{}'; + if (o < v.length + 1) return '"[Object]"'; + let C = '', + N = ''; + S !== '' && + ((w += S), + (_ = `, +${w}`), + (C = ' ')); + let A = Math.min(R, s); + a && !Qj(O) && (T = Yj(T)), v.push(O); + for (let j = 0; j < A; j++) { + let U = T[j], + z = l(U, O, v, y, S, w); + z !== void 0 && ((x += `${N}${Ip(U)}:${C}${z}`), (N = _)); + } + if (R > s) { + let j = R - s; + (x += `${N}"...":${C}"${$d(j)} not stringified"`), (N = _); + } + return ( + S !== '' && + N.length > 1 && + (x = ` +${w}${x} +${b}`), + v.pop(), + `{${x}}` + ); + } + case 'number': + return isFinite(O) ? String(O) : t ? t(O) : 'null'; + case 'boolean': + return O === !0 ? 'true' : 'false'; + case 'undefined': + return; + case 'bigint': + if (n) return String(O); + default: + return t ? t(O) : void 0; + } + } + function u(h, m, v, y, S, w) { + switch ((typeof m == 'object' && m !== null && typeof m.toJSON == 'function' && (m = m.toJSON(h)), typeof m)) { + case 'string': + return Ip(m); + case 'object': { + if (m === null) return 'null'; + if (v.indexOf(m) !== -1) return r; + let O = w, + x = '', + _ = ','; + if (Array.isArray(m)) { + if (m.length === 0) return '[]'; + if (o < v.length + 1) return '"[Array]"'; + v.push(m), + S !== '' && + ((w += S), + (x += ` +${w}`), + (_ = `, +${w}`)); + let R = Math.min(m.length, s), + C = 0; + for (; C < R - 1; C++) { + let A = u(String(C), m[C], v, y, S, w); + (x += A !== void 0 ? A : 'null'), (x += _); + } + let N = u(String(C), m[C], v, y, S, w); + if (((x += N !== void 0 ? N : 'null'), m.length - 1 > s)) { + let A = m.length - s - 1; + x += `${_}"... ${$d(A)} not stringified"`; + } + return ( + S !== '' && + (x += ` +${O}`), + v.pop(), + `[${x}]` + ); + } + v.push(m); + let b = ''; + S !== '' && + ((w += S), + (_ = `, +${w}`), + (b = ' ')); + let T = ''; + for (let R of y) { + let C = u(R, m[R], v, y, S, w); + C !== void 0 && ((x += `${T}${Ip(R)}:${b}${C}`), (T = _)); + } + return ( + S !== '' && + T.length > 1 && + (x = ` +${w}${x} +${O}`), + v.pop(), + `{${x}}` + ); + } + case 'number': + return isFinite(m) ? String(m) : t ? t(m) : 'null'; + case 'boolean': + return m === !0 ? 'true' : 'false'; + case 'undefined': + return; + case 'bigint': + if (n) return String(m); + default: + return t ? t(m) : void 0; + } + } + function p(h, m, v, y, S) { + switch (typeof m) { + case 'string': + return Ip(m); + case 'object': { + if (m === null) return 'null'; + if (typeof m.toJSON == 'function') { + if (((m = m.toJSON(h)), typeof m != 'object')) return p(h, m, v, y, S); + if (m === null) return 'null'; + } + if (v.indexOf(m) !== -1) return r; + let w = S; + if (Array.isArray(m)) { + if (m.length === 0) return '[]'; + if (o < v.length + 1) return '"[Array]"'; + v.push(m), (S += y); + let C = ` +${S}`, + N = `, +${S}`, + A = Math.min(m.length, s), + j = 0; + for (; j < A - 1; j++) { + let z = p(String(j), m[j], v, y, S); + (C += z !== void 0 ? z : 'null'), (C += N); + } + let U = p(String(j), m[j], v, y, S); + if (((C += U !== void 0 ? U : 'null'), m.length - 1 > s)) { + let z = m.length - s - 1; + C += `${N}"... ${$d(z)} not stringified"`; + } + return ( + (C += ` +${w}`), + v.pop(), + `[${C}]` + ); + } + let O = Object.keys(m), + x = O.length; + if (x === 0) return '{}'; + if (o < v.length + 1) return '"[Object]"'; + S += y; + let _ = `, +${S}`, + b = '', + T = '', + R = Math.min(x, s); + Qj(m) && ((b += R4e(m, _, s)), (O = O.slice(m.length)), (R -= m.length), (T = _)), + a && (O = Yj(O)), + v.push(m); + for (let C = 0; C < R; C++) { + let N = O[C], + A = p(N, m[N], v, y, S); + A !== void 0 && ((b += `${T}${Ip(N)}: ${A}`), (T = _)); + } + if (x > s) { + let C = x - s; + (b += `${T}"...": "${$d(C)} not stringified"`), (T = _); + } + return ( + T !== '' && + (b = ` +${S}${b} +${w}`), + v.pop(), + `{${b}}` + ); + } + case 'number': + return isFinite(m) ? String(m) : t ? t(m) : 'null'; + case 'boolean': + return m === !0 ? 'true' : 'false'; + case 'undefined': + return; + case 'bigint': + if (n) return String(m); + default: + return t ? t(m) : void 0; + } + } + function c(h, m, v) { + switch (typeof m) { + case 'string': + return Ip(m); + case 'object': { + if (m === null) return 'null'; + if (typeof m.toJSON == 'function') { + if (((m = m.toJSON(h)), typeof m != 'object')) return c(h, m, v); + if (m === null) return 'null'; + } + if (v.indexOf(m) !== -1) return r; + let y = ''; + if (Array.isArray(m)) { + if (m.length === 0) return '[]'; + if (o < v.length + 1) return '"[Array]"'; + v.push(m); + let _ = Math.min(m.length, s), + b = 0; + for (; b < _ - 1; b++) { + let R = c(String(b), m[b], v); + (y += R !== void 0 ? R : 'null'), (y += ','); + } + let T = c(String(b), m[b], v); + if (((y += T !== void 0 ? T : 'null'), m.length - 1 > s)) { + let R = m.length - s - 1; + y += `,"... ${$d(R)} not stringified"`; + } + return v.pop(), `[${y}]`; + } + let S = Object.keys(m), + w = S.length; + if (w === 0) return '{}'; + if (o < v.length + 1) return '"[Object]"'; + let O = '', + x = Math.min(w, s); + Qj(m) && ((y += R4e(m, ',', s)), (S = S.slice(m.length)), (x -= m.length), (O = ',')), + a && (S = Yj(S)), + v.push(m); + for (let _ = 0; _ < x; _++) { + let b = S[_], + T = c(b, m[b], v); + T !== void 0 && ((y += `${O}${Ip(b)}:${T}`), (O = ',')); + } + if (w > s) { + let _ = w - s; + y += `${O}"...":"${$d(_)} not stringified"`; + } + return v.pop(), `{${y}}`; + } + case 'number': + return isFinite(m) ? String(m) : t ? t(m) : 'null'; + case 'boolean': + return m === !0 ? 'true' : 'false'; + case 'undefined': + return; + case 'bigint': + if (n) return String(m); + default: + return t ? t(m) : void 0; + } + } + function f(h, m, v) { + if (arguments.length > 1) { + let y = ''; + if ( + (typeof v == 'number' ? (y = ' '.repeat(Math.min(v, 10))) : typeof v == 'string' && (y = v.slice(0, 10)), + m != null) + ) { + if (typeof m == 'function') return l('', { '': h }, [], m, y, ''); + if (Array.isArray(m)) return u('', h, [], b4t(m), y, ''); + } + if (y.length !== 0) return p('', h, [], y, ''); + } + return c('', h, []); + } + return f; + } +}); +var M4e = d((YQt, L4e) => { + 'use strict'; + var tD = Symbol.for('pino.metadata'), + { levels: F4e } = J8(), + w4t = F4e.info; + function S4t(e, t) { + let r = 0; + (e = e || []), (t = t || { dedupe: !1 }); + let n = Object.create(F4e); + (n.silent = 1 / 0), + t.levels && + typeof t.levels == 'object' && + Object.keys(t.levels).forEach((c) => { + n[c] = t.levels[c]; + }); + let a = { write: o, add: l, flushSync: s, end: u, minLevel: 0, streams: [], clone: p, [tD]: !0, streamLevels: n }; + return Array.isArray(e) ? e.forEach(l, a) : l.call(a, e), (e = null), a; + function o(c) { + let f, + h = this.lastLevel, + { streams: m } = this, + v = 0, + y; + for (let S = x4t(m.length, t.dedupe); T4t(S, m.length, t.dedupe); S = O4t(S, t.dedupe)) + if (((f = m[S]), f.level <= h)) { + if (v !== 0 && v !== f.level) break; + if (((y = f.stream), y[tD])) { + let { lastTime: w, lastMsg: O, lastObj: x, lastLogger: _ } = this; + (y.lastLevel = h), (y.lastTime = w), (y.lastMsg = O), (y.lastObj = x), (y.lastLogger = _); + } + y.write(c), t.dedupe && (v = f.level); + } else if (!t.dedupe) break; + } + function s() { + for (let { stream: c } of this.streams) typeof c.flushSync == 'function' && c.flushSync(); + } + function l(c) { + if (!c) return a; + let f = typeof c.write == 'function' || c.stream, + h = c.write ? c : c.stream; + if (!f) throw Error('stream object needs to implement either StreamEntry or DestinationStream interface'); + let { streams: m, streamLevels: v } = this, + y; + typeof c.levelVal == 'number' + ? (y = c.levelVal) + : typeof c.level == 'string' + ? (y = v[c.level]) + : typeof c.level == 'number' + ? (y = c.level) + : (y = w4t); + let S = { stream: h, level: y, levelVal: void 0, id: r++ }; + return m.unshift(S), m.sort(E4t), (this.minLevel = m[0].level), a; + } + function u() { + for (let { stream: c } of this.streams) typeof c.flushSync == 'function' && c.flushSync(), c.end(); + } + function p(c) { + let f = new Array(this.streams.length); + for (let h = 0; h < f.length; h++) f[h] = { level: c, stream: this.streams[h].stream }; + return { write: o, add: l, minLevel: c, streams: f, clone: p, flushSync: s, [tD]: !0 }; + } + } + function E4t(e, t) { + return e.level - t.level; + } + function x4t(e, t) { + return t ? e - 1 : 0; + } + function O4t(e, t) { + return t ? e - 1 : e + 1; + } + function T4t(e, t, r) { + return r ? e >= 0 : e < t; + } + L4e.exports = S4t; +}); +var Q4e = d((QQt, Ka) => { + function sb(e) { + try { + return require('path').join(`${process.cwd()}${require('path').sep}dist`.replace(/\\/g, '/'), e); + } catch { + return new Function('p', 'return new URL(p, import.meta.url).pathname')(e); + } + } + globalThis.__bundlerPathsOverrides = { + ...(globalThis.__bundlerPathsOverrides || {}), + 'thread-stream-worker': sb('./thread-stream-worker.js'), + 'pino-worker': sb('./pino-worker.js'), + 'pino-pipeline-worker': sb('./pino-pipeline-worker.js'), + 'pino/file': sb('./pino-file.js'), + 'pino-pretty': sb('./pino-pretty.js'), + }; + var C4t = require('os'), + W4e = Sj(), + k4t = Ej(), + A4t = Aj(), + K4e = j6e(), + I4t = P4e(), + X4e = eg(), + { configure: P4t } = q4e(), + { assertDefaultLevelFound: R4t, mappings: J4e, genLsCache: j4t, levels: D4t } = J8(), + { + createArgsNormalizer: N4t, + asChindings: q4t, + buildSafeSonicBoom: U4e, + buildFormatters: F4t, + stringify: rD, + normalizeDestFileDescriptor: $4e, + noop: L4t, + } = X8(), + { version: M4t } = Wj(), + { + chindingsSym: B4e, + redactFmtSym: U4t, + serializersSym: V4e, + timeSym: $4t, + timeSliceIndexSym: B4t, + streamSym: V4t, + stringifySym: z4e, + stringifySafeSym: iD, + stringifiersSym: H4e, + setLevelSym: z4t, + endSym: H4t, + formatOptsSym: G4t, + messageKeySym: W4t, + errorKeySym: K4t, + nestedKeySym: X4t, + mixinSym: J4t, + useOnlyCustomLevelsSym: Y4t, + formattersSym: G4e, + hooksSym: Q4t, + nestedKeyStrSym: Z4t, + mixinMergeStrategySym: e_t, + msgPrefixSym: t_t, + } = X4e, + { epochTime: Y4e, nullTime: r_t } = K4e, + { pid: i_t } = process, + n_t = C4t.hostname(), + a_t = W4e.err, + o_t = { + level: 'info', + levels: D4t, + messageKey: 'msg', + errorKey: 'err', + nestedKey: null, + enabled: !0, + base: { pid: i_t, hostname: n_t }, + serializers: Object.assign(Object.create(null), { err: a_t }), + formatters: Object.assign(Object.create(null), { + bindings(e) { + return e; + }, + level(e, t) { + return { level: t }; + }, + }), + hooks: { logMethod: void 0 }, + timestamp: Y4e, + name: void 0, + redact: null, + customLevels: null, + useOnlyCustomLevels: !1, + depthLimit: 5, + edgeLimit: 100, + }, + s_t = N4t(o_t), + l_t = Object.assign(Object.create(null), W4e); + function nD(...e) { + let t = {}, + { opts: r, stream: n } = s_t(t, k4t(), ...e), + { + redact: a, + crlf: o, + serializers: s, + timestamp: l, + messageKey: u, + errorKey: p, + nestedKey: c, + base: f, + name: h, + level: m, + customLevels: v, + mixin: y, + mixinMergeStrategy: S, + useOnlyCustomLevels: w, + formatters: O, + hooks: x, + depthLimit: _, + edgeLimit: b, + onChild: T, + msgPrefix: R, + } = r, + C = P4t({ maximumDepth: _, maximumBreadth: b }), + N = F4t(O.level, O.bindings, O.log), + A = rD.bind({ [iD]: C }), + j = a ? A4t(a, A) : {}, + U = a ? { stringify: j[U4t] } : { stringify: A }, + z = + '}' + + (o + ? `\r +` + : ` +`), + K = q4t.bind(null, { [B4e]: '', [V4e]: s, [H4e]: j, [z4e]: rD, [iD]: C, [G4e]: N }), + te = ''; + f !== null && (h === void 0 ? (te = K(f)) : (te = K(Object.assign({}, f, { name: h })))); + let J = l instanceof Function ? l : l ? Y4e : r_t, + ie = J().indexOf(':') + 1; + if (w && !v) throw Error('customLevels is required if useOnlyCustomLevels is set true'); + if (y && typeof y != 'function') throw Error(`Unknown mixin type "${typeof y}" - expected "function"`); + if (R && typeof R != 'string') throw Error(`Unknown msgPrefix type "${typeof R}" - expected "string"`); + R4t(m, v, w); + let oe = J4e(v, w); + return ( + Object.assign(t, { + levels: oe, + [Y4t]: w, + [V4t]: n, + [$4t]: J, + [B4t]: ie, + [z4e]: rD, + [iD]: C, + [H4e]: j, + [H4t]: z, + [G4t]: U, + [W4t]: u, + [K4t]: p, + [X4t]: c, + [Z4t]: c ? `,${JSON.stringify(c)}:{` : '', + [V4e]: s, + [J4t]: y, + [e_t]: S, + [B4e]: te, + [G4e]: N, + [Q4t]: x, + silent: L4t, + onChild: T, + [t_t]: R, + }), + Object.setPrototypeOf(t, I4t()), + j4t(t), + t[z4t](m), + t + ); + } + Ka.exports = nD; + Ka.exports.destination = (e = process.stdout.fd) => + typeof e == 'object' ? ((e.dest = $4e(e.dest || process.stdout.fd)), U4e(e)) : U4e({ dest: $4e(e), minLength: 0 }); + Ka.exports.transport = $j(); + Ka.exports.multistream = M4e(); + Ka.exports.levels = J4e(); + Ka.exports.stdSerializers = l_t; + Ka.exports.stdTimeFunctions = Object.assign({}, K4e); + Ka.exports.symbols = X4e; + Ka.exports.version = M4t; + Ka.exports.default = nD; + Ka.exports.pino = nD; +}); +var Bs, + aD = Tn(() => { + 'use strict'; + Bs = (e) => (Array.isArray(e) && e.length === 1 ? (Array.isArray(e[0]) ? Bs(e[0]) : e[0]) : e); + }); +var Z4e = d((Q8) => { + 'use strict'; + Object.defineProperty(Q8, '__esModule', { value: !0 }); + Q8.timeout = void 0; + Q8.timeout = function (e, t) { + if (e === 'INFINITELY') + return t(function () { + return !1; + }); + var r = !1, + n = function () { + return r; + }; + return new Promise(function (a, o) { + var s = setTimeout(function () { + (r = !0), o(new Error('Timeout after ' + e + 'ms')); + }, e), + l = t(n); + l.then( + function (u) { + a(u), clearTimeout(s); + }, + function (u) { + o(u), clearTimeout(s); + } + ); + }); + }; +}); +var pD = d((Rt) => { + 'use strict'; + var e_e = + (Rt && Rt.__extends) || + (function () { + var e = function (t, r) { + return ( + (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (n, a) { + n.__proto__ = a; + }) || + function (n, a) { + for (var o in a) a.hasOwnProperty(o) && (n[o] = a[o]); + }), + e(t, r) + ); + }; + return function (t, r) { + e(t, r); + function n() { + this.constructor = t; + } + t.prototype = r === null ? Object.create(r) : ((n.prototype = r.prototype), new n()); + }; + })(), + sD = + (Rt && Rt.__awaiter) || + function (e, t, r, n) { + function a(o) { + return o instanceof r + ? o + : new r(function (s) { + s(o); + }); + } + return new (r || (r = Promise))(function (o, s) { + function l(c) { + try { + p(n.next(c)); + } catch (f) { + s(f); + } + } + function u(c) { + try { + p(n.throw(c)); + } catch (f) { + s(f); + } + } + function p(c) { + c.done ? o(c.value) : a(c.value).then(l, u); + } + p((n = n.apply(e, t || [])).next()); + }); + }, + lD = + (Rt && Rt.__generator) || + function (e, t) { + var r = { + label: 0, + sent: function () { + if (o[0] & 1) throw o[1]; + return o[1]; + }, + trys: [], + ops: [], + }, + n, + a, + o, + s; + return ( + (s = { next: l(0), throw: l(1), return: l(2) }), + typeof Symbol == 'function' && + (s[Symbol.iterator] = function () { + return this; + }), + s + ); + function l(p) { + return function (c) { + return u([p, c]); + }; + } + function u(p) { + if (n) throw new TypeError('Generator is already executing.'); + for (; r; ) + try { + if ( + ((n = 1), + a && + (o = p[0] & 2 ? a.return : p[0] ? a.throw || ((o = a.return) && o.call(a), 0) : a.next) && + !(o = o.call(a, p[1])).done) + ) + return o; + switch (((a = 0), o && (p = [p[0] & 2, o.value]), p[0])) { + case 0: + case 1: + o = p; + break; + case 4: + return r.label++, { value: p[1], done: !1 }; + case 5: + r.label++, (a = p[1]), (p = [0]); + continue; + case 7: + (p = r.ops.pop()), r.trys.pop(); + continue; + default: + if (((o = r.trys), !(o = o.length > 0 && o[o.length - 1]) && (p[0] === 6 || p[0] === 2))) { + r = 0; + continue; + } + if (p[0] === 3 && (!o || (p[1] > o[0] && p[1] < o[3]))) { + r.label = p[1]; + break; + } + if (p[0] === 6 && r.label < o[1]) { + (r.label = o[1]), (o = p); + break; + } + if (o && r.label < o[2]) { + (r.label = o[2]), r.ops.push(p); + break; + } + o[2] && r.ops.pop(), r.trys.pop(); + continue; + } + p = t.call(e, r); + } catch (c) { + (p = [6, c]), (a = 0); + } finally { + n = o = 0; + } + if (p[0] & 5) throw p[1]; + return { value: p[0] ? p[1] : void 0, done: !0 }; + } + }; + Object.defineProperty(Rt, '__esModule', { value: !0 }); + Rt.NotRetryableError = + Rt.RetryError = + Rt.notEmpty = + Rt.customizeRetry = + Rt.customizeDecorator = + Rt.retryDecorator = + Rt.retry = + Rt.wait = + Rt.defaultRetryConfig = + void 0; + var u_t = Z4e(), + p_t = function (e, t) { + return t; + }, + c_t = function (e, t) { + return e * t; + }, + d_t = function (e, t) { + return Math.pow(t, e); + }; + Rt.defaultRetryConfig = { + backoff: 'FIXED', + delay: 100, + logger: function () {}, + maxBackOff: 5 * 60 * 1e3, + retries: 10, + timeout: 60 * 1e3, + until: function () { + return !0; + }, + retryIf: function () { + return !0; + }, + }; + function t_e(e) { + return sD(this, void 0, void 0, function () { + return lD(this, function (t) { + return [ + 2, + new Promise(function (r) { + return setTimeout(r, e); + }), + ]; + }); + }); + } + Rt.wait = t_e; + function uD(e, t) { + return sD(this, void 0, void 0, function () { + var r; + return lD(this, function (n) { + return ( + (r = Object.assign({}, Rt.defaultRetryConfig, t)), + [ + 2, + u_t.timeout(r.timeout, function (a) { + return h_t(e, r, a); + }), + ] + ); + }); + }); + } + Rt.retry = uD; + function r_e(e, t) { + return function () { + for (var r = [], n = 0; n < arguments.length; n++) r[n] = arguments[n]; + return uD(function () { + return e.apply(void 0, r); + }, t); + }; + } + Rt.retryDecorator = r_e; + function f_t(e) { + return function (t, r) { + return r_e(t, Object.assign({}, e, r)); + }; + } + Rt.customizeDecorator = f_t; + function m_t(e) { + return function (t, r) { + var n = Object.assign({}, e, r); + return uD(t, n); + }; + } + Rt.customizeRetry = m_t; + function h_t(e, t, r) { + return sD(this, void 0, void 0, function () { + var n, a, o, s, l, u, p; + return lD(this, function (c) { + switch (c.label) { + case 0: + switch (t.backoff) { + case 'EXPONENTIAL': + a = d_t; + break; + case 'FIXED': + a = p_t; + break; + case 'LINEAR': + a = c_t; + break; + default: + a = t.backoff; + } + t.retries === 'INFINITELY' ? (o = Number.MAX_SAFE_INTEGER) : (o = t.retries), (s = 0), (c.label = 1); + case 1: + if (!(s <= o)) return [3, 8]; + c.label = 2; + case 2: + return c.trys.push([2, 4, , 5]), [4, e()]; + case 3: + return (l = c.sent()), t.until(l) ? [2, l] : (t.logger('Until condition not met by ' + l), [3, 5]); + case 4: + if (((u = c.sent()), !t.retryIf(u))) throw u; + if (u.name === n_e.name) throw new oD('Met not retryable error. Last error: ' + u, u); + return (n = u), t.logger('Retry failed: ' + u.message), [3, 5]; + case 5: + return (p = a(s + 1, t.delay)), [4, t_e(p > t.maxBackOff ? t.maxBackOff : p)]; + case 6: + if ((c.sent(), r())) return [3, 8]; + c.label = 7; + case 7: + return s++, [3, 1]; + case 8: + throw new oD('All retries failed. Last error: ' + n, n); + } + }); + }); + } + Rt.notEmpty = function (e) { + return Array.isArray(e) ? e.length > 0 : e != null; + }; + var oD = (function (e) { + e_e(t, e); + function t(r, n) { + var a = e.call(this, r) || this; + return (a.lastError = n), a; + } + return t; + })(Error); + Rt.RetryError = oD; + var i_e = (function () { + function e() { + for (var t = [], r = 0; r < arguments.length; r++) t[r] = arguments[r]; + Error.apply(this, t); + } + return e; + })(); + i_e.prototype = new Error(); + var n_e = (function (e) { + e_e(t, e); + function t(r) { + var n = e.call(this, r) || this; + return Object.defineProperty(n, 'name', { value: n.constructor.name }), n; + } + return t; + })(i_e); + Rt.NotRetryableError = n_e; +}); +var lb = d((rZt, a_e) => { + var g_t = '2.0.0', + v_t = Number.MAX_SAFE_INTEGER || 9007199254740991, + y_t = 16, + b_t = 256 - 6, + __t = ['major', 'premajor', 'minor', 'preminor', 'patch', 'prepatch', 'prerelease']; + a_e.exports = { + MAX_LENGTH: 256, + MAX_SAFE_COMPONENT_LENGTH: y_t, + MAX_SAFE_BUILD_LENGTH: b_t, + MAX_SAFE_INTEGER: v_t, + RELEASE_TYPES: __t, + SEMVER_SPEC_VERSION: g_t, + FLAG_INCLUDE_PRERELEASE: 1, + FLAG_LOOSE: 2, + }; +}); +var ub = d((iZt, o_e) => { + var w_t = + typeof process == 'object' && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) + ? (...e) => console.error('SEMVER', ...e) + : () => {}; + o_e.exports = w_t; +}); +var rg = d((tu, s_e) => { + var { MAX_SAFE_COMPONENT_LENGTH: cD, MAX_SAFE_BUILD_LENGTH: S_t, MAX_LENGTH: E_t } = lb(), + x_t = ub(); + tu = s_e.exports = {}; + var O_t = (tu.re = []), + T_t = (tu.safeRe = []), + pe = (tu.src = []), + ce = (tu.t = {}), + C_t = 0, + dD = '[a-zA-Z0-9-]', + k_t = [ + ['\\s', 1], + ['\\d', E_t], + [dD, S_t], + ], + A_t = (e) => { + for (let [t, r] of k_t) e = e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`); + return e; + }, + Ie = (e, t, r) => { + let n = A_t(t), + a = C_t++; + x_t(e, a, t), + (ce[e] = a), + (pe[a] = t), + (O_t[a] = new RegExp(t, r ? 'g' : void 0)), + (T_t[a] = new RegExp(n, r ? 'g' : void 0)); + }; + Ie('NUMERICIDENTIFIER', '0|[1-9]\\d*'); + Ie('NUMERICIDENTIFIERLOOSE', '\\d+'); + Ie('NONNUMERICIDENTIFIER', `\\d*[a-zA-Z-]${dD}*`); + Ie('MAINVERSION', `(${pe[ce.NUMERICIDENTIFIER]})\\.(${pe[ce.NUMERICIDENTIFIER]})\\.(${pe[ce.NUMERICIDENTIFIER]})`); + Ie( + 'MAINVERSIONLOOSE', + `(${pe[ce.NUMERICIDENTIFIERLOOSE]})\\.(${pe[ce.NUMERICIDENTIFIERLOOSE]})\\.(${pe[ce.NUMERICIDENTIFIERLOOSE]})` + ); + Ie('PRERELEASEIDENTIFIER', `(?:${pe[ce.NUMERICIDENTIFIER]}|${pe[ce.NONNUMERICIDENTIFIER]})`); + Ie('PRERELEASEIDENTIFIERLOOSE', `(?:${pe[ce.NUMERICIDENTIFIERLOOSE]}|${pe[ce.NONNUMERICIDENTIFIER]})`); + Ie('PRERELEASE', `(?:-(${pe[ce.PRERELEASEIDENTIFIER]}(?:\\.${pe[ce.PRERELEASEIDENTIFIER]})*))`); + Ie('PRERELEASELOOSE', `(?:-?(${pe[ce.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${pe[ce.PRERELEASEIDENTIFIERLOOSE]})*))`); + Ie('BUILDIDENTIFIER', `${dD}+`); + Ie('BUILD', `(?:\\+(${pe[ce.BUILDIDENTIFIER]}(?:\\.${pe[ce.BUILDIDENTIFIER]})*))`); + Ie('FULLPLAIN', `v?${pe[ce.MAINVERSION]}${pe[ce.PRERELEASE]}?${pe[ce.BUILD]}?`); + Ie('FULL', `^${pe[ce.FULLPLAIN]}$`); + Ie('LOOSEPLAIN', `[v=\\s]*${pe[ce.MAINVERSIONLOOSE]}${pe[ce.PRERELEASELOOSE]}?${pe[ce.BUILD]}?`); + Ie('LOOSE', `^${pe[ce.LOOSEPLAIN]}$`); + Ie('GTLT', '((?:<|>)?=?)'); + Ie('XRANGEIDENTIFIERLOOSE', `${pe[ce.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`); + Ie('XRANGEIDENTIFIER', `${pe[ce.NUMERICIDENTIFIER]}|x|X|\\*`); + Ie( + 'XRANGEPLAIN', + `[v=\\s]*(${pe[ce.XRANGEIDENTIFIER]})(?:\\.(${pe[ce.XRANGEIDENTIFIER]})(?:\\.(${pe[ce.XRANGEIDENTIFIER]})(?:${ + pe[ce.PRERELEASE] + })?${pe[ce.BUILD]}?)?)?` + ); + Ie( + 'XRANGEPLAINLOOSE', + `[v=\\s]*(${pe[ce.XRANGEIDENTIFIERLOOSE]})(?:\\.(${pe[ce.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ + pe[ce.XRANGEIDENTIFIERLOOSE] + })(?:${pe[ce.PRERELEASELOOSE]})?${pe[ce.BUILD]}?)?)?` + ); + Ie('XRANGE', `^${pe[ce.GTLT]}\\s*${pe[ce.XRANGEPLAIN]}$`); + Ie('XRANGELOOSE', `^${pe[ce.GTLT]}\\s*${pe[ce.XRANGEPLAINLOOSE]}$`); + Ie('COERCE', `(^|[^\\d])(\\d{1,${cD}})(?:\\.(\\d{1,${cD}}))?(?:\\.(\\d{1,${cD}}))?(?:$|[^\\d])`); + Ie('COERCERTL', pe[ce.COERCE], !0); + Ie('LONETILDE', '(?:~>?)'); + Ie('TILDETRIM', `(\\s*)${pe[ce.LONETILDE]}\\s+`, !0); + tu.tildeTrimReplace = '$1~'; + Ie('TILDE', `^${pe[ce.LONETILDE]}${pe[ce.XRANGEPLAIN]}$`); + Ie('TILDELOOSE', `^${pe[ce.LONETILDE]}${pe[ce.XRANGEPLAINLOOSE]}$`); + Ie('LONECARET', '(?:\\^)'); + Ie('CARETTRIM', `(\\s*)${pe[ce.LONECARET]}\\s+`, !0); + tu.caretTrimReplace = '$1^'; + Ie('CARET', `^${pe[ce.LONECARET]}${pe[ce.XRANGEPLAIN]}$`); + Ie('CARETLOOSE', `^${pe[ce.LONECARET]}${pe[ce.XRANGEPLAINLOOSE]}$`); + Ie('COMPARATORLOOSE', `^${pe[ce.GTLT]}\\s*(${pe[ce.LOOSEPLAIN]})$|^$`); + Ie('COMPARATOR', `^${pe[ce.GTLT]}\\s*(${pe[ce.FULLPLAIN]})$|^$`); + Ie('COMPARATORTRIM', `(\\s*)${pe[ce.GTLT]}\\s*(${pe[ce.LOOSEPLAIN]}|${pe[ce.XRANGEPLAIN]})`, !0); + tu.comparatorTrimReplace = '$1$2$3'; + Ie('HYPHENRANGE', `^\\s*(${pe[ce.XRANGEPLAIN]})\\s+-\\s+(${pe[ce.XRANGEPLAIN]})\\s*$`); + Ie('HYPHENRANGELOOSE', `^\\s*(${pe[ce.XRANGEPLAINLOOSE]})\\s+-\\s+(${pe[ce.XRANGEPLAINLOOSE]})\\s*$`); + Ie('STAR', '(<|>)?=?\\s*\\*'); + Ie('GTE0', '^\\s*>=\\s*0\\.0\\.0\\s*$'); + Ie('GTE0PRE', '^\\s*>=\\s*0\\.0\\.0-0\\s*$'); +}); +var Z8 = d((nZt, l_e) => { + var I_t = Object.freeze({ loose: !0 }), + P_t = Object.freeze({}), + R_t = (e) => (e ? (typeof e != 'object' ? I_t : e) : P_t); + l_e.exports = R_t; +}); +var fD = d((aZt, c_e) => { + var u_e = /^[0-9]+$/, + p_e = (e, t) => { + let r = u_e.test(e), + n = u_e.test(t); + return r && n && ((e = +e), (t = +t)), e === t ? 0 : r && !n ? -1 : n && !r ? 1 : e < t ? -1 : 1; + }, + j_t = (e, t) => p_e(t, e); + c_e.exports = { compareIdentifiers: p_e, rcompareIdentifiers: j_t }; +}); +var Qi = d((oZt, h_e) => { + var eS = ub(), + { MAX_LENGTH: d_e, MAX_SAFE_INTEGER: tS } = lb(), + { safeRe: f_e, t: m_e } = rg(), + D_t = Z8(), + { compareIdentifiers: ig } = fD(), + mD = class e { + constructor(t, r) { + if (((r = D_t(r)), t instanceof e)) { + if (t.loose === !!r.loose && t.includePrerelease === !!r.includePrerelease) return t; + t = t.version; + } else if (typeof t != 'string') + throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`); + if (t.length > d_e) throw new TypeError(`version is longer than ${d_e} characters`); + eS('SemVer', t, r), + (this.options = r), + (this.loose = !!r.loose), + (this.includePrerelease = !!r.includePrerelease); + let n = t.trim().match(r.loose ? f_e[m_e.LOOSE] : f_e[m_e.FULL]); + if (!n) throw new TypeError(`Invalid Version: ${t}`); + if ( + ((this.raw = t), + (this.major = +n[1]), + (this.minor = +n[2]), + (this.patch = +n[3]), + this.major > tS || this.major < 0) + ) + throw new TypeError('Invalid major version'); + if (this.minor > tS || this.minor < 0) throw new TypeError('Invalid minor version'); + if (this.patch > tS || this.patch < 0) throw new TypeError('Invalid patch version'); + n[4] + ? (this.prerelease = n[4].split('.').map((a) => { + if (/^[0-9]+$/.test(a)) { + let o = +a; + if (o >= 0 && o < tS) return o; + } + return a; + })) + : (this.prerelease = []), + (this.build = n[5] ? n[5].split('.') : []), + this.format(); + } + format() { + return ( + (this.version = `${this.major}.${this.minor}.${this.patch}`), + this.prerelease.length && (this.version += `-${this.prerelease.join('.')}`), + this.version + ); + } + toString() { + return this.version; + } + compare(t) { + if ((eS('SemVer.compare', this.version, this.options, t), !(t instanceof e))) { + if (typeof t == 'string' && t === this.version) return 0; + t = new e(t, this.options); + } + return t.version === this.version ? 0 : this.compareMain(t) || this.comparePre(t); + } + compareMain(t) { + return ( + t instanceof e || (t = new e(t, this.options)), + ig(this.major, t.major) || ig(this.minor, t.minor) || ig(this.patch, t.patch) + ); + } + comparePre(t) { + if ((t instanceof e || (t = new e(t, this.options)), this.prerelease.length && !t.prerelease.length)) return -1; + if (!this.prerelease.length && t.prerelease.length) return 1; + if (!this.prerelease.length && !t.prerelease.length) return 0; + let r = 0; + do { + let n = this.prerelease[r], + a = t.prerelease[r]; + if ((eS('prerelease compare', r, n, a), n === void 0 && a === void 0)) return 0; + if (a === void 0) return 1; + if (n === void 0) return -1; + if (n === a) continue; + return ig(n, a); + } while (++r); + } + compareBuild(t) { + t instanceof e || (t = new e(t, this.options)); + let r = 0; + do { + let n = this.build[r], + a = t.build[r]; + if ((eS('prerelease compare', r, n, a), n === void 0 && a === void 0)) return 0; + if (a === void 0) return 1; + if (n === void 0) return -1; + if (n === a) continue; + return ig(n, a); + } while (++r); + } + inc(t, r, n) { + switch (t) { + case 'premajor': + (this.prerelease.length = 0), (this.patch = 0), (this.minor = 0), this.major++, this.inc('pre', r, n); + break; + case 'preminor': + (this.prerelease.length = 0), (this.patch = 0), this.minor++, this.inc('pre', r, n); + break; + case 'prepatch': + (this.prerelease.length = 0), this.inc('patch', r, n), this.inc('pre', r, n); + break; + case 'prerelease': + this.prerelease.length === 0 && this.inc('patch', r, n), this.inc('pre', r, n); + break; + case 'major': + (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) && this.major++, + (this.minor = 0), + (this.patch = 0), + (this.prerelease = []); + break; + case 'minor': + (this.patch !== 0 || this.prerelease.length === 0) && this.minor++, + (this.patch = 0), + (this.prerelease = []); + break; + case 'patch': + this.prerelease.length === 0 && this.patch++, (this.prerelease = []); + break; + case 'pre': { + let a = Number(n) ? 1 : 0; + if (!r && n === !1) throw new Error('invalid increment argument: identifier is empty'); + if (this.prerelease.length === 0) this.prerelease = [a]; + else { + let o = this.prerelease.length; + for (; --o >= 0; ) typeof this.prerelease[o] == 'number' && (this.prerelease[o]++, (o = -2)); + if (o === -1) { + if (r === this.prerelease.join('.') && n === !1) + throw new Error('invalid increment argument: identifier already exists'); + this.prerelease.push(a); + } + } + if (r) { + let o = [r, a]; + n === !1 && (o = [r]), + ig(this.prerelease[0], r) === 0 + ? isNaN(this.prerelease[1]) && (this.prerelease = o) + : (this.prerelease = o); + } + break; + } + default: + throw new Error(`invalid increment argument: ${t}`); + } + return (this.raw = this.format()), this.build.length && (this.raw += `+${this.build.join('.')}`), this; + } + }; + h_e.exports = mD; +}); +var Vd = d((sZt, v_e) => { + var g_e = Qi(), + N_t = (e, t, r = !1) => { + if (e instanceof g_e) return e; + try { + return new g_e(e, t); + } catch (n) { + if (!r) return null; + throw n; + } + }; + v_e.exports = N_t; +}); +var b_e = d((lZt, y_e) => { + var q_t = Vd(), + F_t = (e, t) => { + let r = q_t(e, t); + return r ? r.version : null; + }; + y_e.exports = F_t; +}); +var w_e = d((uZt, __e) => { + var L_t = Vd(), + M_t = (e, t) => { + let r = L_t(e.trim().replace(/^[=v]+/, ''), t); + return r ? r.version : null; + }; + __e.exports = M_t; +}); +var x_e = d((pZt, E_e) => { + var S_e = Qi(), + U_t = (e, t, r, n, a) => { + typeof r == 'string' && ((a = n), (n = r), (r = void 0)); + try { + return new S_e(e instanceof S_e ? e.version : e, r).inc(t, n, a).version; + } catch { + return null; + } + }; + E_e.exports = U_t; +}); +var C_e = d((cZt, T_e) => { + var O_e = Vd(), + $_t = (e, t) => { + let r = O_e(e, null, !0), + n = O_e(t, null, !0), + a = r.compare(n); + if (a === 0) return null; + let o = a > 0, + s = o ? r : n, + l = o ? n : r, + u = !!s.prerelease.length; + if (!!l.prerelease.length && !u) + return !l.patch && !l.minor ? 'major' : s.patch ? 'patch' : s.minor ? 'minor' : 'major'; + let c = u ? 'pre' : ''; + return r.major !== n.major + ? c + 'major' + : r.minor !== n.minor + ? c + 'minor' + : r.patch !== n.patch + ? c + 'patch' + : 'prerelease'; + }; + T_e.exports = $_t; +}); +var A_e = d((dZt, k_e) => { + var B_t = Qi(), + V_t = (e, t) => new B_t(e, t).major; + k_e.exports = V_t; +}); +var P_e = d((fZt, I_e) => { + var z_t = Qi(), + H_t = (e, t) => new z_t(e, t).minor; + I_e.exports = H_t; +}); +var j_e = d((mZt, R_e) => { + var G_t = Qi(), + W_t = (e, t) => new G_t(e, t).patch; + R_e.exports = W_t; +}); +var N_e = d((hZt, D_e) => { + var K_t = Vd(), + X_t = (e, t) => { + let r = K_t(e, t); + return r && r.prerelease.length ? r.prerelease : null; + }; + D_e.exports = X_t; +}); +var Xa = d((gZt, F_e) => { + var q_e = Qi(), + J_t = (e, t, r) => new q_e(e, r).compare(new q_e(t, r)); + F_e.exports = J_t; +}); +var M_e = d((vZt, L_e) => { + var Y_t = Xa(), + Q_t = (e, t, r) => Y_t(t, e, r); + L_e.exports = Q_t; +}); +var $_e = d((yZt, U_e) => { + var Z_t = Xa(), + ewt = (e, t) => Z_t(e, t, !0); + U_e.exports = ewt; +}); +var rS = d((bZt, V_e) => { + var B_e = Qi(), + twt = (e, t, r) => { + let n = new B_e(e, r), + a = new B_e(t, r); + return n.compare(a) || n.compareBuild(a); + }; + V_e.exports = twt; +}); +var H_e = d((_Zt, z_e) => { + var rwt = rS(), + iwt = (e, t) => e.sort((r, n) => rwt(r, n, t)); + z_e.exports = iwt; +}); +var W_e = d((wZt, G_e) => { + var nwt = rS(), + awt = (e, t) => e.sort((r, n) => nwt(n, r, t)); + G_e.exports = awt; +}); +var pb = d((SZt, K_e) => { + var owt = Xa(), + swt = (e, t, r) => owt(e, t, r) > 0; + K_e.exports = swt; +}); +var iS = d((EZt, X_e) => { + var lwt = Xa(), + uwt = (e, t, r) => lwt(e, t, r) < 0; + X_e.exports = uwt; +}); +var hD = d((xZt, J_e) => { + var pwt = Xa(), + cwt = (e, t, r) => pwt(e, t, r) === 0; + J_e.exports = cwt; +}); +var gD = d((OZt, Y_e) => { + var dwt = Xa(), + fwt = (e, t, r) => dwt(e, t, r) !== 0; + Y_e.exports = fwt; +}); +var nS = d((TZt, Q_e) => { + var mwt = Xa(), + hwt = (e, t, r) => mwt(e, t, r) >= 0; + Q_e.exports = hwt; +}); +var aS = d((CZt, Z_e) => { + var gwt = Xa(), + vwt = (e, t, r) => gwt(e, t, r) <= 0; + Z_e.exports = vwt; +}); +var vD = d((kZt, ewe) => { + var ywt = hD(), + bwt = gD(), + _wt = pb(), + wwt = nS(), + Swt = iS(), + Ewt = aS(), + xwt = (e, t, r, n) => { + switch (t) { + case '===': + return typeof e == 'object' && (e = e.version), typeof r == 'object' && (r = r.version), e === r; + case '!==': + return typeof e == 'object' && (e = e.version), typeof r == 'object' && (r = r.version), e !== r; + case '': + case '=': + case '==': + return ywt(e, r, n); + case '!=': + return bwt(e, r, n); + case '>': + return _wt(e, r, n); + case '>=': + return wwt(e, r, n); + case '<': + return Swt(e, r, n); + case '<=': + return Ewt(e, r, n); + default: + throw new TypeError(`Invalid operator: ${t}`); + } + }; + ewe.exports = xwt; +}); +var rwe = d((AZt, twe) => { + var Owt = Qi(), + Twt = Vd(), + { safeRe: oS, t: sS } = rg(), + Cwt = (e, t) => { + if (e instanceof Owt) return e; + if ((typeof e == 'number' && (e = String(e)), typeof e != 'string')) return null; + t = t || {}; + let r = null; + if (!t.rtl) r = e.match(oS[sS.COERCE]); + else { + let n; + for (; (n = oS[sS.COERCERTL].exec(e)) && (!r || r.index + r[0].length !== e.length); ) + (!r || n.index + n[0].length !== r.index + r[0].length) && (r = n), + (oS[sS.COERCERTL].lastIndex = n.index + n[1].length + n[2].length); + oS[sS.COERCERTL].lastIndex = -1; + } + return r === null ? null : Twt(`${r[2]}.${r[3] || '0'}.${r[4] || '0'}`, t); + }; + twe.exports = Cwt; +}); +var nwe = d((IZt, iwe) => { + 'use strict'; + iwe.exports = function (e) { + e.prototype[Symbol.iterator] = function* () { + for (let t = this.head; t; t = t.next) yield t.value; + }; + }; +}); +var owe = d((PZt, awe) => { + 'use strict'; + awe.exports = ut; + ut.Node = zd; + ut.create = ut; + function ut(e) { + var t = this; + if ( + (t instanceof ut || (t = new ut()), + (t.tail = null), + (t.head = null), + (t.length = 0), + e && typeof e.forEach == 'function') + ) + e.forEach(function (a) { + t.push(a); + }); + else if (arguments.length > 0) for (var r = 0, n = arguments.length; r < n; r++) t.push(arguments[r]); + return t; + } + ut.prototype.removeNode = function (e) { + if (e.list !== this) throw new Error('removing node which does not belong to this list'); + var t = e.next, + r = e.prev; + return ( + t && (t.prev = r), + r && (r.next = t), + e === this.head && (this.head = t), + e === this.tail && (this.tail = r), + e.list.length--, + (e.next = null), + (e.prev = null), + (e.list = null), + t + ); + }; + ut.prototype.unshiftNode = function (e) { + if (e !== this.head) { + e.list && e.list.removeNode(e); + var t = this.head; + (e.list = this), (e.next = t), t && (t.prev = e), (this.head = e), this.tail || (this.tail = e), this.length++; + } + }; + ut.prototype.pushNode = function (e) { + if (e !== this.tail) { + e.list && e.list.removeNode(e); + var t = this.tail; + (e.list = this), (e.prev = t), t && (t.next = e), (this.tail = e), this.head || (this.head = e), this.length++; + } + }; + ut.prototype.push = function () { + for (var e = 0, t = arguments.length; e < t; e++) Awt(this, arguments[e]); + return this.length; + }; + ut.prototype.unshift = function () { + for (var e = 0, t = arguments.length; e < t; e++) Iwt(this, arguments[e]); + return this.length; + }; + ut.prototype.pop = function () { + if (this.tail) { + var e = this.tail.value; + return (this.tail = this.tail.prev), this.tail ? (this.tail.next = null) : (this.head = null), this.length--, e; + } + }; + ut.prototype.shift = function () { + if (this.head) { + var e = this.head.value; + return (this.head = this.head.next), this.head ? (this.head.prev = null) : (this.tail = null), this.length--, e; + } + }; + ut.prototype.forEach = function (e, t) { + t = t || this; + for (var r = this.head, n = 0; r !== null; n++) e.call(t, r.value, n, this), (r = r.next); + }; + ut.prototype.forEachReverse = function (e, t) { + t = t || this; + for (var r = this.tail, n = this.length - 1; r !== null; n--) e.call(t, r.value, n, this), (r = r.prev); + }; + ut.prototype.get = function (e) { + for (var t = 0, r = this.head; r !== null && t < e; t++) r = r.next; + if (t === e && r !== null) return r.value; + }; + ut.prototype.getReverse = function (e) { + for (var t = 0, r = this.tail; r !== null && t < e; t++) r = r.prev; + if (t === e && r !== null) return r.value; + }; + ut.prototype.map = function (e, t) { + t = t || this; + for (var r = new ut(), n = this.head; n !== null; ) r.push(e.call(t, n.value, this)), (n = n.next); + return r; + }; + ut.prototype.mapReverse = function (e, t) { + t = t || this; + for (var r = new ut(), n = this.tail; n !== null; ) r.push(e.call(t, n.value, this)), (n = n.prev); + return r; + }; + ut.prototype.reduce = function (e, t) { + var r, + n = this.head; + if (arguments.length > 1) r = t; + else if (this.head) (n = this.head.next), (r = this.head.value); + else throw new TypeError('Reduce of empty list with no initial value'); + for (var a = 0; n !== null; a++) (r = e(r, n.value, a)), (n = n.next); + return r; + }; + ut.prototype.reduceReverse = function (e, t) { + var r, + n = this.tail; + if (arguments.length > 1) r = t; + else if (this.tail) (n = this.tail.prev), (r = this.tail.value); + else throw new TypeError('Reduce of empty list with no initial value'); + for (var a = this.length - 1; n !== null; a--) (r = e(r, n.value, a)), (n = n.prev); + return r; + }; + ut.prototype.toArray = function () { + for (var e = new Array(this.length), t = 0, r = this.head; r !== null; t++) (e[t] = r.value), (r = r.next); + return e; + }; + ut.prototype.toArrayReverse = function () { + for (var e = new Array(this.length), t = 0, r = this.tail; r !== null; t++) (e[t] = r.value), (r = r.prev); + return e; + }; + ut.prototype.slice = function (e, t) { + (t = t || this.length), t < 0 && (t += this.length), (e = e || 0), e < 0 && (e += this.length); + var r = new ut(); + if (t < e || t < 0) return r; + e < 0 && (e = 0), t > this.length && (t = this.length); + for (var n = 0, a = this.head; a !== null && n < e; n++) a = a.next; + for (; a !== null && n < t; n++, a = a.next) r.push(a.value); + return r; + }; + ut.prototype.sliceReverse = function (e, t) { + (t = t || this.length), t < 0 && (t += this.length), (e = e || 0), e < 0 && (e += this.length); + var r = new ut(); + if (t < e || t < 0) return r; + e < 0 && (e = 0), t > this.length && (t = this.length); + for (var n = this.length, a = this.tail; a !== null && n > t; n--) a = a.prev; + for (; a !== null && n > e; n--, a = a.prev) r.push(a.value); + return r; + }; + ut.prototype.splice = function (e, t, ...r) { + e > this.length && (e = this.length - 1), e < 0 && (e = this.length + e); + for (var n = 0, a = this.head; a !== null && n < e; n++) a = a.next; + for (var o = [], n = 0; a && n < t; n++) o.push(a.value), (a = this.removeNode(a)); + a === null && (a = this.tail), a !== this.head && a !== this.tail && (a = a.prev); + for (var n = 0; n < r.length; n++) a = kwt(this, a, r[n]); + return o; + }; + ut.prototype.reverse = function () { + for (var e = this.head, t = this.tail, r = e; r !== null; r = r.prev) { + var n = r.prev; + (r.prev = r.next), (r.next = n); + } + return (this.head = t), (this.tail = e), this; + }; + function kwt(e, t, r) { + var n = t === e.head ? new zd(r, null, t, e) : new zd(r, t, t.next, e); + return n.next === null && (e.tail = n), n.prev === null && (e.head = n), e.length++, n; + } + function Awt(e, t) { + (e.tail = new zd(t, e.tail, null, e)), e.head || (e.head = e.tail), e.length++; + } + function Iwt(e, t) { + (e.head = new zd(t, null, e.head, e)), e.tail || (e.tail = e.head), e.length++; + } + function zd(e, t, r, n) { + if (!(this instanceof zd)) return new zd(e, t, r, n); + (this.list = n), + (this.value = e), + t ? ((t.next = this), (this.prev = t)) : (this.prev = null), + r ? ((r.prev = this), (this.next = r)) : (this.next = null); + } + try { + nwe()(ut); + } catch {} +}); +var cwe = d((RZt, pwe) => { + 'use strict'; + var Pwt = owe(), + Hd = Symbol('max'), + iu = Symbol('length'), + ng = Symbol('lengthCalculator'), + db = Symbol('allowStale'), + Gd = Symbol('maxAge'), + ru = Symbol('dispose'), + swe = Symbol('noDisposeOnSet'), + _i = Symbol('lruList'), + $o = Symbol('cache'), + uwe = Symbol('updateAgeOnGet'), + yD = () => 1, + _D = class { + constructor(t) { + if ((typeof t == 'number' && (t = { max: t }), t || (t = {}), t.max && (typeof t.max != 'number' || t.max < 0))) + throw new TypeError('max must be a non-negative number'); + let r = (this[Hd] = t.max || 1 / 0), + n = t.length || yD; + if ( + ((this[ng] = typeof n != 'function' ? yD : n), + (this[db] = t.stale || !1), + t.maxAge && typeof t.maxAge != 'number') + ) + throw new TypeError('maxAge must be a number'); + (this[Gd] = t.maxAge || 0), + (this[ru] = t.dispose), + (this[swe] = t.noDisposeOnSet || !1), + (this[uwe] = t.updateAgeOnGet || !1), + this.reset(); + } + set max(t) { + if (typeof t != 'number' || t < 0) throw new TypeError('max must be a non-negative number'); + (this[Hd] = t || 1 / 0), cb(this); + } + get max() { + return this[Hd]; + } + set allowStale(t) { + this[db] = !!t; + } + get allowStale() { + return this[db]; + } + set maxAge(t) { + if (typeof t != 'number') throw new TypeError('maxAge must be a non-negative number'); + (this[Gd] = t), cb(this); + } + get maxAge() { + return this[Gd]; + } + set lengthCalculator(t) { + typeof t != 'function' && (t = yD), + t !== this[ng] && + ((this[ng] = t), + (this[iu] = 0), + this[_i].forEach((r) => { + (r.length = this[ng](r.value, r.key)), (this[iu] += r.length); + })), + cb(this); + } + get lengthCalculator() { + return this[ng]; + } + get length() { + return this[iu]; + } + get itemCount() { + return this[_i].length; + } + rforEach(t, r) { + r = r || this; + for (let n = this[_i].tail; n !== null; ) { + let a = n.prev; + lwe(this, t, n, r), (n = a); + } + } + forEach(t, r) { + r = r || this; + for (let n = this[_i].head; n !== null; ) { + let a = n.next; + lwe(this, t, n, r), (n = a); + } + } + keys() { + return this[_i].toArray().map((t) => t.key); + } + values() { + return this[_i].toArray().map((t) => t.value); + } + reset() { + this[ru] && this[_i] && this[_i].length && this[_i].forEach((t) => this[ru](t.key, t.value)), + (this[$o] = new Map()), + (this[_i] = new Pwt()), + (this[iu] = 0); + } + dump() { + return this[_i] + .map((t) => (lS(this, t) ? !1 : { k: t.key, v: t.value, e: t.now + (t.maxAge || 0) })) + .toArray() + .filter((t) => t); + } + dumpLru() { + return this[_i]; + } + set(t, r, n) { + if (((n = n || this[Gd]), n && typeof n != 'number')) throw new TypeError('maxAge must be a number'); + let a = n ? Date.now() : 0, + o = this[ng](r, t); + if (this[$o].has(t)) { + if (o > this[Hd]) return ag(this, this[$o].get(t)), !1; + let u = this[$o].get(t).value; + return ( + this[ru] && (this[swe] || this[ru](t, u.value)), + (u.now = a), + (u.maxAge = n), + (u.value = r), + (this[iu] += o - u.length), + (u.length = o), + this.get(t), + cb(this), + !0 + ); + } + let s = new wD(t, r, o, a, n); + return s.length > this[Hd] + ? (this[ru] && this[ru](t, r), !1) + : ((this[iu] += s.length), this[_i].unshift(s), this[$o].set(t, this[_i].head), cb(this), !0); + } + has(t) { + if (!this[$o].has(t)) return !1; + let r = this[$o].get(t).value; + return !lS(this, r); + } + get(t) { + return bD(this, t, !0); + } + peek(t) { + return bD(this, t, !1); + } + pop() { + let t = this[_i].tail; + return t ? (ag(this, t), t.value) : null; + } + del(t) { + ag(this, this[$o].get(t)); + } + load(t) { + this.reset(); + let r = Date.now(); + for (let n = t.length - 1; n >= 0; n--) { + let a = t[n], + o = a.e || 0; + if (o === 0) this.set(a.k, a.v); + else { + let s = o - r; + s > 0 && this.set(a.k, a.v, s); + } + } + } + prune() { + this[$o].forEach((t, r) => bD(this, r, !1)); + } + }, + bD = (e, t, r) => { + let n = e[$o].get(t); + if (n) { + let a = n.value; + if (lS(e, a)) { + if ((ag(e, n), !e[db])) return; + } else r && (e[uwe] && (n.value.now = Date.now()), e[_i].unshiftNode(n)); + return a.value; + } + }, + lS = (e, t) => { + if (!t || (!t.maxAge && !e[Gd])) return !1; + let r = Date.now() - t.now; + return t.maxAge ? r > t.maxAge : e[Gd] && r > e[Gd]; + }, + cb = (e) => { + if (e[iu] > e[Hd]) + for (let t = e[_i].tail; e[iu] > e[Hd] && t !== null; ) { + let r = t.prev; + ag(e, t), (t = r); + } + }, + ag = (e, t) => { + if (t) { + let r = t.value; + e[ru] && e[ru](r.key, r.value), (e[iu] -= r.length), e[$o].delete(r.key), e[_i].removeNode(t); + } + }, + wD = class { + constructor(t, r, n, a, o) { + (this.key = t), (this.value = r), (this.length = n), (this.now = a), (this.maxAge = o || 0); + } + }, + lwe = (e, t, r, n) => { + let a = r.value; + lS(e, a) && (ag(e, r), e[db] || (a = void 0)), a && t.call(n, a.value, a.key, e); + }; + pwe.exports = _D; +}); +var Ja = d((jZt, hwe) => { + var SD = class e { + constructor(t, r) { + if (((r = jwt(r)), t instanceof e)) + return t.loose === !!r.loose && t.includePrerelease === !!r.includePrerelease ? t : new e(t.raw, r); + if (t instanceof ED) return (this.raw = t.value), (this.set = [[t]]), this.format(), this; + if ( + ((this.options = r), + (this.loose = !!r.loose), + (this.includePrerelease = !!r.includePrerelease), + (this.raw = t.trim().split(/\s+/).join(' ')), + (this.set = this.raw + .split('||') + .map((n) => this.parseRange(n.trim())) + .filter((n) => n.length)), + !this.set.length) + ) + throw new TypeError(`Invalid SemVer Range: ${this.raw}`); + if (this.set.length > 1) { + let n = this.set[0]; + if (((this.set = this.set.filter((a) => !fwe(a[0]))), this.set.length === 0)) this.set = [n]; + else if (this.set.length > 1) { + for (let a of this.set) + if (a.length === 1 && Uwt(a[0])) { + this.set = [a]; + break; + } + } + } + this.format(); + } + format() { + return ( + (this.range = this.set + .map((t) => t.join(' ').trim()) + .join('||') + .trim()), + this.range + ); + } + toString() { + return this.range; + } + parseRange(t) { + let n = ((this.options.includePrerelease && Lwt) | (this.options.loose && Mwt)) + ':' + t, + a = dwe.get(n); + if (a) return a; + let o = this.options.loose, + s = o ? Mn[gn.HYPHENRANGELOOSE] : Mn[gn.HYPHENRANGE]; + (t = t.replace(s, Jwt(this.options.includePrerelease))), + Ht('hyphen replace', t), + (t = t.replace(Mn[gn.COMPARATORTRIM], Nwt)), + Ht('comparator trim', t), + (t = t.replace(Mn[gn.TILDETRIM], qwt)), + Ht('tilde trim', t), + (t = t.replace(Mn[gn.CARETTRIM], Fwt)), + Ht('caret trim', t); + let l = t + .split(' ') + .map((f) => $wt(f, this.options)) + .join(' ') + .split(/\s+/) + .map((f) => Xwt(f, this.options)); + o && (l = l.filter((f) => (Ht('loose invalid filter', f, this.options), !!f.match(Mn[gn.COMPARATORLOOSE])))), + Ht('range list', l); + let u = new Map(), + p = l.map((f) => new ED(f, this.options)); + for (let f of p) { + if (fwe(f)) return [f]; + u.set(f.value, f); + } + u.size > 1 && u.has('') && u.delete(''); + let c = [...u.values()]; + return dwe.set(n, c), c; + } + intersects(t, r) { + if (!(t instanceof e)) throw new TypeError('a Range is required'); + return this.set.some( + (n) => mwe(n, r) && t.set.some((a) => mwe(a, r) && n.every((o) => a.every((s) => o.intersects(s, r)))) + ); + } + test(t) { + if (!t) return !1; + if (typeof t == 'string') + try { + t = new Dwt(t, this.options); + } catch { + return !1; + } + for (let r = 0; r < this.set.length; r++) if (Ywt(this.set[r], t, this.options)) return !0; + return !1; + } + }; + hwe.exports = SD; + var Rwt = cwe(), + dwe = new Rwt({ max: 1e3 }), + jwt = Z8(), + ED = fb(), + Ht = ub(), + Dwt = Qi(), + { safeRe: Mn, t: gn, comparatorTrimReplace: Nwt, tildeTrimReplace: qwt, caretTrimReplace: Fwt } = rg(), + { FLAG_INCLUDE_PRERELEASE: Lwt, FLAG_LOOSE: Mwt } = lb(), + fwe = (e) => e.value === '<0.0.0-0', + Uwt = (e) => e.value === '', + mwe = (e, t) => { + let r = !0, + n = e.slice(), + a = n.pop(); + for (; r && n.length; ) (r = n.every((o) => a.intersects(o, t))), (a = n.pop()); + return r; + }, + $wt = (e, t) => ( + Ht('comp', e, t), + (e = zwt(e, t)), + Ht('caret', e), + (e = Bwt(e, t)), + Ht('tildes', e), + (e = Gwt(e, t)), + Ht('xrange', e), + (e = Kwt(e, t)), + Ht('stars', e), + e + ), + vn = (e) => !e || e.toLowerCase() === 'x' || e === '*', + Bwt = (e, t) => + e + .trim() + .split(/\s+/) + .map((r) => Vwt(r, t)) + .join(' '), + Vwt = (e, t) => { + let r = t.loose ? Mn[gn.TILDELOOSE] : Mn[gn.TILDE]; + return e.replace(r, (n, a, o, s, l) => { + Ht('tilde', e, n, a, o, s, l); + let u; + return ( + vn(a) + ? (u = '') + : vn(o) + ? (u = `>=${a}.0.0 <${+a + 1}.0.0-0`) + : vn(s) + ? (u = `>=${a}.${o}.0 <${a}.${+o + 1}.0-0`) + : l + ? (Ht('replaceTilde pr', l), (u = `>=${a}.${o}.${s}-${l} <${a}.${+o + 1}.0-0`)) + : (u = `>=${a}.${o}.${s} <${a}.${+o + 1}.0-0`), + Ht('tilde return', u), + u + ); + }); + }, + zwt = (e, t) => + e + .trim() + .split(/\s+/) + .map((r) => Hwt(r, t)) + .join(' '), + Hwt = (e, t) => { + Ht('caret', e, t); + let r = t.loose ? Mn[gn.CARETLOOSE] : Mn[gn.CARET], + n = t.includePrerelease ? '-0' : ''; + return e.replace(r, (a, o, s, l, u) => { + Ht('caret', e, a, o, s, l, u); + let p; + return ( + vn(o) + ? (p = '') + : vn(s) + ? (p = `>=${o}.0.0${n} <${+o + 1}.0.0-0`) + : vn(l) + ? o === '0' + ? (p = `>=${o}.${s}.0${n} <${o}.${+s + 1}.0-0`) + : (p = `>=${o}.${s}.0${n} <${+o + 1}.0.0-0`) + : u + ? (Ht('replaceCaret pr', u), + o === '0' + ? s === '0' + ? (p = `>=${o}.${s}.${l}-${u} <${o}.${s}.${+l + 1}-0`) + : (p = `>=${o}.${s}.${l}-${u} <${o}.${+s + 1}.0-0`) + : (p = `>=${o}.${s}.${l}-${u} <${+o + 1}.0.0-0`)) + : (Ht('no pr'), + o === '0' + ? s === '0' + ? (p = `>=${o}.${s}.${l}${n} <${o}.${s}.${+l + 1}-0`) + : (p = `>=${o}.${s}.${l}${n} <${o}.${+s + 1}.0-0`) + : (p = `>=${o}.${s}.${l} <${+o + 1}.0.0-0`)), + Ht('caret return', p), + p + ); + }); + }, + Gwt = (e, t) => ( + Ht('replaceXRanges', e, t), + e + .split(/\s+/) + .map((r) => Wwt(r, t)) + .join(' ') + ), + Wwt = (e, t) => { + e = e.trim(); + let r = t.loose ? Mn[gn.XRANGELOOSE] : Mn[gn.XRANGE]; + return e.replace(r, (n, a, o, s, l, u) => { + Ht('xRange', e, n, a, o, s, l, u); + let p = vn(o), + c = p || vn(s), + f = c || vn(l), + h = f; + return ( + a === '=' && h && (a = ''), + (u = t.includePrerelease ? '-0' : ''), + p + ? a === '>' || a === '<' + ? (n = '<0.0.0-0') + : (n = '*') + : a && h + ? (c && (s = 0), + (l = 0), + a === '>' + ? ((a = '>='), c ? ((o = +o + 1), (s = 0), (l = 0)) : ((s = +s + 1), (l = 0))) + : a === '<=' && ((a = '<'), c ? (o = +o + 1) : (s = +s + 1)), + a === '<' && (u = '-0'), + (n = `${a + o}.${s}.${l}${u}`)) + : c + ? (n = `>=${o}.0.0${u} <${+o + 1}.0.0-0`) + : f && (n = `>=${o}.${s}.0${u} <${o}.${+s + 1}.0-0`), + Ht('xRange return', n), + n + ); + }); + }, + Kwt = (e, t) => (Ht('replaceStars', e, t), e.trim().replace(Mn[gn.STAR], '')), + Xwt = (e, t) => (Ht('replaceGTE0', e, t), e.trim().replace(Mn[t.includePrerelease ? gn.GTE0PRE : gn.GTE0], '')), + Jwt = (e) => (t, r, n, a, o, s, l, u, p, c, f, h, m) => ( + vn(n) + ? (r = '') + : vn(a) + ? (r = `>=${n}.0.0${e ? '-0' : ''}`) + : vn(o) + ? (r = `>=${n}.${a}.0${e ? '-0' : ''}`) + : s + ? (r = `>=${r}`) + : (r = `>=${r}${e ? '-0' : ''}`), + vn(p) + ? (u = '') + : vn(c) + ? (u = `<${+p + 1}.0.0-0`) + : vn(f) + ? (u = `<${p}.${+c + 1}.0-0`) + : h + ? (u = `<=${p}.${c}.${f}-${h}`) + : e + ? (u = `<${p}.${c}.${+f + 1}-0`) + : (u = `<=${u}`), + `${r} ${u}`.trim() + ), + Ywt = (e, t, r) => { + for (let n = 0; n < e.length; n++) if (!e[n].test(t)) return !1; + if (t.prerelease.length && !r.includePrerelease) { + for (let n = 0; n < e.length; n++) + if ((Ht(e[n].semver), e[n].semver !== ED.ANY && e[n].semver.prerelease.length > 0)) { + let a = e[n].semver; + if (a.major === t.major && a.minor === t.minor && a.patch === t.patch) return !0; + } + return !1; + } + return !0; + }; +}); +var fb = d((DZt, wwe) => { + var mb = Symbol('SemVer ANY'), + TD = class e { + static get ANY() { + return mb; + } + constructor(t, r) { + if (((r = gwe(r)), t instanceof e)) { + if (t.loose === !!r.loose) return t; + t = t.value; + } + (t = t.trim().split(/\s+/).join(' ')), + OD('comparator', t, r), + (this.options = r), + (this.loose = !!r.loose), + this.parse(t), + this.semver === mb ? (this.value = '') : (this.value = this.operator + this.semver.version), + OD('comp', this); + } + parse(t) { + let r = this.options.loose ? vwe[ywe.COMPARATORLOOSE] : vwe[ywe.COMPARATOR], + n = t.match(r); + if (!n) throw new TypeError(`Invalid comparator: ${t}`); + (this.operator = n[1] !== void 0 ? n[1] : ''), + this.operator === '=' && (this.operator = ''), + n[2] ? (this.semver = new bwe(n[2], this.options.loose)) : (this.semver = mb); + } + toString() { + return this.value; + } + test(t) { + if ((OD('Comparator.test', t, this.options.loose), this.semver === mb || t === mb)) return !0; + if (typeof t == 'string') + try { + t = new bwe(t, this.options); + } catch { + return !1; + } + return xD(t, this.operator, this.semver, this.options); + } + intersects(t, r) { + if (!(t instanceof e)) throw new TypeError('a Comparator is required'); + return this.operator === '' + ? this.value === '' + ? !0 + : new _we(t.value, r).test(this.value) + : t.operator === '' + ? t.value === '' + ? !0 + : new _we(this.value, r).test(t.semver) + : ((r = gwe(r)), + (r.includePrerelease && (this.value === '<0.0.0-0' || t.value === '<0.0.0-0')) || + (!r.includePrerelease && (this.value.startsWith('<0.0.0') || t.value.startsWith('<0.0.0'))) + ? !1 + : !!( + (this.operator.startsWith('>') && t.operator.startsWith('>')) || + (this.operator.startsWith('<') && t.operator.startsWith('<')) || + (this.semver.version === t.semver.version && + this.operator.includes('=') && + t.operator.includes('=')) || + (xD(this.semver, '<', t.semver, r) && this.operator.startsWith('>') && t.operator.startsWith('<')) || + (xD(this.semver, '>', t.semver, r) && this.operator.startsWith('<') && t.operator.startsWith('>')) + )); + } + }; + wwe.exports = TD; + var gwe = Z8(), + { safeRe: vwe, t: ywe } = rg(), + xD = vD(), + OD = ub(), + bwe = Qi(), + _we = Ja(); +}); +var hb = d((NZt, Swe) => { + var Qwt = Ja(), + Zwt = (e, t, r) => { + try { + t = new Qwt(t, r); + } catch { + return !1; + } + return t.test(e); + }; + Swe.exports = Zwt; +}); +var xwe = d((qZt, Ewe) => { + var e3t = Ja(), + t3t = (e, t) => + new e3t(e, t).set.map((r) => + r + .map((n) => n.value) + .join(' ') + .trim() + .split(' ') + ); + Ewe.exports = t3t; +}); +var Twe = d((FZt, Owe) => { + var r3t = Qi(), + i3t = Ja(), + n3t = (e, t, r) => { + let n = null, + a = null, + o = null; + try { + o = new i3t(t, r); + } catch { + return null; + } + return ( + e.forEach((s) => { + o.test(s) && (!n || a.compare(s) === -1) && ((n = s), (a = new r3t(n, r))); + }), + n + ); + }; + Owe.exports = n3t; +}); +var kwe = d((LZt, Cwe) => { + var a3t = Qi(), + o3t = Ja(), + s3t = (e, t, r) => { + let n = null, + a = null, + o = null; + try { + o = new o3t(t, r); + } catch { + return null; + } + return ( + e.forEach((s) => { + o.test(s) && (!n || a.compare(s) === 1) && ((n = s), (a = new a3t(n, r))); + }), + n + ); + }; + Cwe.exports = s3t; +}); +var Pwe = d((MZt, Iwe) => { + var CD = Qi(), + l3t = Ja(), + Awe = pb(), + u3t = (e, t) => { + e = new l3t(e, t); + let r = new CD('0.0.0'); + if (e.test(r) || ((r = new CD('0.0.0-0')), e.test(r))) return r; + r = null; + for (let n = 0; n < e.set.length; ++n) { + let a = e.set[n], + o = null; + a.forEach((s) => { + let l = new CD(s.semver.version); + switch (s.operator) { + case '>': + l.prerelease.length === 0 ? l.patch++ : l.prerelease.push(0), (l.raw = l.format()); + case '': + case '>=': + (!o || Awe(l, o)) && (o = l); + break; + case '<': + case '<=': + break; + default: + throw new Error(`Unexpected operation: ${s.operator}`); + } + }), + o && (!r || Awe(r, o)) && (r = o); + } + return r && e.test(r) ? r : null; + }; + Iwe.exports = u3t; +}); +var jwe = d((UZt, Rwe) => { + var p3t = Ja(), + c3t = (e, t) => { + try { + return new p3t(e, t).range || '*'; + } catch { + return null; + } + }; + Rwe.exports = c3t; +}); +var uS = d(($Zt, Fwe) => { + var d3t = Qi(), + qwe = fb(), + { ANY: f3t } = qwe, + m3t = Ja(), + h3t = hb(), + Dwe = pb(), + Nwe = iS(), + g3t = aS(), + v3t = nS(), + y3t = (e, t, r, n) => { + (e = new d3t(e, n)), (t = new m3t(t, n)); + let a, o, s, l, u; + switch (r) { + case '>': + (a = Dwe), (o = g3t), (s = Nwe), (l = '>'), (u = '>='); + break; + case '<': + (a = Nwe), (o = v3t), (s = Dwe), (l = '<'), (u = '<='); + break; + default: + throw new TypeError('Must provide a hilo val of "<" or ">"'); + } + if (h3t(e, t, n)) return !1; + for (let p = 0; p < t.set.length; ++p) { + let c = t.set[p], + f = null, + h = null; + if ( + (c.forEach((m) => { + m.semver === f3t && (m = new qwe('>=0.0.0')), + (f = f || m), + (h = h || m), + a(m.semver, f.semver, n) ? (f = m) : s(m.semver, h.semver, n) && (h = m); + }), + f.operator === l || f.operator === u || ((!h.operator || h.operator === l) && o(e, h.semver))) + ) + return !1; + if (h.operator === u && s(e, h.semver)) return !1; + } + return !0; + }; + Fwe.exports = y3t; +}); +var Mwe = d((BZt, Lwe) => { + var b3t = uS(), + _3t = (e, t, r) => b3t(e, t, '>', r); + Lwe.exports = _3t; +}); +var $we = d((VZt, Uwe) => { + var w3t = uS(), + S3t = (e, t, r) => w3t(e, t, '<', r); + Uwe.exports = S3t; +}); +var zwe = d((zZt, Vwe) => { + var Bwe = Ja(), + E3t = (e, t, r) => ((e = new Bwe(e, r)), (t = new Bwe(t, r)), e.intersects(t, r)); + Vwe.exports = E3t; +}); +var Gwe = d((HZt, Hwe) => { + var x3t = hb(), + O3t = Xa(); + Hwe.exports = (e, t, r) => { + let n = [], + a = null, + o = null, + s = e.sort((c, f) => O3t(c, f, r)); + for (let c of s) x3t(c, t, r) ? ((o = c), a || (a = c)) : (o && n.push([a, o]), (o = null), (a = null)); + a && n.push([a, null]); + let l = []; + for (let [c, f] of n) + c === f + ? l.push(c) + : !f && c === s[0] + ? l.push('*') + : f + ? c === s[0] + ? l.push(`<=${f}`) + : l.push(`${c} - ${f}`) + : l.push(`>=${c}`); + let u = l.join(' || '), + p = typeof t.raw == 'string' ? t.raw : String(t); + return u.length < p.length ? u : t; + }; +}); +var Qwe = d((GZt, Ywe) => { + var Wwe = Ja(), + AD = fb(), + { ANY: kD } = AD, + gb = hb(), + ID = Xa(), + T3t = (e, t, r = {}) => { + if (e === t) return !0; + (e = new Wwe(e, r)), (t = new Wwe(t, r)); + let n = !1; + e: for (let a of e.set) { + for (let o of t.set) { + let s = k3t(a, o, r); + if (((n = n || s !== null), s)) continue e; + } + if (n) return !1; + } + return !0; + }, + C3t = [new AD('>=0.0.0-0')], + Kwe = [new AD('>=0.0.0')], + k3t = (e, t, r) => { + if (e === t) return !0; + if (e.length === 1 && e[0].semver === kD) { + if (t.length === 1 && t[0].semver === kD) return !0; + r.includePrerelease ? (e = C3t) : (e = Kwe); + } + if (t.length === 1 && t[0].semver === kD) { + if (r.includePrerelease) return !0; + t = Kwe; + } + let n = new Set(), + a, + o; + for (let m of e) + m.operator === '>' || m.operator === '>=' + ? (a = Xwe(a, m, r)) + : m.operator === '<' || m.operator === '<=' + ? (o = Jwe(o, m, r)) + : n.add(m.semver); + if (n.size > 1) return null; + let s; + if (a && o) { + if (((s = ID(a.semver, o.semver, r)), s > 0)) return null; + if (s === 0 && (a.operator !== '>=' || o.operator !== '<=')) return null; + } + for (let m of n) { + if ((a && !gb(m, String(a), r)) || (o && !gb(m, String(o), r))) return null; + for (let v of t) if (!gb(m, String(v), r)) return !1; + return !0; + } + let l, + u, + p, + c, + f = o && !r.includePrerelease && o.semver.prerelease.length ? o.semver : !1, + h = a && !r.includePrerelease && a.semver.prerelease.length ? a.semver : !1; + f && f.prerelease.length === 1 && o.operator === '<' && f.prerelease[0] === 0 && (f = !1); + for (let m of t) { + if ( + ((c = c || m.operator === '>' || m.operator === '>='), + (p = p || m.operator === '<' || m.operator === '<='), + a) + ) { + if ( + (h && + m.semver.prerelease && + m.semver.prerelease.length && + m.semver.major === h.major && + m.semver.minor === h.minor && + m.semver.patch === h.patch && + (h = !1), + m.operator === '>' || m.operator === '>=') + ) { + if (((l = Xwe(a, m, r)), l === m && l !== a)) return !1; + } else if (a.operator === '>=' && !gb(a.semver, String(m), r)) return !1; + } + if (o) { + if ( + (f && + m.semver.prerelease && + m.semver.prerelease.length && + m.semver.major === f.major && + m.semver.minor === f.minor && + m.semver.patch === f.patch && + (f = !1), + m.operator === '<' || m.operator === '<=') + ) { + if (((u = Jwe(o, m, r)), u === m && u !== o)) return !1; + } else if (o.operator === '<=' && !gb(o.semver, String(m), r)) return !1; + } + if (!m.operator && (o || a) && s !== 0) return !1; + } + return !((a && p && !o && s !== 0) || (o && c && !a && s !== 0) || h || f); + }, + Xwe = (e, t, r) => { + if (!e) return t; + let n = ID(e.semver, t.semver, r); + return n > 0 ? e : n < 0 || (t.operator === '>' && e.operator === '>=') ? t : e; + }, + Jwe = (e, t, r) => { + if (!e) return t; + let n = ID(e.semver, t.semver, r); + return n < 0 ? e : n > 0 || (t.operator === '<' && e.operator === '<=') ? t : e; + }; + Ywe.exports = T3t; +}); +var vb = d((WZt, t3e) => { + var PD = rg(), + Zwe = lb(), + A3t = Qi(), + e3e = fD(), + I3t = Vd(), + P3t = b_e(), + R3t = w_e(), + j3t = x_e(), + D3t = C_e(), + N3t = A_e(), + q3t = P_e(), + F3t = j_e(), + L3t = N_e(), + M3t = Xa(), + U3t = M_e(), + $3t = $_e(), + B3t = rS(), + V3t = H_e(), + z3t = W_e(), + H3t = pb(), + G3t = iS(), + W3t = hD(), + K3t = gD(), + X3t = nS(), + J3t = aS(), + Y3t = vD(), + Q3t = rwe(), + Z3t = fb(), + e8t = Ja(), + t8t = hb(), + r8t = xwe(), + i8t = Twe(), + n8t = kwe(), + a8t = Pwe(), + o8t = jwe(), + s8t = uS(), + l8t = Mwe(), + u8t = $we(), + p8t = zwe(), + c8t = Gwe(), + d8t = Qwe(); + t3e.exports = { + parse: I3t, + valid: P3t, + clean: R3t, + inc: j3t, + diff: D3t, + major: N3t, + minor: q3t, + patch: F3t, + prerelease: L3t, + compare: M3t, + rcompare: U3t, + compareLoose: $3t, + compareBuild: B3t, + sort: V3t, + rsort: z3t, + gt: H3t, + lt: G3t, + eq: W3t, + neq: K3t, + gte: X3t, + lte: J3t, + cmp: Y3t, + coerce: Q3t, + Comparator: Z3t, + Range: e8t, + satisfies: t8t, + toComparators: r8t, + maxSatisfying: i8t, + minSatisfying: n8t, + minVersion: a8t, + validRange: o8t, + outside: s8t, + gtr: l8t, + ltr: u8t, + intersects: p8t, + simplifyRange: c8t, + subset: d8t, + SemVer: A3t, + re: PD.re, + src: PD.src, + tokens: PD.t, + SEMVER_SPEC_VERSION: Zwe.SEMVER_SPEC_VERSION, + RELEASE_TYPES: Zwe.RELEASE_TYPES, + compareIdentifiers: e3e.compareIdentifiers, + rcompareIdentifiers: e3e.rcompareIdentifiers, + }; +}); +var RD, + r3e = Tn(() => { + RD = '5.3.17'; + }); +var i3e, + He, + Ya = Tn(() => { + 'use strict'; + i3e = W(vb()); + r3e(); + Nt(); + He = class e { + constructor(t = {}, r = new Map()) { + this.listeners = t; + this.uniqueListeners = r; + } + static { + this.telemetryEventName = 'telemetry'; + } + static { + this.warningEventName = 'warning'; + } + static staticVersion() { + return RD; + } + static getInstance() { + if (!global.salesforceCoreLifecycle) global.salesforceCoreLifecycle = new e(); + else if ((0, i3e.compare)(global.salesforceCoreLifecycle.version(), e.staticVersion()) === -1) { + let t = global.salesforceCoreLifecycle; + (global.salesforceCoreLifecycle = new e({ ...t.listeners }, t.uniqueListeners)), + Object.keys(t.listeners).map((r) => { + t.removeAllListeners(r); + }); + } + return global.salesforceCoreLifecycle; + } + version() { + return RD; + } + removeAllListeners(t) { + (this.listeners[t] = []), this.uniqueListeners.delete(t); + } + getListeners(t) { + let r = this.listeners[t]?.concat(Array.from((this.uniqueListeners.get(t) ?? []).values()) ?? []); + return r || ((this.listeners[t] = []), []); + } + onTelemetry(t) { + this.on(e.telemetryEventName, t); + } + onWarning(t) { + this.on(e.warningEventName, t); + } + on(t, r, n) { + let a = this.getListeners(t); + a.length !== 0 && + (this.logger || (this.logger = le.childFromRoot('Lifecycle')), + this.logger.debug( + `${ + a.length + 1 + } lifecycle events with the name ${t} have now been registered. When this event is emitted all ${ + a.length + 1 + } listeners will fire.` + )), + n + ? this.uniqueListeners.has(t) + ? this.uniqueListeners.get(t)?.has(n) || this.uniqueListeners.get(t)?.set(n, r) + : this.uniqueListeners.set(t, new Map([[n, r]])) + : (a.push(r), (this.listeners[t] = a)); + } + async emitTelemetry(t) { + return this.emit(e.telemetryEventName, t); + } + async emitWarning(t) { + return ( + this.getListeners(e.warningEventName).length === 0 && process.emitWarning(t), this.emit(e.warningEventName, t) + ); + } + async emit(t, r) { + let n = this.getListeners(t); + if (n.length === 0 && t !== e.warningEventName) + this.logger || (this.logger = le.childFromRoot('Lifecycle')), + this.logger.debug( + `A lifecycle event with the name ${t} does not exist. An event must be registered before it can be emitted.` + ); + else for (let a of n) await a(r); + } + }; + }); +var yb, + n3e, + pS, + Un, + og = Tn(() => { + 'use strict'; + (yb = W(qe())), (n3e = W(Be())), (pS = W(pD())); + Nt(); + Ut(); + Ya(); + Un = class extends yb.AsyncOptionalCreatable { + constructor(r) { + super(r); + this.options = (0, n3e.ensure)(r); + } + async init() { + this.logger = await le.child(this.constructor.name); + } + async subscribe() { + let r, + a = (0, pS.retryDecorator)( + async () => { + let o; + try { + o = await this.options.poll(); + } catch (s) { + let l = (r = s); + throw ['ETIMEDOUT', 'ENOTFOUND', 'ECONNRESET', 'socket hang up'].some((u) => l.message.includes(u)) + ? (this.logger.debug('Network error on the request', l), + await He.getInstance().emitWarning('Network error occurred. Continuing to poll.'), + Q.wrap(l)) + : new pS.NotRetryableError(l.name); + } + if (o.completed) return o.payload; + throw new Error('Operation did not complete. Retrying...'); + }, + { + timeout: this.options.timeout.milliseconds, + delay: this.options.frequency.milliseconds, + retries: 'INFINITELY', + } + ); + try { + return await a(); + } catch (o) { + throw ( + r || + (await He.getInstance().emit('POLLING_TIME_OUT', o), + this.logger.debug('Polling timed out'), + new Q('The client has timed out.', this.options.timeoutErrorName ?? 'PollingClientTimeout')) + ); + } + } + }; + ((t) => { + class e { + constructor(n) { + (this.poll = n), (this.timeout = yb.Duration.minutes(3)), (this.frequency = yb.Duration.seconds(15)); + } + } + t.DefaultPollingOptions = e; + })((Un ||= {})); + }); +var cS, + a3e, + jD, + o3e, + nu, + h8t, + g8t, + Bo, + bb = Tn(() => { + 'use strict'; + (cS = require('dns')), (a3e = require('url')), (jD = require('util')), (o3e = W(Be())), (nu = W(qe())); + Nt(); + Vo(); + og(); + (h8t = Math.max(3, new nu.Env().getNumber('SFDX_DNS_TIMEOUT', 3))), + (g8t = Math.max(1, new nu.Env().getNumber('SFDX_DNS_RETRY_FREQUENCY', 1))), + (Bo = class e extends nu.AsyncOptionalCreatable { + constructor(r) { + super(r); + this.options = r ?? { url: e.DEFAULT_DOMAIN }; + } + static { + this.DEFAULT_DOMAIN = new a3e.URL('https://login.salesforce.com'); + } + getTimeout() { + return this.options.timeout ?? nu.Duration.seconds(h8t); + } + getFrequency() { + return this.options.frequency ?? nu.Duration.seconds(g8t); + } + async resolve() { + let r = new nu.Env(); + if (r.getBoolean('SF_DISABLE_DNS_CHECK', r.getBoolean('SFDX_DISABLE_DNS_CHECK', !1))) + return this.logger.debug('SF_DISABLE_DNS_CHECK set to true. Skipping DNS check...'), this.options.url.host; + let n = this, + a = { + async poll() { + let { host: s } = n.options.url, + l; + try { + return ( + n.logger.debug(`Attempting to resolve url: ${s}`), + new _e(n.options.url).isLocalUrl() + ? { completed: !0, payload: '127.0.0.1' } + : ((l = await (0, jD.promisify)(cS.lookup)(s)), + n.logger.debug(`Successfully resolved host: ${s} result: ${JSON.stringify(l)}`), + { completed: !0, payload: l.address }) + ); + } catch (u) { + return ( + n.logger.debug(`An error occurred trying to resolve: ${s}`), + n.logger.debug(`Error: ${u.message}`), + n.logger.debug('Re-trying dns lookup again....'), + { completed: !1 } + ); + } + }, + timeout: this.getTimeout(), + frequency: this.getFrequency(), + timeoutErrorName: 'MyDomainResolverTimeoutError', + }, + o = await Un.create(a); + return (0, o3e.ensureString)(await o.subscribe()); + } + async getCnames() { + try { + return await this.resolve(), await (0, jD.promisify)(cS.resolveCname)(this.options.url.host); + } catch (r) { + return ( + this.logger.debug(`An error occurred trying to resolve: ${this.options.url.host}`), + this.logger.debug(`Error: ${r.message}`), + [] + ); + } + } + async init() { + this.logger = await le.child('MyDomainResolver'); + } + }); + }); +var s3e = {}; +Q7(s3e, { SfdcUrl: () => _e, getLoginAudienceCombos: () => dS }); +function dS(e, t) { + return [ + ...[ + [t, t], + [_e.SANDBOX, _e.SANDBOX], + [_e.PRODUCTION, _e.PRODUCTION], + [e, e], + [e, _e.PRODUCTION], + [e, _e.SANDBOX], + [t, e], + [t, _e.PRODUCTION], + [t, _e.SANDBOX], + [_e.PRODUCTION, e], + [_e.SANDBOX, e], + ] + .filter(([a, o]) => !((a === _e.PRODUCTION && o === _e.SANDBOX) || (a === _e.SANDBOX && o === _e.PRODUCTION))) + .reduce((a, [o, s]) => { + let l = new Wd.URL(o), + u = new Wd.URL(s); + return a.set(`${l.origin}:${u.origin}`, [o, s]), a; + }, new Map()) + .values(), + ]; +} +var Wd, + ma, + _b, + _e, + Vo = Tn(() => { + 'use strict'; + (Wd = require('url')), (ma = W(qe())), (_b = W(Be())); + bb(); + Nt(); + Ya(); + _e = class e extends Wd.URL { + constructor(r, n) { + super(r.toString(), n); + this.protocol !== 'https:' && + !e.cache.has(this.origin) && + (e.cache.add(this.origin), + He.getInstance().emitWarning(`Using insecure protocol: ${this.protocol} on url: ${this.origin}`)); + } + static { + this.SANDBOX = 'https://test.salesforce.com'; + } + static { + this.PRODUCTION = 'https://login.salesforce.com'; + } + static { + this.cache = new Set(); + } + static isValidUrl(r) { + try { + return new Wd.URL(r.toString()), !0; + } catch { + return !1; + } + } + async getJwtAudienceUrl(r) { + this.logger = await le.child('SfdcUrl'); + let n = new ma.Env().getString('SFDX_AUDIENCE_URL', ''); + return n + ? (this.logger.debug(`Audience URL overridden by env var SFDX_AUDIENCE_URL=${n}`), n) + : (r && /^gs1/gi.test(r)) || /(gs1.my.salesforce.com)/gi.test(this.origin) + ? 'https://gs1.salesforce.com' + : e.PRODUCTION; + } + isSalesforceDomain() { + let r = [ + '.cloudforce.com', + '.content.force.com', + '.force.com', + '.salesforce.com', + '.salesforceliveagent.com', + '.secure.force.com', + 'crmforce.mil', + ], + n = ['developer.salesforce.com', 'trailhead.salesforce.com']; + return r.some((a) => this.hostname.endsWith(a) || n.includes(this.hostname)); + } + isInternalUrl() { + let r = [ + '.vpod.', + 'stm.salesforce.com', + 'stm.force.com', + '.blitz.salesforce.com', + '.stm.salesforce.ms', + '.pc-rnd.force.com', + '.pc-rnd.salesforce.com', + ]; + return this.origin.startsWith('https://gs1.') || this.isLocalUrl() || r.some((n) => this.origin.includes(n)); + } + isLocalUrl() { + return ['localhost.sfdcdev.', '.internal.'].some((n) => this.origin.includes(n)); + } + toLightningDomain() { + return this.origin.endsWith('.my.salesforce.mil') + ? this.origin.replace('.my.salesforce.mil', '.lightning.crmforce.mil') + : this.origin.endsWith('.my.salesforce.com') + ? this.origin.replace('.my.salesforce.com', '.lightning.force.com') + : this.origin.endsWith('.my-salesforce.com') + ? this.origin.replace('.my-salesforce.com', '.my-lightning.com') + : `https://${(0, _b.ensureArray)(/https?:\/\/([^.]*)/.exec(this.origin)) + .slice(1, 2) + .pop()}.lightning.force.com`; + } + async checkLightningDomain() { + let r = (0, _b.ensureNumber)(new ma.Env().getNumber('SFDX_DOMAIN_RETRY', 240)), + n = new ma.Duration(r, ma.Duration.Unit.SECONDS); + return ( + this.isInternalUrl() || + n.seconds === 0 || + (await ( + await Bo.create({ + url: new Wd.URL(this.toLightningDomain()), + timeout: n, + frequency: new ma.Duration(1, ma.Duration.Unit.SECONDS), + }) + ).resolve()), + !0 + ); + } + async lookup() { + let r = (0, _b.ensureNumber)(new ma.Env().getNumber('SFDX_DOMAIN_RETRY', 240)), + n = new ma.Duration(r, ma.Duration.Unit.SECONDS); + return ( + await Bo.create({ + url: new Wd.URL(this.origin), + timeout: n, + frequency: new ma.Duration(1, ma.Duration.Unit.SECONDS), + }) + ).resolve(); + } + isLightningDomain() { + return this.origin.includes('.lightning.force.com') || this.origin.includes('.lightning.crmforce.mil'); + } + }; + }); +function Kd(e) { + if (e) return e.length && e.length > 15 && (e = e.substring(0, 15)), e; +} +var l3e, + fS, + Xd, + v8t, + y8t, + DD, + b8t, + mS, + hS, + ND, + sg, + Vs = Tn(() => { + 'use strict'; + (l3e = W(qe())), (fS = W(Be())); + (Xd = (e) => e == null || /^[1-9]\d\.0$/.test(e)), + (v8t = (e) => /^[^.][^@]*@[^.]+(\.[^.\s]+)+$/.test(e)), + (y8t = (e) => { + let t = (Vo(), Zn(s3e)); + return new t(e).isInternalUrl(); + }), + (DD = (e) => /[a-zA-Z0-9]{18}|[a-zA-Z0-9]{15}/.test(e) && (e.length === 15 || e.length === 18)), + (b8t = (e) => !/[\["\?<>\|\]]+/.test(e)), + (mS = (e, t = []) => { + let r; + return ( + (0, l3e.findKey)(e, (n, a) => { + if (/^[A-Z]/.test(a)) r = a; + else if ((0, fS.isJsonMap)(n)) { + if (t.includes(a)) return r; + r = mS((0, fS.asJsonMap)(n)); + } + return r; + }), + r + ); + }), + (hS = /(00D\w{12,15})![.\w]*/), + (ND = /force:\/\/([a-zA-Z0-9._-]+):([a-zA-Z0-9._-]*):([a-zA-Z0-9._-]+={0,2})@([a-zA-Z0-9._-]+)/), + (sg = (e) => hS.test(e)); + }); +var lg, + _8t, + w8t, + S8t, + E8t, + x8t, + O8t, + T8t, + u3e, + qD, + p3e = Tn(() => { + 'use strict'; + lg = W(Be()); + Vs(); + (_8t = 'HIDDEN'), + (w8t = (e) => new RegExp(`(['"][^'"]*${e}[^'"]*['"]\\s*:\\s*)['"][^'"]*['"]`, 'gi')), + (S8t = (e) => + RegExp( + `(['"]\\s*key\\s*['"]\\s*:)\\s*['"]\\s*${e}\\s*['"]\\s*.\\s*['"]\\s*value\\s*['"]\\s*:\\s*['"]\\s*[^'"]*['"]`, + 'gi' + )), + (E8t = [ + { name: 'sid' }, + { name: 'Authorization' }, + { name: 'refresh_token', regex: `refresh[^'"]*token` }, + { name: 'clientsecret' }, + ]), + (x8t = E8t.map((e) => ({ + ...e, + regexTokens: w8t(e.regex ?? e.name), + hiddenAttrMessage: `"<${e.name} - ${_8t}>"`, + keyRegex: S8t(e.regex ?? e.name), + }))), + (O8t = (...e) => e.reduce((t, r) => (n) => t(r(n)))), + (T8t = x8t + .flatMap((e) => [ + (t) => t.replace(e.regexTokens, `$1${e.hiddenAttrMessage}`), + (t) => t.replace(e.keyRegex, `$1${e.hiddenAttrMessage}`), + ]) + .concat([ + (e) => + e + .replace(new RegExp(hS, 'g'), '') + .replace(new RegExp(ND, 'g'), ''), + ])), + (u3e = O8t(...T8t)), + (qD = (...e) => + e.map( + (t) => + t && + ((0, lg.isArray)(t) + ? qD(...t) + : t instanceof Buffer + ? '' + : (0, lg.isObject)(t) + ? JSON.parse(u3e(JSON.stringify(t))) + : (0, lg.isString)(t) + ? u3e(t) + : '') + )); + }); +var c3e, + gS, + d3e = Tn(() => { + 'use strict'; + c3e = require('stream'); + aD(); + p3e(); + gS = class extends c3e.Writable { + constructor() { + super({ objectMode: !0 }); + this.loggedData = []; + } + _write(r, n, a) { + let o = Bs(qD([r])); + this.loggedData.push(typeof o == 'string' ? JSON.parse(o) : o), a(); + } + }; + }); +var FD, + m3e, + f3e, + C8t, + h3e, + k8t, + g3e, + A8t, + I8t, + v3e = Tn(() => { + 'use strict'; + (FD = W(require('node:fs'))), (m3e = require('node:path')); + Yi(); + Nt(); + (f3e = 100), + (C8t = 7), + (h3e = 1e3 * 60 * 60 * 24 * C8t), + (k8t = Math.random() * f3e > f3e - 1), + (g3e = async (e = h3e, t = !1) => { + if (k8t || t) + try { + let r = await FD.promises.readdir(Oe.SF_DIR), + n = A8t(r, e); + await Promise.all(n.map((a) => FD.promises.unlink((0, m3e.join)(Oe.SF_DIR, a)))); + } catch (r) { + (await le.child('cleanup')).warn('Failed to cleanup old log files', r); + } + }), + (A8t = (e, t = h3e) => + e + .filter((r) => r.endsWith('.log')) + .map((r) => ({ file: r, date: r.match(/sf-(\d{4}-\d{2}-\d{2}).*\.log/)?.[1] })) + .filter(I8t) + .map((r) => ({ file: r.file, date: new Date(r.date) })) + .filter((r) => r.date < new Date(Date.now() - t)) + .map((r) => r.file)), + (I8t = (e) => typeof e == 'object' && e !== null && 'date' in e && typeof e.date == 'string'); + }); +var y3e, + LD, + pg, + vS, + yS, + ug, + le, + P8t, + R8t, + j8t, + b3e, + Nt = Tn(() => { + 'use strict'; + (y3e = W(require('os'))), (LD = W(require('path'))), (pg = W(Q4e())), (vS = W(qe())), (yS = W(Be())); + Yi(); + Ut(); + aD(); + d3e(); + v3e(); + (ug = ((s) => ( + (s[(s.TRACE = 10)] = 'TRACE'), + (s[(s.DEBUG = 20)] = 'DEBUG'), + (s[(s.INFO = 30)] = 'INFO'), + (s[(s.WARN = 40)] = 'WARN'), + (s[(s.ERROR = 50)] = 'ERROR'), + (s[(s.FATAL = 60)] = 'FATAL'), + s + ))(ug || {})), + (le = class e { + static { + this.ROOT_NAME = 'sf'; + } + static { + this.DEFAULT_LEVEL = 40; + } + static { + this.LEVEL_NAMES = Object.values(ug) + .filter(yS.isString) + .map((t) => t.toLowerCase()); + } + constructor(t) { + let r = typeof t == 'string' ? { name: t, level: e.DEFAULT_LEVEL, fields: {} } : t; + if (e.rootLogger && r.name === e.ROOT_NAME) + throw new Q('Can not create another root logger.', 'RedundantRootLoggerError'); + if (e.rootLogger) + (this.pinoLogger = e.rootLogger.pinoLogger.child({ ...r.fields, name: r.name })), + (this.memoryLogger = e.rootLogger.memoryLogger), + this.pinoLogger.trace(`Created '${r.name}' child logger instance`); + else { + let n = R8t(r.level), + a = { + name: r.name ?? e.ROOT_NAME, + base: r.fields ?? {}, + level: n, + enabled: process.env.SFDX_DISABLE_LOG_FILE !== 'true' && process.env.SF_DISABLE_LOG_FILE !== 'true', + }; + r.useMemoryLogger || Oe.getEnvironmentMode() === 'test' + ? ((this.memoryLogger = new gS()), + (this.pinoLogger = (0, pg.pino)({ ...a, sync: !0 }, this.memoryLogger))) + : ((this.pinoLogger = (0, pg.pino)({ + ...a, + transport: { + pipeline: [{ target: LD.join('..', '..', 'lib', 'logger', 'transformStream') }, P8t(n)], + }, + sync: !1, + })), + g3e()), + (e.rootLogger = this); + } + } + static async root() { + return Promise.resolve(this.getRoot()); + } + static getRoot() { + return this.rootLogger ? this.rootLogger : (this.rootLogger = new e(e.ROOT_NAME)); + } + static destroyRoot() { + this.rootLogger && (this.rootLogger = void 0); + } + static async child(t, r) { + return (await e.root()).child(t, r); + } + static childFromRoot(t, r) { + return e.getRoot().child(t, r); + } + static getLevelByName(t) { + if (((t = t.toUpperCase()), !(0, yS.isKeyOf)(ug, t))) + throw new Q(`Invalid log level "${t}".`, 'UnrecognizedLoggerLevelNameError'); + return ug[t]; + } + static getRawRootLogger() { + return e.getRoot().pinoLogger; + } + getRawLogger() { + return this.pinoLogger; + } + getName() { + return this.pinoLogger.bindings().name ?? ''; + } + getLevel() { + return this.pinoLogger.levelVal; + } + setLevel(t) { + if (t == null) { + let r = new vS.Env().getString('SF_LOG_LEVEL'); + t = r ? e.getLevelByName(r) : e.DEFAULT_LEVEL; + } + return ( + (this.pinoLogger.level = + this.pinoLogger.levels.labels[t] ?? this.pinoLogger.levels.labels[e.DEFAULT_LEVEL]), + this + ); + } + shouldLog(t) { + return (typeof t == 'string' ? this.pinoLogger.levelVal : t) >= this.getLevel(); + } + getBufferedRecords() { + if (!this.memoryLogger) throw new Error('getBufferedRecords is only supported when useMemoryLogging is true'); + return this.memoryLogger?.loggedData ?? []; + } + readLogContentsAsText() { + return this.memoryLogger + ? this.memoryLogger.loggedData.reduce((t, r) => ((t += JSON.stringify(r) + y3e.EOL), t), '') + : (this.pinoLogger.warn( + 'readLogContentsAsText is not supported for file streams, only used when useMemoryLogging is true' + ), + ''); + } + child(t, r = {}) { + let n = `${this.getName()}:${t}`, + a = new e({ name: n, fields: r }); + return this.pinoLogger.trace(`Setup child '${n}' logger instance`), a; + } + addField(t, r) { + return this.pinoLogger.setBindings({ ...this.pinoLogger.bindings(), [t]: r }), this; + } + trace(...t) { + return this.pinoLogger.trace(Bs(t)), this; + } + debug(...t) { + return this.pinoLogger.debug(Bs(t)), this; + } + debugCallback(t) {} + info(...t) { + return this.pinoLogger.info(Bs(t)), this; + } + warn(...t) { + return this.pinoLogger.warn(Bs(t)), this; + } + error(...t) { + return this.pinoLogger.error(Bs(t)), this; + } + fatal(...t) { + return console.log(...t), this.pinoLogger.fatal(Bs(t)), this; + } + }), + (P8t = (e = 'warn') => { + if (process.env.DEBUG) return { target: 'pino-pretty', options: { colorize: !0 } }; + let t = new Map([ + ['1m', new Date().toISOString().split(':').slice(0, 2).join('-')], + ['1h', new Date().toISOString().split(':').slice(0, 1).join('-')], + ['1d', new Date().toISOString().split('T')[0]], + ]), + r = new vS.Env().getString('SF_LOG_ROTATION_PERIOD') ?? '1d'; + return { + target: 'pino/file', + options: { destination: LD.join(Oe.SF_DIR, `sf-${t.get(r) ?? t.get('1d')}.log`), mkdir: !0, level: e }, + }; + }), + (R8t = (e) => { + let t = new vS.Env(), + r = isNaN(t.getNumber('SF_LOG_LEVEL') ?? NaN) ? t.getString('SF_LOG_LEVEL') : t.getNumber('SF_LOG_LEVEL'); + return typeof r < 'u' ? (typeof r == 'string' ? r : b3e(r)) : j8t(e); + }), + (j8t = (e) => { + switch (typeof e) { + case 'number': + return b3e(e); + case 'string': + return e; + default: + return pg.pino.levels.labels[le.DEFAULT_LEVEL]; + } + }), + (b3e = (e) => + pg.pino.levels.labels[e] ?? Object.entries(pg.pino.levels.labels).find(([t]) => Number(t) > e)?.[1] ?? 'warn'); + }); +var Qa = {}; +Q7(Qa, { + __addDisposableResource: () => n8e, + __assign: () => AS, + __asyncDelegator: () => J3e, + __asyncGenerator: () => X3e, + __asyncValues: () => Y3e, + __await: () => mg, + __awaiter: () => V3e, + __classPrivateFieldGet: () => t8e, + __classPrivateFieldIn: () => i8e, + __classPrivateFieldSet: () => r8e, + __createBinding: () => PS, + __decorate: () => U3e, + __disposeResources: () => a8e, + __esDecorate: () => L8t, + __exportStar: () => H3e, + __extends: () => L3e, + __generator: () => z3e, + __importDefault: () => e8e, + __importStar: () => Z3e, + __makeTemplateObject: () => Q3e, + __metadata: () => B3e, + __param: () => $3e, + __propKey: () => U8t, + __read: () => ZD, + __rest: () => M3e, + __runInitializers: () => M8t, + __setFunctionName: () => $8t, + __spread: () => G3e, + __spreadArray: () => K3e, + __spreadArrays: () => W3e, + __values: () => IS, + default: () => z8t, +}); +function L3e(e, t) { + if (typeof t != 'function' && t !== null) + throw new TypeError('Class extends value ' + String(t) + ' is not a constructor or null'); + QD(e, t); + function r() { + this.constructor = e; + } + e.prototype = t === null ? Object.create(t) : ((r.prototype = t.prototype), new r()); +} +function M3e(e, t) { + var r = {}; + for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); + if (e != null && typeof Object.getOwnPropertySymbols == 'function') + for (var a = 0, n = Object.getOwnPropertySymbols(e); a < n.length; a++) + t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]); + return r; +} +function U3e(e, t, r, n) { + var a = arguments.length, + o = a < 3 ? t : n === null ? (n = Object.getOwnPropertyDescriptor(t, r)) : n, + s; + if (typeof Reflect == 'object' && typeof Reflect.decorate == 'function') o = Reflect.decorate(e, t, r, n); + else for (var l = e.length - 1; l >= 0; l--) (s = e[l]) && (o = (a < 3 ? s(o) : a > 3 ? s(t, r, o) : s(t, r)) || o); + return a > 3 && o && Object.defineProperty(t, r, o), o; +} +function $3e(e, t) { + return function (r, n) { + t(r, n, e); + }; +} +function L8t(e, t, r, n, a, o) { + function s(w) { + if (w !== void 0 && typeof w != 'function') throw new TypeError('Function expected'); + return w; + } + for ( + var l = n.kind, + u = l === 'getter' ? 'get' : l === 'setter' ? 'set' : 'value', + p = !t && e ? (n.static ? e : e.prototype) : null, + c = t || (p ? Object.getOwnPropertyDescriptor(p, n.name) : {}), + f, + h = !1, + m = r.length - 1; + m >= 0; + m-- + ) { + var v = {}; + for (var y in n) v[y] = y === 'access' ? {} : n[y]; + for (var y in n.access) v.access[y] = n.access[y]; + v.addInitializer = function (w) { + if (h) throw new TypeError('Cannot add initializers after decoration has completed'); + o.push(s(w || null)); + }; + var S = (0, r[m])(l === 'accessor' ? { get: c.get, set: c.set } : c[u], v); + if (l === 'accessor') { + if (S === void 0) continue; + if (S === null || typeof S != 'object') throw new TypeError('Object expected'); + (f = s(S.get)) && (c.get = f), (f = s(S.set)) && (c.set = f), (f = s(S.init)) && a.unshift(f); + } else (f = s(S)) && (l === 'field' ? a.unshift(f) : (c[u] = f)); + } + p && Object.defineProperty(p, n.name, c), (h = !0); +} +function M8t(e, t, r) { + for (var n = arguments.length > 2, a = 0; a < t.length; a++) r = n ? t[a].call(e, r) : t[a].call(e); + return n ? r : void 0; +} +function U8t(e) { + return typeof e == 'symbol' ? e : ''.concat(e); +} +function $8t(e, t, r) { + return ( + typeof t == 'symbol' && (t = t.description ? '['.concat(t.description, ']') : ''), + Object.defineProperty(e, 'name', { configurable: !0, value: r ? ''.concat(r, ' ', t) : t }) + ); +} +function B3e(e, t) { + if (typeof Reflect == 'object' && typeof Reflect.metadata == 'function') return Reflect.metadata(e, t); +} +function V3e(e, t, r, n) { + function a(o) { + return o instanceof r + ? o + : new r(function (s) { + s(o); + }); + } + return new (r || (r = Promise))(function (o, s) { + function l(c) { + try { + p(n.next(c)); + } catch (f) { + s(f); + } + } + function u(c) { + try { + p(n.throw(c)); + } catch (f) { + s(f); + } + } + function p(c) { + c.done ? o(c.value) : a(c.value).then(l, u); + } + p((n = n.apply(e, t || [])).next()); + }); +} +function z3e(e, t) { + var r = { + label: 0, + sent: function () { + if (o[0] & 1) throw o[1]; + return o[1]; + }, + trys: [], + ops: [], + }, + n, + a, + o, + s; + return ( + (s = { next: l(0), throw: l(1), return: l(2) }), + typeof Symbol == 'function' && + (s[Symbol.iterator] = function () { + return this; + }), + s + ); + function l(p) { + return function (c) { + return u([p, c]); + }; + } + function u(p) { + if (n) throw new TypeError('Generator is already executing.'); + for (; s && ((s = 0), p[0] && (r = 0)), r; ) + try { + if ( + ((n = 1), + a && + (o = p[0] & 2 ? a.return : p[0] ? a.throw || ((o = a.return) && o.call(a), 0) : a.next) && + !(o = o.call(a, p[1])).done) + ) + return o; + switch (((a = 0), o && (p = [p[0] & 2, o.value]), p[0])) { + case 0: + case 1: + o = p; + break; + case 4: + return r.label++, { value: p[1], done: !1 }; + case 5: + r.label++, (a = p[1]), (p = [0]); + continue; + case 7: + (p = r.ops.pop()), r.trys.pop(); + continue; + default: + if (((o = r.trys), !(o = o.length > 0 && o[o.length - 1]) && (p[0] === 6 || p[0] === 2))) { + r = 0; + continue; + } + if (p[0] === 3 && (!o || (p[1] > o[0] && p[1] < o[3]))) { + r.label = p[1]; + break; + } + if (p[0] === 6 && r.label < o[1]) { + (r.label = o[1]), (o = p); + break; + } + if (o && r.label < o[2]) { + (r.label = o[2]), r.ops.push(p); + break; + } + o[2] && r.ops.pop(), r.trys.pop(); + continue; + } + p = t.call(e, r); + } catch (c) { + (p = [6, c]), (a = 0); + } finally { + n = o = 0; + } + if (p[0] & 5) throw p[1]; + return { value: p[0] ? p[1] : void 0, done: !0 }; + } +} +function H3e(e, t) { + for (var r in e) r !== 'default' && !Object.prototype.hasOwnProperty.call(t, r) && PS(t, e, r); +} +function IS(e) { + var t = typeof Symbol == 'function' && Symbol.iterator, + r = t && e[t], + n = 0; + if (r) return r.call(e); + if (e && typeof e.length == 'number') + return { + next: function () { + return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e }; + }, + }; + throw new TypeError(t ? 'Object is not iterable.' : 'Symbol.iterator is not defined.'); +} +function ZD(e, t) { + var r = typeof Symbol == 'function' && e[Symbol.iterator]; + if (!r) return e; + var n = r.call(e), + a, + o = [], + s; + try { + for (; (t === void 0 || t-- > 0) && !(a = n.next()).done; ) o.push(a.value); + } catch (l) { + s = { error: l }; + } finally { + try { + a && !a.done && (r = n.return) && r.call(n); + } finally { + if (s) throw s.error; + } + } + return o; +} +function G3e() { + for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(ZD(arguments[t])); + return e; +} +function W3e() { + for (var e = 0, t = 0, r = arguments.length; t < r; t++) e += arguments[t].length; + for (var n = Array(e), a = 0, t = 0; t < r; t++) + for (var o = arguments[t], s = 0, l = o.length; s < l; s++, a++) n[a] = o[s]; + return n; +} +function K3e(e, t, r) { + if (r || arguments.length === 2) + for (var n = 0, a = t.length, o; n < a; n++) + (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), (o[n] = t[n])); + return e.concat(o || Array.prototype.slice.call(t)); +} +function mg(e) { + return this instanceof mg ? ((this.v = e), this) : new mg(e); +} +function X3e(e, t, r) { + if (!Symbol.asyncIterator) throw new TypeError('Symbol.asyncIterator is not defined.'); + var n = r.apply(e, t || []), + a, + o = []; + return ( + (a = {}), + s('next'), + s('throw'), + s('return'), + (a[Symbol.asyncIterator] = function () { + return this; + }), + a + ); + function s(h) { + n[h] && + (a[h] = function (m) { + return new Promise(function (v, y) { + o.push([h, m, v, y]) > 1 || l(h, m); + }); + }); + } + function l(h, m) { + try { + u(n[h](m)); + } catch (v) { + f(o[0][3], v); + } + } + function u(h) { + h.value instanceof mg ? Promise.resolve(h.value.v).then(p, c) : f(o[0][2], h); + } + function p(h) { + l('next', h); + } + function c(h) { + l('throw', h); + } + function f(h, m) { + h(m), o.shift(), o.length && l(o[0][0], o[0][1]); + } +} +function J3e(e) { + var t, r; + return ( + (t = {}), + n('next'), + n('throw', function (a) { + throw a; + }), + n('return'), + (t[Symbol.iterator] = function () { + return this; + }), + t + ); + function n(a, o) { + t[a] = e[a] + ? function (s) { + return (r = !r) ? { value: mg(e[a](s)), done: !1 } : o ? o(s) : s; + } + : o; + } +} +function Y3e(e) { + if (!Symbol.asyncIterator) throw new TypeError('Symbol.asyncIterator is not defined.'); + var t = e[Symbol.asyncIterator], + r; + return t + ? t.call(e) + : ((e = typeof IS == 'function' ? IS(e) : e[Symbol.iterator]()), + (r = {}), + n('next'), + n('throw'), + n('return'), + (r[Symbol.asyncIterator] = function () { + return this; + }), + r); + function n(o) { + r[o] = + e[o] && + function (s) { + return new Promise(function (l, u) { + (s = e[o](s)), a(l, u, s.done, s.value); + }); + }; + } + function a(o, s, l, u) { + Promise.resolve(u).then(function (p) { + o({ value: p, done: l }); + }, s); + } +} +function Q3e(e, t) { + return Object.defineProperty ? Object.defineProperty(e, 'raw', { value: t }) : (e.raw = t), e; +} +function Z3e(e) { + if (e && e.__esModule) return e; + var t = {}; + if (e != null) for (var r in e) r !== 'default' && Object.prototype.hasOwnProperty.call(e, r) && PS(t, e, r); + return B8t(t, e), t; +} +function e8e(e) { + return e && e.__esModule ? e : { default: e }; +} +function t8e(e, t, r, n) { + if (r === 'a' && !n) throw new TypeError('Private accessor was defined without a getter'); + if (typeof t == 'function' ? e !== t || !n : !t.has(e)) + throw new TypeError('Cannot read private member from an object whose class did not declare it'); + return r === 'm' ? n : r === 'a' ? n.call(e) : n ? n.value : t.get(e); +} +function r8e(e, t, r, n, a) { + if (n === 'm') throw new TypeError('Private method is not writable'); + if (n === 'a' && !a) throw new TypeError('Private accessor was defined without a setter'); + if (typeof t == 'function' ? e !== t || !a : !t.has(e)) + throw new TypeError('Cannot write private member to an object whose class did not declare it'); + return n === 'a' ? a.call(e, r) : a ? (a.value = r) : t.set(e, r), r; +} +function i8e(e, t) { + if (t === null || (typeof t != 'object' && typeof t != 'function')) + throw new TypeError("Cannot use 'in' operator on non-object"); + return typeof e == 'function' ? t === e : e.has(t); +} +function n8e(e, t, r) { + if (t != null) { + if (typeof t != 'object' && typeof t != 'function') throw new TypeError('Object expected.'); + var n; + if (r) { + if (!Symbol.asyncDispose) throw new TypeError('Symbol.asyncDispose is not defined.'); + n = t[Symbol.asyncDispose]; + } + if (n === void 0) { + if (!Symbol.dispose) throw new TypeError('Symbol.dispose is not defined.'); + n = t[Symbol.dispose]; + } + if (typeof n != 'function') throw new TypeError('Object not disposable.'); + e.stack.push({ value: t, dispose: n, async: r }); + } else r && e.stack.push({ async: !0 }); + return t; +} +function a8e(e) { + function t(n) { + (e.error = e.hasError ? new V8t(n, e.error, 'An error was suppressed during disposal.') : n), (e.hasError = !0); + } + function r() { + for (; e.stack.length; ) { + var n = e.stack.pop(); + try { + var a = n.dispose && n.dispose.call(n.value); + if (n.async) + return Promise.resolve(a).then(r, function (o) { + return t(o), r(); + }); + } catch (o) { + t(o); + } + } + if (e.hasError) throw e.error; + } + return r(); +} +var QD, + AS, + PS, + B8t, + V8t, + z8t, + Za = Tn(() => { + QD = function (e, t) { + return ( + (QD = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (r, n) { + r.__proto__ = n; + }) || + function (r, n) { + for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (r[a] = n[a]); + }), + QD(e, t) + ); + }; + AS = function () { + return ( + (AS = + Object.assign || + function (t) { + for (var r, n = 1, a = arguments.length; n < a; n++) { + r = arguments[n]; + for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]); + } + return t; + }), + AS.apply(this, arguments) + ); + }; + PS = Object.create + ? function (e, t, r, n) { + n === void 0 && (n = r); + var a = Object.getOwnPropertyDescriptor(t, r); + (!a || ('get' in a ? !t.__esModule : a.writable || a.configurable)) && + (a = { + enumerable: !0, + get: function () { + return t[r]; + }, + }), + Object.defineProperty(e, n, a); + } + : function (e, t, r, n) { + n === void 0 && (n = r), (e[n] = t[r]); + }; + B8t = Object.create + ? function (e, t) { + Object.defineProperty(e, 'default', { enumerable: !0, value: t }); + } + : function (e, t) { + e.default = t; + }; + V8t = + typeof SuppressedError == 'function' + ? SuppressedError + : function (e, t, r) { + var n = new Error(r); + return (n.name = 'SuppressedError'), (n.error = e), (n.suppressed = t), n; + }; + z8t = { + __extends: L3e, + __assign: AS, + __rest: M3e, + __decorate: U3e, + __param: $3e, + __metadata: B3e, + __awaiter: V3e, + __generator: z3e, + __createBinding: PS, + __exportStar: H3e, + __values: IS, + __read: ZD, + __spread: G3e, + __spreadArrays: W3e, + __spreadArray: K3e, + __await: mg, + __asyncGenerator: X3e, + __asyncDelegator: J3e, + __asyncValues: Y3e, + __makeTemplateObject: Q3e, + __importStar: Z3e, + __importDefault: e8e, + __classPrivateFieldGet: t8e, + __classPrivateFieldSet: r8e, + __classPrivateFieldIn: i8e, + __addDisposableResource: n8e, + __disposeResources: a8e, + }; + }); +var o8e = d((hg) => { + 'use strict'; + Object.defineProperty(hg, '__esModule', { value: !0 }); + hg.lowerCase = hg.localeLowerCase = void 0; + var H8t = { + tr: { regexp: /\u0130|\u0049|\u0049\u0307/g, map: { İ: 'i', I: '\u0131', İ: 'i' } }, + az: { regexp: /\u0130/g, map: { İ: 'i', I: '\u0131', İ: 'i' } }, + lt: { + regexp: /\u0049|\u004A|\u012E|\u00CC|\u00CD|\u0128/g, + map: { + I: 'i\u0307', + J: 'j\u0307', + Į: '\u012F\u0307', + Ì: 'i\u0307\u0300', + Í: 'i\u0307\u0301', + Ĩ: 'i\u0307\u0303', + }, + }, + }; + function G8t(e, t) { + var r = H8t[t.toLowerCase()]; + return eN( + r + ? e.replace(r.regexp, function (n) { + return r.map[n]; + }) + : e + ); + } + hg.localeLowerCase = G8t; + function eN(e) { + return e.toLowerCase(); + } + hg.lowerCase = eN; +}); +var Qd = d((RS) => { + 'use strict'; + Object.defineProperty(RS, '__esModule', { value: !0 }); + RS.noCase = void 0; + var W8t = o8e(), + K8t = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g], + X8t = /[^A-Z0-9]+/gi; + function J8t(e, t) { + t === void 0 && (t = {}); + for ( + var r = t.splitRegexp, + n = r === void 0 ? K8t : r, + a = t.stripRegexp, + o = a === void 0 ? X8t : a, + s = t.transform, + l = s === void 0 ? W8t.lowerCase : s, + u = t.delimiter, + p = u === void 0 ? ' ' : u, + c = s8e(s8e(e, n, '$1\0$2'), o, '\0'), + f = 0, + h = c.length; + c.charAt(f) === '\0'; + + ) + f++; + for (; c.charAt(h - 1) === '\0'; ) h--; + return c.slice(f, h).split('\0').map(l).join(p); + } + RS.noCase = J8t; + function s8e(e, t, r) { + return t instanceof RegExp + ? e.replace(t, r) + : t.reduce(function (n, a) { + return n.replace(a, r); + }, e); + } +}); +var tN = d((Dp) => { + 'use strict'; + Object.defineProperty(Dp, '__esModule', { value: !0 }); + Dp.pascalCase = Dp.pascalCaseTransformMerge = Dp.pascalCaseTransform = void 0; + var Y8t = (Za(), Zn(Qa)), + Q8t = Qd(); + function l8e(e, t) { + var r = e.charAt(0), + n = e.substr(1).toLowerCase(); + return t > 0 && r >= '0' && r <= '9' ? '_' + r + n : '' + r.toUpperCase() + n; + } + Dp.pascalCaseTransform = l8e; + function Z8t(e) { + return e.charAt(0).toUpperCase() + e.slice(1).toLowerCase(); + } + Dp.pascalCaseTransformMerge = Z8t; + function eSt(e, t) { + return t === void 0 && (t = {}), Q8t.noCase(e, Y8t.__assign({ delimiter: '', transform: l8e }, t)); + } + Dp.pascalCase = eSt; +}); +var p8e = d((Np) => { + 'use strict'; + Object.defineProperty(Np, '__esModule', { value: !0 }); + Np.camelCase = Np.camelCaseTransformMerge = Np.camelCaseTransform = void 0; + var tSt = (Za(), Zn(Qa)), + rN = tN(); + function u8e(e, t) { + return t === 0 ? e.toLowerCase() : rN.pascalCaseTransform(e, t); + } + Np.camelCaseTransform = u8e; + function rSt(e, t) { + return t === 0 ? e.toLowerCase() : rN.pascalCaseTransformMerge(e); + } + Np.camelCaseTransformMerge = rSt; + function iSt(e, t) { + return t === void 0 && (t = {}), rN.pascalCase(e, tSt.__assign({ transform: u8e }, t)); + } + Np.camelCase = iSt; +}); +var iN = d((jS) => { + 'use strict'; + Object.defineProperty(jS, '__esModule', { value: !0 }); + jS.upperCaseFirst = void 0; + function nSt(e) { + return e.charAt(0).toUpperCase() + e.substr(1); + } + jS.upperCaseFirst = nSt; +}); +var nN = d((gg) => { + 'use strict'; + Object.defineProperty(gg, '__esModule', { value: !0 }); + gg.capitalCase = gg.capitalCaseTransform = void 0; + var aSt = (Za(), Zn(Qa)), + oSt = Qd(), + sSt = iN(); + function c8e(e) { + return sSt.upperCaseFirst(e.toLowerCase()); + } + gg.capitalCaseTransform = c8e; + function lSt(e, t) { + return t === void 0 && (t = {}), oSt.noCase(e, aSt.__assign({ delimiter: ' ', transform: c8e }, t)); + } + gg.capitalCase = lSt; +}); +var d8e = d((vg) => { + 'use strict'; + Object.defineProperty(vg, '__esModule', { value: !0 }); + vg.upperCase = vg.localeUpperCase = void 0; + var uSt = { + tr: { regexp: /[\u0069]/g, map: { i: '\u0130' } }, + az: { regexp: /[\u0069]/g, map: { i: '\u0130' } }, + lt: { + regexp: /[\u0069\u006A\u012F]\u0307|\u0069\u0307[\u0300\u0301\u0303]/g, + map: { i̇: 'I', j̇: 'J', į̇: '\u012E', i̇̀: '\xCC', i̇́: '\xCD', i̇̃: '\u0128' }, + }, + }; + function pSt(e, t) { + var r = uSt[t.toLowerCase()]; + return aN( + r + ? e.replace(r.regexp, function (n) { + return r.map[n]; + }) + : e + ); + } + vg.localeUpperCase = pSt; + function aN(e) { + return e.toUpperCase(); + } + vg.upperCase = aN; +}); +var f8e = d((DS) => { + 'use strict'; + Object.defineProperty(DS, '__esModule', { value: !0 }); + DS.constantCase = void 0; + var cSt = (Za(), Zn(Qa)), + dSt = Qd(), + fSt = d8e(); + function mSt(e, t) { + return t === void 0 && (t = {}), dSt.noCase(e, cSt.__assign({ delimiter: '_', transform: fSt.upperCase }, t)); + } + DS.constantCase = mSt; +}); +var Tb = d((NS) => { + 'use strict'; + Object.defineProperty(NS, '__esModule', { value: !0 }); + NS.dotCase = void 0; + var hSt = (Za(), Zn(Qa)), + gSt = Qd(); + function vSt(e, t) { + return t === void 0 && (t = {}), gSt.noCase(e, hSt.__assign({ delimiter: '.' }, t)); + } + NS.dotCase = vSt; +}); +var m8e = d((qS) => { + 'use strict'; + Object.defineProperty(qS, '__esModule', { value: !0 }); + qS.headerCase = void 0; + var ySt = (Za(), Zn(Qa)), + bSt = nN(); + function _St(e, t) { + return t === void 0 && (t = {}), bSt.capitalCase(e, ySt.__assign({ delimiter: '-' }, t)); + } + qS.headerCase = _St; +}); +var h8e = d((FS) => { + 'use strict'; + Object.defineProperty(FS, '__esModule', { value: !0 }); + FS.paramCase = void 0; + var wSt = (Za(), Zn(Qa)), + SSt = Tb(); + function ESt(e, t) { + return t === void 0 && (t = {}), SSt.dotCase(e, wSt.__assign({ delimiter: '-' }, t)); + } + FS.paramCase = ESt; +}); +var g8e = d((LS) => { + 'use strict'; + Object.defineProperty(LS, '__esModule', { value: !0 }); + LS.pathCase = void 0; + var xSt = (Za(), Zn(Qa)), + OSt = Tb(); + function TSt(e, t) { + return t === void 0 && (t = {}), OSt.dotCase(e, xSt.__assign({ delimiter: '/' }, t)); + } + LS.pathCase = TSt; +}); +var y8e = d((yg) => { + 'use strict'; + Object.defineProperty(yg, '__esModule', { value: !0 }); + yg.sentenceCase = yg.sentenceCaseTransform = void 0; + var CSt = (Za(), Zn(Qa)), + kSt = Qd(), + ASt = iN(); + function v8e(e, t) { + var r = e.toLowerCase(); + return t === 0 ? ASt.upperCaseFirst(r) : r; + } + yg.sentenceCaseTransform = v8e; + function ISt(e, t) { + return t === void 0 && (t = {}), kSt.noCase(e, CSt.__assign({ delimiter: ' ', transform: v8e }, t)); + } + yg.sentenceCase = ISt; +}); +var b8e = d((MS) => { + 'use strict'; + Object.defineProperty(MS, '__esModule', { value: !0 }); + MS.snakeCase = void 0; + var PSt = (Za(), Zn(Qa)), + RSt = Tb(); + function jSt(e, t) { + return t === void 0 && (t = {}), RSt.dotCase(e, PSt.__assign({ delimiter: '_' }, t)); + } + MS.snakeCase = jSt; +}); +var _8e = d((va) => { + 'use strict'; + Object.defineProperty(va, '__esModule', { value: !0 }); + var Ho = (Za(), Zn(Qa)); + Ho.__exportStar(p8e(), va); + Ho.__exportStar(nN(), va); + Ho.__exportStar(f8e(), va); + Ho.__exportStar(Tb(), va); + Ho.__exportStar(m8e(), va); + Ho.__exportStar(Qd(), va); + Ho.__exportStar(h8e(), va); + Ho.__exportStar(tN(), va); + Ho.__exportStar(g8e(), va); + Ho.__exportStar(y8e(), va); + Ho.__exportStar(b8e(), va); +}); +var T8e = d((Mtr, O8e) => { + var Fp = require('constants'), + NSt = process.cwd, + VS = null, + qSt = process.env.GRACEFUL_FS_PLATFORM || process.platform; + process.cwd = function () { + return VS || (VS = NSt.call(process)), VS; + }; + try { + process.cwd(); + } catch {} + typeof process.chdir == 'function' && + ((lN = process.chdir), + (process.chdir = function (e) { + (VS = null), lN.call(process, e); + }), + Object.setPrototypeOf && Object.setPrototypeOf(process.chdir, lN)); + var lN; + O8e.exports = FSt; + function FSt(e) { + Fp.hasOwnProperty('O_SYMLINK') && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./) && t(e), + e.lutimes || r(e), + (e.chown = o(e.chown)), + (e.fchown = o(e.fchown)), + (e.lchown = o(e.lchown)), + (e.chmod = n(e.chmod)), + (e.fchmod = n(e.fchmod)), + (e.lchmod = n(e.lchmod)), + (e.chownSync = s(e.chownSync)), + (e.fchownSync = s(e.fchownSync)), + (e.lchownSync = s(e.lchownSync)), + (e.chmodSync = a(e.chmodSync)), + (e.fchmodSync = a(e.fchmodSync)), + (e.lchmodSync = a(e.lchmodSync)), + (e.stat = l(e.stat)), + (e.fstat = l(e.fstat)), + (e.lstat = l(e.lstat)), + (e.statSync = u(e.statSync)), + (e.fstatSync = u(e.fstatSync)), + (e.lstatSync = u(e.lstatSync)), + e.chmod && + !e.lchmod && + ((e.lchmod = function (c, f, h) { + h && process.nextTick(h); + }), + (e.lchmodSync = function () {})), + e.chown && + !e.lchown && + ((e.lchown = function (c, f, h, m) { + m && process.nextTick(m); + }), + (e.lchownSync = function () {})), + qSt === 'win32' && + (e.rename = + typeof e.rename != 'function' + ? e.rename + : (function (c) { + function f(h, m, v) { + var y = Date.now(), + S = 0; + c(h, m, function w(O) { + if ( + O && + (O.code === 'EACCES' || O.code === 'EPERM' || O.code === 'EBUSY') && + Date.now() - y < 6e4 + ) { + setTimeout(function () { + e.stat(m, function (x, _) { + x && x.code === 'ENOENT' ? c(h, m, w) : v(O); + }); + }, S), + S < 100 && (S += 10); + return; + } + v && v(O); + }); + } + return Object.setPrototypeOf && Object.setPrototypeOf(f, c), f; + })(e.rename)), + (e.read = + typeof e.read != 'function' + ? e.read + : (function (c) { + function f(h, m, v, y, S, w) { + var O; + if (w && typeof w == 'function') { + var x = 0; + O = function (_, b, T) { + if (_ && _.code === 'EAGAIN' && x < 10) return x++, c.call(e, h, m, v, y, S, O); + w.apply(this, arguments); + }; + } + return c.call(e, h, m, v, y, S, O); + } + return Object.setPrototypeOf && Object.setPrototypeOf(f, c), f; + })(e.read)), + (e.readSync = + typeof e.readSync != 'function' + ? e.readSync + : (function (c) { + return function (f, h, m, v, y) { + for (var S = 0; ; ) + try { + return c.call(e, f, h, m, v, y); + } catch (w) { + if (w.code === 'EAGAIN' && S < 10) { + S++; + continue; + } + throw w; + } + }; + })(e.readSync)); + function t(c) { + (c.lchmod = function (f, h, m) { + c.open(f, Fp.O_WRONLY | Fp.O_SYMLINK, h, function (v, y) { + if (v) { + m && m(v); + return; + } + c.fchmod(y, h, function (S) { + c.close(y, function (w) { + m && m(S || w); + }); + }); + }); + }), + (c.lchmodSync = function (f, h) { + var m = c.openSync(f, Fp.O_WRONLY | Fp.O_SYMLINK, h), + v = !0, + y; + try { + (y = c.fchmodSync(m, h)), (v = !1); + } finally { + if (v) + try { + c.closeSync(m); + } catch {} + else c.closeSync(m); + } + return y; + }); + } + function r(c) { + Fp.hasOwnProperty('O_SYMLINK') && c.futimes + ? ((c.lutimes = function (f, h, m, v) { + c.open(f, Fp.O_SYMLINK, function (y, S) { + if (y) { + v && v(y); + return; + } + c.futimes(S, h, m, function (w) { + c.close(S, function (O) { + v && v(w || O); + }); + }); + }); + }), + (c.lutimesSync = function (f, h, m) { + var v = c.openSync(f, Fp.O_SYMLINK), + y, + S = !0; + try { + (y = c.futimesSync(v, h, m)), (S = !1); + } finally { + if (S) + try { + c.closeSync(v); + } catch {} + else c.closeSync(v); + } + return y; + })) + : c.futimes && + ((c.lutimes = function (f, h, m, v) { + v && process.nextTick(v); + }), + (c.lutimesSync = function () {})); + } + function n(c) { + return ( + c && + function (f, h, m) { + return c.call(e, f, h, function (v) { + p(v) && (v = null), m && m.apply(this, arguments); + }); + } + ); + } + function a(c) { + return ( + c && + function (f, h) { + try { + return c.call(e, f, h); + } catch (m) { + if (!p(m)) throw m; + } + } + ); + } + function o(c) { + return ( + c && + function (f, h, m, v) { + return c.call(e, f, h, m, function (y) { + p(y) && (y = null), v && v.apply(this, arguments); + }); + } + ); + } + function s(c) { + return ( + c && + function (f, h, m) { + try { + return c.call(e, f, h, m); + } catch (v) { + if (!p(v)) throw v; + } + } + ); + } + function l(c) { + return ( + c && + function (f, h, m) { + typeof h == 'function' && ((m = h), (h = null)); + function v(y, S) { + S && (S.uid < 0 && (S.uid += 4294967296), S.gid < 0 && (S.gid += 4294967296)), + m && m.apply(this, arguments); + } + return h ? c.call(e, f, h, v) : c.call(e, f, v); + } + ); + } + function u(c) { + return ( + c && + function (f, h) { + var m = h ? c.call(e, f, h) : c.call(e, f); + return m && (m.uid < 0 && (m.uid += 4294967296), m.gid < 0 && (m.gid += 4294967296)), m; + } + ); + } + function p(c) { + if (!c || c.code === 'ENOSYS') return !0; + var f = !process.getuid || process.getuid() !== 0; + return !!(f && (c.code === 'EINVAL' || c.code === 'EPERM')); + } + } +}); +var A8e = d((Utr, k8e) => { + var C8e = require('stream').Stream; + k8e.exports = LSt; + function LSt(e) { + return { ReadStream: t, WriteStream: r }; + function t(n, a) { + if (!(this instanceof t)) return new t(n, a); + C8e.call(this); + var o = this; + (this.path = n), + (this.fd = null), + (this.readable = !0), + (this.paused = !1), + (this.flags = 'r'), + (this.mode = 438), + (this.bufferSize = 64 * 1024), + (a = a || {}); + for (var s = Object.keys(a), l = 0, u = s.length; l < u; l++) { + var p = s[l]; + this[p] = a[p]; + } + if ((this.encoding && this.setEncoding(this.encoding), this.start !== void 0)) { + if (typeof this.start != 'number') throw TypeError('start must be a Number'); + if (this.end === void 0) this.end = 1 / 0; + else if (typeof this.end != 'number') throw TypeError('end must be a Number'); + if (this.start > this.end) throw new Error('start must be <= end'); + this.pos = this.start; + } + if (this.fd !== null) { + process.nextTick(function () { + o._read(); + }); + return; + } + e.open(this.path, this.flags, this.mode, function (c, f) { + if (c) { + o.emit('error', c), (o.readable = !1); + return; + } + (o.fd = f), o.emit('open', f), o._read(); + }); + } + function r(n, a) { + if (!(this instanceof r)) return new r(n, a); + C8e.call(this), + (this.path = n), + (this.fd = null), + (this.writable = !0), + (this.flags = 'w'), + (this.encoding = 'binary'), + (this.mode = 438), + (this.bytesWritten = 0), + (a = a || {}); + for (var o = Object.keys(a), s = 0, l = o.length; s < l; s++) { + var u = o[s]; + this[u] = a[u]; + } + if (this.start !== void 0) { + if (typeof this.start != 'number') throw TypeError('start must be a Number'); + if (this.start < 0) throw new Error('start must be >= zero'); + this.pos = this.start; + } + (this.busy = !1), + (this._queue = []), + this.fd === null && + ((this._open = e.open), + this._queue.push([this._open, this.path, this.flags, this.mode, void 0]), + this.flush()); + } + } +}); +var P8e = d(($tr, I8e) => { + 'use strict'; + I8e.exports = USt; + var MSt = + Object.getPrototypeOf || + function (e) { + return e.__proto__; + }; + function USt(e) { + if (e === null || typeof e != 'object') return e; + if (e instanceof Object) var t = { __proto__: MSt(e) }; + else var t = Object.create(null); + return ( + Object.getOwnPropertyNames(e).forEach(function (r) { + Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(e, r)); + }), + t + ); + } +}); +var dN = d((Btr, cN) => { + var cr = require('fs'), + $St = T8e(), + BSt = A8e(), + VSt = P8e(), + zS = require('util'), + Ri, + GS; + typeof Symbol == 'function' && typeof Symbol.for == 'function' + ? ((Ri = Symbol.for('graceful-fs.queue')), (GS = Symbol.for('graceful-fs.previous'))) + : ((Ri = '___graceful-fs.queue'), (GS = '___graceful-fs.previous')); + function zSt() {} + function D8e(e, t) { + Object.defineProperty(e, Ri, { + get: function () { + return t; + }, + }); + } + var Zd = zSt; + zS.debuglog + ? (Zd = zS.debuglog('gfs4')) + : /\bgfs4\b/i.test(process.env.NODE_DEBUG || '') && + (Zd = function () { + var e = zS.format.apply(zS, arguments); + (e = + 'GFS4: ' + + e.split(/\n/).join(` +GFS4: `)), + console.error(e); + }); + cr[Ri] || + ((R8e = global[Ri] || []), + D8e(cr, R8e), + (cr.close = (function (e) { + function t(r, n) { + return e.call(cr, r, function (a) { + a || j8e(), typeof n == 'function' && n.apply(this, arguments); + }); + } + return Object.defineProperty(t, GS, { value: e }), t; + })(cr.close)), + (cr.closeSync = (function (e) { + function t(r) { + e.apply(cr, arguments), j8e(); + } + return Object.defineProperty(t, GS, { value: e }), t; + })(cr.closeSync)), + /\bgfs4\b/i.test(process.env.NODE_DEBUG || '') && + process.on('exit', function () { + Zd(cr[Ri]), require('assert').equal(cr[Ri].length, 0); + })); + var R8e; + global[Ri] || D8e(global, cr[Ri]); + cN.exports = uN(VSt(cr)); + process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !cr.__patched && ((cN.exports = uN(cr)), (cr.__patched = !0)); + function uN(e) { + $St(e), (e.gracefulify = uN), (e.createReadStream = b), (e.createWriteStream = T); + var t = e.readFile; + e.readFile = r; + function r(N, A, j) { + return typeof A == 'function' && ((j = A), (A = null)), U(N, A, j); + function U(z, K, te, J) { + return t(z, K, function (ie) { + ie && (ie.code === 'EMFILE' || ie.code === 'ENFILE') + ? _g([U, [z, K, te], ie, J || Date.now(), Date.now()]) + : typeof te == 'function' && te.apply(this, arguments); + }); + } + } + var n = e.writeFile; + e.writeFile = a; + function a(N, A, j, U) { + return typeof j == 'function' && ((U = j), (j = null)), z(N, A, j, U); + function z(K, te, J, ie, oe) { + return n(K, te, J, function (he) { + he && (he.code === 'EMFILE' || he.code === 'ENFILE') + ? _g([z, [K, te, J, ie], he, oe || Date.now(), Date.now()]) + : typeof ie == 'function' && ie.apply(this, arguments); + }); + } + } + var o = e.appendFile; + o && (e.appendFile = s); + function s(N, A, j, U) { + return typeof j == 'function' && ((U = j), (j = null)), z(N, A, j, U); + function z(K, te, J, ie, oe) { + return o(K, te, J, function (he) { + he && (he.code === 'EMFILE' || he.code === 'ENFILE') + ? _g([z, [K, te, J, ie], he, oe || Date.now(), Date.now()]) + : typeof ie == 'function' && ie.apply(this, arguments); + }); + } + } + var l = e.copyFile; + l && (e.copyFile = u); + function u(N, A, j, U) { + return typeof j == 'function' && ((U = j), (j = 0)), z(N, A, j, U); + function z(K, te, J, ie, oe) { + return l(K, te, J, function (he) { + he && (he.code === 'EMFILE' || he.code === 'ENFILE') + ? _g([z, [K, te, J, ie], he, oe || Date.now(), Date.now()]) + : typeof ie == 'function' && ie.apply(this, arguments); + }); + } + } + var p = e.readdir; + e.readdir = f; + var c = /^v[0-5]\./; + function f(N, A, j) { + typeof A == 'function' && ((j = A), (A = null)); + var U = c.test(process.version) + ? function (te, J, ie, oe) { + return p(te, z(te, J, ie, oe)); + } + : function (te, J, ie, oe) { + return p(te, J, z(te, J, ie, oe)); + }; + return U(N, A, j); + function z(K, te, J, ie) { + return function (oe, he) { + oe && (oe.code === 'EMFILE' || oe.code === 'ENFILE') + ? _g([U, [K, te, J], oe, ie || Date.now(), Date.now()]) + : (he && he.sort && he.sort(), typeof J == 'function' && J.call(this, oe, he)); + }; + } + } + if (process.version.substr(0, 4) === 'v0.8') { + var h = BSt(e); + (w = h.ReadStream), (x = h.WriteStream); + } + var m = e.ReadStream; + m && ((w.prototype = Object.create(m.prototype)), (w.prototype.open = O)); + var v = e.WriteStream; + v && ((x.prototype = Object.create(v.prototype)), (x.prototype.open = _)), + Object.defineProperty(e, 'ReadStream', { + get: function () { + return w; + }, + set: function (N) { + w = N; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e, 'WriteStream', { + get: function () { + return x; + }, + set: function (N) { + x = N; + }, + enumerable: !0, + configurable: !0, + }); + var y = w; + Object.defineProperty(e, 'FileReadStream', { + get: function () { + return y; + }, + set: function (N) { + y = N; + }, + enumerable: !0, + configurable: !0, + }); + var S = x; + Object.defineProperty(e, 'FileWriteStream', { + get: function () { + return S; + }, + set: function (N) { + S = N; + }, + enumerable: !0, + configurable: !0, + }); + function w(N, A) { + return this instanceof w ? (m.apply(this, arguments), this) : w.apply(Object.create(w.prototype), arguments); + } + function O() { + var N = this; + C(N.path, N.flags, N.mode, function (A, j) { + A ? (N.autoClose && N.destroy(), N.emit('error', A)) : ((N.fd = j), N.emit('open', j), N.read()); + }); + } + function x(N, A) { + return this instanceof x ? (v.apply(this, arguments), this) : x.apply(Object.create(x.prototype), arguments); + } + function _() { + var N = this; + C(N.path, N.flags, N.mode, function (A, j) { + A ? (N.destroy(), N.emit('error', A)) : ((N.fd = j), N.emit('open', j)); + }); + } + function b(N, A) { + return new e.ReadStream(N, A); + } + function T(N, A) { + return new e.WriteStream(N, A); + } + var R = e.open; + e.open = C; + function C(N, A, j, U) { + return typeof j == 'function' && ((U = j), (j = null)), z(N, A, j, U); + function z(K, te, J, ie, oe) { + return R(K, te, J, function (he, hr) { + he && (he.code === 'EMFILE' || he.code === 'ENFILE') + ? _g([z, [K, te, J, ie], he, oe || Date.now(), Date.now()]) + : typeof ie == 'function' && ie.apply(this, arguments); + }); + } + } + return e; + } + function _g(e) { + Zd('ENQUEUE', e[0].name, e[1]), cr[Ri].push(e), pN(); + } + var HS; + function j8e() { + for (var e = Date.now(), t = 0; t < cr[Ri].length; ++t) + cr[Ri][t].length > 2 && ((cr[Ri][t][3] = e), (cr[Ri][t][4] = e)); + pN(); + } + function pN() { + if ((clearTimeout(HS), (HS = void 0), cr[Ri].length !== 0)) { + var e = cr[Ri].shift(), + t = e[0], + r = e[1], + n = e[2], + a = e[3], + o = e[4]; + if (a === void 0) Zd('RETRY', t.name, r), t.apply(null, r); + else if (Date.now() - a >= 6e4) { + Zd('TIMEOUT', t.name, r); + var s = r.pop(); + typeof s == 'function' && s.call(null, n); + } else { + var l = Date.now() - o, + u = Math.max(o - a, 1), + p = Math.min(u * 1.2, 100); + l >= p ? (Zd('RETRY', t.name, r), t.apply(null, r.concat([a]))) : cr[Ri].push(e); + } + HS === void 0 && (HS = setTimeout(pN, 0)); + } + } +}); +var q8e = d((Vtr, N8e) => { + function eo(e, t) { + typeof t == 'boolean' && (t = { forever: t }), + (this._originalTimeouts = JSON.parse(JSON.stringify(e))), + (this._timeouts = e), + (this._options = t || {}), + (this._maxRetryTime = (t && t.maxRetryTime) || 1 / 0), + (this._fn = null), + (this._errors = []), + (this._attempts = 1), + (this._operationTimeout = null), + (this._operationTimeoutCb = null), + (this._timeout = null), + (this._operationStart = null), + this._options.forever && (this._cachedTimeouts = this._timeouts.slice(0)); + } + N8e.exports = eo; + eo.prototype.reset = function () { + (this._attempts = 1), (this._timeouts = this._originalTimeouts); + }; + eo.prototype.stop = function () { + this._timeout && clearTimeout(this._timeout), (this._timeouts = []), (this._cachedTimeouts = null); + }; + eo.prototype.retry = function (e) { + if ((this._timeout && clearTimeout(this._timeout), !e)) return !1; + var t = new Date().getTime(); + if (e && t - this._operationStart >= this._maxRetryTime) + return this._errors.unshift(new Error('RetryOperation timeout occurred')), !1; + this._errors.push(e); + var r = this._timeouts.shift(); + if (r === void 0) + if (this._cachedTimeouts) + this._errors.splice(this._errors.length - 1, this._errors.length), + (this._timeouts = this._cachedTimeouts.slice(0)), + (r = this._timeouts.shift()); + else return !1; + var n = this, + a = setTimeout(function () { + n._attempts++, + n._operationTimeoutCb && + ((n._timeout = setTimeout(function () { + n._operationTimeoutCb(n._attempts); + }, n._operationTimeout)), + n._options.unref && n._timeout.unref()), + n._fn(n._attempts); + }, r); + return this._options.unref && a.unref(), !0; + }; + eo.prototype.attempt = function (e, t) { + (this._fn = e), t && (t.timeout && (this._operationTimeout = t.timeout), t.cb && (this._operationTimeoutCb = t.cb)); + var r = this; + this._operationTimeoutCb && + (this._timeout = setTimeout(function () { + r._operationTimeoutCb(); + }, r._operationTimeout)), + (this._operationStart = new Date().getTime()), + this._fn(this._attempts); + }; + eo.prototype.try = function (e) { + console.log('Using RetryOperation.try() is deprecated'), this.attempt(e); + }; + eo.prototype.start = function (e) { + console.log('Using RetryOperation.start() is deprecated'), this.attempt(e); + }; + eo.prototype.start = eo.prototype.try; + eo.prototype.errors = function () { + return this._errors; + }; + eo.prototype.attempts = function () { + return this._attempts; + }; + eo.prototype.mainError = function () { + if (this._errors.length === 0) return null; + for (var e = {}, t = null, r = 0, n = 0; n < this._errors.length; n++) { + var a = this._errors[n], + o = a.message, + s = (e[o] || 0) + 1; + (e[o] = s), s >= r && ((t = a), (r = s)); + } + return t; + }; +}); +var F8e = d((ef) => { + var HSt = q8e(); + ef.operation = function (e) { + var t = ef.timeouts(e); + return new HSt(t, { forever: e && e.forever, unref: e && e.unref, maxRetryTime: e && e.maxRetryTime }); + }; + ef.timeouts = function (e) { + if (e instanceof Array) return [].concat(e); + var t = { retries: 10, factor: 2, minTimeout: 1 * 1e3, maxTimeout: 1 / 0, randomize: !1 }; + for (var r in e) t[r] = e[r]; + if (t.minTimeout > t.maxTimeout) throw new Error('minTimeout is greater than maxTimeout'); + for (var n = [], a = 0; a < t.retries; a++) n.push(this.createTimeout(a, t)); + return ( + e && e.forever && !n.length && n.push(this.createTimeout(a, t)), + n.sort(function (o, s) { + return o - s; + }), + n + ); + }; + ef.createTimeout = function (e, t) { + var r = t.randomize ? Math.random() + 1 : 1, + n = Math.round(r * t.minTimeout * Math.pow(t.factor, e)); + return (n = Math.min(n, t.maxTimeout)), n; + }; + ef.wrap = function (e, t, r) { + if ((t instanceof Array && ((r = t), (t = null)), !r)) { + r = []; + for (var n in e) typeof e[n] == 'function' && r.push(n); + } + for (var a = 0; a < r.length; a++) { + var o = r[a], + s = e[o]; + (e[o] = function (u) { + var p = ef.operation(t), + c = Array.prototype.slice.call(arguments, 1), + f = c.pop(); + c.push(function (h) { + p.retry(h) || (h && (arguments[0] = p.mainError()), f.apply(this, arguments)); + }), + p.attempt(function () { + u.apply(e, c); + }); + }.bind(e, s)), + (e[o].options = t); + } + }; +}); +var M8e = d((Htr, L8e) => { + L8e.exports = F8e(); +}); +var U8e = d((Gtr, WS) => { + WS.exports = ['SIGABRT', 'SIGALRM', 'SIGHUP', 'SIGINT', 'SIGTERM']; + process.platform !== 'win32' && + WS.exports.push('SIGVTALRM', 'SIGXCPU', 'SIGXFSZ', 'SIGUSR2', 'SIGTRAP', 'SIGSYS', 'SIGQUIT', 'SIGIOT'); + process.platform === 'linux' && WS.exports.push('SIGIO', 'SIGPOLL', 'SIGPWR', 'SIGSTKFLT', 'SIGUNUSED'); +}); +var H8e = d((Wtr, Eg) => { + var tr = global.process, + tf = function (e) { + return ( + e && + typeof e == 'object' && + typeof e.removeListener == 'function' && + typeof e.emit == 'function' && + typeof e.reallyExit == 'function' && + typeof e.listeners == 'function' && + typeof e.kill == 'function' && + typeof e.pid == 'number' && + typeof e.on == 'function' + ); + }; + tf(tr) + ? (($8e = require('assert')), + (wg = U8e()), + (B8e = /^win/i.test(tr.platform)), + (Ib = require('events')), + typeof Ib != 'function' && (Ib = Ib.EventEmitter), + tr.__signal_exit_emitter__ + ? (Si = tr.__signal_exit_emitter__) + : ((Si = tr.__signal_exit_emitter__ = new Ib()), (Si.count = 0), (Si.emitted = {})), + Si.infinite || (Si.setMaxListeners(1 / 0), (Si.infinite = !0)), + (Eg.exports = function (e, t) { + if (!tf(global.process)) return function () {}; + $8e.equal(typeof e, 'function', 'a callback must be provided for exit handler'), Sg === !1 && fN(); + var r = 'exit'; + t && t.alwaysLast && (r = 'afterexit'); + var n = function () { + Si.removeListener(r, e), Si.listeners('exit').length === 0 && Si.listeners('afterexit').length === 0 && KS(); + }; + return Si.on(r, e), n; + }), + (KS = function () { + !Sg || + !tf(global.process) || + ((Sg = !1), + wg.forEach(function (t) { + try { + tr.removeListener(t, XS[t]); + } catch {} + }), + (tr.emit = JS), + (tr.reallyExit = mN), + (Si.count -= 1)); + }), + (Eg.exports.unload = KS), + (rf = function (t, r, n) { + Si.emitted[t] || ((Si.emitted[t] = !0), Si.emit(t, r, n)); + }), + (XS = {}), + wg.forEach(function (e) { + XS[e] = function () { + if (tf(global.process)) { + var r = tr.listeners(e); + r.length === Si.count && + (KS(), + rf('exit', null, e), + rf('afterexit', null, e), + B8e && e === 'SIGHUP' && (e = 'SIGINT'), + tr.kill(tr.pid, e)); + } + }; + }), + (Eg.exports.signals = function () { + return wg; + }), + (Sg = !1), + (fN = function () { + Sg || + !tf(global.process) || + ((Sg = !0), + (Si.count += 1), + (wg = wg.filter(function (t) { + try { + return tr.on(t, XS[t]), !0; + } catch { + return !1; + } + })), + (tr.emit = z8e), + (tr.reallyExit = V8e)); + }), + (Eg.exports.load = fN), + (mN = tr.reallyExit), + (V8e = function (t) { + tf(global.process) && + ((tr.exitCode = t || 0), + rf('exit', tr.exitCode, null), + rf('afterexit', tr.exitCode, null), + mN.call(tr, tr.exitCode)); + }), + (JS = tr.emit), + (z8e = function (t, r) { + if (t === 'exit' && tf(global.process)) { + r !== void 0 && (tr.exitCode = r); + var n = JS.apply(this, arguments); + return rf('exit', tr.exitCode, null), rf('afterexit', tr.exitCode, null), n; + } else return JS.apply(this, arguments); + })) + : (Eg.exports = function () { + return function () {}; + }); + var $8e, wg, B8e, Ib, Si, KS, rf, XS, Sg, fN, mN, V8e, JS, z8e; +}); +var W8e = d((Ktr, hN) => { + 'use strict'; + var G8e = Symbol(); + function GSt(e, t, r) { + let n = t[G8e]; + if (n) + return t.stat(e, (o, s) => { + if (o) return r(o); + r(null, s.mtime, n); + }); + let a = new Date(Math.ceil(Date.now() / 1e3) * 1e3 + 5); + t.utimes(e, a, a, (o) => { + if (o) return r(o); + t.stat(e, (s, l) => { + if (s) return r(s); + let u = l.mtime.getTime() % 1e3 === 0 ? 's' : 'ms'; + Object.defineProperty(t, G8e, { value: u }), r(null, l.mtime, u); + }); + }); + } + function WSt(e) { + let t = Date.now(); + return e === 's' && (t = Math.ceil(t / 1e3) * 1e3), new Date(t); + } + hN.exports.probe = GSt; + hN.exports.getMtime = WSt; +}); +var Q8e = d((Xtr, Rb) => { + 'use strict'; + var KSt = require('path'), + yN = dN(), + XSt = M8e(), + JSt = H8e(), + K8e = W8e(), + ou = {}; + function Pb(e, t) { + return t.lockfilePath || `${e}.lock`; + } + function bN(e, t, r) { + if (!t.realpath) return r(null, KSt.resolve(e)); + t.fs.realpath(e, r); + } + function vN(e, t, r) { + let n = Pb(e, t); + t.fs.mkdir(n, (a) => { + if (!a) + return K8e.probe(n, t.fs, (o, s, l) => { + if (o) return t.fs.rmdir(n, () => {}), r(o); + r(null, s, l); + }); + if (a.code !== 'EEXIST') return r(a); + if (t.stale <= 0) + return r(Object.assign(new Error('Lock file is already being held'), { code: 'ELOCKED', file: e })); + t.fs.stat(n, (o, s) => { + if (o) return o.code === 'ENOENT' ? vN(e, { ...t, stale: 0 }, r) : r(o); + if (!X8e(s, t)) + return r(Object.assign(new Error('Lock file is already being held'), { code: 'ELOCKED', file: e })); + J8e(e, t, (l) => { + if (l) return r(l); + vN(e, { ...t, stale: 0 }, r); + }); + }); + }); + } + function X8e(e, t) { + return e.mtime.getTime() < Date.now() - t.stale; + } + function J8e(e, t, r) { + t.fs.rmdir(Pb(e, t), (n) => { + if (n && n.code !== 'ENOENT') return r(n); + r(); + }); + } + function YS(e, t) { + let r = ou[e]; + r.updateTimeout || + ((r.updateDelay = r.updateDelay || t.update), + (r.updateTimeout = setTimeout(() => { + (r.updateTimeout = null), + t.fs.stat(r.lockfilePath, (n, a) => { + let o = r.lastUpdate + t.stale < Date.now(); + if (n) + return n.code === 'ENOENT' || o + ? gN(e, r, Object.assign(n, { code: 'ECOMPROMISED' })) + : ((r.updateDelay = 1e3), YS(e, t)); + if (!(r.mtime.getTime() === a.mtime.getTime())) + return gN( + e, + r, + Object.assign(new Error('Unable to update lock within the stale threshold'), { code: 'ECOMPROMISED' }) + ); + let l = K8e.getMtime(r.mtimePrecision); + t.fs.utimes(r.lockfilePath, l, l, (u) => { + let p = r.lastUpdate + t.stale < Date.now(); + if (!r.released) { + if (u) + return u.code === 'ENOENT' || p + ? gN(e, r, Object.assign(u, { code: 'ECOMPROMISED' })) + : ((r.updateDelay = 1e3), YS(e, t)); + (r.mtime = l), (r.lastUpdate = Date.now()), (r.updateDelay = null), YS(e, t); + } + }); + }); + }, r.updateDelay)), + r.updateTimeout.unref && r.updateTimeout.unref()); + } + function gN(e, t, r) { + (t.released = !0), + t.updateTimeout && clearTimeout(t.updateTimeout), + ou[e] === t && delete ou[e], + t.options.onCompromised(r); + } + function YSt(e, t, r) { + (t = { + stale: 1e4, + update: null, + realpath: !0, + retries: 0, + fs: yN, + onCompromised: (n) => { + throw n; + }, + ...t, + }), + (t.retries = t.retries || 0), + (t.retries = typeof t.retries == 'number' ? { retries: t.retries } : t.retries), + (t.stale = Math.max(t.stale || 0, 2e3)), + (t.update = t.update == null ? t.stale / 2 : t.update || 0), + (t.update = Math.max(Math.min(t.update, t.stale / 2), 1e3)), + bN(e, t, (n, a) => { + if (n) return r(n); + let o = XSt.operation(t.retries); + o.attempt(() => { + vN(a, t, (s, l, u) => { + if (o.retry(s)) return; + if (s) return r(o.mainError()); + let p = (ou[a] = { + lockfilePath: Pb(a, t), + mtime: l, + mtimePrecision: u, + options: t, + lastUpdate: Date.now(), + }); + YS(a, t), + r(null, (c) => { + if (p.released) + return c && c(Object.assign(new Error('Lock is already released'), { code: 'ERELEASED' })); + Y8e(a, { ...t, realpath: !1 }, c); + }); + }); + }); + }); + } + function Y8e(e, t, r) { + (t = { fs: yN, realpath: !0, ...t }), + bN(e, t, (n, a) => { + if (n) return r(n); + let o = ou[a]; + if (!o) return r(Object.assign(new Error('Lock is not acquired/owned by you'), { code: 'ENOTACQUIRED' })); + o.updateTimeout && clearTimeout(o.updateTimeout), (o.released = !0), delete ou[a], J8e(a, t, r); + }); + } + function QSt(e, t, r) { + (t = { stale: 1e4, realpath: !0, fs: yN, ...t }), + (t.stale = Math.max(t.stale || 0, 2e3)), + bN(e, t, (n, a) => { + if (n) return r(n); + t.fs.stat(Pb(a, t), (o, s) => (o ? (o.code === 'ENOENT' ? r(null, !1) : r(o)) : r(null, !X8e(s, t)))); + }); + } + function ZSt() { + return ou; + } + JSt(() => { + for (let e in ou) { + let t = ou[e].options; + try { + t.fs.rmdirSync(Pb(e, t)); + } catch {} + } + }); + Rb.exports.lock = YSt; + Rb.exports.unlock = Y8e; + Rb.exports.check = QSt; + Rb.exports.getLocks = ZSt; +}); +var eSe = d((Jtr, Z8e) => { + 'use strict'; + var e9t = dN(); + function t9t(e) { + let t = ['mkdir', 'realpath', 'stat', 'rmdir', 'utimes'], + r = { ...e }; + return ( + t.forEach((n) => { + r[n] = (...a) => { + let o = a.pop(), + s; + try { + s = e[`${n}Sync`](...a); + } catch (l) { + return o(l); + } + o(null, s); + }; + }), + r + ); + } + function r9t(e) { + return (...t) => + new Promise((r, n) => { + t.push((a, o) => { + a ? n(a) : r(o); + }), + e(...t); + }); + } + function i9t(e) { + return (...t) => { + let r, n; + if ( + (t.push((a, o) => { + (r = a), (n = o); + }), + e(...t), + r) + ) + throw r; + return n; + }; + } + function n9t(e) { + if ( + ((e = { ...e }), + (e.fs = t9t(e.fs || e9t)), + (typeof e.retries == 'number' && e.retries > 0) || + (e.retries && typeof e.retries.retries == 'number' && e.retries.retries > 0)) + ) + throw Object.assign(new Error('Cannot use retries with the sync api'), { code: 'ESYNC' }); + return e; + } + Z8e.exports = { toPromise: r9t, toSync: i9t, toSyncOptions: n9t }; +}); +var rSe = d((Ytr, Lp) => { + 'use strict'; + var xg = Q8e(), + { toPromise: QS, toSync: ZS, toSyncOptions: _N } = eSe(); + async function tSe(e, t) { + let r = await QS(xg.lock)(e, t); + return QS(r); + } + function a9t(e, t) { + let r = ZS(xg.lock)(e, _N(t)); + return ZS(r); + } + function o9t(e, t) { + return QS(xg.unlock)(e, t); + } + function s9t(e, t) { + return ZS(xg.unlock)(e, _N(t)); + } + function l9t(e, t) { + return QS(xg.check)(e, t); + } + function u9t(e, t) { + return ZS(xg.check)(e, _N(t)); + } + Lp.exports = tSe; + Lp.exports.lock = tSe; + Lp.exports.unlock = o9t; + Lp.exports.lockSync = a9t; + Lp.exports.unlockSync = s9t; + Lp.exports.check = l9t; + Lp.exports.checkSync = u9t; +}); +var SN = d((Srr, dSe) => { + var s9 = ii().Buffer, + f9t = require('stream'), + m9t = require('util'); + function l9(e) { + if (((this.buffer = null), (this.writable = !0), (this.readable = !0), !e)) + return (this.buffer = s9.alloc(0)), this; + if (typeof e.pipe == 'function') return (this.buffer = s9.alloc(0)), e.pipe(this), this; + if (e.length || typeof e == 'object') + return ( + (this.buffer = e), + (this.writable = !1), + process.nextTick( + function () { + this.emit('end', e), (this.readable = !1), this.emit('close'); + }.bind(this) + ), + this + ); + throw new TypeError('Unexpected data type (' + typeof e + ')'); + } + m9t.inherits(l9, f9t); + l9.prototype.write = function (t) { + (this.buffer = s9.concat([this.buffer, s9.from(t)])), this.emit('data', t); + }; + l9.prototype.end = function (t) { + t && this.write(t), this.emit('end', t), this.emit('close'), (this.writable = !1), (this.readable = !1); + }; + dSe.exports = l9; +}); +var mSe = d((Err, fSe) => { + 'use strict'; + var jb = require('buffer').Buffer, + EN = require('buffer').SlowBuffer; + fSe.exports = u9; + function u9(e, t) { + if (!jb.isBuffer(e) || !jb.isBuffer(t) || e.length !== t.length) return !1; + for (var r = 0, n = 0; n < e.length; n++) r |= e[n] ^ t[n]; + return r === 0; + } + u9.install = function () { + jb.prototype.equal = EN.prototype.equal = function (t) { + return u9(this, t); + }; + }; + var h9t = jb.prototype.equal, + g9t = EN.prototype.equal; + u9.restore = function () { + (jb.prototype.equal = h9t), (EN.prototype.equal = g9t); + }; +}); +var gSe = d((xrr, hSe) => { + 'use strict'; + function xN(e) { + var t = ((e / 8) | 0) + (e % 8 === 0 ? 0 : 1); + return t; + } + var v9t = { ES256: xN(256), ES384: xN(384), ES512: xN(521) }; + function y9t(e) { + var t = v9t[e]; + if (t) return t; + throw new Error('Unknown algorithm "' + e + '"'); + } + hSe.exports = y9t; +}); +var ESe = d((Orr, SSe) => { + 'use strict'; + var p9 = ii().Buffer, + ySe = gSe(), + c9 = 128, + bSe = 0, + b9t = 32, + _9t = 16, + w9t = 2, + _Se = _9t | b9t | (bSe << 6), + d9 = w9t | (bSe << 6); + function S9t(e) { + return e.replace(/=/g, '').replace(/\+/g, '-').replace(/\//g, '_'); + } + function wSe(e) { + if (p9.isBuffer(e)) return e; + if (typeof e == 'string') return p9.from(e, 'base64'); + throw new TypeError('ECDSA signature must be a Base64 string or a Buffer'); + } + function E9t(e, t) { + e = wSe(e); + var r = ySe(t), + n = r + 1, + a = e.length, + o = 0; + if (e[o++] !== _Se) throw new Error('Could not find expected "seq"'); + var s = e[o++]; + if ((s === (c9 | 1) && (s = e[o++]), a - o < s)) + throw new Error('"seq" specified length of "' + s + '", only "' + (a - o) + '" remaining'); + if (e[o++] !== d9) throw new Error('Could not find expected "int" for "r"'); + var l = e[o++]; + if (a - o - 2 < l) throw new Error('"r" specified length of "' + l + '", only "' + (a - o - 2) + '" available'); + if (n < l) throw new Error('"r" specified length of "' + l + '", max of "' + n + '" is acceptable'); + var u = o; + if (((o += l), e[o++] !== d9)) throw new Error('Could not find expected "int" for "s"'); + var p = e[o++]; + if (a - o !== p) throw new Error('"s" specified length of "' + p + '", expected "' + (a - o) + '"'); + if (n < p) throw new Error('"s" specified length of "' + p + '", max of "' + n + '" is acceptable'); + var c = o; + if (((o += p), o !== a)) throw new Error('Expected to consume entire buffer, but "' + (a - o) + '" bytes remain'); + var f = r - l, + h = r - p, + m = p9.allocUnsafe(f + l + h + p); + for (o = 0; o < f; ++o) m[o] = 0; + e.copy(m, o, u + Math.max(-f, 0), u + l), (o = r); + for (var v = o; o < v + h; ++o) m[o] = 0; + return e.copy(m, o, c + Math.max(-h, 0), c + p), (m = m.toString('base64')), (m = S9t(m)), m; + } + function vSe(e, t, r) { + for (var n = 0; t + n < r && e[t + n] === 0; ) ++n; + var a = e[t + n] >= c9; + return a && --n, n; + } + function x9t(e, t) { + e = wSe(e); + var r = ySe(t), + n = e.length; + if (n !== r * 2) throw new TypeError('"' + t + '" signatures must be "' + r * 2 + '" bytes, saw "' + n + '"'); + var a = vSe(e, 0, r), + o = vSe(e, r, e.length), + s = r - a, + l = r - o, + u = 1 + 1 + s + 1 + 1 + l, + p = u < c9, + c = p9.allocUnsafe((p ? 2 : 3) + u), + f = 0; + return ( + (c[f++] = _Se), + p ? (c[f++] = u) : ((c[f++] = c9 | 1), (c[f++] = u & 255)), + (c[f++] = d9), + (c[f++] = s), + a < 0 ? ((c[f++] = 0), (f += e.copy(c, f, 0, r))) : (f += e.copy(c, f, a, r)), + (c[f++] = d9), + (c[f++] = l), + o < 0 ? ((c[f++] = 0), e.copy(c, f, r)) : e.copy(c, f, r + o), + c + ); + } + SSe.exports = { derToJose: E9t, joseToDer: x9t }; +}); +var CN = d((Trr, RSe) => { + var O9t = mSe(), + Cg = ii().Buffer, + Hs = require('crypto'), + OSe = ESe(), + xSe = require('util'), + T9t = `"%s" is not a valid algorithm. + Supported algorithms are: + "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".`, + Db = 'secret must be a string or buffer', + Tg = 'key must be a string or a buffer', + C9t = 'key must be a string, a buffer or an object', + ON = typeof Hs.createPublicKey == 'function'; + ON && ((Tg += ' or a KeyObject'), (Db += 'or a KeyObject')); + function TSe(e) { + if ( + !Cg.isBuffer(e) && + typeof e != 'string' && + (!ON || + typeof e != 'object' || + typeof e.type != 'string' || + typeof e.asymmetricKeyType != 'string' || + typeof e.export != 'function') + ) + throw Go(Tg); + } + function CSe(e) { + if (!Cg.isBuffer(e) && typeof e != 'string' && typeof e != 'object') throw Go(C9t); + } + function k9t(e) { + if (!Cg.isBuffer(e)) { + if (typeof e == 'string') return e; + if (!ON || typeof e != 'object' || e.type !== 'secret' || typeof e.export != 'function') throw Go(Db); + } + } + function TN(e) { + return e.replace(/=/g, '').replace(/\+/g, '-').replace(/\//g, '_'); + } + function kSe(e) { + e = e.toString(); + var t = 4 - (e.length % 4); + if (t !== 4) for (var r = 0; r < t; ++r) e += '='; + return e.replace(/\-/g, '+').replace(/_/g, '/'); + } + function Go(e) { + var t = [].slice.call(arguments, 1), + r = xSe.format.bind(xSe, e).apply(null, t); + return new TypeError(r); + } + function A9t(e) { + return Cg.isBuffer(e) || typeof e == 'string'; + } + function Nb(e) { + return A9t(e) || (e = JSON.stringify(e)), e; + } + function ASe(e) { + return function (r, n) { + k9t(n), (r = Nb(r)); + var a = Hs.createHmac('sha' + e, n), + o = (a.update(r), a.digest('base64')); + return TN(o); + }; + } + function I9t(e) { + return function (r, n, a) { + var o = ASe(e)(r, a); + return O9t(Cg.from(n), Cg.from(o)); + }; + } + function ISe(e) { + return function (r, n) { + CSe(n), (r = Nb(r)); + var a = Hs.createSign('RSA-SHA' + e), + o = (a.update(r), a.sign(n, 'base64')); + return TN(o); + }; + } + function PSe(e) { + return function (r, n, a) { + TSe(a), (r = Nb(r)), (n = kSe(n)); + var o = Hs.createVerify('RSA-SHA' + e); + return o.update(r), o.verify(a, n, 'base64'); + }; + } + function P9t(e) { + return function (r, n) { + CSe(n), (r = Nb(r)); + var a = Hs.createSign('RSA-SHA' + e), + o = + (a.update(r), + a.sign( + { key: n, padding: Hs.constants.RSA_PKCS1_PSS_PADDING, saltLength: Hs.constants.RSA_PSS_SALTLEN_DIGEST }, + 'base64' + )); + return TN(o); + }; + } + function R9t(e) { + return function (r, n, a) { + TSe(a), (r = Nb(r)), (n = kSe(n)); + var o = Hs.createVerify('RSA-SHA' + e); + return ( + o.update(r), + o.verify( + { key: a, padding: Hs.constants.RSA_PKCS1_PSS_PADDING, saltLength: Hs.constants.RSA_PSS_SALTLEN_DIGEST }, + n, + 'base64' + ) + ); + }; + } + function j9t(e) { + var t = ISe(e); + return function () { + var n = t.apply(null, arguments); + return (n = OSe.derToJose(n, 'ES' + e)), n; + }; + } + function D9t(e) { + var t = PSe(e); + return function (n, a, o) { + a = OSe.joseToDer(a, 'ES' + e).toString('base64'); + var s = t(n, a, o); + return s; + }; + } + function N9t() { + return function () { + return ''; + }; + } + function q9t() { + return function (t, r) { + return r === ''; + }; + } + RSe.exports = function (t) { + var r = { hs: ASe, rs: ISe, ps: P9t, es: j9t, none: N9t }, + n = { hs: I9t, rs: PSe, ps: R9t, es: D9t, none: q9t }, + a = t.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/i); + if (!a) throw Go(T9t, t); + var o = (a[1] || a[3]).toLowerCase(), + s = a[2]; + return { sign: r[o](s), verify: n[o](s) }; + }; +}); +var kN = d((Crr, jSe) => { + var F9t = require('buffer').Buffer; + jSe.exports = function (t) { + return typeof t == 'string' ? t : typeof t == 'number' || F9t.isBuffer(t) ? t.toString() : JSON.stringify(t); + }; +}); +var MSe = d((krr, LSe) => { + var L9t = ii().Buffer, + DSe = SN(), + M9t = CN(), + U9t = require('stream'), + NSe = kN(), + AN = require('util'); + function qSe(e, t) { + return L9t.from(e, t).toString('base64').replace(/=/g, '').replace(/\+/g, '-').replace(/\//g, '_'); + } + function $9t(e, t, r) { + r = r || 'utf8'; + var n = qSe(NSe(e), 'binary'), + a = qSe(NSe(t), r); + return AN.format('%s.%s', n, a); + } + function FSe(e) { + var t = e.header, + r = e.payload, + n = e.secret || e.privateKey, + a = e.encoding, + o = M9t(t.alg), + s = $9t(t, r, a), + l = o.sign(s, n); + return AN.format('%s.%s', s, l); + } + function f9(e) { + var t = e.secret || e.privateKey || e.key, + r = new DSe(t); + (this.readable = !0), + (this.header = e.header), + (this.encoding = e.encoding), + (this.secret = this.privateKey = this.key = r), + (this.payload = new DSe(e.payload)), + this.secret.once( + 'close', + function () { + !this.payload.writable && this.readable && this.sign(); + }.bind(this) + ), + this.payload.once( + 'close', + function () { + !this.secret.writable && this.readable && this.sign(); + }.bind(this) + ); + } + AN.inherits(f9, U9t); + f9.prototype.sign = function () { + try { + var t = FSe({ + header: this.header, + payload: this.payload.buffer, + secret: this.secret.buffer, + encoding: this.encoding, + }); + return this.emit('done', t), this.emit('data', t), this.emit('end'), (this.readable = !1), t; + } catch (r) { + (this.readable = !1), this.emit('error', r), this.emit('close'); + } + }; + f9.sign = FSe; + LSe.exports = f9; +}); +var XSe = d((Arr, KSe) => { + var $Se = ii().Buffer, + USe = SN(), + B9t = CN(), + V9t = require('stream'), + BSe = kN(), + z9t = require('util'), + H9t = /^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/; + function G9t(e) { + return Object.prototype.toString.call(e) === '[object Object]'; + } + function W9t(e) { + if (G9t(e)) return e; + try { + return JSON.parse(e); + } catch { + return; + } + } + function VSe(e) { + var t = e.split('.', 1)[0]; + return W9t($Se.from(t, 'base64').toString('binary')); + } + function K9t(e) { + return e.split('.', 2).join('.'); + } + function zSe(e) { + return e.split('.')[2]; + } + function X9t(e, t) { + t = t || 'utf8'; + var r = e.split('.')[1]; + return $Se.from(r, 'base64').toString(t); + } + function HSe(e) { + return H9t.test(e) && !!VSe(e); + } + function GSe(e, t, r) { + if (!t) { + var n = new Error('Missing algorithm parameter for jws.verify'); + throw ((n.code = 'MISSING_ALGORITHM'), n); + } + e = BSe(e); + var a = zSe(e), + o = K9t(e), + s = B9t(t); + return s.verify(o, a, r); + } + function WSe(e, t) { + if (((t = t || {}), (e = BSe(e)), !HSe(e))) return null; + var r = VSe(e); + if (!r) return null; + var n = X9t(e); + return (r.typ === 'JWT' || t.json) && (n = JSON.parse(n, t.encoding)), { header: r, payload: n, signature: zSe(e) }; + } + function kg(e) { + e = e || {}; + var t = e.secret || e.publicKey || e.key, + r = new USe(t); + (this.readable = !0), + (this.algorithm = e.algorithm), + (this.encoding = e.encoding), + (this.secret = this.publicKey = this.key = r), + (this.signature = new USe(e.signature)), + this.secret.once( + 'close', + function () { + !this.signature.writable && this.readable && this.verify(); + }.bind(this) + ), + this.signature.once( + 'close', + function () { + !this.secret.writable && this.readable && this.verify(); + }.bind(this) + ); + } + z9t.inherits(kg, V9t); + kg.prototype.verify = function () { + try { + var t = GSe(this.signature.buffer, this.algorithm, this.key.buffer), + r = WSe(this.signature.buffer, this.encoding); + return this.emit('done', t, r), this.emit('data', t), this.emit('end'), (this.readable = !1), t; + } catch (n) { + (this.readable = !1), this.emit('error', n), this.emit('close'); + } + }; + kg.decode = WSe; + kg.isValid = HSe; + kg.verify = GSe; + KSe.exports = kg; +}); +var h9 = d((Up) => { + var JSe = MSe(), + m9 = XSe(), + J9t = ['HS256', 'HS384', 'HS512', 'RS256', 'RS384', 'RS512', 'PS256', 'PS384', 'PS512', 'ES256', 'ES384', 'ES512']; + Up.ALGORITHMS = J9t; + Up.sign = JSe.sign; + Up.verify = m9.verify; + Up.decode = m9.decode; + Up.isValid = m9.isValid; + Up.createSign = function (t) { + return new JSe(t); + }; + Up.createVerify = function (t) { + return new m9(t); + }; +}); +var IN = d((Prr, YSe) => { + var Y9t = h9(); + YSe.exports = function (e, t) { + t = t || {}; + var r = Y9t.decode(e, t); + if (!r) return null; + var n = r.payload; + if (typeof n == 'string') + try { + var a = JSON.parse(n); + a !== null && typeof a == 'object' && (n = a); + } catch {} + return t.complete === !0 ? { header: r.header, payload: n, signature: r.signature } : n; + }; +}); +var qb = d((Rrr, QSe) => { + var g9 = function (e, t) { + Error.call(this, e), + Error.captureStackTrace && Error.captureStackTrace(this, this.constructor), + (this.name = 'JsonWebTokenError'), + (this.message = e), + t && (this.inner = t); + }; + g9.prototype = Object.create(Error.prototype); + g9.prototype.constructor = g9; + QSe.exports = g9; +}); +var PN = d((jrr, e9e) => { + var ZSe = qb(), + v9 = function (e, t) { + ZSe.call(this, e), (this.name = 'NotBeforeError'), (this.date = t); + }; + v9.prototype = Object.create(ZSe.prototype); + v9.prototype.constructor = v9; + e9e.exports = v9; +}); +var RN = d((Drr, r9e) => { + var t9e = qb(), + y9 = function (e, t) { + t9e.call(this, e), (this.name = 'TokenExpiredError'), (this.expiredAt = t); + }; + y9.prototype = Object.create(t9e.prototype); + y9.prototype.constructor = y9; + r9e.exports = y9; +}); +var n9e = d((Nrr, i9e) => { + var Ag = 1e3, + Ig = Ag * 60, + Pg = Ig * 60, + af = Pg * 24, + Q9t = af * 7, + Z9t = af * 365.25; + i9e.exports = function (e, t) { + t = t || {}; + var r = typeof e; + if (r === 'string' && e.length > 0) return e5t(e); + if (r === 'number' && isFinite(e)) return t.long ? r5t(e) : t5t(e); + throw new Error('val is not a non-empty string or a valid number. val=' + JSON.stringify(e)); + }; + function e5t(e) { + if (((e = String(e)), !(e.length > 100))) { + var t = + /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec( + e + ); + if (t) { + var r = parseFloat(t[1]), + n = (t[2] || 'ms').toLowerCase(); + switch (n) { + case 'years': + case 'year': + case 'yrs': + case 'yr': + case 'y': + return r * Z9t; + case 'weeks': + case 'week': + case 'w': + return r * Q9t; + case 'days': + case 'day': + case 'd': + return r * af; + case 'hours': + case 'hour': + case 'hrs': + case 'hr': + case 'h': + return r * Pg; + case 'minutes': + case 'minute': + case 'mins': + case 'min': + case 'm': + return r * Ig; + case 'seconds': + case 'second': + case 'secs': + case 'sec': + case 's': + return r * Ag; + case 'milliseconds': + case 'millisecond': + case 'msecs': + case 'msec': + case 'ms': + return r; + default: + return; + } + } + } + } + function t5t(e) { + var t = Math.abs(e); + return t >= af + ? Math.round(e / af) + 'd' + : t >= Pg + ? Math.round(e / Pg) + 'h' + : t >= Ig + ? Math.round(e / Ig) + 'm' + : t >= Ag + ? Math.round(e / Ag) + 's' + : e + 'ms'; + } + function r5t(e) { + var t = Math.abs(e); + return t >= af + ? b9(e, t, af, 'day') + : t >= Pg + ? b9(e, t, Pg, 'hour') + : t >= Ig + ? b9(e, t, Ig, 'minute') + : t >= Ag + ? b9(e, t, Ag, 'second') + : e + ' ms'; + } + function b9(e, t, r, n) { + var a = t >= r * 1.5; + return Math.round(e / r) + ' ' + n + (a ? 's' : ''); + } +}); +var jN = d((qrr, a9e) => { + var i5t = n9e(); + a9e.exports = function (e, t) { + var r = t || Math.floor(Date.now() / 1e3); + if (typeof e == 'string') { + var n = i5t(e); + return typeof n > 'u' ? void 0 : Math.floor(r + n / 1e3); + } else return typeof e == 'number' ? r + e : void 0; + }; +}); +var s9e = d((Frr, o9e) => { + var n5t = vb(); + o9e.exports = n5t.satisfies(process.version, '>=15.7.0'); +}); +var u9e = d((Lrr, l9e) => { + var a5t = vb(); + l9e.exports = a5t.satisfies(process.version, '>=16.9.0'); +}); +var DN = d((Mrr, p9e) => { + var o5t = s9e(), + s5t = u9e(), + l5t = { + ec: ['ES256', 'ES384', 'ES512'], + rsa: ['RS256', 'PS256', 'RS384', 'PS384', 'RS512', 'PS512'], + 'rsa-pss': ['PS256', 'PS384', 'PS512'], + }, + u5t = { ES256: 'prime256v1', ES384: 'secp384r1', ES512: 'secp521r1' }; + p9e.exports = function (e, t) { + if (!e || !t) return; + let r = t.asymmetricKeyType; + if (!r) return; + let n = l5t[r]; + if (!n) throw new Error(`Unknown key type "${r}".`); + if (!n.includes(e)) throw new Error(`"alg" parameter for "${r}" key type must be one of: ${n.join(', ')}.`); + if (o5t) + switch (r) { + case 'ec': + let a = t.asymmetricKeyDetails.namedCurve, + o = u5t[e]; + if (a !== o) throw new Error(`"alg" parameter "${e}" requires curve "${o}".`); + break; + case 'rsa-pss': + if (s5t) { + let s = parseInt(e.slice(-3), 10), + { hashAlgorithm: l, mgf1HashAlgorithm: u, saltLength: p } = t.asymmetricKeyDetails; + if (l !== `sha${s}` || u !== l) + throw new Error( + `Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${e}.` + ); + if (p !== void 0 && p > s >> 3) + throw new Error( + `Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${e}.` + ); + } + break; + } + }; +}); +var NN = d((Urr, c9e) => { + var p5t = vb(); + c9e.exports = p5t.satisfies(process.version, '^6.12.0 || >=8.0.0'); +}); +var m9e = d(($rr, f9e) => { + var qt = qb(), + c5t = PN(), + d9e = RN(), + d5t = IN(), + f5t = jN(), + m5t = DN(), + h5t = NN(), + g5t = h9(), + { KeyObject: v5t, createSecretKey: y5t, createPublicKey: b5t } = require('crypto'), + qN = ['RS256', 'RS384', 'RS512'], + _5t = ['ES256', 'ES384', 'ES512'], + FN = ['RS256', 'RS384', 'RS512'], + w5t = ['HS256', 'HS384', 'HS512']; + h5t && (qN.splice(qN.length, 0, 'PS256', 'PS384', 'PS512'), FN.splice(FN.length, 0, 'PS256', 'PS384', 'PS512')); + f9e.exports = function (e, t, r, n) { + typeof r == 'function' && !n && ((n = r), (r = {})), r || (r = {}), (r = Object.assign({}, r)); + let a; + if ( + (n + ? (a = n) + : (a = function (c, f) { + if (c) throw c; + return f; + }), + r.clockTimestamp && typeof r.clockTimestamp != 'number') + ) + return a(new qt('clockTimestamp must be a number')); + if (r.nonce !== void 0 && (typeof r.nonce != 'string' || r.nonce.trim() === '')) + return a(new qt('nonce must be a non-empty string')); + if (r.allowInvalidAsymmetricKeyTypes !== void 0 && typeof r.allowInvalidAsymmetricKeyTypes != 'boolean') + return a(new qt('allowInvalidAsymmetricKeyTypes must be a boolean')); + let o = r.clockTimestamp || Math.floor(Date.now() / 1e3); + if (!e) return a(new qt('jwt must be provided')); + if (typeof e != 'string') return a(new qt('jwt must be a string')); + let s = e.split('.'); + if (s.length !== 3) return a(new qt('jwt malformed')); + let l; + try { + l = d5t(e, { complete: !0 }); + } catch (c) { + return a(c); + } + if (!l) return a(new qt('invalid token')); + let u = l.header, + p; + if (typeof t == 'function') { + if (!n) return a(new qt('verify must be called asynchronous if secret or public key is provided as a callback')); + p = t; + } else + p = function (c, f) { + return f(null, t); + }; + return p(u, function (c, f) { + if (c) return a(new qt('error in secret or public key callback: ' + c.message)); + let h = s[2].trim() !== ''; + if (!h && f) return a(new qt('jwt signature is required')); + if (h && !f) return a(new qt('secret or public key must be provided')); + if (!h && !r.algorithms) return a(new qt('please specify "none" in "algorithms" to verify unsigned tokens')); + if (f != null && !(f instanceof v5t)) + try { + f = b5t(f); + } catch { + try { + f = y5t(typeof f == 'string' ? Buffer.from(f) : f); + } catch { + return a(new qt('secretOrPublicKey is not valid key material')); + } + } + if ( + (r.algorithms || + (f.type === 'secret' + ? (r.algorithms = w5t) + : ['rsa', 'rsa-pss'].includes(f.asymmetricKeyType) + ? (r.algorithms = FN) + : f.asymmetricKeyType === 'ec' + ? (r.algorithms = _5t) + : (r.algorithms = qN)), + r.algorithms.indexOf(l.header.alg) === -1) + ) + return a(new qt('invalid algorithm')); + if (u.alg.startsWith('HS') && f.type !== 'secret') + return a(new qt(`secretOrPublicKey must be a symmetric key when using ${u.alg}`)); + if (/^(?:RS|PS|ES)/.test(u.alg) && f.type !== 'public') + return a(new qt(`secretOrPublicKey must be an asymmetric key when using ${u.alg}`)); + if (!r.allowInvalidAsymmetricKeyTypes) + try { + m5t(u.alg, f); + } catch (y) { + return a(y); + } + let m; + try { + m = g5t.verify(e, l.header.alg, f); + } catch (y) { + return a(y); + } + if (!m) return a(new qt('invalid signature')); + let v = l.payload; + if (typeof v.nbf < 'u' && !r.ignoreNotBefore) { + if (typeof v.nbf != 'number') return a(new qt('invalid nbf value')); + if (v.nbf > o + (r.clockTolerance || 0)) return a(new c5t('jwt not active', new Date(v.nbf * 1e3))); + } + if (typeof v.exp < 'u' && !r.ignoreExpiration) { + if (typeof v.exp != 'number') return a(new qt('invalid exp value')); + if (o >= v.exp + (r.clockTolerance || 0)) return a(new d9e('jwt expired', new Date(v.exp * 1e3))); + } + if (r.audience) { + let y = Array.isArray(r.audience) ? r.audience : [r.audience]; + if ( + !(Array.isArray(v.aud) ? v.aud : [v.aud]).some(function (O) { + return y.some(function (x) { + return x instanceof RegExp ? x.test(O) : x === O; + }); + }) + ) + return a(new qt('jwt audience invalid. expected: ' + y.join(' or '))); + } + if ( + r.issuer && + ((typeof r.issuer == 'string' && v.iss !== r.issuer) || + (Array.isArray(r.issuer) && r.issuer.indexOf(v.iss) === -1)) + ) + return a(new qt('jwt issuer invalid. expected: ' + r.issuer)); + if (r.subject && v.sub !== r.subject) return a(new qt('jwt subject invalid. expected: ' + r.subject)); + if (r.jwtid && v.jti !== r.jwtid) return a(new qt('jwt jwtid invalid. expected: ' + r.jwtid)); + if (r.nonce && v.nonce !== r.nonce) return a(new qt('jwt nonce invalid. expected: ' + r.nonce)); + if (r.maxAge) { + if (typeof v.iat != 'number') return a(new qt('iat required when maxAge is specified')); + let y = f5t(r.maxAge, v.iat); + if (typeof y > 'u') + return a( + new qt('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60') + ); + if (o >= y + (r.clockTolerance || 0)) return a(new d9e('maxAge exceeded', new Date(y * 1e3))); + } + if (r.complete === !0) { + let y = l.signature; + return a(null, { header: u, payload: v, signature: y }); + } + return a(null, v); + }); + }; +}); +var _9e = d((Brr, b9e) => { + var h9e = 1 / 0, + v9e = 9007199254740991, + S5t = 17976931348623157e292, + g9e = 0 / 0, + E5t = '[object Arguments]', + x5t = '[object Function]', + O5t = '[object GeneratorFunction]', + T5t = '[object String]', + C5t = '[object Symbol]', + k5t = /^\s+|\s+$/g, + A5t = /^[-+]0x[0-9a-f]+$/i, + I5t = /^0b[01]+$/i, + P5t = /^0o[0-7]+$/i, + R5t = /^(?:0|[1-9]\d*)$/, + j5t = parseInt; + function D5t(e, t) { + for (var r = -1, n = e ? e.length : 0, a = Array(n); ++r < n; ) a[r] = t(e[r], r, e); + return a; + } + function N5t(e, t, r, n) { + for (var a = e.length, o = r + (n ? 1 : -1); n ? o-- : ++o < a; ) if (t(e[o], o, e)) return o; + return -1; + } + function q5t(e, t, r) { + if (t !== t) return N5t(e, F5t, r); + for (var n = r - 1, a = e.length; ++n < a; ) if (e[n] === t) return n; + return -1; + } + function F5t(e) { + return e !== e; + } + function L5t(e, t) { + for (var r = -1, n = Array(e); ++r < e; ) n[r] = t(r); + return n; + } + function M5t(e, t) { + return D5t(t, function (r) { + return e[r]; + }); + } + function U5t(e, t) { + return function (r) { + return e(t(r)); + }; + } + var _9 = Object.prototype, + MN = _9.hasOwnProperty, + w9 = _9.toString, + $5t = _9.propertyIsEnumerable, + B5t = U5t(Object.keys, Object), + V5t = Math.max; + function z5t(e, t) { + var r = y9e(e) || X5t(e) ? L5t(e.length, String) : [], + n = r.length, + a = !!n; + for (var o in e) (t || MN.call(e, o)) && !(a && (o == 'length' || G5t(o, n))) && r.push(o); + return r; + } + function H5t(e) { + if (!W5t(e)) return B5t(e); + var t = []; + for (var r in Object(e)) MN.call(e, r) && r != 'constructor' && t.push(r); + return t; + } + function G5t(e, t) { + return (t = t ?? v9e), !!t && (typeof e == 'number' || R5t.test(e)) && e > -1 && e % 1 == 0 && e < t; + } + function W5t(e) { + var t = e && e.constructor, + r = (typeof t == 'function' && t.prototype) || _9; + return e === r; + } + function K5t(e, t, r, n) { + (e = UN(e) ? e : a7t(e)), (r = r && !n ? r7t(r) : 0); + var a = e.length; + return r < 0 && (r = V5t(a + r, 0)), Z5t(e) ? r <= a && e.indexOf(t, r) > -1 : !!a && q5t(e, t, r) > -1; + } + function X5t(e) { + return J5t(e) && MN.call(e, 'callee') && (!$5t.call(e, 'callee') || w9.call(e) == E5t); + } + var y9e = Array.isArray; + function UN(e) { + return e != null && Q5t(e.length) && !Y5t(e); + } + function J5t(e) { + return $N(e) && UN(e); + } + function Y5t(e) { + var t = LN(e) ? w9.call(e) : ''; + return t == x5t || t == O5t; + } + function Q5t(e) { + return typeof e == 'number' && e > -1 && e % 1 == 0 && e <= v9e; + } + function LN(e) { + var t = typeof e; + return !!e && (t == 'object' || t == 'function'); + } + function $N(e) { + return !!e && typeof e == 'object'; + } + function Z5t(e) { + return typeof e == 'string' || (!y9e(e) && $N(e) && w9.call(e) == T5t); + } + function e7t(e) { + return typeof e == 'symbol' || ($N(e) && w9.call(e) == C5t); + } + function t7t(e) { + if (!e) return e === 0 ? e : 0; + if (((e = i7t(e)), e === h9e || e === -h9e)) { + var t = e < 0 ? -1 : 1; + return t * S5t; + } + return e === e ? e : 0; + } + function r7t(e) { + var t = t7t(e), + r = t % 1; + return t === t ? (r ? t - r : t) : 0; + } + function i7t(e) { + if (typeof e == 'number') return e; + if (e7t(e)) return g9e; + if (LN(e)) { + var t = typeof e.valueOf == 'function' ? e.valueOf() : e; + e = LN(t) ? t + '' : t; + } + if (typeof e != 'string') return e === 0 ? e : +e; + e = e.replace(k5t, ''); + var r = I5t.test(e); + return r || P5t.test(e) ? j5t(e.slice(2), r ? 2 : 8) : A5t.test(e) ? g9e : +e; + } + function n7t(e) { + return UN(e) ? z5t(e) : H5t(e); + } + function a7t(e) { + return e ? M5t(e, n7t(e)) : []; + } + b9e.exports = K5t; +}); +var S9e = d((Vrr, w9e) => { + var o7t = '[object Boolean]', + s7t = Object.prototype, + l7t = s7t.toString; + function u7t(e) { + return e === !0 || e === !1 || (p7t(e) && l7t.call(e) == o7t); + } + function p7t(e) { + return !!e && typeof e == 'object'; + } + w9e.exports = u7t; +}); +var C9e = d((zrr, T9e) => { + var E9e = 1 / 0, + c7t = 17976931348623157e292, + x9e = 0 / 0, + d7t = '[object Symbol]', + f7t = /^\s+|\s+$/g, + m7t = /^[-+]0x[0-9a-f]+$/i, + h7t = /^0b[01]+$/i, + g7t = /^0o[0-7]+$/i, + v7t = parseInt, + y7t = Object.prototype, + b7t = y7t.toString; + function _7t(e) { + return typeof e == 'number' && e == x7t(e); + } + function O9e(e) { + var t = typeof e; + return !!e && (t == 'object' || t == 'function'); + } + function w7t(e) { + return !!e && typeof e == 'object'; + } + function S7t(e) { + return typeof e == 'symbol' || (w7t(e) && b7t.call(e) == d7t); + } + function E7t(e) { + if (!e) return e === 0 ? e : 0; + if (((e = O7t(e)), e === E9e || e === -E9e)) { + var t = e < 0 ? -1 : 1; + return t * c7t; + } + return e === e ? e : 0; + } + function x7t(e) { + var t = E7t(e), + r = t % 1; + return t === t ? (r ? t - r : t) : 0; + } + function O7t(e) { + if (typeof e == 'number') return e; + if (S7t(e)) return x9e; + if (O9e(e)) { + var t = typeof e.valueOf == 'function' ? e.valueOf() : e; + e = O9e(t) ? t + '' : t; + } + if (typeof e != 'string') return e === 0 ? e : +e; + e = e.replace(f7t, ''); + var r = h7t.test(e); + return r || g7t.test(e) ? v7t(e.slice(2), r ? 2 : 8) : m7t.test(e) ? x9e : +e; + } + T9e.exports = _7t; +}); +var A9e = d((Hrr, k9e) => { + var T7t = '[object Number]', + C7t = Object.prototype, + k7t = C7t.toString; + function A7t(e) { + return !!e && typeof e == 'object'; + } + function I7t(e) { + return typeof e == 'number' || (A7t(e) && k7t.call(e) == T7t); + } + k9e.exports = I7t; +}); +var j9e = d((Grr, R9e) => { + var P7t = '[object Object]'; + function R7t(e) { + var t = !1; + if (e != null && typeof e.toString != 'function') + try { + t = !!(e + ''); + } catch {} + return t; + } + function j7t(e, t) { + return function (r) { + return e(t(r)); + }; + } + var D7t = Function.prototype, + I9e = Object.prototype, + P9e = D7t.toString, + N7t = I9e.hasOwnProperty, + q7t = P9e.call(Object), + F7t = I9e.toString, + L7t = j7t(Object.getPrototypeOf, Object); + function M7t(e) { + return !!e && typeof e == 'object'; + } + function U7t(e) { + if (!M7t(e) || F7t.call(e) != P7t || R7t(e)) return !1; + var t = L7t(e); + if (t === null) return !0; + var r = N7t.call(t, 'constructor') && t.constructor; + return typeof r == 'function' && r instanceof r && P9e.call(r) == q7t; + } + R9e.exports = U7t; +}); +var N9e = d((Wrr, D9e) => { + var $7t = '[object String]', + B7t = Object.prototype, + V7t = B7t.toString, + z7t = Array.isArray; + function H7t(e) { + return !!e && typeof e == 'object'; + } + function G7t(e) { + return typeof e == 'string' || (!z7t(e) && H7t(e) && V7t.call(e) == $7t); + } + D9e.exports = G7t; +}); +var U9e = d((Krr, M9e) => { + var W7t = 'Expected a function', + q9e = 1 / 0, + K7t = 17976931348623157e292, + F9e = 0 / 0, + X7t = '[object Symbol]', + J7t = /^\s+|\s+$/g, + Y7t = /^[-+]0x[0-9a-f]+$/i, + Q7t = /^0b[01]+$/i, + Z7t = /^0o[0-7]+$/i, + eEt = parseInt, + tEt = Object.prototype, + rEt = tEt.toString; + function iEt(e, t) { + var r; + if (typeof t != 'function') throw new TypeError(W7t); + return ( + (e = lEt(e)), + function () { + return --e > 0 && (r = t.apply(this, arguments)), e <= 1 && (t = void 0), r; + } + ); + } + function nEt(e) { + return iEt(2, e); + } + function L9e(e) { + var t = typeof e; + return !!e && (t == 'object' || t == 'function'); + } + function aEt(e) { + return !!e && typeof e == 'object'; + } + function oEt(e) { + return typeof e == 'symbol' || (aEt(e) && rEt.call(e) == X7t); + } + function sEt(e) { + if (!e) return e === 0 ? e : 0; + if (((e = uEt(e)), e === q9e || e === -q9e)) { + var t = e < 0 ? -1 : 1; + return t * K7t; + } + return e === e ? e : 0; + } + function lEt(e) { + var t = sEt(e), + r = t % 1; + return t === t ? (r ? t - r : t) : 0; + } + function uEt(e) { + if (typeof e == 'number') return e; + if (oEt(e)) return F9e; + if (L9e(e)) { + var t = typeof e.valueOf == 'function' ? e.valueOf() : e; + e = L9e(t) ? t + '' : t; + } + if (typeof e != 'string') return e === 0 ? e : +e; + e = e.replace(J7t, ''); + var r = Q7t.test(e); + return r || Z7t.test(e) ? eEt(e.slice(2), r ? 2 : 8) : Y7t.test(e) ? F9e : +e; + } + M9e.exports = nEt; +}); +var X9e = d((Xrr, K9e) => { + var $9e = jN(), + pEt = NN(), + cEt = DN(), + B9e = h9(), + dEt = _9e(), + S9 = S9e(), + V9e = C9e(), + BN = A9e(), + H9e = j9e(), + $p = N9e(), + fEt = U9e(), + { KeyObject: mEt, createSecretKey: hEt, createPrivateKey: gEt } = require('crypto'), + G9e = ['RS256', 'RS384', 'RS512', 'ES256', 'ES384', 'ES512', 'HS256', 'HS384', 'HS512', 'none']; + pEt && G9e.splice(3, 0, 'PS256', 'PS384', 'PS512'); + var vEt = { + expiresIn: { + isValid: function (e) { + return V9e(e) || ($p(e) && e); + }, + message: '"expiresIn" should be a number of seconds or string representing a timespan', + }, + notBefore: { + isValid: function (e) { + return V9e(e) || ($p(e) && e); + }, + message: '"notBefore" should be a number of seconds or string representing a timespan', + }, + audience: { + isValid: function (e) { + return $p(e) || Array.isArray(e); + }, + message: '"audience" must be a string or array', + }, + algorithm: { isValid: dEt.bind(null, G9e), message: '"algorithm" must be a valid string enum value' }, + header: { isValid: H9e, message: '"header" must be an object' }, + encoding: { isValid: $p, message: '"encoding" must be a string' }, + issuer: { isValid: $p, message: '"issuer" must be a string' }, + subject: { isValid: $p, message: '"subject" must be a string' }, + jwtid: { isValid: $p, message: '"jwtid" must be a string' }, + noTimestamp: { isValid: S9, message: '"noTimestamp" must be a boolean' }, + keyid: { isValid: $p, message: '"keyid" must be a string' }, + mutatePayload: { isValid: S9, message: '"mutatePayload" must be a boolean' }, + allowInsecureKeySizes: { isValid: S9, message: '"allowInsecureKeySizes" must be a boolean' }, + allowInvalidAsymmetricKeyTypes: { isValid: S9, message: '"allowInvalidAsymmetricKeyTypes" must be a boolean' }, + }, + yEt = { + iat: { isValid: BN, message: '"iat" should be a number of seconds' }, + exp: { isValid: BN, message: '"exp" should be a number of seconds' }, + nbf: { isValid: BN, message: '"nbf" should be a number of seconds' }, + }; + function W9e(e, t, r, n) { + if (!H9e(r)) throw new Error('Expected "' + n + '" to be a plain object.'); + Object.keys(r).forEach(function (a) { + let o = e[a]; + if (!o) { + if (!t) throw new Error('"' + a + '" is not allowed in "' + n + '"'); + return; + } + if (!o.isValid(r[a])) throw new Error(o.message); + }); + } + function bEt(e) { + return W9e(vEt, !1, e, 'options'); + } + function _Et(e) { + return W9e(yEt, !0, e, 'payload'); + } + var z9e = { audience: 'aud', issuer: 'iss', subject: 'sub', jwtid: 'jti' }, + wEt = ['expiresIn', 'notBefore', 'noTimestamp', 'audience', 'issuer', 'subject', 'jwtid']; + K9e.exports = function (e, t, r, n) { + typeof r == 'function' ? ((n = r), (r = {})) : (r = r || {}); + let a = typeof e == 'object' && !Buffer.isBuffer(e), + o = Object.assign({ alg: r.algorithm || 'HS256', typ: a ? 'JWT' : void 0, kid: r.keyid }, r.header); + function s(p) { + if (n) return n(p); + throw p; + } + if (!t && r.algorithm !== 'none') return s(new Error('secretOrPrivateKey must have a value')); + if (t != null && !(t instanceof mEt)) + try { + t = gEt(t); + } catch { + try { + t = hEt(typeof t == 'string' ? Buffer.from(t) : t); + } catch { + return s(new Error('secretOrPrivateKey is not valid key material')); + } + } + if (o.alg.startsWith('HS') && t.type !== 'secret') + return s(new Error(`secretOrPrivateKey must be a symmetric key when using ${o.alg}`)); + if (/^(?:RS|PS|ES)/.test(o.alg)) { + if (t.type !== 'private') return s(new Error(`secretOrPrivateKey must be an asymmetric key when using ${o.alg}`)); + if ( + !r.allowInsecureKeySizes && + !o.alg.startsWith('ES') && + t.asymmetricKeyDetails !== void 0 && + t.asymmetricKeyDetails.modulusLength < 2048 + ) + return s(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${o.alg}`)); + } + if (typeof e > 'u') return s(new Error('payload is required')); + if (a) { + try { + _Et(e); + } catch (p) { + return s(p); + } + r.mutatePayload || (e = Object.assign({}, e)); + } else { + let p = wEt.filter(function (c) { + return typeof r[c] < 'u'; + }); + if (p.length > 0) return s(new Error('invalid ' + p.join(',') + ' option for ' + typeof e + ' payload')); + } + if (typeof e.exp < 'u' && typeof r.expiresIn < 'u') + return s(new Error('Bad "options.expiresIn" option the payload already has an "exp" property.')); + if (typeof e.nbf < 'u' && typeof r.notBefore < 'u') + return s(new Error('Bad "options.notBefore" option the payload already has an "nbf" property.')); + try { + bEt(r); + } catch (p) { + return s(p); + } + if (!r.allowInvalidAsymmetricKeyTypes) + try { + cEt(o.alg, t); + } catch (p) { + return s(p); + } + let l = e.iat || Math.floor(Date.now() / 1e3); + if ((r.noTimestamp ? delete e.iat : a && (e.iat = l), typeof r.notBefore < 'u')) { + try { + e.nbf = $9e(r.notBefore, l); + } catch (p) { + return s(p); + } + if (typeof e.nbf > 'u') + return s( + new Error('"notBefore" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60') + ); + } + if (typeof r.expiresIn < 'u' && typeof e == 'object') { + try { + e.exp = $9e(r.expiresIn, l); + } catch (p) { + return s(p); + } + if (typeof e.exp > 'u') + return s( + new Error('"expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60') + ); + } + Object.keys(z9e).forEach(function (p) { + let c = z9e[p]; + if (typeof r[p] < 'u') { + if (typeof e[c] < 'u') + return s(new Error('Bad "options.' + p + '" option. The payload already has an "' + c + '" property.')); + e[c] = r[p]; + } + }); + let u = r.encoding || 'utf8'; + if (typeof n == 'function') + (n = n && fEt(n)), + B9e.createSign({ header: o, privateKey: t, payload: e, encoding: u }) + .once('error', n) + .once('done', function (p) { + if (!r.allowInsecureKeySizes && /^(?:RS|PS)/.test(o.alg) && p.length < 256) + return n(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${o.alg}`)); + n(null, p); + }); + else { + let p = B9e.sign({ header: o, payload: e, secret: t, encoding: u }); + if (!r.allowInsecureKeySizes && /^(?:RS|PS)/.test(o.alg) && p.length < 256) + throw new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${o.alg}`); + return p; + } + }; +}); +var Y9e = d((Jrr, J9e) => { + J9e.exports = { + decode: IN(), + verify: m9e(), + sign: X9e(), + JsonWebTokenError: qb(), + NotBeforeError: PN(), + TokenExpiredError: RN(), + }; +}); +var Vb = d((nt) => { + 'use strict'; + Object.defineProperty(nt, '__esModule', { value: !0 }); + nt.regexpCode = + nt.getEsmExportName = + nt.getProperty = + nt.safeStringify = + nt.stringify = + nt.strConcat = + nt.addCodeArg = + nt.str = + nt._ = + nt.nil = + nt._Code = + nt.Name = + nt.IDENTIFIER = + nt._CodeOrName = + void 0; + var $b = class {}; + nt._CodeOrName = $b; + nt.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i; + var lf = class extends $b { + constructor(t) { + if ((super(), !nt.IDENTIFIER.test(t))) throw new Error('CodeGen: name must be a valid identifier'); + this.str = t; + } + toString() { + return this.str; + } + emptyStr() { + return !1; + } + get names() { + return { [this.str]: 1 }; + } + }; + nt.Name = lf; + var to = class extends $b { + constructor(t) { + super(), (this._items = typeof t == 'string' ? [t] : t); + } + toString() { + return this.str; + } + emptyStr() { + if (this._items.length > 1) return !1; + let t = this._items[0]; + return t === '' || t === '""'; + } + get str() { + var t; + return (t = this._str) !== null && t !== void 0 ? t : (this._str = this._items.reduce((r, n) => `${r}${n}`, '')); + } + get names() { + var t; + return (t = this._names) !== null && t !== void 0 + ? t + : (this._names = this._items.reduce((r, n) => (n instanceof lf && (r[n.str] = (r[n.str] || 0) + 1), r), {})); + } + }; + nt._Code = to; + nt.nil = new to(''); + function n5e(e, ...t) { + let r = [e[0]], + n = 0; + for (; n < t.length; ) KN(r, t[n]), r.push(e[++n]); + return new to(r); + } + nt._ = n5e; + var WN = new to('+'); + function a5e(e, ...t) { + let r = [Bb(e[0])], + n = 0; + for (; n < t.length; ) r.push(WN), KN(r, t[n]), r.push(WN, Bb(e[++n])); + return xEt(r), new to(r); + } + nt.str = a5e; + function KN(e, t) { + t instanceof to ? e.push(...t._items) : t instanceof lf ? e.push(t) : e.push(CEt(t)); + } + nt.addCodeArg = KN; + function xEt(e) { + let t = 1; + for (; t < e.length - 1; ) { + if (e[t] === WN) { + let r = OEt(e[t - 1], e[t + 1]); + if (r !== void 0) { + e.splice(t - 1, 3, r); + continue; + } + e[t++] = '+'; + } + t++; + } + } + function OEt(e, t) { + if (t === '""') return e; + if (e === '""') return t; + if (typeof e == 'string') + return t instanceof lf || e[e.length - 1] !== '"' + ? void 0 + : typeof t != 'string' + ? `${e.slice(0, -1)}${t}"` + : t[0] === '"' + ? e.slice(0, -1) + t.slice(1) + : void 0; + if (typeof t == 'string' && t[0] === '"' && !(e instanceof lf)) return `"${e}${t.slice(1)}`; + } + function TEt(e, t) { + return t.emptyStr() ? e : e.emptyStr() ? t : a5e`${e}${t}`; + } + nt.strConcat = TEt; + function CEt(e) { + return typeof e == 'number' || typeof e == 'boolean' || e === null ? e : Bb(Array.isArray(e) ? e.join(',') : e); + } + function kEt(e) { + return new to(Bb(e)); + } + nt.stringify = kEt; + function Bb(e) { + return JSON.stringify(e) + .replace(/\u2028/g, '\\u2028') + .replace(/\u2029/g, '\\u2029'); + } + nt.safeStringify = Bb; + function AEt(e) { + return typeof e == 'string' && nt.IDENTIFIER.test(e) ? new to(`.${e}`) : n5e`[${e}]`; + } + nt.getProperty = AEt; + function IEt(e) { + if (typeof e == 'string' && nt.IDENTIFIER.test(e)) return new to(`${e}`); + throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`); + } + nt.getEsmExportName = IEt; + function PEt(e) { + return new to(e.toString()); + } + nt.regexpCode = PEt; +}); +var QN = d((bn) => { + 'use strict'; + Object.defineProperty(bn, '__esModule', { value: !0 }); + bn.ValueScope = bn.ValueScopeName = bn.Scope = bn.varKinds = bn.UsedValueState = void 0; + var Bn = Vb(), + XN = class extends Error { + constructor(t) { + super(`CodeGen: "code" for ${t} not defined`), (this.value = t.value); + } + }, + JN; + (function (e) { + (e[(e.Started = 0)] = 'Started'), (e[(e.Completed = 1)] = 'Completed'); + })((JN = bn.UsedValueState || (bn.UsedValueState = {}))); + bn.varKinds = { const: new Bn.Name('const'), let: new Bn.Name('let'), var: new Bn.Name('var') }; + var C9 = class { + constructor({ prefixes: t, parent: r } = {}) { + (this._names = {}), (this._prefixes = t), (this._parent = r); + } + toName(t) { + return t instanceof Bn.Name ? t : this.name(t); + } + name(t) { + return new Bn.Name(this._newName(t)); + } + _newName(t) { + let r = this._names[t] || this._nameGroup(t); + return `${t}${r.index++}`; + } + _nameGroup(t) { + var r, n; + if ( + (!((n = (r = this._parent) === null || r === void 0 ? void 0 : r._prefixes) === null || n === void 0) && + n.has(t)) || + (this._prefixes && !this._prefixes.has(t)) + ) + throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`); + return (this._names[t] = { prefix: t, index: 0 }); + } + }; + bn.Scope = C9; + var k9 = class extends Bn.Name { + constructor(t, r) { + super(r), (this.prefix = t); + } + setValue(t, { property: r, itemIndex: n }) { + (this.value = t), (this.scopePath = (0, Bn._)`.${new Bn.Name(r)}[${n}]`); + } + }; + bn.ValueScopeName = k9; + var REt = (0, Bn._)`\n`, + YN = class extends C9 { + constructor(t) { + super(t), (this._values = {}), (this._scope = t.scope), (this.opts = { ...t, _n: t.lines ? REt : Bn.nil }); + } + get() { + return this._scope; + } + name(t) { + return new k9(t, this._newName(t)); + } + value(t, r) { + var n; + if (r.ref === void 0) throw new Error('CodeGen: ref must be passed in value'); + let a = this.toName(t), + { prefix: o } = a, + s = (n = r.key) !== null && n !== void 0 ? n : r.ref, + l = this._values[o]; + if (l) { + let c = l.get(s); + if (c) return c; + } else l = this._values[o] = new Map(); + l.set(s, a); + let u = this._scope[o] || (this._scope[o] = []), + p = u.length; + return (u[p] = r.ref), a.setValue(r, { property: o, itemIndex: p }), a; + } + getValue(t, r) { + let n = this._values[t]; + if (n) return n.get(r); + } + scopeRefs(t, r = this._values) { + return this._reduceValues(r, (n) => { + if (n.scopePath === void 0) throw new Error(`CodeGen: name "${n}" has no value`); + return (0, Bn._)`${t}${n.scopePath}`; + }); + } + scopeCode(t = this._values, r, n) { + return this._reduceValues( + t, + (a) => { + if (a.value === void 0) throw new Error(`CodeGen: name "${a}" has no value`); + return a.value.code; + }, + r, + n + ); + } + _reduceValues(t, r, n = {}, a) { + let o = Bn.nil; + for (let s in t) { + let l = t[s]; + if (!l) continue; + let u = (n[s] = n[s] || new Map()); + l.forEach((p) => { + if (u.has(p)) return; + u.set(p, JN.Started); + let c = r(p); + if (c) { + let f = this.opts.es5 ? bn.varKinds.var : bn.varKinds.const; + o = (0, Bn._)`${o}${f} ${p} = ${c};${this.opts._n}`; + } else if ((c = a?.(p))) o = (0, Bn._)`${o}${c}${this.opts._n}`; + else throw new XN(p); + u.set(p, JN.Completed); + }); + } + return o; + } + }; + bn.ValueScope = YN; +}); +var Le = d((De) => { + 'use strict'; + Object.defineProperty(De, '__esModule', { value: !0 }); + De.or = + De.and = + De.not = + De.CodeGen = + De.operators = + De.varKinds = + De.ValueScopeName = + De.ValueScope = + De.Scope = + De.Name = + De.regexpCode = + De.stringify = + De.getProperty = + De.nil = + De.strConcat = + De.str = + De._ = + void 0; + var Ke = Vb(), + Wo = QN(), + Bp = Vb(); + Object.defineProperty(De, '_', { + enumerable: !0, + get: function () { + return Bp._; + }, + }); + Object.defineProperty(De, 'str', { + enumerable: !0, + get: function () { + return Bp.str; + }, + }); + Object.defineProperty(De, 'strConcat', { + enumerable: !0, + get: function () { + return Bp.strConcat; + }, + }); + Object.defineProperty(De, 'nil', { + enumerable: !0, + get: function () { + return Bp.nil; + }, + }); + Object.defineProperty(De, 'getProperty', { + enumerable: !0, + get: function () { + return Bp.getProperty; + }, + }); + Object.defineProperty(De, 'stringify', { + enumerable: !0, + get: function () { + return Bp.stringify; + }, + }); + Object.defineProperty(De, 'regexpCode', { + enumerable: !0, + get: function () { + return Bp.regexpCode; + }, + }); + Object.defineProperty(De, 'Name', { + enumerable: !0, + get: function () { + return Bp.Name; + }, + }); + var R9 = QN(); + Object.defineProperty(De, 'Scope', { + enumerable: !0, + get: function () { + return R9.Scope; + }, + }); + Object.defineProperty(De, 'ValueScope', { + enumerable: !0, + get: function () { + return R9.ValueScope; + }, + }); + Object.defineProperty(De, 'ValueScopeName', { + enumerable: !0, + get: function () { + return R9.ValueScopeName; + }, + }); + Object.defineProperty(De, 'varKinds', { + enumerable: !0, + get: function () { + return R9.varKinds; + }, + }); + De.operators = { + GT: new Ke._Code('>'), + GTE: new Ke._Code('>='), + LT: new Ke._Code('<'), + LTE: new Ke._Code('<='), + EQ: new Ke._Code('==='), + NEQ: new Ke._Code('!=='), + NOT: new Ke._Code('!'), + OR: new Ke._Code('||'), + AND: new Ke._Code('&&'), + ADD: new Ke._Code('+'), + }; + var lu = class { + optimizeNodes() { + return this; + } + optimizeNames(t, r) { + return this; + } + }, + ZN = class extends lu { + constructor(t, r, n) { + super(), (this.varKind = t), (this.name = r), (this.rhs = n); + } + render({ es5: t, _n: r }) { + let n = t ? Wo.varKinds.var : this.varKind, + a = this.rhs === void 0 ? '' : ` = ${this.rhs}`; + return `${n} ${this.name}${a};` + r; + } + optimizeNames(t, r) { + if (t[this.name.str]) return this.rhs && (this.rhs = Fg(this.rhs, t, r)), this; + } + get names() { + return this.rhs instanceof Ke._CodeOrName ? this.rhs.names : {}; + } + }, + A9 = class extends lu { + constructor(t, r, n) { + super(), (this.lhs = t), (this.rhs = r), (this.sideEffects = n); + } + render({ _n: t }) { + return `${this.lhs} = ${this.rhs};` + t; + } + optimizeNames(t, r) { + if (!(this.lhs instanceof Ke.Name && !t[this.lhs.str] && !this.sideEffects)) + return (this.rhs = Fg(this.rhs, t, r)), this; + } + get names() { + let t = this.lhs instanceof Ke.Name ? {} : { ...this.lhs.names }; + return P9(t, this.rhs); + } + }, + eq = class extends A9 { + constructor(t, r, n, a) { + super(t, n, a), (this.op = r); + } + render({ _n: t }) { + return `${this.lhs} ${this.op}= ${this.rhs};` + t; + } + }, + tq = class extends lu { + constructor(t) { + super(), (this.label = t), (this.names = {}); + } + render({ _n: t }) { + return `${this.label}:` + t; + } + }, + rq = class extends lu { + constructor(t) { + super(), (this.label = t), (this.names = {}); + } + render({ _n: t }) { + return `break${this.label ? ` ${this.label}` : ''};` + t; + } + }, + iq = class extends lu { + constructor(t) { + super(), (this.error = t); + } + render({ _n: t }) { + return `throw ${this.error};` + t; + } + get names() { + return this.error.names; + } + }, + nq = class extends lu { + constructor(t) { + super(), (this.code = t); + } + render({ _n: t }) { + return `${this.code};` + t; + } + optimizeNodes() { + return `${this.code}` ? this : void 0; + } + optimizeNames(t, r) { + return (this.code = Fg(this.code, t, r)), this; + } + get names() { + return this.code instanceof Ke._CodeOrName ? this.code.names : {}; + } + }, + zb = class extends lu { + constructor(t = []) { + super(), (this.nodes = t); + } + render(t) { + return this.nodes.reduce((r, n) => r + n.render(t), ''); + } + optimizeNodes() { + let { nodes: t } = this, + r = t.length; + for (; r--; ) { + let n = t[r].optimizeNodes(); + Array.isArray(n) ? t.splice(r, 1, ...n) : n ? (t[r] = n) : t.splice(r, 1); + } + return t.length > 0 ? this : void 0; + } + optimizeNames(t, r) { + let { nodes: n } = this, + a = n.length; + for (; a--; ) { + let o = n[a]; + o.optimizeNames(t, r) || (jEt(t, o.names), n.splice(a, 1)); + } + return n.length > 0 ? this : void 0; + } + get names() { + return this.nodes.reduce((t, r) => cf(t, r.names), {}); + } + }, + uu = class extends zb { + render(t) { + return '{' + t._n + super.render(t) + '}' + t._n; + } + }, + aq = class extends zb {}, + qg = class extends uu {}; + qg.kind = 'else'; + var uf = class e extends uu { + constructor(t, r) { + super(r), (this.condition = t); + } + render(t) { + let r = `if(${this.condition})` + super.render(t); + return this.else && (r += 'else ' + this.else.render(t)), r; + } + optimizeNodes() { + super.optimizeNodes(); + let t = this.condition; + if (t === !0) return this.nodes; + let r = this.else; + if (r) { + let n = r.optimizeNodes(); + r = this.else = Array.isArray(n) ? new qg(n) : n; + } + if (r) + return t === !1 + ? r instanceof e + ? r + : r.nodes + : this.nodes.length + ? this + : new e(o5e(t), r instanceof e ? [r] : r.nodes); + if (!(t === !1 || !this.nodes.length)) return this; + } + optimizeNames(t, r) { + var n; + if ( + ((this.else = (n = this.else) === null || n === void 0 ? void 0 : n.optimizeNames(t, r)), + !!(super.optimizeNames(t, r) || this.else)) + ) + return (this.condition = Fg(this.condition, t, r)), this; + } + get names() { + let t = super.names; + return P9(t, this.condition), this.else && cf(t, this.else.names), t; + } + }; + uf.kind = 'if'; + var pf = class extends uu {}; + pf.kind = 'for'; + var oq = class extends pf { + constructor(t) { + super(), (this.iteration = t); + } + render(t) { + return `for(${this.iteration})` + super.render(t); + } + optimizeNames(t, r) { + if (super.optimizeNames(t, r)) return (this.iteration = Fg(this.iteration, t, r)), this; + } + get names() { + return cf(super.names, this.iteration.names); + } + }, + sq = class extends pf { + constructor(t, r, n, a) { + super(), (this.varKind = t), (this.name = r), (this.from = n), (this.to = a); + } + render(t) { + let r = t.es5 ? Wo.varKinds.var : this.varKind, + { name: n, from: a, to: o } = this; + return `for(${r} ${n}=${a}; ${n}<${o}; ${n}++)` + super.render(t); + } + get names() { + let t = P9(super.names, this.from); + return P9(t, this.to); + } + }, + I9 = class extends pf { + constructor(t, r, n, a) { + super(), (this.loop = t), (this.varKind = r), (this.name = n), (this.iterable = a); + } + render(t) { + return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render(t); + } + optimizeNames(t, r) { + if (super.optimizeNames(t, r)) return (this.iterable = Fg(this.iterable, t, r)), this; + } + get names() { + return cf(super.names, this.iterable.names); + } + }, + Hb = class extends uu { + constructor(t, r, n) { + super(), (this.name = t), (this.args = r), (this.async = n); + } + render(t) { + return `${this.async ? 'async ' : ''}function ${this.name}(${this.args})` + super.render(t); + } + }; + Hb.kind = 'func'; + var Gb = class extends zb { + render(t) { + return 'return ' + super.render(t); + } + }; + Gb.kind = 'return'; + var lq = class extends uu { + render(t) { + let r = 'try' + super.render(t); + return this.catch && (r += this.catch.render(t)), this.finally && (r += this.finally.render(t)), r; + } + optimizeNodes() { + var t, r; + return ( + super.optimizeNodes(), + (t = this.catch) === null || t === void 0 || t.optimizeNodes(), + (r = this.finally) === null || r === void 0 || r.optimizeNodes(), + this + ); + } + optimizeNames(t, r) { + var n, a; + return ( + super.optimizeNames(t, r), + (n = this.catch) === null || n === void 0 || n.optimizeNames(t, r), + (a = this.finally) === null || a === void 0 || a.optimizeNames(t, r), + this + ); + } + get names() { + let t = super.names; + return this.catch && cf(t, this.catch.names), this.finally && cf(t, this.finally.names), t; + } + }, + Wb = class extends uu { + constructor(t) { + super(), (this.error = t); + } + render(t) { + return `catch(${this.error})` + super.render(t); + } + }; + Wb.kind = 'catch'; + var Kb = class extends uu { + render(t) { + return 'finally' + super.render(t); + } + }; + Kb.kind = 'finally'; + var uq = class { + constructor(t, r = {}) { + (this._values = {}), + (this._blockStarts = []), + (this._constants = {}), + (this.opts = { + ...r, + _n: r.lines + ? ` +` + : '', + }), + (this._extScope = t), + (this._scope = new Wo.Scope({ parent: t })), + (this._nodes = [new aq()]); + } + toString() { + return this._root.render(this.opts); + } + name(t) { + return this._scope.name(t); + } + scopeName(t) { + return this._extScope.name(t); + } + scopeValue(t, r) { + let n = this._extScope.value(t, r); + return (this._values[n.prefix] || (this._values[n.prefix] = new Set())).add(n), n; + } + getScopeValue(t, r) { + return this._extScope.getValue(t, r); + } + scopeRefs(t) { + return this._extScope.scopeRefs(t, this._values); + } + scopeCode() { + return this._extScope.scopeCode(this._values); + } + _def(t, r, n, a) { + let o = this._scope.toName(r); + return n !== void 0 && a && (this._constants[o.str] = n), this._leafNode(new ZN(t, o, n)), o; + } + const(t, r, n) { + return this._def(Wo.varKinds.const, t, r, n); + } + let(t, r, n) { + return this._def(Wo.varKinds.let, t, r, n); + } + var(t, r, n) { + return this._def(Wo.varKinds.var, t, r, n); + } + assign(t, r, n) { + return this._leafNode(new A9(t, r, n)); + } + add(t, r) { + return this._leafNode(new eq(t, De.operators.ADD, r)); + } + code(t) { + return typeof t == 'function' ? t() : t !== Ke.nil && this._leafNode(new nq(t)), this; + } + object(...t) { + let r = ['{']; + for (let [n, a] of t) + r.length > 1 && r.push(','), r.push(n), (n !== a || this.opts.es5) && (r.push(':'), (0, Ke.addCodeArg)(r, a)); + return r.push('}'), new Ke._Code(r); + } + if(t, r, n) { + if ((this._blockNode(new uf(t)), r && n)) this.code(r).else().code(n).endIf(); + else if (r) this.code(r).endIf(); + else if (n) throw new Error('CodeGen: "else" body without "then" body'); + return this; + } + elseIf(t) { + return this._elseNode(new uf(t)); + } + else() { + return this._elseNode(new qg()); + } + endIf() { + return this._endBlockNode(uf, qg); + } + _for(t, r) { + return this._blockNode(t), r && this.code(r).endFor(), this; + } + for(t, r) { + return this._for(new oq(t), r); + } + forRange(t, r, n, a, o = this.opts.es5 ? Wo.varKinds.var : Wo.varKinds.let) { + let s = this._scope.toName(t); + return this._for(new sq(o, s, r, n), () => a(s)); + } + forOf(t, r, n, a = Wo.varKinds.const) { + let o = this._scope.toName(t); + if (this.opts.es5) { + let s = r instanceof Ke.Name ? r : this.var('_arr', r); + return this.forRange('_i', 0, (0, Ke._)`${s}.length`, (l) => { + this.var(o, (0, Ke._)`${s}[${l}]`), n(o); + }); + } + return this._for(new I9('of', a, o, r), () => n(o)); + } + forIn(t, r, n, a = this.opts.es5 ? Wo.varKinds.var : Wo.varKinds.const) { + if (this.opts.ownProperties) return this.forOf(t, (0, Ke._)`Object.keys(${r})`, n); + let o = this._scope.toName(t); + return this._for(new I9('in', a, o, r), () => n(o)); + } + endFor() { + return this._endBlockNode(pf); + } + label(t) { + return this._leafNode(new tq(t)); + } + break(t) { + return this._leafNode(new rq(t)); + } + return(t) { + let r = new Gb(); + if ((this._blockNode(r), this.code(t), r.nodes.length !== 1)) + throw new Error('CodeGen: "return" should have one node'); + return this._endBlockNode(Gb); + } + try(t, r, n) { + if (!r && !n) throw new Error('CodeGen: "try" without "catch" and "finally"'); + let a = new lq(); + if ((this._blockNode(a), this.code(t), r)) { + let o = this.name('e'); + (this._currNode = a.catch = new Wb(o)), r(o); + } + return n && ((this._currNode = a.finally = new Kb()), this.code(n)), this._endBlockNode(Wb, Kb); + } + throw(t) { + return this._leafNode(new iq(t)); + } + block(t, r) { + return this._blockStarts.push(this._nodes.length), t && this.code(t).endBlock(r), this; + } + endBlock(t) { + let r = this._blockStarts.pop(); + if (r === void 0) throw new Error('CodeGen: not in self-balancing block'); + let n = this._nodes.length - r; + if (n < 0 || (t !== void 0 && n !== t)) throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${t} expected`); + return (this._nodes.length = r), this; + } + func(t, r = Ke.nil, n, a) { + return this._blockNode(new Hb(t, r, n)), a && this.code(a).endFunc(), this; + } + endFunc() { + return this._endBlockNode(Hb); + } + optimize(t = 1) { + for (; t-- > 0; ) this._root.optimizeNodes(), this._root.optimizeNames(this._root.names, this._constants); + } + _leafNode(t) { + return this._currNode.nodes.push(t), this; + } + _blockNode(t) { + this._currNode.nodes.push(t), this._nodes.push(t); + } + _endBlockNode(t, r) { + let n = this._currNode; + if (n instanceof t || (r && n instanceof r)) return this._nodes.pop(), this; + throw new Error(`CodeGen: not in block "${r ? `${t.kind}/${r.kind}` : t.kind}"`); + } + _elseNode(t) { + let r = this._currNode; + if (!(r instanceof uf)) throw new Error('CodeGen: "else" without "if"'); + return (this._currNode = r.else = t), this; + } + get _root() { + return this._nodes[0]; + } + get _currNode() { + let t = this._nodes; + return t[t.length - 1]; + } + set _currNode(t) { + let r = this._nodes; + r[r.length - 1] = t; + } + }; + De.CodeGen = uq; + function cf(e, t) { + for (let r in t) e[r] = (e[r] || 0) + (t[r] || 0); + return e; + } + function P9(e, t) { + return t instanceof Ke._CodeOrName ? cf(e, t.names) : e; + } + function Fg(e, t, r) { + if (e instanceof Ke.Name) return n(e); + if (!a(e)) return e; + return new Ke._Code( + e._items.reduce( + (o, s) => (s instanceof Ke.Name && (s = n(s)), s instanceof Ke._Code ? o.push(...s._items) : o.push(s), o), + [] + ) + ); + function n(o) { + let s = r[o.str]; + return s === void 0 || t[o.str] !== 1 ? o : (delete t[o.str], s); + } + function a(o) { + return ( + o instanceof Ke._Code && o._items.some((s) => s instanceof Ke.Name && t[s.str] === 1 && r[s.str] !== void 0) + ); + } + } + function jEt(e, t) { + for (let r in t) e[r] = (e[r] || 0) - (t[r] || 0); + } + function o5e(e) { + return typeof e == 'boolean' || typeof e == 'number' || e === null ? !e : (0, Ke._)`!${pq(e)}`; + } + De.not = o5e; + var DEt = s5e(De.operators.AND); + function NEt(...e) { + return e.reduce(DEt); + } + De.and = NEt; + var qEt = s5e(De.operators.OR); + function FEt(...e) { + return e.reduce(qEt); + } + De.or = FEt; + function s5e(e) { + return (t, r) => (t === Ke.nil ? r : r === Ke.nil ? t : (0, Ke._)`${pq(t)} ${e} ${pq(r)}`); + } + function pq(e) { + return e instanceof Ke.Name ? e : (0, Ke._)`(${e})`; + } +}); +var at = d((Ne) => { + 'use strict'; + Object.defineProperty(Ne, '__esModule', { value: !0 }); + Ne.checkStrictMode = + Ne.getErrorPath = + Ne.Type = + Ne.useFunc = + Ne.setEvaluated = + Ne.evaluatedPropsToName = + Ne.mergeEvaluated = + Ne.eachItem = + Ne.unescapeJsonPointer = + Ne.escapeJsonPointer = + Ne.escapeFragment = + Ne.unescapeFragment = + Ne.schemaRefOrVal = + Ne.schemaHasRulesButRef = + Ne.schemaHasRules = + Ne.checkUnknownRules = + Ne.alwaysValidSchema = + Ne.toHash = + void 0; + var jt = Le(), + LEt = Vb(); + function MEt(e) { + let t = {}; + for (let r of e) t[r] = !0; + return t; + } + Ne.toHash = MEt; + function UEt(e, t) { + return typeof t == 'boolean' ? t : Object.keys(t).length === 0 ? !0 : (p5e(e, t), !c5e(t, e.self.RULES.all)); + } + Ne.alwaysValidSchema = UEt; + function p5e(e, t = e.schema) { + let { opts: r, self: n } = e; + if (!r.strictSchema || typeof t == 'boolean') return; + let a = n.RULES.keywords; + for (let o in t) a[o] || h5e(e, `unknown keyword: "${o}"`); + } + Ne.checkUnknownRules = p5e; + function c5e(e, t) { + if (typeof e == 'boolean') return !e; + for (let r in e) if (t[r]) return !0; + return !1; + } + Ne.schemaHasRules = c5e; + function $Et(e, t) { + if (typeof e == 'boolean') return !e; + for (let r in e) if (r !== '$ref' && t.all[r]) return !0; + return !1; + } + Ne.schemaHasRulesButRef = $Et; + function BEt({ topSchemaRef: e, schemaPath: t }, r, n, a) { + if (!a) { + if (typeof r == 'number' || typeof r == 'boolean') return r; + if (typeof r == 'string') return (0, jt._)`${r}`; + } + return (0, jt._)`${e}${t}${(0, jt.getProperty)(n)}`; + } + Ne.schemaRefOrVal = BEt; + function VEt(e) { + return d5e(decodeURIComponent(e)); + } + Ne.unescapeFragment = VEt; + function zEt(e) { + return encodeURIComponent(cq(e)); + } + Ne.escapeFragment = zEt; + function cq(e) { + return typeof e == 'number' ? `${e}` : e.replace(/~/g, '~0').replace(/\//g, '~1'); + } + Ne.escapeJsonPointer = cq; + function d5e(e) { + return e.replace(/~1/g, '/').replace(/~0/g, '~'); + } + Ne.unescapeJsonPointer = d5e; + function HEt(e, t) { + if (Array.isArray(e)) for (let r of e) t(r); + else t(e); + } + Ne.eachItem = HEt; + function l5e({ mergeNames: e, mergeToName: t, mergeValues: r, resultToName: n }) { + return (a, o, s, l) => { + let u = + s === void 0 + ? o + : s instanceof jt.Name + ? (o instanceof jt.Name ? e(a, o, s) : t(a, o, s), s) + : o instanceof jt.Name + ? (t(a, s, o), o) + : r(o, s); + return l === jt.Name && !(u instanceof jt.Name) ? n(a, u) : u; + }; + } + Ne.mergeEvaluated = { + props: l5e({ + mergeNames: (e, t, r) => + e.if((0, jt._)`${r} !== true && ${t} !== undefined`, () => { + e.if( + (0, jt._)`${t} === true`, + () => e.assign(r, !0), + () => e.assign(r, (0, jt._)`${r} || {}`).code((0, jt._)`Object.assign(${r}, ${t})`) + ); + }), + mergeToName: (e, t, r) => + e.if((0, jt._)`${r} !== true`, () => { + t === !0 ? e.assign(r, !0) : (e.assign(r, (0, jt._)`${r} || {}`), dq(e, r, t)); + }), + mergeValues: (e, t) => (e === !0 ? !0 : { ...e, ...t }), + resultToName: f5e, + }), + items: l5e({ + mergeNames: (e, t, r) => + e.if((0, jt._)`${r} !== true && ${t} !== undefined`, () => + e.assign(r, (0, jt._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`) + ), + mergeToName: (e, t, r) => + e.if((0, jt._)`${r} !== true`, () => e.assign(r, t === !0 ? !0 : (0, jt._)`${r} > ${t} ? ${r} : ${t}`)), + mergeValues: (e, t) => (e === !0 ? !0 : Math.max(e, t)), + resultToName: (e, t) => e.var('items', t), + }), + }; + function f5e(e, t) { + if (t === !0) return e.var('props', !0); + let r = e.var('props', (0, jt._)`{}`); + return t !== void 0 && dq(e, r, t), r; + } + Ne.evaluatedPropsToName = f5e; + function dq(e, t, r) { + Object.keys(r).forEach((n) => e.assign((0, jt._)`${t}${(0, jt.getProperty)(n)}`, !0)); + } + Ne.setEvaluated = dq; + var u5e = {}; + function GEt(e, t) { + return e.scopeValue('func', { ref: t, code: u5e[t.code] || (u5e[t.code] = new LEt._Code(t.code)) }); + } + Ne.useFunc = GEt; + var m5e; + (function (e) { + (e[(e.Num = 0)] = 'Num'), (e[(e.Str = 1)] = 'Str'); + })((m5e = Ne.Type || (Ne.Type = {}))); + function WEt(e, t, r) { + if (e instanceof jt.Name) { + let n = t === m5e.Num; + return r + ? n + ? (0, jt._)`"[" + ${e} + "]"` + : (0, jt._)`"['" + ${e} + "']"` + : n + ? (0, jt._)`"/" + ${e}` + : (0, jt._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`; + } + return r ? (0, jt.getProperty)(e).toString() : '/' + cq(e); + } + Ne.getErrorPath = WEt; + function h5e(e, t, r = e.opts.strictSchema) { + if (r) { + if (((t = `strict mode: ${t}`), r === !0)) throw new Error(t); + e.self.logger.warn(t); + } + } + Ne.checkStrictMode = h5e; +}); +var pu = d((fq) => { + 'use strict'; + Object.defineProperty(fq, '__esModule', { value: !0 }); + var Zi = Le(), + KEt = { + data: new Zi.Name('data'), + valCxt: new Zi.Name('valCxt'), + instancePath: new Zi.Name('instancePath'), + parentData: new Zi.Name('parentData'), + parentDataProperty: new Zi.Name('parentDataProperty'), + rootData: new Zi.Name('rootData'), + dynamicAnchors: new Zi.Name('dynamicAnchors'), + vErrors: new Zi.Name('vErrors'), + errors: new Zi.Name('errors'), + this: new Zi.Name('this'), + self: new Zi.Name('self'), + scope: new Zi.Name('scope'), + json: new Zi.Name('json'), + jsonPos: new Zi.Name('jsonPos'), + jsonLen: new Zi.Name('jsonLen'), + jsonPart: new Zi.Name('jsonPart'), + }; + fq.default = KEt; +}); +var Xb = d((en) => { + 'use strict'; + Object.defineProperty(en, '__esModule', { value: !0 }); + en.extendErrors = + en.resetErrorsCount = + en.reportExtraError = + en.reportError = + en.keyword$DataError = + en.keywordError = + void 0; + var Qe = Le(), + j9 = at(), + _n = pu(); + en.keywordError = { message: ({ keyword: e }) => (0, Qe.str)`must pass "${e}" keyword validation` }; + en.keyword$DataError = { + message: ({ keyword: e, schemaType: t }) => + t ? (0, Qe.str)`"${e}" keyword must be ${t} ($data)` : (0, Qe.str)`"${e}" keyword is invalid ($data)`, + }; + function XEt(e, t = en.keywordError, r, n) { + let { it: a } = e, + { gen: o, compositeRule: s, allErrors: l } = a, + u = y5e(e, t, r); + n ?? (s || l) ? g5e(o, u) : v5e(a, (0, Qe._)`[${u}]`); + } + en.reportError = XEt; + function JEt(e, t = en.keywordError, r) { + let { it: n } = e, + { gen: a, compositeRule: o, allErrors: s } = n, + l = y5e(e, t, r); + g5e(a, l), o || s || v5e(n, _n.default.vErrors); + } + en.reportExtraError = JEt; + function YEt(e, t) { + e.assign(_n.default.errors, t), + e.if((0, Qe._)`${_n.default.vErrors} !== null`, () => + e.if( + t, + () => e.assign((0, Qe._)`${_n.default.vErrors}.length`, t), + () => e.assign(_n.default.vErrors, null) + ) + ); + } + en.resetErrorsCount = YEt; + function QEt({ gen: e, keyword: t, schemaValue: r, data: n, errsCount: a, it: o }) { + if (a === void 0) throw new Error('ajv implementation error'); + let s = e.name('err'); + e.forRange('i', a, _n.default.errors, (l) => { + e.const(s, (0, Qe._)`${_n.default.vErrors}[${l}]`), + e.if((0, Qe._)`${s}.instancePath === undefined`, () => + e.assign((0, Qe._)`${s}.instancePath`, (0, Qe.strConcat)(_n.default.instancePath, o.errorPath)) + ), + e.assign((0, Qe._)`${s}.schemaPath`, (0, Qe.str)`${o.errSchemaPath}/${t}`), + o.opts.verbose && (e.assign((0, Qe._)`${s}.schema`, r), e.assign((0, Qe._)`${s}.data`, n)); + }); + } + en.extendErrors = QEt; + function g5e(e, t) { + let r = e.const('err', t); + e.if( + (0, Qe._)`${_n.default.vErrors} === null`, + () => e.assign(_n.default.vErrors, (0, Qe._)`[${r}]`), + (0, Qe._)`${_n.default.vErrors}.push(${r})` + ), + e.code((0, Qe._)`${_n.default.errors}++`); + } + function v5e(e, t) { + let { gen: r, validateName: n, schemaEnv: a } = e; + a.$async ? r.throw((0, Qe._)`new ${e.ValidationError}(${t})`) : (r.assign((0, Qe._)`${n}.errors`, t), r.return(!1)); + } + var df = { + keyword: new Qe.Name('keyword'), + schemaPath: new Qe.Name('schemaPath'), + params: new Qe.Name('params'), + propertyName: new Qe.Name('propertyName'), + message: new Qe.Name('message'), + schema: new Qe.Name('schema'), + parentSchema: new Qe.Name('parentSchema'), + }; + function y5e(e, t, r) { + let { createErrors: n } = e.it; + return n === !1 ? (0, Qe._)`{}` : ZEt(e, t, r); + } + function ZEt(e, t, r = {}) { + let { gen: n, it: a } = e, + o = [ext(a, r), txt(e, r)]; + return rxt(e, t, o), n.object(...o); + } + function ext({ errorPath: e }, { instancePath: t }) { + let r = t ? (0, Qe.str)`${e}${(0, j9.getErrorPath)(t, j9.Type.Str)}` : e; + return [_n.default.instancePath, (0, Qe.strConcat)(_n.default.instancePath, r)]; + } + function txt({ keyword: e, it: { errSchemaPath: t } }, { schemaPath: r, parentSchema: n }) { + let a = n ? t : (0, Qe.str)`${t}/${e}`; + return r && (a = (0, Qe.str)`${a}${(0, j9.getErrorPath)(r, j9.Type.Str)}`), [df.schemaPath, a]; + } + function rxt(e, { params: t, message: r }, n) { + let { keyword: a, data: o, schemaValue: s, it: l } = e, + { opts: u, propertyName: p, topSchemaRef: c, schemaPath: f } = l; + n.push([df.keyword, a], [df.params, typeof t == 'function' ? t(e) : t || (0, Qe._)`{}`]), + u.messages && n.push([df.message, typeof r == 'function' ? r(e) : r]), + u.verbose && n.push([df.schema, s], [df.parentSchema, (0, Qe._)`${c}${f}`], [_n.default.data, o]), + p && n.push([df.propertyName, p]); + } +}); +var _5e = d((Lg) => { + 'use strict'; + Object.defineProperty(Lg, '__esModule', { value: !0 }); + Lg.boolOrEmptySchema = Lg.topBoolOrEmptySchema = void 0; + var ixt = Xb(), + nxt = Le(), + axt = pu(), + oxt = { message: 'boolean schema is false' }; + function sxt(e) { + let { gen: t, schema: r, validateName: n } = e; + r === !1 + ? b5e(e, !1) + : typeof r == 'object' && r.$async === !0 + ? t.return(axt.default.data) + : (t.assign((0, nxt._)`${n}.errors`, null), t.return(!0)); + } + Lg.topBoolOrEmptySchema = sxt; + function lxt(e, t) { + let { gen: r, schema: n } = e; + n === !1 ? (r.var(t, !1), b5e(e)) : r.var(t, !0); + } + Lg.boolOrEmptySchema = lxt; + function b5e(e, t) { + let { gen: r, data: n } = e, + a = { gen: r, keyword: 'false schema', data: n, schema: !1, schemaCode: !1, schemaValue: !1, params: {}, it: e }; + (0, ixt.reportError)(a, oxt, void 0, t); + } +}); +var mq = d((Mg) => { + 'use strict'; + Object.defineProperty(Mg, '__esModule', { value: !0 }); + Mg.getRules = Mg.isJSONType = void 0; + var uxt = ['string', 'number', 'integer', 'boolean', 'null', 'object', 'array'], + pxt = new Set(uxt); + function cxt(e) { + return typeof e == 'string' && pxt.has(e); + } + Mg.isJSONType = cxt; + function dxt() { + let e = { + number: { type: 'number', rules: [] }, + string: { type: 'string', rules: [] }, + array: { type: 'array', rules: [] }, + object: { type: 'object', rules: [] }, + }; + return { + types: { ...e, integer: !0, boolean: !0, null: !0 }, + rules: [{ rules: [] }, e.number, e.string, e.array, e.object], + post: { rules: [] }, + all: {}, + keywords: {}, + }; + } + Mg.getRules = dxt; +}); +var hq = d((Vp) => { + 'use strict'; + Object.defineProperty(Vp, '__esModule', { value: !0 }); + Vp.shouldUseRule = Vp.shouldUseGroup = Vp.schemaHasRulesForType = void 0; + function fxt({ schema: e, self: t }, r) { + let n = t.RULES.types[r]; + return n && n !== !0 && w5e(e, n); + } + Vp.schemaHasRulesForType = fxt; + function w5e(e, t) { + return t.rules.some((r) => S5e(e, r)); + } + Vp.shouldUseGroup = w5e; + function S5e(e, t) { + var r; + return ( + e[t.keyword] !== void 0 || + ((r = t.definition.implements) === null || r === void 0 ? void 0 : r.some((n) => e[n] !== void 0)) + ); + } + Vp.shouldUseRule = S5e; +}); +var Yb = d((ji) => { + 'use strict'; + Object.defineProperty(ji, '__esModule', { value: !0 }); + ji.reportTypeError = + ji.checkDataTypes = + ji.checkDataType = + ji.coerceAndCheckDataType = + ji.getJSONTypes = + ji.getSchemaTypes = + ji.DataType = + void 0; + var mxt = mq(), + hxt = hq(), + gxt = Xb(), + ke = Le(), + E5e = at(), + Jb; + (function (e) { + (e[(e.Correct = 0)] = 'Correct'), (e[(e.Wrong = 1)] = 'Wrong'); + })((Jb = ji.DataType || (ji.DataType = {}))); + function vxt(e) { + let t = x5e(e.type); + if (t.includes('null')) { + if (e.nullable === !1) throw new Error('type: null contradicts nullable: false'); + } else { + if (!t.length && e.nullable !== void 0) throw new Error('"nullable" cannot be used without "type"'); + e.nullable === !0 && t.push('null'); + } + return t; + } + ji.getSchemaTypes = vxt; + function x5e(e) { + let t = Array.isArray(e) ? e : e ? [e] : []; + if (t.every(mxt.isJSONType)) return t; + throw new Error('type must be JSONType or JSONType[]: ' + t.join(',')); + } + ji.getJSONTypes = x5e; + function yxt(e, t) { + let { gen: r, data: n, opts: a } = e, + o = bxt(t, a.coerceTypes), + s = t.length > 0 && !(o.length === 0 && t.length === 1 && (0, hxt.schemaHasRulesForType)(e, t[0])); + if (s) { + let l = vq(t, n, a.strictNumbers, Jb.Wrong); + r.if(l, () => { + o.length ? _xt(e, t, o) : yq(e); + }); + } + return s; + } + ji.coerceAndCheckDataType = yxt; + var O5e = new Set(['string', 'number', 'integer', 'boolean', 'null']); + function bxt(e, t) { + return t ? e.filter((r) => O5e.has(r) || (t === 'array' && r === 'array')) : []; + } + function _xt(e, t, r) { + let { gen: n, data: a, opts: o } = e, + s = n.let('dataType', (0, ke._)`typeof ${a}`), + l = n.let('coerced', (0, ke._)`undefined`); + o.coerceTypes === 'array' && + n.if((0, ke._)`${s} == 'object' && Array.isArray(${a}) && ${a}.length == 1`, () => + n + .assign(a, (0, ke._)`${a}[0]`) + .assign(s, (0, ke._)`typeof ${a}`) + .if(vq(t, a, o.strictNumbers), () => n.assign(l, a)) + ), + n.if((0, ke._)`${l} !== undefined`); + for (let p of r) (O5e.has(p) || (p === 'array' && o.coerceTypes === 'array')) && u(p); + n.else(), + yq(e), + n.endIf(), + n.if((0, ke._)`${l} !== undefined`, () => { + n.assign(a, l), wxt(e, l); + }); + function u(p) { + switch (p) { + case 'string': + n.elseIf((0, ke._)`${s} == "number" || ${s} == "boolean"`) + .assign(l, (0, ke._)`"" + ${a}`) + .elseIf((0, ke._)`${a} === null`) + .assign(l, (0, ke._)`""`); + return; + case 'number': + n.elseIf( + (0, ke._)`${s} == "boolean" || ${a} === null + || (${s} == "string" && ${a} && ${a} == +${a})` + ).assign(l, (0, ke._)`+${a}`); + return; + case 'integer': + n.elseIf( + (0, ke._)`${s} === "boolean" || ${a} === null + || (${s} === "string" && ${a} && ${a} == +${a} && !(${a} % 1))` + ).assign(l, (0, ke._)`+${a}`); + return; + case 'boolean': + n.elseIf((0, ke._)`${a} === "false" || ${a} === 0 || ${a} === null`) + .assign(l, !1) + .elseIf((0, ke._)`${a} === "true" || ${a} === 1`) + .assign(l, !0); + return; + case 'null': + n.elseIf((0, ke._)`${a} === "" || ${a} === 0 || ${a} === false`), n.assign(l, null); + return; + case 'array': + n.elseIf( + (0, ke._)`${s} === "string" || ${s} === "number" + || ${s} === "boolean" || ${a} === null` + ).assign(l, (0, ke._)`[${a}]`); + } + } + } + function wxt({ gen: e, parentData: t, parentDataProperty: r }, n) { + e.if((0, ke._)`${t} !== undefined`, () => e.assign((0, ke._)`${t}[${r}]`, n)); + } + function gq(e, t, r, n = Jb.Correct) { + let a = n === Jb.Correct ? ke.operators.EQ : ke.operators.NEQ, + o; + switch (e) { + case 'null': + return (0, ke._)`${t} ${a} null`; + case 'array': + o = (0, ke._)`Array.isArray(${t})`; + break; + case 'object': + o = (0, ke._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`; + break; + case 'integer': + o = s((0, ke._)`!(${t} % 1) && !isNaN(${t})`); + break; + case 'number': + o = s(); + break; + default: + return (0, ke._)`typeof ${t} ${a} ${e}`; + } + return n === Jb.Correct ? o : (0, ke.not)(o); + function s(l = ke.nil) { + return (0, ke.and)((0, ke._)`typeof ${t} == "number"`, l, r ? (0, ke._)`isFinite(${t})` : ke.nil); + } + } + ji.checkDataType = gq; + function vq(e, t, r, n) { + if (e.length === 1) return gq(e[0], t, r, n); + let a, + o = (0, E5e.toHash)(e); + if (o.array && o.object) { + let s = (0, ke._)`typeof ${t} != "object"`; + (a = o.null ? s : (0, ke._)`!${t} || ${s}`), delete o.null, delete o.array, delete o.object; + } else a = ke.nil; + o.number && delete o.integer; + for (let s in o) a = (0, ke.and)(a, gq(s, t, r, n)); + return a; + } + ji.checkDataTypes = vq; + var Sxt = { + message: ({ schema: e }) => `must be ${e}`, + params: ({ schema: e, schemaValue: t }) => + typeof e == 'string' ? (0, ke._)`{type: ${e}}` : (0, ke._)`{type: ${t}}`, + }; + function yq(e) { + let t = Ext(e); + (0, gxt.reportError)(t, Sxt); + } + ji.reportTypeError = yq; + function Ext(e) { + let { gen: t, data: r, schema: n } = e, + a = (0, E5e.schemaRefOrVal)(e, n, 'type'); + return { + gen: t, + keyword: 'type', + data: r, + schema: n.type, + schemaCode: a, + schemaValue: a, + parentSchema: n, + params: {}, + it: e, + }; + } +}); +var C5e = d((D9) => { + 'use strict'; + Object.defineProperty(D9, '__esModule', { value: !0 }); + D9.assignDefaults = void 0; + var Ug = Le(), + xxt = at(); + function Oxt(e, t) { + let { properties: r, items: n } = e.schema; + if (t === 'object' && r) for (let a in r) T5e(e, a, r[a].default); + else t === 'array' && Array.isArray(n) && n.forEach((a, o) => T5e(e, o, a.default)); + } + D9.assignDefaults = Oxt; + function T5e(e, t, r) { + let { gen: n, compositeRule: a, data: o, opts: s } = e; + if (r === void 0) return; + let l = (0, Ug._)`${o}${(0, Ug.getProperty)(t)}`; + if (a) { + (0, xxt.checkStrictMode)(e, `default is ignored for: ${l}`); + return; + } + let u = (0, Ug._)`${l} === undefined`; + s.useDefaults === 'empty' && (u = (0, Ug._)`${u} || ${l} === null || ${l} === ""`), + n.if(u, (0, Ug._)`${l} = ${(0, Ug.stringify)(r)}`); + } +}); +var ro = d((Ct) => { + 'use strict'; + Object.defineProperty(Ct, '__esModule', { value: !0 }); + Ct.validateUnion = + Ct.validateArray = + Ct.usePattern = + Ct.callValidateCode = + Ct.schemaProperties = + Ct.allSchemaProperties = + Ct.noPropertyInData = + Ct.propertyInData = + Ct.isOwnProperty = + Ct.hasPropFunc = + Ct.reportMissingProp = + Ct.checkMissingProp = + Ct.checkReportMissingProp = + void 0; + var Gt = Le(), + bq = at(), + zp = pu(), + Txt = at(); + function Cxt(e, t) { + let { gen: r, data: n, it: a } = e; + r.if(wq(r, n, t, a.opts.ownProperties), () => { + e.setParams({ missingProperty: (0, Gt._)`${t}` }, !0), e.error(); + }); + } + Ct.checkReportMissingProp = Cxt; + function kxt({ gen: e, data: t, it: { opts: r } }, n, a) { + return (0, Gt.or)(...n.map((o) => (0, Gt.and)(wq(e, t, o, r.ownProperties), (0, Gt._)`${a} = ${o}`))); + } + Ct.checkMissingProp = kxt; + function Axt(e, t) { + e.setParams({ missingProperty: t }, !0), e.error(); + } + Ct.reportMissingProp = Axt; + function k5e(e) { + return e.scopeValue('func', { + ref: Object.prototype.hasOwnProperty, + code: (0, Gt._)`Object.prototype.hasOwnProperty`, + }); + } + Ct.hasPropFunc = k5e; + function _q(e, t, r) { + return (0, Gt._)`${k5e(e)}.call(${t}, ${r})`; + } + Ct.isOwnProperty = _q; + function Ixt(e, t, r, n) { + let a = (0, Gt._)`${t}${(0, Gt.getProperty)(r)} !== undefined`; + return n ? (0, Gt._)`${a} && ${_q(e, t, r)}` : a; + } + Ct.propertyInData = Ixt; + function wq(e, t, r, n) { + let a = (0, Gt._)`${t}${(0, Gt.getProperty)(r)} === undefined`; + return n ? (0, Gt.or)(a, (0, Gt.not)(_q(e, t, r))) : a; + } + Ct.noPropertyInData = wq; + function A5e(e) { + return e ? Object.keys(e).filter((t) => t !== '__proto__') : []; + } + Ct.allSchemaProperties = A5e; + function Pxt(e, t) { + return A5e(t).filter((r) => !(0, bq.alwaysValidSchema)(e, t[r])); + } + Ct.schemaProperties = Pxt; + function Rxt( + { schemaCode: e, data: t, it: { gen: r, topSchemaRef: n, schemaPath: a, errorPath: o }, it: s }, + l, + u, + p + ) { + let c = p ? (0, Gt._)`${e}, ${t}, ${n}${a}` : t, + f = [ + [zp.default.instancePath, (0, Gt.strConcat)(zp.default.instancePath, o)], + [zp.default.parentData, s.parentData], + [zp.default.parentDataProperty, s.parentDataProperty], + [zp.default.rootData, zp.default.rootData], + ]; + s.opts.dynamicRef && f.push([zp.default.dynamicAnchors, zp.default.dynamicAnchors]); + let h = (0, Gt._)`${c}, ${r.object(...f)}`; + return u !== Gt.nil ? (0, Gt._)`${l}.call(${u}, ${h})` : (0, Gt._)`${l}(${h})`; + } + Ct.callValidateCode = Rxt; + var jxt = (0, Gt._)`new RegExp`; + function Dxt({ gen: e, it: { opts: t } }, r) { + let n = t.unicodeRegExp ? 'u' : '', + { regExp: a } = t.code, + o = a(r, n); + return e.scopeValue('pattern', { + key: o.toString(), + ref: o, + code: (0, Gt._)`${a.code === 'new RegExp' ? jxt : (0, Txt.useFunc)(e, a)}(${r}, ${n})`, + }); + } + Ct.usePattern = Dxt; + function Nxt(e) { + let { gen: t, data: r, keyword: n, it: a } = e, + o = t.name('valid'); + if (a.allErrors) { + let l = t.let('valid', !0); + return s(() => t.assign(l, !1)), l; + } + return t.var(o, !0), s(() => t.break()), o; + function s(l) { + let u = t.const('len', (0, Gt._)`${r}.length`); + t.forRange('i', 0, u, (p) => { + e.subschema({ keyword: n, dataProp: p, dataPropType: bq.Type.Num }, o), t.if((0, Gt.not)(o), l); + }); + } + } + Ct.validateArray = Nxt; + function qxt(e) { + let { gen: t, schema: r, keyword: n, it: a } = e; + if (!Array.isArray(r)) throw new Error('ajv implementation error'); + if (r.some((u) => (0, bq.alwaysValidSchema)(a, u)) && !a.opts.unevaluated) return; + let s = t.let('valid', !1), + l = t.name('_valid'); + t.block(() => + r.forEach((u, p) => { + let c = e.subschema({ keyword: n, schemaProp: p, compositeRule: !0 }, l); + t.assign(s, (0, Gt._)`${s} || ${l}`), e.mergeValidEvaluated(c, l) || t.if((0, Gt.not)(s)); + }) + ), + e.result( + s, + () => e.reset(), + () => e.error(!0) + ); + } + Ct.validateUnion = qxt; +}); +var R5e = d((Ks) => { + 'use strict'; + Object.defineProperty(Ks, '__esModule', { value: !0 }); + Ks.validateKeywordUsage = Ks.validSchemaType = Ks.funcKeywordCode = Ks.macroKeywordCode = void 0; + var wn = Le(), + ff = pu(), + Fxt = ro(), + Lxt = Xb(); + function Mxt(e, t) { + let { gen: r, keyword: n, schema: a, parentSchema: o, it: s } = e, + l = t.macro.call(s.self, a, o, s), + u = P5e(r, n, l); + s.opts.validateSchema !== !1 && s.self.validateSchema(l, !0); + let p = r.name('valid'); + e.subschema( + { schema: l, schemaPath: wn.nil, errSchemaPath: `${s.errSchemaPath}/${n}`, topSchemaRef: u, compositeRule: !0 }, + p + ), + e.pass(p, () => e.error(!0)); + } + Ks.macroKeywordCode = Mxt; + function Uxt(e, t) { + var r; + let { gen: n, keyword: a, schema: o, parentSchema: s, $data: l, it: u } = e; + Bxt(u, t); + let p = !l && t.compile ? t.compile.call(u.self, o, s, u) : t.validate, + c = P5e(n, a, p), + f = n.let('valid'); + e.block$data(f, h), e.ok((r = t.valid) !== null && r !== void 0 ? r : f); + function h() { + if (t.errors === !1) y(), t.modifying && I5e(e), S(() => e.error()); + else { + let w = t.async ? m() : v(); + t.modifying && I5e(e), S(() => $xt(e, w)); + } + } + function m() { + let w = n.let('ruleErrs', null); + return ( + n.try( + () => y((0, wn._)`await `), + (O) => + n.assign(f, !1).if( + (0, wn._)`${O} instanceof ${u.ValidationError}`, + () => n.assign(w, (0, wn._)`${O}.errors`), + () => n.throw(O) + ) + ), + w + ); + } + function v() { + let w = (0, wn._)`${c}.errors`; + return n.assign(w, null), y(wn.nil), w; + } + function y(w = t.async ? (0, wn._)`await ` : wn.nil) { + let O = u.opts.passContext ? ff.default.this : ff.default.self, + x = !(('compile' in t && !l) || t.schema === !1); + n.assign(f, (0, wn._)`${w}${(0, Fxt.callValidateCode)(e, c, O, x)}`, t.modifying); + } + function S(w) { + var O; + n.if((0, wn.not)((O = t.valid) !== null && O !== void 0 ? O : f), w); + } + } + Ks.funcKeywordCode = Uxt; + function I5e(e) { + let { gen: t, data: r, it: n } = e; + t.if(n.parentData, () => t.assign(r, (0, wn._)`${n.parentData}[${n.parentDataProperty}]`)); + } + function $xt(e, t) { + let { gen: r } = e; + r.if( + (0, wn._)`Array.isArray(${t})`, + () => { + r + .assign( + ff.default.vErrors, + (0, wn._)`${ff.default.vErrors} === null ? ${t} : ${ff.default.vErrors}.concat(${t})` + ) + .assign(ff.default.errors, (0, wn._)`${ff.default.vErrors}.length`), + (0, Lxt.extendErrors)(e); + }, + () => e.error() + ); + } + function Bxt({ schemaEnv: e }, t) { + if (t.async && !e.$async) throw new Error('async keyword in sync schema'); + } + function P5e(e, t, r) { + if (r === void 0) throw new Error(`keyword "${t}" failed to compile`); + return e.scopeValue('keyword', typeof r == 'function' ? { ref: r } : { ref: r, code: (0, wn.stringify)(r) }); + } + function Vxt(e, t, r = !1) { + return ( + !t.length || + t.some((n) => + n === 'array' + ? Array.isArray(e) + : n === 'object' + ? e && typeof e == 'object' && !Array.isArray(e) + : typeof e == n || (r && typeof e > 'u') + ) + ); + } + Ks.validSchemaType = Vxt; + function zxt({ schema: e, opts: t, self: r, errSchemaPath: n }, a, o) { + if (Array.isArray(a.keyword) ? !a.keyword.includes(o) : a.keyword !== o) + throw new Error('ajv implementation error'); + let s = a.dependencies; + if (s?.some((l) => !Object.prototype.hasOwnProperty.call(e, l))) + throw new Error(`parent schema must have dependencies of ${o}: ${s.join(',')}`); + if (a.validateSchema && !a.validateSchema(e[o])) { + let u = `keyword "${o}" value is invalid at path "${n}": ` + r.errorsText(a.validateSchema.errors); + if (t.validateSchema === 'log') r.logger.error(u); + else throw new Error(u); + } + } + Ks.validateKeywordUsage = zxt; +}); +var D5e = d((Hp) => { + 'use strict'; + Object.defineProperty(Hp, '__esModule', { value: !0 }); + Hp.extendSubschemaMode = Hp.extendSubschemaData = Hp.getSubschema = void 0; + var Xs = Le(), + j5e = at(); + function Hxt(e, { keyword: t, schemaProp: r, schema: n, schemaPath: a, errSchemaPath: o, topSchemaRef: s }) { + if (t !== void 0 && n !== void 0) throw new Error('both "keyword" and "schema" passed, only one allowed'); + if (t !== void 0) { + let l = e.schema[t]; + return r === void 0 + ? { + schema: l, + schemaPath: (0, Xs._)`${e.schemaPath}${(0, Xs.getProperty)(t)}`, + errSchemaPath: `${e.errSchemaPath}/${t}`, + } + : { + schema: l[r], + schemaPath: (0, Xs._)`${e.schemaPath}${(0, Xs.getProperty)(t)}${(0, Xs.getProperty)(r)}`, + errSchemaPath: `${e.errSchemaPath}/${t}/${(0, j5e.escapeFragment)(r)}`, + }; + } + if (n !== void 0) { + if (a === void 0 || o === void 0 || s === void 0) + throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"'); + return { schema: n, schemaPath: a, topSchemaRef: s, errSchemaPath: o }; + } + throw new Error('either "keyword" or "schema" must be passed'); + } + Hp.getSubschema = Hxt; + function Gxt(e, t, { dataProp: r, dataPropType: n, data: a, dataTypes: o, propertyName: s }) { + if (a !== void 0 && r !== void 0) throw new Error('both "data" and "dataProp" passed, only one allowed'); + let { gen: l } = t; + if (r !== void 0) { + let { errorPath: p, dataPathArr: c, opts: f } = t, + h = l.let('data', (0, Xs._)`${t.data}${(0, Xs.getProperty)(r)}`, !0); + u(h), + (e.errorPath = (0, Xs.str)`${p}${(0, j5e.getErrorPath)(r, n, f.jsPropertySyntax)}`), + (e.parentDataProperty = (0, Xs._)`${r}`), + (e.dataPathArr = [...c, e.parentDataProperty]); + } + if (a !== void 0) { + let p = a instanceof Xs.Name ? a : l.let('data', a, !0); + u(p), s !== void 0 && (e.propertyName = s); + } + o && (e.dataTypes = o); + function u(p) { + (e.data = p), + (e.dataLevel = t.dataLevel + 1), + (e.dataTypes = []), + (t.definedProperties = new Set()), + (e.parentData = t.data), + (e.dataNames = [...t.dataNames, p]); + } + } + Hp.extendSubschemaData = Gxt; + function Wxt(e, { jtdDiscriminator: t, jtdMetadata: r, compositeRule: n, createErrors: a, allErrors: o }) { + n !== void 0 && (e.compositeRule = n), + a !== void 0 && (e.createErrors = a), + o !== void 0 && (e.allErrors = o), + (e.jtdDiscriminator = t), + (e.jtdMetadata = r); + } + Hp.extendSubschemaMode = Wxt; +}); +var Sq = d((nnr, N5e) => { + 'use strict'; + N5e.exports = function e(t, r) { + if (t === r) return !0; + if (t && r && typeof t == 'object' && typeof r == 'object') { + if (t.constructor !== r.constructor) return !1; + var n, a, o; + if (Array.isArray(t)) { + if (((n = t.length), n != r.length)) return !1; + for (a = n; a-- !== 0; ) if (!e(t[a], r[a])) return !1; + return !0; + } + if (t.constructor === RegExp) return t.source === r.source && t.flags === r.flags; + if (t.valueOf !== Object.prototype.valueOf) return t.valueOf() === r.valueOf(); + if (t.toString !== Object.prototype.toString) return t.toString() === r.toString(); + if (((o = Object.keys(t)), (n = o.length), n !== Object.keys(r).length)) return !1; + for (a = n; a-- !== 0; ) if (!Object.prototype.hasOwnProperty.call(r, o[a])) return !1; + for (a = n; a-- !== 0; ) { + var s = o[a]; + if (!e(t[s], r[s])) return !1; + } + return !0; + } + return t !== t && r !== r; + }; +}); +var F5e = d((anr, q5e) => { + 'use strict'; + var Gp = (q5e.exports = function (e, t, r) { + typeof t == 'function' && ((r = t), (t = {})), (r = t.cb || r); + var n = typeof r == 'function' ? r : r.pre || function () {}, + a = r.post || function () {}; + N9(t, n, a, e, '', e); + }); + Gp.keywords = { + additionalItems: !0, + items: !0, + contains: !0, + additionalProperties: !0, + propertyNames: !0, + not: !0, + if: !0, + then: !0, + else: !0, + }; + Gp.arrayKeywords = { items: !0, allOf: !0, anyOf: !0, oneOf: !0 }; + Gp.propsKeywords = { $defs: !0, definitions: !0, properties: !0, patternProperties: !0, dependencies: !0 }; + Gp.skipKeywords = { + default: !0, + enum: !0, + const: !0, + required: !0, + maximum: !0, + minimum: !0, + exclusiveMaximum: !0, + exclusiveMinimum: !0, + multipleOf: !0, + maxLength: !0, + minLength: !0, + pattern: !0, + format: !0, + maxItems: !0, + minItems: !0, + uniqueItems: !0, + maxProperties: !0, + minProperties: !0, + }; + function N9(e, t, r, n, a, o, s, l, u, p) { + if (n && typeof n == 'object' && !Array.isArray(n)) { + t(n, a, o, s, l, u, p); + for (var c in n) { + var f = n[c]; + if (Array.isArray(f)) { + if (c in Gp.arrayKeywords) + for (var h = 0; h < f.length; h++) N9(e, t, r, f[h], a + '/' + c + '/' + h, o, a, c, n, h); + } else if (c in Gp.propsKeywords) { + if (f && typeof f == 'object') for (var m in f) N9(e, t, r, f[m], a + '/' + c + '/' + Kxt(m), o, a, c, n, m); + } else (c in Gp.keywords || (e.allKeys && !(c in Gp.skipKeywords))) && N9(e, t, r, f, a + '/' + c, o, a, c, n); + } + r(n, a, o, s, l, u, p); + } + } + function Kxt(e) { + return e.replace(/~/g, '~0').replace(/\//g, '~1'); + } +}); +var Qb = d((Vn) => { + 'use strict'; + Object.defineProperty(Vn, '__esModule', { value: !0 }); + Vn.getSchemaRefs = Vn.resolveUrl = Vn.normalizeId = Vn._getFullPath = Vn.getFullPath = Vn.inlineRef = void 0; + var Xxt = at(), + Jxt = Sq(), + Yxt = F5e(), + Qxt = new Set([ + 'type', + 'format', + 'pattern', + 'maxLength', + 'minLength', + 'maxProperties', + 'minProperties', + 'maxItems', + 'minItems', + 'maximum', + 'minimum', + 'uniqueItems', + 'multipleOf', + 'required', + 'enum', + 'const', + ]); + function Zxt(e, t = !0) { + return typeof e == 'boolean' ? !0 : t === !0 ? !Eq(e) : t ? L5e(e) <= t : !1; + } + Vn.inlineRef = Zxt; + var eOt = new Set(['$ref', '$recursiveRef', '$recursiveAnchor', '$dynamicRef', '$dynamicAnchor']); + function Eq(e) { + for (let t in e) { + if (eOt.has(t)) return !0; + let r = e[t]; + if ((Array.isArray(r) && r.some(Eq)) || (typeof r == 'object' && Eq(r))) return !0; + } + return !1; + } + function L5e(e) { + let t = 0; + for (let r in e) { + if (r === '$ref') return 1 / 0; + if ((t++, !Qxt.has(r) && (typeof e[r] == 'object' && (0, Xxt.eachItem)(e[r], (n) => (t += L5e(n))), t === 1 / 0))) + return 1 / 0; + } + return t; + } + function M5e(e, t = '', r) { + r !== !1 && (t = $g(t)); + let n = e.parse(t); + return U5e(e, n); + } + Vn.getFullPath = M5e; + function U5e(e, t) { + return e.serialize(t).split('#')[0] + '#'; + } + Vn._getFullPath = U5e; + var tOt = /#\/?$/; + function $g(e) { + return e ? e.replace(tOt, '') : ''; + } + Vn.normalizeId = $g; + function rOt(e, t, r) { + return (r = $g(r)), e.resolve(t, r); + } + Vn.resolveUrl = rOt; + var iOt = /^[a-z_][-a-z0-9._]*$/i; + function nOt(e, t) { + if (typeof e == 'boolean') return {}; + let { schemaId: r, uriResolver: n } = this.opts, + a = $g(e[r] || t), + o = { '': a }, + s = M5e(n, a, !1), + l = {}, + u = new Set(); + return ( + Yxt(e, { allKeys: !0 }, (f, h, m, v) => { + if (v === void 0) return; + let y = s + h, + S = o[v]; + typeof f[r] == 'string' && (S = w.call(this, f[r])), + O.call(this, f.$anchor), + O.call(this, f.$dynamicAnchor), + (o[h] = S); + function w(x) { + let _ = this.opts.uriResolver.resolve; + if (((x = $g(S ? _(S, x) : x)), u.has(x))) throw c(x); + u.add(x); + let b = this.refs[x]; + return ( + typeof b == 'string' && (b = this.refs[b]), + typeof b == 'object' + ? p(f, b.schema, x) + : x !== $g(y) && (x[0] === '#' ? (p(f, l[x], x), (l[x] = f)) : (this.refs[x] = y)), + x + ); + } + function O(x) { + if (typeof x == 'string') { + if (!iOt.test(x)) throw new Error(`invalid anchor "${x}"`); + w.call(this, `#${x}`); + } + } + }), + l + ); + function p(f, h, m) { + if (h !== void 0 && !Jxt(f, h)) throw c(m); + } + function c(f) { + return new Error(`reference "${f}" resolves to more than one schema`); + } + } + Vn.getSchemaRefs = nOt; +}); +var t2 = d((Wp) => { + 'use strict'; + Object.defineProperty(Wp, '__esModule', { value: !0 }); + Wp.getData = Wp.KeywordCxt = Wp.validateFunctionCode = void 0; + var H5e = _5e(), + $5e = Yb(), + Oq = hq(), + q9 = Yb(), + aOt = C5e(), + e2 = R5e(), + xq = D5e(), + fe = Le(), + we = pu(), + oOt = Qb(), + cu = at(), + Zb = Xb(); + function sOt(e) { + if (K5e(e) && (X5e(e), W5e(e))) { + pOt(e); + return; + } + G5e(e, () => (0, H5e.topBoolOrEmptySchema)(e)); + } + Wp.validateFunctionCode = sOt; + function G5e({ gen: e, validateName: t, schema: r, schemaEnv: n, opts: a }, o) { + a.code.es5 + ? e.func(t, (0, fe._)`${we.default.data}, ${we.default.valCxt}`, n.$async, () => { + e.code((0, fe._)`"use strict"; ${B5e(r, a)}`), uOt(e, a), e.code(o); + }) + : e.func(t, (0, fe._)`${we.default.data}, ${lOt(a)}`, n.$async, () => e.code(B5e(r, a)).code(o)); + } + function lOt(e) { + return (0, fe._)`{${we.default.instancePath}="", ${we.default.parentData}, ${we.default.parentDataProperty}, ${ + we.default.rootData + }=${we.default.data}${e.dynamicRef ? (0, fe._)`, ${we.default.dynamicAnchors}={}` : fe.nil}}={}`; + } + function uOt(e, t) { + e.if( + we.default.valCxt, + () => { + e.var(we.default.instancePath, (0, fe._)`${we.default.valCxt}.${we.default.instancePath}`), + e.var(we.default.parentData, (0, fe._)`${we.default.valCxt}.${we.default.parentData}`), + e.var(we.default.parentDataProperty, (0, fe._)`${we.default.valCxt}.${we.default.parentDataProperty}`), + e.var(we.default.rootData, (0, fe._)`${we.default.valCxt}.${we.default.rootData}`), + t.dynamicRef && + e.var(we.default.dynamicAnchors, (0, fe._)`${we.default.valCxt}.${we.default.dynamicAnchors}`); + }, + () => { + e.var(we.default.instancePath, (0, fe._)`""`), + e.var(we.default.parentData, (0, fe._)`undefined`), + e.var(we.default.parentDataProperty, (0, fe._)`undefined`), + e.var(we.default.rootData, we.default.data), + t.dynamicRef && e.var(we.default.dynamicAnchors, (0, fe._)`{}`); + } + ); + } + function pOt(e) { + let { schema: t, opts: r, gen: n } = e; + G5e(e, () => { + r.$comment && t.$comment && Y5e(e), + hOt(e), + n.let(we.default.vErrors, null), + n.let(we.default.errors, 0), + r.unevaluated && cOt(e), + J5e(e), + yOt(e); + }); + } + function cOt(e) { + let { gen: t, validateName: r } = e; + (e.evaluated = t.const('evaluated', (0, fe._)`${r}.evaluated`)), + t.if((0, fe._)`${e.evaluated}.dynamicProps`, () => + t.assign((0, fe._)`${e.evaluated}.props`, (0, fe._)`undefined`) + ), + t.if((0, fe._)`${e.evaluated}.dynamicItems`, () => + t.assign((0, fe._)`${e.evaluated}.items`, (0, fe._)`undefined`) + ); + } + function B5e(e, t) { + let r = typeof e == 'object' && e[t.schemaId]; + return r && (t.code.source || t.code.process) ? (0, fe._)`/*# sourceURL=${r} */` : fe.nil; + } + function dOt(e, t) { + if (K5e(e) && (X5e(e), W5e(e))) { + fOt(e, t); + return; + } + (0, H5e.boolOrEmptySchema)(e, t); + } + function W5e({ schema: e, self: t }) { + if (typeof e == 'boolean') return !e; + for (let r in e) if (t.RULES.all[r]) return !0; + return !1; + } + function K5e(e) { + return typeof e.schema != 'boolean'; + } + function fOt(e, t) { + let { schema: r, gen: n, opts: a } = e; + a.$comment && r.$comment && Y5e(e), gOt(e), vOt(e); + let o = n.const('_errs', we.default.errors); + J5e(e, o), n.var(t, (0, fe._)`${o} === ${we.default.errors}`); + } + function X5e(e) { + (0, cu.checkUnknownRules)(e), mOt(e); + } + function J5e(e, t) { + if (e.opts.jtd) return V5e(e, [], !1, t); + let r = (0, $5e.getSchemaTypes)(e.schema), + n = (0, $5e.coerceAndCheckDataType)(e, r); + V5e(e, r, !n, t); + } + function mOt(e) { + let { schema: t, errSchemaPath: r, opts: n, self: a } = e; + t.$ref && + n.ignoreKeywordsWithRef && + (0, cu.schemaHasRulesButRef)(t, a.RULES) && + a.logger.warn(`$ref: keywords ignored in schema at path "${r}"`); + } + function hOt(e) { + let { schema: t, opts: r } = e; + t.default !== void 0 && + r.useDefaults && + r.strictSchema && + (0, cu.checkStrictMode)(e, 'default is ignored in the schema root'); + } + function gOt(e) { + let t = e.schema[e.opts.schemaId]; + t && (e.baseId = (0, oOt.resolveUrl)(e.opts.uriResolver, e.baseId, t)); + } + function vOt(e) { + if (e.schema.$async && !e.schemaEnv.$async) throw new Error('async schema in sync schema'); + } + function Y5e({ gen: e, schemaEnv: t, schema: r, errSchemaPath: n, opts: a }) { + let o = r.$comment; + if (a.$comment === !0) e.code((0, fe._)`${we.default.self}.logger.log(${o})`); + else if (typeof a.$comment == 'function') { + let s = (0, fe.str)`${n}/$comment`, + l = e.scopeValue('root', { ref: t.root }); + e.code((0, fe._)`${we.default.self}.opts.$comment(${o}, ${s}, ${l}.schema)`); + } + } + function yOt(e) { + let { gen: t, schemaEnv: r, validateName: n, ValidationError: a, opts: o } = e; + r.$async + ? t.if( + (0, fe._)`${we.default.errors} === 0`, + () => t.return(we.default.data), + () => t.throw((0, fe._)`new ${a}(${we.default.vErrors})`) + ) + : (t.assign((0, fe._)`${n}.errors`, we.default.vErrors), + o.unevaluated && bOt(e), + t.return((0, fe._)`${we.default.errors} === 0`)); + } + function bOt({ gen: e, evaluated: t, props: r, items: n }) { + r instanceof fe.Name && e.assign((0, fe._)`${t}.props`, r), + n instanceof fe.Name && e.assign((0, fe._)`${t}.items`, n); + } + function V5e(e, t, r, n) { + let { gen: a, schema: o, data: s, allErrors: l, opts: u, self: p } = e, + { RULES: c } = p; + if (o.$ref && (u.ignoreKeywordsWithRef || !(0, cu.schemaHasRulesButRef)(o, c))) { + a.block(() => Z5e(e, '$ref', c.all.$ref.definition)); + return; + } + u.jtd || _Ot(e, t), + a.block(() => { + for (let h of c.rules) f(h); + f(c.post); + }); + function f(h) { + (0, Oq.shouldUseGroup)(o, h) && + (h.type + ? (a.if((0, q9.checkDataType)(h.type, s, u.strictNumbers)), + z5e(e, h), + t.length === 1 && t[0] === h.type && r && (a.else(), (0, q9.reportTypeError)(e)), + a.endIf()) + : z5e(e, h), + l || a.if((0, fe._)`${we.default.errors} === ${n || 0}`)); + } + } + function z5e(e, t) { + let { + gen: r, + schema: n, + opts: { useDefaults: a }, + } = e; + a && (0, aOt.assignDefaults)(e, t.type), + r.block(() => { + for (let o of t.rules) (0, Oq.shouldUseRule)(n, o) && Z5e(e, o.keyword, o.definition, t.type); + }); + } + function _Ot(e, t) { + e.schemaEnv.meta || !e.opts.strictTypes || (wOt(e, t), e.opts.allowUnionTypes || SOt(e, t), EOt(e, e.dataTypes)); + } + function wOt(e, t) { + if (t.length) { + if (!e.dataTypes.length) { + e.dataTypes = t; + return; + } + t.forEach((r) => { + Q5e(e.dataTypes, r) || Tq(e, `type "${r}" not allowed by context "${e.dataTypes.join(',')}"`); + }), + OOt(e, t); + } + } + function SOt(e, t) { + t.length > 1 && !(t.length === 2 && t.includes('null')) && Tq(e, 'use allowUnionTypes to allow union type keyword'); + } + function EOt(e, t) { + let r = e.self.RULES.all; + for (let n in r) { + let a = r[n]; + if (typeof a == 'object' && (0, Oq.shouldUseRule)(e.schema, a)) { + let { type: o } = a.definition; + o.length && !o.some((s) => xOt(t, s)) && Tq(e, `missing type "${o.join(',')}" for keyword "${n}"`); + } + } + } + function xOt(e, t) { + return e.includes(t) || (t === 'number' && e.includes('integer')); + } + function Q5e(e, t) { + return e.includes(t) || (t === 'integer' && e.includes('number')); + } + function OOt(e, t) { + let r = []; + for (let n of e.dataTypes) Q5e(t, n) ? r.push(n) : t.includes('integer') && n === 'number' && r.push('integer'); + e.dataTypes = r; + } + function Tq(e, t) { + let r = e.schemaEnv.baseId + e.errSchemaPath; + (t += ` at "${r}" (strictTypes)`), (0, cu.checkStrictMode)(e, t, e.opts.strictTypes); + } + var F9 = class { + constructor(t, r, n) { + if ( + ((0, e2.validateKeywordUsage)(t, r, n), + (this.gen = t.gen), + (this.allErrors = t.allErrors), + (this.keyword = n), + (this.data = t.data), + (this.schema = t.schema[n]), + (this.$data = r.$data && t.opts.$data && this.schema && this.schema.$data), + (this.schemaValue = (0, cu.schemaRefOrVal)(t, this.schema, n, this.$data)), + (this.schemaType = r.schemaType), + (this.parentSchema = t.schema), + (this.params = {}), + (this.it = t), + (this.def = r), + this.$data) + ) + this.schemaCode = t.gen.const('vSchema', e7e(this.$data, t)); + else if ( + ((this.schemaCode = this.schemaValue), !(0, e2.validSchemaType)(this.schema, r.schemaType, r.allowUndefined)) + ) + throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`); + ('code' in r ? r.trackErrors : r.errors !== !1) && (this.errsCount = t.gen.const('_errs', we.default.errors)); + } + result(t, r, n) { + this.failResult((0, fe.not)(t), r, n); + } + failResult(t, r, n) { + this.gen.if(t), + n ? n() : this.error(), + r + ? (this.gen.else(), r(), this.allErrors && this.gen.endIf()) + : this.allErrors + ? this.gen.endIf() + : this.gen.else(); + } + pass(t, r) { + this.failResult((0, fe.not)(t), void 0, r); + } + fail(t) { + if (t === void 0) { + this.error(), this.allErrors || this.gen.if(!1); + return; + } + this.gen.if(t), this.error(), this.allErrors ? this.gen.endIf() : this.gen.else(); + } + fail$data(t) { + if (!this.$data) return this.fail(t); + let { schemaCode: r } = this; + this.fail((0, fe._)`${r} !== undefined && (${(0, fe.or)(this.invalid$data(), t)})`); + } + error(t, r, n) { + if (r) { + this.setParams(r), this._error(t, n), this.setParams({}); + return; + } + this._error(t, n); + } + _error(t, r) { + (t ? Zb.reportExtraError : Zb.reportError)(this, this.def.error, r); + } + $dataError() { + (0, Zb.reportError)(this, this.def.$dataError || Zb.keyword$DataError); + } + reset() { + if (this.errsCount === void 0) throw new Error('add "trackErrors" to keyword definition'); + (0, Zb.resetErrorsCount)(this.gen, this.errsCount); + } + ok(t) { + this.allErrors || this.gen.if(t); + } + setParams(t, r) { + r ? Object.assign(this.params, t) : (this.params = t); + } + block$data(t, r, n = fe.nil) { + this.gen.block(() => { + this.check$data(t, n), r(); + }); + } + check$data(t = fe.nil, r = fe.nil) { + if (!this.$data) return; + let { gen: n, schemaCode: a, schemaType: o, def: s } = this; + n.if((0, fe.or)((0, fe._)`${a} === undefined`, r)), + t !== fe.nil && n.assign(t, !0), + (o.length || s.validateSchema) && + (n.elseIf(this.invalid$data()), this.$dataError(), t !== fe.nil && n.assign(t, !1)), + n.else(); + } + invalid$data() { + let { gen: t, schemaCode: r, schemaType: n, def: a, it: o } = this; + return (0, fe.or)(s(), l()); + function s() { + if (n.length) { + if (!(r instanceof fe.Name)) throw new Error('ajv implementation error'); + let u = Array.isArray(n) ? n : [n]; + return (0, fe._)`${(0, q9.checkDataTypes)(u, r, o.opts.strictNumbers, q9.DataType.Wrong)}`; + } + return fe.nil; + } + function l() { + if (a.validateSchema) { + let u = t.scopeValue('validate$data', { ref: a.validateSchema }); + return (0, fe._)`!${u}(${r})`; + } + return fe.nil; + } + } + subschema(t, r) { + let n = (0, xq.getSubschema)(this.it, t); + (0, xq.extendSubschemaData)(n, this.it, t), (0, xq.extendSubschemaMode)(n, t); + let a = { ...this.it, ...n, items: void 0, props: void 0 }; + return dOt(a, r), a; + } + mergeEvaluated(t, r) { + let { it: n, gen: a } = this; + n.opts.unevaluated && + (n.props !== !0 && t.props !== void 0 && (n.props = cu.mergeEvaluated.props(a, t.props, n.props, r)), + n.items !== !0 && t.items !== void 0 && (n.items = cu.mergeEvaluated.items(a, t.items, n.items, r))); + } + mergeValidEvaluated(t, r) { + let { it: n, gen: a } = this; + if (n.opts.unevaluated && (n.props !== !0 || n.items !== !0)) + return a.if(r, () => this.mergeEvaluated(t, fe.Name)), !0; + } + }; + Wp.KeywordCxt = F9; + function Z5e(e, t, r, n) { + let a = new F9(e, r, t); + 'code' in r + ? r.code(a, n) + : a.$data && r.validate + ? (0, e2.funcKeywordCode)(a, r) + : 'macro' in r + ? (0, e2.macroKeywordCode)(a, r) + : (r.compile || r.validate) && (0, e2.funcKeywordCode)(a, r); + } + var TOt = /^\/(?:[^~]|~0|~1)*$/, + COt = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/; + function e7e(e, { dataLevel: t, dataNames: r, dataPathArr: n }) { + let a, o; + if (e === '') return we.default.rootData; + if (e[0] === '/') { + if (!TOt.test(e)) throw new Error(`Invalid JSON-pointer: ${e}`); + (a = e), (o = we.default.rootData); + } else { + let p = COt.exec(e); + if (!p) throw new Error(`Invalid JSON-pointer: ${e}`); + let c = +p[1]; + if (((a = p[2]), a === '#')) { + if (c >= t) throw new Error(u('property/index', c)); + return n[t - c]; + } + if (c > t) throw new Error(u('data', c)); + if (((o = r[t - c]), !a)) return o; + } + let s = o, + l = a.split('/'); + for (let p of l) + p && ((o = (0, fe._)`${o}${(0, fe.getProperty)((0, cu.unescapeJsonPointer)(p))}`), (s = (0, fe._)`${s} && ${o}`)); + return s; + function u(p, c) { + return `Cannot access ${p} ${c} levels up, current level is ${t}`; + } + } + Wp.getData = e7e; +}); +var L9 = d((kq) => { + 'use strict'; + Object.defineProperty(kq, '__esModule', { value: !0 }); + var Cq = class extends Error { + constructor(t) { + super('validation failed'), (this.errors = t), (this.ajv = this.validation = !0); + } + }; + kq.default = Cq; +}); +var M9 = d((Pq) => { + 'use strict'; + Object.defineProperty(Pq, '__esModule', { value: !0 }); + var Aq = Qb(), + Iq = class extends Error { + constructor(t, r, n, a) { + super(a || `can't resolve reference ${n} from id ${r}`), + (this.missingRef = (0, Aq.resolveUrl)(t, r, n)), + (this.missingSchema = (0, Aq.normalizeId)((0, Aq.getFullPath)(t, this.missingRef))); + } + }; + Pq.default = Iq; +}); +var $9 = d((io) => { + 'use strict'; + Object.defineProperty(io, '__esModule', { value: !0 }); + io.resolveSchema = io.getCompilingSchema = io.resolveRef = io.compileSchema = io.SchemaEnv = void 0; + var Ko = Le(), + kOt = L9(), + mf = pu(), + Xo = Qb(), + t7e = at(), + AOt = t2(), + Bg = class { + constructor(t) { + var r; + (this.refs = {}), (this.dynamicAnchors = {}); + let n; + typeof t.schema == 'object' && (n = t.schema), + (this.schema = t.schema), + (this.schemaId = t.schemaId), + (this.root = t.root || this), + (this.baseId = (r = t.baseId) !== null && r !== void 0 ? r : (0, Xo.normalizeId)(n?.[t.schemaId || '$id'])), + (this.schemaPath = t.schemaPath), + (this.localRefs = t.localRefs), + (this.meta = t.meta), + (this.$async = n?.$async), + (this.refs = {}); + } + }; + io.SchemaEnv = Bg; + function jq(e) { + let t = r7e.call(this, e); + if (t) return t; + let r = (0, Xo.getFullPath)(this.opts.uriResolver, e.root.baseId), + { es5: n, lines: a } = this.opts.code, + { ownProperties: o } = this.opts, + s = new Ko.CodeGen(this.scope, { es5: n, lines: a, ownProperties: o }), + l; + e.$async && + (l = s.scopeValue('Error', { + ref: kOt.default, + code: (0, Ko._)`require("ajv/dist/runtime/validation_error").default`, + })); + let u = s.scopeName('validate'); + e.validateName = u; + let p = { + gen: s, + allErrors: this.opts.allErrors, + data: mf.default.data, + parentData: mf.default.parentData, + parentDataProperty: mf.default.parentDataProperty, + dataNames: [mf.default.data], + dataPathArr: [Ko.nil], + dataLevel: 0, + dataTypes: [], + definedProperties: new Set(), + topSchemaRef: s.scopeValue( + 'schema', + this.opts.code.source === !0 ? { ref: e.schema, code: (0, Ko.stringify)(e.schema) } : { ref: e.schema } + ), + validateName: u, + ValidationError: l, + schema: e.schema, + schemaEnv: e, + rootId: r, + baseId: e.baseId || r, + schemaPath: Ko.nil, + errSchemaPath: e.schemaPath || (this.opts.jtd ? '' : '#'), + errorPath: (0, Ko._)`""`, + opts: this.opts, + self: this, + }, + c; + try { + this._compilations.add(e), (0, AOt.validateFunctionCode)(p), s.optimize(this.opts.code.optimize); + let f = s.toString(); + (c = `${s.scopeRefs(mf.default.scope)}return ${f}`), this.opts.code.process && (c = this.opts.code.process(c, e)); + let m = new Function(`${mf.default.self}`, `${mf.default.scope}`, c)(this, this.scope.get()); + if ( + (this.scope.value(u, { ref: m }), + (m.errors = null), + (m.schema = e.schema), + (m.schemaEnv = e), + e.$async && (m.$async = !0), + this.opts.code.source === !0 && (m.source = { validateName: u, validateCode: f, scopeValues: s._values }), + this.opts.unevaluated) + ) { + let { props: v, items: y } = p; + (m.evaluated = { + props: v instanceof Ko.Name ? void 0 : v, + items: y instanceof Ko.Name ? void 0 : y, + dynamicProps: v instanceof Ko.Name, + dynamicItems: y instanceof Ko.Name, + }), + m.source && (m.source.evaluated = (0, Ko.stringify)(m.evaluated)); + } + return (e.validate = m), e; + } catch (f) { + throw ( + (delete e.validate, + delete e.validateName, + c && this.logger.error('Error compiling schema, function code:', c), + f) + ); + } finally { + this._compilations.delete(e); + } + } + io.compileSchema = jq; + function IOt(e, t, r) { + var n; + r = (0, Xo.resolveUrl)(this.opts.uriResolver, t, r); + let a = e.refs[r]; + if (a) return a; + let o = jOt.call(this, e, r); + if (o === void 0) { + let s = (n = e.localRefs) === null || n === void 0 ? void 0 : n[r], + { schemaId: l } = this.opts; + s && (o = new Bg({ schema: s, schemaId: l, root: e, baseId: t })); + } + if (o !== void 0) return (e.refs[r] = POt.call(this, o)); + } + io.resolveRef = IOt; + function POt(e) { + return (0, Xo.inlineRef)(e.schema, this.opts.inlineRefs) ? e.schema : e.validate ? e : jq.call(this, e); + } + function r7e(e) { + for (let t of this._compilations) if (ROt(t, e)) return t; + } + io.getCompilingSchema = r7e; + function ROt(e, t) { + return e.schema === t.schema && e.root === t.root && e.baseId === t.baseId; + } + function jOt(e, t) { + let r; + for (; typeof (r = this.refs[t]) == 'string'; ) t = r; + return r || this.schemas[t] || U9.call(this, e, t); + } + function U9(e, t) { + let r = this.opts.uriResolver.parse(t), + n = (0, Xo._getFullPath)(this.opts.uriResolver, r), + a = (0, Xo.getFullPath)(this.opts.uriResolver, e.baseId, void 0); + if (Object.keys(e.schema).length > 0 && n === a) return Rq.call(this, r, e); + let o = (0, Xo.normalizeId)(n), + s = this.refs[o] || this.schemas[o]; + if (typeof s == 'string') { + let l = U9.call(this, e, s); + return typeof l?.schema != 'object' ? void 0 : Rq.call(this, r, l); + } + if (typeof s?.schema == 'object') { + if ((s.validate || jq.call(this, s), o === (0, Xo.normalizeId)(t))) { + let { schema: l } = s, + { schemaId: u } = this.opts, + p = l[u]; + return ( + p && (a = (0, Xo.resolveUrl)(this.opts.uriResolver, a, p)), + new Bg({ schema: l, schemaId: u, root: e, baseId: a }) + ); + } + return Rq.call(this, r, s); + } + } + io.resolveSchema = U9; + var DOt = new Set(['properties', 'patternProperties', 'enum', 'dependencies', 'definitions']); + function Rq(e, { baseId: t, schema: r, root: n }) { + var a; + if (((a = e.fragment) === null || a === void 0 ? void 0 : a[0]) !== '/') return; + for (let l of e.fragment.slice(1).split('/')) { + if (typeof r == 'boolean') return; + let u = r[(0, t7e.unescapeFragment)(l)]; + if (u === void 0) return; + r = u; + let p = typeof r == 'object' && r[this.opts.schemaId]; + !DOt.has(l) && p && (t = (0, Xo.resolveUrl)(this.opts.uriResolver, t, p)); + } + let o; + if (typeof r != 'boolean' && r.$ref && !(0, t7e.schemaHasRulesButRef)(r, this.RULES)) { + let l = (0, Xo.resolveUrl)(this.opts.uriResolver, t, r.$ref); + o = U9.call(this, n, l); + } + let { schemaId: s } = this.opts; + if (((o = o || new Bg({ schema: r, schemaId: s, root: n, baseId: t })), o.schema !== o.root.schema)) return o; + } +}); +var i7e = d((cnr, NOt) => { + NOt.exports = { + $id: 'https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#', + description: 'Meta-schema for $data reference (JSON AnySchema extension proposal)', + type: 'object', + required: ['$data'], + properties: { $data: { type: 'string', anyOf: [{ format: 'relative-json-pointer' }, { format: 'json-pointer' }] } }, + additionalProperties: !1, + }; +}); +var a7e = d((B9, n7e) => { + (function (e, t) { + typeof B9 == 'object' && typeof n7e < 'u' + ? t(B9) + : typeof define == 'function' && define.amd + ? define(['exports'], t) + : t((e.URI = e.URI || {})); + })(B9, function (e) { + 'use strict'; + function t() { + for (var q = arguments.length, D = Array(q), L = 0; L < q; L++) D[L] = arguments[L]; + if (D.length > 1) { + D[0] = D[0].slice(0, -1); + for (var $ = D.length - 1, V = 1; V < $; ++V) D[V] = D[V].slice(1, -1); + return (D[$] = D[$].slice(1)), D.join(''); + } else return D[0]; + } + function r(q) { + return '(?:' + q + ')'; + } + function n(q) { + return q === void 0 + ? 'undefined' + : q === null + ? 'null' + : Object.prototype.toString.call(q).split(' ').pop().split(']').shift().toLowerCase(); + } + function a(q) { + return q.toUpperCase(); + } + function o(q) { + return q != null + ? q instanceof Array + ? q + : typeof q.length != 'number' || q.split || q.setInterval || q.call + ? [q] + : Array.prototype.slice.call(q) + : []; + } + function s(q, D) { + var L = q; + if (D) for (var $ in D) L[$] = D[$]; + return L; + } + function l(q) { + var D = '[A-Za-z]', + L = '[\\x0D]', + $ = '[0-9]', + V = '[\\x22]', + ae = t($, '[A-Fa-f]'), + xe = '[\\x0A]', + Te = '[\\x20]', + Ze = r( + r('%[EFef]' + ae + '%' + ae + ae + '%' + ae + ae) + + '|' + + r('%[89A-Fa-f]' + ae + '%' + ae + ae) + + '|' + + r('%' + ae + ae) + ), + Kt = '[\\:\\/\\?\\#\\[\\]\\@]', + Me = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", + Dt = t(Kt, Me), + ar = q ? '[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]' : '[]', + At = q ? '[\\uE000-\\uF8FF]' : '[]', + We = t(D, $, '[\\-\\.\\_\\~]', ar), + ct = r(D + t(D, $, '[\\+\\-\\.]') + '*'), + $e = r(r(Ze + '|' + t(We, Me, '[\\:]')) + '*'), + as = r(r('25[0-5]') + '|' + r('2[0-4]' + $) + '|' + r('1' + $ + $) + '|' + r('[1-9]' + $) + '|' + $), + Ui = r(r('25[0-5]') + '|' + r('2[0-4]' + $) + '|' + r('1' + $ + $) + '|' + r('0?[1-9]' + $) + '|0?0?' + $), + ci = r(Ui + '\\.' + Ui + '\\.' + Ui + '\\.' + Ui), + dt = r(ae + '{1,4}'), + $i = r(r(dt + '\\:' + dt) + '|' + ci), + Bi = r(r(dt + '\\:') + '{6}' + $i), + Yn = r('\\:\\:' + r(dt + '\\:') + '{5}' + $i), + se = r(r(dt) + '?\\:\\:' + r(dt + '\\:') + '{4}' + $i), + On = r(r(r(dt + '\\:') + '{0,1}' + dt) + '?\\:\\:' + r(dt + '\\:') + '{3}' + $i), + Ou = r(r(r(dt + '\\:') + '{0,2}' + dt) + '?\\:\\:' + r(dt + '\\:') + '{2}' + $i), + $f = r(r(r(dt + '\\:') + '{0,3}' + dt) + '?\\:\\:' + dt + '\\:' + $i), + Bf = r(r(r(dt + '\\:') + '{0,4}' + dt) + '?\\:\\:' + $i), + Tu = r(r(r(dt + '\\:') + '{0,5}' + dt) + '?\\:\\:' + dt), + Cu = r(r(r(dt + '\\:') + '{0,6}' + dt) + '?\\:\\:'), + fo = r([Bi, Yn, se, On, Ou, $f, Bf, Tu, Cu].join('|')), + ku = r(r(We + '|' + Ze) + '+'), + D1 = r(fo + '\\%25' + ku), + gl = r(fo + r('\\%25|\\%(?!' + ae + '{2})') + ku), + F7 = r('[vV]' + ae + '+\\.' + t(We, Me, '[\\:]') + '+'), + L7 = r('\\[' + r(gl + '|' + fo + '|' + F7) + '\\]'), + v6 = r(r(Ze + '|' + t(We, Me)) + '*'), + ft = r(L7 + '|' + ci + '(?!' + v6 + ')|' + v6), + st = r($ + '*'), + mo = r(r($e + '@') + '?' + ft + r('\\:' + st) + '?'), + gc = r(Ze + '|' + t(We, Me, '[\\:\\@]')), + y6 = r(gc + '*'), + b6 = r(gc + '+'), + ho = r(r(Ze + '|' + t(We, Me, '[\\@]')) + '+'), + Qn = r(r('\\/' + y6) + '*'), + go = r('\\/' + r(b6 + Qn) + '?'), + Vf = r(ho + Qn), + Au = r(b6 + Qn), + vl = '(?!' + gc + ')', + M7 = r(Qn + '|' + go + '|' + Vf + '|' + Au + '|' + vl), + yl = r(r(gc + '|' + t('[\\/\\?]', At)) + '*'), + vc = r(r(gc + '|[\\/\\?]') + '*'), + Iu = r(r('\\/\\/' + mo + Qn) + '|' + go + '|' + Au + '|' + vl), + N1 = r(ct + '\\:' + Iu + r('\\?' + yl) + '?' + r('\\#' + vc) + '?'), + zf = r(r('\\/\\/' + mo + Qn) + '|' + go + '|' + Vf + '|' + vl), + Ti = r(zf + r('\\?' + yl) + '?' + r('\\#' + vc) + '?'), + U7 = r(N1 + '|' + Ti), + $7 = r(ct + '\\:' + Iu + r('\\?' + yl) + '?'), + hU = + '^(' + + ct + + ')\\:' + + r( + r('\\/\\/(' + r('(' + $e + ')@') + '?(' + ft + ')' + r('\\:(' + st + ')') + '?)') + + '?(' + + Qn + + '|' + + go + + '|' + + Au + + '|' + + vl + + ')' + ) + + r('\\?(' + yl + ')') + + '?' + + r('\\#(' + vc + ')') + + '?$', + gU = + '^(){0}' + + r( + r('\\/\\/(' + r('(' + $e + ')@') + '?(' + ft + ')' + r('\\:(' + st + ')') + '?)') + + '?(' + + Qn + + '|' + + go + + '|' + + Vf + + '|' + + vl + + ')' + ) + + r('\\?(' + yl + ')') + + '?' + + r('\\#(' + vc + ')') + + '?$', + q1 = + '^(' + + ct + + ')\\:' + + r( + r('\\/\\/(' + r('(' + $e + ')@') + '?(' + ft + ')' + r('\\:(' + st + ')') + '?)') + + '?(' + + Qn + + '|' + + go + + '|' + + Au + + '|' + + vl + + ')' + ) + + r('\\?(' + yl + ')') + + '?$', + yc = '^' + r('\\#(' + vc + ')') + '?$', + F1 = '^' + r('(' + $e + ')@') + '?(' + ft + ')' + r('\\:(' + st + ')') + '?$'; + return { + NOT_SCHEME: new RegExp(t('[^]', D, $, '[\\+\\-\\.]'), 'g'), + NOT_USERINFO: new RegExp(t('[^\\%\\:]', We, Me), 'g'), + NOT_HOST: new RegExp(t('[^\\%\\[\\]\\:]', We, Me), 'g'), + NOT_PATH: new RegExp(t('[^\\%\\/\\:\\@]', We, Me), 'g'), + NOT_PATH_NOSCHEME: new RegExp(t('[^\\%\\/\\@]', We, Me), 'g'), + NOT_QUERY: new RegExp(t('[^\\%]', We, Me, '[\\:\\@\\/\\?]', At), 'g'), + NOT_FRAGMENT: new RegExp(t('[^\\%]', We, Me, '[\\:\\@\\/\\?]'), 'g'), + ESCAPE: new RegExp(t('[^]', We, Me), 'g'), + UNRESERVED: new RegExp(We, 'g'), + OTHER_CHARS: new RegExp(t('[^\\%]', We, Dt), 'g'), + PCT_ENCODED: new RegExp(Ze, 'g'), + IPV4ADDRESS: new RegExp('^(' + ci + ')$'), + IPV6ADDRESS: new RegExp('^\\[?(' + fo + ')' + r(r('\\%25|\\%(?!' + ae + '{2})') + '(' + ku + ')') + '?\\]?$'), + }; + } + var u = l(!1), + p = l(!0), + c = (function () { + function q(D, L) { + var $ = [], + V = !0, + ae = !1, + xe = void 0; + try { + for ( + var Te = D[Symbol.iterator](), Ze; + !(V = (Ze = Te.next()).done) && ($.push(Ze.value), !(L && $.length === L)); + V = !0 + ); + } catch (Kt) { + (ae = !0), (xe = Kt); + } finally { + try { + !V && Te.return && Te.return(); + } finally { + if (ae) throw xe; + } + } + return $; + } + return function (D, L) { + if (Array.isArray(D)) return D; + if (Symbol.iterator in Object(D)) return q(D, L); + throw new TypeError('Invalid attempt to destructure non-iterable instance'); + }; + })(), + f = function (q) { + if (Array.isArray(q)) { + for (var D = 0, L = Array(q.length); D < q.length; D++) L[D] = q[D]; + return L; + } else return Array.from(q); + }, + h = 2147483647, + m = 36, + v = 1, + y = 26, + S = 38, + w = 700, + O = 72, + x = 128, + _ = '-', + b = /^xn--/, + T = /[^\0-\x7E]/, + R = /[\x2E\u3002\uFF0E\uFF61]/g, + C = { + overflow: 'Overflow: input needs wider integers to process', + 'not-basic': 'Illegal input >= 0x80 (not a basic code point)', + 'invalid-input': 'Invalid input', + }, + N = m - v, + A = Math.floor, + j = String.fromCharCode; + function U(q) { + throw new RangeError(C[q]); + } + function z(q, D) { + for (var L = [], $ = q.length; $--; ) L[$] = D(q[$]); + return L; + } + function K(q, D) { + var L = q.split('@'), + $ = ''; + L.length > 1 && (($ = L[0] + '@'), (q = L[1])), (q = q.replace(R, '.')); + var V = q.split('.'), + ae = z(V, D).join('.'); + return $ + ae; + } + function te(q) { + for (var D = [], L = 0, $ = q.length; L < $; ) { + var V = q.charCodeAt(L++); + if (V >= 55296 && V <= 56319 && L < $) { + var ae = q.charCodeAt(L++); + (ae & 64512) == 56320 ? D.push(((V & 1023) << 10) + (ae & 1023) + 65536) : (D.push(V), L--); + } else D.push(V); + } + return D; + } + var J = function (D) { + return String.fromCodePoint.apply(String, f(D)); + }, + ie = function (D) { + return D - 48 < 10 ? D - 22 : D - 65 < 26 ? D - 65 : D - 97 < 26 ? D - 97 : m; + }, + oe = function (D, L) { + return D + 22 + 75 * (D < 26) - ((L != 0) << 5); + }, + he = function (D, L, $) { + var V = 0; + for (D = $ ? A(D / w) : D >> 1, D += A(D / L); D > (N * y) >> 1; V += m) D = A(D / N); + return A(V + ((N + 1) * D) / (D + S)); + }, + hr = function (D) { + var L = [], + $ = D.length, + V = 0, + ae = x, + xe = O, + Te = D.lastIndexOf(_); + Te < 0 && (Te = 0); + for (var Ze = 0; Ze < Te; ++Ze) D.charCodeAt(Ze) >= 128 && U('not-basic'), L.push(D.charCodeAt(Ze)); + for (var Kt = Te > 0 ? Te + 1 : 0; Kt < $; ) { + for (var Me = V, Dt = 1, ar = m; ; ar += m) { + Kt >= $ && U('invalid-input'); + var At = ie(D.charCodeAt(Kt++)); + (At >= m || At > A((h - V) / Dt)) && U('overflow'), (V += At * Dt); + var We = ar <= xe ? v : ar >= xe + y ? y : ar - xe; + if (At < We) break; + var ct = m - We; + Dt > A(h / ct) && U('overflow'), (Dt *= ct); + } + var $e = L.length + 1; + (xe = he(V - Me, $e, Me == 0)), + A(V / $e) > h - ae && U('overflow'), + (ae += A(V / $e)), + (V %= $e), + L.splice(V++, 0, ae); + } + return String.fromCodePoint.apply(String, L); + }, + xr = function (D) { + var L = []; + D = te(D); + var $ = D.length, + V = x, + ae = 0, + xe = O, + Te = !0, + Ze = !1, + Kt = void 0; + try { + for (var Me = D[Symbol.iterator](), Dt; !(Te = (Dt = Me.next()).done); Te = !0) { + var ar = Dt.value; + ar < 128 && L.push(j(ar)); + } + } catch (gl) { + (Ze = !0), (Kt = gl); + } finally { + try { + !Te && Me.return && Me.return(); + } finally { + if (Ze) throw Kt; + } + } + var At = L.length, + We = At; + for (At && L.push(_); We < $; ) { + var ct = h, + $e = !0, + as = !1, + Ui = void 0; + try { + for (var ci = D[Symbol.iterator](), dt; !($e = (dt = ci.next()).done); $e = !0) { + var $i = dt.value; + $i >= V && $i < ct && (ct = $i); + } + } catch (gl) { + (as = !0), (Ui = gl); + } finally { + try { + !$e && ci.return && ci.return(); + } finally { + if (as) throw Ui; + } + } + var Bi = We + 1; + ct - V > A((h - ae) / Bi) && U('overflow'), (ae += (ct - V) * Bi), (V = ct); + var Yn = !0, + se = !1, + On = void 0; + try { + for (var Ou = D[Symbol.iterator](), $f; !(Yn = ($f = Ou.next()).done); Yn = !0) { + var Bf = $f.value; + if ((Bf < V && ++ae > h && U('overflow'), Bf == V)) { + for (var Tu = ae, Cu = m; ; Cu += m) { + var fo = Cu <= xe ? v : Cu >= xe + y ? y : Cu - xe; + if (Tu < fo) break; + var ku = Tu - fo, + D1 = m - fo; + L.push(j(oe(fo + (ku % D1), 0))), (Tu = A(ku / D1)); + } + L.push(j(oe(Tu, 0))), (xe = he(ae, Bi, We == At)), (ae = 0), ++We; + } + } + } catch (gl) { + (se = !0), (On = gl); + } finally { + try { + !Yn && Ou.return && Ou.return(); + } finally { + if (se) throw On; + } + } + ++ae, ++V; + } + return L.join(''); + }, + Mi = function (D) { + return K(D, function (L) { + return b.test(L) ? hr(L.slice(4).toLowerCase()) : L; + }); + }, + Oa = function (D) { + return K(D, function (L) { + return T.test(L) ? 'xn--' + xr(L) : L; + }); + }, + Se = { version: '2.1.0', ucs2: { decode: te, encode: J }, decode: hr, encode: xr, toASCII: Oa, toUnicode: Mi }, + Or = {}; + function P(q) { + var D = q.charCodeAt(0), + L = void 0; + return ( + D < 16 + ? (L = '%0' + D.toString(16).toUpperCase()) + : D < 128 + ? (L = '%' + D.toString(16).toUpperCase()) + : D < 2048 + ? (L = '%' + ((D >> 6) | 192).toString(16).toUpperCase() + '%' + ((D & 63) | 128).toString(16).toUpperCase()) + : (L = + '%' + + ((D >> 12) | 224).toString(16).toUpperCase() + + '%' + + (((D >> 6) & 63) | 128).toString(16).toUpperCase() + + '%' + + ((D & 63) | 128).toString(16).toUpperCase()), + L + ); + } + function k(q) { + for (var D = '', L = 0, $ = q.length; L < $; ) { + var V = parseInt(q.substr(L + 1, 2), 16); + if (V < 128) (D += String.fromCharCode(V)), (L += 3); + else if (V >= 194 && V < 224) { + if ($ - L >= 6) { + var ae = parseInt(q.substr(L + 4, 2), 16); + D += String.fromCharCode(((V & 31) << 6) | (ae & 63)); + } else D += q.substr(L, 6); + L += 6; + } else if (V >= 224) { + if ($ - L >= 9) { + var xe = parseInt(q.substr(L + 4, 2), 16), + Te = parseInt(q.substr(L + 7, 2), 16); + D += String.fromCharCode(((V & 15) << 12) | ((xe & 63) << 6) | (Te & 63)); + } else D += q.substr(L, 9); + L += 9; + } else (D += q.substr(L, 3)), (L += 3); + } + return D; + } + function G(q, D) { + function L($) { + var V = k($); + return V.match(D.UNRESERVED) ? V : $; + } + return ( + q.scheme && (q.scheme = String(q.scheme).replace(D.PCT_ENCODED, L).toLowerCase().replace(D.NOT_SCHEME, '')), + q.userinfo !== void 0 && + (q.userinfo = String(q.userinfo) + .replace(D.PCT_ENCODED, L) + .replace(D.NOT_USERINFO, P) + .replace(D.PCT_ENCODED, a)), + q.host !== void 0 && + (q.host = String(q.host) + .replace(D.PCT_ENCODED, L) + .toLowerCase() + .replace(D.NOT_HOST, P) + .replace(D.PCT_ENCODED, a)), + q.path !== void 0 && + (q.path = String(q.path) + .replace(D.PCT_ENCODED, L) + .replace(q.scheme ? D.NOT_PATH : D.NOT_PATH_NOSCHEME, P) + .replace(D.PCT_ENCODED, a)), + q.query !== void 0 && + (q.query = String(q.query).replace(D.PCT_ENCODED, L).replace(D.NOT_QUERY, P).replace(D.PCT_ENCODED, a)), + q.fragment !== void 0 && + (q.fragment = String(q.fragment) + .replace(D.PCT_ENCODED, L) + .replace(D.NOT_FRAGMENT, P) + .replace(D.PCT_ENCODED, a)), + q + ); + } + function M(q) { + return q.replace(/^0*(.*)/, '$1') || '0'; + } + function Ae(q, D) { + var L = q.match(D.IPV4ADDRESS) || [], + $ = c(L, 2), + V = $[1]; + return V ? V.split('.').map(M).join('.') : q; + } + function ht(q, D) { + var L = q.match(D.IPV6ADDRESS) || [], + $ = c(L, 3), + V = $[1], + ae = $[2]; + if (V) { + for ( + var xe = V.toLowerCase().split('::').reverse(), + Te = c(xe, 2), + Ze = Te[0], + Kt = Te[1], + Me = Kt ? Kt.split(':').map(M) : [], + Dt = Ze.split(':').map(M), + ar = D.IPV4ADDRESS.test(Dt[Dt.length - 1]), + At = ar ? 7 : 8, + We = Dt.length - At, + ct = Array(At), + $e = 0; + $e < At; + ++$e + ) + ct[$e] = Me[$e] || Dt[We + $e] || ''; + ar && (ct[At - 1] = Ae(ct[At - 1], D)); + var as = ct.reduce(function (Bi, Yn, se) { + if (!Yn || Yn === '0') { + var On = Bi[Bi.length - 1]; + On && On.index + On.length === se ? On.length++ : Bi.push({ index: se, length: 1 }); + } + return Bi; + }, []), + Ui = as.sort(function (Bi, Yn) { + return Yn.length - Bi.length; + })[0], + ci = void 0; + if (Ui && Ui.length > 1) { + var dt = ct.slice(0, Ui.index), + $i = ct.slice(Ui.index + Ui.length); + ci = dt.join(':') + '::' + $i.join(':'); + } else ci = ct.join(':'); + return ae && (ci += '%' + ae), ci; + } else return q; + } + var wt = + /^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i, + nr = ''.match(/(){0}/)[1] === void 0; + function kt(q) { + var D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, + L = {}, + $ = D.iri !== !1 ? p : u; + D.reference === 'suffix' && (q = (D.scheme ? D.scheme + ':' : '') + '//' + q); + var V = q.match(wt); + if (V) { + nr + ? ((L.scheme = V[1]), + (L.userinfo = V[3]), + (L.host = V[4]), + (L.port = parseInt(V[5], 10)), + (L.path = V[6] || ''), + (L.query = V[7]), + (L.fragment = V[8]), + isNaN(L.port) && (L.port = V[5])) + : ((L.scheme = V[1] || void 0), + (L.userinfo = q.indexOf('@') !== -1 ? V[3] : void 0), + (L.host = q.indexOf('//') !== -1 ? V[4] : void 0), + (L.port = parseInt(V[5], 10)), + (L.path = V[6] || ''), + (L.query = q.indexOf('?') !== -1 ? V[7] : void 0), + (L.fragment = q.indexOf('#') !== -1 ? V[8] : void 0), + isNaN(L.port) && (L.port = q.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/) ? V[4] : void 0)), + L.host && (L.host = ht(Ae(L.host, $), $)), + L.scheme === void 0 && + L.userinfo === void 0 && + L.host === void 0 && + L.port === void 0 && + !L.path && + L.query === void 0 + ? (L.reference = 'same-document') + : L.scheme === void 0 + ? (L.reference = 'relative') + : L.fragment === void 0 + ? (L.reference = 'absolute') + : (L.reference = 'uri'), + D.reference && + D.reference !== 'suffix' && + D.reference !== L.reference && + (L.error = L.error || 'URI is not a ' + D.reference + ' reference.'); + var ae = Or[(D.scheme || L.scheme || '').toLowerCase()]; + if (!D.unicodeSupport && (!ae || !ae.unicodeSupport)) { + if (L.host && (D.domainHost || (ae && ae.domainHost))) + try { + L.host = Se.toASCII(L.host.replace($.PCT_ENCODED, k).toLowerCase()); + } catch (xe) { + L.error = L.error || "Host's domain name can not be converted to ASCII via punycode: " + xe; + } + G(L, u); + } else G(L, $); + ae && ae.parse && ae.parse(L, D); + } else L.error = L.error || 'URI can not be parsed.'; + return L; + } + function Oi(q, D) { + var L = D.iri !== !1 ? p : u, + $ = []; + return ( + q.userinfo !== void 0 && ($.push(q.userinfo), $.push('@')), + q.host !== void 0 && + $.push( + ht(Ae(String(q.host), L), L).replace(L.IPV6ADDRESS, function (V, ae, xe) { + return '[' + ae + (xe ? '%25' + xe : '') + ']'; + }) + ), + (typeof q.port == 'number' || typeof q.port == 'string') && ($.push(':'), $.push(String(q.port))), + $.length ? $.join('') : void 0 + ); + } + var bt = /^\.\.?\//, + Yr = /^\/\.(\/|$)/, + Ta = /^\/\.\.(\/|$)/, + pl = /^\/?(?:.|\n)*?(?=\/|$)/; + function Qr(q) { + for (var D = []; q.length; ) + if (q.match(bt)) q = q.replace(bt, ''); + else if (q.match(Yr)) q = q.replace(Yr, '/'); + else if (q.match(Ta)) (q = q.replace(Ta, '/')), D.pop(); + else if (q === '.' || q === '..') q = ''; + else { + var L = q.match(pl); + if (L) { + var $ = L[0]; + (q = q.slice($.length)), D.push($); + } else throw new Error('Unexpected dot segment condition'); + } + return D.join(''); + } + function Zr(q) { + var D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, + L = D.iri ? p : u, + $ = [], + V = Or[(D.scheme || q.scheme || '').toLowerCase()]; + if ((V && V.serialize && V.serialize(q, D), q.host && !L.IPV6ADDRESS.test(q.host))) { + if (D.domainHost || (V && V.domainHost)) + try { + q.host = D.iri ? Se.toUnicode(q.host) : Se.toASCII(q.host.replace(L.PCT_ENCODED, k).toLowerCase()); + } catch (Te) { + q.error = + q.error || + "Host's domain name can not be converted to " + (D.iri ? 'Unicode' : 'ASCII') + ' via punycode: ' + Te; + } + } + G(q, L), D.reference !== 'suffix' && q.scheme && ($.push(q.scheme), $.push(':')); + var ae = Oi(q, D); + if ( + (ae !== void 0 && + (D.reference !== 'suffix' && $.push('//'), $.push(ae), q.path && q.path.charAt(0) !== '/' && $.push('/')), + q.path !== void 0) + ) { + var xe = q.path; + !D.absolutePath && (!V || !V.absolutePath) && (xe = Qr(xe)), + ae === void 0 && (xe = xe.replace(/^\/\//, '/%2F')), + $.push(xe); + } + return ( + q.query !== void 0 && ($.push('?'), $.push(q.query)), + q.fragment !== void 0 && ($.push('#'), $.push(q.fragment)), + $.join('') + ); + } + function cc(q, D) { + var L = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, + $ = arguments[3], + V = {}; + return ( + $ || ((q = kt(Zr(q, L), L)), (D = kt(Zr(D, L), L))), + (L = L || {}), + !L.tolerant && D.scheme + ? ((V.scheme = D.scheme), + (V.userinfo = D.userinfo), + (V.host = D.host), + (V.port = D.port), + (V.path = Qr(D.path || '')), + (V.query = D.query)) + : (D.userinfo !== void 0 || D.host !== void 0 || D.port !== void 0 + ? ((V.userinfo = D.userinfo), + (V.host = D.host), + (V.port = D.port), + (V.path = Qr(D.path || '')), + (V.query = D.query)) + : (D.path + ? (D.path.charAt(0) === '/' + ? (V.path = Qr(D.path)) + : ((q.userinfo !== void 0 || q.host !== void 0 || q.port !== void 0) && !q.path + ? (V.path = '/' + D.path) + : q.path + ? (V.path = q.path.slice(0, q.path.lastIndexOf('/') + 1) + D.path) + : (V.path = D.path), + (V.path = Qr(V.path))), + (V.query = D.query)) + : ((V.path = q.path), D.query !== void 0 ? (V.query = D.query) : (V.query = q.query)), + (V.userinfo = q.userinfo), + (V.host = q.host), + (V.port = q.port)), + (V.scheme = q.scheme)), + (V.fragment = D.fragment), + V + ); + } + function ns(q, D, L) { + var $ = s({ scheme: 'null' }, L); + return Zr(cc(kt(q, $), kt(D, $), $, !0), $); + } + function dc(q, D) { + return typeof q == 'string' ? (q = Zr(kt(q, D), D)) : n(q) === 'object' && (q = kt(Zr(q, D), D)), q; + } + function R7(q, D, L) { + return ( + typeof q == 'string' ? (q = Zr(kt(q, L), L)) : n(q) === 'object' && (q = Zr(q, L)), + typeof D == 'string' ? (D = Zr(kt(D, L), L)) : n(D) === 'object' && (D = Zr(D, L)), + q === D + ); + } + function j7(q, D) { + return q && q.toString().replace(!D || !D.iri ? u.ESCAPE : p.ESCAPE, P); + } + function Ca(q, D) { + return q && q.toString().replace(!D || !D.iri ? u.PCT_ENCODED : p.PCT_ENCODED, k); + } + var fc = { + scheme: 'http', + domainHost: !0, + parse: function (D, L) { + return D.host || (D.error = D.error || 'HTTP URIs must have a host.'), D; + }, + serialize: function (D, L) { + var $ = String(D.scheme).toLowerCase() === 'https'; + return (D.port === ($ ? 443 : 80) || D.port === '') && (D.port = void 0), D.path || (D.path = '/'), D; + }, + }, + Lf = { scheme: 'https', domainHost: fc.domainHost, parse: fc.parse, serialize: fc.serialize }; + function I1(q) { + return typeof q.secure == 'boolean' ? q.secure : String(q.scheme).toLowerCase() === 'wss'; + } + var ka = { + scheme: 'ws', + domainHost: !0, + parse: function (D, L) { + var $ = D; + return ( + ($.secure = I1($)), + ($.resourceName = ($.path || '/') + ($.query ? '?' + $.query : '')), + ($.path = void 0), + ($.query = void 0), + $ + ); + }, + serialize: function (D, L) { + if ( + ((D.port === (I1(D) ? 443 : 80) || D.port === '') && (D.port = void 0), + typeof D.secure == 'boolean' && ((D.scheme = D.secure ? 'wss' : 'ws'), (D.secure = void 0)), + D.resourceName) + ) { + var $ = D.resourceName.split('?'), + V = c($, 2), + ae = V[0], + xe = V[1]; + (D.path = ae && ae !== '/' ? ae : void 0), (D.query = xe), (D.resourceName = void 0); + } + return (D.fragment = void 0), D; + }, + }, + mc = { scheme: 'wss', domainHost: ka.domainHost, parse: ka.parse, serialize: ka.serialize }, + D7 = {}, + cl = !0, + m6 = + '[A-Za-z0-9\\-\\.\\_\\~' + + (cl ? '\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF' : '') + + ']', + Jn = '[0-9A-Fa-f]', + N7 = r( + r('%[EFef]' + Jn + '%' + Jn + Jn + '%' + Jn + Jn) + + '|' + + r('%[89A-Fa-f]' + Jn + '%' + Jn + Jn) + + '|' + + r('%' + Jn + Jn) + ), + q7 = "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]", + Mf = "[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]", + Z = t(Mf, '[\\"\\\\]'), + P1 = "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]", + R1 = new RegExp(m6, 'g'), + dl = new RegExp(N7, 'g'), + h6 = new RegExp(t('[^]', q7, '[\\.]', '[\\"]', Z), 'g'), + fl = new RegExp(t('[^]', m6, P1), 'g'), + ml = fl; + function Uf(q) { + var D = k(q); + return D.match(R1) ? D : q; + } + var j1 = { + scheme: 'mailto', + parse: function (D, L) { + var $ = D, + V = ($.to = $.path ? $.path.split(',') : []); + if ((($.path = void 0), $.query)) { + for (var ae = !1, xe = {}, Te = $.query.split('&'), Ze = 0, Kt = Te.length; Ze < Kt; ++Ze) { + var Me = Te[Ze].split('='); + switch (Me[0]) { + case 'to': + for (var Dt = Me[1].split(','), ar = 0, At = Dt.length; ar < At; ++ar) V.push(Dt[ar]); + break; + case 'subject': + $.subject = Ca(Me[1], L); + break; + case 'body': + $.body = Ca(Me[1], L); + break; + default: + (ae = !0), (xe[Ca(Me[0], L)] = Ca(Me[1], L)); + break; + } + } + ae && ($.headers = xe); + } + $.query = void 0; + for (var We = 0, ct = V.length; We < ct; ++We) { + var $e = V[We].split('@'); + if ((($e[0] = Ca($e[0])), L.unicodeSupport)) $e[1] = Ca($e[1], L).toLowerCase(); + else + try { + $e[1] = Se.toASCII(Ca($e[1], L).toLowerCase()); + } catch (as) { + $.error = $.error || "Email address's domain name can not be converted to ASCII via punycode: " + as; + } + V[We] = $e.join('@'); + } + return $; + }, + serialize: function (D, L) { + var $ = D, + V = o(D.to); + if (V) { + for (var ae = 0, xe = V.length; ae < xe; ++ae) { + var Te = String(V[ae]), + Ze = Te.lastIndexOf('@'), + Kt = Te.slice(0, Ze).replace(dl, Uf).replace(dl, a).replace(h6, P), + Me = Te.slice(Ze + 1); + try { + Me = L.iri ? Se.toUnicode(Me) : Se.toASCII(Ca(Me, L).toLowerCase()); + } catch (We) { + $.error = + $.error || + "Email address's domain name can not be converted to " + + (L.iri ? 'Unicode' : 'ASCII') + + ' via punycode: ' + + We; + } + V[ae] = Kt + '@' + Me; + } + $.path = V.join(','); + } + var Dt = (D.headers = D.headers || {}); + D.subject && (Dt.subject = D.subject), D.body && (Dt.body = D.body); + var ar = []; + for (var At in Dt) + Dt[At] !== D7[At] && + ar.push( + At.replace(dl, Uf).replace(dl, a).replace(fl, P) + + '=' + + Dt[At].replace(dl, Uf).replace(dl, a).replace(ml, P) + ); + return ar.length && ($.query = ar.join('&')), $; + }, + }, + g6 = /^([^\:]+)\:(.*)/, + hc = { + scheme: 'urn', + parse: function (D, L) { + var $ = D.path && D.path.match(g6), + V = D; + if ($) { + var ae = L.scheme || V.scheme || 'urn', + xe = $[1].toLowerCase(), + Te = $[2], + Ze = ae + ':' + (L.nid || xe), + Kt = Or[Ze]; + (V.nid = xe), (V.nss = Te), (V.path = void 0), Kt && (V = Kt.parse(V, L)); + } else V.error = V.error || 'URN can not be parsed.'; + return V; + }, + serialize: function (D, L) { + var $ = L.scheme || D.scheme || 'urn', + V = D.nid, + ae = $ + ':' + (L.nid || V), + xe = Or[ae]; + xe && (D = xe.serialize(D, L)); + var Te = D, + Ze = D.nss; + return (Te.path = (V || L.nid) + ':' + Ze), Te; + }, + }, + hl = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/, + co = { + scheme: 'urn:uuid', + parse: function (D, L) { + var $ = D; + return ( + ($.uuid = $.nss), + ($.nss = void 0), + !L.tolerant && (!$.uuid || !$.uuid.match(hl)) && ($.error = $.error || 'UUID is not valid.'), + $ + ); + }, + serialize: function (D, L) { + var $ = D; + return ($.nss = (D.uuid || '').toLowerCase()), $; + }, + }; + (Or[fc.scheme] = fc), + (Or[Lf.scheme] = Lf), + (Or[ka.scheme] = ka), + (Or[mc.scheme] = mc), + (Or[j1.scheme] = j1), + (Or[hc.scheme] = hc), + (Or[co.scheme] = co), + (e.SCHEMES = Or), + (e.pctEncChar = P), + (e.pctDecChars = k), + (e.parse = kt), + (e.removeDotSegments = Qr), + (e.serialize = Zr), + (e.resolveComponents = cc), + (e.resolve = ns), + (e.normalize = dc), + (e.equal = R7), + (e.escapeComponent = j7), + (e.unescapeComponent = Ca), + Object.defineProperty(e, '__esModule', { value: !0 }); + }); +}); +var s7e = d((Dq) => { + 'use strict'; + Object.defineProperty(Dq, '__esModule', { value: !0 }); + var o7e = a7e(); + o7e.code = 'require("ajv/dist/runtime/uri").default'; + Dq.default = o7e; +}); +var h7e = d((Di) => { + 'use strict'; + Object.defineProperty(Di, '__esModule', { value: !0 }); + Di.CodeGen = Di.Name = Di.nil = Di.stringify = Di.str = Di._ = Di.KeywordCxt = void 0; + var qOt = t2(); + Object.defineProperty(Di, 'KeywordCxt', { + enumerable: !0, + get: function () { + return qOt.KeywordCxt; + }, + }); + var Vg = Le(); + Object.defineProperty(Di, '_', { + enumerable: !0, + get: function () { + return Vg._; + }, + }); + Object.defineProperty(Di, 'str', { + enumerable: !0, + get: function () { + return Vg.str; + }, + }); + Object.defineProperty(Di, 'stringify', { + enumerable: !0, + get: function () { + return Vg.stringify; + }, + }); + Object.defineProperty(Di, 'nil', { + enumerable: !0, + get: function () { + return Vg.nil; + }, + }); + Object.defineProperty(Di, 'Name', { + enumerable: !0, + get: function () { + return Vg.Name; + }, + }); + Object.defineProperty(Di, 'CodeGen', { + enumerable: !0, + get: function () { + return Vg.CodeGen; + }, + }); + var FOt = L9(), + d7e = M9(), + LOt = mq(), + r2 = $9(), + MOt = Le(), + i2 = Qb(), + V9 = Yb(), + qq = at(), + l7e = i7e(), + UOt = s7e(), + f7e = (e, t) => new RegExp(e, t); + f7e.code = 'new RegExp'; + var $Ot = ['removeAdditional', 'useDefaults', 'coerceTypes'], + BOt = new Set([ + 'validate', + 'serialize', + 'parse', + 'wrapper', + 'root', + 'schema', + 'keyword', + 'pattern', + 'formats', + 'validate$data', + 'func', + 'obj', + 'Error', + ]), + VOt = { + errorDataPath: '', + format: '`validateFormats: false` can be used instead.', + nullable: '"nullable" keyword is supported by default.', + jsonPointers: 'Deprecated jsPropertySyntax can be used instead.', + extendRefs: 'Deprecated ignoreKeywordsWithRef can be used instead.', + missingRefs: 'Pass empty schema with $id that should be ignored to ajv.addSchema.', + processCode: 'Use option `code: {process: (code, schemaEnv: object) => string}`', + sourceCode: 'Use option `code: {source: true}`', + strictDefaults: 'It is default now, see option `strict`.', + strictKeywords: 'It is default now, see option `strict`.', + uniqueItems: '"uniqueItems" keyword is always validated.', + unknownFormats: 'Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).', + cache: 'Map is used as cache, schema object as key.', + serialize: 'Map is used as cache, schema object as key.', + ajvErrors: 'It is default now.', + }, + zOt = { + ignoreKeywordsWithRef: '', + jsPropertySyntax: '', + unicode: '"minLength"/"maxLength" account for unicode characters by default.', + }, + u7e = 200; + function HOt(e) { + var t, r, n, a, o, s, l, u, p, c, f, h, m, v, y, S, w, O, x, _, b, T, R, C, N; + let A = e.strict, + j = (t = e.code) === null || t === void 0 ? void 0 : t.optimize, + U = j === !0 || j === void 0 ? 1 : j || 0, + z = (n = (r = e.code) === null || r === void 0 ? void 0 : r.regExp) !== null && n !== void 0 ? n : f7e, + K = (a = e.uriResolver) !== null && a !== void 0 ? a : UOt.default; + return { + strictSchema: (s = (o = e.strictSchema) !== null && o !== void 0 ? o : A) !== null && s !== void 0 ? s : !0, + strictNumbers: (u = (l = e.strictNumbers) !== null && l !== void 0 ? l : A) !== null && u !== void 0 ? u : !0, + strictTypes: (c = (p = e.strictTypes) !== null && p !== void 0 ? p : A) !== null && c !== void 0 ? c : 'log', + strictTuples: (h = (f = e.strictTuples) !== null && f !== void 0 ? f : A) !== null && h !== void 0 ? h : 'log', + strictRequired: (v = (m = e.strictRequired) !== null && m !== void 0 ? m : A) !== null && v !== void 0 ? v : !1, + code: e.code ? { ...e.code, optimize: U, regExp: z } : { optimize: U, regExp: z }, + loopRequired: (y = e.loopRequired) !== null && y !== void 0 ? y : u7e, + loopEnum: (S = e.loopEnum) !== null && S !== void 0 ? S : u7e, + meta: (w = e.meta) !== null && w !== void 0 ? w : !0, + messages: (O = e.messages) !== null && O !== void 0 ? O : !0, + inlineRefs: (x = e.inlineRefs) !== null && x !== void 0 ? x : !0, + schemaId: (_ = e.schemaId) !== null && _ !== void 0 ? _ : '$id', + addUsedSchema: (b = e.addUsedSchema) !== null && b !== void 0 ? b : !0, + validateSchema: (T = e.validateSchema) !== null && T !== void 0 ? T : !0, + validateFormats: (R = e.validateFormats) !== null && R !== void 0 ? R : !0, + unicodeRegExp: (C = e.unicodeRegExp) !== null && C !== void 0 ? C : !0, + int32range: (N = e.int32range) !== null && N !== void 0 ? N : !0, + uriResolver: K, + }; + } + var n2 = class { + constructor(t = {}) { + (this.schemas = {}), + (this.refs = {}), + (this.formats = {}), + (this._compilations = new Set()), + (this._loading = {}), + (this._cache = new Map()), + (t = this.opts = { ...t, ...HOt(t) }); + let { es5: r, lines: n } = this.opts.code; + (this.scope = new MOt.ValueScope({ scope: {}, prefixes: BOt, es5: r, lines: n })), (this.logger = YOt(t.logger)); + let a = t.validateFormats; + (t.validateFormats = !1), + (this.RULES = (0, LOt.getRules)()), + p7e.call(this, VOt, t, 'NOT SUPPORTED'), + p7e.call(this, zOt, t, 'DEPRECATED', 'warn'), + (this._metaOpts = XOt.call(this)), + t.formats && WOt.call(this), + this._addVocabularies(), + this._addDefaultMetaSchema(), + t.keywords && KOt.call(this, t.keywords), + typeof t.meta == 'object' && this.addMetaSchema(t.meta), + GOt.call(this), + (t.validateFormats = a); + } + _addVocabularies() { + this.addKeyword('$async'); + } + _addDefaultMetaSchema() { + let { $data: t, meta: r, schemaId: n } = this.opts, + a = l7e; + n === 'id' && ((a = { ...l7e }), (a.id = a.$id), delete a.$id), r && t && this.addMetaSchema(a, a[n], !1); + } + defaultMeta() { + let { meta: t, schemaId: r } = this.opts; + return (this.opts.defaultMeta = typeof t == 'object' ? t[r] || t : void 0); + } + validate(t, r) { + let n; + if (typeof t == 'string') { + if (((n = this.getSchema(t)), !n)) throw new Error(`no schema with key or ref "${t}"`); + } else n = this.compile(t); + let a = n(r); + return '$async' in n || (this.errors = n.errors), a; + } + compile(t, r) { + let n = this._addSchema(t, r); + return n.validate || this._compileSchemaEnv(n); + } + compileAsync(t, r) { + if (typeof this.opts.loadSchema != 'function') throw new Error('options.loadSchema should be a function'); + let { loadSchema: n } = this.opts; + return a.call(this, t, r); + async function a(c, f) { + await o.call(this, c.$schema); + let h = this._addSchema(c, f); + return h.validate || s.call(this, h); + } + async function o(c) { + c && !this.getSchema(c) && (await a.call(this, { $ref: c }, !0)); + } + async function s(c) { + try { + return this._compileSchemaEnv(c); + } catch (f) { + if (!(f instanceof d7e.default)) throw f; + return l.call(this, f), await u.call(this, f.missingSchema), s.call(this, c); + } + } + function l({ missingSchema: c, missingRef: f }) { + if (this.refs[c]) throw new Error(`AnySchema ${c} is loaded but ${f} cannot be resolved`); + } + async function u(c) { + let f = await p.call(this, c); + this.refs[c] || (await o.call(this, f.$schema)), this.refs[c] || this.addSchema(f, c, r); + } + async function p(c) { + let f = this._loading[c]; + if (f) return f; + try { + return await (this._loading[c] = n(c)); + } finally { + delete this._loading[c]; + } + } + } + addSchema(t, r, n, a = this.opts.validateSchema) { + if (Array.isArray(t)) { + for (let s of t) this.addSchema(s, void 0, n, a); + return this; + } + let o; + if (typeof t == 'object') { + let { schemaId: s } = this.opts; + if (((o = t[s]), o !== void 0 && typeof o != 'string')) throw new Error(`schema ${s} must be string`); + } + return ( + (r = (0, i2.normalizeId)(r || o)), + this._checkUnique(r), + (this.schemas[r] = this._addSchema(t, n, r, a, !0)), + this + ); + } + addMetaSchema(t, r, n = this.opts.validateSchema) { + return this.addSchema(t, r, !0, n), this; + } + validateSchema(t, r) { + if (typeof t == 'boolean') return !0; + let n; + if (((n = t.$schema), n !== void 0 && typeof n != 'string')) throw new Error('$schema must be a string'); + if (((n = n || this.opts.defaultMeta || this.defaultMeta()), !n)) + return this.logger.warn('meta-schema not available'), (this.errors = null), !0; + let a = this.validate(n, t); + if (!a && r) { + let o = 'schema is invalid: ' + this.errorsText(); + if (this.opts.validateSchema === 'log') this.logger.error(o); + else throw new Error(o); + } + return a; + } + getSchema(t) { + let r; + for (; typeof (r = c7e.call(this, t)) == 'string'; ) t = r; + if (r === void 0) { + let { schemaId: n } = this.opts, + a = new r2.SchemaEnv({ schema: {}, schemaId: n }); + if (((r = r2.resolveSchema.call(this, a, t)), !r)) return; + this.refs[t] = r; + } + return r.validate || this._compileSchemaEnv(r); + } + removeSchema(t) { + if (t instanceof RegExp) + return this._removeAllSchemas(this.schemas, t), this._removeAllSchemas(this.refs, t), this; + switch (typeof t) { + case 'undefined': + return this._removeAllSchemas(this.schemas), this._removeAllSchemas(this.refs), this._cache.clear(), this; + case 'string': { + let r = c7e.call(this, t); + return ( + typeof r == 'object' && this._cache.delete(r.schema), delete this.schemas[t], delete this.refs[t], this + ); + } + case 'object': { + let r = t; + this._cache.delete(r); + let n = t[this.opts.schemaId]; + return n && ((n = (0, i2.normalizeId)(n)), delete this.schemas[n], delete this.refs[n]), this; + } + default: + throw new Error('ajv.removeSchema: invalid parameter'); + } + } + addVocabulary(t) { + for (let r of t) this.addKeyword(r); + return this; + } + addKeyword(t, r) { + let n; + if (typeof t == 'string') + (n = t), + typeof r == 'object' && + (this.logger.warn('these parameters are deprecated, see docs for addKeyword'), (r.keyword = n)); + else if (typeof t == 'object' && r === void 0) { + if (((r = t), (n = r.keyword), Array.isArray(n) && !n.length)) + throw new Error('addKeywords: keyword must be string or non-empty array'); + } else throw new Error('invalid addKeywords parameters'); + if ((ZOt.call(this, n, r), !r)) return (0, qq.eachItem)(n, (o) => Nq.call(this, o)), this; + tTt.call(this, r); + let a = { ...r, type: (0, V9.getJSONTypes)(r.type), schemaType: (0, V9.getJSONTypes)(r.schemaType) }; + return ( + (0, qq.eachItem)( + n, + a.type.length === 0 ? (o) => Nq.call(this, o, a) : (o) => a.type.forEach((s) => Nq.call(this, o, a, s)) + ), + this + ); + } + getKeyword(t) { + let r = this.RULES.all[t]; + return typeof r == 'object' ? r.definition : !!r; + } + removeKeyword(t) { + let { RULES: r } = this; + delete r.keywords[t], delete r.all[t]; + for (let n of r.rules) { + let a = n.rules.findIndex((o) => o.keyword === t); + a >= 0 && n.rules.splice(a, 1); + } + return this; + } + addFormat(t, r) { + return typeof r == 'string' && (r = new RegExp(r)), (this.formats[t] = r), this; + } + errorsText(t = this.errors, { separator: r = ', ', dataVar: n = 'data' } = {}) { + return !t || t.length === 0 + ? 'No errors' + : t.map((a) => `${n}${a.instancePath} ${a.message}`).reduce((a, o) => a + r + o); + } + $dataMetaSchema(t, r) { + let n = this.RULES.all; + t = JSON.parse(JSON.stringify(t)); + for (let a of r) { + let o = a.split('/').slice(1), + s = t; + for (let l of o) s = s[l]; + for (let l in n) { + let u = n[l]; + if (typeof u != 'object') continue; + let { $data: p } = u.definition, + c = s[l]; + p && c && (s[l] = m7e(c)); + } + } + return t; + } + _removeAllSchemas(t, r) { + for (let n in t) { + let a = t[n]; + (!r || r.test(n)) && + (typeof a == 'string' ? delete t[n] : a && !a.meta && (this._cache.delete(a.schema), delete t[n])); + } + } + _addSchema(t, r, n, a = this.opts.validateSchema, o = this.opts.addUsedSchema) { + let s, + { schemaId: l } = this.opts; + if (typeof t == 'object') s = t[l]; + else { + if (this.opts.jtd) throw new Error('schema must be object'); + if (typeof t != 'boolean') throw new Error('schema must be object or boolean'); + } + let u = this._cache.get(t); + if (u !== void 0) return u; + n = (0, i2.normalizeId)(s || n); + let p = i2.getSchemaRefs.call(this, t, n); + return ( + (u = new r2.SchemaEnv({ schema: t, schemaId: l, meta: r, baseId: n, localRefs: p })), + this._cache.set(u.schema, u), + o && !n.startsWith('#') && (n && this._checkUnique(n), (this.refs[n] = u)), + a && this.validateSchema(t, !0), + u + ); + } + _checkUnique(t) { + if (this.schemas[t] || this.refs[t]) throw new Error(`schema with key or id "${t}" already exists`); + } + _compileSchemaEnv(t) { + if ((t.meta ? this._compileMetaSchema(t) : r2.compileSchema.call(this, t), !t.validate)) + throw new Error('ajv implementation error'); + return t.validate; + } + _compileMetaSchema(t) { + let r = this.opts; + this.opts = this._metaOpts; + try { + r2.compileSchema.call(this, t); + } finally { + this.opts = r; + } + } + }; + Di.default = n2; + n2.ValidationError = FOt.default; + n2.MissingRefError = d7e.default; + function p7e(e, t, r, n = 'error') { + for (let a in e) { + let o = a; + o in t && this.logger[n](`${r}: option ${a}. ${e[o]}`); + } + } + function c7e(e) { + return (e = (0, i2.normalizeId)(e)), this.schemas[e] || this.refs[e]; + } + function GOt() { + let e = this.opts.schemas; + if (e) + if (Array.isArray(e)) this.addSchema(e); + else for (let t in e) this.addSchema(e[t], t); + } + function WOt() { + for (let e in this.opts.formats) { + let t = this.opts.formats[e]; + t && this.addFormat(e, t); + } + } + function KOt(e) { + if (Array.isArray(e)) { + this.addVocabulary(e); + return; + } + this.logger.warn('keywords option as map is deprecated, pass array'); + for (let t in e) { + let r = e[t]; + r.keyword || (r.keyword = t), this.addKeyword(r); + } + } + function XOt() { + let e = { ...this.opts }; + for (let t of $Ot) delete e[t]; + return e; + } + var JOt = { log() {}, warn() {}, error() {} }; + function YOt(e) { + if (e === !1) return JOt; + if (e === void 0) return console; + if (e.log && e.warn && e.error) return e; + throw new Error('logger must implement log, warn and error methods'); + } + var QOt = /^[a-z_$][a-z0-9_$:-]*$/i; + function ZOt(e, t) { + let { RULES: r } = this; + if ( + ((0, qq.eachItem)(e, (n) => { + if (r.keywords[n]) throw new Error(`Keyword ${n} is already defined`); + if (!QOt.test(n)) throw new Error(`Keyword ${n} has invalid name`); + }), + !!t && t.$data && !('code' in t || 'validate' in t)) + ) + throw new Error('$data keyword must have "code" or "validate" function'); + } + function Nq(e, t, r) { + var n; + let a = t?.post; + if (r && a) throw new Error('keyword with "post" flag cannot have "type"'); + let { RULES: o } = this, + s = a ? o.post : o.rules.find(({ type: u }) => u === r); + if ((s || ((s = { type: r, rules: [] }), o.rules.push(s)), (o.keywords[e] = !0), !t)) return; + let l = { + keyword: e, + definition: { ...t, type: (0, V9.getJSONTypes)(t.type), schemaType: (0, V9.getJSONTypes)(t.schemaType) }, + }; + t.before ? eTt.call(this, s, l, t.before) : s.rules.push(l), + (o.all[e] = l), + (n = t.implements) === null || n === void 0 || n.forEach((u) => this.addKeyword(u)); + } + function eTt(e, t, r) { + let n = e.rules.findIndex((a) => a.keyword === r); + n >= 0 ? e.rules.splice(n, 0, t) : (e.rules.push(t), this.logger.warn(`rule ${r} is not defined`)); + } + function tTt(e) { + let { metaSchema: t } = e; + t !== void 0 && (e.$data && this.opts.$data && (t = m7e(t)), (e.validateSchema = this.compile(t, !0))); + } + var rTt = { $ref: 'https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#' }; + function m7e(e) { + return { anyOf: [e, rTt] }; + } +}); +var g7e = d((Fq) => { + 'use strict'; + Object.defineProperty(Fq, '__esModule', { value: !0 }); + var iTt = { + keyword: 'id', + code() { + throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID'); + }, + }; + Fq.default = iTt; +}); +var _7e = d((hf) => { + 'use strict'; + Object.defineProperty(hf, '__esModule', { value: !0 }); + hf.callRef = hf.getValidate = void 0; + var nTt = M9(), + v7e = ro(), + zn = Le(), + zg = pu(), + y7e = $9(), + z9 = at(), + aTt = { + keyword: '$ref', + schemaType: 'string', + code(e) { + let { gen: t, schema: r, it: n } = e, + { baseId: a, schemaEnv: o, validateName: s, opts: l, self: u } = n, + { root: p } = o; + if ((r === '#' || r === '#/') && a === p.baseId) return f(); + let c = y7e.resolveRef.call(u, p, a, r); + if (c === void 0) throw new nTt.default(n.opts.uriResolver, a, r); + if (c instanceof y7e.SchemaEnv) return h(c); + return m(c); + function f() { + if (o === p) return H9(e, s, o, o.$async); + let v = t.scopeValue('root', { ref: p }); + return H9(e, (0, zn._)`${v}.validate`, p, p.$async); + } + function h(v) { + let y = b7e(e, v); + H9(e, y, v, v.$async); + } + function m(v) { + let y = t.scopeValue('schema', l.code.source === !0 ? { ref: v, code: (0, zn.stringify)(v) } : { ref: v }), + S = t.name('valid'), + w = e.subschema({ schema: v, dataTypes: [], schemaPath: zn.nil, topSchemaRef: y, errSchemaPath: r }, S); + e.mergeEvaluated(w), e.ok(S); + } + }, + }; + function b7e(e, t) { + let { gen: r } = e; + return t.validate + ? r.scopeValue('validate', { ref: t.validate }) + : (0, zn._)`${r.scopeValue('wrapper', { ref: t })}.validate`; + } + hf.getValidate = b7e; + function H9(e, t, r, n) { + let { gen: a, it: o } = e, + { allErrors: s, schemaEnv: l, opts: u } = o, + p = u.passContext ? zg.default.this : zn.nil; + n ? c() : f(); + function c() { + if (!l.$async) throw new Error('async schema referenced by sync schema'); + let v = a.let('valid'); + a.try( + () => { + a.code((0, zn._)`await ${(0, v7e.callValidateCode)(e, t, p)}`), m(t), s || a.assign(v, !0); + }, + (y) => { + a.if((0, zn._)`!(${y} instanceof ${o.ValidationError})`, () => a.throw(y)), h(y), s || a.assign(v, !1); + } + ), + e.ok(v); + } + function f() { + e.result( + (0, v7e.callValidateCode)(e, t, p), + () => m(t), + () => h(t) + ); + } + function h(v) { + let y = (0, zn._)`${v}.errors`; + a.assign( + zg.default.vErrors, + (0, zn._)`${zg.default.vErrors} === null ? ${y} : ${zg.default.vErrors}.concat(${y})` + ), + a.assign(zg.default.errors, (0, zn._)`${zg.default.vErrors}.length`); + } + function m(v) { + var y; + if (!o.opts.unevaluated) return; + let S = (y = r?.validate) === null || y === void 0 ? void 0 : y.evaluated; + if (o.props !== !0) + if (S && !S.dynamicProps) S.props !== void 0 && (o.props = z9.mergeEvaluated.props(a, S.props, o.props)); + else { + let w = a.var('props', (0, zn._)`${v}.evaluated.props`); + o.props = z9.mergeEvaluated.props(a, w, o.props, zn.Name); + } + if (o.items !== !0) + if (S && !S.dynamicItems) S.items !== void 0 && (o.items = z9.mergeEvaluated.items(a, S.items, o.items)); + else { + let w = a.var('items', (0, zn._)`${v}.evaluated.items`); + o.items = z9.mergeEvaluated.items(a, w, o.items, zn.Name); + } + } + } + hf.callRef = H9; + hf.default = aTt; +}); +var w7e = d((Lq) => { + 'use strict'; + Object.defineProperty(Lq, '__esModule', { value: !0 }); + var oTt = g7e(), + sTt = _7e(), + lTt = ['$schema', '$id', '$defs', '$vocabulary', { keyword: '$comment' }, 'definitions', oTt.default, sTt.default]; + Lq.default = lTt; +}); +var S7e = d((Mq) => { + 'use strict'; + Object.defineProperty(Mq, '__esModule', { value: !0 }); + var G9 = Le(), + Kp = G9.operators, + W9 = { + maximum: { okStr: '<=', ok: Kp.LTE, fail: Kp.GT }, + minimum: { okStr: '>=', ok: Kp.GTE, fail: Kp.LT }, + exclusiveMaximum: { okStr: '<', ok: Kp.LT, fail: Kp.GTE }, + exclusiveMinimum: { okStr: '>', ok: Kp.GT, fail: Kp.LTE }, + }, + uTt = { + message: ({ keyword: e, schemaCode: t }) => (0, G9.str)`must be ${W9[e].okStr} ${t}`, + params: ({ keyword: e, schemaCode: t }) => (0, G9._)`{comparison: ${W9[e].okStr}, limit: ${t}}`, + }, + pTt = { + keyword: Object.keys(W9), + type: 'number', + schemaType: 'number', + $data: !0, + error: uTt, + code(e) { + let { keyword: t, data: r, schemaCode: n } = e; + e.fail$data((0, G9._)`${r} ${W9[t].fail} ${n} || isNaN(${r})`); + }, + }; + Mq.default = pTt; +}); +var E7e = d((Uq) => { + 'use strict'; + Object.defineProperty(Uq, '__esModule', { value: !0 }); + var a2 = Le(), + cTt = { + message: ({ schemaCode: e }) => (0, a2.str)`must be multiple of ${e}`, + params: ({ schemaCode: e }) => (0, a2._)`{multipleOf: ${e}}`, + }, + dTt = { + keyword: 'multipleOf', + type: 'number', + schemaType: 'number', + $data: !0, + error: cTt, + code(e) { + let { gen: t, data: r, schemaCode: n, it: a } = e, + o = a.opts.multipleOfPrecision, + s = t.let('res'), + l = o ? (0, a2._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${o}` : (0, a2._)`${s} !== parseInt(${s})`; + e.fail$data((0, a2._)`(${n} === 0 || (${s} = ${r}/${n}, ${l}))`); + }, + }; + Uq.default = dTt; +}); +var O7e = d(($q) => { + 'use strict'; + Object.defineProperty($q, '__esModule', { value: !0 }); + function x7e(e) { + let t = e.length, + r = 0, + n = 0, + a; + for (; n < t; ) + r++, + (a = e.charCodeAt(n++)), + a >= 55296 && a <= 56319 && n < t && ((a = e.charCodeAt(n)), (a & 64512) === 56320 && n++); + return r; + } + $q.default = x7e; + x7e.code = 'require("ajv/dist/runtime/ucs2length").default'; +}); +var T7e = d((Bq) => { + 'use strict'; + Object.defineProperty(Bq, '__esModule', { value: !0 }); + var gf = Le(), + fTt = at(), + mTt = O7e(), + hTt = { + message({ keyword: e, schemaCode: t }) { + let r = e === 'maxLength' ? 'more' : 'fewer'; + return (0, gf.str)`must NOT have ${r} than ${t} characters`; + }, + params: ({ schemaCode: e }) => (0, gf._)`{limit: ${e}}`, + }, + gTt = { + keyword: ['maxLength', 'minLength'], + type: 'string', + schemaType: 'number', + $data: !0, + error: hTt, + code(e) { + let { keyword: t, data: r, schemaCode: n, it: a } = e, + o = t === 'maxLength' ? gf.operators.GT : gf.operators.LT, + s = a.opts.unicode === !1 ? (0, gf._)`${r}.length` : (0, gf._)`${(0, fTt.useFunc)(e.gen, mTt.default)}(${r})`; + e.fail$data((0, gf._)`${s} ${o} ${n}`); + }, + }; + Bq.default = gTt; +}); +var C7e = d((Vq) => { + 'use strict'; + Object.defineProperty(Vq, '__esModule', { value: !0 }); + var vTt = ro(), + K9 = Le(), + yTt = { + message: ({ schemaCode: e }) => (0, K9.str)`must match pattern "${e}"`, + params: ({ schemaCode: e }) => (0, K9._)`{pattern: ${e}}`, + }, + bTt = { + keyword: 'pattern', + type: 'string', + schemaType: 'string', + $data: !0, + error: yTt, + code(e) { + let { data: t, $data: r, schema: n, schemaCode: a, it: o } = e, + s = o.opts.unicodeRegExp ? 'u' : '', + l = r ? (0, K9._)`(new RegExp(${a}, ${s}))` : (0, vTt.usePattern)(e, n); + e.fail$data((0, K9._)`!${l}.test(${t})`); + }, + }; + Vq.default = bTt; +}); +var k7e = d((zq) => { + 'use strict'; + Object.defineProperty(zq, '__esModule', { value: !0 }); + var o2 = Le(), + _Tt = { + message({ keyword: e, schemaCode: t }) { + let r = e === 'maxProperties' ? 'more' : 'fewer'; + return (0, o2.str)`must NOT have ${r} than ${t} properties`; + }, + params: ({ schemaCode: e }) => (0, o2._)`{limit: ${e}}`, + }, + wTt = { + keyword: ['maxProperties', 'minProperties'], + type: 'object', + schemaType: 'number', + $data: !0, + error: _Tt, + code(e) { + let { keyword: t, data: r, schemaCode: n } = e, + a = t === 'maxProperties' ? o2.operators.GT : o2.operators.LT; + e.fail$data((0, o2._)`Object.keys(${r}).length ${a} ${n}`); + }, + }; + zq.default = wTt; +}); +var A7e = d((Hq) => { + 'use strict'; + Object.defineProperty(Hq, '__esModule', { value: !0 }); + var s2 = ro(), + l2 = Le(), + STt = at(), + ETt = { + message: ({ params: { missingProperty: e } }) => (0, l2.str)`must have required property '${e}'`, + params: ({ params: { missingProperty: e } }) => (0, l2._)`{missingProperty: ${e}}`, + }, + xTt = { + keyword: 'required', + type: 'object', + schemaType: 'array', + $data: !0, + error: ETt, + code(e) { + let { gen: t, schema: r, schemaCode: n, data: a, $data: o, it: s } = e, + { opts: l } = s; + if (!o && r.length === 0) return; + let u = r.length >= l.loopRequired; + if ((s.allErrors ? p() : c(), l.strictRequired)) { + let m = e.parentSchema.properties, + { definedProperties: v } = e.it; + for (let y of r) + if (m?.[y] === void 0 && !v.has(y)) { + let S = s.schemaEnv.baseId + s.errSchemaPath, + w = `required property "${y}" is not defined at "${S}" (strictRequired)`; + (0, STt.checkStrictMode)(s, w, s.opts.strictRequired); + } + } + function p() { + if (u || o) e.block$data(l2.nil, f); + else for (let m of r) (0, s2.checkReportMissingProp)(e, m); + } + function c() { + let m = t.let('missing'); + if (u || o) { + let v = t.let('valid', !0); + e.block$data(v, () => h(m, v)), e.ok(v); + } else t.if((0, s2.checkMissingProp)(e, r, m)), (0, s2.reportMissingProp)(e, m), t.else(); + } + function f() { + t.forOf('prop', n, (m) => { + e.setParams({ missingProperty: m }), + t.if((0, s2.noPropertyInData)(t, a, m, l.ownProperties), () => e.error()); + }); + } + function h(m, v) { + e.setParams({ missingProperty: m }), + t.forOf( + m, + n, + () => { + t.assign(v, (0, s2.propertyInData)(t, a, m, l.ownProperties)), + t.if((0, l2.not)(v), () => { + e.error(), t.break(); + }); + }, + l2.nil + ); + } + }, + }; + Hq.default = xTt; +}); +var I7e = d((Gq) => { + 'use strict'; + Object.defineProperty(Gq, '__esModule', { value: !0 }); + var u2 = Le(), + OTt = { + message({ keyword: e, schemaCode: t }) { + let r = e === 'maxItems' ? 'more' : 'fewer'; + return (0, u2.str)`must NOT have ${r} than ${t} items`; + }, + params: ({ schemaCode: e }) => (0, u2._)`{limit: ${e}}`, + }, + TTt = { + keyword: ['maxItems', 'minItems'], + type: 'array', + schemaType: 'number', + $data: !0, + error: OTt, + code(e) { + let { keyword: t, data: r, schemaCode: n } = e, + a = t === 'maxItems' ? u2.operators.GT : u2.operators.LT; + e.fail$data((0, u2._)`${r}.length ${a} ${n}`); + }, + }; + Gq.default = TTt; +}); +var X9 = d((Wq) => { + 'use strict'; + Object.defineProperty(Wq, '__esModule', { value: !0 }); + var P7e = Sq(); + P7e.code = 'require("ajv/dist/runtime/equal").default'; + Wq.default = P7e; +}); +var R7e = d((Xq) => { + 'use strict'; + Object.defineProperty(Xq, '__esModule', { value: !0 }); + var Kq = Yb(), + Ni = Le(), + CTt = at(), + kTt = X9(), + ATt = { + message: ({ params: { i: e, j: t } }) => + (0, Ni.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`, + params: ({ params: { i: e, j: t } }) => (0, Ni._)`{i: ${e}, j: ${t}}`, + }, + ITt = { + keyword: 'uniqueItems', + type: 'array', + schemaType: 'boolean', + $data: !0, + error: ATt, + code(e) { + let { gen: t, data: r, $data: n, schema: a, parentSchema: o, schemaCode: s, it: l } = e; + if (!n && !a) return; + let u = t.let('valid'), + p = o.items ? (0, Kq.getSchemaTypes)(o.items) : []; + e.block$data(u, c, (0, Ni._)`${s} === false`), e.ok(u); + function c() { + let v = t.let('i', (0, Ni._)`${r}.length`), + y = t.let('j'); + e.setParams({ i: v, j: y }), t.assign(u, !0), t.if((0, Ni._)`${v} > 1`, () => (f() ? h : m)(v, y)); + } + function f() { + return p.length > 0 && !p.some((v) => v === 'object' || v === 'array'); + } + function h(v, y) { + let S = t.name('item'), + w = (0, Kq.checkDataTypes)(p, S, l.opts.strictNumbers, Kq.DataType.Wrong), + O = t.const('indices', (0, Ni._)`{}`); + t.for((0, Ni._)`;${v}--;`, () => { + t.let(S, (0, Ni._)`${r}[${v}]`), + t.if(w, (0, Ni._)`continue`), + p.length > 1 && t.if((0, Ni._)`typeof ${S} == "string"`, (0, Ni._)`${S} += "_"`), + t + .if((0, Ni._)`typeof ${O}[${S}] == "number"`, () => { + t.assign(y, (0, Ni._)`${O}[${S}]`), e.error(), t.assign(u, !1).break(); + }) + .code((0, Ni._)`${O}[${S}] = ${v}`); + }); + } + function m(v, y) { + let S = (0, CTt.useFunc)(t, kTt.default), + w = t.name('outer'); + t.label(w).for((0, Ni._)`;${v}--;`, () => + t.for((0, Ni._)`${y} = ${v}; ${y}--;`, () => + t.if((0, Ni._)`${S}(${r}[${v}], ${r}[${y}])`, () => { + e.error(), t.assign(u, !1).break(w); + }) + ) + ); + } + }, + }; + Xq.default = ITt; +}); +var j7e = d((Yq) => { + 'use strict'; + Object.defineProperty(Yq, '__esModule', { value: !0 }); + var Jq = Le(), + PTt = at(), + RTt = X9(), + jTt = { message: 'must be equal to constant', params: ({ schemaCode: e }) => (0, Jq._)`{allowedValue: ${e}}` }, + DTt = { + keyword: 'const', + $data: !0, + error: jTt, + code(e) { + let { gen: t, data: r, $data: n, schemaCode: a, schema: o } = e; + n || (o && typeof o == 'object') + ? e.fail$data((0, Jq._)`!${(0, PTt.useFunc)(t, RTt.default)}(${r}, ${a})`) + : e.fail((0, Jq._)`${o} !== ${r}`); + }, + }; + Yq.default = DTt; +}); +var D7e = d((Qq) => { + 'use strict'; + Object.defineProperty(Qq, '__esModule', { value: !0 }); + var p2 = Le(), + NTt = at(), + qTt = X9(), + FTt = { + message: 'must be equal to one of the allowed values', + params: ({ schemaCode: e }) => (0, p2._)`{allowedValues: ${e}}`, + }, + LTt = { + keyword: 'enum', + schemaType: 'array', + $data: !0, + error: FTt, + code(e) { + let { gen: t, data: r, $data: n, schema: a, schemaCode: o, it: s } = e; + if (!n && a.length === 0) throw new Error('enum must have non-empty array'); + let l = a.length >= s.opts.loopEnum, + u, + p = () => u ?? (u = (0, NTt.useFunc)(t, qTt.default)), + c; + if (l || n) (c = t.let('valid')), e.block$data(c, f); + else { + if (!Array.isArray(a)) throw new Error('ajv implementation error'); + let m = t.const('vSchema', o); + c = (0, p2.or)(...a.map((v, y) => h(m, y))); + } + e.pass(c); + function f() { + t.assign(c, !1), t.forOf('v', o, (m) => t.if((0, p2._)`${p()}(${r}, ${m})`, () => t.assign(c, !0).break())); + } + function h(m, v) { + let y = a[v]; + return typeof y == 'object' && y !== null ? (0, p2._)`${p()}(${r}, ${m}[${v}])` : (0, p2._)`${r} === ${y}`; + } + }, + }; + Qq.default = LTt; +}); +var N7e = d((Zq) => { + 'use strict'; + Object.defineProperty(Zq, '__esModule', { value: !0 }); + var MTt = S7e(), + UTt = E7e(), + $Tt = T7e(), + BTt = C7e(), + VTt = k7e(), + zTt = A7e(), + HTt = I7e(), + GTt = R7e(), + WTt = j7e(), + KTt = D7e(), + XTt = [ + MTt.default, + UTt.default, + $Tt.default, + BTt.default, + VTt.default, + zTt.default, + HTt.default, + GTt.default, + { keyword: 'type', schemaType: ['string', 'array'] }, + { keyword: 'nullable', schemaType: 'boolean' }, + WTt.default, + KTt.default, + ]; + Zq.default = XTt; +}); +var tF = d((c2) => { + 'use strict'; + Object.defineProperty(c2, '__esModule', { value: !0 }); + c2.validateAdditionalItems = void 0; + var vf = Le(), + eF = at(), + JTt = { + message: ({ params: { len: e } }) => (0, vf.str)`must NOT have more than ${e} items`, + params: ({ params: { len: e } }) => (0, vf._)`{limit: ${e}}`, + }, + YTt = { + keyword: 'additionalItems', + type: 'array', + schemaType: ['boolean', 'object'], + before: 'uniqueItems', + error: JTt, + code(e) { + let { parentSchema: t, it: r } = e, + { items: n } = t; + if (!Array.isArray(n)) { + (0, eF.checkStrictMode)(r, '"additionalItems" is ignored when "items" is not an array of schemas'); + return; + } + q7e(e, n); + }, + }; + function q7e(e, t) { + let { gen: r, schema: n, data: a, keyword: o, it: s } = e; + s.items = !0; + let l = r.const('len', (0, vf._)`${a}.length`); + if (n === !1) e.setParams({ len: t.length }), e.pass((0, vf._)`${l} <= ${t.length}`); + else if (typeof n == 'object' && !(0, eF.alwaysValidSchema)(s, n)) { + let p = r.var('valid', (0, vf._)`${l} <= ${t.length}`); + r.if((0, vf.not)(p), () => u(p)), e.ok(p); + } + function u(p) { + r.forRange('i', t.length, l, (c) => { + e.subschema({ keyword: o, dataProp: c, dataPropType: eF.Type.Num }, p), + s.allErrors || r.if((0, vf.not)(p), () => r.break()); + }); + } + } + c2.validateAdditionalItems = q7e; + c2.default = YTt; +}); +var rF = d((d2) => { + 'use strict'; + Object.defineProperty(d2, '__esModule', { value: !0 }); + d2.validateTuple = void 0; + var F7e = Le(), + J9 = at(), + QTt = ro(), + ZTt = { + keyword: 'items', + type: 'array', + schemaType: ['object', 'array', 'boolean'], + before: 'uniqueItems', + code(e) { + let { schema: t, it: r } = e; + if (Array.isArray(t)) return L7e(e, 'additionalItems', t); + (r.items = !0), !(0, J9.alwaysValidSchema)(r, t) && e.ok((0, QTt.validateArray)(e)); + }, + }; + function L7e(e, t, r = e.schema) { + let { gen: n, parentSchema: a, data: o, keyword: s, it: l } = e; + c(a), l.opts.unevaluated && r.length && l.items !== !0 && (l.items = J9.mergeEvaluated.items(n, r.length, l.items)); + let u = n.name('valid'), + p = n.const('len', (0, F7e._)`${o}.length`); + r.forEach((f, h) => { + (0, J9.alwaysValidSchema)(l, f) || + (n.if((0, F7e._)`${p} > ${h}`, () => e.subschema({ keyword: s, schemaProp: h, dataProp: h }, u)), e.ok(u)); + }); + function c(f) { + let { opts: h, errSchemaPath: m } = l, + v = r.length, + y = v === f.minItems && (v === f.maxItems || f[t] === !1); + if (h.strictTuples && !y) { + let S = `"${s}" is ${v}-tuple, but minItems or maxItems/${t} are not specified or different at path "${m}"`; + (0, J9.checkStrictMode)(l, S, h.strictTuples); + } + } + } + d2.validateTuple = L7e; + d2.default = ZTt; +}); +var M7e = d((iF) => { + 'use strict'; + Object.defineProperty(iF, '__esModule', { value: !0 }); + var eCt = rF(), + tCt = { + keyword: 'prefixItems', + type: 'array', + schemaType: ['array'], + before: 'uniqueItems', + code: (e) => (0, eCt.validateTuple)(e, 'items'), + }; + iF.default = tCt; +}); +var $7e = d((nF) => { + 'use strict'; + Object.defineProperty(nF, '__esModule', { value: !0 }); + var U7e = Le(), + rCt = at(), + iCt = ro(), + nCt = tF(), + aCt = { + message: ({ params: { len: e } }) => (0, U7e.str)`must NOT have more than ${e} items`, + params: ({ params: { len: e } }) => (0, U7e._)`{limit: ${e}}`, + }, + oCt = { + keyword: 'items', + type: 'array', + schemaType: ['object', 'boolean'], + before: 'uniqueItems', + error: aCt, + code(e) { + let { schema: t, parentSchema: r, it: n } = e, + { prefixItems: a } = r; + (n.items = !0), + !(0, rCt.alwaysValidSchema)(n, t) && + (a ? (0, nCt.validateAdditionalItems)(e, a) : e.ok((0, iCt.validateArray)(e))); + }, + }; + nF.default = oCt; +}); +var B7e = d((aF) => { + 'use strict'; + Object.defineProperty(aF, '__esModule', { value: !0 }); + var no = Le(), + Y9 = at(), + sCt = { + message: ({ params: { min: e, max: t } }) => + t === void 0 + ? (0, no.str)`must contain at least ${e} valid item(s)` + : (0, no.str)`must contain at least ${e} and no more than ${t} valid item(s)`, + params: ({ params: { min: e, max: t } }) => + t === void 0 ? (0, no._)`{minContains: ${e}}` : (0, no._)`{minContains: ${e}, maxContains: ${t}}`, + }, + lCt = { + keyword: 'contains', + type: 'array', + schemaType: ['object', 'boolean'], + before: 'uniqueItems', + trackErrors: !0, + error: sCt, + code(e) { + let { gen: t, schema: r, parentSchema: n, data: a, it: o } = e, + s, + l, + { minContains: u, maxContains: p } = n; + o.opts.next ? ((s = u === void 0 ? 1 : u), (l = p)) : (s = 1); + let c = t.const('len', (0, no._)`${a}.length`); + if ((e.setParams({ min: s, max: l }), l === void 0 && s === 0)) { + (0, Y9.checkStrictMode)(o, '"minContains" == 0 without "maxContains": "contains" keyword ignored'); + return; + } + if (l !== void 0 && s > l) { + (0, Y9.checkStrictMode)(o, '"minContains" > "maxContains" is always invalid'), e.fail(); + return; + } + if ((0, Y9.alwaysValidSchema)(o, r)) { + let y = (0, no._)`${c} >= ${s}`; + l !== void 0 && (y = (0, no._)`${y} && ${c} <= ${l}`), e.pass(y); + return; + } + o.items = !0; + let f = t.name('valid'); + l === void 0 && s === 1 + ? m(f, () => t.if(f, () => t.break())) + : s === 0 + ? (t.let(f, !0), l !== void 0 && t.if((0, no._)`${a}.length > 0`, h)) + : (t.let(f, !1), h()), + e.result(f, () => e.reset()); + function h() { + let y = t.name('_valid'), + S = t.let('count', 0); + m(y, () => t.if(y, () => v(S))); + } + function m(y, S) { + t.forRange('i', 0, c, (w) => { + e.subschema({ keyword: 'contains', dataProp: w, dataPropType: Y9.Type.Num, compositeRule: !0 }, y), S(); + }); + } + function v(y) { + t.code((0, no._)`${y}++`), + l === void 0 + ? t.if((0, no._)`${y} >= ${s}`, () => t.assign(f, !0).break()) + : (t.if((0, no._)`${y} > ${l}`, () => t.assign(f, !1).break()), + s === 1 ? t.assign(f, !0) : t.if((0, no._)`${y} >= ${s}`, () => t.assign(f, !0))); + } + }, + }; + aF.default = lCt; +}); +var H7e = d((Js) => { + 'use strict'; + Object.defineProperty(Js, '__esModule', { value: !0 }); + Js.validateSchemaDeps = Js.validatePropertyDeps = Js.error = void 0; + var oF = Le(), + uCt = at(), + f2 = ro(); + Js.error = { + message: ({ params: { property: e, depsCount: t, deps: r } }) => { + let n = t === 1 ? 'property' : 'properties'; + return (0, oF.str)`must have ${n} ${r} when property ${e} is present`; + }, + params: ({ params: { property: e, depsCount: t, deps: r, missingProperty: n } }) => (0, oF._)`{property: ${e}, + missingProperty: ${n}, + depsCount: ${t}, + deps: ${r}}`, + }; + var pCt = { + keyword: 'dependencies', + type: 'object', + schemaType: 'object', + error: Js.error, + code(e) { + let [t, r] = cCt(e); + V7e(e, t), z7e(e, r); + }, + }; + function cCt({ schema: e }) { + let t = {}, + r = {}; + for (let n in e) { + if (n === '__proto__') continue; + let a = Array.isArray(e[n]) ? t : r; + a[n] = e[n]; + } + return [t, r]; + } + function V7e(e, t = e.schema) { + let { gen: r, data: n, it: a } = e; + if (Object.keys(t).length === 0) return; + let o = r.let('missing'); + for (let s in t) { + let l = t[s]; + if (l.length === 0) continue; + let u = (0, f2.propertyInData)(r, n, s, a.opts.ownProperties); + e.setParams({ property: s, depsCount: l.length, deps: l.join(', ') }), + a.allErrors + ? r.if(u, () => { + for (let p of l) (0, f2.checkReportMissingProp)(e, p); + }) + : (r.if((0, oF._)`${u} && (${(0, f2.checkMissingProp)(e, l, o)})`), + (0, f2.reportMissingProp)(e, o), + r.else()); + } + } + Js.validatePropertyDeps = V7e; + function z7e(e, t = e.schema) { + let { gen: r, data: n, keyword: a, it: o } = e, + s = r.name('valid'); + for (let l in t) + (0, uCt.alwaysValidSchema)(o, t[l]) || + (r.if( + (0, f2.propertyInData)(r, n, l, o.opts.ownProperties), + () => { + let u = e.subschema({ keyword: a, schemaProp: l }, s); + e.mergeValidEvaluated(u, s); + }, + () => r.var(s, !0) + ), + e.ok(s)); + } + Js.validateSchemaDeps = z7e; + Js.default = pCt; +}); +var W7e = d((sF) => { + 'use strict'; + Object.defineProperty(sF, '__esModule', { value: !0 }); + var G7e = Le(), + dCt = at(), + fCt = { + message: 'property name must be valid', + params: ({ params: e }) => (0, G7e._)`{propertyName: ${e.propertyName}}`, + }, + mCt = { + keyword: 'propertyNames', + type: 'object', + schemaType: ['object', 'boolean'], + error: fCt, + code(e) { + let { gen: t, schema: r, data: n, it: a } = e; + if ((0, dCt.alwaysValidSchema)(a, r)) return; + let o = t.name('valid'); + t.forIn('key', n, (s) => { + e.setParams({ propertyName: s }), + e.subschema( + { keyword: 'propertyNames', data: s, dataTypes: ['string'], propertyName: s, compositeRule: !0 }, + o + ), + t.if((0, G7e.not)(o), () => { + e.error(!0), a.allErrors || t.break(); + }); + }), + e.ok(o); + }, + }; + sF.default = mCt; +}); +var uF = d((lF) => { + 'use strict'; + Object.defineProperty(lF, '__esModule', { value: !0 }); + var Q9 = ro(), + Jo = Le(), + hCt = pu(), + Z9 = at(), + gCt = { + message: 'must NOT have additional properties', + params: ({ params: e }) => (0, Jo._)`{additionalProperty: ${e.additionalProperty}}`, + }, + vCt = { + keyword: 'additionalProperties', + type: ['object'], + schemaType: ['boolean', 'object'], + allowUndefined: !0, + trackErrors: !0, + error: gCt, + code(e) { + let { gen: t, schema: r, parentSchema: n, data: a, errsCount: o, it: s } = e; + if (!o) throw new Error('ajv implementation error'); + let { allErrors: l, opts: u } = s; + if (((s.props = !0), u.removeAdditional !== 'all' && (0, Z9.alwaysValidSchema)(s, r))) return; + let p = (0, Q9.allSchemaProperties)(n.properties), + c = (0, Q9.allSchemaProperties)(n.patternProperties); + f(), e.ok((0, Jo._)`${o} === ${hCt.default.errors}`); + function f() { + t.forIn('key', a, (S) => { + !p.length && !c.length ? v(S) : t.if(h(S), () => v(S)); + }); + } + function h(S) { + let w; + if (p.length > 8) { + let O = (0, Z9.schemaRefOrVal)(s, n.properties, 'properties'); + w = (0, Q9.isOwnProperty)(t, O, S); + } else p.length ? (w = (0, Jo.or)(...p.map((O) => (0, Jo._)`${S} === ${O}`))) : (w = Jo.nil); + return ( + c.length && (w = (0, Jo.or)(w, ...c.map((O) => (0, Jo._)`${(0, Q9.usePattern)(e, O)}.test(${S})`))), + (0, Jo.not)(w) + ); + } + function m(S) { + t.code((0, Jo._)`delete ${a}[${S}]`); + } + function v(S) { + if (u.removeAdditional === 'all' || (u.removeAdditional && r === !1)) { + m(S); + return; + } + if (r === !1) { + e.setParams({ additionalProperty: S }), e.error(), l || t.break(); + return; + } + if (typeof r == 'object' && !(0, Z9.alwaysValidSchema)(s, r)) { + let w = t.name('valid'); + u.removeAdditional === 'failing' + ? (y(S, w, !1), + t.if((0, Jo.not)(w), () => { + e.reset(), m(S); + })) + : (y(S, w), l || t.if((0, Jo.not)(w), () => t.break())); + } + } + function y(S, w, O) { + let x = { keyword: 'additionalProperties', dataProp: S, dataPropType: Z9.Type.Str }; + O === !1 && Object.assign(x, { compositeRule: !0, createErrors: !1, allErrors: !1 }), e.subschema(x, w); + } + }, + }; + lF.default = vCt; +}); +var J7e = d((cF) => { + 'use strict'; + Object.defineProperty(cF, '__esModule', { value: !0 }); + var yCt = t2(), + K7e = ro(), + pF = at(), + X7e = uF(), + bCt = { + keyword: 'properties', + type: 'object', + schemaType: 'object', + code(e) { + let { gen: t, schema: r, parentSchema: n, data: a, it: o } = e; + o.opts.removeAdditional === 'all' && + n.additionalProperties === void 0 && + X7e.default.code(new yCt.KeywordCxt(o, X7e.default, 'additionalProperties')); + let s = (0, K7e.allSchemaProperties)(r); + for (let f of s) o.definedProperties.add(f); + o.opts.unevaluated && + s.length && + o.props !== !0 && + (o.props = pF.mergeEvaluated.props(t, (0, pF.toHash)(s), o.props)); + let l = s.filter((f) => !(0, pF.alwaysValidSchema)(o, r[f])); + if (l.length === 0) return; + let u = t.name('valid'); + for (let f of l) + p(f) + ? c(f) + : (t.if((0, K7e.propertyInData)(t, a, f, o.opts.ownProperties)), + c(f), + o.allErrors || t.else().var(u, !0), + t.endIf()), + e.it.definedProperties.add(f), + e.ok(u); + function p(f) { + return o.opts.useDefaults && !o.compositeRule && r[f].default !== void 0; + } + function c(f) { + e.subschema({ keyword: 'properties', schemaProp: f, dataProp: f }, u); + } + }, + }; + cF.default = bCt; +}); +var eEe = d((dF) => { + 'use strict'; + Object.defineProperty(dF, '__esModule', { value: !0 }); + var Y7e = ro(), + e5 = Le(), + Q7e = at(), + Z7e = at(), + _Ct = { + keyword: 'patternProperties', + type: 'object', + schemaType: 'object', + code(e) { + let { gen: t, schema: r, data: n, parentSchema: a, it: o } = e, + { opts: s } = o, + l = (0, Y7e.allSchemaProperties)(r), + u = l.filter((y) => (0, Q7e.alwaysValidSchema)(o, r[y])); + if (l.length === 0 || (u.length === l.length && (!o.opts.unevaluated || o.props === !0))) return; + let p = s.strictSchema && !s.allowMatchingProperties && a.properties, + c = t.name('valid'); + o.props !== !0 && !(o.props instanceof e5.Name) && (o.props = (0, Z7e.evaluatedPropsToName)(t, o.props)); + let { props: f } = o; + h(); + function h() { + for (let y of l) p && m(y), o.allErrors ? v(y) : (t.var(c, !0), v(y), t.if(c)); + } + function m(y) { + for (let S in p) + new RegExp(y).test(S) && + (0, Q7e.checkStrictMode)(o, `property ${S} matches pattern ${y} (use allowMatchingProperties)`); + } + function v(y) { + t.forIn('key', n, (S) => { + t.if((0, e5._)`${(0, Y7e.usePattern)(e, y)}.test(${S})`, () => { + let w = u.includes(y); + w || + e.subschema( + { keyword: 'patternProperties', schemaProp: y, dataProp: S, dataPropType: Z7e.Type.Str }, + c + ), + o.opts.unevaluated && f !== !0 + ? t.assign((0, e5._)`${f}[${S}]`, !0) + : !w && !o.allErrors && t.if((0, e5.not)(c), () => t.break()); + }); + }); + } + }, + }; + dF.default = _Ct; +}); +var tEe = d((fF) => { + 'use strict'; + Object.defineProperty(fF, '__esModule', { value: !0 }); + var wCt = at(), + SCt = { + keyword: 'not', + schemaType: ['object', 'boolean'], + trackErrors: !0, + code(e) { + let { gen: t, schema: r, it: n } = e; + if ((0, wCt.alwaysValidSchema)(n, r)) { + e.fail(); + return; + } + let a = t.name('valid'); + e.subschema({ keyword: 'not', compositeRule: !0, createErrors: !1, allErrors: !1 }, a), + e.failResult( + a, + () => e.reset(), + () => e.error() + ); + }, + error: { message: 'must NOT be valid' }, + }; + fF.default = SCt; +}); +var rEe = d((mF) => { + 'use strict'; + Object.defineProperty(mF, '__esModule', { value: !0 }); + var ECt = ro(), + xCt = { + keyword: 'anyOf', + schemaType: 'array', + trackErrors: !0, + code: ECt.validateUnion, + error: { message: 'must match a schema in anyOf' }, + }; + mF.default = xCt; +}); +var iEe = d((hF) => { + 'use strict'; + Object.defineProperty(hF, '__esModule', { value: !0 }); + var t5 = Le(), + OCt = at(), + TCt = { + message: 'must match exactly one schema in oneOf', + params: ({ params: e }) => (0, t5._)`{passingSchemas: ${e.passing}}`, + }, + CCt = { + keyword: 'oneOf', + schemaType: 'array', + trackErrors: !0, + error: TCt, + code(e) { + let { gen: t, schema: r, parentSchema: n, it: a } = e; + if (!Array.isArray(r)) throw new Error('ajv implementation error'); + if (a.opts.discriminator && n.discriminator) return; + let o = r, + s = t.let('valid', !1), + l = t.let('passing', null), + u = t.name('_valid'); + e.setParams({ passing: l }), + t.block(p), + e.result( + s, + () => e.reset(), + () => e.error(!0) + ); + function p() { + o.forEach((c, f) => { + let h; + (0, OCt.alwaysValidSchema)(a, c) + ? t.var(u, !0) + : (h = e.subschema({ keyword: 'oneOf', schemaProp: f, compositeRule: !0 }, u)), + f > 0 && + t + .if((0, t5._)`${u} && ${s}`) + .assign(s, !1) + .assign(l, (0, t5._)`[${l}, ${f}]`) + .else(), + t.if(u, () => { + t.assign(s, !0), t.assign(l, f), h && e.mergeEvaluated(h, t5.Name); + }); + }); + } + }, + }; + hF.default = CCt; +}); +var nEe = d((gF) => { + 'use strict'; + Object.defineProperty(gF, '__esModule', { value: !0 }); + var kCt = at(), + ACt = { + keyword: 'allOf', + schemaType: 'array', + code(e) { + let { gen: t, schema: r, it: n } = e; + if (!Array.isArray(r)) throw new Error('ajv implementation error'); + let a = t.name('valid'); + r.forEach((o, s) => { + if ((0, kCt.alwaysValidSchema)(n, o)) return; + let l = e.subschema({ keyword: 'allOf', schemaProp: s }, a); + e.ok(a), e.mergeEvaluated(l); + }); + }, + }; + gF.default = ACt; +}); +var sEe = d((vF) => { + 'use strict'; + Object.defineProperty(vF, '__esModule', { value: !0 }); + var r5 = Le(), + oEe = at(), + ICt = { + message: ({ params: e }) => (0, r5.str)`must match "${e.ifClause}" schema`, + params: ({ params: e }) => (0, r5._)`{failingKeyword: ${e.ifClause}}`, + }, + PCt = { + keyword: 'if', + schemaType: ['object', 'boolean'], + trackErrors: !0, + error: ICt, + code(e) { + let { gen: t, parentSchema: r, it: n } = e; + r.then === void 0 && + r.else === void 0 && + (0, oEe.checkStrictMode)(n, '"if" without "then" and "else" is ignored'); + let a = aEe(n, 'then'), + o = aEe(n, 'else'); + if (!a && !o) return; + let s = t.let('valid', !0), + l = t.name('_valid'); + if ((u(), e.reset(), a && o)) { + let c = t.let('ifClause'); + e.setParams({ ifClause: c }), t.if(l, p('then', c), p('else', c)); + } else a ? t.if(l, p('then')) : t.if((0, r5.not)(l), p('else')); + e.pass(s, () => e.error(!0)); + function u() { + let c = e.subschema({ keyword: 'if', compositeRule: !0, createErrors: !1, allErrors: !1 }, l); + e.mergeEvaluated(c); + } + function p(c, f) { + return () => { + let h = e.subschema({ keyword: c }, l); + t.assign(s, l), + e.mergeValidEvaluated(h, s), + f ? t.assign(f, (0, r5._)`${c}`) : e.setParams({ ifClause: c }); + }; + } + }, + }; + function aEe(e, t) { + let r = e.schema[t]; + return r !== void 0 && !(0, oEe.alwaysValidSchema)(e, r); + } + vF.default = PCt; +}); +var lEe = d((yF) => { + 'use strict'; + Object.defineProperty(yF, '__esModule', { value: !0 }); + var RCt = at(), + jCt = { + keyword: ['then', 'else'], + schemaType: ['object', 'boolean'], + code({ keyword: e, parentSchema: t, it: r }) { + t.if === void 0 && (0, RCt.checkStrictMode)(r, `"${e}" without "if" is ignored`); + }, + }; + yF.default = jCt; +}); +var uEe = d((bF) => { + 'use strict'; + Object.defineProperty(bF, '__esModule', { value: !0 }); + var DCt = tF(), + NCt = M7e(), + qCt = rF(), + FCt = $7e(), + LCt = B7e(), + MCt = H7e(), + UCt = W7e(), + $Ct = uF(), + BCt = J7e(), + VCt = eEe(), + zCt = tEe(), + HCt = rEe(), + GCt = iEe(), + WCt = nEe(), + KCt = sEe(), + XCt = lEe(); + function JCt(e = !1) { + let t = [ + zCt.default, + HCt.default, + GCt.default, + WCt.default, + KCt.default, + XCt.default, + UCt.default, + $Ct.default, + MCt.default, + BCt.default, + VCt.default, + ]; + return e ? t.push(NCt.default, FCt.default) : t.push(DCt.default, qCt.default), t.push(LCt.default), t; + } + bF.default = JCt; +}); +var pEe = d((_F) => { + 'use strict'; + Object.defineProperty(_F, '__esModule', { value: !0 }); + var jr = Le(), + YCt = { + message: ({ schemaCode: e }) => (0, jr.str)`must match format "${e}"`, + params: ({ schemaCode: e }) => (0, jr._)`{format: ${e}}`, + }, + QCt = { + keyword: 'format', + type: ['number', 'string'], + schemaType: 'string', + $data: !0, + error: YCt, + code(e, t) { + let { gen: r, data: n, $data: a, schema: o, schemaCode: s, it: l } = e, + { opts: u, errSchemaPath: p, schemaEnv: c, self: f } = l; + if (!u.validateFormats) return; + a ? h() : m(); + function h() { + let v = r.scopeValue('formats', { ref: f.formats, code: u.code.formats }), + y = r.const('fDef', (0, jr._)`${v}[${s}]`), + S = r.let('fType'), + w = r.let('format'); + r.if( + (0, jr._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`, + () => r.assign(S, (0, jr._)`${y}.type || "string"`).assign(w, (0, jr._)`${y}.validate`), + () => r.assign(S, (0, jr._)`"string"`).assign(w, y) + ), + e.fail$data((0, jr.or)(O(), x())); + function O() { + return u.strictSchema === !1 ? jr.nil : (0, jr._)`${s} && !${w}`; + } + function x() { + let _ = c.$async ? (0, jr._)`(${y}.async ? await ${w}(${n}) : ${w}(${n}))` : (0, jr._)`${w}(${n})`, + b = (0, jr._)`(typeof ${w} == "function" ? ${_} : ${w}.test(${n}))`; + return (0, jr._)`${w} && ${w} !== true && ${S} === ${t} && !${b}`; + } + } + function m() { + let v = f.formats[o]; + if (!v) { + O(); + return; + } + if (v === !0) return; + let [y, S, w] = x(v); + y === t && e.pass(_()); + function O() { + if (u.strictSchema === !1) { + f.logger.warn(b()); + return; + } + throw new Error(b()); + function b() { + return `unknown format "${o}" ignored in schema at path "${p}"`; + } + } + function x(b) { + let T = + b instanceof RegExp + ? (0, jr.regexpCode)(b) + : u.code.formats + ? (0, jr._)`${u.code.formats}${(0, jr.getProperty)(o)}` + : void 0, + R = r.scopeValue('formats', { key: o, ref: b, code: T }); + return typeof b == 'object' && !(b instanceof RegExp) + ? [b.type || 'string', b.validate, (0, jr._)`${R}.validate`] + : ['string', b, R]; + } + function _() { + if (typeof v == 'object' && !(v instanceof RegExp) && v.async) { + if (!c.$async) throw new Error('async format in sync schema'); + return (0, jr._)`await ${w}(${n})`; + } + return typeof S == 'function' ? (0, jr._)`${w}(${n})` : (0, jr._)`${w}.test(${n})`; + } + } + }, + }; + _F.default = QCt; +}); +var cEe = d((wF) => { + 'use strict'; + Object.defineProperty(wF, '__esModule', { value: !0 }); + var ZCt = pEe(), + ekt = [ZCt.default]; + wF.default = ekt; +}); +var dEe = d((Hg) => { + 'use strict'; + Object.defineProperty(Hg, '__esModule', { value: !0 }); + Hg.contentVocabulary = Hg.metadataVocabulary = void 0; + Hg.metadataVocabulary = ['title', 'description', 'default', 'deprecated', 'readOnly', 'writeOnly', 'examples']; + Hg.contentVocabulary = ['contentMediaType', 'contentEncoding', 'contentSchema']; +}); +var mEe = d((SF) => { + 'use strict'; + Object.defineProperty(SF, '__esModule', { value: !0 }); + var tkt = w7e(), + rkt = N7e(), + ikt = uEe(), + nkt = cEe(), + fEe = dEe(), + akt = [tkt.default, rkt.default, (0, ikt.default)(), nkt.default, fEe.metadataVocabulary, fEe.contentVocabulary]; + SF.default = akt; +}); +var hEe = d((m2) => { + 'use strict'; + Object.defineProperty(m2, '__esModule', { value: !0 }); + m2.DiscrError = void 0; + var okt; + (function (e) { + (e.Tag = 'tag'), (e.Mapping = 'mapping'); + })((okt = m2.DiscrError || (m2.DiscrError = {}))); +}); +var vEe = d((xF) => { + 'use strict'; + Object.defineProperty(xF, '__esModule', { value: !0 }); + var Gg = Le(), + EF = hEe(), + gEe = $9(), + skt = at(), + lkt = { + message: ({ params: { discrError: e, tagName: t } }) => + e === EF.DiscrError.Tag ? `tag "${t}" must be string` : `value of tag "${t}" must be in oneOf`, + params: ({ params: { discrError: e, tag: t, tagName: r } }) => + (0, Gg._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`, + }, + ukt = { + keyword: 'discriminator', + type: 'object', + schemaType: 'object', + error: lkt, + code(e) { + let { gen: t, data: r, schema: n, parentSchema: a, it: o } = e, + { oneOf: s } = a; + if (!o.opts.discriminator) throw new Error('discriminator: requires discriminator option'); + let l = n.propertyName; + if (typeof l != 'string') throw new Error('discriminator: requires propertyName'); + if (n.mapping) throw new Error('discriminator: mapping is not supported'); + if (!s) throw new Error('discriminator: requires oneOf keyword'); + let u = t.let('valid', !1), + p = t.const('tag', (0, Gg._)`${r}${(0, Gg.getProperty)(l)}`); + t.if( + (0, Gg._)`typeof ${p} == "string"`, + () => c(), + () => e.error(!1, { discrError: EF.DiscrError.Tag, tag: p, tagName: l }) + ), + e.ok(u); + function c() { + let m = h(); + t.if(!1); + for (let v in m) t.elseIf((0, Gg._)`${p} === ${v}`), t.assign(u, f(m[v])); + t.else(), e.error(!1, { discrError: EF.DiscrError.Mapping, tag: p, tagName: l }), t.endIf(); + } + function f(m) { + let v = t.name('valid'), + y = e.subschema({ keyword: 'oneOf', schemaProp: m }, v); + return e.mergeEvaluated(y, Gg.Name), v; + } + function h() { + var m; + let v = {}, + y = w(a), + S = !0; + for (let _ = 0; _ < s.length; _++) { + let b = s[_]; + b?.$ref && + !(0, skt.schemaHasRulesButRef)(b, o.self.RULES) && + ((b = gEe.resolveRef.call(o.self, o.schemaEnv.root, o.baseId, b?.$ref)), + b instanceof gEe.SchemaEnv && (b = b.schema)); + let T = (m = b?.properties) === null || m === void 0 ? void 0 : m[l]; + if (typeof T != 'object') + throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${l}"`); + (S = S && (y || w(b))), O(T, _); + } + if (!S) throw new Error(`discriminator: "${l}" must be required`); + return v; + function w({ required: _ }) { + return Array.isArray(_) && _.includes(l); + } + function O(_, b) { + if (_.const) x(_.const, b); + else if (_.enum) for (let T of _.enum) x(T, b); + else throw new Error(`discriminator: "properties/${l}" must have "const" or "enum"`); + } + function x(_, b) { + if (typeof _ != 'string' || _ in v) throw new Error(`discriminator: "${l}" values must be unique strings`); + v[_] = b; + } + } + }, + }; + xF.default = ukt; +}); +var yEe = d((Znr, pkt) => { + pkt.exports = { + $schema: 'http://json-schema.org/draft-07/schema#', + $id: 'http://json-schema.org/draft-07/schema#', + title: 'Core schema meta-schema', + definitions: { + schemaArray: { type: 'array', minItems: 1, items: { $ref: '#' } }, + nonNegativeInteger: { type: 'integer', minimum: 0 }, + nonNegativeIntegerDefault0: { allOf: [{ $ref: '#/definitions/nonNegativeInteger' }, { default: 0 }] }, + simpleTypes: { enum: ['array', 'boolean', 'integer', 'null', 'number', 'object', 'string'] }, + stringArray: { type: 'array', items: { type: 'string' }, uniqueItems: !0, default: [] }, + }, + type: ['object', 'boolean'], + properties: { + $id: { type: 'string', format: 'uri-reference' }, + $schema: { type: 'string', format: 'uri' }, + $ref: { type: 'string', format: 'uri-reference' }, + $comment: { type: 'string' }, + title: { type: 'string' }, + description: { type: 'string' }, + default: !0, + readOnly: { type: 'boolean', default: !1 }, + examples: { type: 'array', items: !0 }, + multipleOf: { type: 'number', exclusiveMinimum: 0 }, + maximum: { type: 'number' }, + exclusiveMaximum: { type: 'number' }, + minimum: { type: 'number' }, + exclusiveMinimum: { type: 'number' }, + maxLength: { $ref: '#/definitions/nonNegativeInteger' }, + minLength: { $ref: '#/definitions/nonNegativeIntegerDefault0' }, + pattern: { type: 'string', format: 'regex' }, + additionalItems: { $ref: '#' }, + items: { anyOf: [{ $ref: '#' }, { $ref: '#/definitions/schemaArray' }], default: !0 }, + maxItems: { $ref: '#/definitions/nonNegativeInteger' }, + minItems: { $ref: '#/definitions/nonNegativeIntegerDefault0' }, + uniqueItems: { type: 'boolean', default: !1 }, + contains: { $ref: '#' }, + maxProperties: { $ref: '#/definitions/nonNegativeInteger' }, + minProperties: { $ref: '#/definitions/nonNegativeIntegerDefault0' }, + required: { $ref: '#/definitions/stringArray' }, + additionalProperties: { $ref: '#' }, + definitions: { type: 'object', additionalProperties: { $ref: '#' }, default: {} }, + properties: { type: 'object', additionalProperties: { $ref: '#' }, default: {} }, + patternProperties: { + type: 'object', + additionalProperties: { $ref: '#' }, + propertyNames: { format: 'regex' }, + default: {}, + }, + dependencies: { + type: 'object', + additionalProperties: { anyOf: [{ $ref: '#' }, { $ref: '#/definitions/stringArray' }] }, + }, + propertyNames: { $ref: '#' }, + const: !0, + enum: { type: 'array', items: !0, minItems: 1, uniqueItems: !0 }, + type: { + anyOf: [ + { $ref: '#/definitions/simpleTypes' }, + { type: 'array', items: { $ref: '#/definitions/simpleTypes' }, minItems: 1, uniqueItems: !0 }, + ], + }, + format: { type: 'string' }, + contentMediaType: { type: 'string' }, + contentEncoding: { type: 'string' }, + if: { $ref: '#' }, + then: { $ref: '#' }, + else: { $ref: '#' }, + allOf: { $ref: '#/definitions/schemaArray' }, + anyOf: { $ref: '#/definitions/schemaArray' }, + oneOf: { $ref: '#/definitions/schemaArray' }, + not: { $ref: '#' }, + }, + default: !0, + }; +}); +var wEe = d((dr, _Ee) => { + 'use strict'; + Object.defineProperty(dr, '__esModule', { value: !0 }); + dr.MissingRefError = + dr.ValidationError = + dr.CodeGen = + dr.Name = + dr.nil = + dr.stringify = + dr.str = + dr._ = + dr.KeywordCxt = + void 0; + var ckt = h7e(), + dkt = mEe(), + fkt = vEe(), + bEe = yEe(), + mkt = ['/properties'], + i5 = 'http://json-schema.org/draft-07/schema', + n5 = class extends ckt.default { + _addVocabularies() { + super._addVocabularies(), + dkt.default.forEach((t) => this.addVocabulary(t)), + this.opts.discriminator && this.addKeyword(fkt.default); + } + _addDefaultMetaSchema() { + if ((super._addDefaultMetaSchema(), !this.opts.meta)) return; + let t = this.opts.$data ? this.$dataMetaSchema(bEe, mkt) : bEe; + this.addMetaSchema(t, i5, !1), (this.refs['http://json-schema.org/schema'] = i5); + } + defaultMeta() { + return (this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(i5) ? i5 : void 0)); + } + }; + _Ee.exports = dr = n5; + Object.defineProperty(dr, '__esModule', { value: !0 }); + dr.default = n5; + var hkt = t2(); + Object.defineProperty(dr, 'KeywordCxt', { + enumerable: !0, + get: function () { + return hkt.KeywordCxt; + }, + }); + var Wg = Le(); + Object.defineProperty(dr, '_', { + enumerable: !0, + get: function () { + return Wg._; + }, + }); + Object.defineProperty(dr, 'str', { + enumerable: !0, + get: function () { + return Wg.str; + }, + }); + Object.defineProperty(dr, 'stringify', { + enumerable: !0, + get: function () { + return Wg.stringify; + }, + }); + Object.defineProperty(dr, 'nil', { + enumerable: !0, + get: function () { + return Wg.nil; + }, + }); + Object.defineProperty(dr, 'Name', { + enumerable: !0, + get: function () { + return Wg.Name; + }, + }); + Object.defineProperty(dr, 'CodeGen', { + enumerable: !0, + get: function () { + return Wg.CodeGen; + }, + }); + var gkt = L9(); + Object.defineProperty(dr, 'ValidationError', { + enumerable: !0, + get: function () { + return gkt.default; + }, + }); + var vkt = M9(); + Object.defineProperty(dr, 'MissingRefError', { + enumerable: !0, + get: function () { + return vkt.default; + }, + }); +}); +var li = d((Gn) => { + 'use strict'; + Object.defineProperty(Gn, '__esModule', { value: !0 }); + Gn.isUndefined = Gn.fixName = Gn.validateName = Gn.validateSingleChar = Gn.fixChar = Gn.validateChar = void 0; + function Akt(e) { + for (var t = 0; t < e.length; t++) { + var r = e.charCodeAt(t); + if (!(r === 9 || r === 10 || r === 13 || (r >= 32 && r <= 55295) || (r >= 57344 && r <= 65533))) { + if (t + 1 === e.length) return !1; + var n = e.charCodeAt(t + 1); + if (r >= 55296 && r <= 56319 && n >= 56320 && n <= 57343) { + t++; + continue; + } + return !1; + } + } + return !0; + } + Gn.validateChar = Akt; + function Ikt(e) { + for (var t = '', r = 0; r < e.length; r++) { + var n = e.charCodeAt(r); + if (n === 9 || n === 10 || n === 13 || (n >= 32 && n <= 55295) || (n >= 57344 && n <= 65533)) { + t += e[r]; + continue; + } + if (r + 1 === e.length) return (t += '\uFFFD'), t; + var a = e.charCodeAt(r + 1); + if (n >= 55296 && n <= 56319 && a >= 56320 && a <= 57343) { + (t += e[r] + e[r + 1]), r++; + continue; + } + t += '\uFFFD'; + } + return t; + } + Gn.fixChar = Ikt; + function Pkt(e) { + if (e.length === 0) return !1; + var t = e.charCodeAt(0); + if (e.length === 1) return t === 9 || t === 10 || t === 13 || (t >= 32 && t <= 55295) || (t >= 57344 && t <= 65533); + if (e.length !== 2) return !1; + var r = e.charCodeAt(1); + return t >= 55296 && t <= 56319 && r >= 56320 && r <= 57343; + } + Gn.validateSingleChar = Pkt; + function Rkt(e) { + if (e.length === 0) return !1; + var t = e.charCodeAt(0), + r = + t === 58 || + t === 95 || + (t >= 65 && t <= 90) || + (t >= 97 && t <= 122) || + (t >= 192 && t <= 214) || + (t >= 216 && t <= 246) || + (t >= 248 && t <= 767) || + (t >= 880 && t <= 893) || + (t >= 895 && t <= 8191) || + (t >= 8204 && t <= 8205) || + (t >= 8304 && t <= 8591) || + (t >= 11264 && t <= 12271) || + (t >= 12289 && t <= 55295) || + (t >= 63744 && t <= 64975) || + (t >= 65008 && t <= 65533); + if (e.length === 1) return r; + var n = e.charCodeAt(1), + a = t >= 55296 && t <= 56191 && n >= 56320 && n <= 57343; + if (!r && !a) return !1; + for (var o = a ? 2 : 1, s = o; s < e.length; s++) { + var l = e.charCodeAt(s); + if ( + !( + l === 58 || + l === 95 || + l === 45 || + l === 46 || + l === 183 || + (l >= 48 && l <= 57) || + (l >= 65 && l <= 90) || + (l >= 97 && l <= 122) || + (l >= 192 && l <= 214) || + (l >= 216 && l <= 246) || + (l >= 248 && l <= 767) || + (l >= 768 && l <= 879) || + (l >= 880 && l <= 893) || + (l >= 895 && l <= 8191) || + (l >= 8204 && l <= 8205) || + (l >= 8255 && l <= 8256) || + (l >= 8304 && l <= 8591) || + (l >= 11264 && l <= 12271) || + (l >= 12289 && l <= 55295) || + (l >= 63744 && l <= 64975) || + (l >= 65008 && l <= 65533) + ) + ) { + if (s + 1 === e.length) return !1; + var u = e.charCodeAt(s + 1); + if (l >= 55296 && l <= 56191 && u >= 56320 && u <= 57343) { + s++; + continue; + } + return !1; + } + } + return !0; + } + Gn.validateName = Rkt; + function jkt(e) { + var t = ''; + if (e.length === 0) return t; + var r = e.charCodeAt(0), + n = + r === 58 || + r === 95 || + (r >= 65 && r <= 90) || + (r >= 97 && r <= 122) || + (r >= 192 && r <= 214) || + (r >= 216 && r <= 246) || + (r >= 248 && r <= 767) || + (r >= 880 && r <= 893) || + (r >= 895 && r <= 8191) || + (r >= 8204 && r <= 8205) || + (r >= 8304 && r <= 8591) || + (r >= 11264 && r <= 12271) || + (r >= 12289 && r <= 55295) || + (r >= 63744 && r <= 64975) || + (r >= 65008 && r <= 65533); + if (e.length === 1) return n ? (t = e[0]) : (t = '\uFFFD'), t; + var a = e.charCodeAt(1), + o = r >= 55296 && r <= 56191 && a >= 56320 && a <= 57343; + o ? (t = e[0] + e[1]) : n ? (t = e[0]) : (t = '\uFFFD'); + for (var s = o ? 2 : 1, l = s; l < e.length; l++) { + var u = e.charCodeAt(l); + if ( + u === 58 || + u === 95 || + u === 45 || + u === 46 || + u === 183 || + (u >= 48 && u <= 57) || + (u >= 65 && u <= 90) || + (u >= 97 && u <= 122) || + (u >= 192 && u <= 214) || + (u >= 216 && u <= 246) || + (u >= 248 && u <= 767) || + (u >= 768 && u <= 879) || + (u >= 880 && u <= 893) || + (u >= 895 && u <= 8191) || + (u >= 8204 && u <= 8205) || + (u >= 8255 && u <= 8256) || + (u >= 8304 && u <= 8591) || + (u >= 11264 && u <= 12271) || + (u >= 12289 && u <= 55295) || + (u >= 63744 && u <= 64975) || + (u >= 65008 && u <= 65533) + ) { + t += e[l]; + continue; + } + if (l + 1 === e.length) return (t += '\uFFFD'), t; + var p = e.charCodeAt(l + 1); + if (u >= 55296 && u <= 56191 && p >= 56320 && p <= 57343) { + (t += e[l] + e[l + 1]), l++; + continue; + } + t += '\uFFFD'; + } + return t; + } + Gn.fixName = jkt; + function Dkt(e) { + return Object.prototype.toString.call(e) === '[object Undefined]'; + } + Gn.isUndefined = Dkt; +}); +var Jg = d((p5) => { + 'use strict'; + Object.defineProperty(p5, '__esModule', { value: !0 }); + p5.StringOptions = void 0; + var u5 = li(), + Nkt = (function () { + function e(t) { + (this.doubleQuotes = !1), + (this.indent = ' '), + (this.newline = ` +`), + (this.pretty = !0), + (0, u5.isUndefined)(t.doubleQuotes) || (this.doubleQuotes = t.doubleQuotes), + (0, u5.isUndefined)(t.indent) || (this.indent = t.indent), + (0, u5.isUndefined)(t.newline) || (this.newline = t.newline), + (0, u5.isUndefined)(t.pretty) || (this.pretty = t.pretty); + } + return e; + })(); + p5.StringOptions = Nkt; +}); +var c5 = d((oo) => { + 'use strict'; + Object.defineProperty(oo, '__esModule', { value: !0 }); + oo.escapeDoubleQuotes = + oo.escapeSingleQuotes = + oo.escapeRightAngleBracketsInCdataTerminator = + oo.escapeLeftAngleBrackets = + oo.escapeAmpersands = + void 0; + function qkt(e) { + return e.replace(/&/g, '&'); + } + oo.escapeAmpersands = qkt; + function Fkt(e) { + return e.replace(//g, ']]>'); + } + oo.escapeRightAngleBracketsInCdataTerminator = Lkt; + function Mkt(e) { + return e.replace(/'/g, '''); + } + oo.escapeSingleQuotes = Mkt; + function Ukt(e) { + return e.replace(/"/g, '"'); + } + oo.escapeDoubleQuotes = Ukt; +}); +var FF = d((qF) => { + 'use strict'; + Object.defineProperty(qF, '__esModule', { value: !0 }); + var $kt = qi(), + qEe = c5(), + NF = li(), + Bkt = (function () { + function e(t, r, n) { + (this._validation = r), + (0, NF.isUndefined)(n.replaceInvalidCharsInCharData) + ? (this._replaceInvalidCharsInCharData = !1) + : (this._replaceInvalidCharsInCharData = n.replaceInvalidCharsInCharData), + (this._parent = t), + (this.charData = n.charData); + } + return ( + Object.defineProperty(e.prototype, 'charData', { + get: function () { + return this._charData; + }, + set: function (t) { + if (this._replaceInvalidCharsInCharData) t = (0, NF.fixChar)(t); + else if (this._validation && !(0, NF.validateChar)(t)) + throw new Error( + (0, $kt.getContext)(this.up()) + + ': attribute text' + + (' "' + t + '" should not contain characters not') + + ' allowed in XML' + ); + this._charData = t; + }, + enumerable: !1, + configurable: !0, + }), + (e.prototype.toString = function () { + var t = this._charData; + return (t = (0, qEe.escapeAmpersands)(t)), (t = (0, qEe.escapeLeftAngleBrackets)(t)), t; + }), + (e.prototype.up = function () { + return this._parent; + }), + e + ); + })(); + qF.default = Bkt; +}); +var d5 = d((LF) => { + 'use strict'; + Object.defineProperty(LF, '__esModule', { value: !0 }); + var FEe = qi(), + LEe = li(), + Vkt = (function () { + function e(t, r, n) { + (this._hex = !1), + (this._validation = r), + (this._parent = t), + (this.char = n.char), + (0, LEe.isUndefined)(n.hex) || (this.hex = n.hex); + } + return ( + Object.defineProperty(e.prototype, 'char', { + get: function () { + return this._char; + }, + set: function (t) { + if (this._validation && !(0, LEe.validateSingleChar)(t)) + throw new Error( + (0, FEe.getContext)(this.up()) + + ': character reference' + + (' "' + t + '" should reference a single character,') + + ' and this character should be allowed in XML' + ); + this._char = t; + }, + enumerable: !1, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'hex', { + get: function () { + return this._hex; + }, + set: function (t) { + this._hex = t; + }, + enumerable: !1, + configurable: !0, + }), + (e.prototype.toString = function () { + var t; + if (this._char.length === 1) t = this._char.charCodeAt(0); + else { + var r = this._char.charCodeAt(0); + if (r >= 55296 && r <= 56319 && this._char.length > 1) { + var n = this._char.charCodeAt(1); + if (n >= 56320 && n <= 57343) t = (r - 55296) * 1024 + n - 56320 + 65536; + else + throw new Error( + (0, FEe.getContext)(this.up()) + + ': character' + + (' reference "' + this.char + '" should') + + ' reference a valid Unicode character' + ); + } else t = r; + } + return this._hex ? '&#x' + t.toString(16) + ';' : '&#' + t + ';'; + }), + (e.prototype.up = function () { + return this._parent; + }), + e + ); + })(); + LF.default = Vkt; +}); +var f5 = d((MF) => { + 'use strict'; + Object.defineProperty(MF, '__esModule', { value: !0 }); + var zkt = qi(), + Hkt = li(), + Gkt = (function () { + function e(t, r, n) { + (this._validation = r), (this._parent = t), (this.name = n.name); + } + return ( + Object.defineProperty(e.prototype, 'name', { + get: function () { + return this._name; + }, + set: function (t) { + if (this._validation && !(0, Hkt.validateName)(t)) + throw new Error( + (0, zkt.getContext)(this.up()) + + ': entity reference name' + + (' "' + t + '" should not contain characters not') + + ' allowed in XML names' + ); + this._name = t; + }, + enumerable: !1, + configurable: !0, + }), + (e.prototype.toString = function () { + return '&' + this._name + ';'; + }), + (e.prototype.up = function () { + return this._parent; + }), + e + ); + })(); + MF.default = Gkt; +}); +var m5 = d((y2) => { + 'use strict'; + var BF = + (y2 && y2.__importDefault) || + function (e) { + return e && e.__esModule ? e : { default: e }; + }; + Object.defineProperty(y2, '__esModule', { value: !0 }); + var UF = qi(), + MEe = c5(), + Wkt = Jg(), + $F = li(), + Kkt = BF(FF()), + Xkt = BF(d5()), + Jkt = BF(f5()), + Ykt = (function () { + function e(t, r, n) { + (this._validation = r), + (0, $F.isUndefined)(n.replaceInvalidCharsInName) + ? (this._replaceInvalidCharsInName = !1) + : (this._replaceInvalidCharsInName = n.replaceInvalidCharsInName), + (this._children = []), + (this._parent = t), + (this.name = n.name); + } + return ( + Object.defineProperty(e.prototype, 'name', { + get: function () { + return this._name; + }, + set: function (t) { + if (this._replaceInvalidCharsInName) { + if (((t = (0, $F.fixName)(t)), t.length === 0)) + throw new Error((0, UF.getContext)(this.up()) + ': attribute name should not be empty'); + } else if (this._validation && !(0, $F.validateName)(t)) + throw t.length === 0 + ? new Error((0, UF.getContext)(this.up()) + ': attribute name should not be empty') + : new Error( + (0, UF.getContext)(this.up()) + + ': attribute name' + + (' "' + t + '" should not contain characters not') + + ' allowed in XML names' + ); + this._name = t; + }, + enumerable: !1, + configurable: !0, + }), + (e.prototype.charRef = function (t) { + var r = new Xkt.default(this, this._validation, t); + return this._children.push(r), r; + }), + (e.prototype.entityRef = function (t) { + var r = new Jkt.default(this, this._validation, t); + return this._children.push(r), r; + }), + (e.prototype.text = function (t) { + var r = new Kkt.default(this, this._validation, t); + return this._children.push(r), r; + }), + (e.prototype.toString = function (t) { + t === void 0 && (t = {}); + for ( + var r = new Wkt.StringOptions(t), + n = r.doubleQuotes ? '"' : "'", + a = this._name + '=' + n, + o = 0, + s = this._children; + o < s.length; + o++ + ) { + var l = s[o]; + r.doubleQuotes + ? (a += (0, MEe.escapeDoubleQuotes)(l.toString())) + : (a += (0, MEe.escapeSingleQuotes)(l.toString())); + } + return (a += n), a; + }), + (e.prototype.up = function () { + return this._parent; + }), + e + ); + })(); + y2.default = Ykt; +}); +var zF = d((VF) => { + 'use strict'; + Object.defineProperty(VF, '__esModule', { value: !0 }); + var Qkt = qi(), + Zkt = li(), + eAt = (function () { + function e(t, r, n) { + (this._validation = r), (this._parent = t), (this.charData = n.charData); + } + return ( + Object.defineProperty(e.prototype, 'charData', { + get: function () { + return this._charData; + }, + set: function (t) { + if (this._validation && !(0, Zkt.validateChar)(t)) + throw new Error( + (0, Qkt.getContext)(this.up()) + + ': attribute-list' + + (' declaration "' + t + '" should not contain') + + ' characters not allowed in XML' + ); + this._charData = t; + }, + enumerable: !1, + configurable: !0, + }), + (e.prototype.toString = function () { + return ''; + }), + (e.prototype.up = function () { + return this._parent; + }), + e + ); + })(); + VF.default = eAt; +}); +var GF = d((HF) => { + 'use strict'; + Object.defineProperty(HF, '__esModule', { value: !0 }); + var tAt = qi(), + rAt = li(), + iAt = (function () { + function e(t, r, n) { + (this._validation = r), (this._parent = t), (this.charData = n.charData); + } + return ( + Object.defineProperty(e.prototype, 'charData', { + get: function () { + return this._charData; + }, + set: function (t) { + if (this._validation && !(0, rAt.validateChar)(t)) + throw new Error( + (0, tAt.getContext)(this.up()) + + ': element declaration' + + (' "' + t + '" should not contain characters') + + ' not allowed in XML' + ); + this._charData = t; + }, + enumerable: !1, + configurable: !0, + }), + (e.prototype.toString = function () { + return ''; + }), + (e.prototype.up = function () { + return this._parent; + }), + e + ); + })(); + HF.default = iAt; +}); +var KF = d((WF) => { + 'use strict'; + Object.defineProperty(WF, '__esModule', { value: !0 }); + var nAt = qi(), + aAt = li(), + oAt = (function () { + function e(t, r, n) { + (this._validation = r), (this._parent = t), (this.charData = n.charData); + } + return ( + Object.defineProperty(e.prototype, 'charData', { + get: function () { + return this._charData; + }, + set: function (t) { + if (this._validation && !(0, aAt.validateChar)(t)) + throw new Error( + (0, nAt.getContext)(this.up()) + + ': entity declaration' + + (' "' + t + '" should not contain characters') + + ' not allowed in XML' + ); + this._charData = t; + }, + enumerable: !1, + configurable: !0, + }), + (e.prototype.toString = function () { + return ''; + }), + (e.prototype.up = function () { + return this._parent; + }), + e + ); + })(); + WF.default = oAt; +}); +var JF = d((XF) => { + 'use strict'; + Object.defineProperty(XF, '__esModule', { value: !0 }); + var sAt = qi(), + lAt = li(), + uAt = (function () { + function e(t, r, n) { + (this._validation = r), (this._parent = t), (this.charData = n.charData); + } + return ( + Object.defineProperty(e.prototype, 'charData', { + get: function () { + return this._charData; + }, + set: function (t) { + if (this._validation && !(0, lAt.validateChar)(t)) + throw new Error( + (0, sAt.getContext)(this.up()) + + ': notation declaration' + + (' "' + t + '" should not contain characters') + + ' not allowed in XML' + ); + this._charData = t; + }, + enumerable: !1, + configurable: !0, + }), + (e.prototype.toString = function () { + return ''; + }), + (e.prototype.up = function () { + return this._parent; + }), + e + ); + })(); + XF.default = uAt; +}); +var QF = d((YF) => { + 'use strict'; + Object.defineProperty(YF, '__esModule', { value: !0 }); + var pAt = qi(), + cAt = li(), + dAt = (function () { + function e(t, r, n) { + (this._validation = r), (this._parent = t), (this.name = n.name); + } + return ( + Object.defineProperty(e.prototype, 'name', { + get: function () { + return this._name; + }, + set: function (t) { + if (this._validation && !(0, cAt.validateName)(t)) + throw new Error( + (0, pAt.getContext)(this.up()) + + ': parameter entity' + + (' reference name "' + t + '" should not contain') + + ' characters not allowed in XML names' + ); + this._name = t; + }, + enumerable: !1, + configurable: !0, + }), + (e.prototype.toString = function () { + return '%' + this._name + ';'; + }), + (e.prototype.up = function () { + return this._parent; + }), + e + ); + })(); + YF.default = dAt; +}); +var b2 = d((ZF) => { + 'use strict'; + Object.defineProperty(ZF, '__esModule', { value: !0 }); + var h5 = qi(), + g5 = li(), + fAt = (function () { + function e(t, r, n) { + (this._validation = r), (this._parent = t), (this.content = n.content), (this.target = n.target); + } + return ( + Object.defineProperty(e.prototype, 'content', { + get: function () { + return this._content; + }, + set: function (t) { + if (!(0, g5.isUndefined)(t)) { + if (this._validation && !(0, g5.validateChar)(t)) + throw new Error( + (0, h5.getContext)(this.up()) + + ': processing' + + (' instruction content "' + t + '" should') + + ' not contain characters not allowed in XML' + ); + if (this._validation && t.indexOf('?>') !== -1) + throw new Error( + (0, h5.getContext)(this.up()) + + ': processing' + + (' instruction content "' + t + '" should') + + " not contain the string '?>'" + ); + } + this._content = t; + }, + enumerable: !1, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'target', { + get: function () { + return this._target; + }, + set: function (t) { + if (this._validation && !(0, g5.validateName)(t)) + throw new Error( + (0, h5.getContext)(this.up()) + + ': processing' + + (' instruction target "' + t + '" should') + + ' not contain characters not allowed in XML names' + ); + if (this._validation && t === 'xml') + throw new Error( + (0, h5.getContext)(this.up()) + + ': processing' + + (' instruction target "' + t + '" should') + + " not be the string 'xml'" + ); + this._target = t; + }, + enumerable: !1, + configurable: !0, + }), + (e.prototype.toString = function () { + return (0, g5.isUndefined)(this._content) + ? '' + : ''; + }), + (e.prototype.up = function () { + return this._parent; + }), + e + ); + })(); + ZF.default = fAt; +}); +var v5 = d((_f) => { + 'use strict'; + var wf = + (_f && _f.__importDefault) || + function (e) { + return e && e.__esModule ? e : { default: e }; + }; + Object.defineProperty(_f, '__esModule', { value: !0 }); + _f.validatePubId = void 0; + var Jp = qi(), + mAt = Jg(), + Zs = li(), + hAt = wf(_2()), + gAt = wf(zF()), + vAt = wf(GF()), + yAt = wf(KF()), + bAt = wf(JF()), + _At = wf(QF()), + wAt = wf(b2()), + SAt = (function () { + function e(t, r, n) { + (this._pubId = void 0), + (this._sysId = void 0), + (this._validation = r), + (this._children = []), + (this._parent = t), + (this.name = n.name), + (0, Zs.isUndefined)(n.sysId) || (this.sysId = n.sysId), + (0, Zs.isUndefined)(n.pubId) || (this.pubId = n.pubId); + } + return ( + Object.defineProperty(e.prototype, 'name', { + get: function () { + return this._name; + }, + set: function (t) { + if (this._validation && !(0, Zs.validateName)(t)) + throw new Error( + (0, Jp.getContext)(this.up()) + + ': DTD name "' + + t + + '" should not contain characters not allowed in XML names' + ); + this._name = t; + }, + enumerable: !1, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'pubId', { + get: function () { + return this._pubId; + }, + set: function (t) { + if (!(0, Zs.isUndefined)(t)) { + if (this._validation && !UEe(t)) + throw new Error( + (0, Jp.getContext)(this.up()) + + ': DTD public' + + (' identifier "' + t + '" should not contain') + + ' characters not allowed in public identifiers' + ); + if (this._validation && (0, Zs.isUndefined)(this._sysId)) + throw new Error( + (0, Jp.getContext)(this.up()) + + ': DTD public' + + (' identifier "' + t + '" should not be defined') + + ' if system identifier is undefined' + ); + } + this._pubId = t; + }, + enumerable: !1, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'sysId', { + get: function () { + return this._sysId; + }, + set: function (t) { + if (!(0, Zs.isUndefined)(t)) { + if (this._validation && !(0, Zs.validateChar)(t)) + throw new Error( + (0, Jp.getContext)(this.up()) + + ': DTD system' + + (' identifier "' + t + '" should not contain') + + ' characters not allowed in XML' + ); + if (this._validation && t.indexOf("'") !== -1 && t.indexOf('"') !== -1) + throw new Error( + (0, Jp.getContext)(this.up()) + + ': DTD system' + + (' identifier "' + t + '" should not contain') + + ' both single quotes and double quotes' + ); + } + this._sysId = t; + }, + enumerable: !1, + configurable: !0, + }), + (e.prototype.attlist = function (t) { + var r = new gAt.default(this, this._validation, t); + return this._children.push(r), r; + }), + (e.prototype.comment = function (t) { + var r = new hAt.default(this, this._validation, t); + return this._children.push(r), r; + }), + (e.prototype.element = function (t) { + var r = new vAt.default(this, this._validation, t); + return this._children.push(r), r; + }), + (e.prototype.entity = function (t) { + var r = new yAt.default(this, this._validation, t); + return this._children.push(r), r; + }), + (e.prototype.notation = function (t) { + var r = new bAt.default(this, this._validation, t); + return this._children.push(r), r; + }), + (e.prototype.paramEntityRef = function (t) { + var r = new _At.default(this, this._validation, t); + return this._children.push(r), r; + }), + (e.prototype.procInst = function (t) { + var r = new wAt.default(this, this._validation, t); + return this._children.push(r), r; + }), + (e.prototype.toString = function (t) { + t === void 0 && (t = {}); + var r = new mAt.StringOptions(t), + n = ''); + } else n += '>'; + return n; + }), + (e.prototype.up = function () { + return this._parent; + }), + (e.prototype.appendId = function (t, r, n, a) { + if (((n += t + ' '), a.doubleQuotes)) { + if (this._validation && r.indexOf('"') !== -1) + throw new Error( + (0, Jp.getContext)(this.up()) + + ': doubleQuotes option inconsistent with DTD system identifier or public identifier' + ); + n += '"' + r + '"'; + } else { + if (this._validation && r.indexOf("'") !== -1) + throw new Error( + (0, Jp.getContext)(this) + + ': doubleQuotes option inconsistent with DTD system identifier or public identifier' + ); + n += "'" + r + "'"; + } + return n; + }), + e + ); + })(); + _f.default = SAt; + function UEe(e) { + for (var t = 0; t < e.length; t++) { + var r = e.charCodeAt(t); + if ( + !( + r === 10 || + r === 13 || + r === 32 || + r === 33 || + (r >= 35 && r <= 37) || + (r >= 39 && r <= 47) || + (r >= 48 && r <= 57) || + r === 58 || + r === 59 || + r === 61 || + r === 63 || + (r >= 64 && r <= 90) || + r === 95 || + (r >= 97 && r <= 122) + ) + ) + return t + 1 === e.length, !1; + } + return !0; + } + _f.validatePubId = UEe; +}); +var rL = d((tL) => { + 'use strict'; + Object.defineProperty(tL, '__esModule', { value: !0 }); + var $Ee = qi(), + eL = li(), + EAt = (function () { + function e(t, r, n) { + (this._validation = r), + (0, eL.isUndefined)(n.replaceInvalidCharsInCharData) + ? (this._replaceInvalidCharsInCharData = !1) + : (this._replaceInvalidCharsInCharData = n.replaceInvalidCharsInCharData), + (this._parent = t), + (this.charData = n.charData); + } + return ( + Object.defineProperty(e.prototype, 'charData', { + get: function () { + return this._charData; + }, + set: function (t) { + if (this._replaceInvalidCharsInCharData) t = (0, eL.fixChar)(t); + else if (this._validation && !(0, eL.validateChar)(t)) + throw new Error( + (0, $Ee.getContext)(this.up()) + + ': CDATA section' + + (' "' + t + '" should not contain characters') + + ' not allowed in XML' + ); + if (this._replaceInvalidCharsInCharData) t = t.replace(']]>', '\uFFFD\uFFFD\uFFFD'); + else if (this._validation && t.indexOf(']]>') !== -1) + throw new Error( + (0, $Ee.getContext)(this.up()) + + ': CDATA section' + + (' "' + t + '" should not contain the string') + + " ']]>'" + ); + this._charData = t; + }, + enumerable: !1, + configurable: !0, + }), + (e.prototype.toString = function () { + return ''; + }), + (e.prototype.up = function () { + return this._parent; + }), + e + ); + })(); + tL.default = EAt; +}); +var oL = d((aL) => { + 'use strict'; + Object.defineProperty(aL, '__esModule', { value: !0 }); + var xAt = qi(), + iL = c5(), + nL = li(), + OAt = (function () { + function e(t, r, n) { + (this._validation = r), + (0, nL.isUndefined)(n.replaceInvalidCharsInCharData) + ? (this._replaceInvalidCharsInCharData = !1) + : (this._replaceInvalidCharsInCharData = n.replaceInvalidCharsInCharData), + (this._parent = t), + (this.charData = n.charData); + } + return ( + Object.defineProperty(e.prototype, 'charData', { + get: function () { + return this._charData; + }, + set: function (t) { + if (this._replaceInvalidCharsInCharData) t = (0, nL.fixChar)(t); + else if (this._validation && !(0, nL.validateChar)(t)) + throw new Error( + (0, xAt.getContext)(this.up()) + + ': character data' + + ('"' + t + '" should not contain characters not') + + ' allowed in XML' + ); + this._charData = t; + }, + enumerable: !1, + configurable: !0, + }), + (e.prototype.toString = function () { + var t = this._charData; + return ( + (t = (0, iL.escapeAmpersands)(t)), + (t = (0, iL.escapeLeftAngleBrackets)(t)), + (t = (0, iL.escapeRightAngleBracketsInCdataTerminator)(t)), + t + ); + }), + (e.prototype.up = function () { + return this._parent; + }), + e + ); + })(); + aL.default = OAt; +}); +var w5 = d((E2) => { + 'use strict'; + var Sf = + (E2 && E2.__importDefault) || + function (e) { + return e && e.__esModule ? e : { default: e }; + }; + Object.defineProperty(E2, '__esModule', { value: !0 }); + var y5 = qi(), + TAt = Jg(), + w2 = li(), + BEe = Sf(m5()), + CAt = Sf(rL()), + S2 = Sf(oL()), + b5 = Sf(d5()), + kAt = Sf(_2()), + _5 = Sf(f5()), + AAt = Sf(b2()), + IAt = (function () { + function e(t, r, n) { + (this._validation = r), + (0, w2.isUndefined)(n.replaceInvalidCharsInName) + ? (this._replaceInvalidCharsInName = !1) + : (this._replaceInvalidCharsInName = n.replaceInvalidCharsInName), + (0, w2.isUndefined)(n.useSelfClosingTagIfEmpty) + ? (this._useSelfClosingTagIfEmpty = !0) + : (this._useSelfClosingTagIfEmpty = n.useSelfClosingTagIfEmpty), + (this._children = []), + (this._attributeNames = []), + (this._parent = t), + (this.name = n.name); + } + return ( + Object.defineProperty(e.prototype, 'name', { + get: function () { + return this._name; + }, + set: function (t) { + if (this._replaceInvalidCharsInName) { + if (((t = (0, w2.fixName)(t)), t.length === 0)) + throw new Error((0, y5.getContext)(this.up()) + ': element name should not be empty'); + } else if (this._validation && !(0, w2.validateName)(t)) + throw t.length === 0 + ? new Error((0, y5.getContext)(this.up()) + ': element name should not be empty') + : new Error( + (0, y5.getContext)(this.up()) + + ': element name' + + (' "' + t + '" should not contain characters not') + + ' allowed in XML names' + ); + this._name = t; + }, + enumerable: !1, + configurable: !0, + }), + (e.prototype.attribute = function (t) { + if (this._validation && this._attributeNames.indexOf(t.name) !== -1) + throw new Error( + (0, y5.getContext)(this.up()) + + ': element "' + + this.name + + '" already contains an attribute with the' + + (' name "' + t.name + '"') + ); + var r = new BEe.default(this, this._validation, t); + return this._children.push(r), this._attributeNames.push(t.name), r; + }), + (e.prototype.cdata = function (t) { + var r = new CAt.default(this, this._validation, t); + return this._children.push(r), r; + }), + (e.prototype.charData = function (t) { + var r = new S2.default(this, this._validation, t); + return this._children.push(r), r; + }), + (e.prototype.charRef = function (t) { + var r = new b5.default(this, this._validation, t); + return this._children.push(r), r; + }), + (e.prototype.comment = function (t) { + var r = new kAt.default(this, this._validation, t); + return this._children.push(r), r; + }), + (e.prototype.element = function (t) { + var r = new e(this, this._validation, t); + return this._children.push(r), r; + }), + (e.prototype.entityRef = function (t) { + var r = new _5.default(this, this._validation, t); + return this._children.push(r), r; + }), + (e.prototype.procInst = function (t) { + var r = new AAt.default(this, this._validation, t); + return this._children.push(r), r; + }), + (e.prototype.toString = function (t) { + return t === void 0 && (t = {}), this.toStringWithIndent(t, ''); + }), + (e.prototype.up = function () { + return this._parent; + }), + (e.prototype.toStringWithIndent = function (t, r) { + for ( + var n = new TAt.StringOptions(t), a = r + n.indent, o = '<' + this._name, s = [], l = 0, u = this._children; + l < u.length; + l++ + ) { + var p = u[l]; + p instanceof BEe.default ? (o += ' ' + p.toString(t)) : s.push(p); + } + if (s.length > 0) { + for (var c = '', f = 0; f < s.length; f++) { + var h = s[f], + m = ''; + h instanceof e ? (m += h.toStringWithIndent(n, a)) : (m += h.toString()); + var v = f > 0 ? s[f - 1] : void 0; + (h instanceof S2.default && h.toString() === '') || + (n.pretty && (this.allSameLineNodes(s) || (f > 0 && this.onSameLine(h, v)) || (m = n.newline + a + m)), + (c += m)); + } + n.pretty && (this.allSameLineNodes(s) || (c += n.newline + r)), + c.length === 0 && this._useSelfClosingTagIfEmpty ? (o += '/>') : (o += '>' + c + ''); + } else this._useSelfClosingTagIfEmpty ? (o += '/>') : (o += '>'); + return o; + }), + (e.prototype.allSameLineNodes = function (t) { + for (var r = 0, n = t; r < n.length; r++) { + var a = n[r]; + if (!(a instanceof b5.default || a instanceof _5.default || a instanceof S2.default)) return !1; + } + return !0; + }), + (e.prototype.onSameLine = function (t, r) { + return ( + (t instanceof b5.default || t instanceof _5.default || t instanceof S2.default) && + !(0, w2.isUndefined)(r) && + (r instanceof b5.default || r instanceof _5.default || r instanceof S2.default) + ); + }), + e + ); + })(); + E2.default = IAt; +}); +var qi = d((Yg) => { + 'use strict'; + var E5 = + (Yg && Yg.__importDefault) || + function (e) { + return e && e.__esModule ? e : { default: e }; + }; + Object.defineProperty(Yg, '__esModule', { value: !0 }); + Yg.getContext = void 0; + var PAt = E5(m5()), + RAt = E5(x5()), + jAt = E5(v5()), + DAt = E5(w5()); + function S5(e) { + if (e instanceof PAt.default) return S5(e.up()) + (' > attribute "' + e.name + '"'); + if (e instanceof RAt.default) return 'in XML document'; + if (e instanceof jAt.default) return S5(e.up()) + ' > DTD'; + if (e instanceof DAt.default) return S5(e.up()) + (' > element "' + e.name + '"'); + throw new Error('Unrecognized object of type ' + Object.prototype.toString.call(e)); + } + Yg.getContext = S5; +}); +var _2 = d((uL) => { + 'use strict'; + Object.defineProperty(uL, '__esModule', { value: !0 }); + var sL = qi(), + lL = li(), + NAt = (function () { + function e(t, r, n) { + (this._validation = r), + (0, lL.isUndefined)(n.replaceInvalidCharsInCharData) + ? (this._replaceInvalidCharsInCharData = !1) + : (this._replaceInvalidCharsInCharData = n.replaceInvalidCharsInCharData), + (this._parent = t), + (this.charData = n.charData); + } + return ( + Object.defineProperty(e.prototype, 'charData', { + get: function () { + return this._charData; + }, + set: function (t) { + if (this._replaceInvalidCharsInCharData) t = (0, lL.fixChar)(t); + else if (this._validation && !(0, lL.validateChar)(t)) + throw new Error( + (0, sL.getContext)(this.up()) + + ': comment content' + + (' "' + t + '" should not contain characters') + + ' not allowed in XML' + ); + if (this._replaceInvalidCharsInCharData) t = t.replace('--', '\uFFFD\uFFFD'); + else if (this._validation && t.indexOf('--') !== -1) + throw new Error( + (0, sL.getContext)(this.up()) + + ': comment content' + + (' "' + t + '" should not contain the string') + + " '--'" + ); + if (this._replaceInvalidCharsInCharData) + t.lastIndexOf('-') === t.length - 1 && (t = t.substr(0, t.length - 1) + '\uFFFD'); + else if (this._validation && t.lastIndexOf('-') === t.length - 1) + throw new Error( + (0, sL.getContext)(this.up()) + + ': comment content' + + (' "' + t + '" should not end with the string') + + " '-'" + ); + this._charData = t; + }, + enumerable: !1, + configurable: !0, + }), + (e.prototype.toString = function () { + return ''; + }), + (e.prototype.up = function () { + return this._parent; + }), + e + ); + })(); + uL.default = NAt; +}); +var dL = d((cL) => { + 'use strict'; + Object.defineProperty(cL, '__esModule', { value: !0 }); + var pL = qi(), + qAt = Jg(), + x2 = li(), + FAt = (function () { + function e(t, r, n) { + (this._version = '1.0'), + (this._validation = r), + (this._parent = t), + (this.encoding = n.encoding), + (this.standalone = n.standalone), + (0, x2.isUndefined)(n.version) || (this.version = n.version); + } + return ( + Object.defineProperty(e.prototype, 'encoding', { + get: function () { + return this._encoding; + }, + set: function (t) { + if (this._validation && !(0, x2.isUndefined)(t) && !LAt(t)) + throw new Error( + (0, pL.getContext)(this.up()) + + ': declaration' + + (' encoding attribute ' + t + ' should be a') + + ' valid encoding' + ); + this._encoding = t; + }, + enumerable: !1, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'standalone', { + get: function () { + return this._standalone; + }, + set: function (t) { + if (this._validation && !(0, x2.isUndefined)(t) && t !== 'yes' && t !== 'no') + throw new Error( + (0, pL.getContext)(this.up()) + + ': declaration' + + (' standalone attribute ' + t + ' should') + + " be the string 'yes' or the string 'no'" + ); + this._standalone = t; + }, + enumerable: !1, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'version', { + get: function () { + return this._version; + }, + set: function (t) { + if (this._validation && !MAt(t)) + throw new Error( + (0, pL.getContext)(this.up()) + + ': declaration version' + + (' attribute ' + t + ' should be a valid XML') + + ' version' + ); + this._version = t; + }, + enumerable: !1, + configurable: !0, + }), + (e.prototype.toString = function (t) { + t === void 0 && (t = {}); + var r = new qAt.StringOptions(t), + n = r.doubleQuotes ? '"' : "'", + a = ''), + a + ); + }), + (e.prototype.up = function () { + return this._parent; + }), + e + ); + })(); + cL.default = FAt; + function LAt(e) { + if (e.length === 0) return !1; + var t = e.charCodeAt(0); + if (!((t >= 65 && t <= 90) || (t >= 97 && t <= 122))) return !1; + for (var r = 1; r < e.length; r++) { + var n = e.charCodeAt(r); + if (!(n === 95 || n === 45 || n === 46 || (n >= 48 && n <= 57) || (n >= 65 && n <= 90) || (n >= 97 && n <= 122))) + return r + 1 === e.length, !1; + } + return !0; + } + function MAt(e) { + for (var t = 0; t <= 9; t++) if (e === '1.' + t) return !0; + return !1; + } +}); +var x5 = d((T2) => { + 'use strict'; + var C2 = + (T2 && T2.__importDefault) || + function (e) { + return e && e.__esModule ? e : { default: e }; + }; + Object.defineProperty(T2, '__esModule', { value: !0 }); + var UAt = Jg(), + $At = li(), + BAt = C2(_2()), + VEe = C2(dL()), + zEe = C2(v5()), + O2 = C2(w5()), + VAt = C2(b2()), + zAt = (function () { + function e(t) { + (this._children = []), (this._validation = (0, $At.isUndefined)(t.validation) ? !0 : t.validation); + } + return ( + (e.prototype.comment = function (t) { + var r = new BAt.default(this, this._validation, t); + return this._children.push(r), r; + }), + (e.prototype.decl = function (t) { + if ((t === void 0 && (t = {}), this._validation && this._children.length !== 0)) + throw new Error('in XML document: declaration must be the first child'); + var r = new VEe.default(this, this._validation, t); + return this._children.push(r), r; + }), + (e.prototype.dtd = function (t) { + var r = this._children.filter(function (a) { + return a instanceof O2.default; + }); + if (this._validation && r.length !== 0) throw new Error('in XML document: DTD must precede the root element'); + var n = new zEe.default(this, this._validation, t); + return this._children.push(n), n; + }), + (e.prototype.element = function (t) { + var r = this._children.filter(function (a) { + return a instanceof O2.default; + }); + if (this._validation && r.length !== 0) + throw new Error('in XML document: only one root element is permitted'); + var n = new O2.default(this, this._validation, t); + return this._children.push(n), n; + }), + (e.prototype.procInst = function (t) { + var r = new VAt.default(this, this._validation, t); + return this._children.push(r), r; + }), + (e.prototype.toString = function (t) { + t === void 0 && (t = {}); + var r = this._children.filter(function (p) { + return p instanceof O2.default; + }); + if (this._validation && r.length !== 1) + throw new Error('in XML document: no more than one root element is permitted'); + for (var n = new UAt.StringOptions(t), a = '', o = 0, s = this._children; o < s.length; o++) { + var l = s[o]; + l instanceof VEe.default || l instanceof zEe.default || l instanceof O2.default + ? (a += l.toString(t)) + : (a += l.toString()), + n.pretty && (a += n.newline); + } + var u = a.length - n.newline.length; + return a.substr(u) === n.newline && (a = a.substr(0, u)), a; + }), + e + ); + })(); + T2.default = zAt; +}); +var HEe = d((Pe) => { + 'use strict'; + var Ei = + (Pe && Pe.__importDefault) || + function (e) { + return e && e.__esModule ? e : { default: e }; + }; + Object.defineProperty(Pe, '__esModule', { value: !0 }); + Pe.document = + Pe.XmlProcInst = + Pe.XmlEntityRef = + Pe.XmlElement = + Pe.XmlDtdParamEntityRef = + Pe.XmlDtdNotation = + Pe.XmlDtdEntity = + Pe.XmlDtdElement = + Pe.XmlDtdAttlist = + Pe.XmlDtd = + Pe.XmlDocument = + Pe.XmlDecl = + Pe.XmlComment = + Pe.XmlCharRef = + Pe.XmlCharData = + Pe.XmlCdata = + Pe.XmlAttributeText = + Pe.XmlAttribute = + void 0; + var HAt = Ei(x5()), + GAt = m5(); + Object.defineProperty(Pe, 'XmlAttribute', { + enumerable: !0, + get: function () { + return Ei(GAt).default; + }, + }); + var WAt = FF(); + Object.defineProperty(Pe, 'XmlAttributeText', { + enumerable: !0, + get: function () { + return Ei(WAt).default; + }, + }); + var KAt = rL(); + Object.defineProperty(Pe, 'XmlCdata', { + enumerable: !0, + get: function () { + return Ei(KAt).default; + }, + }); + var XAt = oL(); + Object.defineProperty(Pe, 'XmlCharData', { + enumerable: !0, + get: function () { + return Ei(XAt).default; + }, + }); + var JAt = d5(); + Object.defineProperty(Pe, 'XmlCharRef', { + enumerable: !0, + get: function () { + return Ei(JAt).default; + }, + }); + var YAt = _2(); + Object.defineProperty(Pe, 'XmlComment', { + enumerable: !0, + get: function () { + return Ei(YAt).default; + }, + }); + var QAt = dL(); + Object.defineProperty(Pe, 'XmlDecl', { + enumerable: !0, + get: function () { + return Ei(QAt).default; + }, + }); + var ZAt = x5(); + Object.defineProperty(Pe, 'XmlDocument', { + enumerable: !0, + get: function () { + return Ei(ZAt).default; + }, + }); + var eIt = v5(); + Object.defineProperty(Pe, 'XmlDtd', { + enumerable: !0, + get: function () { + return Ei(eIt).default; + }, + }); + var tIt = zF(); + Object.defineProperty(Pe, 'XmlDtdAttlist', { + enumerable: !0, + get: function () { + return Ei(tIt).default; + }, + }); + var rIt = GF(); + Object.defineProperty(Pe, 'XmlDtdElement', { + enumerable: !0, + get: function () { + return Ei(rIt).default; + }, + }); + var iIt = KF(); + Object.defineProperty(Pe, 'XmlDtdEntity', { + enumerable: !0, + get: function () { + return Ei(iIt).default; + }, + }); + var nIt = JF(); + Object.defineProperty(Pe, 'XmlDtdNotation', { + enumerable: !0, + get: function () { + return Ei(nIt).default; + }, + }); + var aIt = QF(); + Object.defineProperty(Pe, 'XmlDtdParamEntityRef', { + enumerable: !0, + get: function () { + return Ei(aIt).default; + }, + }); + var oIt = w5(); + Object.defineProperty(Pe, 'XmlElement', { + enumerable: !0, + get: function () { + return Ei(oIt).default; + }, + }); + var sIt = f5(); + Object.defineProperty(Pe, 'XmlEntityRef', { + enumerable: !0, + get: function () { + return Ei(sIt).default; + }, + }); + var lIt = b2(); + Object.defineProperty(Pe, 'XmlProcInst', { + enumerable: !0, + get: function () { + return Ei(lIt).default; + }, + }); + function uIt(e) { + return e === void 0 && (e = {}), new HAt.default(e); + } + Pe.document = uIt; +}); +var fL = d((xi) => { + 'use strict'; + Object.defineProperty(xi, '__esModule', { value: !0 }); + xi.stringify = xi.isMap = xi.isSet = xi.isFunction = xi.isArray = xi.isObject = xi.isNull = xi.isUndefined = void 0; + function GEe(e) { + return Object.prototype.toString.call(e) === '[object Undefined]'; + } + xi.isUndefined = GEe; + function WEe(e) { + return Object.prototype.toString.call(e) === '[object Null]'; + } + xi.isNull = WEe; + function pIt(e) { + return Object.prototype.toString.call(e) === '[object Object]'; + } + xi.isObject = pIt; + function cIt(e) { + return Object.prototype.toString.call(e) === '[object Array]'; + } + xi.isArray = cIt; + function KEe(e) { + return Object.prototype.toString.call(e) === '[object Function]'; + } + xi.isFunction = KEe; + function dIt(e) { + return Object.prototype.toString.call(e) === '[object Set]'; + } + xi.isSet = dIt; + function fIt(e) { + return Object.prototype.toString.call(e) === '[object Map]'; + } + xi.isMap = fIt; + function mIt(e) { + return !GEe(e) && !WEe(e) && KEe(e?.toString) && (e = e.toString()), String(e); + } + xi.stringify = mIt; +}); +var exe = d((Wn) => { + 'use strict'; + Object.defineProperty(Wn, '__esModule', { value: !0 }); + Wn.WrapHandlers = Wn.TypeHandlers = Wn.FormatOptions = Wn.DtdOptions = Wn.DeclarationOptions = Wn.Options = void 0; + var Qo = fL(), + hIt = (function () { + function e(t) { + t === void 0 && (t = {}), + (this.aliasString = '='), + (this.attributeString = '@'), + (this.cdataInvalidChars = !1), + (this.cdataKeys = []), + (this.replaceInvalidChars = !1), + (this.useSelfClosingTagIfEmpty = !0), + (this.validation = !0), + (this.valueString = '#'), + (0, Qo.isUndefined)(t.validation) || (this.validation = t.validation), + (0, Qo.isUndefined)(t.aliasString) || (this.aliasString = t.aliasString), + (0, Qo.isUndefined)(t.attributeString) || (this.attributeString = t.attributeString), + (0, Qo.isUndefined)(t.cdataInvalidChars) || (this.cdataInvalidChars = t.cdataInvalidChars), + (0, Qo.isUndefined)(t.cdataKeys) || (this.cdataKeys = t.cdataKeys), + (this.declaration = new XEe(t.declaration)), + (this.dtd = new JEe(this.validation, t.dtd)), + (this.format = new YEe(t.format)), + (0, Qo.isUndefined)(t.replaceInvalidChars) || (this.replaceInvalidChars = t.replaceInvalidChars), + (this.typeHandlers = new QEe(t.typeHandlers)), + (0, Qo.isUndefined)(t.useSelfClosingTagIfEmpty) || + (this.useSelfClosingTagIfEmpty = t.useSelfClosingTagIfEmpty), + (0, Qo.isUndefined)(t.valueString) || (this.valueString = t.valueString), + (this.wrapHandlers = new ZEe(t.wrapHandlers)); + } + return e; + })(); + Wn.Options = hIt; + var XEe = (function () { + function e(t) { + t === void 0 && (t = {}), + (this.include = !0), + (0, Qo.isUndefined)(t.include) || (this.include = t.include), + (this.encoding = t.encoding), + (this.standalone = t.standalone), + (this.version = t.version); + } + return e; + })(); + Wn.DeclarationOptions = XEe; + var JEe = (function () { + function e(t, r) { + if ( + (r === void 0 && (r = {}), + (this.include = !1), + (0, Qo.isUndefined)(r.include) || (this.include = r.include), + t && (0, Qo.isUndefined)(r.name) && this.include) + ) + throw new Error('options.dtd.name should be defined if options.dtd.include is true'); + (this.name = r.name), (this.sysId = r.sysId), (this.pubId = r.pubId); + } + return e; + })(); + Wn.DtdOptions = JEe; + var YEe = (function () { + function e(t) { + t === void 0 && (t = {}), + (this.doubleQuotes = t.doubleQuotes), + (this.indent = t.indent), + (this.newline = t.newline), + (this.pretty = t.pretty); + } + return e; + })(); + Wn.FormatOptions = YEe; + var QEe = (function () { + function e(t) { + t === void 0 && (t = {}); + for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && (this[r] = t[r]); + } + return e; + })(); + Wn.TypeHandlers = QEe; + var ZEe = (function () { + function e(t) { + t === void 0 && (t = {}); + for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && (this[r] = t[r]); + } + return e; + })(); + Wn.WrapHandlers = ZEe; +}); +var oxe = d((Yp) => { + 'use strict'; + Object.defineProperty(Yp, '__esModule', { value: !0 }); + Yp.parse = Yp.parseToExistingElement = Yp.Absent = void 0; + var rxe = HEe(), + ixe = exe(), + Dr = fL(), + mL = (function () { + function e() {} + return ( + Object.defineProperty(e, 'instance', { + get: function () { + return e._instance; + }, + enumerable: !1, + configurable: !0, + }), + (e._instance = new e()), + e + ); + })(); + Yp.Absent = mL; + function hL(e, t) { + var r = Object.prototype.toString.call(e), + n; + return ( + Object.prototype.hasOwnProperty.call(t.typeHandlers, '*') && (n = t.typeHandlers['*']), + Object.prototype.hasOwnProperty.call(t.typeHandlers, r) && (n = t.typeHandlers[r]), + n + ); + } + function nxe(e, t, r) { + var n = function (s) { + return ( + (r.cdataInvalidChars && (s.indexOf('<') !== -1 || s.indexOf('&') !== -1)) || + r.cdataKeys.indexOf(t.name) !== -1 || + r.cdataKeys.indexOf('*') !== -1 + ); + }; + if (t instanceof rxe.XmlElement) + if (n(e)) + for (var a = e.split(']]>'), o = 0; o < a.length; o++) + n(a[o]) + ? t.cdata({ charData: a[o], replaceInvalidCharsInCharData: r.replaceInvalidChars }) + : t.charData({ charData: a[o], replaceInvalidCharsInCharData: r.replaceInvalidChars }), + o < a.length - 1 && t.charData({ charData: ']]>', replaceInvalidCharsInCharData: r.replaceInvalidChars }); + else t.charData({ charData: e, replaceInvalidCharsInCharData: r.replaceInvalidChars }); + else t.text({ charData: e, replaceInvalidCharsInCharData: r.replaceInvalidChars }); + } + function gIt(e, t, r, n) { + var a = r.attribute({ name: e, replaceInvalidCharsInName: n.replaceInvalidChars }); + nxe((0, Dr.stringify)(t), a, n); + } + function txe(e, t, r, n) { + if (e === n.aliasString) { + r.name = (0, Dr.stringify)(t); + return; + } + if (e.indexOf(n.attributeString) === 0 && (0, Dr.isObject)(t)) { + for (var a = 0, o = Object.keys(t); a < o.length; a++) { + var s = o[a]; + gIt(s, (0, Dr.stringify)(t[s]), r, n); + } + return; + } + if (e.indexOf(n.valueString) === 0) { + O5(e, (0, Dr.stringify)(t), r, n); + return; + } + var l = r; + if (!(0, Dr.isArray)(t) && !(0, Dr.isSet)(t)) { + var u = hL(t, n); + if (!(0, Dr.isUndefined)(u) && u(t) === mL.instance) return; + l = r.element({ + name: e, + replaceInvalidCharsInName: n.replaceInvalidChars, + useSelfClosingTagIfEmpty: n.useSelfClosingTagIfEmpty, + }); + } + O5(e, t, l, n); + } + function vIt(e, t, r) { + if ((0, Dr.isMap)(e)) + e.forEach(function (s, l) { + txe((0, Dr.stringify)(l), s, t, r); + }); + else + for (var n = 0, a = Object.keys(e); n < a.length; n++) { + var o = a[n]; + txe(o, e[o], t, r); + } + } + function yIt(e, t, r, n) { + var a; + Object.prototype.hasOwnProperty.call(n.wrapHandlers, '*') && (a = n.wrapHandlers['*']), + Object.prototype.hasOwnProperty.call(n.wrapHandlers, e) && (a = n.wrapHandlers[e]); + var o = e, + s = r; + if (!(0, Dr.isUndefined)(a)) { + var l = a(o, t); + (0, Dr.isNull)(l) || + ((o = l), + (s = r.element({ + name: e, + replaceInvalidCharsInName: n.replaceInvalidChars, + useSelfClosingTagIfEmpty: n.useSelfClosingTagIfEmpty, + }))); + } + t.forEach(function (u) { + var p = s; + if (!(0, Dr.isArray)(u) && !(0, Dr.isSet)(u)) { + var c = hL(u, n); + if (!(0, Dr.isUndefined)(c) && c(u) === mL.instance) return; + p = s.element({ + name: o, + replaceInvalidCharsInName: n.replaceInvalidChars, + useSelfClosingTagIfEmpty: n.useSelfClosingTagIfEmpty, + }); + } + O5(o, u, p, n); + }); + } + function O5(e, t, r, n) { + var a = hL(t, n); + if (((0, Dr.isUndefined)(a) || (t = a(t)), (0, Dr.isObject)(t) || (0, Dr.isMap)(t))) { + vIt(t, r, n); + return; + } + if ((0, Dr.isArray)(t) || (0, Dr.isSet)(t)) { + yIt(e, t, r, n); + return; + } + nxe((0, Dr.stringify)(t), r, n); + } + function axe(e, t, r) { + var n = new ixe.Options(r); + O5(e.name, t, e, n); + } + Yp.parseToExistingElement = axe; + function bIt(e, t, r) { + var n = new ixe.Options(r), + a = new rxe.XmlDocument({ validation: n.validation }); + n.declaration.include && a.decl(n.declaration), + n.dtd.include && a.dtd({ name: n.dtd.name, pubId: n.dtd.pubId, sysId: n.dtd.sysId }); + var o = a.element({ + name: e, + replaceInvalidCharsInName: n.replaceInvalidChars, + useSelfClosingTagIfEmpty: n.useSelfClosingTagIfEmpty, + }); + return axe(o, t, r), a.toString(n.format); + } + Yp.parse = bIt; +}); +var k2 = d((Sor, gL) => { + 'use strict'; + typeof process > 'u' || + !process.version || + process.version.indexOf('v0.') === 0 || + (process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) + ? (gL.exports = { nextTick: _It }) + : (gL.exports = process); + function _It(e, t, r, n) { + if (typeof e != 'function') throw new TypeError('"callback" argument must be a function'); + var a = arguments.length, + o, + s; + switch (a) { + case 0: + case 1: + return process.nextTick(e); + case 2: + return process.nextTick(function () { + e.call(null, t); + }); + case 3: + return process.nextTick(function () { + e.call(null, t, r); + }); + case 4: + return process.nextTick(function () { + e.call(null, t, r, n); + }); + default: + for (o = new Array(a - 1), s = 0; s < o.length; ) o[s++] = arguments[s]; + return process.nextTick(function () { + e.apply(null, o); + }); + } + } +}); +var lxe = d((Eor, sxe) => { + var wIt = {}.toString; + sxe.exports = + Array.isArray || + function (e) { + return wIt.call(e) == '[object Array]'; + }; +}); +var vL = d((xor, uxe) => { + uxe.exports = require('stream'); +}); +var A2 = d((yL, cxe) => { + var T5 = require('buffer'), + mu = T5.Buffer; + function pxe(e, t) { + for (var r in e) t[r] = e[r]; + } + mu.from && mu.alloc && mu.allocUnsafe && mu.allocUnsafeSlow ? (cxe.exports = T5) : (pxe(T5, yL), (yL.Buffer = Qg)); + function Qg(e, t, r) { + return mu(e, t, r); + } + pxe(mu, Qg); + Qg.from = function (e, t, r) { + if (typeof e == 'number') throw new TypeError('Argument must not be a number'); + return mu(e, t, r); + }; + Qg.alloc = function (e, t, r) { + if (typeof e != 'number') throw new TypeError('Argument must be a number'); + var n = mu(e); + return t !== void 0 ? (typeof r == 'string' ? n.fill(t, r) : n.fill(t)) : n.fill(0), n; + }; + Qg.allocUnsafe = function (e) { + if (typeof e != 'number') throw new TypeError('Argument must be a number'); + return mu(e); + }; + Qg.allocUnsafeSlow = function (e) { + if (typeof e != 'number') throw new TypeError('Argument must be a number'); + return T5.SlowBuffer(e); + }; +}); +var Zg = d((nn) => { + function SIt(e) { + return Array.isArray ? Array.isArray(e) : C5(e) === '[object Array]'; + } + nn.isArray = SIt; + function EIt(e) { + return typeof e == 'boolean'; + } + nn.isBoolean = EIt; + function xIt(e) { + return e === null; + } + nn.isNull = xIt; + function OIt(e) { + return e == null; + } + nn.isNullOrUndefined = OIt; + function TIt(e) { + return typeof e == 'number'; + } + nn.isNumber = TIt; + function CIt(e) { + return typeof e == 'string'; + } + nn.isString = CIt; + function kIt(e) { + return typeof e == 'symbol'; + } + nn.isSymbol = kIt; + function AIt(e) { + return e === void 0; + } + nn.isUndefined = AIt; + function IIt(e) { + return C5(e) === '[object RegExp]'; + } + nn.isRegExp = IIt; + function PIt(e) { + return typeof e == 'object' && e !== null; + } + nn.isObject = PIt; + function RIt(e) { + return C5(e) === '[object Date]'; + } + nn.isDate = RIt; + function jIt(e) { + return C5(e) === '[object Error]' || e instanceof Error; + } + nn.isError = jIt; + function DIt(e) { + return typeof e == 'function'; + } + nn.isFunction = DIt; + function NIt(e) { + return ( + e === null || + typeof e == 'boolean' || + typeof e == 'number' || + typeof e == 'string' || + typeof e == 'symbol' || + typeof e > 'u' + ); + } + nn.isPrimitive = NIt; + nn.isBuffer = require('buffer').Buffer.isBuffer; + function C5(e) { + return Object.prototype.toString.call(e); + } +}); +var fxe = d((Tor, bL) => { + 'use strict'; + function qIt(e, t) { + if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function'); + } + var dxe = A2().Buffer, + I2 = require('util'); + function FIt(e, t, r) { + e.copy(t, r); + } + bL.exports = (function () { + function e() { + qIt(this, e), (this.head = null), (this.tail = null), (this.length = 0); + } + return ( + (e.prototype.push = function (r) { + var n = { data: r, next: null }; + this.length > 0 ? (this.tail.next = n) : (this.head = n), (this.tail = n), ++this.length; + }), + (e.prototype.unshift = function (r) { + var n = { data: r, next: this.head }; + this.length === 0 && (this.tail = n), (this.head = n), ++this.length; + }), + (e.prototype.shift = function () { + if (this.length !== 0) { + var r = this.head.data; + return this.length === 1 ? (this.head = this.tail = null) : (this.head = this.head.next), --this.length, r; + } + }), + (e.prototype.clear = function () { + (this.head = this.tail = null), (this.length = 0); + }), + (e.prototype.join = function (r) { + if (this.length === 0) return ''; + for (var n = this.head, a = '' + n.data; (n = n.next); ) a += r + n.data; + return a; + }), + (e.prototype.concat = function (r) { + if (this.length === 0) return dxe.alloc(0); + for (var n = dxe.allocUnsafe(r >>> 0), a = this.head, o = 0; a; ) + FIt(a.data, n, o), (o += a.data.length), (a = a.next); + return n; + }), + e + ); + })(); + I2 && + I2.inspect && + I2.inspect.custom && + (bL.exports.prototype[I2.inspect.custom] = function () { + var e = I2.inspect({ length: this.length }); + return this.constructor.name + ' ' + e; + }); +}); +var _L = d((Cor, mxe) => { + 'use strict'; + var k5 = k2(); + function LIt(e, t) { + var r = this, + n = this._readableState && this._readableState.destroyed, + a = this._writableState && this._writableState.destroyed; + return n || a + ? (t + ? t(e) + : e && + (this._writableState + ? this._writableState.errorEmitted || ((this._writableState.errorEmitted = !0), k5.nextTick(A5, this, e)) + : k5.nextTick(A5, this, e)), + this) + : (this._readableState && (this._readableState.destroyed = !0), + this._writableState && (this._writableState.destroyed = !0), + this._destroy(e || null, function (o) { + !t && o + ? r._writableState + ? r._writableState.errorEmitted || ((r._writableState.errorEmitted = !0), k5.nextTick(A5, r, o)) + : k5.nextTick(A5, r, o) + : t && t(o); + }), + this); + } + function MIt() { + this._readableState && + ((this._readableState.destroyed = !1), + (this._readableState.reading = !1), + (this._readableState.ended = !1), + (this._readableState.endEmitted = !1)), + this._writableState && + ((this._writableState.destroyed = !1), + (this._writableState.ended = !1), + (this._writableState.ending = !1), + (this._writableState.finalCalled = !1), + (this._writableState.prefinished = !1), + (this._writableState.finished = !1), + (this._writableState.errorEmitted = !1)); + } + function A5(e, t) { + e.emit('error', t); + } + mxe.exports = { destroy: LIt, undestroy: MIt }; +}); +var SL = d((kor, Sxe) => { + 'use strict'; + var Ef = k2(); + Sxe.exports = Xr; + function gxe(e) { + var t = this; + (this.next = null), + (this.entry = null), + (this.finish = function () { + iPt(t, e); + }); + } + var UIt = + !process.browser && ['v0.10', 'v0.9.'].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : Ef.nextTick, + e1; + Xr.WritableState = R2; + var vxe = Object.create(Zg()); + vxe.inherits = Va(); + var $It = { deprecate: mI() }, + yxe = vL(), + P5 = A2().Buffer, + BIt = + (typeof global < 'u' ? global : typeof window < 'u' ? window : typeof self < 'u' ? self : {}).Uint8Array || + function () {}; + function VIt(e) { + return P5.from(e); + } + function zIt(e) { + return P5.isBuffer(e) || e instanceof BIt; + } + var bxe = _L(); + vxe.inherits(Xr, yxe); + function HIt() {} + function R2(e, t) { + (e1 = e1 || xf()), (e = e || {}); + var r = t instanceof e1; + (this.objectMode = !!e.objectMode), r && (this.objectMode = this.objectMode || !!e.writableObjectMode); + var n = e.highWaterMark, + a = e.writableHighWaterMark, + o = this.objectMode ? 16 : 16 * 1024; + n || n === 0 ? (this.highWaterMark = n) : r && (a || a === 0) ? (this.highWaterMark = a) : (this.highWaterMark = o), + (this.highWaterMark = Math.floor(this.highWaterMark)), + (this.finalCalled = !1), + (this.needDrain = !1), + (this.ending = !1), + (this.ended = !1), + (this.finished = !1), + (this.destroyed = !1); + var s = e.decodeStrings === !1; + (this.decodeStrings = !s), + (this.defaultEncoding = e.defaultEncoding || 'utf8'), + (this.length = 0), + (this.writing = !1), + (this.corked = 0), + (this.sync = !0), + (this.bufferProcessing = !1), + (this.onwrite = function (l) { + QIt(t, l); + }), + (this.writecb = null), + (this.writelen = 0), + (this.bufferedRequest = null), + (this.lastBufferedRequest = null), + (this.pendingcb = 0), + (this.prefinished = !1), + (this.errorEmitted = !1), + (this.bufferedRequestCount = 0), + (this.corkedRequestsFree = new gxe(this)); + } + R2.prototype.getBuffer = function () { + for (var t = this.bufferedRequest, r = []; t; ) r.push(t), (t = t.next); + return r; + }; + (function () { + try { + Object.defineProperty(R2.prototype, 'buffer', { + get: $It.deprecate( + function () { + return this.getBuffer(); + }, + '_writableState.buffer is deprecated. Use _writableState.getBuffer instead.', + 'DEP0003' + ), + }); + } catch {} + })(); + var I5; + typeof Symbol == 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == 'function' + ? ((I5 = Function.prototype[Symbol.hasInstance]), + Object.defineProperty(Xr, Symbol.hasInstance, { + value: function (e) { + return I5.call(this, e) ? !0 : this !== Xr ? !1 : e && e._writableState instanceof R2; + }, + })) + : (I5 = function (e) { + return e instanceof this; + }); + function Xr(e) { + if (((e1 = e1 || xf()), !I5.call(Xr, this) && !(this instanceof e1))) return new Xr(e); + (this._writableState = new R2(e, this)), + (this.writable = !0), + e && + (typeof e.write == 'function' && (this._write = e.write), + typeof e.writev == 'function' && (this._writev = e.writev), + typeof e.destroy == 'function' && (this._destroy = e.destroy), + typeof e.final == 'function' && (this._final = e.final)), + yxe.call(this); + } + Xr.prototype.pipe = function () { + this.emit('error', new Error('Cannot pipe, not readable')); + }; + function GIt(e, t) { + var r = new Error('write after end'); + e.emit('error', r), Ef.nextTick(t, r); + } + function WIt(e, t, r, n) { + var a = !0, + o = !1; + return ( + r === null + ? (o = new TypeError('May not write null values to stream')) + : typeof r != 'string' && + r !== void 0 && + !t.objectMode && + (o = new TypeError('Invalid non-string/buffer chunk')), + o && (e.emit('error', o), Ef.nextTick(n, o), (a = !1)), + a + ); + } + Xr.prototype.write = function (e, t, r) { + var n = this._writableState, + a = !1, + o = !n.objectMode && zIt(e); + return ( + o && !P5.isBuffer(e) && (e = VIt(e)), + typeof t == 'function' && ((r = t), (t = null)), + o ? (t = 'buffer') : t || (t = n.defaultEncoding), + typeof r != 'function' && (r = HIt), + n.ended ? GIt(this, r) : (o || WIt(this, n, e, r)) && (n.pendingcb++, (a = XIt(this, n, o, e, t, r))), + a + ); + }; + Xr.prototype.cork = function () { + var e = this._writableState; + e.corked++; + }; + Xr.prototype.uncork = function () { + var e = this._writableState; + e.corked && (e.corked--, !e.writing && !e.corked && !e.bufferProcessing && e.bufferedRequest && _xe(this, e)); + }; + Xr.prototype.setDefaultEncoding = function (t) { + if ( + (typeof t == 'string' && (t = t.toLowerCase()), + !( + ['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf( + (t + '').toLowerCase() + ) > -1 + )) + ) + throw new TypeError('Unknown encoding: ' + t); + return (this._writableState.defaultEncoding = t), this; + }; + function KIt(e, t, r) { + return !e.objectMode && e.decodeStrings !== !1 && typeof t == 'string' && (t = P5.from(t, r)), t; + } + Object.defineProperty(Xr.prototype, 'writableHighWaterMark', { + enumerable: !1, + get: function () { + return this._writableState.highWaterMark; + }, + }); + function XIt(e, t, r, n, a, o) { + if (!r) { + var s = KIt(t, n, a); + n !== s && ((r = !0), (a = 'buffer'), (n = s)); + } + var l = t.objectMode ? 1 : n.length; + t.length += l; + var u = t.length < t.highWaterMark; + if ((u || (t.needDrain = !0), t.writing || t.corked)) { + var p = t.lastBufferedRequest; + (t.lastBufferedRequest = { chunk: n, encoding: a, isBuf: r, callback: o, next: null }), + p ? (p.next = t.lastBufferedRequest) : (t.bufferedRequest = t.lastBufferedRequest), + (t.bufferedRequestCount += 1); + } else wL(e, t, !1, l, n, a, o); + return u; + } + function wL(e, t, r, n, a, o, s) { + (t.writelen = n), + (t.writecb = s), + (t.writing = !0), + (t.sync = !0), + r ? e._writev(a, t.onwrite) : e._write(a, o, t.onwrite), + (t.sync = !1); + } + function JIt(e, t, r, n, a) { + --t.pendingcb, + r + ? (Ef.nextTick(a, n), Ef.nextTick(P2, e, t), (e._writableState.errorEmitted = !0), e.emit('error', n)) + : (a(n), (e._writableState.errorEmitted = !0), e.emit('error', n), P2(e, t)); + } + function YIt(e) { + (e.writing = !1), (e.writecb = null), (e.length -= e.writelen), (e.writelen = 0); + } + function QIt(e, t) { + var r = e._writableState, + n = r.sync, + a = r.writecb; + if ((YIt(r), t)) JIt(e, r, n, t, a); + else { + var o = wxe(r); + !o && !r.corked && !r.bufferProcessing && r.bufferedRequest && _xe(e, r), + n ? UIt(hxe, e, r, o, a) : hxe(e, r, o, a); + } + } + function hxe(e, t, r, n) { + r || ZIt(e, t), t.pendingcb--, n(), P2(e, t); + } + function ZIt(e, t) { + t.length === 0 && t.needDrain && ((t.needDrain = !1), e.emit('drain')); + } + function _xe(e, t) { + t.bufferProcessing = !0; + var r = t.bufferedRequest; + if (e._writev && r && r.next) { + var n = t.bufferedRequestCount, + a = new Array(n), + o = t.corkedRequestsFree; + o.entry = r; + for (var s = 0, l = !0; r; ) (a[s] = r), r.isBuf || (l = !1), (r = r.next), (s += 1); + (a.allBuffers = l), + wL(e, t, !0, t.length, a, '', o.finish), + t.pendingcb++, + (t.lastBufferedRequest = null), + o.next ? ((t.corkedRequestsFree = o.next), (o.next = null)) : (t.corkedRequestsFree = new gxe(t)), + (t.bufferedRequestCount = 0); + } else { + for (; r; ) { + var u = r.chunk, + p = r.encoding, + c = r.callback, + f = t.objectMode ? 1 : u.length; + if ((wL(e, t, !1, f, u, p, c), (r = r.next), t.bufferedRequestCount--, t.writing)) break; + } + r === null && (t.lastBufferedRequest = null); + } + (t.bufferedRequest = r), (t.bufferProcessing = !1); + } + Xr.prototype._write = function (e, t, r) { + r(new Error('_write() is not implemented')); + }; + Xr.prototype._writev = null; + Xr.prototype.end = function (e, t, r) { + var n = this._writableState; + typeof e == 'function' ? ((r = e), (e = null), (t = null)) : typeof t == 'function' && ((r = t), (t = null)), + e != null && this.write(e, t), + n.corked && ((n.corked = 1), this.uncork()), + n.ending || rPt(this, n, r); + }; + function wxe(e) { + return e.ending && e.length === 0 && e.bufferedRequest === null && !e.finished && !e.writing; + } + function ePt(e, t) { + e._final(function (r) { + t.pendingcb--, r && e.emit('error', r), (t.prefinished = !0), e.emit('prefinish'), P2(e, t); + }); + } + function tPt(e, t) { + !t.prefinished && + !t.finalCalled && + (typeof e._final == 'function' + ? (t.pendingcb++, (t.finalCalled = !0), Ef.nextTick(ePt, e, t)) + : ((t.prefinished = !0), e.emit('prefinish'))); + } + function P2(e, t) { + var r = wxe(t); + return r && (tPt(e, t), t.pendingcb === 0 && ((t.finished = !0), e.emit('finish'))), r; + } + function rPt(e, t, r) { + (t.ending = !0), + P2(e, t), + r && (t.finished ? Ef.nextTick(r) : e.once('finish', r)), + (t.ended = !0), + (e.writable = !1); + } + function iPt(e, t, r) { + var n = e.entry; + for (e.entry = null; n; ) { + var a = n.callback; + t.pendingcb--, a(r), (n = n.next); + } + t.corkedRequestsFree.next = e; + } + Object.defineProperty(Xr.prototype, 'destroyed', { + get: function () { + return this._writableState === void 0 ? !1 : this._writableState.destroyed; + }, + set: function (e) { + this._writableState && (this._writableState.destroyed = e); + }, + }); + Xr.prototype.destroy = bxe.destroy; + Xr.prototype._undestroy = bxe.undestroy; + Xr.prototype._destroy = function (e, t) { + this.end(), t(e); + }; +}); +var xf = d((Aor, Txe) => { + 'use strict'; + var Exe = k2(), + nPt = + Object.keys || + function (e) { + var t = []; + for (var r in e) t.push(r); + return t; + }; + Txe.exports = hu; + var xxe = Object.create(Zg()); + xxe.inherits = Va(); + var Oxe = OL(), + xL = SL(); + xxe.inherits(hu, Oxe); + for (EL = nPt(xL.prototype), R5 = 0; R5 < EL.length; R5++) + (j5 = EL[R5]), hu.prototype[j5] || (hu.prototype[j5] = xL.prototype[j5]); + var EL, j5, R5; + function hu(e) { + if (!(this instanceof hu)) return new hu(e); + Oxe.call(this, e), + xL.call(this, e), + e && e.readable === !1 && (this.readable = !1), + e && e.writable === !1 && (this.writable = !1), + (this.allowHalfOpen = !0), + e && e.allowHalfOpen === !1 && (this.allowHalfOpen = !1), + this.once('end', aPt); + } + Object.defineProperty(hu.prototype, 'writableHighWaterMark', { + enumerable: !1, + get: function () { + return this._writableState.highWaterMark; + }, + }); + function aPt() { + this.allowHalfOpen || this._writableState.ended || Exe.nextTick(oPt, this); + } + function oPt(e) { + e.end(); + } + Object.defineProperty(hu.prototype, 'destroyed', { + get: function () { + return this._readableState === void 0 || this._writableState === void 0 + ? !1 + : this._readableState.destroyed && this._writableState.destroyed; + }, + set: function (e) { + this._readableState === void 0 || + this._writableState === void 0 || + ((this._readableState.destroyed = e), (this._writableState.destroyed = e)); + }, + }); + hu.prototype._destroy = function (e, t) { + this.push(null), this.end(), Exe.nextTick(t, e); + }; +}); +var kL = d((kxe) => { + 'use strict'; + var CL = A2().Buffer, + Cxe = + CL.isEncoding || + function (e) { + switch (((e = '' + e), e && e.toLowerCase())) { + case 'hex': + case 'utf8': + case 'utf-8': + case 'ascii': + case 'binary': + case 'base64': + case 'ucs2': + case 'ucs-2': + case 'utf16le': + case 'utf-16le': + case 'raw': + return !0; + default: + return !1; + } + }; + function sPt(e) { + if (!e) return 'utf8'; + for (var t; ; ) + switch (e) { + case 'utf8': + case 'utf-8': + return 'utf8'; + case 'ucs2': + case 'ucs-2': + case 'utf16le': + case 'utf-16le': + return 'utf16le'; + case 'latin1': + case 'binary': + return 'latin1'; + case 'base64': + case 'ascii': + case 'hex': + return e; + default: + if (t) return; + (e = ('' + e).toLowerCase()), (t = !0); + } + } + function lPt(e) { + var t = sPt(e); + if (typeof t != 'string' && (CL.isEncoding === Cxe || !Cxe(e))) throw new Error('Unknown encoding: ' + e); + return t || e; + } + kxe.StringDecoder = j2; + function j2(e) { + this.encoding = lPt(e); + var t; + switch (this.encoding) { + case 'utf16le': + (this.text = mPt), (this.end = hPt), (t = 4); + break; + case 'utf8': + (this.fillLast = cPt), (t = 4); + break; + case 'base64': + (this.text = gPt), (this.end = vPt), (t = 3); + break; + default: + (this.write = yPt), (this.end = bPt); + return; + } + (this.lastNeed = 0), (this.lastTotal = 0), (this.lastChar = CL.allocUnsafe(t)); + } + j2.prototype.write = function (e) { + if (e.length === 0) return ''; + var t, r; + if (this.lastNeed) { + if (((t = this.fillLast(e)), t === void 0)) return ''; + (r = this.lastNeed), (this.lastNeed = 0); + } else r = 0; + return r < e.length ? (t ? t + this.text(e, r) : this.text(e, r)) : t || ''; + }; + j2.prototype.end = fPt; + j2.prototype.text = dPt; + j2.prototype.fillLast = function (e) { + if (this.lastNeed <= e.length) + return ( + e.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), + this.lastChar.toString(this.encoding, 0, this.lastTotal) + ); + e.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, e.length), (this.lastNeed -= e.length); + }; + function TL(e) { + return e <= 127 ? 0 : e >> 5 === 6 ? 2 : e >> 4 === 14 ? 3 : e >> 3 === 30 ? 4 : e >> 6 === 2 ? -1 : -2; + } + function uPt(e, t, r) { + var n = t.length - 1; + if (n < r) return 0; + var a = TL(t[n]); + return a >= 0 + ? (a > 0 && (e.lastNeed = a - 1), a) + : --n < r || a === -2 + ? 0 + : ((a = TL(t[n])), + a >= 0 + ? (a > 0 && (e.lastNeed = a - 2), a) + : --n < r || a === -2 + ? 0 + : ((a = TL(t[n])), a >= 0 ? (a > 0 && (a === 2 ? (a = 0) : (e.lastNeed = a - 3)), a) : 0)); + } + function pPt(e, t, r) { + if ((t[0] & 192) !== 128) return (e.lastNeed = 0), '\uFFFD'; + if (e.lastNeed > 1 && t.length > 1) { + if ((t[1] & 192) !== 128) return (e.lastNeed = 1), '\uFFFD'; + if (e.lastNeed > 2 && t.length > 2 && (t[2] & 192) !== 128) return (e.lastNeed = 2), '\uFFFD'; + } + } + function cPt(e) { + var t = this.lastTotal - this.lastNeed, + r = pPt(this, e, t); + if (r !== void 0) return r; + if (this.lastNeed <= e.length) + return e.copy(this.lastChar, t, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal); + e.copy(this.lastChar, t, 0, e.length), (this.lastNeed -= e.length); + } + function dPt(e, t) { + var r = uPt(this, e, t); + if (!this.lastNeed) return e.toString('utf8', t); + this.lastTotal = r; + var n = e.length - (r - this.lastNeed); + return e.copy(this.lastChar, 0, n), e.toString('utf8', t, n); + } + function fPt(e) { + var t = e && e.length ? this.write(e) : ''; + return this.lastNeed ? t + '\uFFFD' : t; + } + function mPt(e, t) { + if ((e.length - t) % 2 === 0) { + var r = e.toString('utf16le', t); + if (r) { + var n = r.charCodeAt(r.length - 1); + if (n >= 55296 && n <= 56319) + return ( + (this.lastNeed = 2), + (this.lastTotal = 4), + (this.lastChar[0] = e[e.length - 2]), + (this.lastChar[1] = e[e.length - 1]), + r.slice(0, -1) + ); + } + return r; + } + return ( + (this.lastNeed = 1), + (this.lastTotal = 2), + (this.lastChar[0] = e[e.length - 1]), + e.toString('utf16le', t, e.length - 1) + ); + } + function hPt(e) { + var t = e && e.length ? this.write(e) : ''; + if (this.lastNeed) { + var r = this.lastTotal - this.lastNeed; + return t + this.lastChar.toString('utf16le', 0, r); + } + return t; + } + function gPt(e, t) { + var r = (e.length - t) % 3; + return r === 0 + ? e.toString('base64', t) + : ((this.lastNeed = 3 - r), + (this.lastTotal = 3), + r === 1 + ? (this.lastChar[0] = e[e.length - 1]) + : ((this.lastChar[0] = e[e.length - 2]), (this.lastChar[1] = e[e.length - 1])), + e.toString('base64', t, e.length - r)); + } + function vPt(e) { + var t = e && e.length ? this.write(e) : ''; + return this.lastNeed ? t + this.lastChar.toString('base64', 0, 3 - this.lastNeed) : t; + } + function yPt(e) { + return e.toString(this.encoding); + } + function bPt(e) { + return e && e.length ? this.write(e) : ''; + } +}); +var OL = d((Ror, Uxe) => { + 'use strict'; + var r1 = k2(); + Uxe.exports = Wt; + var _Pt = lxe(), + D2; + Wt.ReadableState = Nxe; + var Por = require('events').EventEmitter, + Rxe = function (e, t) { + return e.listeners(t).length; + }, + jL = vL(), + N2 = A2().Buffer, + wPt = + (typeof global < 'u' ? global : typeof window < 'u' ? window : typeof self < 'u' ? self : {}).Uint8Array || + function () {}; + function SPt(e) { + return N2.from(e); + } + function EPt(e) { + return N2.isBuffer(e) || e instanceof wPt; + } + var jxe = Object.create(Zg()); + jxe.inherits = Va(); + var AL = require('util'), + mt = void 0; + AL && AL.debuglog ? (mt = AL.debuglog('stream')) : (mt = function () {}); + var xPt = fxe(), + Dxe = _L(), + t1; + jxe.inherits(Wt, jL); + var IL = ['error', 'close', 'destroy', 'pause', 'resume']; + function OPt(e, t, r) { + if (typeof e.prependListener == 'function') return e.prependListener(t, r); + !e._events || !e._events[t] + ? e.on(t, r) + : _Pt(e._events[t]) + ? e._events[t].unshift(r) + : (e._events[t] = [r, e._events[t]]); + } + function Nxe(e, t) { + (D2 = D2 || xf()), (e = e || {}); + var r = t instanceof D2; + (this.objectMode = !!e.objectMode), r && (this.objectMode = this.objectMode || !!e.readableObjectMode); + var n = e.highWaterMark, + a = e.readableHighWaterMark, + o = this.objectMode ? 16 : 16 * 1024; + n || n === 0 ? (this.highWaterMark = n) : r && (a || a === 0) ? (this.highWaterMark = a) : (this.highWaterMark = o), + (this.highWaterMark = Math.floor(this.highWaterMark)), + (this.buffer = new xPt()), + (this.length = 0), + (this.pipes = null), + (this.pipesCount = 0), + (this.flowing = null), + (this.ended = !1), + (this.endEmitted = !1), + (this.reading = !1), + (this.sync = !0), + (this.needReadable = !1), + (this.emittedReadable = !1), + (this.readableListening = !1), + (this.resumeScheduled = !1), + (this.destroyed = !1), + (this.defaultEncoding = e.defaultEncoding || 'utf8'), + (this.awaitDrain = 0), + (this.readingMore = !1), + (this.decoder = null), + (this.encoding = null), + e.encoding && + (t1 || (t1 = kL().StringDecoder), (this.decoder = new t1(e.encoding)), (this.encoding = e.encoding)); + } + function Wt(e) { + if (((D2 = D2 || xf()), !(this instanceof Wt))) return new Wt(e); + (this._readableState = new Nxe(e, this)), + (this.readable = !0), + e && + (typeof e.read == 'function' && (this._read = e.read), + typeof e.destroy == 'function' && (this._destroy = e.destroy)), + jL.call(this); + } + Object.defineProperty(Wt.prototype, 'destroyed', { + get: function () { + return this._readableState === void 0 ? !1 : this._readableState.destroyed; + }, + set: function (e) { + this._readableState && (this._readableState.destroyed = e); + }, + }); + Wt.prototype.destroy = Dxe.destroy; + Wt.prototype._undestroy = Dxe.undestroy; + Wt.prototype._destroy = function (e, t) { + this.push(null), t(e); + }; + Wt.prototype.push = function (e, t) { + var r = this._readableState, + n; + return ( + r.objectMode + ? (n = !0) + : typeof e == 'string' && + ((t = t || r.defaultEncoding), t !== r.encoding && ((e = N2.from(e, t)), (t = '')), (n = !0)), + qxe(this, e, t, !1, n) + ); + }; + Wt.prototype.unshift = function (e) { + return qxe(this, e, null, !0, !1); + }; + function qxe(e, t, r, n, a) { + var o = e._readableState; + if (t === null) (o.reading = !1), APt(e, o); + else { + var s; + a || (s = TPt(o, t)), + s + ? e.emit('error', s) + : o.objectMode || (t && t.length > 0) + ? (typeof t != 'string' && !o.objectMode && Object.getPrototypeOf(t) !== N2.prototype && (t = SPt(t)), + n + ? o.endEmitted + ? e.emit('error', new Error('stream.unshift() after end event')) + : PL(e, o, t, !0) + : o.ended + ? e.emit('error', new Error('stream.push() after EOF')) + : ((o.reading = !1), + o.decoder && !r + ? ((t = o.decoder.write(t)), o.objectMode || t.length !== 0 ? PL(e, o, t, !1) : Fxe(e, o)) + : PL(e, o, t, !1))) + : n || (o.reading = !1); + } + return CPt(o); + } + function PL(e, t, r, n) { + t.flowing && t.length === 0 && !t.sync + ? (e.emit('data', r), e.read(0)) + : ((t.length += t.objectMode ? 1 : r.length), + n ? t.buffer.unshift(r) : t.buffer.push(r), + t.needReadable && D5(e)), + Fxe(e, t); + } + function TPt(e, t) { + var r; + return ( + !EPt(t) && + typeof t != 'string' && + t !== void 0 && + !e.objectMode && + (r = new TypeError('Invalid non-string/buffer chunk')), + r + ); + } + function CPt(e) { + return !e.ended && (e.needReadable || e.length < e.highWaterMark || e.length === 0); + } + Wt.prototype.isPaused = function () { + return this._readableState.flowing === !1; + }; + Wt.prototype.setEncoding = function (e) { + return ( + t1 || (t1 = kL().StringDecoder), + (this._readableState.decoder = new t1(e)), + (this._readableState.encoding = e), + this + ); + }; + var Axe = 8388608; + function kPt(e) { + return ( + e >= Axe + ? (e = Axe) + : (e--, (e |= e >>> 1), (e |= e >>> 2), (e |= e >>> 4), (e |= e >>> 8), (e |= e >>> 16), e++), + e + ); + } + function Ixe(e, t) { + return e <= 0 || (t.length === 0 && t.ended) + ? 0 + : t.objectMode + ? 1 + : e !== e + ? t.flowing && t.length + ? t.buffer.head.data.length + : t.length + : (e > t.highWaterMark && (t.highWaterMark = kPt(e)), + e <= t.length ? e : t.ended ? t.length : ((t.needReadable = !0), 0)); + } + Wt.prototype.read = function (e) { + mt('read', e), (e = parseInt(e, 10)); + var t = this._readableState, + r = e; + if ((e !== 0 && (t.emittedReadable = !1), e === 0 && t.needReadable && (t.length >= t.highWaterMark || t.ended))) + return mt('read: emitReadable', t.length, t.ended), t.length === 0 && t.ended ? RL(this) : D5(this), null; + if (((e = Ixe(e, t)), e === 0 && t.ended)) return t.length === 0 && RL(this), null; + var n = t.needReadable; + mt('need readable', n), + (t.length === 0 || t.length - e < t.highWaterMark) && ((n = !0), mt('length less than watermark', n)), + t.ended || t.reading + ? ((n = !1), mt('reading or ended', n)) + : n && + (mt('do read'), + (t.reading = !0), + (t.sync = !0), + t.length === 0 && (t.needReadable = !0), + this._read(t.highWaterMark), + (t.sync = !1), + t.reading || (e = Ixe(r, t))); + var a; + return ( + e > 0 ? (a = Lxe(e, t)) : (a = null), + a === null ? ((t.needReadable = !0), (e = 0)) : (t.length -= e), + t.length === 0 && (t.ended || (t.needReadable = !0), r !== e && t.ended && RL(this)), + a !== null && this.emit('data', a), + a + ); + }; + function APt(e, t) { + if (!t.ended) { + if (t.decoder) { + var r = t.decoder.end(); + r && r.length && (t.buffer.push(r), (t.length += t.objectMode ? 1 : r.length)); + } + (t.ended = !0), D5(e); + } + } + function D5(e) { + var t = e._readableState; + (t.needReadable = !1), + t.emittedReadable || + (mt('emitReadable', t.flowing), (t.emittedReadable = !0), t.sync ? r1.nextTick(Pxe, e) : Pxe(e)); + } + function Pxe(e) { + mt('emit readable'), e.emit('readable'), DL(e); + } + function Fxe(e, t) { + t.readingMore || ((t.readingMore = !0), r1.nextTick(IPt, e, t)); + } + function IPt(e, t) { + for ( + var r = t.length; + !t.reading && + !t.flowing && + !t.ended && + t.length < t.highWaterMark && + (mt('maybeReadMore read 0'), e.read(0), r !== t.length); + + ) + r = t.length; + t.readingMore = !1; + } + Wt.prototype._read = function (e) { + this.emit('error', new Error('_read() is not implemented')); + }; + Wt.prototype.pipe = function (e, t) { + var r = this, + n = this._readableState; + switch (n.pipesCount) { + case 0: + n.pipes = e; + break; + case 1: + n.pipes = [n.pipes, e]; + break; + default: + n.pipes.push(e); + break; + } + (n.pipesCount += 1), mt('pipe count=%d opts=%j', n.pipesCount, t); + var a = (!t || t.end !== !1) && e !== process.stdout && e !== process.stderr, + o = a ? l : S; + n.endEmitted ? r1.nextTick(o) : r.once('end', o), e.on('unpipe', s); + function s(w, O) { + mt('onunpipe'), w === r && O && O.hasUnpiped === !1 && ((O.hasUnpiped = !0), c()); + } + function l() { + mt('onend'), e.end(); + } + var u = PPt(r); + e.on('drain', u); + var p = !1; + function c() { + mt('cleanup'), + e.removeListener('close', v), + e.removeListener('finish', y), + e.removeListener('drain', u), + e.removeListener('error', m), + e.removeListener('unpipe', s), + r.removeListener('end', l), + r.removeListener('end', S), + r.removeListener('data', h), + (p = !0), + n.awaitDrain && (!e._writableState || e._writableState.needDrain) && u(); + } + var f = !1; + r.on('data', h); + function h(w) { + mt('ondata'), (f = !1); + var O = e.write(w); + O === !1 && + !f && + (((n.pipesCount === 1 && n.pipes === e) || (n.pipesCount > 1 && Mxe(n.pipes, e) !== -1)) && + !p && + (mt('false write response, pause', n.awaitDrain), n.awaitDrain++, (f = !0)), + r.pause()); + } + function m(w) { + mt('onerror', w), S(), e.removeListener('error', m), Rxe(e, 'error') === 0 && e.emit('error', w); + } + OPt(e, 'error', m); + function v() { + e.removeListener('finish', y), S(); + } + e.once('close', v); + function y() { + mt('onfinish'), e.removeListener('close', v), S(); + } + e.once('finish', y); + function S() { + mt('unpipe'), r.unpipe(e); + } + return e.emit('pipe', r), n.flowing || (mt('pipe resume'), r.resume()), e; + }; + function PPt(e) { + return function () { + var t = e._readableState; + mt('pipeOnDrain', t.awaitDrain), + t.awaitDrain && t.awaitDrain--, + t.awaitDrain === 0 && Rxe(e, 'data') && ((t.flowing = !0), DL(e)); + }; + } + Wt.prototype.unpipe = function (e) { + var t = this._readableState, + r = { hasUnpiped: !1 }; + if (t.pipesCount === 0) return this; + if (t.pipesCount === 1) + return e && e !== t.pipes + ? this + : (e || (e = t.pipes), + (t.pipes = null), + (t.pipesCount = 0), + (t.flowing = !1), + e && e.emit('unpipe', this, r), + this); + if (!e) { + var n = t.pipes, + a = t.pipesCount; + (t.pipes = null), (t.pipesCount = 0), (t.flowing = !1); + for (var o = 0; o < a; o++) n[o].emit('unpipe', this, { hasUnpiped: !1 }); + return this; + } + var s = Mxe(t.pipes, e); + return s === -1 + ? this + : (t.pipes.splice(s, 1), + (t.pipesCount -= 1), + t.pipesCount === 1 && (t.pipes = t.pipes[0]), + e.emit('unpipe', this, r), + this); + }; + Wt.prototype.on = function (e, t) { + var r = jL.prototype.on.call(this, e, t); + if (e === 'data') this._readableState.flowing !== !1 && this.resume(); + else if (e === 'readable') { + var n = this._readableState; + !n.endEmitted && + !n.readableListening && + ((n.readableListening = n.needReadable = !0), + (n.emittedReadable = !1), + n.reading ? n.length && D5(this) : r1.nextTick(RPt, this)); + } + return r; + }; + Wt.prototype.addListener = Wt.prototype.on; + function RPt(e) { + mt('readable nexttick read 0'), e.read(0); + } + Wt.prototype.resume = function () { + var e = this._readableState; + return e.flowing || (mt('resume'), (e.flowing = !0), jPt(this, e)), this; + }; + function jPt(e, t) { + t.resumeScheduled || ((t.resumeScheduled = !0), r1.nextTick(DPt, e, t)); + } + function DPt(e, t) { + t.reading || (mt('resume read 0'), e.read(0)), + (t.resumeScheduled = !1), + (t.awaitDrain = 0), + e.emit('resume'), + DL(e), + t.flowing && !t.reading && e.read(0); + } + Wt.prototype.pause = function () { + return ( + mt('call pause flowing=%j', this._readableState.flowing), + this._readableState.flowing !== !1 && (mt('pause'), (this._readableState.flowing = !1), this.emit('pause')), + this + ); + }; + function DL(e) { + var t = e._readableState; + for (mt('flow', t.flowing); t.flowing && e.read() !== null; ); + } + Wt.prototype.wrap = function (e) { + var t = this, + r = this._readableState, + n = !1; + e.on('end', function () { + if ((mt('wrapped end'), r.decoder && !r.ended)) { + var s = r.decoder.end(); + s && s.length && t.push(s); + } + t.push(null); + }), + e.on('data', function (s) { + if ( + (mt('wrapped data'), + r.decoder && (s = r.decoder.write(s)), + !(r.objectMode && s == null) && !(!r.objectMode && (!s || !s.length))) + ) { + var l = t.push(s); + l || ((n = !0), e.pause()); + } + }); + for (var a in e) + this[a] === void 0 && + typeof e[a] == 'function' && + (this[a] = (function (s) { + return function () { + return e[s].apply(e, arguments); + }; + })(a)); + for (var o = 0; o < IL.length; o++) e.on(IL[o], this.emit.bind(this, IL[o])); + return ( + (this._read = function (s) { + mt('wrapped _read', s), n && ((n = !1), e.resume()); + }), + this + ); + }; + Object.defineProperty(Wt.prototype, 'readableHighWaterMark', { + enumerable: !1, + get: function () { + return this._readableState.highWaterMark; + }, + }); + Wt._fromList = Lxe; + function Lxe(e, t) { + if (t.length === 0) return null; + var r; + return ( + t.objectMode + ? (r = t.buffer.shift()) + : !e || e >= t.length + ? (t.decoder + ? (r = t.buffer.join('')) + : t.buffer.length === 1 + ? (r = t.buffer.head.data) + : (r = t.buffer.concat(t.length)), + t.buffer.clear()) + : (r = NPt(e, t.buffer, t.decoder)), + r + ); + } + function NPt(e, t, r) { + var n; + return ( + e < t.head.data.length + ? ((n = t.head.data.slice(0, e)), (t.head.data = t.head.data.slice(e))) + : e === t.head.data.length + ? (n = t.shift()) + : (n = r ? qPt(e, t) : FPt(e, t)), + n + ); + } + function qPt(e, t) { + var r = t.head, + n = 1, + a = r.data; + for (e -= a.length; (r = r.next); ) { + var o = r.data, + s = e > o.length ? o.length : e; + if ((s === o.length ? (a += o) : (a += o.slice(0, e)), (e -= s), e === 0)) { + s === o.length + ? (++n, r.next ? (t.head = r.next) : (t.head = t.tail = null)) + : ((t.head = r), (r.data = o.slice(s))); + break; + } + ++n; + } + return (t.length -= n), a; + } + function FPt(e, t) { + var r = N2.allocUnsafe(e), + n = t.head, + a = 1; + for (n.data.copy(r), e -= n.data.length; (n = n.next); ) { + var o = n.data, + s = e > o.length ? o.length : e; + if ((o.copy(r, r.length - e, 0, s), (e -= s), e === 0)) { + s === o.length + ? (++a, n.next ? (t.head = n.next) : (t.head = t.tail = null)) + : ((t.head = n), (n.data = o.slice(s))); + break; + } + ++a; + } + return (t.length -= a), r; + } + function RL(e) { + var t = e._readableState; + if (t.length > 0) throw new Error('"endReadable()" called on non-empty stream'); + t.endEmitted || ((t.ended = !0), r1.nextTick(LPt, t, e)); + } + function LPt(e, t) { + !e.endEmitted && e.length === 0 && ((e.endEmitted = !0), (t.readable = !1), t.emit('end')); + } + function Mxe(e, t) { + for (var r = 0, n = e.length; r < n; r++) if (e[r] === t) return r; + return -1; + } +}); +var NL = d((jor, Vxe) => { + 'use strict'; + Vxe.exports = gu; + var N5 = xf(), + Bxe = Object.create(Zg()); + Bxe.inherits = Va(); + Bxe.inherits(gu, N5); + function MPt(e, t) { + var r = this._transformState; + r.transforming = !1; + var n = r.writecb; + if (!n) return this.emit('error', new Error('write callback called multiple times')); + (r.writechunk = null), (r.writecb = null), t != null && this.push(t), n(e); + var a = this._readableState; + (a.reading = !1), (a.needReadable || a.length < a.highWaterMark) && this._read(a.highWaterMark); + } + function gu(e) { + if (!(this instanceof gu)) return new gu(e); + N5.call(this, e), + (this._transformState = { + afterTransform: MPt.bind(this), + needTransform: !1, + transforming: !1, + writecb: null, + writechunk: null, + writeencoding: null, + }), + (this._readableState.needReadable = !0), + (this._readableState.sync = !1), + e && + (typeof e.transform == 'function' && (this._transform = e.transform), + typeof e.flush == 'function' && (this._flush = e.flush)), + this.on('prefinish', UPt); + } + function UPt() { + var e = this; + typeof this._flush == 'function' + ? this._flush(function (t, r) { + $xe(e, t, r); + }) + : $xe(this, null, null); + } + gu.prototype.push = function (e, t) { + return (this._transformState.needTransform = !1), N5.prototype.push.call(this, e, t); + }; + gu.prototype._transform = function (e, t, r) { + throw new Error('_transform() is not implemented'); + }; + gu.prototype._write = function (e, t, r) { + var n = this._transformState; + if (((n.writecb = r), (n.writechunk = e), (n.writeencoding = t), !n.transforming)) { + var a = this._readableState; + (n.needTransform || a.needReadable || a.length < a.highWaterMark) && this._read(a.highWaterMark); + } + }; + gu.prototype._read = function (e) { + var t = this._transformState; + t.writechunk !== null && t.writecb && !t.transforming + ? ((t.transforming = !0), this._transform(t.writechunk, t.writeencoding, t.afterTransform)) + : (t.needTransform = !0); + }; + gu.prototype._destroy = function (e, t) { + var r = this; + N5.prototype._destroy.call(this, e, function (n) { + t(n), r.emit('close'); + }); + }; + function $xe(e, t, r) { + if (t) return e.emit('error', t); + if ((r != null && e.push(r), e._writableState.length)) + throw new Error('Calling transform done when ws.length != 0'); + if (e._transformState.transforming) throw new Error('Calling transform done when still transforming'); + return e.push(null); + } +}); +var Wxe = d((Dor, Gxe) => { + 'use strict'; + Gxe.exports = q2; + var zxe = NL(), + Hxe = Object.create(Zg()); + Hxe.inherits = Va(); + Hxe.inherits(q2, zxe); + function q2(e) { + if (!(this instanceof q2)) return new q2(e); + zxe.call(this, e); + } + q2.prototype._transform = function (e, t, r) { + r(null, e); + }; +}); +var qL = d((Fi, q5) => { + var el = require('stream'); + process.env.READABLE_STREAM === 'disable' && el + ? ((q5.exports = el), + (Fi = q5.exports = el.Readable), + (Fi.Readable = el.Readable), + (Fi.Writable = el.Writable), + (Fi.Duplex = el.Duplex), + (Fi.Transform = el.Transform), + (Fi.PassThrough = el.PassThrough), + (Fi.Stream = el)) + : ((Fi = q5.exports = OL()), + (Fi.Stream = el || Fi), + (Fi.Readable = Fi), + (Fi.Writable = SL()), + (Fi.Duplex = xf()), + (Fi.Transform = NL()), + (Fi.PassThrough = Wxe())); +}); +var vu = d((_a) => { + 'use strict'; + _a.base64 = !0; + _a.array = !0; + _a.string = !0; + _a.arraybuffer = typeof ArrayBuffer < 'u' && typeof Uint8Array < 'u'; + _a.nodebuffer = typeof Buffer < 'u'; + _a.uint8array = typeof Uint8Array < 'u'; + if (typeof ArrayBuffer > 'u') _a.blob = !1; + else { + FL = new ArrayBuffer(0); + try { + _a.blob = new Blob([FL], { type: 'application/zip' }).size === 0; + } catch { + try { + (Kxe = self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder), + (LL = new Kxe()), + LL.append(FL), + (_a.blob = LL.getBlob('application/zip').size === 0); + } catch { + _a.blob = !1; + } + } + } + var FL, Kxe, LL; + try { + _a.nodestream = !!qL().Readable; + } catch { + _a.nodestream = !1; + } +}); +var UL = d((ML) => { + 'use strict'; + var $Pt = fr(), + BPt = vu(), + tl = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; + ML.encode = function (e) { + for (var t = [], r, n, a, o, s, l, u, p = 0, c = e.length, f = c, h = $Pt.getTypeOf(e) !== 'string'; p < e.length; ) + (f = c - p), + h + ? ((r = e[p++]), (n = p < c ? e[p++] : 0), (a = p < c ? e[p++] : 0)) + : ((r = e.charCodeAt(p++)), (n = p < c ? e.charCodeAt(p++) : 0), (a = p < c ? e.charCodeAt(p++) : 0)), + (o = r >> 2), + (s = ((r & 3) << 4) | (n >> 4)), + (l = f > 1 ? ((n & 15) << 2) | (a >> 6) : 64), + (u = f > 2 ? a & 63 : 64), + t.push(tl.charAt(o) + tl.charAt(s) + tl.charAt(l) + tl.charAt(u)); + return t.join(''); + }; + ML.decode = function (e) { + var t, + r, + n, + a, + o, + s, + l, + u = 0, + p = 0, + c = 'data:'; + if (e.substr(0, c.length) === c) throw new Error('Invalid base64 input, it looks like a data url.'); + e = e.replace(/[^A-Za-z0-9+/=]/g, ''); + var f = (e.length * 3) / 4; + if ((e.charAt(e.length - 1) === tl.charAt(64) && f--, e.charAt(e.length - 2) === tl.charAt(64) && f--, f % 1 !== 0)) + throw new Error('Invalid base64 input, bad content length.'); + var h; + for (BPt.uint8array ? (h = new Uint8Array(f | 0)) : (h = new Array(f | 0)); u < e.length; ) + (a = tl.indexOf(e.charAt(u++))), + (o = tl.indexOf(e.charAt(u++))), + (s = tl.indexOf(e.charAt(u++))), + (l = tl.indexOf(e.charAt(u++))), + (t = (a << 2) | (o >> 4)), + (r = ((o & 15) << 4) | (s >> 2)), + (n = ((s & 3) << 6) | l), + (h[p++] = t), + s !== 64 && (h[p++] = r), + l !== 64 && (h[p++] = n); + return h; + }; +}); +var F2 = d((For, Xxe) => { + 'use strict'; + Xxe.exports = { + isNode: typeof Buffer < 'u', + newBufferFrom: function (e, t) { + if (Buffer.from && Buffer.from !== Uint8Array.from) return Buffer.from(e, t); + if (typeof e == 'number') throw new Error('The "data" argument must not be a number'); + return new Buffer(e, t); + }, + allocBuffer: function (e) { + if (Buffer.alloc) return Buffer.alloc(e); + var t = new Buffer(e); + return t.fill(0), t; + }, + isBuffer: function (e) { + return Buffer.isBuffer(e); + }, + isStream: function (e) { + return e && typeof e.on == 'function' && typeof e.pause == 'function' && typeof e.resume == 'function'; + }, + }; +}); +var Zxe = d((Lor, Qxe) => { + 'use strict'; + var Jxe = global.MutationObserver || global.WebKitMutationObserver, + i1; + process.browser + ? Jxe + ? (($L = 0), + (Yxe = new Jxe(L2)), + (BL = global.document.createTextNode('')), + Yxe.observe(BL, { characterData: !0 }), + (i1 = function () { + BL.data = $L = ++$L % 2; + })) + : !global.setImmediate && typeof global.MessageChannel < 'u' + ? ((VL = new global.MessageChannel()), + (VL.port1.onmessage = L2), + (i1 = function () { + VL.port2.postMessage(0); + })) + : 'document' in global && 'onreadystatechange' in global.document.createElement('script') + ? (i1 = function () { + var e = global.document.createElement('script'); + (e.onreadystatechange = function () { + L2(), (e.onreadystatechange = null), e.parentNode.removeChild(e), (e = null); + }), + global.document.documentElement.appendChild(e); + }) + : (i1 = function () { + setTimeout(L2, 0); + }) + : (i1 = function () { + process.nextTick(L2); + }); + var $L, + Yxe, + BL, + VL, + zL, + M2 = []; + function L2() { + zL = !0; + for (var e, t, r = M2.length; r; ) { + for (t = M2, M2 = [], e = -1; ++e < r; ) t[e](); + r = M2.length; + } + zL = !1; + } + Qxe.exports = VPt; + function VPt(e) { + M2.push(e) === 1 && !zL && i1(); + } +}); +var oOe = d((Mor, aOe) => { + 'use strict'; + var eOe = Zxe(); + function n1() {} + var an = {}, + tOe = ['REJECTED'], + HL = ['FULFILLED'], + rOe = ['PENDING']; + process.browser || (U2 = ['UNHANDLED']); + var U2; + aOe.exports = Qp; + function Qp(e) { + if (typeof e != 'function') throw new TypeError('resolver must be a function'); + (this.state = rOe), + (this.queue = []), + (this.outcome = void 0), + process.browser || (this.handled = U2), + e !== n1 && iOe(this, e); + } + Qp.prototype.finally = function (e) { + if (typeof e != 'function') return this; + var t = this.constructor; + return this.then(r, n); + function r(a) { + function o() { + return a; + } + return t.resolve(e()).then(o); + } + function n(a) { + function o() { + throw a; + } + return t.resolve(e()).then(o); + } + }; + Qp.prototype.catch = function (e) { + return this.then(null, e); + }; + Qp.prototype.then = function (e, t) { + if ((typeof e != 'function' && this.state === HL) || (typeof t != 'function' && this.state === tOe)) return this; + var r = new this.constructor(n1); + if ((process.browser || (this.handled === U2 && (this.handled = null)), this.state !== rOe)) { + var n = this.state === HL ? e : t; + GL(r, n, this.outcome); + } else this.queue.push(new $2(r, e, t)); + return r; + }; + function $2(e, t, r) { + (this.promise = e), + typeof t == 'function' && ((this.onFulfilled = t), (this.callFulfilled = this.otherCallFulfilled)), + typeof r == 'function' && ((this.onRejected = r), (this.callRejected = this.otherCallRejected)); + } + $2.prototype.callFulfilled = function (e) { + an.resolve(this.promise, e); + }; + $2.prototype.otherCallFulfilled = function (e) { + GL(this.promise, this.onFulfilled, e); + }; + $2.prototype.callRejected = function (e) { + an.reject(this.promise, e); + }; + $2.prototype.otherCallRejected = function (e) { + GL(this.promise, this.onRejected, e); + }; + function GL(e, t, r) { + eOe(function () { + var n; + try { + n = t(r); + } catch (a) { + return an.reject(e, a); + } + n === e ? an.reject(e, new TypeError('Cannot resolve promise with itself')) : an.resolve(e, n); + }); + } + an.resolve = function (e, t) { + var r = nOe(zPt, t); + if (r.status === 'error') return an.reject(e, r.value); + var n = r.value; + if (n) iOe(e, n); + else { + (e.state = HL), (e.outcome = t); + for (var a = -1, o = e.queue.length; ++a < o; ) e.queue[a].callFulfilled(t); + } + return e; + }; + an.reject = function (e, t) { + (e.state = tOe), + (e.outcome = t), + process.browser || + (e.handled === U2 && + eOe(function () { + e.handled === U2 && process.emit('unhandledRejection', t, e); + })); + for (var r = -1, n = e.queue.length; ++r < n; ) e.queue[r].callRejected(t); + return e; + }; + function zPt(e) { + var t = e && e.then; + if (e && (typeof e == 'object' || typeof e == 'function') && typeof t == 'function') + return function () { + t.apply(e, arguments); + }; + } + function iOe(e, t) { + var r = !1; + function n(l) { + r || ((r = !0), an.reject(e, l)); + } + function a(l) { + r || ((r = !0), an.resolve(e, l)); + } + function o() { + t(a, n); + } + var s = nOe(o); + s.status === 'error' && n(s.value); + } + function nOe(e, t) { + var r = {}; + try { + (r.value = e(t)), (r.status = 'success'); + } catch (n) { + (r.status = 'error'), (r.value = n); + } + return r; + } + Qp.resolve = HPt; + function HPt(e) { + return e instanceof this ? e : an.resolve(new this(n1), e); + } + Qp.reject = GPt; + function GPt(e) { + var t = new this(n1); + return an.reject(t, e); + } + Qp.all = WPt; + function WPt(e) { + var t = this; + if (Object.prototype.toString.call(e) !== '[object Array]') return this.reject(new TypeError('must be an array')); + var r = e.length, + n = !1; + if (!r) return this.resolve([]); + for (var a = new Array(r), o = 0, s = -1, l = new this(n1); ++s < r; ) u(e[s], s); + return l; + function u(p, c) { + t.resolve(p).then(f, function (h) { + n || ((n = !0), an.reject(l, h)); + }); + function f(h) { + (a[c] = h), ++o === r && !n && ((n = !0), an.resolve(l, a)); + } + } + } + Qp.race = KPt; + function KPt(e) { + var t = this; + if (Object.prototype.toString.call(e) !== '[object Array]') return this.reject(new TypeError('must be an array')); + var r = e.length, + n = !1; + if (!r) return this.resolve([]); + for (var a = -1, o = new this(n1); ++a < r; ) s(e[a]); + return o; + function s(l) { + t.resolve(l).then( + function (u) { + n || ((n = !0), an.resolve(o, u)); + }, + function (u) { + n || ((n = !0), an.reject(o, u)); + } + ); + } + } +}); +var a1 = d((Uor, sOe) => { + 'use strict'; + var WL = null; + typeof Promise < 'u' ? (WL = Promise) : (WL = oOe()); + sOe.exports = { Promise: WL }; +}); +var uOe = d((lOe) => { + (function (e, t) { + 'use strict'; + if (e.setImmediate) return; + var r = 1, + n = {}, + a = !1, + o = e.document, + s; + function l(O) { + typeof O != 'function' && (O = new Function('' + O)); + for (var x = new Array(arguments.length - 1), _ = 0; _ < x.length; _++) x[_] = arguments[_ + 1]; + var b = { callback: O, args: x }; + return (n[r] = b), s(r), r++; + } + function u(O) { + delete n[O]; + } + function p(O) { + var x = O.callback, + _ = O.args; + switch (_.length) { + case 0: + x(); + break; + case 1: + x(_[0]); + break; + case 2: + x(_[0], _[1]); + break; + case 3: + x(_[0], _[1], _[2]); + break; + default: + x.apply(t, _); + break; + } + } + function c(O) { + if (a) setTimeout(c, 0, O); + else { + var x = n[O]; + if (x) { + a = !0; + try { + p(x); + } finally { + u(O), (a = !1); + } + } + } + } + function f() { + s = function (O) { + process.nextTick(function () { + c(O); + }); + }; + } + function h() { + if (e.postMessage && !e.importScripts) { + var O = !0, + x = e.onmessage; + return ( + (e.onmessage = function () { + O = !1; + }), + e.postMessage('', '*'), + (e.onmessage = x), + O + ); + } + } + function m() { + var O = 'setImmediate$' + Math.random() + '$', + x = function (_) { + _.source === e && typeof _.data == 'string' && _.data.indexOf(O) === 0 && c(+_.data.slice(O.length)); + }; + e.addEventListener ? e.addEventListener('message', x, !1) : e.attachEvent('onmessage', x), + (s = function (_) { + e.postMessage(O + _, '*'); + }); + } + function v() { + var O = new MessageChannel(); + (O.port1.onmessage = function (x) { + var _ = x.data; + c(_); + }), + (s = function (x) { + O.port2.postMessage(x); + }); + } + function y() { + var O = o.documentElement; + s = function (x) { + var _ = o.createElement('script'); + (_.onreadystatechange = function () { + c(x), (_.onreadystatechange = null), O.removeChild(_), (_ = null); + }), + O.appendChild(_); + }; + } + function S() { + s = function (O) { + setTimeout(c, 0, O); + }; + } + var w = Object.getPrototypeOf && Object.getPrototypeOf(e); + (w = w && w.setTimeout ? w : e), + {}.toString.call(e.process) === '[object process]' + ? f() + : h() + ? m() + : e.MessageChannel + ? v() + : o && 'onreadystatechange' in o.createElement('script') + ? y() + : S(), + (w.setImmediate = l), + (w.clearImmediate = u); + })(typeof self > 'u' ? (typeof global > 'u' ? lOe : global) : self); +}); +var fr = d((Jr) => { + 'use strict'; + var Zp = vu(), + XPt = UL(), + o1 = F2(), + KL = a1(); + uOe(); + function JPt(e) { + var t = null; + return Zp.uint8array ? (t = new Uint8Array(e.length)) : (t = new Array(e.length)), L5(e, t); + } + Jr.newBlob = function (e, t) { + Jr.checkSupport('blob'); + try { + return new Blob([e], { type: t }); + } catch { + try { + var r = self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder, + n = new r(); + return n.append(e), n.getBlob(t); + } catch { + throw new Error("Bug : can't construct the Blob."); + } + } + }; + function B2(e) { + return e; + } + function L5(e, t) { + for (var r = 0; r < e.length; ++r) t[r] = e.charCodeAt(r) & 255; + return t; + } + var F5 = { + stringifyByChunk: function (e, t, r) { + var n = [], + a = 0, + o = e.length; + if (o <= r) return String.fromCharCode.apply(null, e); + for (; a < o; ) + t === 'array' || t === 'nodebuffer' + ? n.push(String.fromCharCode.apply(null, e.slice(a, Math.min(a + r, o)))) + : n.push(String.fromCharCode.apply(null, e.subarray(a, Math.min(a + r, o)))), + (a += r); + return n.join(''); + }, + stringifyByChar: function (e) { + for (var t = '', r = 0; r < e.length; r++) t += String.fromCharCode(e[r]); + return t; + }, + applyCanBeUsed: { + uint8array: (function () { + try { + return Zp.uint8array && String.fromCharCode.apply(null, new Uint8Array(1)).length === 1; + } catch { + return !1; + } + })(), + nodebuffer: (function () { + try { + return Zp.nodebuffer && String.fromCharCode.apply(null, o1.allocBuffer(1)).length === 1; + } catch { + return !1; + } + })(), + }, + }; + function V2(e) { + var t = 65536, + r = Jr.getTypeOf(e), + n = !0; + if ( + (r === 'uint8array' + ? (n = F5.applyCanBeUsed.uint8array) + : r === 'nodebuffer' && (n = F5.applyCanBeUsed.nodebuffer), + n) + ) + for (; t > 1; ) + try { + return F5.stringifyByChunk(e, r, t); + } catch { + t = Math.floor(t / 2); + } + return F5.stringifyByChar(e); + } + Jr.applyFromCharCode = V2; + function M5(e, t) { + for (var r = 0; r < e.length; r++) t[r] = e[r]; + return t; + } + var ec = {}; + ec.string = { + string: B2, + array: function (e) { + return L5(e, new Array(e.length)); + }, + arraybuffer: function (e) { + return ec.string.uint8array(e).buffer; + }, + uint8array: function (e) { + return L5(e, new Uint8Array(e.length)); + }, + nodebuffer: function (e) { + return L5(e, o1.allocBuffer(e.length)); + }, + }; + ec.array = { + string: V2, + array: B2, + arraybuffer: function (e) { + return new Uint8Array(e).buffer; + }, + uint8array: function (e) { + return new Uint8Array(e); + }, + nodebuffer: function (e) { + return o1.newBufferFrom(e); + }, + }; + ec.arraybuffer = { + string: function (e) { + return V2(new Uint8Array(e)); + }, + array: function (e) { + return M5(new Uint8Array(e), new Array(e.byteLength)); + }, + arraybuffer: B2, + uint8array: function (e) { + return new Uint8Array(e); + }, + nodebuffer: function (e) { + return o1.newBufferFrom(new Uint8Array(e)); + }, + }; + ec.uint8array = { + string: V2, + array: function (e) { + return M5(e, new Array(e.length)); + }, + arraybuffer: function (e) { + return e.buffer; + }, + uint8array: B2, + nodebuffer: function (e) { + return o1.newBufferFrom(e); + }, + }; + ec.nodebuffer = { + string: V2, + array: function (e) { + return M5(e, new Array(e.length)); + }, + arraybuffer: function (e) { + return ec.nodebuffer.uint8array(e).buffer; + }, + uint8array: function (e) { + return M5(e, new Uint8Array(e.length)); + }, + nodebuffer: B2, + }; + Jr.transformTo = function (e, t) { + if ((t || (t = ''), !e)) return t; + Jr.checkSupport(e); + var r = Jr.getTypeOf(t), + n = ec[r][e](t); + return n; + }; + Jr.resolve = function (e) { + for (var t = e.split('/'), r = [], n = 0; n < t.length; n++) { + var a = t[n]; + a === '.' || (a === '' && n !== 0 && n !== t.length - 1) || (a === '..' ? r.pop() : r.push(a)); + } + return r.join('/'); + }; + Jr.getTypeOf = function (e) { + if (typeof e == 'string') return 'string'; + if (Object.prototype.toString.call(e) === '[object Array]') return 'array'; + if (Zp.nodebuffer && o1.isBuffer(e)) return 'nodebuffer'; + if (Zp.uint8array && e instanceof Uint8Array) return 'uint8array'; + if (Zp.arraybuffer && e instanceof ArrayBuffer) return 'arraybuffer'; + }; + Jr.checkSupport = function (e) { + var t = Zp[e.toLowerCase()]; + if (!t) throw new Error(e + ' is not supported by this platform'); + }; + Jr.MAX_VALUE_16BITS = 65535; + Jr.MAX_VALUE_32BITS = -1; + Jr.pretty = function (e) { + var t = '', + r, + n; + for (n = 0; n < (e || '').length; n++) + (r = e.charCodeAt(n)), (t += '\\x' + (r < 16 ? '0' : '') + r.toString(16).toUpperCase()); + return t; + }; + Jr.delay = function (e, t, r) { + setImmediate(function () { + e.apply(r || null, t || []); + }); + }; + Jr.inherits = function (e, t) { + var r = function () {}; + (r.prototype = t.prototype), (e.prototype = new r()); + }; + Jr.extend = function () { + var e = {}, + t, + r; + for (t = 0; t < arguments.length; t++) + for (r in arguments[t]) + Object.prototype.hasOwnProperty.call(arguments[t], r) && typeof e[r] > 'u' && (e[r] = arguments[t][r]); + return e; + }; + Jr.prepareContent = function (e, t, r, n, a) { + var o = KL.Promise.resolve(t).then(function (s) { + var l = + Zp.blob && + (s instanceof Blob || ['[object File]', '[object Blob]'].indexOf(Object.prototype.toString.call(s)) !== -1); + return l && typeof FileReader < 'u' + ? new KL.Promise(function (u, p) { + var c = new FileReader(); + (c.onload = function (f) { + u(f.target.result); + }), + (c.onerror = function (f) { + p(f.target.error); + }), + c.readAsArrayBuffer(s); + }) + : s; + }); + return o.then(function (s) { + var l = Jr.getTypeOf(s); + return l + ? (l === 'arraybuffer' + ? (s = Jr.transformTo('uint8array', s)) + : l === 'string' && (a ? (s = XPt.decode(s)) : r && n !== !0 && (s = JPt(s))), + s) + : KL.Promise.reject( + new Error( + "Can't read the data of '" + + e + + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?" + ) + ); + }); + }; +}); +var wa = d((Vor, cOe) => { + 'use strict'; + function pOe(e) { + (this.name = e || 'default'), + (this.streamInfo = {}), + (this.generatedError = null), + (this.extraStreamInfo = {}), + (this.isPaused = !0), + (this.isFinished = !1), + (this.isLocked = !1), + (this._listeners = { data: [], end: [], error: [] }), + (this.previous = null); + } + pOe.prototype = { + push: function (e) { + this.emit('data', e); + }, + end: function () { + if (this.isFinished) return !1; + this.flush(); + try { + this.emit('end'), this.cleanUp(), (this.isFinished = !0); + } catch (e) { + this.emit('error', e); + } + return !0; + }, + error: function (e) { + return this.isFinished + ? !1 + : (this.isPaused + ? (this.generatedError = e) + : ((this.isFinished = !0), this.emit('error', e), this.previous && this.previous.error(e), this.cleanUp()), + !0); + }, + on: function (e, t) { + return this._listeners[e].push(t), this; + }, + cleanUp: function () { + (this.streamInfo = this.generatedError = this.extraStreamInfo = null), (this._listeners = []); + }, + emit: function (e, t) { + if (this._listeners[e]) for (var r = 0; r < this._listeners[e].length; r++) this._listeners[e][r].call(this, t); + }, + pipe: function (e) { + return e.registerPrevious(this); + }, + registerPrevious: function (e) { + if (this.isLocked) throw new Error("The stream '" + this + "' has already been used."); + (this.streamInfo = e.streamInfo), this.mergeStreamInfo(), (this.previous = e); + var t = this; + return ( + e.on('data', function (r) { + t.processChunk(r); + }), + e.on('end', function () { + t.end(); + }), + e.on('error', function (r) { + t.error(r); + }), + this + ); + }, + pause: function () { + return this.isPaused || this.isFinished ? !1 : ((this.isPaused = !0), this.previous && this.previous.pause(), !0); + }, + resume: function () { + if (!this.isPaused || this.isFinished) return !1; + this.isPaused = !1; + var e = !1; + return ( + this.generatedError && (this.error(this.generatedError), (e = !0)), this.previous && this.previous.resume(), !e + ); + }, + flush: function () {}, + processChunk: function (e) { + this.push(e); + }, + withStreamInfo: function (e, t) { + return (this.extraStreamInfo[e] = t), this.mergeStreamInfo(), this; + }, + mergeStreamInfo: function () { + for (var e in this.extraStreamInfo) + Object.prototype.hasOwnProperty.call(this.extraStreamInfo, e) && (this.streamInfo[e] = this.extraStreamInfo[e]); + }, + lock: function () { + if (this.isLocked) throw new Error("The stream '" + this + "' has already been used."); + (this.isLocked = !0), this.previous && this.previous.lock(); + }, + toString: function () { + var e = 'Worker ' + this.name; + return this.previous ? this.previous + ' -> ' + e : e; + }, + }; + cOe.exports = pOe; +}); +var l1 = d((tc) => { + 'use strict'; + var s1 = fr(), + Of = vu(), + YPt = F2(), + U5 = wa(), + z2 = new Array(256); + for (yu = 0; yu < 256; yu++) + z2[yu] = yu >= 252 ? 6 : yu >= 248 ? 5 : yu >= 240 ? 4 : yu >= 224 ? 3 : yu >= 192 ? 2 : 1; + var yu; + z2[254] = z2[254] = 1; + var QPt = function (e) { + var t, + r, + n, + a, + o, + s = e.length, + l = 0; + for (a = 0; a < s; a++) + (r = e.charCodeAt(a)), + (r & 64512) === 55296 && + a + 1 < s && + ((n = e.charCodeAt(a + 1)), + (n & 64512) === 56320 && ((r = 65536 + ((r - 55296) << 10) + (n - 56320)), a++)), + (l += r < 128 ? 1 : r < 2048 ? 2 : r < 65536 ? 3 : 4); + for (Of.uint8array ? (t = new Uint8Array(l)) : (t = new Array(l)), o = 0, a = 0; o < l; a++) + (r = e.charCodeAt(a)), + (r & 64512) === 55296 && + a + 1 < s && + ((n = e.charCodeAt(a + 1)), + (n & 64512) === 56320 && ((r = 65536 + ((r - 55296) << 10) + (n - 56320)), a++)), + r < 128 + ? (t[o++] = r) + : r < 2048 + ? ((t[o++] = 192 | (r >>> 6)), (t[o++] = 128 | (r & 63))) + : r < 65536 + ? ((t[o++] = 224 | (r >>> 12)), (t[o++] = 128 | ((r >>> 6) & 63)), (t[o++] = 128 | (r & 63))) + : ((t[o++] = 240 | (r >>> 18)), + (t[o++] = 128 | ((r >>> 12) & 63)), + (t[o++] = 128 | ((r >>> 6) & 63)), + (t[o++] = 128 | (r & 63))); + return t; + }, + ZPt = function (e, t) { + var r; + for (t = t || e.length, t > e.length && (t = e.length), r = t - 1; r >= 0 && (e[r] & 192) === 128; ) r--; + return r < 0 || r === 0 ? t : r + z2[e[r]] > t ? r : t; + }, + eRt = function (e) { + var t, + r, + n, + a, + o = e.length, + s = new Array(o * 2); + for (r = 0, t = 0; t < o; ) { + if (((n = e[t++]), n < 128)) { + s[r++] = n; + continue; + } + if (((a = z2[n]), a > 4)) { + (s[r++] = 65533), (t += a - 1); + continue; + } + for (n &= a === 2 ? 31 : a === 3 ? 15 : 7; a > 1 && t < o; ) (n = (n << 6) | (e[t++] & 63)), a--; + if (a > 1) { + s[r++] = 65533; + continue; + } + n < 65536 ? (s[r++] = n) : ((n -= 65536), (s[r++] = 55296 | ((n >> 10) & 1023)), (s[r++] = 56320 | (n & 1023))); + } + return s.length !== r && (s.subarray ? (s = s.subarray(0, r)) : (s.length = r)), s1.applyFromCharCode(s); + }; + tc.utf8encode = function (t) { + return Of.nodebuffer ? YPt.newBufferFrom(t, 'utf-8') : QPt(t); + }; + tc.utf8decode = function (t) { + return Of.nodebuffer + ? s1.transformTo('nodebuffer', t).toString('utf-8') + : ((t = s1.transformTo(Of.uint8array ? 'uint8array' : 'array', t)), eRt(t)); + }; + function $5() { + U5.call(this, 'utf-8 decode'), (this.leftOver = null); + } + s1.inherits($5, U5); + $5.prototype.processChunk = function (e) { + var t = s1.transformTo(Of.uint8array ? 'uint8array' : 'array', e.data); + if (this.leftOver && this.leftOver.length) { + if (Of.uint8array) { + var r = t; + (t = new Uint8Array(r.length + this.leftOver.length)), t.set(this.leftOver, 0), t.set(r, this.leftOver.length); + } else t = this.leftOver.concat(t); + this.leftOver = null; + } + var n = ZPt(t), + a = t; + n !== t.length && + (Of.uint8array + ? ((a = t.subarray(0, n)), (this.leftOver = t.subarray(n, t.length))) + : ((a = t.slice(0, n)), (this.leftOver = t.slice(n, t.length)))), + this.push({ data: tc.utf8decode(a), meta: e.meta }); + }; + $5.prototype.flush = function () { + this.leftOver && + this.leftOver.length && + (this.push({ data: tc.utf8decode(this.leftOver), meta: {} }), (this.leftOver = null)); + }; + tc.Utf8DecodeWorker = $5; + function XL() { + U5.call(this, 'utf-8 encode'); + } + s1.inherits(XL, U5); + XL.prototype.processChunk = function (e) { + this.push({ data: tc.utf8encode(e.data), meta: e.meta }); + }; + tc.Utf8EncodeWorker = XL; +}); +var hOe = d((Hor, mOe) => { + 'use strict'; + var dOe = wa(), + fOe = fr(); + function JL(e) { + dOe.call(this, 'ConvertWorker to ' + e), (this.destType = e); + } + fOe.inherits(JL, dOe); + JL.prototype.processChunk = function (e) { + this.push({ data: fOe.transformTo(this.destType, e.data), meta: e.meta }); + }; + mOe.exports = JL; +}); +var yOe = d((Gor, vOe) => { + 'use strict'; + var gOe = qL().Readable, + tRt = fr(); + tRt.inherits(YL, gOe); + function YL(e, t, r) { + gOe.call(this, t), (this._helper = e); + var n = this; + e.on('data', function (a, o) { + n.push(a) || n._helper.pause(), r && r(o); + }) + .on('error', function (a) { + n.emit('error', a); + }) + .on('end', function () { + n.push(null); + }); + } + YL.prototype._read = function () { + this._helper.resume(); + }; + vOe.exports = YL; +}); +var QL = d((Wor, wOe) => { + 'use strict'; + var Tf = fr(), + rRt = hOe(), + iRt = wa(), + nRt = UL(), + aRt = vu(), + oRt = a1(), + bOe = null; + if (aRt.nodestream) + try { + bOe = yOe(); + } catch {} + function sRt(e, t, r) { + switch (e) { + case 'blob': + return Tf.newBlob(Tf.transformTo('arraybuffer', t), r); + case 'base64': + return nRt.encode(t); + default: + return Tf.transformTo(e, t); + } + } + function lRt(e, t) { + var r, + n = 0, + a = null, + o = 0; + for (r = 0; r < t.length; r++) o += t[r].length; + switch (e) { + case 'string': + return t.join(''); + case 'array': + return Array.prototype.concat.apply([], t); + case 'uint8array': + for (a = new Uint8Array(o), r = 0; r < t.length; r++) a.set(t[r], n), (n += t[r].length); + return a; + case 'nodebuffer': + return Buffer.concat(t); + default: + throw new Error("concat : unsupported type '" + e + "'"); + } + } + function uRt(e, t) { + return new oRt.Promise(function (r, n) { + var a = [], + o = e._internalType, + s = e._outputType, + l = e._mimeType; + e.on('data', function (u, p) { + a.push(u), t && t(p); + }) + .on('error', function (u) { + (a = []), n(u); + }) + .on('end', function () { + try { + var u = sRt(s, lRt(o, a), l); + r(u); + } catch (p) { + n(p); + } + a = []; + }) + .resume(); + }); + } + function _Oe(e, t, r) { + var n = t; + switch (t) { + case 'blob': + case 'arraybuffer': + n = 'uint8array'; + break; + case 'base64': + n = 'string'; + break; + } + try { + (this._internalType = n), + (this._outputType = t), + (this._mimeType = r), + Tf.checkSupport(n), + (this._worker = e.pipe(new rRt(n))), + e.lock(); + } catch (a) { + (this._worker = new iRt('error')), this._worker.error(a); + } + } + _Oe.prototype = { + accumulate: function (e) { + return uRt(this, e); + }, + on: function (e, t) { + var r = this; + return ( + e === 'data' + ? this._worker.on(e, function (n) { + t.call(r, n.data, n.meta); + }) + : this._worker.on(e, function () { + Tf.delay(t, arguments, r); + }), + this + ); + }, + resume: function () { + return Tf.delay(this._worker.resume, [], this._worker), this; + }, + pause: function () { + return this._worker.pause(), this; + }, + toNodejsStream: function (e) { + if ((Tf.checkSupport('nodestream'), this._outputType !== 'nodebuffer')) + throw new Error(this._outputType + ' is not supported by this method'); + return new bOe(this, { objectMode: this._outputType !== 'nodebuffer' }, e); + }, + }; + wOe.exports = _Oe; +}); +var ZL = d((Zo) => { + 'use strict'; + Zo.base64 = !1; + Zo.binary = !1; + Zo.dir = !1; + Zo.createFolders = !0; + Zo.date = null; + Zo.compression = null; + Zo.compressionOptions = null; + Zo.comment = null; + Zo.unixPermissions = null; + Zo.dosPermissions = null; +}); +var eM = d((Xor, SOe) => { + 'use strict'; + var B5 = fr(), + V5 = wa(), + pRt = 16 * 1024; + function u1(e) { + V5.call(this, 'DataWorker'); + var t = this; + (this.dataIsReady = !1), + (this.index = 0), + (this.max = 0), + (this.data = null), + (this.type = ''), + (this._tickScheduled = !1), + e.then( + function (r) { + (t.dataIsReady = !0), + (t.data = r), + (t.max = (r && r.length) || 0), + (t.type = B5.getTypeOf(r)), + t.isPaused || t._tickAndRepeat(); + }, + function (r) { + t.error(r); + } + ); + } + B5.inherits(u1, V5); + u1.prototype.cleanUp = function () { + V5.prototype.cleanUp.call(this), (this.data = null); + }; + u1.prototype.resume = function () { + return V5.prototype.resume.call(this) + ? (!this._tickScheduled && + this.dataIsReady && + ((this._tickScheduled = !0), B5.delay(this._tickAndRepeat, [], this)), + !0) + : !1; + }; + u1.prototype._tickAndRepeat = function () { + (this._tickScheduled = !1), + !(this.isPaused || this.isFinished) && + (this._tick(), this.isFinished || (B5.delay(this._tickAndRepeat, [], this), (this._tickScheduled = !0))); + }; + u1.prototype._tick = function () { + if (this.isPaused || this.isFinished) return !1; + var e = pRt, + t = null, + r = Math.min(this.max, this.index + e); + if (this.index >= this.max) return this.end(); + switch (this.type) { + case 'string': + t = this.data.substring(this.index, r); + break; + case 'uint8array': + t = this.data.subarray(this.index, r); + break; + case 'array': + case 'nodebuffer': + t = this.data.slice(this.index, r); + break; + } + return (this.index = r), this.push({ data: t, meta: { percent: this.max ? (this.index / this.max) * 100 : 0 } }); + }; + SOe.exports = u1; +}); +var z5 = d((Jor, xOe) => { + 'use strict'; + var cRt = fr(); + function dRt() { + for (var e, t = [], r = 0; r < 256; r++) { + e = r; + for (var n = 0; n < 8; n++) e = e & 1 ? 3988292384 ^ (e >>> 1) : e >>> 1; + t[r] = e; + } + return t; + } + var EOe = dRt(); + function fRt(e, t, r, n) { + var a = EOe, + o = n + r; + e = e ^ -1; + for (var s = n; s < o; s++) e = (e >>> 8) ^ a[(e ^ t[s]) & 255]; + return e ^ -1; + } + function mRt(e, t, r, n) { + var a = EOe, + o = n + r; + e = e ^ -1; + for (var s = n; s < o; s++) e = (e >>> 8) ^ a[(e ^ t.charCodeAt(s)) & 255]; + return e ^ -1; + } + xOe.exports = function (t, r) { + if (typeof t > 'u' || !t.length) return 0; + var n = cRt.getTypeOf(t) !== 'string'; + return n ? fRt(r | 0, t, t.length, 0) : mRt(r | 0, t, t.length, 0); + }; +}); +var rM = d((Yor, TOe) => { + 'use strict'; + var OOe = wa(), + hRt = z5(), + gRt = fr(); + function tM() { + OOe.call(this, 'Crc32Probe'), this.withStreamInfo('crc32', 0); + } + gRt.inherits(tM, OOe); + tM.prototype.processChunk = function (e) { + (this.streamInfo.crc32 = hRt(e.data, this.streamInfo.crc32 || 0)), this.push(e); + }; + TOe.exports = tM; +}); +var kOe = d((Qor, COe) => { + 'use strict'; + var vRt = fr(), + iM = wa(); + function nM(e) { + iM.call(this, 'DataLengthProbe for ' + e), (this.propName = e), this.withStreamInfo(e, 0); + } + vRt.inherits(nM, iM); + nM.prototype.processChunk = function (e) { + if (e) { + var t = this.streamInfo[this.propName] || 0; + this.streamInfo[this.propName] = t + e.data.length; + } + iM.prototype.processChunk.call(this, e); + }; + COe.exports = nM; +}); +var H5 = d((Zor, POe) => { + 'use strict'; + var AOe = a1(), + IOe = eM(), + yRt = rM(), + aM = kOe(); + function oM(e, t, r, n, a) { + (this.compressedSize = e), + (this.uncompressedSize = t), + (this.crc32 = r), + (this.compression = n), + (this.compressedContent = a); + } + oM.prototype = { + getContentWorker: function () { + var e = new IOe(AOe.Promise.resolve(this.compressedContent)) + .pipe(this.compression.uncompressWorker()) + .pipe(new aM('data_length')), + t = this; + return ( + e.on('end', function () { + if (this.streamInfo.data_length !== t.uncompressedSize) + throw new Error('Bug : uncompressed data size mismatch'); + }), + e + ); + }, + getCompressedWorker: function () { + return new IOe(AOe.Promise.resolve(this.compressedContent)) + .withStreamInfo('compressedSize', this.compressedSize) + .withStreamInfo('uncompressedSize', this.uncompressedSize) + .withStreamInfo('crc32', this.crc32) + .withStreamInfo('compression', this.compression); + }, + }; + oM.createWorkerFrom = function (e, t, r) { + return e + .pipe(new yRt()) + .pipe(new aM('uncompressedSize')) + .pipe(t.compressWorker(r)) + .pipe(new aM('compressedSize')) + .withStreamInfo('compression', t); + }; + POe.exports = oM; +}); +var NOe = d((esr, DOe) => { + 'use strict'; + var bRt = QL(), + _Rt = eM(), + sM = l1(), + lM = H5(), + ROe = wa(), + uM = function (e, t, r) { + (this.name = e), + (this.dir = r.dir), + (this.date = r.date), + (this.comment = r.comment), + (this.unixPermissions = r.unixPermissions), + (this.dosPermissions = r.dosPermissions), + (this._data = t), + (this._dataBinary = r.binary), + (this.options = { compression: r.compression, compressionOptions: r.compressionOptions }); + }; + uM.prototype = { + internalStream: function (e) { + var t = null, + r = 'string'; + try { + if (!e) throw new Error('No output type specified.'); + r = e.toLowerCase(); + var n = r === 'string' || r === 'text'; + (r === 'binarystring' || r === 'text') && (r = 'string'), (t = this._decompressWorker()); + var a = !this._dataBinary; + a && !n && (t = t.pipe(new sM.Utf8EncodeWorker())), !a && n && (t = t.pipe(new sM.Utf8DecodeWorker())); + } catch (o) { + (t = new ROe('error')), t.error(o); + } + return new bRt(t, r, ''); + }, + async: function (e, t) { + return this.internalStream(e).accumulate(t); + }, + nodeStream: function (e, t) { + return this.internalStream(e || 'nodebuffer').toNodejsStream(t); + }, + _compressWorker: function (e, t) { + if (this._data instanceof lM && this._data.compression.magic === e.magic) return this._data.getCompressedWorker(); + var r = this._decompressWorker(); + return this._dataBinary || (r = r.pipe(new sM.Utf8EncodeWorker())), lM.createWorkerFrom(r, e, t); + }, + _decompressWorker: function () { + return this._data instanceof lM + ? this._data.getContentWorker() + : this._data instanceof ROe + ? this._data + : new _Rt(this._data); + }, + }; + var jOe = ['asText', 'asBinary', 'asNodeBuffer', 'asUint8Array', 'asArrayBuffer'], + wRt = function () { + throw new Error('This method has been removed in JSZip 3.0, please check the upgrade guide.'); + }; + for (G5 = 0; G5 < jOe.length; G5++) uM.prototype[jOe[G5]] = wRt; + var G5; + DOe.exports = uM; +}); +var bu = d((Sn) => { + 'use strict'; + var SRt = typeof Uint8Array < 'u' && typeof Uint16Array < 'u' && typeof Int32Array < 'u'; + function ERt(e, t) { + return Object.prototype.hasOwnProperty.call(e, t); + } + Sn.assign = function (e) { + for (var t = Array.prototype.slice.call(arguments, 1); t.length; ) { + var r = t.shift(); + if (r) { + if (typeof r != 'object') throw new TypeError(r + 'must be non-object'); + for (var n in r) ERt(r, n) && (e[n] = r[n]); + } + } + return e; + }; + Sn.shrinkBuf = function (e, t) { + return e.length === t ? e : e.subarray ? e.subarray(0, t) : ((e.length = t), e); + }; + var xRt = { + arraySet: function (e, t, r, n, a) { + if (t.subarray && e.subarray) { + e.set(t.subarray(r, r + n), a); + return; + } + for (var o = 0; o < n; o++) e[a + o] = t[r + o]; + }, + flattenChunks: function (e) { + var t, r, n, a, o, s; + for (n = 0, t = 0, r = e.length; t < r; t++) n += e[t].length; + for (s = new Uint8Array(n), a = 0, t = 0, r = e.length; t < r; t++) (o = e[t]), s.set(o, a), (a += o.length); + return s; + }, + }, + ORt = { + arraySet: function (e, t, r, n, a) { + for (var o = 0; o < n; o++) e[a + o] = t[r + o]; + }, + flattenChunks: function (e) { + return [].concat.apply([], e); + }, + }; + Sn.setTyped = function (e) { + e + ? ((Sn.Buf8 = Uint8Array), (Sn.Buf16 = Uint16Array), (Sn.Buf32 = Int32Array), Sn.assign(Sn, xRt)) + : ((Sn.Buf8 = Array), (Sn.Buf16 = Array), (Sn.Buf32 = Array), Sn.assign(Sn, ORt)); + }; + Sn.setTyped(SRt); +}); +var nTe = d((d1) => { + 'use strict'; + var TRt = bu(), + CRt = 4, + qOe = 0, + FOe = 1, + kRt = 2; + function c1(e) { + for (var t = e.length; --t >= 0; ) e[t] = 0; + } + var ARt = 0, + VOe = 1, + IRt = 2, + PRt = 3, + RRt = 258, + gM = 29, + J2 = 256, + G2 = J2 + 1 + gM, + p1 = 30, + vM = 19, + zOe = 2 * G2 + 1, + Cf = 15, + pM = 16, + jRt = 7, + yM = 256, + HOe = 16, + GOe = 17, + WOe = 18, + mM = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], + W5 = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], + DRt = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], + KOe = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], + NRt = 512, + _u = new Array((G2 + 2) * 2); + c1(_u); + var H2 = new Array(p1 * 2); + c1(H2); + var W2 = new Array(NRt); + c1(W2); + var K2 = new Array(RRt - PRt + 1); + c1(K2); + var bM = new Array(gM); + c1(bM); + var K5 = new Array(p1); + c1(K5); + function cM(e, t, r, n, a) { + (this.static_tree = e), + (this.extra_bits = t), + (this.extra_base = r), + (this.elems = n), + (this.max_length = a), + (this.has_stree = e && e.length); + } + var XOe, JOe, YOe; + function dM(e, t) { + (this.dyn_tree = e), (this.max_code = 0), (this.stat_desc = t); + } + function QOe(e) { + return e < 256 ? W2[e] : W2[256 + (e >>> 7)]; + } + function X2(e, t) { + (e.pending_buf[e.pending++] = t & 255), (e.pending_buf[e.pending++] = (t >>> 8) & 255); + } + function Kn(e, t, r) { + e.bi_valid > pM - r + ? ((e.bi_buf |= (t << e.bi_valid) & 65535), + X2(e, e.bi_buf), + (e.bi_buf = t >> (pM - e.bi_valid)), + (e.bi_valid += r - pM)) + : ((e.bi_buf |= (t << e.bi_valid) & 65535), (e.bi_valid += r)); + } + function rl(e, t, r) { + Kn(e, r[t * 2], r[t * 2 + 1]); + } + function ZOe(e, t) { + var r = 0; + do (r |= e & 1), (e >>>= 1), (r <<= 1); + while (--t > 0); + return r >>> 1; + } + function qRt(e) { + e.bi_valid === 16 + ? (X2(e, e.bi_buf), (e.bi_buf = 0), (e.bi_valid = 0)) + : e.bi_valid >= 8 && ((e.pending_buf[e.pending++] = e.bi_buf & 255), (e.bi_buf >>= 8), (e.bi_valid -= 8)); + } + function FRt(e, t) { + var r = t.dyn_tree, + n = t.max_code, + a = t.stat_desc.static_tree, + o = t.stat_desc.has_stree, + s = t.stat_desc.extra_bits, + l = t.stat_desc.extra_base, + u = t.stat_desc.max_length, + p, + c, + f, + h, + m, + v, + y = 0; + for (h = 0; h <= Cf; h++) e.bl_count[h] = 0; + for (r[e.heap[e.heap_max] * 2 + 1] = 0, p = e.heap_max + 1; p < zOe; p++) + (c = e.heap[p]), + (h = r[r[c * 2 + 1] * 2 + 1] + 1), + h > u && ((h = u), y++), + (r[c * 2 + 1] = h), + !(c > n) && + (e.bl_count[h]++, + (m = 0), + c >= l && (m = s[c - l]), + (v = r[c * 2]), + (e.opt_len += v * (h + m)), + o && (e.static_len += v * (a[c * 2 + 1] + m))); + if (y !== 0) { + do { + for (h = u - 1; e.bl_count[h] === 0; ) h--; + e.bl_count[h]--, (e.bl_count[h + 1] += 2), e.bl_count[u]--, (y -= 2); + } while (y > 0); + for (h = u; h !== 0; h--) + for (c = e.bl_count[h]; c !== 0; ) + (f = e.heap[--p]), + !(f > n) && (r[f * 2 + 1] !== h && ((e.opt_len += (h - r[f * 2 + 1]) * r[f * 2]), (r[f * 2 + 1] = h)), c--); + } + } + function eTe(e, t, r) { + var n = new Array(Cf + 1), + a = 0, + o, + s; + for (o = 1; o <= Cf; o++) n[o] = a = (a + r[o - 1]) << 1; + for (s = 0; s <= t; s++) { + var l = e[s * 2 + 1]; + l !== 0 && (e[s * 2] = ZOe(n[l]++, l)); + } + } + function LRt() { + var e, + t, + r, + n, + a, + o = new Array(Cf + 1); + for (r = 0, n = 0; n < gM - 1; n++) for (bM[n] = r, e = 0; e < 1 << mM[n]; e++) K2[r++] = n; + for (K2[r - 1] = n, a = 0, n = 0; n < 16; n++) for (K5[n] = a, e = 0; e < 1 << W5[n]; e++) W2[a++] = n; + for (a >>= 7; n < p1; n++) for (K5[n] = a << 7, e = 0; e < 1 << (W5[n] - 7); e++) W2[256 + a++] = n; + for (t = 0; t <= Cf; t++) o[t] = 0; + for (e = 0; e <= 143; ) (_u[e * 2 + 1] = 8), e++, o[8]++; + for (; e <= 255; ) (_u[e * 2 + 1] = 9), e++, o[9]++; + for (; e <= 279; ) (_u[e * 2 + 1] = 7), e++, o[7]++; + for (; e <= 287; ) (_u[e * 2 + 1] = 8), e++, o[8]++; + for (eTe(_u, G2 + 1, o), e = 0; e < p1; e++) (H2[e * 2 + 1] = 5), (H2[e * 2] = ZOe(e, 5)); + (XOe = new cM(_u, mM, J2 + 1, G2, Cf)), + (JOe = new cM(H2, W5, 0, p1, Cf)), + (YOe = new cM(new Array(0), DRt, 0, vM, jRt)); + } + function tTe(e) { + var t; + for (t = 0; t < G2; t++) e.dyn_ltree[t * 2] = 0; + for (t = 0; t < p1; t++) e.dyn_dtree[t * 2] = 0; + for (t = 0; t < vM; t++) e.bl_tree[t * 2] = 0; + (e.dyn_ltree[yM * 2] = 1), (e.opt_len = e.static_len = 0), (e.last_lit = e.matches = 0); + } + function rTe(e) { + e.bi_valid > 8 ? X2(e, e.bi_buf) : e.bi_valid > 0 && (e.pending_buf[e.pending++] = e.bi_buf), + (e.bi_buf = 0), + (e.bi_valid = 0); + } + function MRt(e, t, r, n) { + rTe(e), n && (X2(e, r), X2(e, ~r)), TRt.arraySet(e.pending_buf, e.window, t, r, e.pending), (e.pending += r); + } + function LOe(e, t, r, n) { + var a = t * 2, + o = r * 2; + return e[a] < e[o] || (e[a] === e[o] && n[t] <= n[r]); + } + function fM(e, t, r) { + for ( + var n = e.heap[r], a = r << 1; + a <= e.heap_len && + (a < e.heap_len && LOe(t, e.heap[a + 1], e.heap[a], e.depth) && a++, !LOe(t, n, e.heap[a], e.depth)); + + ) + (e.heap[r] = e.heap[a]), (r = a), (a <<= 1); + e.heap[r] = n; + } + function MOe(e, t, r) { + var n, + a, + o = 0, + s, + l; + if (e.last_lit !== 0) + do + (n = (e.pending_buf[e.d_buf + o * 2] << 8) | e.pending_buf[e.d_buf + o * 2 + 1]), + (a = e.pending_buf[e.l_buf + o]), + o++, + n === 0 + ? rl(e, a, t) + : ((s = K2[a]), + rl(e, s + J2 + 1, t), + (l = mM[s]), + l !== 0 && ((a -= bM[s]), Kn(e, a, l)), + n--, + (s = QOe(n)), + rl(e, s, r), + (l = W5[s]), + l !== 0 && ((n -= K5[s]), Kn(e, n, l))); + while (o < e.last_lit); + rl(e, yM, t); + } + function hM(e, t) { + var r = t.dyn_tree, + n = t.stat_desc.static_tree, + a = t.stat_desc.has_stree, + o = t.stat_desc.elems, + s, + l, + u = -1, + p; + for (e.heap_len = 0, e.heap_max = zOe, s = 0; s < o; s++) + r[s * 2] !== 0 ? ((e.heap[++e.heap_len] = u = s), (e.depth[s] = 0)) : (r[s * 2 + 1] = 0); + for (; e.heap_len < 2; ) + (p = e.heap[++e.heap_len] = u < 2 ? ++u : 0), + (r[p * 2] = 1), + (e.depth[p] = 0), + e.opt_len--, + a && (e.static_len -= n[p * 2 + 1]); + for (t.max_code = u, s = e.heap_len >> 1; s >= 1; s--) fM(e, r, s); + p = o; + do + (s = e.heap[1]), + (e.heap[1] = e.heap[e.heap_len--]), + fM(e, r, 1), + (l = e.heap[1]), + (e.heap[--e.heap_max] = s), + (e.heap[--e.heap_max] = l), + (r[p * 2] = r[s * 2] + r[l * 2]), + (e.depth[p] = (e.depth[s] >= e.depth[l] ? e.depth[s] : e.depth[l]) + 1), + (r[s * 2 + 1] = r[l * 2 + 1] = p), + (e.heap[1] = p++), + fM(e, r, 1); + while (e.heap_len >= 2); + (e.heap[--e.heap_max] = e.heap[1]), FRt(e, t), eTe(r, u, e.bl_count); + } + function UOe(e, t, r) { + var n, + a = -1, + o, + s = t[0 * 2 + 1], + l = 0, + u = 7, + p = 4; + for (s === 0 && ((u = 138), (p = 3)), t[(r + 1) * 2 + 1] = 65535, n = 0; n <= r; n++) + (o = s), + (s = t[(n + 1) * 2 + 1]), + !(++l < u && o === s) && + (l < p + ? (e.bl_tree[o * 2] += l) + : o !== 0 + ? (o !== a && e.bl_tree[o * 2]++, e.bl_tree[HOe * 2]++) + : l <= 10 + ? e.bl_tree[GOe * 2]++ + : e.bl_tree[WOe * 2]++, + (l = 0), + (a = o), + s === 0 ? ((u = 138), (p = 3)) : o === s ? ((u = 6), (p = 3)) : ((u = 7), (p = 4))); + } + function $Oe(e, t, r) { + var n, + a = -1, + o, + s = t[0 * 2 + 1], + l = 0, + u = 7, + p = 4; + for (s === 0 && ((u = 138), (p = 3)), n = 0; n <= r; n++) + if (((o = s), (s = t[(n + 1) * 2 + 1]), !(++l < u && o === s))) { + if (l < p) + do rl(e, o, e.bl_tree); + while (--l !== 0); + else + o !== 0 + ? (o !== a && (rl(e, o, e.bl_tree), l--), rl(e, HOe, e.bl_tree), Kn(e, l - 3, 2)) + : l <= 10 + ? (rl(e, GOe, e.bl_tree), Kn(e, l - 3, 3)) + : (rl(e, WOe, e.bl_tree), Kn(e, l - 11, 7)); + (l = 0), (a = o), s === 0 ? ((u = 138), (p = 3)) : o === s ? ((u = 6), (p = 3)) : ((u = 7), (p = 4)); + } + } + function URt(e) { + var t; + for ( + UOe(e, e.dyn_ltree, e.l_desc.max_code), UOe(e, e.dyn_dtree, e.d_desc.max_code), hM(e, e.bl_desc), t = vM - 1; + t >= 3 && e.bl_tree[KOe[t] * 2 + 1] === 0; + t-- + ); + return (e.opt_len += 3 * (t + 1) + 5 + 5 + 4), t; + } + function $Rt(e, t, r, n) { + var a; + for (Kn(e, t - 257, 5), Kn(e, r - 1, 5), Kn(e, n - 4, 4), a = 0; a < n; a++) Kn(e, e.bl_tree[KOe[a] * 2 + 1], 3); + $Oe(e, e.dyn_ltree, t - 1), $Oe(e, e.dyn_dtree, r - 1); + } + function BRt(e) { + var t = 4093624447, + r; + for (r = 0; r <= 31; r++, t >>>= 1) if (t & 1 && e.dyn_ltree[r * 2] !== 0) return qOe; + if (e.dyn_ltree[9 * 2] !== 0 || e.dyn_ltree[10 * 2] !== 0 || e.dyn_ltree[13 * 2] !== 0) return FOe; + for (r = 32; r < J2; r++) if (e.dyn_ltree[r * 2] !== 0) return FOe; + return qOe; + } + var BOe = !1; + function VRt(e) { + BOe || (LRt(), (BOe = !0)), + (e.l_desc = new dM(e.dyn_ltree, XOe)), + (e.d_desc = new dM(e.dyn_dtree, JOe)), + (e.bl_desc = new dM(e.bl_tree, YOe)), + (e.bi_buf = 0), + (e.bi_valid = 0), + tTe(e); + } + function iTe(e, t, r, n) { + Kn(e, (ARt << 1) + (n ? 1 : 0), 3), MRt(e, t, r, !0); + } + function zRt(e) { + Kn(e, VOe << 1, 3), rl(e, yM, _u), qRt(e); + } + function HRt(e, t, r, n) { + var a, + o, + s = 0; + e.level > 0 + ? (e.strm.data_type === kRt && (e.strm.data_type = BRt(e)), + hM(e, e.l_desc), + hM(e, e.d_desc), + (s = URt(e)), + (a = (e.opt_len + 3 + 7) >>> 3), + (o = (e.static_len + 3 + 7) >>> 3), + o <= a && (a = o)) + : (a = o = r + 5), + r + 4 <= a && t !== -1 + ? iTe(e, t, r, n) + : e.strategy === CRt || o === a + ? (Kn(e, (VOe << 1) + (n ? 1 : 0), 3), MOe(e, _u, H2)) + : (Kn(e, (IRt << 1) + (n ? 1 : 0), 3), + $Rt(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, s + 1), + MOe(e, e.dyn_ltree, e.dyn_dtree)), + tTe(e), + n && rTe(e); + } + function GRt(e, t, r) { + return ( + (e.pending_buf[e.d_buf + e.last_lit * 2] = (t >>> 8) & 255), + (e.pending_buf[e.d_buf + e.last_lit * 2 + 1] = t & 255), + (e.pending_buf[e.l_buf + e.last_lit] = r & 255), + e.last_lit++, + t === 0 + ? e.dyn_ltree[r * 2]++ + : (e.matches++, t--, e.dyn_ltree[(K2[r] + J2 + 1) * 2]++, e.dyn_dtree[QOe(t) * 2]++), + e.last_lit === e.lit_bufsize - 1 + ); + } + d1._tr_init = VRt; + d1._tr_stored_block = iTe; + d1._tr_flush_block = HRt; + d1._tr_tally = GRt; + d1._tr_align = zRt; +}); +var _M = d((isr, aTe) => { + 'use strict'; + function WRt(e, t, r, n) { + for (var a = (e & 65535) | 0, o = ((e >>> 16) & 65535) | 0, s = 0; r !== 0; ) { + (s = r > 2e3 ? 2e3 : r), (r -= s); + do (a = (a + t[n++]) | 0), (o = (o + a) | 0); + while (--s); + (a %= 65521), (o %= 65521); + } + return a | (o << 16) | 0; + } + aTe.exports = WRt; +}); +var wM = d((nsr, oTe) => { + 'use strict'; + function KRt() { + for (var e, t = [], r = 0; r < 256; r++) { + e = r; + for (var n = 0; n < 8; n++) e = e & 1 ? 3988292384 ^ (e >>> 1) : e >>> 1; + t[r] = e; + } + return t; + } + var XRt = KRt(); + function JRt(e, t, r, n) { + var a = XRt, + o = n + r; + e ^= -1; + for (var s = n; s < o; s++) e = (e >>> 8) ^ a[(e ^ t[s]) & 255]; + return e ^ -1; + } + oTe.exports = JRt; +}); +var X5 = d((asr, sTe) => { + 'use strict'; + sTe.exports = { + 2: 'need dictionary', + 1: 'stream end', + 0: '', + '-1': 'file error', + '-2': 'stream error', + '-3': 'data error', + '-4': 'insufficient memory', + '-5': 'buffer error', + '-6': 'incompatible version', + }; +}); +var gTe = d((al) => { + 'use strict'; + var En = bu(), + so = nTe(), + cTe = _M(), + rc = wM(), + YRt = X5(), + Pf = 0, + QRt = 1, + ZRt = 3, + sc = 4, + lTe = 5, + nl = 0, + uTe = 1, + lo = -2, + ejt = -3, + SM = -5, + tjt = -1, + rjt = 1, + J5 = 2, + ijt = 3, + njt = 4, + ajt = 0, + ojt = 2, + e7 = 8, + sjt = 9, + ljt = 15, + ujt = 8, + pjt = 29, + cjt = 256, + xM = cjt + 1 + pjt, + djt = 30, + fjt = 19, + mjt = 2 * xM + 1, + hjt = 15, + Xe = 3, + ac = 258, + es = ac + Xe + 1, + gjt = 32, + t7 = 42, + OM = 69, + Y5 = 73, + Q5 = 91, + Z5 = 103, + kf = 113, + Q2 = 666, + ui = 1, + Z2 = 2, + Af = 3, + h1 = 4, + vjt = 3; + function oc(e, t) { + return (e.msg = YRt[t]), t; + } + function pTe(e) { + return (e << 1) - (e > 4 ? 9 : 0); + } + function nc(e) { + for (var t = e.length; --t >= 0; ) e[t] = 0; + } + function ic(e) { + var t = e.state, + r = t.pending; + r > e.avail_out && (r = e.avail_out), + r !== 0 && + (En.arraySet(e.output, t.pending_buf, t.pending_out, r, e.next_out), + (e.next_out += r), + (t.pending_out += r), + (e.total_out += r), + (e.avail_out -= r), + (t.pending -= r), + t.pending === 0 && (t.pending_out = 0)); + } + function Li(e, t) { + so._tr_flush_block(e, e.block_start >= 0 ? e.block_start : -1, e.strstart - e.block_start, t), + (e.block_start = e.strstart), + ic(e.strm); + } + function pt(e, t) { + e.pending_buf[e.pending++] = t; + } + function Y2(e, t) { + (e.pending_buf[e.pending++] = (t >>> 8) & 255), (e.pending_buf[e.pending++] = t & 255); + } + function yjt(e, t, r, n) { + var a = e.avail_in; + return ( + a > n && (a = n), + a === 0 + ? 0 + : ((e.avail_in -= a), + En.arraySet(t, e.input, e.next_in, a, r), + e.state.wrap === 1 + ? (e.adler = cTe(e.adler, t, a, r)) + : e.state.wrap === 2 && (e.adler = rc(e.adler, t, a, r)), + (e.next_in += a), + (e.total_in += a), + a) + ); + } + function dTe(e, t) { + var r = e.max_chain_length, + n = e.strstart, + a, + o, + s = e.prev_length, + l = e.nice_match, + u = e.strstart > e.w_size - es ? e.strstart - (e.w_size - es) : 0, + p = e.window, + c = e.w_mask, + f = e.prev, + h = e.strstart + ac, + m = p[n + s - 1], + v = p[n + s]; + e.prev_length >= e.good_match && (r >>= 2), l > e.lookahead && (l = e.lookahead); + do + if (((a = t), !(p[a + s] !== v || p[a + s - 1] !== m || p[a] !== p[n] || p[++a] !== p[n + 1]))) { + (n += 2), a++; + do; + while ( + p[++n] === p[++a] && + p[++n] === p[++a] && + p[++n] === p[++a] && + p[++n] === p[++a] && + p[++n] === p[++a] && + p[++n] === p[++a] && + p[++n] === p[++a] && + p[++n] === p[++a] && + n < h + ); + if (((o = ac - (h - n)), (n = h - ac), o > s)) { + if (((e.match_start = t), (s = o), o >= l)) break; + (m = p[n + s - 1]), (v = p[n + s]); + } + } + while ((t = f[t & c]) > u && --r !== 0); + return s <= e.lookahead ? s : e.lookahead; + } + function If(e) { + var t = e.w_size, + r, + n, + a, + o, + s; + do { + if (((o = e.window_size - e.lookahead - e.strstart), e.strstart >= t + (t - es))) { + En.arraySet(e.window, e.window, t, t, 0), + (e.match_start -= t), + (e.strstart -= t), + (e.block_start -= t), + (n = e.hash_size), + (r = n); + do (a = e.head[--r]), (e.head[r] = a >= t ? a - t : 0); + while (--n); + (n = t), (r = n); + do (a = e.prev[--r]), (e.prev[r] = a >= t ? a - t : 0); + while (--n); + o += t; + } + if (e.strm.avail_in === 0) break; + if (((n = yjt(e.strm, e.window, e.strstart + e.lookahead, o)), (e.lookahead += n), e.lookahead + e.insert >= Xe)) + for ( + s = e.strstart - e.insert, + e.ins_h = e.window[s], + e.ins_h = ((e.ins_h << e.hash_shift) ^ e.window[s + 1]) & e.hash_mask; + e.insert && + ((e.ins_h = ((e.ins_h << e.hash_shift) ^ e.window[s + Xe - 1]) & e.hash_mask), + (e.prev[s & e.w_mask] = e.head[e.ins_h]), + (e.head[e.ins_h] = s), + s++, + e.insert--, + !(e.lookahead + e.insert < Xe)); + + ); + } while (e.lookahead < es && e.strm.avail_in !== 0); + } + function bjt(e, t) { + var r = 65535; + for (r > e.pending_buf_size - 5 && (r = e.pending_buf_size - 5); ; ) { + if (e.lookahead <= 1) { + if ((If(e), e.lookahead === 0 && t === Pf)) return ui; + if (e.lookahead === 0) break; + } + (e.strstart += e.lookahead), (e.lookahead = 0); + var n = e.block_start + r; + if ( + ((e.strstart === 0 || e.strstart >= n) && + ((e.lookahead = e.strstart - n), (e.strstart = n), Li(e, !1), e.strm.avail_out === 0)) || + (e.strstart - e.block_start >= e.w_size - es && (Li(e, !1), e.strm.avail_out === 0)) + ) + return ui; + } + return ( + (e.insert = 0), + t === sc + ? (Li(e, !0), e.strm.avail_out === 0 ? Af : h1) + : (e.strstart > e.block_start && (Li(e, !1), e.strm.avail_out === 0), ui) + ); + } + function EM(e, t) { + for (var r, n; ; ) { + if (e.lookahead < es) { + if ((If(e), e.lookahead < es && t === Pf)) return ui; + if (e.lookahead === 0) break; + } + if ( + ((r = 0), + e.lookahead >= Xe && + ((e.ins_h = ((e.ins_h << e.hash_shift) ^ e.window[e.strstart + Xe - 1]) & e.hash_mask), + (r = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h]), + (e.head[e.ins_h] = e.strstart)), + r !== 0 && e.strstart - r <= e.w_size - es && (e.match_length = dTe(e, r)), + e.match_length >= Xe) + ) + if ( + ((n = so._tr_tally(e, e.strstart - e.match_start, e.match_length - Xe)), + (e.lookahead -= e.match_length), + e.match_length <= e.max_lazy_match && e.lookahead >= Xe) + ) { + e.match_length--; + do + e.strstart++, + (e.ins_h = ((e.ins_h << e.hash_shift) ^ e.window[e.strstart + Xe - 1]) & e.hash_mask), + (r = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h]), + (e.head[e.ins_h] = e.strstart); + while (--e.match_length !== 0); + e.strstart++; + } else + (e.strstart += e.match_length), + (e.match_length = 0), + (e.ins_h = e.window[e.strstart]), + (e.ins_h = ((e.ins_h << e.hash_shift) ^ e.window[e.strstart + 1]) & e.hash_mask); + else (n = so._tr_tally(e, 0, e.window[e.strstart])), e.lookahead--, e.strstart++; + if (n && (Li(e, !1), e.strm.avail_out === 0)) return ui; + } + return ( + (e.insert = e.strstart < Xe - 1 ? e.strstart : Xe - 1), + t === sc + ? (Li(e, !0), e.strm.avail_out === 0 ? Af : h1) + : e.last_lit && (Li(e, !1), e.strm.avail_out === 0) + ? ui + : Z2 + ); + } + function f1(e, t) { + for (var r, n, a; ; ) { + if (e.lookahead < es) { + if ((If(e), e.lookahead < es && t === Pf)) return ui; + if (e.lookahead === 0) break; + } + if ( + ((r = 0), + e.lookahead >= Xe && + ((e.ins_h = ((e.ins_h << e.hash_shift) ^ e.window[e.strstart + Xe - 1]) & e.hash_mask), + (r = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h]), + (e.head[e.ins_h] = e.strstart)), + (e.prev_length = e.match_length), + (e.prev_match = e.match_start), + (e.match_length = Xe - 1), + r !== 0 && + e.prev_length < e.max_lazy_match && + e.strstart - r <= e.w_size - es && + ((e.match_length = dTe(e, r)), + e.match_length <= 5 && + (e.strategy === rjt || (e.match_length === Xe && e.strstart - e.match_start > 4096)) && + (e.match_length = Xe - 1)), + e.prev_length >= Xe && e.match_length <= e.prev_length) + ) { + (a = e.strstart + e.lookahead - Xe), + (n = so._tr_tally(e, e.strstart - 1 - e.prev_match, e.prev_length - Xe)), + (e.lookahead -= e.prev_length - 1), + (e.prev_length -= 2); + do + ++e.strstart <= a && + ((e.ins_h = ((e.ins_h << e.hash_shift) ^ e.window[e.strstart + Xe - 1]) & e.hash_mask), + (r = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h]), + (e.head[e.ins_h] = e.strstart)); + while (--e.prev_length !== 0); + if ( + ((e.match_available = 0), (e.match_length = Xe - 1), e.strstart++, n && (Li(e, !1), e.strm.avail_out === 0)) + ) + return ui; + } else if (e.match_available) { + if ( + ((n = so._tr_tally(e, 0, e.window[e.strstart - 1])), + n && Li(e, !1), + e.strstart++, + e.lookahead--, + e.strm.avail_out === 0) + ) + return ui; + } else (e.match_available = 1), e.strstart++, e.lookahead--; + } + return ( + e.match_available && ((n = so._tr_tally(e, 0, e.window[e.strstart - 1])), (e.match_available = 0)), + (e.insert = e.strstart < Xe - 1 ? e.strstart : Xe - 1), + t === sc + ? (Li(e, !0), e.strm.avail_out === 0 ? Af : h1) + : e.last_lit && (Li(e, !1), e.strm.avail_out === 0) + ? ui + : Z2 + ); + } + function _jt(e, t) { + for (var r, n, a, o, s = e.window; ; ) { + if (e.lookahead <= ac) { + if ((If(e), e.lookahead <= ac && t === Pf)) return ui; + if (e.lookahead === 0) break; + } + if ( + ((e.match_length = 0), + e.lookahead >= Xe && + e.strstart > 0 && + ((a = e.strstart - 1), (n = s[a]), n === s[++a] && n === s[++a] && n === s[++a])) + ) { + o = e.strstart + ac; + do; + while ( + n === s[++a] && + n === s[++a] && + n === s[++a] && + n === s[++a] && + n === s[++a] && + n === s[++a] && + n === s[++a] && + n === s[++a] && + a < o + ); + (e.match_length = ac - (o - a)), e.match_length > e.lookahead && (e.match_length = e.lookahead); + } + if ( + (e.match_length >= Xe + ? ((r = so._tr_tally(e, 1, e.match_length - Xe)), + (e.lookahead -= e.match_length), + (e.strstart += e.match_length), + (e.match_length = 0)) + : ((r = so._tr_tally(e, 0, e.window[e.strstart])), e.lookahead--, e.strstart++), + r && (Li(e, !1), e.strm.avail_out === 0)) + ) + return ui; + } + return ( + (e.insert = 0), + t === sc + ? (Li(e, !0), e.strm.avail_out === 0 ? Af : h1) + : e.last_lit && (Li(e, !1), e.strm.avail_out === 0) + ? ui + : Z2 + ); + } + function wjt(e, t) { + for (var r; ; ) { + if (e.lookahead === 0 && (If(e), e.lookahead === 0)) { + if (t === Pf) return ui; + break; + } + if ( + ((e.match_length = 0), + (r = so._tr_tally(e, 0, e.window[e.strstart])), + e.lookahead--, + e.strstart++, + r && (Li(e, !1), e.strm.avail_out === 0)) + ) + return ui; + } + return ( + (e.insert = 0), + t === sc + ? (Li(e, !0), e.strm.avail_out === 0 ? Af : h1) + : e.last_lit && (Li(e, !1), e.strm.avail_out === 0) + ? ui + : Z2 + ); + } + function il(e, t, r, n, a) { + (this.good_length = e), (this.max_lazy = t), (this.nice_length = r), (this.max_chain = n), (this.func = a); + } + var m1; + m1 = [ + new il(0, 0, 0, 0, bjt), + new il(4, 4, 8, 4, EM), + new il(4, 5, 16, 8, EM), + new il(4, 6, 32, 32, EM), + new il(4, 4, 16, 16, f1), + new il(8, 16, 32, 32, f1), + new il(8, 16, 128, 128, f1), + new il(8, 32, 128, 256, f1), + new il(32, 128, 258, 1024, f1), + new il(32, 258, 258, 4096, f1), + ]; + function Sjt(e) { + (e.window_size = 2 * e.w_size), + nc(e.head), + (e.max_lazy_match = m1[e.level].max_lazy), + (e.good_match = m1[e.level].good_length), + (e.nice_match = m1[e.level].nice_length), + (e.max_chain_length = m1[e.level].max_chain), + (e.strstart = 0), + (e.block_start = 0), + (e.lookahead = 0), + (e.insert = 0), + (e.match_length = e.prev_length = Xe - 1), + (e.match_available = 0), + (e.ins_h = 0); + } + function Ejt() { + (this.strm = null), + (this.status = 0), + (this.pending_buf = null), + (this.pending_buf_size = 0), + (this.pending_out = 0), + (this.pending = 0), + (this.wrap = 0), + (this.gzhead = null), + (this.gzindex = 0), + (this.method = e7), + (this.last_flush = -1), + (this.w_size = 0), + (this.w_bits = 0), + (this.w_mask = 0), + (this.window = null), + (this.window_size = 0), + (this.prev = null), + (this.head = null), + (this.ins_h = 0), + (this.hash_size = 0), + (this.hash_bits = 0), + (this.hash_mask = 0), + (this.hash_shift = 0), + (this.block_start = 0), + (this.match_length = 0), + (this.prev_match = 0), + (this.match_available = 0), + (this.strstart = 0), + (this.match_start = 0), + (this.lookahead = 0), + (this.prev_length = 0), + (this.max_chain_length = 0), + (this.max_lazy_match = 0), + (this.level = 0), + (this.strategy = 0), + (this.good_match = 0), + (this.nice_match = 0), + (this.dyn_ltree = new En.Buf16(mjt * 2)), + (this.dyn_dtree = new En.Buf16((2 * djt + 1) * 2)), + (this.bl_tree = new En.Buf16((2 * fjt + 1) * 2)), + nc(this.dyn_ltree), + nc(this.dyn_dtree), + nc(this.bl_tree), + (this.l_desc = null), + (this.d_desc = null), + (this.bl_desc = null), + (this.bl_count = new En.Buf16(hjt + 1)), + (this.heap = new En.Buf16(2 * xM + 1)), + nc(this.heap), + (this.heap_len = 0), + (this.heap_max = 0), + (this.depth = new En.Buf16(2 * xM + 1)), + nc(this.depth), + (this.l_buf = 0), + (this.lit_bufsize = 0), + (this.last_lit = 0), + (this.d_buf = 0), + (this.opt_len = 0), + (this.static_len = 0), + (this.matches = 0), + (this.insert = 0), + (this.bi_buf = 0), + (this.bi_valid = 0); + } + function fTe(e) { + var t; + return !e || !e.state + ? oc(e, lo) + : ((e.total_in = e.total_out = 0), + (e.data_type = ojt), + (t = e.state), + (t.pending = 0), + (t.pending_out = 0), + t.wrap < 0 && (t.wrap = -t.wrap), + (t.status = t.wrap ? t7 : kf), + (e.adler = t.wrap === 2 ? 0 : 1), + (t.last_flush = Pf), + so._tr_init(t), + nl); + } + function mTe(e) { + var t = fTe(e); + return t === nl && Sjt(e.state), t; + } + function xjt(e, t) { + return !e || !e.state || e.state.wrap !== 2 ? lo : ((e.state.gzhead = t), nl); + } + function hTe(e, t, r, n, a, o) { + if (!e) return lo; + var s = 1; + if ( + (t === tjt && (t = 6), + n < 0 ? ((s = 0), (n = -n)) : n > 15 && ((s = 2), (n -= 16)), + a < 1 || a > sjt || r !== e7 || n < 8 || n > 15 || t < 0 || t > 9 || o < 0 || o > njt) + ) + return oc(e, lo); + n === 8 && (n = 9); + var l = new Ejt(); + return ( + (e.state = l), + (l.strm = e), + (l.wrap = s), + (l.gzhead = null), + (l.w_bits = n), + (l.w_size = 1 << l.w_bits), + (l.w_mask = l.w_size - 1), + (l.hash_bits = a + 7), + (l.hash_size = 1 << l.hash_bits), + (l.hash_mask = l.hash_size - 1), + (l.hash_shift = ~~((l.hash_bits + Xe - 1) / Xe)), + (l.window = new En.Buf8(l.w_size * 2)), + (l.head = new En.Buf16(l.hash_size)), + (l.prev = new En.Buf16(l.w_size)), + (l.lit_bufsize = 1 << (a + 6)), + (l.pending_buf_size = l.lit_bufsize * 4), + (l.pending_buf = new En.Buf8(l.pending_buf_size)), + (l.d_buf = 1 * l.lit_bufsize), + (l.l_buf = (1 + 2) * l.lit_bufsize), + (l.level = t), + (l.strategy = o), + (l.method = r), + mTe(e) + ); + } + function Ojt(e, t) { + return hTe(e, t, e7, ljt, ujt, ajt); + } + function Tjt(e, t) { + var r, n, a, o; + if (!e || !e.state || t > lTe || t < 0) return e ? oc(e, lo) : lo; + if (((n = e.state), !e.output || (!e.input && e.avail_in !== 0) || (n.status === Q2 && t !== sc))) + return oc(e, e.avail_out === 0 ? SM : lo); + if (((n.strm = e), (r = n.last_flush), (n.last_flush = t), n.status === t7)) + if (n.wrap === 2) + (e.adler = 0), + pt(n, 31), + pt(n, 139), + pt(n, 8), + n.gzhead + ? (pt( + n, + (n.gzhead.text ? 1 : 0) + + (n.gzhead.hcrc ? 2 : 0) + + (n.gzhead.extra ? 4 : 0) + + (n.gzhead.name ? 8 : 0) + + (n.gzhead.comment ? 16 : 0) + ), + pt(n, n.gzhead.time & 255), + pt(n, (n.gzhead.time >> 8) & 255), + pt(n, (n.gzhead.time >> 16) & 255), + pt(n, (n.gzhead.time >> 24) & 255), + pt(n, n.level === 9 ? 2 : n.strategy >= J5 || n.level < 2 ? 4 : 0), + pt(n, n.gzhead.os & 255), + n.gzhead.extra && + n.gzhead.extra.length && + (pt(n, n.gzhead.extra.length & 255), pt(n, (n.gzhead.extra.length >> 8) & 255)), + n.gzhead.hcrc && (e.adler = rc(e.adler, n.pending_buf, n.pending, 0)), + (n.gzindex = 0), + (n.status = OM)) + : (pt(n, 0), + pt(n, 0), + pt(n, 0), + pt(n, 0), + pt(n, 0), + pt(n, n.level === 9 ? 2 : n.strategy >= J5 || n.level < 2 ? 4 : 0), + pt(n, vjt), + (n.status = kf)); + else { + var s = (e7 + ((n.w_bits - 8) << 4)) << 8, + l = -1; + n.strategy >= J5 || n.level < 2 ? (l = 0) : n.level < 6 ? (l = 1) : n.level === 6 ? (l = 2) : (l = 3), + (s |= l << 6), + n.strstart !== 0 && (s |= gjt), + (s += 31 - (s % 31)), + (n.status = kf), + Y2(n, s), + n.strstart !== 0 && (Y2(n, e.adler >>> 16), Y2(n, e.adler & 65535)), + (e.adler = 1); + } + if (n.status === OM) + if (n.gzhead.extra) { + for ( + a = n.pending; + n.gzindex < (n.gzhead.extra.length & 65535) && + !( + n.pending === n.pending_buf_size && + (n.gzhead.hcrc && n.pending > a && (e.adler = rc(e.adler, n.pending_buf, n.pending - a, a)), + ic(e), + (a = n.pending), + n.pending === n.pending_buf_size) + ); + + ) + pt(n, n.gzhead.extra[n.gzindex] & 255), n.gzindex++; + n.gzhead.hcrc && n.pending > a && (e.adler = rc(e.adler, n.pending_buf, n.pending - a, a)), + n.gzindex === n.gzhead.extra.length && ((n.gzindex = 0), (n.status = Y5)); + } else n.status = Y5; + if (n.status === Y5) + if (n.gzhead.name) { + a = n.pending; + do { + if ( + n.pending === n.pending_buf_size && + (n.gzhead.hcrc && n.pending > a && (e.adler = rc(e.adler, n.pending_buf, n.pending - a, a)), + ic(e), + (a = n.pending), + n.pending === n.pending_buf_size) + ) { + o = 1; + break; + } + n.gzindex < n.gzhead.name.length ? (o = n.gzhead.name.charCodeAt(n.gzindex++) & 255) : (o = 0), pt(n, o); + } while (o !== 0); + n.gzhead.hcrc && n.pending > a && (e.adler = rc(e.adler, n.pending_buf, n.pending - a, a)), + o === 0 && ((n.gzindex = 0), (n.status = Q5)); + } else n.status = Q5; + if (n.status === Q5) + if (n.gzhead.comment) { + a = n.pending; + do { + if ( + n.pending === n.pending_buf_size && + (n.gzhead.hcrc && n.pending > a && (e.adler = rc(e.adler, n.pending_buf, n.pending - a, a)), + ic(e), + (a = n.pending), + n.pending === n.pending_buf_size) + ) { + o = 1; + break; + } + n.gzindex < n.gzhead.comment.length ? (o = n.gzhead.comment.charCodeAt(n.gzindex++) & 255) : (o = 0), + pt(n, o); + } while (o !== 0); + n.gzhead.hcrc && n.pending > a && (e.adler = rc(e.adler, n.pending_buf, n.pending - a, a)), + o === 0 && (n.status = Z5); + } else n.status = Z5; + if ( + (n.status === Z5 && + (n.gzhead.hcrc + ? (n.pending + 2 > n.pending_buf_size && ic(e), + n.pending + 2 <= n.pending_buf_size && + (pt(n, e.adler & 255), pt(n, (e.adler >> 8) & 255), (e.adler = 0), (n.status = kf))) + : (n.status = kf)), + n.pending !== 0) + ) { + if ((ic(e), e.avail_out === 0)) return (n.last_flush = -1), nl; + } else if (e.avail_in === 0 && pTe(t) <= pTe(r) && t !== sc) return oc(e, SM); + if (n.status === Q2 && e.avail_in !== 0) return oc(e, SM); + if (e.avail_in !== 0 || n.lookahead !== 0 || (t !== Pf && n.status !== Q2)) { + var u = n.strategy === J5 ? wjt(n, t) : n.strategy === ijt ? _jt(n, t) : m1[n.level].func(n, t); + if (((u === Af || u === h1) && (n.status = Q2), u === ui || u === Af)) + return e.avail_out === 0 && (n.last_flush = -1), nl; + if ( + u === Z2 && + (t === QRt + ? so._tr_align(n) + : t !== lTe && + (so._tr_stored_block(n, 0, 0, !1), + t === ZRt && (nc(n.head), n.lookahead === 0 && ((n.strstart = 0), (n.block_start = 0), (n.insert = 0)))), + ic(e), + e.avail_out === 0) + ) + return (n.last_flush = -1), nl; + } + return t !== sc + ? nl + : n.wrap <= 0 + ? uTe + : (n.wrap === 2 + ? (pt(n, e.adler & 255), + pt(n, (e.adler >> 8) & 255), + pt(n, (e.adler >> 16) & 255), + pt(n, (e.adler >> 24) & 255), + pt(n, e.total_in & 255), + pt(n, (e.total_in >> 8) & 255), + pt(n, (e.total_in >> 16) & 255), + pt(n, (e.total_in >> 24) & 255)) + : (Y2(n, e.adler >>> 16), Y2(n, e.adler & 65535)), + ic(e), + n.wrap > 0 && (n.wrap = -n.wrap), + n.pending !== 0 ? nl : uTe); + } + function Cjt(e) { + var t; + return !e || !e.state + ? lo + : ((t = e.state.status), + t !== t7 && t !== OM && t !== Y5 && t !== Q5 && t !== Z5 && t !== kf && t !== Q2 + ? oc(e, lo) + : ((e.state = null), t === kf ? oc(e, ejt) : nl)); + } + function kjt(e, t) { + var r = t.length, + n, + a, + o, + s, + l, + u, + p, + c; + if (!e || !e.state || ((n = e.state), (s = n.wrap), s === 2 || (s === 1 && n.status !== t7) || n.lookahead)) + return lo; + for ( + s === 1 && (e.adler = cTe(e.adler, t, r, 0)), + n.wrap = 0, + r >= n.w_size && + (s === 0 && (nc(n.head), (n.strstart = 0), (n.block_start = 0), (n.insert = 0)), + (c = new En.Buf8(n.w_size)), + En.arraySet(c, t, r - n.w_size, n.w_size, 0), + (t = c), + (r = n.w_size)), + l = e.avail_in, + u = e.next_in, + p = e.input, + e.avail_in = r, + e.next_in = 0, + e.input = t, + If(n); + n.lookahead >= Xe; + + ) { + (a = n.strstart), (o = n.lookahead - (Xe - 1)); + do + (n.ins_h = ((n.ins_h << n.hash_shift) ^ n.window[a + Xe - 1]) & n.hash_mask), + (n.prev[a & n.w_mask] = n.head[n.ins_h]), + (n.head[n.ins_h] = a), + a++; + while (--o); + (n.strstart = a), (n.lookahead = Xe - 1), If(n); + } + return ( + (n.strstart += n.lookahead), + (n.block_start = n.strstart), + (n.insert = n.lookahead), + (n.lookahead = 0), + (n.match_length = n.prev_length = Xe - 1), + (n.match_available = 0), + (e.next_in = u), + (e.input = p), + (e.avail_in = l), + (n.wrap = s), + nl + ); + } + al.deflateInit = Ojt; + al.deflateInit2 = hTe; + al.deflateReset = mTe; + al.deflateResetKeep = fTe; + al.deflateSetHeader = xjt; + al.deflate = Tjt; + al.deflateEnd = Cjt; + al.deflateSetDictionary = kjt; + al.deflateInfo = 'pako deflate (from Nodeca project)'; +}); +var TM = d((g1) => { + 'use strict'; + var r7 = bu(), + vTe = !0, + yTe = !0; + try { + String.fromCharCode.apply(null, [0]); + } catch { + vTe = !1; + } + try { + String.fromCharCode.apply(null, new Uint8Array(1)); + } catch { + yTe = !1; + } + var e6 = new r7.Buf8(256); + for (wu = 0; wu < 256; wu++) + e6[wu] = wu >= 252 ? 6 : wu >= 248 ? 5 : wu >= 240 ? 4 : wu >= 224 ? 3 : wu >= 192 ? 2 : 1; + var wu; + e6[254] = e6[254] = 1; + g1.string2buf = function (e) { + var t, + r, + n, + a, + o, + s = e.length, + l = 0; + for (a = 0; a < s; a++) + (r = e.charCodeAt(a)), + (r & 64512) === 55296 && + a + 1 < s && + ((n = e.charCodeAt(a + 1)), (n & 64512) === 56320 && ((r = 65536 + ((r - 55296) << 10) + (n - 56320)), a++)), + (l += r < 128 ? 1 : r < 2048 ? 2 : r < 65536 ? 3 : 4); + for (t = new r7.Buf8(l), o = 0, a = 0; o < l; a++) + (r = e.charCodeAt(a)), + (r & 64512) === 55296 && + a + 1 < s && + ((n = e.charCodeAt(a + 1)), (n & 64512) === 56320 && ((r = 65536 + ((r - 55296) << 10) + (n - 56320)), a++)), + r < 128 + ? (t[o++] = r) + : r < 2048 + ? ((t[o++] = 192 | (r >>> 6)), (t[o++] = 128 | (r & 63))) + : r < 65536 + ? ((t[o++] = 224 | (r >>> 12)), (t[o++] = 128 | ((r >>> 6) & 63)), (t[o++] = 128 | (r & 63))) + : ((t[o++] = 240 | (r >>> 18)), + (t[o++] = 128 | ((r >>> 12) & 63)), + (t[o++] = 128 | ((r >>> 6) & 63)), + (t[o++] = 128 | (r & 63))); + return t; + }; + function bTe(e, t) { + if (t < 65534 && ((e.subarray && yTe) || (!e.subarray && vTe))) + return String.fromCharCode.apply(null, r7.shrinkBuf(e, t)); + for (var r = '', n = 0; n < t; n++) r += String.fromCharCode(e[n]); + return r; + } + g1.buf2binstring = function (e) { + return bTe(e, e.length); + }; + g1.binstring2buf = function (e) { + for (var t = new r7.Buf8(e.length), r = 0, n = t.length; r < n; r++) t[r] = e.charCodeAt(r); + return t; + }; + g1.buf2string = function (e, t) { + var r, + n, + a, + o, + s = t || e.length, + l = new Array(s * 2); + for (n = 0, r = 0; r < s; ) { + if (((a = e[r++]), a < 128)) { + l[n++] = a; + continue; + } + if (((o = e6[a]), o > 4)) { + (l[n++] = 65533), (r += o - 1); + continue; + } + for (a &= o === 2 ? 31 : o === 3 ? 15 : 7; o > 1 && r < s; ) (a = (a << 6) | (e[r++] & 63)), o--; + if (o > 1) { + l[n++] = 65533; + continue; + } + a < 65536 ? (l[n++] = a) : ((a -= 65536), (l[n++] = 55296 | ((a >> 10) & 1023)), (l[n++] = 56320 | (a & 1023))); + } + return bTe(l, n); + }; + g1.utf8border = function (e, t) { + var r; + for (t = t || e.length, t > e.length && (t = e.length), r = t - 1; r >= 0 && (e[r] & 192) === 128; ) r--; + return r < 0 || r === 0 ? t : r + e6[e[r]] > t ? r : t; + }; +}); +var CM = d((lsr, _Te) => { + 'use strict'; + function Ajt() { + (this.input = null), + (this.next_in = 0), + (this.avail_in = 0), + (this.total_in = 0), + (this.output = null), + (this.next_out = 0), + (this.avail_out = 0), + (this.total_out = 0), + (this.msg = ''), + (this.state = null), + (this.data_type = 2), + (this.adler = 0); + } + _Te.exports = Ajt; +}); +var xTe = d((i6) => { + 'use strict'; + var t6 = gTe(), + r6 = bu(), + AM = TM(), + IM = X5(), + Ijt = CM(), + ETe = Object.prototype.toString, + Pjt = 0, + kM = 4, + v1 = 0, + wTe = 1, + STe = 2, + Rjt = -1, + jjt = 0, + Djt = 8; + function Rf(e) { + if (!(this instanceof Rf)) return new Rf(e); + this.options = r6.assign( + { level: Rjt, method: Djt, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: jjt, to: '' }, + e || {} + ); + var t = this.options; + t.raw && t.windowBits > 0 + ? (t.windowBits = -t.windowBits) + : t.gzip && t.windowBits > 0 && t.windowBits < 16 && (t.windowBits += 16), + (this.err = 0), + (this.msg = ''), + (this.ended = !1), + (this.chunks = []), + (this.strm = new Ijt()), + (this.strm.avail_out = 0); + var r = t6.deflateInit2(this.strm, t.level, t.method, t.windowBits, t.memLevel, t.strategy); + if (r !== v1) throw new Error(IM[r]); + if ((t.header && t6.deflateSetHeader(this.strm, t.header), t.dictionary)) { + var n; + if ( + (typeof t.dictionary == 'string' + ? (n = AM.string2buf(t.dictionary)) + : ETe.call(t.dictionary) === '[object ArrayBuffer]' + ? (n = new Uint8Array(t.dictionary)) + : (n = t.dictionary), + (r = t6.deflateSetDictionary(this.strm, n)), + r !== v1) + ) + throw new Error(IM[r]); + this._dict_set = !0; + } + } + Rf.prototype.push = function (e, t) { + var r = this.strm, + n = this.options.chunkSize, + a, + o; + if (this.ended) return !1; + (o = t === ~~t ? t : t === !0 ? kM : Pjt), + typeof e == 'string' + ? (r.input = AM.string2buf(e)) + : ETe.call(e) === '[object ArrayBuffer]' + ? (r.input = new Uint8Array(e)) + : (r.input = e), + (r.next_in = 0), + (r.avail_in = r.input.length); + do { + if ( + (r.avail_out === 0 && ((r.output = new r6.Buf8(n)), (r.next_out = 0), (r.avail_out = n)), + (a = t6.deflate(r, o)), + a !== wTe && a !== v1) + ) + return this.onEnd(a), (this.ended = !0), !1; + (r.avail_out === 0 || (r.avail_in === 0 && (o === kM || o === STe))) && + (this.options.to === 'string' + ? this.onData(AM.buf2binstring(r6.shrinkBuf(r.output, r.next_out))) + : this.onData(r6.shrinkBuf(r.output, r.next_out))); + } while ((r.avail_in > 0 || r.avail_out === 0) && a !== wTe); + return o === kM + ? ((a = t6.deflateEnd(this.strm)), this.onEnd(a), (this.ended = !0), a === v1) + : (o === STe && (this.onEnd(v1), (r.avail_out = 0)), !0); + }; + Rf.prototype.onData = function (e) { + this.chunks.push(e); + }; + Rf.prototype.onEnd = function (e) { + e === v1 && + (this.options.to === 'string' + ? (this.result = this.chunks.join('')) + : (this.result = r6.flattenChunks(this.chunks))), + (this.chunks = []), + (this.err = e), + (this.msg = this.strm.msg); + }; + function PM(e, t) { + var r = new Rf(t); + if ((r.push(e, !0), r.err)) throw r.msg || IM[r.err]; + return r.result; + } + function Njt(e, t) { + return (t = t || {}), (t.raw = !0), PM(e, t); + } + function qjt(e, t) { + return (t = t || {}), (t.gzip = !0), PM(e, t); + } + i6.Deflate = Rf; + i6.deflate = PM; + i6.deflateRaw = Njt; + i6.gzip = qjt; +}); +var TTe = d((psr, OTe) => { + 'use strict'; + var i7 = 30, + Fjt = 12; + OTe.exports = function (t, r) { + var n, a, o, s, l, u, p, c, f, h, m, v, y, S, w, O, x, _, b, T, R, C, N, A, j; + (n = t.state), + (a = t.next_in), + (A = t.input), + (o = a + (t.avail_in - 5)), + (s = t.next_out), + (j = t.output), + (l = s - (r - t.avail_out)), + (u = s + (t.avail_out - 257)), + (p = n.dmax), + (c = n.wsize), + (f = n.whave), + (h = n.wnext), + (m = n.window), + (v = n.hold), + (y = n.bits), + (S = n.lencode), + (w = n.distcode), + (O = (1 << n.lenbits) - 1), + (x = (1 << n.distbits) - 1); + e: do { + y < 15 && ((v += A[a++] << y), (y += 8), (v += A[a++] << y), (y += 8)), (_ = S[v & O]); + t: for (;;) { + if (((b = _ >>> 24), (v >>>= b), (y -= b), (b = (_ >>> 16) & 255), b === 0)) j[s++] = _ & 65535; + else if (b & 16) { + (T = _ & 65535), + (b &= 15), + b && (y < b && ((v += A[a++] << y), (y += 8)), (T += v & ((1 << b) - 1)), (v >>>= b), (y -= b)), + y < 15 && ((v += A[a++] << y), (y += 8), (v += A[a++] << y), (y += 8)), + (_ = w[v & x]); + r: for (;;) { + if (((b = _ >>> 24), (v >>>= b), (y -= b), (b = (_ >>> 16) & 255), b & 16)) { + if ( + ((R = _ & 65535), + (b &= 15), + y < b && ((v += A[a++] << y), (y += 8), y < b && ((v += A[a++] << y), (y += 8))), + (R += v & ((1 << b) - 1)), + R > p) + ) { + (t.msg = 'invalid distance too far back'), (n.mode = i7); + break e; + } + if (((v >>>= b), (y -= b), (b = s - l), R > b)) { + if (((b = R - b), b > f && n.sane)) { + (t.msg = 'invalid distance too far back'), (n.mode = i7); + break e; + } + if (((C = 0), (N = m), h === 0)) { + if (((C += c - b), b < T)) { + T -= b; + do j[s++] = m[C++]; + while (--b); + (C = s - R), (N = j); + } + } else if (h < b) { + if (((C += c + h - b), (b -= h), b < T)) { + T -= b; + do j[s++] = m[C++]; + while (--b); + if (((C = 0), h < T)) { + (b = h), (T -= b); + do j[s++] = m[C++]; + while (--b); + (C = s - R), (N = j); + } + } + } else if (((C += h - b), b < T)) { + T -= b; + do j[s++] = m[C++]; + while (--b); + (C = s - R), (N = j); + } + for (; T > 2; ) (j[s++] = N[C++]), (j[s++] = N[C++]), (j[s++] = N[C++]), (T -= 3); + T && ((j[s++] = N[C++]), T > 1 && (j[s++] = N[C++])); + } else { + C = s - R; + do (j[s++] = j[C++]), (j[s++] = j[C++]), (j[s++] = j[C++]), (T -= 3); + while (T > 2); + T && ((j[s++] = j[C++]), T > 1 && (j[s++] = j[C++])); + } + } else if (b & 64) { + (t.msg = 'invalid distance code'), (n.mode = i7); + break e; + } else { + _ = w[(_ & 65535) + (v & ((1 << b) - 1))]; + continue r; + } + break; + } + } else if (b & 64) + if (b & 32) { + n.mode = Fjt; + break e; + } else { + (t.msg = 'invalid literal/length code'), (n.mode = i7); + break e; + } + else { + _ = S[(_ & 65535) + (v & ((1 << b) - 1))]; + continue t; + } + break; + } + } while (a < o && s < u); + (T = y >> 3), + (a -= T), + (y -= T << 3), + (v &= (1 << y) - 1), + (t.next_in = a), + (t.next_out = s), + (t.avail_in = a < o ? 5 + (o - a) : 5 - (a - o)), + (t.avail_out = s < u ? 257 + (u - s) : 257 - (s - u)), + (n.hold = v), + (n.bits = y); + }; +}); +var jTe = d((csr, RTe) => { + 'use strict'; + var CTe = bu(), + y1 = 15, + kTe = 852, + ATe = 592, + ITe = 0, + RM = 1, + PTe = 2, + Ljt = [ + 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, + 0, 0, + ], + Mjt = [ + 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, + 16, 72, 78, + ], + Ujt = [ + 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, + 8193, 12289, 16385, 24577, 0, 0, + ], + $jt = [ + 16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, + 29, 29, 64, 64, + ]; + RTe.exports = function (t, r, n, a, o, s, l, u) { + var p = u.bits, + c = 0, + f = 0, + h = 0, + m = 0, + v = 0, + y = 0, + S = 0, + w = 0, + O = 0, + x = 0, + _, + b, + T, + R, + C, + N = null, + A = 0, + j, + U = new CTe.Buf16(y1 + 1), + z = new CTe.Buf16(y1 + 1), + K = null, + te = 0, + J, + ie, + oe; + for (c = 0; c <= y1; c++) U[c] = 0; + for (f = 0; f < a; f++) U[r[n + f]]++; + for (v = p, m = y1; m >= 1 && U[m] === 0; m--); + if ((v > m && (v = m), m === 0)) + return (o[s++] = (1 << 24) | (64 << 16) | 0), (o[s++] = (1 << 24) | (64 << 16) | 0), (u.bits = 1), 0; + for (h = 1; h < m && U[h] === 0; h++); + for (v < h && (v = h), w = 1, c = 1; c <= y1; c++) if (((w <<= 1), (w -= U[c]), w < 0)) return -1; + if (w > 0 && (t === ITe || m !== 1)) return -1; + for (z[1] = 0, c = 1; c < y1; c++) z[c + 1] = z[c] + U[c]; + for (f = 0; f < a; f++) r[n + f] !== 0 && (l[z[r[n + f]]++] = f); + if ( + (t === ITe + ? ((N = K = l), (j = 19)) + : t === RM + ? ((N = Ljt), (A -= 257), (K = Mjt), (te -= 257), (j = 256)) + : ((N = Ujt), (K = $jt), (j = -1)), + (x = 0), + (f = 0), + (c = h), + (C = s), + (y = v), + (S = 0), + (T = -1), + (O = 1 << v), + (R = O - 1), + (t === RM && O > kTe) || (t === PTe && O > ATe)) + ) + return 1; + for (;;) { + (J = c - S), + l[f] < j + ? ((ie = 0), (oe = l[f])) + : l[f] > j + ? ((ie = K[te + l[f]]), (oe = N[A + l[f]])) + : ((ie = 32 + 64), (oe = 0)), + (_ = 1 << (c - S)), + (b = 1 << y), + (h = b); + do (b -= _), (o[C + (x >> S) + b] = (J << 24) | (ie << 16) | oe | 0); + while (b !== 0); + for (_ = 1 << (c - 1); x & _; ) _ >>= 1; + if ((_ !== 0 ? ((x &= _ - 1), (x += _)) : (x = 0), f++, --U[c] === 0)) { + if (c === m) break; + c = r[n + l[f]]; + } + if (c > v && (x & R) !== T) { + for (S === 0 && (S = v), C += h, y = c - S, w = 1 << y; y + S < m && ((w -= U[y + S]), !(w <= 0)); ) + y++, (w <<= 1); + if (((O += 1 << y), (t === RM && O > kTe) || (t === PTe && O > ATe))) return 1; + (T = x & R), (o[T] = (v << 24) | (y << 16) | (C - s) | 0); + } + } + return x !== 0 && (o[C + x] = ((c - S) << 24) | (64 << 16) | 0), (u.bits = v), 0; + }; +}); +var mCe = d((ts) => { + 'use strict'; + var Sa = bu(), + LM = _M(), + ol = wM(), + Bjt = TTe(), + n6 = jTe(), + Vjt = 0, + aCe = 1, + oCe = 2, + DTe = 4, + zjt = 5, + n7 = 6, + jf = 0, + Hjt = 1, + Gjt = 2, + uo = -2, + sCe = -3, + MM = -4, + Wjt = -5, + NTe = 8, + lCe = 1, + qTe = 2, + FTe = 3, + LTe = 4, + MTe = 5, + UTe = 6, + $Te = 7, + BTe = 8, + VTe = 9, + zTe = 10, + s7 = 11, + Su = 12, + jM = 13, + HTe = 14, + DM = 15, + GTe = 16, + WTe = 17, + KTe = 18, + XTe = 19, + a7 = 20, + o7 = 21, + JTe = 22, + YTe = 23, + QTe = 24, + ZTe = 25, + eCe = 26, + NM = 27, + tCe = 28, + rCe = 29, + ir = 30, + UM = 31, + Kjt = 32, + Xjt = 852, + Jjt = 592, + Yjt = 15, + Qjt = Yjt; + function iCe(e) { + return ((e >>> 24) & 255) + ((e >>> 8) & 65280) + ((e & 65280) << 8) + ((e & 255) << 24); + } + function Zjt() { + (this.mode = 0), + (this.last = !1), + (this.wrap = 0), + (this.havedict = !1), + (this.flags = 0), + (this.dmax = 0), + (this.check = 0), + (this.total = 0), + (this.head = null), + (this.wbits = 0), + (this.wsize = 0), + (this.whave = 0), + (this.wnext = 0), + (this.window = null), + (this.hold = 0), + (this.bits = 0), + (this.length = 0), + (this.offset = 0), + (this.extra = 0), + (this.lencode = null), + (this.distcode = null), + (this.lenbits = 0), + (this.distbits = 0), + (this.ncode = 0), + (this.nlen = 0), + (this.ndist = 0), + (this.have = 0), + (this.next = null), + (this.lens = new Sa.Buf16(320)), + (this.work = new Sa.Buf16(288)), + (this.lendyn = null), + (this.distdyn = null), + (this.sane = 0), + (this.back = 0), + (this.was = 0); + } + function uCe(e) { + var t; + return !e || !e.state + ? uo + : ((t = e.state), + (e.total_in = e.total_out = t.total = 0), + (e.msg = ''), + t.wrap && (e.adler = t.wrap & 1), + (t.mode = lCe), + (t.last = 0), + (t.havedict = 0), + (t.dmax = 32768), + (t.head = null), + (t.hold = 0), + (t.bits = 0), + (t.lencode = t.lendyn = new Sa.Buf32(Xjt)), + (t.distcode = t.distdyn = new Sa.Buf32(Jjt)), + (t.sane = 1), + (t.back = -1), + jf); + } + function pCe(e) { + var t; + return !e || !e.state ? uo : ((t = e.state), (t.wsize = 0), (t.whave = 0), (t.wnext = 0), uCe(e)); + } + function cCe(e, t) { + var r, n; + return !e || + !e.state || + ((n = e.state), t < 0 ? ((r = 0), (t = -t)) : ((r = (t >> 4) + 1), t < 48 && (t &= 15)), t && (t < 8 || t > 15)) + ? uo + : (n.window !== null && n.wbits !== t && (n.window = null), (n.wrap = r), (n.wbits = t), pCe(e)); + } + function dCe(e, t) { + var r, n; + return e + ? ((n = new Zjt()), (e.state = n), (n.window = null), (r = cCe(e, t)), r !== jf && (e.state = null), r) + : uo; + } + function eDt(e) { + return dCe(e, Qjt); + } + var nCe = !0, + qM, + FM; + function tDt(e) { + if (nCe) { + var t; + for (qM = new Sa.Buf32(512), FM = new Sa.Buf32(32), t = 0; t < 144; ) e.lens[t++] = 8; + for (; t < 256; ) e.lens[t++] = 9; + for (; t < 280; ) e.lens[t++] = 7; + for (; t < 288; ) e.lens[t++] = 8; + for (n6(aCe, e.lens, 0, 288, qM, 0, e.work, { bits: 9 }), t = 0; t < 32; ) e.lens[t++] = 5; + n6(oCe, e.lens, 0, 32, FM, 0, e.work, { bits: 5 }), (nCe = !1); + } + (e.lencode = qM), (e.lenbits = 9), (e.distcode = FM), (e.distbits = 5); + } + function fCe(e, t, r, n) { + var a, + o = e.state; + return ( + o.window === null && ((o.wsize = 1 << o.wbits), (o.wnext = 0), (o.whave = 0), (o.window = new Sa.Buf8(o.wsize))), + n >= o.wsize + ? (Sa.arraySet(o.window, t, r - o.wsize, o.wsize, 0), (o.wnext = 0), (o.whave = o.wsize)) + : ((a = o.wsize - o.wnext), + a > n && (a = n), + Sa.arraySet(o.window, t, r - n, a, o.wnext), + (n -= a), + n + ? (Sa.arraySet(o.window, t, r - n, n, 0), (o.wnext = n), (o.whave = o.wsize)) + : ((o.wnext += a), o.wnext === o.wsize && (o.wnext = 0), o.whave < o.wsize && (o.whave += a))), + 0 + ); + } + function rDt(e, t) { + var r, + n, + a, + o, + s, + l, + u, + p, + c, + f, + h, + m, + v, + y, + S = 0, + w, + O, + x, + _, + b, + T, + R, + C, + N = new Sa.Buf8(4), + A, + j, + U = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]; + if (!e || !e.state || !e.output || (!e.input && e.avail_in !== 0)) return uo; + (r = e.state), + r.mode === Su && (r.mode = jM), + (s = e.next_out), + (a = e.output), + (u = e.avail_out), + (o = e.next_in), + (n = e.input), + (l = e.avail_in), + (p = r.hold), + (c = r.bits), + (f = l), + (h = u), + (C = jf); + e: for (;;) + switch (r.mode) { + case lCe: + if (r.wrap === 0) { + r.mode = jM; + break; + } + for (; c < 16; ) { + if (l === 0) break e; + l--, (p += n[o++] << c), (c += 8); + } + if (r.wrap & 2 && p === 35615) { + (r.check = 0), + (N[0] = p & 255), + (N[1] = (p >>> 8) & 255), + (r.check = ol(r.check, N, 2, 0)), + (p = 0), + (c = 0), + (r.mode = qTe); + break; + } + if (((r.flags = 0), r.head && (r.head.done = !1), !(r.wrap & 1) || (((p & 255) << 8) + (p >> 8)) % 31)) { + (e.msg = 'incorrect header check'), (r.mode = ir); + break; + } + if ((p & 15) !== NTe) { + (e.msg = 'unknown compression method'), (r.mode = ir); + break; + } + if (((p >>>= 4), (c -= 4), (R = (p & 15) + 8), r.wbits === 0)) r.wbits = R; + else if (R > r.wbits) { + (e.msg = 'invalid window size'), (r.mode = ir); + break; + } + (r.dmax = 1 << R), (e.adler = r.check = 1), (r.mode = p & 512 ? zTe : Su), (p = 0), (c = 0); + break; + case qTe: + for (; c < 16; ) { + if (l === 0) break e; + l--, (p += n[o++] << c), (c += 8); + } + if (((r.flags = p), (r.flags & 255) !== NTe)) { + (e.msg = 'unknown compression method'), (r.mode = ir); + break; + } + if (r.flags & 57344) { + (e.msg = 'unknown header flags set'), (r.mode = ir); + break; + } + r.head && (r.head.text = (p >> 8) & 1), + r.flags & 512 && ((N[0] = p & 255), (N[1] = (p >>> 8) & 255), (r.check = ol(r.check, N, 2, 0))), + (p = 0), + (c = 0), + (r.mode = FTe); + case FTe: + for (; c < 32; ) { + if (l === 0) break e; + l--, (p += n[o++] << c), (c += 8); + } + r.head && (r.head.time = p), + r.flags & 512 && + ((N[0] = p & 255), + (N[1] = (p >>> 8) & 255), + (N[2] = (p >>> 16) & 255), + (N[3] = (p >>> 24) & 255), + (r.check = ol(r.check, N, 4, 0))), + (p = 0), + (c = 0), + (r.mode = LTe); + case LTe: + for (; c < 16; ) { + if (l === 0) break e; + l--, (p += n[o++] << c), (c += 8); + } + r.head && ((r.head.xflags = p & 255), (r.head.os = p >> 8)), + r.flags & 512 && ((N[0] = p & 255), (N[1] = (p >>> 8) & 255), (r.check = ol(r.check, N, 2, 0))), + (p = 0), + (c = 0), + (r.mode = MTe); + case MTe: + if (r.flags & 1024) { + for (; c < 16; ) { + if (l === 0) break e; + l--, (p += n[o++] << c), (c += 8); + } + (r.length = p), + r.head && (r.head.extra_len = p), + r.flags & 512 && ((N[0] = p & 255), (N[1] = (p >>> 8) & 255), (r.check = ol(r.check, N, 2, 0))), + (p = 0), + (c = 0); + } else r.head && (r.head.extra = null); + r.mode = UTe; + case UTe: + if ( + r.flags & 1024 && + ((m = r.length), + m > l && (m = l), + m && + (r.head && + ((R = r.head.extra_len - r.length), + r.head.extra || (r.head.extra = new Array(r.head.extra_len)), + Sa.arraySet(r.head.extra, n, o, m, R)), + r.flags & 512 && (r.check = ol(r.check, n, m, o)), + (l -= m), + (o += m), + (r.length -= m)), + r.length) + ) + break e; + (r.length = 0), (r.mode = $Te); + case $Te: + if (r.flags & 2048) { + if (l === 0) break e; + m = 0; + do (R = n[o + m++]), r.head && R && r.length < 65536 && (r.head.name += String.fromCharCode(R)); + while (R && m < l); + if ((r.flags & 512 && (r.check = ol(r.check, n, m, o)), (l -= m), (o += m), R)) break e; + } else r.head && (r.head.name = null); + (r.length = 0), (r.mode = BTe); + case BTe: + if (r.flags & 4096) { + if (l === 0) break e; + m = 0; + do (R = n[o + m++]), r.head && R && r.length < 65536 && (r.head.comment += String.fromCharCode(R)); + while (R && m < l); + if ((r.flags & 512 && (r.check = ol(r.check, n, m, o)), (l -= m), (o += m), R)) break e; + } else r.head && (r.head.comment = null); + r.mode = VTe; + case VTe: + if (r.flags & 512) { + for (; c < 16; ) { + if (l === 0) break e; + l--, (p += n[o++] << c), (c += 8); + } + if (p !== (r.check & 65535)) { + (e.msg = 'header crc mismatch'), (r.mode = ir); + break; + } + (p = 0), (c = 0); + } + r.head && ((r.head.hcrc = (r.flags >> 9) & 1), (r.head.done = !0)), (e.adler = r.check = 0), (r.mode = Su); + break; + case zTe: + for (; c < 32; ) { + if (l === 0) break e; + l--, (p += n[o++] << c), (c += 8); + } + (e.adler = r.check = iCe(p)), (p = 0), (c = 0), (r.mode = s7); + case s7: + if (r.havedict === 0) + return ( + (e.next_out = s), (e.avail_out = u), (e.next_in = o), (e.avail_in = l), (r.hold = p), (r.bits = c), Gjt + ); + (e.adler = r.check = 1), (r.mode = Su); + case Su: + if (t === zjt || t === n7) break e; + case jM: + if (r.last) { + (p >>>= c & 7), (c -= c & 7), (r.mode = NM); + break; + } + for (; c < 3; ) { + if (l === 0) break e; + l--, (p += n[o++] << c), (c += 8); + } + switch (((r.last = p & 1), (p >>>= 1), (c -= 1), p & 3)) { + case 0: + r.mode = HTe; + break; + case 1: + if ((tDt(r), (r.mode = a7), t === n7)) { + (p >>>= 2), (c -= 2); + break e; + } + break; + case 2: + r.mode = WTe; + break; + case 3: + (e.msg = 'invalid block type'), (r.mode = ir); + } + (p >>>= 2), (c -= 2); + break; + case HTe: + for (p >>>= c & 7, c -= c & 7; c < 32; ) { + if (l === 0) break e; + l--, (p += n[o++] << c), (c += 8); + } + if ((p & 65535) !== ((p >>> 16) ^ 65535)) { + (e.msg = 'invalid stored block lengths'), (r.mode = ir); + break; + } + if (((r.length = p & 65535), (p = 0), (c = 0), (r.mode = DM), t === n7)) break e; + case DM: + r.mode = GTe; + case GTe: + if (((m = r.length), m)) { + if ((m > l && (m = l), m > u && (m = u), m === 0)) break e; + Sa.arraySet(a, n, o, m, s), (l -= m), (o += m), (u -= m), (s += m), (r.length -= m); + break; + } + r.mode = Su; + break; + case WTe: + for (; c < 14; ) { + if (l === 0) break e; + l--, (p += n[o++] << c), (c += 8); + } + if ( + ((r.nlen = (p & 31) + 257), + (p >>>= 5), + (c -= 5), + (r.ndist = (p & 31) + 1), + (p >>>= 5), + (c -= 5), + (r.ncode = (p & 15) + 4), + (p >>>= 4), + (c -= 4), + r.nlen > 286 || r.ndist > 30) + ) { + (e.msg = 'too many length or distance symbols'), (r.mode = ir); + break; + } + (r.have = 0), (r.mode = KTe); + case KTe: + for (; r.have < r.ncode; ) { + for (; c < 3; ) { + if (l === 0) break e; + l--, (p += n[o++] << c), (c += 8); + } + (r.lens[U[r.have++]] = p & 7), (p >>>= 3), (c -= 3); + } + for (; r.have < 19; ) r.lens[U[r.have++]] = 0; + if ( + ((r.lencode = r.lendyn), + (r.lenbits = 7), + (A = { bits: r.lenbits }), + (C = n6(Vjt, r.lens, 0, 19, r.lencode, 0, r.work, A)), + (r.lenbits = A.bits), + C) + ) { + (e.msg = 'invalid code lengths set'), (r.mode = ir); + break; + } + (r.have = 0), (r.mode = XTe); + case XTe: + for (; r.have < r.nlen + r.ndist; ) { + for ( + ; + (S = r.lencode[p & ((1 << r.lenbits) - 1)]), + (w = S >>> 24), + (O = (S >>> 16) & 255), + (x = S & 65535), + !(w <= c); + + ) { + if (l === 0) break e; + l--, (p += n[o++] << c), (c += 8); + } + if (x < 16) (p >>>= w), (c -= w), (r.lens[r.have++] = x); + else { + if (x === 16) { + for (j = w + 2; c < j; ) { + if (l === 0) break e; + l--, (p += n[o++] << c), (c += 8); + } + if (((p >>>= w), (c -= w), r.have === 0)) { + (e.msg = 'invalid bit length repeat'), (r.mode = ir); + break; + } + (R = r.lens[r.have - 1]), (m = 3 + (p & 3)), (p >>>= 2), (c -= 2); + } else if (x === 17) { + for (j = w + 3; c < j; ) { + if (l === 0) break e; + l--, (p += n[o++] << c), (c += 8); + } + (p >>>= w), (c -= w), (R = 0), (m = 3 + (p & 7)), (p >>>= 3), (c -= 3); + } else { + for (j = w + 7; c < j; ) { + if (l === 0) break e; + l--, (p += n[o++] << c), (c += 8); + } + (p >>>= w), (c -= w), (R = 0), (m = 11 + (p & 127)), (p >>>= 7), (c -= 7); + } + if (r.have + m > r.nlen + r.ndist) { + (e.msg = 'invalid bit length repeat'), (r.mode = ir); + break; + } + for (; m--; ) r.lens[r.have++] = R; + } + } + if (r.mode === ir) break; + if (r.lens[256] === 0) { + (e.msg = 'invalid code -- missing end-of-block'), (r.mode = ir); + break; + } + if ( + ((r.lenbits = 9), + (A = { bits: r.lenbits }), + (C = n6(aCe, r.lens, 0, r.nlen, r.lencode, 0, r.work, A)), + (r.lenbits = A.bits), + C) + ) { + (e.msg = 'invalid literal/lengths set'), (r.mode = ir); + break; + } + if ( + ((r.distbits = 6), + (r.distcode = r.distdyn), + (A = { bits: r.distbits }), + (C = n6(oCe, r.lens, r.nlen, r.ndist, r.distcode, 0, r.work, A)), + (r.distbits = A.bits), + C) + ) { + (e.msg = 'invalid distances set'), (r.mode = ir); + break; + } + if (((r.mode = a7), t === n7)) break e; + case a7: + r.mode = o7; + case o7: + if (l >= 6 && u >= 258) { + (e.next_out = s), + (e.avail_out = u), + (e.next_in = o), + (e.avail_in = l), + (r.hold = p), + (r.bits = c), + Bjt(e, h), + (s = e.next_out), + (a = e.output), + (u = e.avail_out), + (o = e.next_in), + (n = e.input), + (l = e.avail_in), + (p = r.hold), + (c = r.bits), + r.mode === Su && (r.back = -1); + break; + } + for ( + r.back = 0; + (S = r.lencode[p & ((1 << r.lenbits) - 1)]), + (w = S >>> 24), + (O = (S >>> 16) & 255), + (x = S & 65535), + !(w <= c); + + ) { + if (l === 0) break e; + l--, (p += n[o++] << c), (c += 8); + } + if (O && !(O & 240)) { + for ( + _ = w, b = O, T = x; + (S = r.lencode[T + ((p & ((1 << (_ + b)) - 1)) >> _)]), + (w = S >>> 24), + (O = (S >>> 16) & 255), + (x = S & 65535), + !(_ + w <= c); + + ) { + if (l === 0) break e; + l--, (p += n[o++] << c), (c += 8); + } + (p >>>= _), (c -= _), (r.back += _); + } + if (((p >>>= w), (c -= w), (r.back += w), (r.length = x), O === 0)) { + r.mode = eCe; + break; + } + if (O & 32) { + (r.back = -1), (r.mode = Su); + break; + } + if (O & 64) { + (e.msg = 'invalid literal/length code'), (r.mode = ir); + break; + } + (r.extra = O & 15), (r.mode = JTe); + case JTe: + if (r.extra) { + for (j = r.extra; c < j; ) { + if (l === 0) break e; + l--, (p += n[o++] << c), (c += 8); + } + (r.length += p & ((1 << r.extra) - 1)), (p >>>= r.extra), (c -= r.extra), (r.back += r.extra); + } + (r.was = r.length), (r.mode = YTe); + case YTe: + for ( + ; + (S = r.distcode[p & ((1 << r.distbits) - 1)]), + (w = S >>> 24), + (O = (S >>> 16) & 255), + (x = S & 65535), + !(w <= c); + + ) { + if (l === 0) break e; + l--, (p += n[o++] << c), (c += 8); + } + if (!(O & 240)) { + for ( + _ = w, b = O, T = x; + (S = r.distcode[T + ((p & ((1 << (_ + b)) - 1)) >> _)]), + (w = S >>> 24), + (O = (S >>> 16) & 255), + (x = S & 65535), + !(_ + w <= c); + + ) { + if (l === 0) break e; + l--, (p += n[o++] << c), (c += 8); + } + (p >>>= _), (c -= _), (r.back += _); + } + if (((p >>>= w), (c -= w), (r.back += w), O & 64)) { + (e.msg = 'invalid distance code'), (r.mode = ir); + break; + } + (r.offset = x), (r.extra = O & 15), (r.mode = QTe); + case QTe: + if (r.extra) { + for (j = r.extra; c < j; ) { + if (l === 0) break e; + l--, (p += n[o++] << c), (c += 8); + } + (r.offset += p & ((1 << r.extra) - 1)), (p >>>= r.extra), (c -= r.extra), (r.back += r.extra); + } + if (r.offset > r.dmax) { + (e.msg = 'invalid distance too far back'), (r.mode = ir); + break; + } + r.mode = ZTe; + case ZTe: + if (u === 0) break e; + if (((m = h - u), r.offset > m)) { + if (((m = r.offset - m), m > r.whave && r.sane)) { + (e.msg = 'invalid distance too far back'), (r.mode = ir); + break; + } + m > r.wnext ? ((m -= r.wnext), (v = r.wsize - m)) : (v = r.wnext - m), + m > r.length && (m = r.length), + (y = r.window); + } else (y = a), (v = s - r.offset), (m = r.length); + m > u && (m = u), (u -= m), (r.length -= m); + do a[s++] = y[v++]; + while (--m); + r.length === 0 && (r.mode = o7); + break; + case eCe: + if (u === 0) break e; + (a[s++] = r.length), u--, (r.mode = o7); + break; + case NM: + if (r.wrap) { + for (; c < 32; ) { + if (l === 0) break e; + l--, (p |= n[o++] << c), (c += 8); + } + if ( + ((h -= u), + (e.total_out += h), + (r.total += h), + h && (e.adler = r.check = r.flags ? ol(r.check, a, h, s - h) : LM(r.check, a, h, s - h)), + (h = u), + (r.flags ? p : iCe(p)) !== r.check) + ) { + (e.msg = 'incorrect data check'), (r.mode = ir); + break; + } + (p = 0), (c = 0); + } + r.mode = tCe; + case tCe: + if (r.wrap && r.flags) { + for (; c < 32; ) { + if (l === 0) break e; + l--, (p += n[o++] << c), (c += 8); + } + if (p !== (r.total & 4294967295)) { + (e.msg = 'incorrect length check'), (r.mode = ir); + break; + } + (p = 0), (c = 0); + } + r.mode = rCe; + case rCe: + C = Hjt; + break e; + case ir: + C = sCe; + break e; + case UM: + return MM; + case Kjt: + default: + return uo; + } + return ( + (e.next_out = s), + (e.avail_out = u), + (e.next_in = o), + (e.avail_in = l), + (r.hold = p), + (r.bits = c), + (r.wsize || (h !== e.avail_out && r.mode < ir && (r.mode < NM || t !== DTe))) && + fCe(e, e.output, e.next_out, h - e.avail_out) + ? ((r.mode = UM), MM) + : ((f -= e.avail_in), + (h -= e.avail_out), + (e.total_in += f), + (e.total_out += h), + (r.total += h), + r.wrap && + h && + (e.adler = r.check = r.flags ? ol(r.check, a, h, e.next_out - h) : LM(r.check, a, h, e.next_out - h)), + (e.data_type = + r.bits + (r.last ? 64 : 0) + (r.mode === Su ? 128 : 0) + (r.mode === a7 || r.mode === DM ? 256 : 0)), + ((f === 0 && h === 0) || t === DTe) && C === jf && (C = Wjt), + C) + ); + } + function iDt(e) { + if (!e || !e.state) return uo; + var t = e.state; + return t.window && (t.window = null), (e.state = null), jf; + } + function nDt(e, t) { + var r; + return !e || !e.state || ((r = e.state), !(r.wrap & 2)) ? uo : ((r.head = t), (t.done = !1), jf); + } + function aDt(e, t) { + var r = t.length, + n, + a, + o; + return !e || !e.state || ((n = e.state), n.wrap !== 0 && n.mode !== s7) + ? uo + : n.mode === s7 && ((a = 1), (a = LM(a, t, r, 0)), a !== n.check) + ? sCe + : ((o = fCe(e, t, r, r)), o ? ((n.mode = UM), MM) : ((n.havedict = 1), jf)); + } + ts.inflateReset = pCe; + ts.inflateReset2 = cCe; + ts.inflateResetKeep = uCe; + ts.inflateInit = eDt; + ts.inflateInit2 = dCe; + ts.inflate = rDt; + ts.inflateEnd = iDt; + ts.inflateGetHeader = nDt; + ts.inflateSetDictionary = aDt; + ts.inflateInfo = 'pako inflate (from Nodeca project)'; +}); +var $M = d((fsr, hCe) => { + 'use strict'; + hCe.exports = { + Z_NO_FLUSH: 0, + Z_PARTIAL_FLUSH: 1, + Z_SYNC_FLUSH: 2, + Z_FULL_FLUSH: 3, + Z_FINISH: 4, + Z_BLOCK: 5, + Z_TREES: 6, + Z_OK: 0, + Z_STREAM_END: 1, + Z_NEED_DICT: 2, + Z_ERRNO: -1, + Z_STREAM_ERROR: -2, + Z_DATA_ERROR: -3, + Z_BUF_ERROR: -5, + Z_NO_COMPRESSION: 0, + Z_BEST_SPEED: 1, + Z_BEST_COMPRESSION: 9, + Z_DEFAULT_COMPRESSION: -1, + Z_FILTERED: 1, + Z_HUFFMAN_ONLY: 2, + Z_RLE: 3, + Z_FIXED: 4, + Z_DEFAULT_STRATEGY: 0, + Z_BINARY: 0, + Z_TEXT: 1, + Z_UNKNOWN: 2, + Z_DEFLATED: 8, + }; +}); +var vCe = d((msr, gCe) => { + 'use strict'; + function oDt() { + (this.text = 0), + (this.time = 0), + (this.xflags = 0), + (this.os = 0), + (this.extra = null), + (this.extra_len = 0), + (this.name = ''), + (this.comment = ''), + (this.hcrc = 0), + (this.done = !1); + } + gCe.exports = oDt; +}); +var bCe = d((o6) => { + 'use strict'; + var b1 = mCe(), + a6 = bu(), + l7 = TM(), + Nr = $M(), + BM = X5(), + sDt = CM(), + lDt = vCe(), + yCe = Object.prototype.toString; + function Df(e) { + if (!(this instanceof Df)) return new Df(e); + this.options = a6.assign({ chunkSize: 16384, windowBits: 0, to: '' }, e || {}); + var t = this.options; + t.raw && + t.windowBits >= 0 && + t.windowBits < 16 && + ((t.windowBits = -t.windowBits), t.windowBits === 0 && (t.windowBits = -15)), + t.windowBits >= 0 && t.windowBits < 16 && !(e && e.windowBits) && (t.windowBits += 32), + t.windowBits > 15 && t.windowBits < 48 && (t.windowBits & 15 || (t.windowBits |= 15)), + (this.err = 0), + (this.msg = ''), + (this.ended = !1), + (this.chunks = []), + (this.strm = new sDt()), + (this.strm.avail_out = 0); + var r = b1.inflateInit2(this.strm, t.windowBits); + if (r !== Nr.Z_OK) throw new Error(BM[r]); + if ( + ((this.header = new lDt()), + b1.inflateGetHeader(this.strm, this.header), + t.dictionary && + (typeof t.dictionary == 'string' + ? (t.dictionary = l7.string2buf(t.dictionary)) + : yCe.call(t.dictionary) === '[object ArrayBuffer]' && (t.dictionary = new Uint8Array(t.dictionary)), + t.raw && ((r = b1.inflateSetDictionary(this.strm, t.dictionary)), r !== Nr.Z_OK))) + ) + throw new Error(BM[r]); + } + Df.prototype.push = function (e, t) { + var r = this.strm, + n = this.options.chunkSize, + a = this.options.dictionary, + o, + s, + l, + u, + p, + c = !1; + if (this.ended) return !1; + (s = t === ~~t ? t : t === !0 ? Nr.Z_FINISH : Nr.Z_NO_FLUSH), + typeof e == 'string' + ? (r.input = l7.binstring2buf(e)) + : yCe.call(e) === '[object ArrayBuffer]' + ? (r.input = new Uint8Array(e)) + : (r.input = e), + (r.next_in = 0), + (r.avail_in = r.input.length); + do { + if ( + (r.avail_out === 0 && ((r.output = new a6.Buf8(n)), (r.next_out = 0), (r.avail_out = n)), + (o = b1.inflate(r, Nr.Z_NO_FLUSH)), + o === Nr.Z_NEED_DICT && a && (o = b1.inflateSetDictionary(this.strm, a)), + o === Nr.Z_BUF_ERROR && c === !0 && ((o = Nr.Z_OK), (c = !1)), + o !== Nr.Z_STREAM_END && o !== Nr.Z_OK) + ) + return this.onEnd(o), (this.ended = !0), !1; + r.next_out && + (r.avail_out === 0 || + o === Nr.Z_STREAM_END || + (r.avail_in === 0 && (s === Nr.Z_FINISH || s === Nr.Z_SYNC_FLUSH))) && + (this.options.to === 'string' + ? ((l = l7.utf8border(r.output, r.next_out)), + (u = r.next_out - l), + (p = l7.buf2string(r.output, l)), + (r.next_out = u), + (r.avail_out = n - u), + u && a6.arraySet(r.output, r.output, l, u, 0), + this.onData(p)) + : this.onData(a6.shrinkBuf(r.output, r.next_out))), + r.avail_in === 0 && r.avail_out === 0 && (c = !0); + } while ((r.avail_in > 0 || r.avail_out === 0) && o !== Nr.Z_STREAM_END); + return ( + o === Nr.Z_STREAM_END && (s = Nr.Z_FINISH), + s === Nr.Z_FINISH + ? ((o = b1.inflateEnd(this.strm)), this.onEnd(o), (this.ended = !0), o === Nr.Z_OK) + : (s === Nr.Z_SYNC_FLUSH && (this.onEnd(Nr.Z_OK), (r.avail_out = 0)), !0) + ); + }; + Df.prototype.onData = function (e) { + this.chunks.push(e); + }; + Df.prototype.onEnd = function (e) { + e === Nr.Z_OK && + (this.options.to === 'string' + ? (this.result = this.chunks.join('')) + : (this.result = a6.flattenChunks(this.chunks))), + (this.chunks = []), + (this.err = e), + (this.msg = this.strm.msg); + }; + function VM(e, t) { + var r = new Df(t); + if ((r.push(e, !0), r.err)) throw r.msg || BM[r.err]; + return r.result; + } + function uDt(e, t) { + return (t = t || {}), (t.raw = !0), VM(e, t); + } + o6.Inflate = Df; + o6.inflate = VM; + o6.inflateRaw = uDt; + o6.ungzip = VM; +}); +var SCe = d((gsr, wCe) => { + 'use strict'; + var pDt = bu().assign, + cDt = xTe(), + dDt = bCe(), + fDt = $M(), + _Ce = {}; + pDt(_Ce, cDt, dDt, fDt); + wCe.exports = _Ce; +}); +var xCe = d((p7) => { + 'use strict'; + var mDt = typeof Uint8Array < 'u' && typeof Uint16Array < 'u' && typeof Uint32Array < 'u', + hDt = SCe(), + ECe = fr(), + u7 = wa(), + gDt = mDt ? 'uint8array' : 'array'; + p7.magic = '\b\0'; + function Nf(e, t) { + u7.call(this, 'FlateWorker/' + e), + (this._pako = null), + (this._pakoAction = e), + (this._pakoOptions = t), + (this.meta = {}); + } + ECe.inherits(Nf, u7); + Nf.prototype.processChunk = function (e) { + (this.meta = e.meta), this._pako === null && this._createPako(), this._pako.push(ECe.transformTo(gDt, e.data), !1); + }; + Nf.prototype.flush = function () { + u7.prototype.flush.call(this), this._pako === null && this._createPako(), this._pako.push([], !0); + }; + Nf.prototype.cleanUp = function () { + u7.prototype.cleanUp.call(this), (this._pako = null); + }; + Nf.prototype._createPako = function () { + this._pako = new hDt[this._pakoAction]({ raw: !0, level: this._pakoOptions.level || -1 }); + var e = this; + this._pako.onData = function (t) { + e.push({ data: t, meta: e.meta }); + }; + }; + p7.compressWorker = function (e) { + return new Nf('Deflate', e); + }; + p7.uncompressWorker = function () { + return new Nf('Inflate', {}); + }; +}); +var HM = d((zM) => { + 'use strict'; + var OCe = wa(); + zM.STORE = { + magic: '\0\0', + compressWorker: function () { + return new OCe('STORE compression'); + }, + uncompressWorker: function () { + return new OCe('STORE decompression'); + }, + }; + zM.DEFLATE = xCe(); +}); +var GM = d((qf) => { + 'use strict'; + qf.LOCAL_FILE_HEADER = 'PK'; + qf.CENTRAL_FILE_HEADER = 'PK'; + qf.CENTRAL_DIRECTORY_END = 'PK'; + qf.ZIP64_CENTRAL_DIRECTORY_LOCATOR = 'PK\x07'; + qf.ZIP64_CENTRAL_DIRECTORY_END = 'PK'; + qf.DATA_DESCRIPTOR = 'PK\x07\b'; +}); +var ACe = d((_sr, kCe) => { + 'use strict'; + var _1 = fr(), + w1 = wa(), + WM = l1(), + TCe = z5(), + c7 = GM(), + Lt = function (e, t) { + var r = '', + n; + for (n = 0; n < t; n++) (r += String.fromCharCode(e & 255)), (e = e >>> 8); + return r; + }, + vDt = function (e, t) { + var r = e; + return e || (r = t ? 16893 : 33204), (r & 65535) << 16; + }, + yDt = function (e) { + return (e || 0) & 63; + }, + CCe = function (e, t, r, n, a, o) { + var s = e.file, + l = e.compression, + u = o !== WM.utf8encode, + p = _1.transformTo('string', o(s.name)), + c = _1.transformTo('string', WM.utf8encode(s.name)), + f = s.comment, + h = _1.transformTo('string', o(f)), + m = _1.transformTo('string', WM.utf8encode(f)), + v = c.length !== s.name.length, + y = m.length !== f.length, + S, + w, + O = '', + x = '', + _ = '', + b = s.dir, + T = s.date, + R = { crc32: 0, compressedSize: 0, uncompressedSize: 0 }; + (!t || r) && + ((R.crc32 = e.crc32), (R.compressedSize = e.compressedSize), (R.uncompressedSize = e.uncompressedSize)); + var C = 0; + t && (C |= 8), !u && (v || y) && (C |= 2048); + var N = 0, + A = 0; + b && (N |= 16), + a === 'UNIX' ? ((A = 798), (N |= vDt(s.unixPermissions, b))) : ((A = 20), (N |= yDt(s.dosPermissions, b))), + (S = T.getUTCHours()), + (S = S << 6), + (S = S | T.getUTCMinutes()), + (S = S << 5), + (S = S | (T.getUTCSeconds() / 2)), + (w = T.getUTCFullYear() - 1980), + (w = w << 4), + (w = w | (T.getUTCMonth() + 1)), + (w = w << 5), + (w = w | T.getUTCDate()), + v && ((x = Lt(1, 1) + Lt(TCe(p), 4) + c), (O += 'up' + Lt(x.length, 2) + x)), + y && ((_ = Lt(1, 1) + Lt(TCe(h), 4) + m), (O += 'uc' + Lt(_.length, 2) + _)); + var j = ''; + (j += ` +\0`), + (j += Lt(C, 2)), + (j += l.magic), + (j += Lt(S, 2)), + (j += Lt(w, 2)), + (j += Lt(R.crc32, 4)), + (j += Lt(R.compressedSize, 4)), + (j += Lt(R.uncompressedSize, 4)), + (j += Lt(p.length, 2)), + (j += Lt(O.length, 2)); + var U = c7.LOCAL_FILE_HEADER + j + p + O, + z = c7.CENTRAL_FILE_HEADER + Lt(A, 2) + j + Lt(h.length, 2) + '\0\0\0\0' + Lt(N, 4) + Lt(n, 4) + p + O + h; + return { fileRecord: U, dirRecord: z }; + }, + bDt = function (e, t, r, n, a) { + var o = '', + s = _1.transformTo('string', a(n)); + return ( + (o = c7.CENTRAL_DIRECTORY_END + '\0\0\0\0' + Lt(e, 2) + Lt(e, 2) + Lt(t, 4) + Lt(r, 4) + Lt(s.length, 2) + s), o + ); + }, + _Dt = function (e) { + var t = ''; + return (t = c7.DATA_DESCRIPTOR + Lt(e.crc32, 4) + Lt(e.compressedSize, 4) + Lt(e.uncompressedSize, 4)), t; + }; + function rs(e, t, r, n) { + w1.call(this, 'ZipFileWorker'), + (this.bytesWritten = 0), + (this.zipComment = t), + (this.zipPlatform = r), + (this.encodeFileName = n), + (this.streamFiles = e), + (this.accumulate = !1), + (this.contentBuffer = []), + (this.dirRecords = []), + (this.currentSourceOffset = 0), + (this.entriesCount = 0), + (this.currentFile = null), + (this._sources = []); + } + _1.inherits(rs, w1); + rs.prototype.push = function (e) { + var t = e.meta.percent || 0, + r = this.entriesCount, + n = this._sources.length; + this.accumulate + ? this.contentBuffer.push(e) + : ((this.bytesWritten += e.data.length), + w1.prototype.push.call(this, { + data: e.data, + meta: { currentFile: this.currentFile, percent: r ? (t + 100 * (r - n - 1)) / r : 100 }, + })); + }; + rs.prototype.openedSource = function (e) { + (this.currentSourceOffset = this.bytesWritten), (this.currentFile = e.file.name); + var t = this.streamFiles && !e.file.dir; + if (t) { + var r = CCe(e, t, !1, this.currentSourceOffset, this.zipPlatform, this.encodeFileName); + this.push({ data: r.fileRecord, meta: { percent: 0 } }); + } else this.accumulate = !0; + }; + rs.prototype.closedSource = function (e) { + this.accumulate = !1; + var t = this.streamFiles && !e.file.dir, + r = CCe(e, t, !0, this.currentSourceOffset, this.zipPlatform, this.encodeFileName); + if ((this.dirRecords.push(r.dirRecord), t)) this.push({ data: _Dt(e), meta: { percent: 100 } }); + else + for (this.push({ data: r.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) + this.push(this.contentBuffer.shift()); + this.currentFile = null; + }; + rs.prototype.flush = function () { + for (var e = this.bytesWritten, t = 0; t < this.dirRecords.length; t++) + this.push({ data: this.dirRecords[t], meta: { percent: 100 } }); + var r = this.bytesWritten - e, + n = bDt(this.dirRecords.length, r, e, this.zipComment, this.encodeFileName); + this.push({ data: n, meta: { percent: 100 } }); + }; + rs.prototype.prepareNextSource = function () { + (this.previous = this._sources.shift()), + this.openedSource(this.previous.streamInfo), + this.isPaused ? this.previous.pause() : this.previous.resume(); + }; + rs.prototype.registerPrevious = function (e) { + this._sources.push(e); + var t = this; + return ( + e.on('data', function (r) { + t.processChunk(r); + }), + e.on('end', function () { + t.closedSource(t.previous.streamInfo), t._sources.length ? t.prepareNextSource() : t.end(); + }), + e.on('error', function (r) { + t.error(r); + }), + this + ); + }; + rs.prototype.resume = function () { + if (!w1.prototype.resume.call(this)) return !1; + if (!this.previous && this._sources.length) return this.prepareNextSource(), !0; + if (!this.previous && !this._sources.length && !this.generatedError) return this.end(), !0; + }; + rs.prototype.error = function (e) { + var t = this._sources; + if (!w1.prototype.error.call(this, e)) return !1; + for (var r = 0; r < t.length; r++) + try { + t[r].error(e); + } catch {} + return !0; + }; + rs.prototype.lock = function () { + w1.prototype.lock.call(this); + for (var e = this._sources, t = 0; t < e.length; t++) e[t].lock(); + }; + kCe.exports = rs; +}); +var PCe = d((ICe) => { + 'use strict'; + var wDt = HM(), + SDt = ACe(), + EDt = function (e, t) { + var r = e || t, + n = wDt[r]; + if (!n) throw new Error(r + ' is not a valid compression method !'); + return n; + }; + ICe.generateWorker = function (e, t, r) { + var n = new SDt(t.streamFiles, r, t.platform, t.encodeFileName), + a = 0; + try { + e.forEach(function (o, s) { + a++; + var l = EDt(s.options.compression, t.compression), + u = s.options.compressionOptions || t.compressionOptions || {}, + p = s.dir, + c = s.date; + s._compressWorker(l, u) + .withStreamInfo('file', { + name: o, + dir: p, + date: c, + comment: s.comment || '', + unixPermissions: s.unixPermissions, + dosPermissions: s.dosPermissions, + }) + .pipe(n); + }), + (n.entriesCount = a); + } catch (o) { + n.error(o); + } + return n; + }; +}); +var jCe = d((Ssr, RCe) => { + 'use strict'; + var xDt = fr(), + d7 = wa(); + function s6(e, t) { + d7.call(this, 'Nodejs stream input adapter for ' + e), (this._upstreamEnded = !1), this._bindStream(t); + } + xDt.inherits(s6, d7); + s6.prototype._bindStream = function (e) { + var t = this; + (this._stream = e), + e.pause(), + e + .on('data', function (r) { + t.push({ data: r, meta: { percent: 0 } }); + }) + .on('error', function (r) { + t.isPaused ? (this.generatedError = r) : t.error(r); + }) + .on('end', function () { + t.isPaused ? (t._upstreamEnded = !0) : t.end(); + }); + }; + s6.prototype.pause = function () { + return d7.prototype.pause.call(this) ? (this._stream.pause(), !0) : !1; + }; + s6.prototype.resume = function () { + return d7.prototype.resume.call(this) ? (this._upstreamEnded ? this.end() : this._stream.resume(), !0) : !1; + }; + RCe.exports = s6; +}); +var VCe = d((Esr, BCe) => { + 'use strict'; + var ODt = l1(), + l6 = fr(), + FCe = wa(), + TDt = QL(), + LCe = ZL(), + DCe = H5(), + CDt = NOe(), + kDt = PCe(), + NCe = F2(), + ADt = jCe(), + MCe = function (e, t, r) { + var n = l6.getTypeOf(t), + a, + o = l6.extend(r || {}, LCe); + (o.date = o.date || new Date()), + o.compression !== null && (o.compression = o.compression.toUpperCase()), + typeof o.unixPermissions == 'string' && (o.unixPermissions = parseInt(o.unixPermissions, 8)), + o.unixPermissions && o.unixPermissions & 16384 && (o.dir = !0), + o.dosPermissions && o.dosPermissions & 16 && (o.dir = !0), + o.dir && (e = UCe(e)), + o.createFolders && (a = IDt(e)) && $Ce.call(this, a, !0); + var s = n === 'string' && o.binary === !1 && o.base64 === !1; + (!r || typeof r.binary > 'u') && (o.binary = !s); + var l = t instanceof DCe && t.uncompressedSize === 0; + (l || o.dir || !t || t.length === 0) && + ((o.base64 = !1), (o.binary = !0), (t = ''), (o.compression = 'STORE'), (n = 'string')); + var u = null; + t instanceof DCe || t instanceof FCe + ? (u = t) + : NCe.isNode && NCe.isStream(t) + ? (u = new ADt(e, t)) + : (u = l6.prepareContent(e, t, o.binary, o.optimizedBinaryString, o.base64)); + var p = new CDt(e, u, o); + this.files[e] = p; + }, + IDt = function (e) { + e.slice(-1) === '/' && (e = e.substring(0, e.length - 1)); + var t = e.lastIndexOf('/'); + return t > 0 ? e.substring(0, t) : ''; + }, + UCe = function (e) { + return e.slice(-1) !== '/' && (e += '/'), e; + }, + $Ce = function (e, t) { + return ( + (t = typeof t < 'u' ? t : LCe.createFolders), + (e = UCe(e)), + this.files[e] || MCe.call(this, e, null, { dir: !0, createFolders: t }), + this.files[e] + ); + }; + function qCe(e) { + return Object.prototype.toString.call(e) === '[object RegExp]'; + } + var PDt = { + load: function () { + throw new Error('This method has been removed in JSZip 3.0, please check the upgrade guide.'); + }, + forEach: function (e) { + var t, r, n; + for (t in this.files) + (n = this.files[t]), + (r = t.slice(this.root.length, t.length)), + r && t.slice(0, this.root.length) === this.root && e(r, n); + }, + filter: function (e) { + var t = []; + return ( + this.forEach(function (r, n) { + e(r, n) && t.push(n); + }), + t + ); + }, + file: function (e, t, r) { + if (arguments.length === 1) + if (qCe(e)) { + var n = e; + return this.filter(function (o, s) { + return !s.dir && n.test(o); + }); + } else { + var a = this.files[this.root + e]; + return a && !a.dir ? a : null; + } + else (e = this.root + e), MCe.call(this, e, t, r); + return this; + }, + folder: function (e) { + if (!e) return this; + if (qCe(e)) + return this.filter(function (a, o) { + return o.dir && e.test(a); + }); + var t = this.root + e, + r = $Ce.call(this, t), + n = this.clone(); + return (n.root = r.name), n; + }, + remove: function (e) { + e = this.root + e; + var t = this.files[e]; + if ((t || (e.slice(-1) !== '/' && (e += '/'), (t = this.files[e])), t && !t.dir)) delete this.files[e]; + else + for ( + var r = this.filter(function (a, o) { + return o.name.slice(0, e.length) === e; + }), + n = 0; + n < r.length; + n++ + ) + delete this.files[r[n].name]; + return this; + }, + generate: function () { + throw new Error('This method has been removed in JSZip 3.0, please check the upgrade guide.'); + }, + generateInternalStream: function (e) { + var t, + r = {}; + try { + if ( + ((r = l6.extend(e || {}, { + streamFiles: !1, + compression: 'STORE', + compressionOptions: null, + type: '', + platform: 'DOS', + comment: null, + mimeType: 'application/zip', + encodeFileName: ODt.utf8encode, + })), + (r.type = r.type.toLowerCase()), + (r.compression = r.compression.toUpperCase()), + r.type === 'binarystring' && (r.type = 'string'), + !r.type) + ) + throw new Error('No output type specified.'); + l6.checkSupport(r.type), + (r.platform === 'darwin' || r.platform === 'freebsd' || r.platform === 'linux' || r.platform === 'sunos') && + (r.platform = 'UNIX'), + r.platform === 'win32' && (r.platform = 'DOS'); + var n = r.comment || this.comment || ''; + t = kDt.generateWorker(this, r, n); + } catch (a) { + (t = new FCe('error')), t.error(a); + } + return new TDt(t, r.type || 'string', r.mimeType); + }, + generateAsync: function (e, t) { + return this.generateInternalStream(e).accumulate(t); + }, + generateNodeStream: function (e, t) { + return (e = e || {}), e.type || (e.type = 'nodebuffer'), this.generateInternalStream(e).toNodejsStream(t); + }, + }; + BCe.exports = PDt; +}); +var KM = d((xsr, HCe) => { + 'use strict'; + var RDt = fr(); + function zCe(e) { + (this.data = e), (this.length = e.length), (this.index = 0), (this.zero = 0); + } + zCe.prototype = { + checkOffset: function (e) { + this.checkIndex(this.index + e); + }, + checkIndex: function (e) { + if (this.length < this.zero + e || e < 0) + throw new Error( + 'End of data reached (data length = ' + this.length + ', asked index = ' + e + '). Corrupted zip ?' + ); + }, + setIndex: function (e) { + this.checkIndex(e), (this.index = e); + }, + skip: function (e) { + this.setIndex(this.index + e); + }, + byteAt: function () {}, + readInt: function (e) { + var t = 0, + r; + for (this.checkOffset(e), r = this.index + e - 1; r >= this.index; r--) t = (t << 8) + this.byteAt(r); + return (this.index += e), t; + }, + readString: function (e) { + return RDt.transformTo('string', this.readData(e)); + }, + readData: function () {}, + lastIndexOfSignature: function () {}, + readAndCheckSignature: function () {}, + readDate: function () { + var e = this.readInt(4); + return new Date( + Date.UTC( + ((e >> 25) & 127) + 1980, + ((e >> 21) & 15) - 1, + (e >> 16) & 31, + (e >> 11) & 31, + (e >> 5) & 63, + (e & 31) << 1 + ) + ); + }, + }; + HCe.exports = zCe; +}); +var XM = d((Osr, WCe) => { + 'use strict'; + var GCe = KM(), + jDt = fr(); + function S1(e) { + GCe.call(this, e); + for (var t = 0; t < this.data.length; t++) e[t] = e[t] & 255; + } + jDt.inherits(S1, GCe); + S1.prototype.byteAt = function (e) { + return this.data[this.zero + e]; + }; + S1.prototype.lastIndexOfSignature = function (e) { + for ( + var t = e.charCodeAt(0), r = e.charCodeAt(1), n = e.charCodeAt(2), a = e.charCodeAt(3), o = this.length - 4; + o >= 0; + --o + ) + if (this.data[o] === t && this.data[o + 1] === r && this.data[o + 2] === n && this.data[o + 3] === a) + return o - this.zero; + return -1; + }; + S1.prototype.readAndCheckSignature = function (e) { + var t = e.charCodeAt(0), + r = e.charCodeAt(1), + n = e.charCodeAt(2), + a = e.charCodeAt(3), + o = this.readData(4); + return t === o[0] && r === o[1] && n === o[2] && a === o[3]; + }; + S1.prototype.readData = function (e) { + if ((this.checkOffset(e), e === 0)) return []; + var t = this.data.slice(this.zero + this.index, this.zero + this.index + e); + return (this.index += e), t; + }; + WCe.exports = S1; +}); +var JCe = d((Tsr, XCe) => { + 'use strict'; + var KCe = KM(), + DDt = fr(); + function E1(e) { + KCe.call(this, e); + } + DDt.inherits(E1, KCe); + E1.prototype.byteAt = function (e) { + return this.data.charCodeAt(this.zero + e); + }; + E1.prototype.lastIndexOfSignature = function (e) { + return this.data.lastIndexOf(e) - this.zero; + }; + E1.prototype.readAndCheckSignature = function (e) { + var t = this.readData(4); + return e === t; + }; + E1.prototype.readData = function (e) { + this.checkOffset(e); + var t = this.data.slice(this.zero + this.index, this.zero + this.index + e); + return (this.index += e), t; + }; + XCe.exports = E1; +}); +var YM = d((Csr, QCe) => { + 'use strict'; + var YCe = XM(), + NDt = fr(); + function JM(e) { + YCe.call(this, e); + } + NDt.inherits(JM, YCe); + JM.prototype.readData = function (e) { + if ((this.checkOffset(e), e === 0)) return new Uint8Array(0); + var t = this.data.subarray(this.zero + this.index, this.zero + this.index + e); + return (this.index += e), t; + }; + QCe.exports = JM; +}); +var tke = d((ksr, eke) => { + 'use strict'; + var ZCe = YM(), + qDt = fr(); + function QM(e) { + ZCe.call(this, e); + } + qDt.inherits(QM, ZCe); + QM.prototype.readData = function (e) { + this.checkOffset(e); + var t = this.data.slice(this.zero + this.index, this.zero + this.index + e); + return (this.index += e), t; + }; + eke.exports = QM; +}); +var ZM = d((Asr, ike) => { + 'use strict'; + var f7 = fr(), + rke = vu(), + FDt = XM(), + LDt = JCe(), + MDt = tke(), + UDt = YM(); + ike.exports = function (e) { + var t = f7.getTypeOf(e); + return ( + f7.checkSupport(t), + t === 'string' && !rke.uint8array + ? new LDt(e) + : t === 'nodebuffer' + ? new MDt(e) + : rke.uint8array + ? new UDt(f7.transformTo('uint8array', e)) + : new FDt(f7.transformTo('array', e)) + ); + }; +}); +var ske = d((Isr, oke) => { + 'use strict'; + var eU = ZM(), + lc = fr(), + $Dt = H5(), + nke = z5(), + m7 = l1(), + h7 = HM(), + BDt = vu(), + VDt = 0, + zDt = 3, + HDt = function (e) { + for (var t in h7) if (Object.prototype.hasOwnProperty.call(h7, t) && h7[t].magic === e) return h7[t]; + return null; + }; + function ake(e, t) { + (this.options = e), (this.loadOptions = t); + } + ake.prototype = { + isEncrypted: function () { + return (this.bitFlag & 1) === 1; + }, + useUTF8: function () { + return (this.bitFlag & 2048) === 2048; + }, + readLocalPart: function (e) { + var t, r; + if ( + (e.skip(22), + (this.fileNameLength = e.readInt(2)), + (r = e.readInt(2)), + (this.fileName = e.readData(this.fileNameLength)), + e.skip(r), + this.compressedSize === -1 || this.uncompressedSize === -1) + ) + throw new Error( + "Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)" + ); + if (((t = HDt(this.compressionMethod)), t === null)) + throw new Error( + 'Corrupted zip : compression ' + + lc.pretty(this.compressionMethod) + + ' unknown (inner file : ' + + lc.transformTo('string', this.fileName) + + ')' + ); + this.decompressed = new $Dt( + this.compressedSize, + this.uncompressedSize, + this.crc32, + t, + e.readData(this.compressedSize) + ); + }, + readCentralPart: function (e) { + (this.versionMadeBy = e.readInt(2)), + e.skip(2), + (this.bitFlag = e.readInt(2)), + (this.compressionMethod = e.readString(2)), + (this.date = e.readDate()), + (this.crc32 = e.readInt(4)), + (this.compressedSize = e.readInt(4)), + (this.uncompressedSize = e.readInt(4)); + var t = e.readInt(2); + if ( + ((this.extraFieldsLength = e.readInt(2)), + (this.fileCommentLength = e.readInt(2)), + (this.diskNumberStart = e.readInt(2)), + (this.internalFileAttributes = e.readInt(2)), + (this.externalFileAttributes = e.readInt(4)), + (this.localHeaderOffset = e.readInt(4)), + this.isEncrypted()) + ) + throw new Error('Encrypted zip are not supported'); + e.skip(t), + this.readExtraFields(e), + this.parseZIP64ExtraField(e), + (this.fileComment = e.readData(this.fileCommentLength)); + }, + processAttributes: function () { + (this.unixPermissions = null), (this.dosPermissions = null); + var e = this.versionMadeBy >> 8; + (this.dir = !!(this.externalFileAttributes & 16)), + e === VDt && (this.dosPermissions = this.externalFileAttributes & 63), + e === zDt && (this.unixPermissions = (this.externalFileAttributes >> 16) & 65535), + !this.dir && this.fileNameStr.slice(-1) === '/' && (this.dir = !0); + }, + parseZIP64ExtraField: function () { + if (this.extraFields[1]) { + var e = eU(this.extraFields[1].value); + this.uncompressedSize === lc.MAX_VALUE_32BITS && (this.uncompressedSize = e.readInt(8)), + this.compressedSize === lc.MAX_VALUE_32BITS && (this.compressedSize = e.readInt(8)), + this.localHeaderOffset === lc.MAX_VALUE_32BITS && (this.localHeaderOffset = e.readInt(8)), + this.diskNumberStart === lc.MAX_VALUE_32BITS && (this.diskNumberStart = e.readInt(4)); + } + }, + readExtraFields: function (e) { + var t = e.index + this.extraFieldsLength, + r, + n, + a; + for (this.extraFields || (this.extraFields = {}); e.index + 4 < t; ) + (r = e.readInt(2)), + (n = e.readInt(2)), + (a = e.readData(n)), + (this.extraFields[r] = { id: r, length: n, value: a }); + e.setIndex(t); + }, + handleUTF8: function () { + var e = BDt.uint8array ? 'uint8array' : 'array'; + if (this.useUTF8()) + (this.fileNameStr = m7.utf8decode(this.fileName)), (this.fileCommentStr = m7.utf8decode(this.fileComment)); + else { + var t = this.findExtraFieldUnicodePath(); + if (t !== null) this.fileNameStr = t; + else { + var r = lc.transformTo(e, this.fileName); + this.fileNameStr = this.loadOptions.decodeFileName(r); + } + var n = this.findExtraFieldUnicodeComment(); + if (n !== null) this.fileCommentStr = n; + else { + var a = lc.transformTo(e, this.fileComment); + this.fileCommentStr = this.loadOptions.decodeFileName(a); + } + } + }, + findExtraFieldUnicodePath: function () { + var e = this.extraFields[28789]; + if (e) { + var t = eU(e.value); + return t.readInt(1) !== 1 || nke(this.fileName) !== t.readInt(4) + ? null + : m7.utf8decode(t.readData(e.length - 5)); + } + return null; + }, + findExtraFieldUnicodeComment: function () { + var e = this.extraFields[25461]; + if (e) { + var t = eU(e.value); + return t.readInt(1) !== 1 || nke(this.fileComment) !== t.readInt(4) + ? null + : m7.utf8decode(t.readData(e.length - 5)); + } + return null; + }, + }; + oke.exports = ake; +}); +var pke = d((Psr, uke) => { + 'use strict'; + var GDt = ZM(), + Eu = fr(), + is = GM(), + WDt = ske(), + KDt = vu(); + function lke(e) { + (this.files = []), (this.loadOptions = e); + } + lke.prototype = { + checkSignature: function (e) { + if (!this.reader.readAndCheckSignature(e)) { + this.reader.index -= 4; + var t = this.reader.readString(4); + throw new Error( + 'Corrupted zip or bug: unexpected signature (' + Eu.pretty(t) + ', expected ' + Eu.pretty(e) + ')' + ); + } + }, + isSignature: function (e, t) { + var r = this.reader.index; + this.reader.setIndex(e); + var n = this.reader.readString(4), + a = n === t; + return this.reader.setIndex(r), a; + }, + readBlockEndOfCentral: function () { + (this.diskNumber = this.reader.readInt(2)), + (this.diskWithCentralDirStart = this.reader.readInt(2)), + (this.centralDirRecordsOnThisDisk = this.reader.readInt(2)), + (this.centralDirRecords = this.reader.readInt(2)), + (this.centralDirSize = this.reader.readInt(4)), + (this.centralDirOffset = this.reader.readInt(4)), + (this.zipCommentLength = this.reader.readInt(2)); + var e = this.reader.readData(this.zipCommentLength), + t = KDt.uint8array ? 'uint8array' : 'array', + r = Eu.transformTo(t, e); + this.zipComment = this.loadOptions.decodeFileName(r); + }, + readBlockZip64EndOfCentral: function () { + (this.zip64EndOfCentralSize = this.reader.readInt(8)), + this.reader.skip(4), + (this.diskNumber = this.reader.readInt(4)), + (this.diskWithCentralDirStart = this.reader.readInt(4)), + (this.centralDirRecordsOnThisDisk = this.reader.readInt(8)), + (this.centralDirRecords = this.reader.readInt(8)), + (this.centralDirSize = this.reader.readInt(8)), + (this.centralDirOffset = this.reader.readInt(8)), + (this.zip64ExtensibleData = {}); + for (var e = this.zip64EndOfCentralSize - 44, t = 0, r, n, a; t < e; ) + (r = this.reader.readInt(2)), + (n = this.reader.readInt(4)), + (a = this.reader.readData(n)), + (this.zip64ExtensibleData[r] = { id: r, length: n, value: a }); + }, + readBlockZip64EndOfCentralLocator: function () { + if ( + ((this.diskWithZip64CentralDirStart = this.reader.readInt(4)), + (this.relativeOffsetEndOfZip64CentralDir = this.reader.readInt(8)), + (this.disksCount = this.reader.readInt(4)), + this.disksCount > 1) + ) + throw new Error('Multi-volumes zip are not supported'); + }, + readLocalFiles: function () { + var e, t; + for (e = 0; e < this.files.length; e++) + (t = this.files[e]), + this.reader.setIndex(t.localHeaderOffset), + this.checkSignature(is.LOCAL_FILE_HEADER), + t.readLocalPart(this.reader), + t.handleUTF8(), + t.processAttributes(); + }, + readCentralDir: function () { + var e; + for (this.reader.setIndex(this.centralDirOffset); this.reader.readAndCheckSignature(is.CENTRAL_FILE_HEADER); ) + (e = new WDt({ zip64: this.zip64 }, this.loadOptions)), e.readCentralPart(this.reader), this.files.push(e); + if (this.centralDirRecords !== this.files.length && this.centralDirRecords !== 0 && this.files.length === 0) + throw new Error( + 'Corrupted zip or bug: expected ' + + this.centralDirRecords + + ' records in central dir, got ' + + this.files.length + ); + }, + readEndOfCentral: function () { + var e = this.reader.lastIndexOfSignature(is.CENTRAL_DIRECTORY_END); + if (e < 0) { + var t = !this.isSignature(0, is.LOCAL_FILE_HEADER); + throw t + ? new Error( + "Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html" + ) + : new Error("Corrupted zip: can't find end of central directory"); + } + this.reader.setIndex(e); + var r = e; + if ( + (this.checkSignature(is.CENTRAL_DIRECTORY_END), + this.readBlockEndOfCentral(), + this.diskNumber === Eu.MAX_VALUE_16BITS || + this.diskWithCentralDirStart === Eu.MAX_VALUE_16BITS || + this.centralDirRecordsOnThisDisk === Eu.MAX_VALUE_16BITS || + this.centralDirRecords === Eu.MAX_VALUE_16BITS || + this.centralDirSize === Eu.MAX_VALUE_32BITS || + this.centralDirOffset === Eu.MAX_VALUE_32BITS) + ) { + if (((this.zip64 = !0), (e = this.reader.lastIndexOfSignature(is.ZIP64_CENTRAL_DIRECTORY_LOCATOR)), e < 0)) + throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator"); + if ( + (this.reader.setIndex(e), + this.checkSignature(is.ZIP64_CENTRAL_DIRECTORY_LOCATOR), + this.readBlockZip64EndOfCentralLocator(), + !this.isSignature(this.relativeOffsetEndOfZip64CentralDir, is.ZIP64_CENTRAL_DIRECTORY_END) && + ((this.relativeOffsetEndOfZip64CentralDir = this.reader.lastIndexOfSignature( + is.ZIP64_CENTRAL_DIRECTORY_END + )), + this.relativeOffsetEndOfZip64CentralDir < 0)) + ) + throw new Error("Corrupted zip: can't find the ZIP64 end of central directory"); + this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir), + this.checkSignature(is.ZIP64_CENTRAL_DIRECTORY_END), + this.readBlockZip64EndOfCentral(); + } + var n = this.centralDirOffset + this.centralDirSize; + this.zip64 && ((n += 20), (n += 12 + this.zip64EndOfCentralSize)); + var a = r - n; + if (a > 0) this.isSignature(r, is.CENTRAL_FILE_HEADER) || (this.reader.zero = a); + else if (a < 0) throw new Error('Corrupted zip: missing ' + Math.abs(a) + ' bytes.'); + }, + prepareReader: function (e) { + this.reader = GDt(e); + }, + load: function (e) { + this.prepareReader(e), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles(); + }, + }; + uke.exports = lke; +}); +var fke = d((Rsr, dke) => { + 'use strict'; + var tU = fr(), + g7 = a1(), + XDt = l1(), + JDt = pke(), + YDt = rM(), + cke = F2(); + function QDt(e) { + return new g7.Promise(function (t, r) { + var n = e.decompressed.getContentWorker().pipe(new YDt()); + n.on('error', function (a) { + r(a); + }) + .on('end', function () { + n.streamInfo.crc32 !== e.decompressed.crc32 ? r(new Error('Corrupted zip : CRC32 mismatch')) : t(); + }) + .resume(); + }); + } + dke.exports = function (e, t) { + var r = this; + return ( + (t = tU.extend(t || {}, { + base64: !1, + checkCRC32: !1, + optimizedBinaryString: !1, + createFolders: !1, + decodeFileName: XDt.utf8decode, + })), + cke.isNode && cke.isStream(e) + ? g7.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) + : tU + .prepareContent('the loaded zip file', e, !0, t.optimizedBinaryString, t.base64) + .then(function (n) { + var a = new JDt(t); + return a.load(n), a; + }) + .then(function (a) { + var o = [g7.Promise.resolve(a)], + s = a.files; + if (t.checkCRC32) for (var l = 0; l < s.length; l++) o.push(QDt(s[l])); + return g7.Promise.all(o); + }) + .then(function (a) { + for (var o = a.shift(), s = o.files, l = 0; l < s.length; l++) { + var u = s[l], + p = u.fileNameStr, + c = tU.resolve(u.fileNameStr); + r.file(c, u.decompressed, { + binary: !0, + optimizedBinaryString: !0, + date: u.date, + dir: u.dir, + comment: u.fileCommentStr.length ? u.fileCommentStr : null, + unixPermissions: u.unixPermissions, + dosPermissions: u.dosPermissions, + createFolders: t.createFolders, + }), + u.dir || (r.file(c).unsafeOriginalName = p); + } + return o.zipComment.length && (r.comment = o.zipComment), r; + }) + ); + }; +}); +var hke = d((jsr, mke) => { + 'use strict'; + function po() { + if (!(this instanceof po)) return new po(); + if (arguments.length) + throw new Error('The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.'); + (this.files = Object.create(null)), + (this.comment = null), + (this.root = ''), + (this.clone = function () { + var e = new po(); + for (var t in this) typeof this[t] != 'function' && (e[t] = this[t]); + return e; + }); + } + po.prototype = VCe(); + po.prototype.loadAsync = fke(); + po.support = vu(); + po.defaults = ZL(); + po.version = '3.10.1'; + po.loadAsync = function (e, t) { + return new po().loadAsync(e, t); + }; + po.external = a1(); + mke.exports = po; +}); +var wNt = {}; +Q7(wNt, { + AuthInfo: () => ot, + AuthRemover: () => E7, + CometClient: () => c6, + Config: () => Kr, + ConfigAggregator: () => Sr, + ConfigFile: () => Wr, + Connection: () => yn, + DefaultUserFields: () => T7, + DeviceOauthService: () => A7, + EnvVars: () => qp, + EnvironmentVariable: () => oN, + Global: () => Oe, + Lifecycle: () => He, + Logger: () => le, + LoggerLevel: () => ug, + Messages: () => ee, + Mode: () => Qh, + MyDomainResolver: () => Bo, + OAuth2Config: () => Kke.OAuth2Config, + ORG_CONFIG_ALLOWED_PROPERTIES: () => E9, + Org: () => rn, + OrgConfigProperties: () => su, + OrgTypes: () => oU, + OrgUsersConfig: () => sf, + PermissionSetAssignment: () => C1, + PollingClient: () => Un, + REQUIRED_FIELDS: () => on, + SFDX_ALLOWED_PROPERTIES: () => GN, + SFDX_HTTP_HEADERS: () => Ws, + SF_ALLOWED_PROPERTIES: () => HN, + SUPPORTED_ENV_VARS: () => US, + SandboxEvents: () => sU, + SandboxRequestCache: () => I7, + SchemaPrinter: () => P7, + SchemaValidator: () => yf, + ScratchOrgCache: () => Qs, + SfConfigProperties: () => zN, + SfError: () => Q, + SfProject: () => Xg, + SfProjectJson: () => Hn, + SfdcUrl: () => _e, + SfdxPropertyKeys: () => x9, + StateAggregator: () => rr, + StreamingClient: () => A1, + TTLConfig: () => jp, + User: () => C7, + WebOAuthServer: () => Ys, + accessTokenRegex: () => hS, + envVars: () => E8e, + findUpperCaseKeys: () => mS, + getJwtAudienceUrl: () => Bke, + getLoginAudienceCombos: () => dS, + isInternalUrl: () => y8t, + matchesAccessToken: () => sg, + scratchOrgCreate: () => S7, + scratchOrgLifecycleEventName: () => AF, + scratchOrgLifecycleStages: () => IEe, + scratchOrgResume: () => kke, + sfdxAuthUrlRegex: () => ND, + trimTo15: () => Kd, + validateApiVersion: () => Xd, + validateEmail: () => v8t, + validatePathDoesNotContainInvalidChars: () => b8t, + validateSalesforceId: () => DD, +}); +module.exports = Zn(wNt); +var xc = W(require('fs')), + v$ = W(require('os')), + An = W(require('path')), + y$ = W(require('util')), + us = W(Be()), + ls = W(qe()); +Ut(); +var EE = (e, t) => `${e}:${t}`, + CPe = /^\s*$/g, + kPe = /^#\s*/gm, + APe = /^[*-]\s+|^ {2}/, + IPe = /^[*-]\s+/gm, + PPe = (e, t) => { + let r = new Map(), + n = (o) => !CPe.exec(o), + a = t.split(kPe).filter(n); + for (let o of a) { + let s = o.split(` +`), + l = s.shift(), + u = s + .join( + ` +` + ) + .trim(); + if (l && u.length > 0) { + let p = l.trim(); + if (s.filter((f) => !!f.trim()).every((f) => APe.exec(f))) { + let h = u + .split(IPe) + .filter(n) + .map((m) => + m + .split( + ` +` + ) + .filter((v) => !!v.trim()) + .map((v) => v.trim()).join(` +`) + ); + r.set(p, h); + } else r.set(p, u); + } else + throw new Error(`Invalid markdown message file: ${e} +The line "# " must be immediately followed by the message on a new line.`); + } + return r; + }, + RPe = (e, t) => { + let r; + try { + if (((r = JSON.parse(t)), !(0, us.isObject)(r))) + throw new Error(`Unexpected token. Found returned content type '${typeof r}'.`); + } catch (n) { + let a = n; + if (a.message.startsWith('Unexpected token')) { + let o = new Error(`Invalid JSON content in message file: ${e} +${a.message}`); + throw ((o.name = a.name), o); + } + throw n; + } + return new Map(Object.entries(r)); + }, + ee = class e { + constructor(t, r, n) { + this.messages = n; + (this.bundleName = t), (this.locale = r); + } + static { + this.loaders = new Map(); + } + static { + this.bundles = new Map(); + } + static { + this.readFile = (t) => require(t); + } + static getLocale() { + return 'en_US'; + } + static setLoaderFunction(t, r, n) { + this.loaders.set(EE(t, r), n); + } + static generateFileLoaderFunction(t, r) { + let n = An.extname(r); + if (!['.json', '.js', '.md'].includes(n)) + throw new Error(`Only json, js and md message files are allowed, not ${n}: ${r}`); + return (a) => { + let o, s; + if ( + (n === '.md' + ? ((o = xc.readFileSync(r, 'utf-8')), (s = PPe)) + : ((o = JSON.stringify(e.readFile(r))), (o === 'null' || o === '""') && (o = ''), (s = RPe)), + !o || o.trim().length === 0) + ) { + let u = new Error(`Invalid message file: ${r}. No content.`); + throw ((u.name = 'SfError'), u); + } + let l = s(r, o); + return new e(t, a, l); + }; + } + static importMessageFile(t, r) { + let n = An.basename(r, An.extname(r)); + e.isCached(t, n) || this.setLoaderFunction(t, n, e.generateFileLoaderFunction(n, r)); + } + static importMessagesDirectory(t, r = !0, n) { + let a = t, + o = t; + if (!An.isAbsolute(t)) throw new Error('Invalid module path. Relative URLs are not allowed.'); + for (; o.length >= 0; ) + try { + xc.statSync(An.join(o, 'package.json')); + break; + } catch (s) { + if (s.code !== 'ENOENT') throw s; + o = o.substring(0, o.lastIndexOf(An.sep)); + } + if ((r && (a = o), !n)) { + let s = `Invalid or missing package.json file at '${a}'. If not using a package.json, pass in a packageName.`; + try { + if (((n = (0, us.asString)((0, us.ensureJsonMap)(e.readFile(An.join(a, 'package.json'))).name)), !n)) + throw new ls.NamedError('MissingPackageName', s); + } catch (l) { + throw new ls.NamedError('MissingPackageName', s, l); + } + } + a += `${An.sep}messages`; + for (let s of xc.readdirSync(a)) { + let l = An.join(a, s), + u = xc.statSync(l); + u && (u.isDirectory() || (u.isFile() && this.importMessageFile(n, l))); + } + } + static loadMessages(t, r) { + let n = EE(t, r), + a; + if (this.isCached(t, r)) a = this.bundles.get(n); + else if (this.loaders.has(n)) { + let o = this.loaders.get(n); + o && ((a = o(e.getLocale())), this.bundles.set(n, a), (a = this.bundles.get(n))); + } + if (a) return a; + throw new ls.NamedError('MissingBundleError', `Missing bundle ${n} for locale ${e.getLocale()}.`); + } + static isCached(t, r) { + return this.bundles.has(EE(t, r)); + } + getMessage(t, r = []) { + return this.getMessageWithMap(t, r, this.messages).join(v$.EOL); + } + getMessages(t, r = []) { + return this.getMessageWithMap(t, r, this.messages); + } + createError(t, r = [], n = [], a, o) { + let { + message: s, + name: l, + actions: u, + } = this.formatMessageContents({ type: 'error', key: t, tokens: r, actionTokens: n }); + return new Q(s, l, u, a, o); + } + createWarning(t, r = [], n = []) { + return this.formatMessageContents({ type: 'warning', key: t, tokens: r, actionTokens: n }); + } + createInfo(t, r = [], n = []) { + return this.formatMessageContents({ type: 'info', key: t, tokens: r, actionTokens: n }); + } + formatMessageContents({ type: t, key: r, tokens: n = [], actionTokens: a = [], preserveName: o = !1 }) { + let s = (0, ls.upperFirst)(t), + l = new RegExp(`${s}$`), + u = t === 'error' ? /^error.*\./ : new RegExp(`^${t}.`), + p = `${(0, ls.upperFirst)(r.replace(u, ''))}${l.exec(r) || o ? '' : s}`, + c = this.getMessage(r, n), + f; + try { + f = this.getMessageWithMap(`${r}.actions`, a, this.messages); + } catch {} + return { message: c, name: p, actions: f }; + } + getMessageWithMap(t, r = [], n) { + let a = RegExp(/([a-zA-Z0-9_-]+)\.(.*)/).exec(t); + if (a) { + let l = a[1], + u = a[2], + p = n.get(l); + if (p && (0, us.isJsonMap)(p)) { + let c = new Map(Object.entries(p)); + return this.getMessageWithMap(u, r, c); + } + } + let o = n.get(t); + if (!o) + throw new ls.NamedError( + 'MissingMessageError', + `Missing message ${this.bundleName}:${t} for locale ${e.getLocale()}.` + ); + return (0, ls.ensureArray)(o).map((l) => ((0, us.ensureString)(l), y$.format(l, ...r))); + } + }; +var Kke = W(nb()); +var si = W(require('fs')), + XD = require('fs'), + JD = require('os'), + fg = require('path'), + F3e = W(Be()), + YD = W(qe()); +Yi(); +Nt(); +Ut(); +var MD = W(require('fs')), + cg = require('path'); +ee.importMessagesDirectory(__dirname); +var _3e = ee.loadMessages('@salesforce/core', 'config'), + _S = 'sfdx-project.json'; +async function wS(e = process.cwd()) { + let t = await bS.forFile(e, _S); + if (!t) throw _3e.createError('invalidProjectWorkspace'); + return t; +} +function SS(e = process.cwd()) { + let t = bS.forFileSync(e, _S); + if (!t) throw _3e.createError('invalidProjectWorkspace'); + return t; +} +var bS = { + forFile: async (e, t) => { + let r; + try { + MD.statSync((0, cg.join)(e, t)), (r = e); + } catch (n) { + if (n && n.code === 'ENOENT') { + let a = (0, cg.resolve)(e, '..'); + a !== e && (r = await bS.forFile(a, t)); + } + } + return r; + }, + forFileSync: (e, t) => { + let r; + try { + MD.statSync((0, cg.join)(e, t)), (r = e); + } catch (n) { + if (n && n.code === 'ENOENT') { + let a = (0, cg.resolve)(e, '..'); + a !== e && (r = bS.forFileSync(a, t)); + } + } + return r; + }, +}; +var Yd = W(qe()), + KD = W(Be()), + ga = W(Be()); +var Jd = W(require('crypto')), + WD = W(require('os')), + q3e = require('path'), + xb = W(Be()), + Ob = W(qe()); +Nt(); +var dg = class e extends Map { + static #e; + static #t = !0; + #r; + #i; + constructor() { + super(), (this.#r = 0), (this.#i = 0); + } + static get hits() { + return e.instance().#r; + } + static get lookups() { + return e.instance().#i; + } + static instance() { + return e.#e || ((e.#t = !0), (e.#e = new e())), e.#e; + } + static set(t, r) { + e.#t && e.instance().set(t, r); + } + static get(t) { + if (e.#t) return e.instance().#i++, (e.instance().#r += e.instance().has(t) ? 1 : 0), e.#e.get(t); + } + static disable() { + e.#t = !1; + } + static enable() { + e.#t = !0; + } +}; +Yi(); +var C3e = W(qe()); +Nt(); +var UD = W(require('child_process')), + w3e = W(require('fs')), + ha = W(require('fs')), + zD = W(require('os')), + O3e = require('os'), + zs = W(require('path')), + Sb = W(Be()), + T3e = W(qe()); +Yi(); +ee.importMessagesDirectory(__dirname); +var wi = ee.loadMessages('@salesforce/core', 'encryption'), + S3e = 3, + wb = (e) => e.join(' '), + E3e = (e, t, r) => + process.platform === 'win32' + ? !0 + : !!( + e & parseInt('0001', 8) || + (e & parseInt('0010', 8) && process.getgid && t === process.getgid()) || + (e & parseInt('0100', 8) && process.getuid && r === process.getuid()) + ), + $D = async (e, t, r) => { + let n; + try { + let a = t.statSync(e); + n = !r(a.mode, a.gid, a.uid); + } catch { + throw wi.createError('missingCredentialProgramError', [e]); + } + if (n) throw wi.createError('credentialProgramAccessError', [e]); + }, + ES = class { + constructor(t, r) { + this.osImpl = t; + this.fsIfc = r; + } + async validateProgram() { + await $D(this.osImpl.getProgram(), this.fsIfc, E3e); + } + async getPassword(t, r, n = 0) { + if (t.service == null) { + r(wi.createError('keyChainServiceRequiredError')); + return; + } + if (t.account == null) { + r(wi.createError('keyChainAccountRequiredError')); + return; + } + await this.validateProgram(); + let a = this.osImpl.getCommandFunc(t, UD.spawn), + o = '', + s = ''; + a.stdout && + a.stdout.on('data', (l) => { + o += l; + }), + a.stderr && + a.stderr.on('data', (l) => { + s += l; + }), + a.on('close', async (l) => { + try { + return await this.osImpl.onGetCommandClose(l, o, s, t, r); + } catch (u) { + if (u.retry) { + if (n >= S3e) throw wi.createError('passwordRetryError', [S3e]); + return this.getPassword(t, r, n + 1); + } else throw u; + } + }), + a.stdin && a.stdin.end(); + } + async setPassword(t, r) { + if (t.service == null) { + r(wi.createError('keyChainServiceRequiredError')); + return; + } + if (t.account == null) { + r(wi.createError('keyChainAccountRequiredError')); + return; + } + if (t.password == null) { + r(wi.createError('passwordRequiredError')); + return; + } + await $D(this.osImpl.getProgram(), this.fsIfc, E3e); + let n = this.osImpl.setCommandFunc(t, UD.spawn), + a = '', + o = ''; + n.stdout && + n.stdout.on('data', (s) => { + a += s; + }), + n.stderr && + n.stderr.on('data', (s) => { + o += s; + }), + n.on('close', async (s) => this.osImpl.onSetCommandClose(s, a, o, t, r)), + n.stdin && n.stdin.end(); + } + }, + au = { + getProgram() { + return process.env.SFDX_SECRET_TOOL_PATH ?? zs.join(zs.sep, 'usr', 'bin', 'secret-tool'); + }, + getProgramOptions(e) { + return ['lookup', 'user', e.account, 'domain', e.service]; + }, + getCommandFunc(e, t) { + return t(au.getProgram(), au.getProgramOptions(e)); + }, + async onGetCommandClose(e, t, r, n, a) { + if (e === 1) { + let o = `${au.getProgram()} ${wb(au.getProgramOptions(n))}`, + s = wi.createError('passwordNotFoundError', [], [o]); + if (r?.includes('invalid or unencryptable secret')) throw ((s.retry = !0), s); + a(s); + } else a(null, t.trim()); + }, + setProgramOptions(e) { + return ['store', "--label='salesforce.com'", 'user', e.account, 'domain', e.service]; + }, + setCommandFunc(e, t) { + let r = t(au.getProgram(), au.setProgramOptions(e)); + return ( + r.stdin && + r.stdin.write(`${e.password} +`), + r + ); + }, + async onSetCommandClose(e, t, r, n, a) { + if (e !== 0) { + let o = `${au.getProgram()} ${wb(au.setProgramOptions(n))}`; + a(wi.createError('setCredentialError', [`${t} - ${r}`], [zD.userInfo().username, o])); + } else a(null); + }, + }, + zo = { + getProgram() { + return zs.join(zs.sep, 'usr', 'bin', 'security'); + }, + getProgramOptions(e) { + return ['find-generic-password', '-a', e.account, '-s', e.service, '-g']; + }, + getCommandFunc(e, t) { + return t(zo.getProgram(), zo.getProgramOptions(e)); + }, + async onGetCommandClose(e, t, r, n, a) { + let o; + if (e !== 0) { + switch (e) { + case 128: { + o = wi.createError('keyChainUserCanceledError'); + break; + } + default: { + let s = `${zo.getProgram()} ${wb(zo.getProgramOptions(n))}`; + o = wi.createError('passwordNotFoundError', [`${t} - ${r}`], [s]); + } + } + a(o); + return; + } + if (r.includes('password')) { + let s = RegExp(/"(.*)"/).exec(r); + s?.[1] ? a(null, s[1]) : a(wi.createError('passwordNotFoundError', [`${t} - ${r}`])); + } else { + let s = `${zo.getProgram()} ${wb(zo.getProgramOptions(n))}`; + a(wi.createError('passwordNotFoundError', [`${t} - ${r}`], [s])); + } + }, + setProgramOptions(e) { + let t = ['add-generic-password', '-a', e.account, '-s', e.service]; + return e.password && t.push('-w', e.password), t; + }, + setCommandFunc(e, t) { + return t(zo.getProgram(), zo.setProgramOptions(e)); + }, + async onSetCommandClose(e, t, r, n, a) { + if (e !== 0) { + let o = `${zo.getProgram()} ${wb(zo.setProgramOptions(n))}`; + a(wi.createError('setCredentialError', [`${t} - ${r}`], [zD.userInfo().username, o])); + } else a(null); + }, + }, + Eb = () => zs.join(Oe.DIR, 'key.json'); +async function x3e(e, t) { + try { + let r = { account: e.account, key: e.password, service: e.service }, + n = Eb(); + await ha.promises.mkdir(zs.dirname(n), { recursive: !0 }), + await ha.promises.writeFile(n, JSON.stringify(r, null, 4), { mode: '600' }), + t(null, r); + } catch (r) { + t(r); + } +} +async function D8t() { + let e = (0, T3e.parseJsonMap)(await ha.promises.readFile(Eb(), 'utf8')); + return { + account: (0, Sb.ensureString)(e.account), + password: (0, Sb.asString)(e.key), + service: (0, Sb.ensureString)(e.service), + }; +} +var xS = class { + async getPassword(t, r) { + await this.isValidFileAccess(async (n) => { + if (n == null) + try { + let { service: a, account: o, password: s } = await D8t(); + t.service === a && t.account === o ? r(null, s) : r(wi.createError('genericKeychainServiceError', [Eb()])); + } catch (a) { + r(a); + } + else n.code === 'ENOENT' ? r(wi.createError('passwordNotFoundError')) : r(n); + }); + } + async setPassword(t, r) { + await this.isValidFileAccess(async (n) => { + n != null ? (n.code === 'ENOENT' ? await x3e.call(this, t, r) : r(n)) : await x3e.call(this, t, r); + }); + } + async isValidFileAccess(t) { + try { + let r = (0, O3e.homedir)(); + await ha.promises.access( + zs.join(r, Oe.SFDX_STATE_FOLDER), + ha.constants.R_OK | ha.constants.X_OK | ha.constants.W_OK + ), + await t(null); + } catch (r) { + await t(r); + } + } + }, + BD = class extends xS { + async isValidFileAccess(t) { + await super.isValidFileAccess(async (r) => { + if (r != null) await t(r); + else { + let n = Eb(), + o = ((await ha.promises.stat(n)).mode & 511).toString(8), + s = '600'; + o === s ? await t(null) : t(wi.createError('genericKeychainInvalidPermsError', [n], [n, s])); + } + }); + } + }, + VD = class extends xS { + async isValidFileAccess(t) { + await super.isValidFileAccess(async (r) => { + if (r != null) await t(r); + else + try { + await ha.promises.access(Eb(), ha.constants.R_OK | ha.constants.W_OK), await t(null); + } catch (n) { + await t(n); + } + }); + } + }, + Pp = { + generic_unix: new BD(), + generic_windows: new VD(), + darwin: new ES(zo, w3e), + linux: new ES(au, w3e), + validateProgram: $D, + }; +ee.importMessagesDirectory(__dirname); +var N8t = ee.loadMessages('@salesforce/core', 'encryption'), + k3e = async (e) => { + (await le.child('keyChain')).debug(`platform: ${e}`); + let r = C3e.env.getBoolean('SF_USE_GENERIC_UNIX_KEYCHAIN'), + n = r && r; + if (e.startsWith('win')) return Pp.generic_windows; + if (e.includes('darwin')) return n ? Pp.generic_unix : Pp.darwin; + if (e.includes('linux')) { + if (n) return Pp.generic_unix; + try { + return await Pp.linux.validateProgram(), Pp.linux; + } catch { + return Pp.generic_unix; + } + } else throw N8t.createError('unsupportedOperatingSystemError', [e]); + }; +var $n = W(require('crypto')), + A3e = W(Be()), + HD = 'aes-256-cbc', + q8t = 32, + Rp = class { + constructor() { + this.key = $n.randomBytes(q8t); + this.iv = $n.randomBytes(16); + } + value(t) { + if (t) { + let r = $n.createDecipheriv(HD, this.key, this.iv), + n = r.update((0, A3e.ensure)(this.secret)), + a = r.final(), + o = Buffer.concat([n, a]); + try { + return t(o); + } finally { + $n.randomFillSync(n), $n.randomFillSync(a), $n.randomFillSync(o); + } + } + } + clear() { + this.secret && $n.randomFillSync(this.secret); + let t = $n.createCipheriv(HD, this.key, this.iv); + this.secret = Buffer.concat([t.update(Buffer.from('')), t.final()]); + } + consume(t) { + let r = t; + r || (r = Buffer.from('')); + let n = $n.createCipheriv(HD, this.key, this.iv); + (this.secret = Buffer.concat([n.update(r), n.final()])), $n.randomFillSync(r); + } + }; +var GD = ':', + OS = 6, + I3e = 'aes-256-gcm', + F8t = 32, + P3e = /[a-f0-9]/, + R3e = 'sfdx', + j3e = 'local'; +ee.importMessagesDirectory((0, q3e.join)(__dirname)); +var TS = ee.loadMessages('@salesforce/core', 'encryption'), + D3e = (e) => { + let t = new Rp(); + return t.consume(Buffer.from((0, xb.ensure)(e), 'utf8')), t; + }, + N3e = { + getPassword(e, t, r) { + let n = `${Oe.DIR}:${t}:${r}`, + a = dg.get(n); + if (a) { + let o = a.value((s) => s.toString('utf8')); + return dg.set(n, D3e(o)), new Promise((s) => s({ username: r, password: (0, xb.ensure)(o) })); + } else + return new Promise((o, s) => + e.getPassword({ service: t, account: r }, (l, u) => + l ? s(l) : (dg.set(n, D3e(u)), o({ username: r, password: (0, xb.ensure)(u) })) + ) + ); + }, + setPassword(e, t, r, n) { + return new Promise((a, o) => + e.setPassword({ service: t, account: r, password: n }, (s) => (s ? o(s) : a({ username: r, password: n }))) + ); + }, + }, + CS = class extends Ob.AsyncOptionalCreatable { + constructor(r) { + super(r); + this.key = new Rp(); + this.options = r ?? {}; + } + encrypt(r) { + if (r == null) return; + if (this.key == null) throw TS.createError('keychainPasswordCreationError'); + let n = Jd.randomBytes(OS).toString('hex'); + return this.key.value((a) => { + let o = Jd.createCipheriv(I3e, a.toString('utf8'), n), + s = o.update(r, 'utf8', 'hex'); + s += o.final('hex'); + let l = o.getAuthTag().toString('hex'); + return `${n}${s}${GD}${l}`; + }); + } + decrypt(r) { + if (r == null) return; + let n = r.split(GD); + if (n.length !== 2) throw TS.createError('invalidEncryptedFormatError'); + let a = n[1], + o = n[0].substring(0, OS * 2), + s = n[0].substring(OS * 2, n[0].length); + return this.key.value((l) => { + let u = Jd.createDecipheriv(I3e, l.toString('utf8'), o), + p; + try { + u.setAuthTag(Buffer.from(a, 'hex')), (p = u.update(s, 'hex', 'utf8')), (p += u.final('utf8')); + } catch (c) { + let f = TS.createError('authDecryptError', [c.message], [], c), + h = Ob.env.getBoolean('SF_USE_GENERIC_UNIX_KEYCHAIN') || Ob.env.getBoolean('USE_GENERIC_UNIX_KEYCHAIN'); + throw (WD.platform() === 'darwin' && !h && (f.actions = [TS.getMessage('macKeychainOutOfSync')]), f); + } + return p; + }); + } + isEncrypted(r) { + if (r == null) return !1; + let n = r.split(GD); + if (n.length !== 2) return !1; + let a = n[1], + o = n[0]; + return a.length === F8t && o.length >= OS && P3e.test(a) && P3e.test(n[0]); + } + close() { + this.noResetOnClose || this.key.clear(); + } + async init() { + let r = await le.child('crypto'); + this.options.platform || (this.options.platform = WD.platform()), + r.debug(`retryStatus: ${this.options.retryStatus}`), + (this.noResetOnClose = !!this.options.noResetOnClose); + try { + this.key.consume( + Buffer.from((await N3e.getPassword(await this.getKeyChain(this.options.platform), R3e, j3e)).password, 'utf8') + ); + } catch (n) { + if (n.name === 'PasswordNotFoundError') { + if (this.options.retryStatus === 'KEY_SET') + throw (r.debug('a key was set but the retry to get the password failed.'), n); + r.debug('password not found in keychain attempting to created one and re-init.'); + let a = Jd.randomBytes(Math.ceil(16)).toString('hex'); + return await N3e.setPassword((0, xb.ensure)(this.options.keychain), R3e, j3e, a), this.init(); + } else throw n; + } + } + async getKeyChain(r) { + return this.options.keychain || (this.options.keychain = await k3e(r)), this.options.keychain; + } + }; +Ut(); +var kS = class extends Yd.AsyncOptionalCreatable { + constructor(r) { + super(r); + this.statics = this.constructor; + (this.options = r ?? {}), this.setContents(this.initialContents()); + } + static { + this.encryptedKeys = []; + } + entries() { + return (0, ga.definiteEntriesOf)(this.contents); + } + get(r, n = !1) { + let a = r, + o = this.getMethod(this.contents, a); + return ( + this.hasEncryption() && + n && + ((0, ga.isJsonMap)(o) + ? (o = this.recursiveDecrypt((0, Yd.cloneJson)(o), a)) + : this.isCryptoKey(a) && (o = this.decrypt(o))), + o + ); + } + getKeysByValue(r) { + return this.entries() + .filter((a) => a[1] === r) + .map((a) => a[0]); + } + has(r) { + return !!this.getMethod(this.contents, r); + } + keys() { + return Object.keys(this.contents); + } + set(r, n) { + this.hasEncryption() && + ((0, ga.isJsonMap)(n) ? (n = this.recursiveEncrypt(n, r)) : this.isCryptoKey(r) && (n = this.encrypt(n))), + this.setMethod(this.contents, r, n); + } + update(r, n) { + let a = this.get(r, !0); + (0, KD.isPlainObject)(a) && (0, KD.isPlainObject)(n) && (n = Object.assign({}, a, n)), this.set(r, n); + } + unset(r) { + return this.has(r) + ? (this.contents[r] ? delete this.contents[r] : this.setMethod(this.contents, r, void 0), !0) + : !1; + } + unsetAll(r) { + return r.reduce((n, a) => n && this.unset(a), !0); + } + clear() { + this.contents = {}; + } + values() { + return (0, ga.definiteValuesOf)(this.contents); + } + getContents(r = !1) { + return ( + this.contents || this.setContents(), + this.hasEncryption() && r ? this.recursiveDecrypt((0, Yd.cloneJson)(this.contents)) : this.contents + ); + } + setContents(r = {}) { + this.hasEncryption() && (r = this.recursiveEncrypt(r)), (this.contents = r); + } + forEach(r) { + let n = this.entries(); + for (let a of n) r(a[0], a[1]); + } + async awaitEach(r) { + let n = this.entries(); + for (let a of n) await r(a[0], a[1]); + } + toObject() { + return this.contents; + } + setContentsFromObject(r) { + (this.contents = this.hasEncryption() ? this.recursiveEncrypt(r) : {}), + Object.entries(r).forEach(([n, a]) => { + this.setMethod(this.contents, n, a); + }); + } + getEncryptedKeys() { + return [...(this.options?.encryptedKeys ?? []), ...(this.statics?.encryptedKeys || [])]; + } + hasEncryption() { + return this.getEncryptedKeys().length > 0; + } + setMethod(r, n, a) { + (0, Yd.set)(r, n, a); + } + getMethod(r, n) { + return (0, ga.get)(r, n); + } + initialContents() { + return {}; + } + async init() { + this.hasEncryption() && (await this.initCrypto()); + } + async initCrypto() { + this.crypto || (this.crypto = await CS.create()); + } + async clearCrypto() { + this.crypto && (this.crypto.close(), delete this.crypto); + } + isCryptoKey(r) { + function n() { + let a = /\.([a-zA-Z0-9@._-]+)$/, + o = /\['([a-zA-Z0-9@._-]+)'\]$/, + s = /\["([a-zA-Z0-9@._-]+)"\]$/, + l = a.exec(r) ?? o.exec(r) ?? s.exec(r); + return l ? l[1] : r; + } + return (this.statics.encryptedKeys || []).find((a) => { + let o = n(); + return a instanceof RegExp ? a.test(o) : a === o; + }); + } + encrypt(r) { + if (r) { + if (!this.crypto) throw new Q('crypto is not initialized', 'CryptoNotInitializedError'); + if (!(0, ga.isString)(r)) + throw new Q(`can only encrypt strings but found: ${typeof r} : ${r.toString()}`, 'InvalidCryptoValueError'); + return this.crypto.isEncrypted(r) ? r : this.crypto.encrypt(r); + } + } + decrypt(r) { + if (r) { + if (!this.crypto) throw new Q('crypto is not initialized', 'CryptoNotInitializedError'); + if (!(0, ga.isString)(r)) + throw new Q(`can only encrypt strings but found: ${typeof r} : ${r.toString()}`, 'InvalidCryptoValueError'); + return this.crypto.isEncrypted(r) ? this.crypto.decrypt(r) : r; + } + } + recursiveEncrypt(r, n) { + for (let a of Object.keys(r)) this.recursiveCrypto(this.encrypt.bind(this), [...(n ? [n] : []), a], r); + return r; + } + recursiveDecrypt(r, n) { + for (let a of Object.keys(r)) this.recursiveCrypto(this.decrypt.bind(this), [...(n ? [n] : []), a], r); + return r; + } + recursiveCrypto(r, n, a) { + let o = n.pop(), + s = a[o]; + if ((0, ga.isJsonMap)(s)) for (let l of Object.keys(s)) this.recursiveCrypto(r, [...n, o, l], s); + else this.isCryptoKey(o) && (a[o] = r(s)); + } +}; +var Wr = class e extends kS { + constructor(r) { + super(r); + this.hasRead = !1; + this.logger = le.childFromRoot(this.constructor.name); + let n = this.constructor, + a = {}; + try { + a = n.getDefaultOptions(); + } catch {} + this.options = Object.assign(a, this.options); + } + static getFileName() { + throw new Q('Unknown filename for config file.'); + } + static getDefaultOptions(r = !1, n) { + return { isGlobal: r, isState: !0, filename: n ?? this.getFileName(), stateFolder: Oe.SFDX_STATE_FOLDER }; + } + static async resolveRootFolder(r) { + return r ? (0, JD.homedir)() : wS(); + } + static resolveRootFolderSync(r) { + return r ? (0, JD.homedir)() : SS(); + } + async access(r) { + try { + return await si.promises.access(this.getPath(), r), !0; + } catch { + return !1; + } + } + accessSync(r) { + try { + return si.accessSync(this.getPath(), r), !0; + } catch { + return !1; + } + } + async read(r = !1, n = !1) { + try { + if (!this.hasRead || n) { + this.logger.info(`Reading config file: ${this.getPath()}`); + let a = (0, YD.parseJsonMap)(await si.promises.readFile(this.getPath(), 'utf8'), this.getPath()); + this.setContentsFromObject(a); + } + return (this.hasRead = !0), this.getContents(); + } catch (a) { + if (((this.hasRead = !0), a.code === 'ENOENT' && !r)) return this.setContents(), this.getContents(); + throw a; + } + } + readSync(r = !1, n = !1) { + try { + if (!this.hasRead || n) { + this.logger.info(`Reading config file: ${this.getPath()}`); + let a = (0, YD.parseJsonMap)(si.readFileSync(this.getPath(), 'utf8')); + this.setContentsFromObject(a); + } + return this.getContents(); + } catch (a) { + if (a.code === 'ENOENT' && !r) return this.setContents(), this.getContents(); + throw a; + } finally { + this.hasRead = !0; + } + } + async write(r) { + r && this.setContents(r); + try { + await si.promises.mkdir((0, fg.dirname)(this.getPath()), { recursive: !0 }); + } catch (n) { + throw Q.wrap(n); + } + return ( + this.logger.info(`Writing to config file: ${this.getPath()}`), + await si.promises.writeFile(this.getPath(), JSON.stringify(this.toObject(), null, 2)), + this.getContents() + ); + } + writeSync(r) { + (0, F3e.isPlainObject)(r) && this.setContents(r); + try { + si.mkdirSync((0, fg.dirname)(this.getPath()), { recursive: !0 }); + } catch (n) { + throw Q.wrap(n); + } + return ( + this.logger.info(`Writing to config file: ${this.getPath()}`), + si.writeFileSync(this.getPath(), JSON.stringify(this.toObject(), null, 2)), + this.getContents() + ); + } + async exists() { + return this.access(XD.constants.R_OK); + } + existsSync() { + return this.accessSync(XD.constants.R_OK); + } + async stat() { + return si.promises.stat(this.getPath()); + } + statSync() { + return si.statSync(this.getPath()); + } + async unlink() { + if (await this.exists()) return si.promises.unlink(this.getPath()); + throw new Q(`Target file doesn't exist. path: ${this.getPath()}`, 'TargetFileNotFound'); + } + unlinkSync() { + if (this.existsSync()) return si.unlinkSync(this.getPath()); + throw new Q(`Target file doesn't exist. path: ${this.getPath()}`, 'TargetFileNotFound'); + } + getPath() { + if (!this.path) { + if (!this.options.filename) throw new Q('The ConfigOptions filename parameter is invalid.', 'InvalidParameter'); + let r = this.options.rootFolder ? this.options.rootFolder : e.resolveRootFolderSync(!!this.options.isGlobal); + (this.options.isGlobal === !0 || this.options.isState === !0) && + (r = (0, fg.join)(r, this.options.stateFolder ?? Oe.SFDX_STATE_FOLDER)), + (this.path = (0, fg.join)(r, this.options.filePath ? this.options.filePath : '', this.options.filename)); + } + return this.path; + } + isGlobal() { + return !!this.options.isGlobal; + } + async init() { + await super.init(), await this.read(this.options.throwOnNotFound); + } +}; +var jp = class extends Wr { + set(t, r) { + super.set(t, this.timestamp(r)); + } + getLatestEntry() { + let r = this.entries().sort(([, n], [, a]) => new Date(a.timestamp).getTime() - new Date(n.timestamp).getTime()); + return r.length > 0 ? r[0] : null; + } + getLatestKey() { + let [t] = this.getLatestEntry() ?? [null]; + return t; + } + isExpired(t, r) { + return t - new Date(r.timestamp).getTime() > this.options.ttl.milliseconds; + } + async init() { + let t = await this.read(this.options.throwOnNotFound), + r = new Date().getTime(); + this.setContents(Object.fromEntries(Object.entries(t).filter(([, n]) => !this.isExpired(r, n)))); + } + timestamp(t) { + return { ...t, timestamp: new Date().toISOString() }; + } +}; +var w8e = require('path'), + bg = W(_8e()), + S8e = W(qe()); +Ya(); +ee.importMessagesDirectory((0, w8e.join)(__dirname)); +var Cb = ee.loadMessages('@salesforce/core', 'envVars'), + oN = ((Z) => ( + (Z.FORCE_OPEN_URL = 'FORCE_OPEN_URL'), + (Z.FORCE_SHOW_SPINNER = 'FORCE_SHOW_SPINNER'), + (Z.FORCE_SPINNER_DELAY = 'FORCE_SPINNER_DELAY'), + (Z.HTTP_PROXY = 'HTTP_PROXY'), + (Z.HTTPS_PROXY = 'HTTPS_PROXY'), + (Z.NODE_EXTRA_CA_CERTS = 'NODE_EXTRA_CA_CERTS'), + (Z.NODE_TLS_REJECT_UNAUTHORIZED = 'NODE_TLS_REJECT_UNAUTHORIZED'), + (Z.SFDX_ACCESS_TOKEN = 'SFDX_ACCESS_TOKEN'), + (Z.SFDX_API_VERSION = 'SFDX_API_VERSION'), + (Z.SFDX_AUDIENCE_URL = 'SFDX_AUDIENCE_URL'), + (Z.SFDX_CODE_COVERAGE_REQUIREMENT = 'SFDX_CODE_COVERAGE_REQUIREMENT'), + (Z.SFDX_CONTENT_TYPE = 'SFDX_CONTENT_TYPE'), + (Z.SFDX_DEFAULTDEVHUBUSERNAME = 'SFDX_DEFAULTDEVHUBUSERNAME'), + (Z.SFDX_DEFAULTUSERNAME = 'SFDX_DEFAULTUSERNAME'), + (Z.SFDX_DISABLE_AUTOUPDATE = 'SFDX_DISABLE_AUTOUPDATE'), + (Z.SFDX_AUTOUPDATE_DISABLE = 'SFDX_AUTOUPDATE_DISABLE'), + (Z.SFDX_DISABLE_SOURCE_MEMBER_POLLING = 'SFDX_DISABLE_SOURCE_MEMBER_POLLING'), + (Z.SFDX_DISABLE_TELEMETRY = 'SFDX_DISABLE_TELEMETRY'), + (Z.SFDX_DNS_TIMEOUT = 'SFDX_DNS_TIMEOUT'), + (Z.SFDX_DOMAIN_RETRY = 'SFDX_DOMAIN_RETRY'), + (Z.SFDX_IMPROVED_CODE_COVERAGE = 'SFDX_IMPROVED_CODE_COVERAGE'), + (Z.SFDX_INSTANCE_URL = 'SFDX_INSTANCE_URL'), + (Z.SFDX_JSON_TO_STDOUT = 'SFDX_JSON_TO_STDOUT'), + (Z.SFDX_DISABLE_LOG_FILE = 'SFDX_DISABLE_LOG_FILE'), + (Z.SFDX_LOG_LEVEL = 'SFDX_LOG_LEVEL'), + (Z.SFDX_LOG_ROTATION_COUNT = 'SFDX_LOG_ROTATION_COUNT'), + (Z.SFDX_LOG_ROTATION_PERIOD = 'SFDX_LOG_ROTATION_PERIOD'), + (Z.SFDX_MAX_QUERY_LIMIT = 'SFDX_MAX_QUERY_LIMIT'), + (Z.SFDX_MDAPI_TEMP_DIR = 'SFDX_MDAPI_TEMP_DIR'), + (Z.SFDX_NPM_REGISTRY = 'SFDX_NPM_REGISTRY'), + (Z.SFDX_PRECOMPILE_ENABLE = 'SFDX_PRECOMPILE_ENABLE'), + (Z.SFDX_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_CREATE = 'SFDX_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_CREATE'), + (Z.SFDX_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_VERSION_CREATE = + 'SFDX_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_VERSION_CREATE'), + (Z.SFDX_REST_DEPLOY = 'SFDX_REST_DEPLOY'), + (Z.SFDX_SOURCE_MEMBER_POLLING_TIMEOUT = 'SFDX_SOURCE_MEMBER_POLLING_TIMEOUT'), + (Z.SFDX_USE_GENERIC_UNIX_KEYCHAIN = 'SFDX_USE_GENERIC_UNIX_KEYCHAIN'), + (Z.SFDX_USE_PROGRESS_BAR = 'SFDX_USE_PROGRESS_BAR'), + (Z.SFDX_LAZY_LOAD_MODULES = 'SFDX_LAZY_LOAD_MODULES'), + (Z.SFDX_S3_HOST = 'SFDX_S3_HOST'), + (Z.SFDX_UPDATE_INSTRUCTIONS = 'SFDX_UPDATE_INSTRUCTIONS'), + (Z.SFDX_INSTALLER = 'SFDX_INSTALLER'), + (Z.SFDX_ENV = 'SFDX_ENV'), + (Z.SF_TARGET_ORG = 'SF_TARGET_ORG'), + (Z.SF_TARGET_DEV_HUB = 'SF_TARGET_DEV_HUB'), + (Z.SF_ACCESS_TOKEN = 'SF_ACCESS_TOKEN'), + (Z.SF_ORG_API_VERSION = 'SF_ORG_API_VERSION'), + (Z.SF_AUDIENCE_URL = 'SF_AUDIENCE_URL'), + (Z.SF_CODE_COVERAGE_REQUIREMENT = 'SF_CODE_COVERAGE_REQUIREMENT'), + (Z.SF_CONTENT_TYPE = 'SF_CONTENT_TYPE'), + (Z.SF_DISABLE_AUTOUPDATE = 'SF_DISABLE_AUTOUPDATE'), + (Z.SF_AUTOUPDATE_DISABLE = 'SF_AUTOUPDATE_DISABLE'), + (Z.SF_DISABLE_SOURCE_MEMBER_POLLING = 'SF_DISABLE_SOURCE_MEMBER_POLLING'), + (Z.SF_DISABLE_TELEMETRY = 'SF_DISABLE_TELEMETRY'), + (Z.SF_DNS_TIMEOUT = 'SF_DNS_TIMEOUT'), + (Z.SF_DOMAIN_RETRY = 'SF_DOMAIN_RETRY'), + (Z.SF_IMPROVED_CODE_COVERAGE = 'SF_IMPROVED_CODE_COVERAGE'), + (Z.SF_ORG_INSTANCE_URL = 'SF_ORG_INSTANCE_URL'), + (Z.SF_JSON_TO_STDOUT = 'SF_JSON_TO_STDOUT'), + (Z.SF_DISABLE_LOG_FILE = 'SF_DISABLE_LOG_FILE'), + (Z.SF_LOG_LEVEL = 'SF_LOG_LEVEL'), + (Z.SF_LOG_ROTATION_COUNT = 'SF_LOG_ROTATION_COUNT'), + (Z.SF_LOG_ROTATION_PERIOD = 'SF_LOG_ROTATION_PERIOD'), + (Z.SF_ORG_MAX_QUERY_LIMIT = 'SF_ORG_MAX_QUERY_LIMIT'), + (Z.SF_MDAPI_TEMP_DIR = 'SF_MDAPI_TEMP_DIR'), + (Z.SF_NPM_REGISTRY = 'SF_NPM_REGISTRY'), + (Z.SF_PRECOMPILE_ENABLE = 'SF_PRECOMPILE_ENABLE'), + (Z.SF_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_CREATE = 'SF_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_CREATE'), + (Z.SF_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_VERSION_CREATE = + 'SF_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_VERSION_CREATE'), + (Z.SF_SOURCE_MEMBER_POLLING_TIMEOUT = 'SF_SOURCE_MEMBER_POLLING_TIMEOUT'), + (Z.SF_USE_GENERIC_UNIX_KEYCHAIN = 'SF_USE_GENERIC_UNIX_KEYCHAIN'), + (Z.SF_USE_PROGRESS_BAR = 'SF_USE_PROGRESS_BAR'), + (Z.SF_LAZY_LOAD_MODULES = 'SF_LAZY_LOAD_MODULES'), + (Z.SF_S3_HOST = 'SF_S3_HOST'), + (Z.SF_UPDATE_INSTRUCTIONS = 'SF_UPDATE_INSTRUCTIONS'), + (Z.SF_INSTALLER = 'SF_INSTALLER'), + (Z.SF_ENV = 'SF_ENV'), + Z + ))(oN || {}), + ne = (e) => Cb.getMessage((0, bg.camelCase)(e)), + US = { + FORCE_SHOW_SPINNER: { description: ne('FORCE_SHOW_SPINNER'), synonymOf: null }, + FORCE_SPINNER_DELAY: { description: ne('FORCE_SPINNER_DELAY'), synonymOf: null }, + FORCE_OPEN_URL: { description: ne('FORCE_OPEN_URL'), synonymOf: null }, + HTTP_PROXY: { description: ne('HTTP_PROXY'), synonymOf: null }, + HTTPS_PROXY: { description: ne('HTTPS_PROXY'), synonymOf: null }, + NODE_EXTRA_CA_CERTS: { description: ne('NODE_EXTRA_CA_CERTS'), synonymOf: null }, + NODE_TLS_REJECT_UNAUTHORIZED: { description: ne('NODE_TLS_REJECT_UNAUTHORIZED'), synonymOf: null }, + SFDX_ACCESS_TOKEN: { description: ne('SFDX_ACCESS_TOKEN'), synonymOf: 'SF_ACCESS_TOKEN' }, + SFDX_API_VERSION: { description: ne('SFDX_API_VERSION'), synonymOf: 'SF_ORG_API_VERSION' }, + SFDX_AUDIENCE_URL: { description: ne('SFDX_AUDIENCE_URL'), synonymOf: 'SF_AUDIENCE_URL' }, + SFDX_CODE_COVERAGE_REQUIREMENT: { + description: ne('SFDX_CODE_COVERAGE_REQUIREMENT'), + synonymOf: 'SF_CODE_COVERAGE_REQUIREMENT', + }, + SFDX_CONTENT_TYPE: { description: ne('SFDX_CONTENT_TYPE'), synonymOf: 'SF_CONTENT_TYPE' }, + SFDX_DEFAULTDEVHUBUSERNAME: { description: ne('SFDX_DEFAULTDEVHUBUSERNAME'), synonymOf: 'SF_TARGET_DEV_HUB' }, + SFDX_DEFAULTUSERNAME: { description: ne('SFDX_DEFAULTUSERNAME'), synonymOf: 'SF_TARGET_ORG' }, + SFDX_DISABLE_AUTOUPDATE: { description: ne('SFDX_DISABLE_AUTOUPDATE'), synonymOf: 'SF_DISABLE_AUTOUPDATE' }, + SFDX_AUTOUPDATE_DISABLE: { description: ne('SFDX_AUTOUPDATE_DISABLE'), synonymOf: 'SF_AUTOUPDATE_DISABLE' }, + SFDX_DISABLE_SOURCE_MEMBER_POLLING: { + description: ne('SFDX_DISABLE_SOURCE_MEMBER_POLLING'), + synonymOf: 'SF_DISABLE_SOURCE_MEMBER_POLLING', + }, + SFDX_DISABLE_TELEMETRY: { description: ne('SFDX_DISABLE_TELEMETRY'), synonymOf: 'SF_DISABLE_TELEMETRY' }, + SFDX_DNS_TIMEOUT: { description: ne('SFDX_DNS_TIMEOUT'), synonymOf: 'SF_DNS_TIMEOUT' }, + SFDX_DOMAIN_RETRY: { description: ne('SFDX_DOMAIN_RETRY'), synonymOf: 'SF_DOMAIN_RETRY' }, + SFDX_IMPROVED_CODE_COVERAGE: { + description: ne('SFDX_IMPROVED_CODE_COVERAGE'), + synonymOf: 'SF_IMPROVED_CODE_COVERAGE', + }, + SFDX_INSTANCE_URL: { description: ne('SFDX_INSTANCE_URL'), synonymOf: 'SF_ORG_INSTANCE_URL' }, + SFDX_JSON_TO_STDOUT: { description: ne('SFDX_JSON_TO_STDOUT'), synonymOf: 'SF_JSON_TO_STDOUT' }, + SFDX_DISABLE_LOG_FILE: { description: ne('SFDX_DISABLE_LOG_FILE'), synonymOf: 'SF_DISABLE_LOG_FILE' }, + SFDX_LOG_LEVEL: { description: ne('SFDX_LOG_LEVEL'), synonymOf: 'SF_LOG_LEVEL' }, + SFDX_LOG_ROTATION_COUNT: { description: ne('SFDX_LOG_ROTATION_COUNT'), synonymOf: 'SF_LOG_ROTATION_COUNT' }, + SFDX_LOG_ROTATION_PERIOD: { description: ne('SFDX_LOG_ROTATION_PERIOD'), synonymOf: 'SF_LOG_ROTATION_PERIOD' }, + SFDX_MAX_QUERY_LIMIT: { description: ne('SFDX_MAX_QUERY_LIMIT'), synonymOf: 'SF_ORG_MAX_QUERY_LIMIT' }, + SFDX_MDAPI_TEMP_DIR: { description: ne('SFDX_MDAPI_TEMP_DIR'), synonymOf: 'SF_MDAPI_TEMP_DIR' }, + SFDX_NPM_REGISTRY: { description: ne('SFDX_NPM_REGISTRY'), synonymOf: 'SF_NPM_REGISTRY' }, + SFDX_PRECOMPILE_ENABLE: { description: ne('SFDX_PRECOMPILE_ENABLE'), synonymOf: 'SF_PRECOMPILE_ENABLE' }, + SFDX_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_CREATE: { + description: ne('SFDX_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_CREATE'), + synonymOf: 'SF_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_CREATE', + }, + SFDX_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_VERSION_CREATE: { + description: Cb.getMessage((0, bg.camelCase)('SFDX_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_VERSION_CREATE')), + synonymOf: 'SF_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_VERSION_CREATE', + }, + SFDX_REST_DEPLOY: { description: ne('SFDX_REST_DEPLOY'), synonymOf: 'SF_ORG_METADATA_REST_DEPLOY' }, + SFDX_SOURCE_MEMBER_POLLING_TIMEOUT: { + description: ne('SFDX_SOURCE_MEMBER_POLLING_TIMEOUT'), + synonymOf: 'SF_SOURCE_MEMBER_POLLING_TIMEOUT', + }, + SFDX_USE_GENERIC_UNIX_KEYCHAIN: { + description: ne('SFDX_USE_GENERIC_UNIX_KEYCHAIN'), + synonymOf: 'SF_USE_GENERIC_UNIX_KEYCHAIN', + }, + SFDX_USE_PROGRESS_BAR: { description: ne('SFDX_USE_PROGRESS_BAR'), synonymOf: 'SF_USE_PROGRESS_BAR' }, + SFDX_LAZY_LOAD_MODULES: { description: ne('SFDX_USE_PROGRESS_BAR'), synonymOf: 'SF_LAZY_LOAD_MODULES' }, + SFDX_S3_HOST: { description: ne('SFDX_S3_HOST'), synonymOf: 'SF_S3_HOST' }, + SFDX_UPDATE_INSTRUCTIONS: { description: ne('SFDX_UPDATE_INSTRUCTIONS'), synonymOf: null }, + SFDX_INSTALLER: { description: ne('SFDX_INSTALLER'), synonymOf: null }, + SFDX_ENV: { description: ne('SFDX_ENV'), synonymOf: null }, + SF_TARGET_ORG: { description: ne('SF_TARGET_ORG'), synonymOf: null }, + SF_TARGET_DEV_HUB: { description: ne('SF_TARGET_DEV_HUB'), synonymOf: null }, + SF_ACCESS_TOKEN: { description: ne('SF_ACCESS_TOKEN'), synonymOf: null }, + SF_ORG_API_VERSION: { description: ne('SF_ORG_API_VERSION'), synonymOf: null }, + SF_AUDIENCE_URL: { description: ne('SF_AUDIENCE_URL'), synonymOf: null }, + SF_CODE_COVERAGE_REQUIREMENT: { description: ne('SF_CODE_COVERAGE_REQUIREMENT'), synonymOf: null }, + SF_CONTENT_TYPE: { description: ne('SF_CONTENT_TYPE'), synonymOf: null }, + SF_DISABLE_AUTOUPDATE: { description: ne('SF_DISABLE_AUTOUPDATE'), synonymOf: null }, + SF_AUTOUPDATE_DISABLE: { description: ne('SF_AUTOUPDATE_DISABLE'), synonymOf: null }, + SF_DISABLE_SOURCE_MEMBER_POLLING: { description: ne('SF_DISABLE_SOURCE_MEMBER_POLLING'), synonymOf: null }, + SF_DISABLE_TELEMETRY: { description: ne('SF_DISABLE_TELEMETRY'), synonymOf: null }, + SF_DNS_TIMEOUT: { description: ne('SF_DNS_TIMEOUT'), synonymOf: null }, + SF_DOMAIN_RETRY: { description: ne('SF_DOMAIN_RETRY'), synonymOf: null }, + SF_IMPROVED_CODE_COVERAGE: { description: ne('SF_IMPROVED_CODE_COVERAGE'), synonymOf: null }, + SF_ORG_INSTANCE_URL: { description: ne('SF_ORG_INSTANCE_URL'), synonymOf: null }, + SF_JSON_TO_STDOUT: { description: ne('SF_JSON_TO_STDOUT'), synonymOf: null }, + SF_DISABLE_LOG_FILE: { description: ne('SF_DISABLE_LOG_FILE'), synonymOf: null }, + SF_LOG_LEVEL: { description: ne('SF_LOG_LEVEL'), synonymOf: null }, + SF_LOG_ROTATION_COUNT: { description: ne('SF_LOG_ROTATION_COUNT'), synonymOf: null }, + SF_LOG_ROTATION_PERIOD: { description: ne('SF_LOG_ROTATION_PERIOD'), synonymOf: null }, + SF_ORG_MAX_QUERY_LIMIT: { description: ne('SF_ORG_MAX_QUERY_LIMIT'), synonymOf: null }, + SF_MDAPI_TEMP_DIR: { description: ne('SF_MDAPI_TEMP_DIR'), synonymOf: null }, + SF_NPM_REGISTRY: { description: ne('SF_NPM_REGISTRY'), synonymOf: null }, + SF_PRECOMPILE_ENABLE: { description: ne('SF_PRECOMPILE_ENABLE'), synonymOf: null }, + SF_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_CREATE: { + description: ne('SF_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_CREATE'), + synonymOf: null, + }, + SF_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_VERSION_CREATE: { + description: Cb.getMessage((0, bg.camelCase)('SF_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_VERSION_CREATE')), + synonymOf: null, + }, + SF_SOURCE_MEMBER_POLLING_TIMEOUT: { description: ne('SF_SOURCE_MEMBER_POLLING_TIMEOUT'), synonymOf: null }, + SF_USE_GENERIC_UNIX_KEYCHAIN: { description: ne('SF_USE_GENERIC_UNIX_KEYCHAIN'), synonymOf: null }, + SF_USE_PROGRESS_BAR: { description: ne('SF_USE_PROGRESS_BAR'), synonymOf: null }, + SF_LAZY_LOAD_MODULES: { description: ne('SF_LAZY_LOAD_MODULES'), synonymOf: null }, + SF_S3_HOST: { description: ne('SF_S3_HOST'), synonymOf: null }, + SF_UPDATE_INSTRUCTIONS: { description: ne('SF_UPDATE_INSTRUCTIONS'), synonymOf: null }, + SF_INSTALLER: { description: ne('SF_INSTALLER'), synonymOf: null }, + SF_ENV: { description: ne('SF_ENV'), synonymOf: null }, + }, + qp = class e extends S8e.Env { + constructor(t = process.env) { + super(t), this.resolve(); + } + static propertyToEnvName(t, r = e.defaultPrefix()) { + return `${r || ''}${(0, bg.snakeCase)(t).toUpperCase()}`; + } + static defaultPrefix() { + return 'SF_'; + } + getPropertyFromEnv(t, r = e.defaultPrefix()) { + let n = e.propertyToEnvName(t, r); + return this.get(n); + } + asDictionary() { + return Object.fromEntries(this.entries()); + } + asMap() { + return new Map(this.entries()); + } + resolve() { + let t = new Map(); + this.entries().forEach(([r, n]) => { + if (US[r]?.synonymOf) { + let a = US[r].synonymOf; + if (a) { + let o = this.getString(a); + o + ? o !== n && + (He.getInstance().emitWarning(Cb.getMessage('deprecatedEnvDisagreement', [r, a, a])), t.set(r, o ?? n)) + : (He.getInstance().emitWarning(Cb.getMessage('deprecatedEnv', [r, a])), t.set(a, n)); + } + } + }), + t.forEach((r, n) => { + this.setString(n, r); + }); + } + get(t) { + return this.asMap().get(t); + } + }, + E8e = new qp(); +var sN = W(require('fs')), + x8e = W(require('path')), + BS = W(qe()); +var kb = class extends Wr { + static { + this.encryptedKeys = [/token/i, /password/i, /secret/i]; + } + static getOptions(t) { + return { isGlobal: !0, isState: !0, filename: `${t}.json` }; + } +}; +Yi(); +Nt(); +Ya(); +function DSt(e, t) { + let r = []; + for (let n = 0, a = e.length; n < a; n += t) r.push(e.slice(n, n + t)); + return r; +} +var Ab = class extends BS.AsyncOptionalCreatable { + constructor() { + super(...arguments); + this.configs = new Map(); + this.contents = new Map(); + } + async read(r, n = !1, a = !0) { + try { + let o = await this.initAuthFile(r, a); + return this.configs.set(r, o), this.get(r, n); + } catch (o) { + if (o instanceof Error && o.name === 'JsonParseError') throw o; + return null; + } + } + async readAll(r = !1) { + let n = DSt(await this.getAllFiles(), 50); + for (let a of n) { + let o = a.map(async (s) => { + let l = this.parseUsername(s); + try { + let u = await this.initAuthFile(l); + this.configs.set(l, u); + } catch { + await He.getInstance().emitWarning(`The auth file for ${l} is invalid.`); + } + }); + await Promise.all(o); + } + return this.getAll(r); + } + get(r, n = !1, a = !1) { + let o = this.configs.get(r); + if (a && o?.keys().length === 0) + throw ( + (ee.importMessagesDirectory(__dirname), + ee.loadMessages('@salesforce/core', 'core').createError('namedOrgNotFound', [r])) + ); + return o && this.contents.set(r, o.getContents(n)), this.contents.get(r); + } + getAll(r = !1) { + return [...this.configs.keys()].map((n) => this.get(n, r)).filter((n) => !(0, BS.isEmpty)(n)); + } + has(r) { + return this.contents.has(r); + } + async exists(r) { + let n = this.configs.get(r); + return n ? n.exists() : !1; + } + async stat(r) { + let n = this.configs.get(r); + return n ? n.stat() : null; + } + async hasFile(r) { + try { + return await sN.promises.access(this.parseFilename(r)), !0; + } catch { + return this.logger.debug(`No auth file found for ${r}`), !1; + } + } + async list() { + return this.getAllFiles(); + } + set(r, n) { + let a = this.configs.get(r); + if (a) { + a.setContentsFromObject(n); + let o = a.getContents(); + (o.username ??= r), this.contents.set(r, o); + } else (n.username ??= r), this.contents.set(r, n); + } + update(r, n) { + let a = this.get(r) || {}, + o = Object.assign({}, a, n); + return this.set(r, o); + } + async remove(r) { + await this.configs.get(r)?.unlink(), this.configs.delete(r), this.contents.delete(r); + } + async write(r) { + let n = this.configs.get(r); + if (n) return await n.write(); + { + let a = this.contents.get(r) ?? {}; + await this.read(r, !1, !1); + let o = this.configs.get(r); + return o.setContentsFromObject(a), await o.write(); + } + } + async init() { + this.logger = await le.child(this.constructor.name); + } + async getAllFiles() { + let r = this.getFileRegex(); + try { + return (await sN.promises.readdir(Oe.DIR)).filter((n) => r.test(n)); + } catch { + return []; + } + } + parseUsername(r) { + return r.replace(this.getFileExtension(), ''); + } + parseFilename(r) { + return x8e.join(Oe.DIR, `${r}${this.getFileExtension()}`); + } + }, + $S = class extends Ab { + async initAuthFile(t, r = !1) { + return kb.create({ ...kb.getOptions(t), throwOnNotFound: r }); + } + getFileRegex() { + return /^[^.][^@]*@[^.]+(\.[^.\s]+)+\.json$/; + } + getFileExtension() { + return '.json'; + } + }; +var t9 = require('node:path'), + oSe = require('node:os'), + Og = require('node:fs/promises'), + r9 = require('node:fs'), + Mp = W(rSe()), + i9 = W(qe()); +Yi(); +Ut(); +var sSe = 'orgs', + p9t = 'alias.json', + lSe = { stale: 1e4 }, + c9t = { ...lSe, retries: { retries: 10, maxTimeout: 1e3, factor: 2 } }, + e9 = class extends i9.AsyncOptionalCreatable { + getAll(r) { + if (r) { + let n = wN(r); + return Array.from(this.aliasStore.entries()) + .filter(([, a]) => n === a) + .map(([a]) => a); + } else return Object.fromEntries(this.aliasStore.entries()); + } + get(r) { + return this.getAll(r)[0] ?? null; + } + getValue(r) { + return this.aliasStore.get(r) ?? null; + } + getUsername(r) { + return this.aliasStore.get(r) ?? null; + } + resolveUsername(r) { + return this.getUsername(r) ?? r; + } + resolveAlias(r) { + return this.aliasStore.has(r) ? r : Array.from(this.aliasStore.entries()).find(([, n]) => n === r)?.[0]; + } + set(r, n) { + this.readFileToAliasStoreSync(), this.aliasStore.set(r, wN(n)), this.saveAliasStoreToFileSync(); + } + async setAndSave(r, n) { + return await this.readFileToAliasStore(!0), this.aliasStore.set(r, wN(n)), this.saveAliasStoreToFile(); + } + unset(r) { + this.readFileToAliasStoreSync(), this.aliasStore.delete(r), this.saveAliasStoreToFileSync(); + } + async unsetAndSave(r) { + return await this.readFileToAliasStore(!0), this.aliasStore.delete(r), this.saveAliasStoreToFile(); + } + unsetAll(r) { + this.readFileToAliasStoreSync(), + this.getAll(r).forEach((a) => this.aliasStore.delete(a)), + this.saveAliasStoreToFileSync(); + } + async unsetValuesAndSave(r) { + return ( + await this.readFileToAliasStore(!0), + (0, i9.ensureArray)(r) + .flatMap((n) => this.getAll(n)) + .map((n) => this.aliasStore.delete(n)), + this.saveAliasStoreToFile() + ); + } + async write() { + return Promise.resolve(this.getAll()); + } + has(r) { + return this.aliasStore.has(r); + } + async init() { + (this.fileLocation = d9t()), await this.readFileToAliasStore(); + } + async readFileToAliasStore(r = !1) { + r && (await (0, Mp.lock)(this.fileLocation, c9t)); + try { + this.aliasStore = iSe(await (0, Og.readFile)(this.fileLocation, 'utf-8')); + } catch (n) { + if (n instanceof Error && 'code' in n && n.code === 'ENOENT') { + (this.aliasStore = new Map()), + await (0, Og.mkdir)((0, t9.dirname)(this.fileLocation), { recursive: !0 }), + await this.saveAliasStoreToFile(); + return; + } + if (r) return aSe(this.fileLocation); + throw n; + } + } + async saveAliasStoreToFile() { + return await (0, Og.writeFile)(this.fileLocation, nSe(this.aliasStore)), aSe(this.fileLocation); + } + readFileToAliasStoreSync() { + (0, Mp.lockSync)(this.fileLocation, lSe), + (this.aliasStore = iSe((0, r9.readFileSync)(this.fileLocation, 'utf-8'))); + } + saveAliasStoreToFileSync() { + (0, r9.writeFileSync)(this.fileLocation, nSe(this.aliasStore)); + try { + (0, Mp.unlockSync)(this.fileLocation); + } catch (r) { + if (uSe(r)) return; + throw r; + } + } + }, + wN = (e) => { + if (typeof e == 'string') return e; + let t = e.username ?? e.user; + if (!t) throw new Q(`Invalid aliasee, it must contain a user or username property: ${JSON.stringify(e)}`); + return t; + }, + iSe = (e) => { + let t = JSON.parse(e); + return new Map(Object.entries(t[sSe] ?? {})); + }, + nSe = (e) => JSON.stringify({ [sSe]: Object.fromEntries(Array.from(e.entries())) }), + d9t = () => (0, t9.join)((0, oSe.homedir)(), Oe.SFDX_STATE_FOLDER, p9t), + aSe = async (e) => { + try { + await (0, Mp.unlock)(e); + } catch (t) { + if (uSe(t)) return; + throw t; + } + }, + uSe = (e) => e instanceof Error && 'code' in e && e.code === 'ENOTACQUIRED'; +var pSe = W(qe()); +var n9 = class extends Wr { + static { + this.encryptedKeys = [/token/i, /password/i, /secret/i]; + } + static getDefaultOptions() { + return { isGlobal: !0, isState: !0, filename: 'tokens.json' }; + } + getMethod(t, r) { + return t[r]; + } + setMethod(t, r, n) { + t[r] = n; + } +}; +var a9 = class extends pSe.AsyncOptionalCreatable { + getAll(r = !1) { + return this.config.getContents(r) || {}; + } + get(r, n = !1) { + return this.config.get(r, n); + } + has(r) { + return !!this.getAll()[r]; + } + set(r, n) { + this.config.set(r, n); + } + update(r, n) { + this.config.update(r, n); + } + unset(r) { + this.config.unset(r); + } + async write() { + return this.config.write(); + } + async init() { + this.config = await n9.create(); + } +}; +var cSe = W(qe()); +Yi(); +Yi(); +var nf = class extends Wr { + constructor(t) { + super(t); + } + static getOptions(t) { + return { isGlobal: !0, isState: !0, filename: `${t}.sandbox.json`, orgId: t, stateFolder: Oe.SFDX_STATE_FOLDER }; + } +}; +((t) => { + let e; + ((n) => (n.PROD_ORG_USERNAME = 'prodOrgUsername'))((e = t.Fields ||= {})); +})((nf ||= {})); +var o9 = class extends Ab { + async initAuthFile(t, r = !1) { + return nf.create({ ...nf.getOptions(t), throwOnNotFound: r }); + } + getFileRegex() { + return /^(00D.*?)\.sandbox\.json$/; + } + getFileExtension() { + return '.sandbox.json'; + } +}; +var rr = class e extends cSe.AsyncOptionalCreatable { + static { + this.instanceMap = new Map(); + } + static async getInstance() { + return e.instanceMap.has(Oe.DIR) || e.instanceMap.set(Oe.DIR, await e.create()), e.instanceMap.get(Oe.DIR); + } + static clearInstance(r = Oe.DIR) { + e.instanceMap.delete(r); + } + async init() { + (this.orgs = await $S.create()), + (this.sandboxes = await o9.create()), + (this.aliases = await e9.create()), + (this.tokens = await a9.create()); + } +}; +var Uke = W(_v()), + k1 = W(qe()), + k7 = W(Be()), + dU = W(yv()); +Nt(); +var Ake = require('crypto'), + uU = require('path'), + Ike = W(require('os')), + Pke = W(require('fs')), + xa = W(qe()), + Ge = W(Be()), + T1 = W(nb()), + p6 = W(_v()), + Rke = W(Y9e()); +var Lb = require('path'), + Mb = W(require('fs')), + Rg = W(qe()), + Gs = W(Be()); +Yi(); +Nt(); +Vs(); +Vo(); +var Q9e = require('path'), + Fb = W(Be()); +Vo(); +Vs(); +ee.importMessagesDirectory((0, Q9e.join)(__dirname)); +var ya = ee.loadMessages('@salesforce/core', 'config'), + su = ((u) => ( + (u.TARGET_ORG = 'target-org'), + (u.TARGET_DEV_HUB = 'target-dev-hub'), + (u.ORG_API_VERSION = 'org-api-version'), + (u.ORG_CUSTOM_METADATA_TEMPLATES = 'org-custom-metadata-templates'), + (u.ORG_MAX_QUERY_LIMIT = 'org-max-query-limit'), + (u.ORG_INSTANCE_URL = 'org-instance-url'), + (u.ORG_ISV_DEBUGGER_SID = 'org-isv-debugger-sid'), + (u.ORG_ISV_DEBUGGER_URL = 'org-isv-debugger-url'), + u + ))(su || {}), + E9 = [ + { key: 'org-custom-metadata-templates', description: ya.getMessage('org-custom-metadata-templates') }, + { key: 'target-org', description: ya.getMessage('target-org') }, + { key: 'target-dev-hub', description: ya.getMessage('target-dev-hub') }, + { + key: 'org-instance-url', + description: ya.getMessage('org-instance-url'), + input: { + validator: (e) => + e == null + ? !0 + : (0, Fb.isString)(e) && _e.isValidUrl(e) && (new _e(e).isSalesforceDomain() || new _e(e).isInternalUrl()), + failedMessage: ya.getMessage('invalidInstanceUrl'), + }, + }, + { + key: 'org-api-version', + description: ya.getMessage('org-api-version'), + hidden: !0, + input: { + validator: (e) => e == null || ((0, Fb.isString)(e) && Xd(e)), + failedMessage: ya.getMessage('invalidApiVersion'), + }, + }, + { + key: 'org-isv-debugger-sid', + description: ya.getMessage('org-isv-debugger-sid'), + encrypted: !0, + input: { + validator: (e) => e == null || (0, Fb.isString)(e), + failedMessage: ya.getMessage('invalidIsvDebuggerSid'), + }, + }, + { + key: 'org-isv-debugger-url', + description: ya.getMessage('org-isv-debugger-url'), + input: { + validator: (e) => e == null || (0, Fb.isString)(e), + failedMessage: ya.getMessage('invalidIsvDebuggerUrl'), + }, + }, + { + key: 'org-max-query-limit', + description: ya.getMessage('org-max-query-limit'), + input: { + validator: (e) => e >>> 0 === parseFloat(e) && e > 0, + failedMessage: ya.getMessage('invalidNumberConfigValue'), + }, + }, + ]; +Ya(); +ee.importMessagesDirectory(__dirname); +var Ft = ee.loadMessages('@salesforce/core', 'config'), + SEt = 'sfdx-config.json', + EEt = 'config.json', + zN = ((t) => ((t.DISABLE_TELEMETRY = 'disable-telemetry'), t))(zN || {}), + HN = [ + { + key: 'disable-telemetry', + description: Ft.getMessage('disable-telemetry'), + input: { + validator: (e) => e == null || ['true', 'false'].includes(e.toString()), + failedMessage: Ft.getMessage('invalidBooleanConfigValue'), + }, + }, + ], + x9 = ((c) => ( + (c.DEFAULT_DEV_HUB_USERNAME = 'defaultdevhubusername'), + (c.DEFAULT_USERNAME = 'defaultusername'), + (c.ISV_DEBUGGER_SID = 'isvDebuggerSid'), + (c.ISV_DEBUGGER_URL = 'isvDebuggerUrl'), + (c.API_VERSION = 'apiVersion'), + (c.DISABLE_TELEMETRY = 'disableTelemetry'), + (c.CUSTOM_ORG_METADATA_TEMPLATES = 'customOrgMetadataTemplates'), + (c.MAX_QUERY_LIMIT = 'maxQueryLimit'), + (c.REST_DEPLOY = 'restDeploy'), + (c.INSTANCE_URL = 'instanceUrl'), + c + ))(x9 || {}), + GN = [ + { + key: 'instanceUrl', + description: Ft.getMessage('instanceUrl'), + newKey: 'org-instance-url', + deprecated: !0, + input: { + validator: (e) => + e == null + ? !0 + : (0, Gs.isString)(e) && _e.isValidUrl(e) && (new _e(e).isSalesforceDomain() || new _e(e).isInternalUrl()), + failedMessage: Ft.getMessage('invalidInstanceUrl'), + }, + }, + { + key: 'apiVersion', + newKey: 'org-api-version', + deprecated: !0, + description: Ft.getMessage('apiVersion'), + hidden: !0, + input: { + validator: (e) => e == null || ((0, Gs.isString)(e) && Xd(e)), + failedMessage: Ft.getMessage('invalidApiVersion'), + }, + }, + { + key: 'defaultdevhubusername', + newKey: 'target-dev-hub', + deprecated: !0, + description: Ft.getMessage('defaultDevHubUsername'), + }, + { key: 'defaultusername', newKey: 'target-org', deprecated: !0, description: Ft.getMessage('defaultUsername') }, + { + key: 'isvDebuggerSid', + newKey: 'org-isv-debugger-sid', + deprecated: !0, + description: Ft.getMessage('isvDebuggerSid'), + encrypted: !0, + input: { + validator: (e) => e == null || (0, Gs.isString)(e), + failedMessage: Ft.getMessage('invalidIsvDebuggerSid'), + }, + }, + { + key: 'isvDebuggerUrl', + newKey: 'org-isv-debugger-url', + deprecated: !0, + description: Ft.getMessage('isvDebuggerUrl'), + input: { + validator: (e) => e == null || (0, Gs.isString)(e), + failedMessage: Ft.getMessage('invalidIsvDebuggerUrl'), + }, + }, + { + key: 'disableTelemetry', + newKey: 'disable-telemetry', + deprecated: !0, + description: Ft.getMessage('disableTelemetry'), + input: { + validator: (e) => e == null || ['true', 'false'].includes(e.toString()), + failedMessage: Ft.getMessage('invalidBooleanConfigValue'), + }, + }, + { + key: 'customOrgMetadataTemplates', + newKey: 'org-custom-metadata-templates', + deprecated: !0, + description: Ft.getMessage('customOrgMetadataTemplates'), + }, + { + key: 'restDeploy', + description: Ft.getMessage('restDeploy'), + hidden: !0, + newKey: 'org-metadata-rest-deploy', + deprecated: !0, + input: { + validator: (e) => e != null && ['true', 'false'].includes(e.toString()), + failedMessage: Ft.getMessage('invalidBooleanConfigValue'), + }, + }, + { + key: 'maxQueryLimit', + description: Ft.getMessage('maxQueryLimit'), + hidden: !0, + newKey: 'org-max-query-limit', + deprecated: !0, + input: { + validator: (e) => e >>> 0 === parseFloat(e) && e > 0, + failedMessage: Ft.getMessage('invalidNumberConfigValue'), + }, + }, + ]; +var Kr = class e extends Wr { + constructor(r) { + super( + Object.assign({ isGlobal: !1 }, r ?? {}, { + isState: !0, + filename: e.getFileName(), + stateFolder: Oe.SF_STATE_FOLDER, + }) + ); + this.getPath(), (this.sfdxConfig = new VN(this.options, this)); + } + static { + this.allowedProperties = [...GN, ...HN, ...E9]; + } + static getFileName() { + return EEt; + } + static getAllowedProperties() { + return e.allowedProperties; + } + static addAllowedProperties(r) { + let n = Object.keys(e.propertyConfigMap()), + a = le.childFromRoot('core:config'); + r.forEach((o) => { + if (n.includes(o.key)) { + a.info(`Key ${o.key} already exists in allowedProperties, skipping.`); + return; + } + e.allowedProperties.push(o); + }); + } + static async update(r, n, a) { + let o = await e.create({ isGlobal: r }), + s = await o.read(); + return a == null ? delete s[n] : (0, Rg.set)(s, n, a), o.write(s); + } + static async clear() { + let r = await e.create({ isGlobal: !0 }); + r.clear(), await r.write(); + let n = await e.create(); + n.clear(), await n.write(); + } + static getPropertyConfigMeta(r) { + let n = e.propertyConfigMap()[r]; + return n?.deprecated && n?.newKey ? e.propertyConfigMap()[n.newKey] : n; + } + static propertyConfigMap() { + return (0, Rg.keyBy)(e.allowedProperties, 'key'); + } + async read(r = !0) { + try { + let n = await super.read(!1, r), + a = this.sfdxConfig.merge(n); + return this.setContents(a), await this.cryptProperties(!1), this.getContents(); + } finally { + await this.clearCrypto(); + } + } + readSync(r = !0) { + let n = super.readSync(!1, r), + a = this.sfdxConfig.merge(n); + return this.setContents(a), this.getContents(); + } + async write(r) { + return ( + r != null && this.setContents(r), + await this.cryptProperties(!0), + await super.write(), + Oe.SFDX_INTEROPERABILITY && (await this.sfdxConfig.write()), + await this.cryptProperties(!1), + this.getContents() + ); + } + writeSync(r) { + throw Ft.createError('invalidWrite'); + } + set(r, n) { + let a = e.allowedProperties.find((o) => o.key === r); + if (!a) throw Ft.createError('unknownConfigKey', [r]); + if (a.deprecated && a.newKey) + return He.getInstance().emitWarning(Ft.getMessage('deprecatedConfigKey', [r, a.newKey])), this.set(a.newKey, n); + if (a.input) + if (a.input?.validator(n)) super.set(a.key, n); + else { + let o = n?.toString() ?? ''; + throw ( + (a.input.failedMessage && + (o = (0, Gs.isString)(a.input.failedMessage) ? a.input.failedMessage : a.input.failedMessage(n)), + Ft.createError('invalidConfigValue', [o])) + ); + } + else super.set(a.key, n); + return this.getContents(); + } + unset(r) { + let n = e.allowedProperties.find((a) => a.key === r); + if (!n) throw Ft.createError('unknownConfigKey', [r]); + return n.deprecated && n.newKey + ? (He.getInstance().emitWarning(Ft.getMessage('deprecatedConfigKey', [r, n.newKey])), + super.unset(n.key), + this.unset(n.newKey)) + : super.unset(n.key); + } + getPropertyConfig(r) { + let n = e.propertyConfigMap()[r]; + if (!n) { + let a = e.allowedProperties.find((o) => o.newKey); + if (a) return this.getPropertyConfig(a.key); + throw Ft.createError('unknownConfigKey', [r]); + } + return n; + } + async init() { + await super.init(); + } + async cryptProperties(r) { + if (this.entries().some(([a]) => !!e.propertyConfigMap()[a]?.encrypted)) { + await this.initCrypto(); + let a = (0, Gs.ensure)(this.crypto); + this.forEach((o, s) => { + this.getPropertyConfig(o).encrypted && + (0, Gs.isString)(s) && + this.set(o, (0, Gs.ensure)(r ? a.encrypt(s) : a.decrypt(s))); + }); + } + } + }, + VN = class { + constructor(t = {}, r) { + this.options = t; + this.config = r; + this.sfdxPath = this.getSfdxPath(); + } + merge(t) { + if (!Oe.SFDX_INTEROPERABILITY) return t; + let r = this.readSync(), + n = Object.values(x9), + a = Kr.getAllowedProperties() + .filter((o) => !n.includes(o.key)) + .map((o) => o.key); + for (let o of a) r[o] || delete t[o]; + return Object.assign(t, r); + } + async write(t = this.config.toObject()) { + try { + let r = this.translate(t, 'toOld'), + n = this.getSfdxPath(); + await Mb.promises.mkdir((0, Lb.dirname)(n), { recursive: !0 }), + await Mb.promises.writeFile(n, JSON.stringify(r, null, 2)); + } catch {} + } + readSync() { + try { + let t = (0, Rg.parseJsonMap)(Mb.readFileSync(this.getSfdxPath(), 'utf8')); + return this.translate(t, 'toNew'); + } catch { + return {}; + } + } + getSfdxPath() { + if (!this.sfdxPath) { + let t = Oe.SFDX_STATE_FOLDER, + r = SEt, + n = this.options.rootFolder ? this.options.rootFolder : Wr.resolveRootFolderSync(!!this.options.isGlobal); + (this.options.isGlobal === !0 || this.options.isState === !0) && (n = (0, Lb.join)(n, t)), + (this.sfdxPath = (0, Lb.join)(n, r)); + } + return this.sfdxPath; + } + translate(t, r) { + let n = {}; + for (let [a, o] of Object.entries(t)) { + let s = + r === 'toNew' + ? this.config.getPropertyConfig(a) + : Kr.getAllowedProperties().find((l) => l.newKey === a) ?? {}; + if (s.deprecated && s.newKey) { + let l = r === 'toNew' ? s.newKey : s.key; + n[l] = o; + } else n[a] = o; + } + return n; + } + }; +var jg = W(qe()), + O9 = W(Be()); +Ya(); +ee.importMessagesDirectory(__dirname); +var Ub = ee.loadMessages('@salesforce/core', 'config'), + Sr = class e extends jg.AsyncOptionalCreatable { + constructor(r) { + super(r ?? {}); + this.envVars = {}; + try { + this.localConfig = new Kr(Kr.getDefaultOptions(!1)); + } catch (n) { + if (n.name !== 'InvalidProjectWorkspaceError') throw n; + } + (this.globalConfig = new Kr(Kr.getDefaultOptions(!0))), this.setAllowedProperties(Kr.getAllowedProperties()); + } + static { + this.encrypted = !0; + } + get config() { + return this.resolveProperties(this.globalConfig.getContents(), this.localConfig?.getContents()); + } + static async create(r) { + let n = e.instance; + return ( + n || ((n = e.instance = new this(r)), await n.init()), + e.encrypted && (await n.loadProperties()), + r?.customConfigMeta && Kr.addAllowedProperties(r.customConfigMeta), + e.instance + ); + } + static getValue(r) { + return this.getInstance().getInfo(r); + } + static getInstance() { + return e.instance || ((e.instance = new this()), e.instance.loadPropertiesSync()), e.instance; + } + async init() { + await this.loadProperties(); + } + getPropertyValue(r) { + let n = this.getAllowedProperties().find((a) => r === a.key); + if (n?.deprecated && n.newKey) { + He.getInstance().emitWarning(Ub.getMessage('deprecatedConfigKey', [r, n.newKey])); + let a = this.getAllowedProperties().find((o) => n.newKey === o.key); + if (a) return this.getConfig()[a.key] ?? this.getConfig()[n.key]; + } + if (this.getAllowedProperties().some((a) => r === a.key || r === a.newKey)) return this.getConfig()[r]; + throw Ub.createError('unknownConfigKey', [r]); + } + getPropertyMeta(r) { + let n = this.getAllowedProperties().find((o) => r === o.key); + if (n) { + if (n.deprecated && n.newKey) { + He.getInstance().emitWarning(Ub.getMessage('deprecatedConfigKey', [r, n.newKey])); + let o = this.getAllowedProperties().find((s) => r === s.newKey); + if (o) return o ?? n; + } + return n; + } + let a = this.getAllowedProperties().find((o) => r === o.newKey); + if (a) return a; + throw Ub.createError('unknownConfigKey', [r]); + } + getInfo(r, n = !1) { + let a = this.getPropertyMeta(r); + if (a.deprecated && a.newKey && n) throw Ub.createError('deprecatedConfigKey', [r, a.newKey]); + let o = a.newKey ? this.getLocation(a.newKey) : this.getLocation(r); + return { + key: a.newKey ?? r, + location: o, + value: this.getPropertyValue(a.newKey ?? r), + path: this.getPath(a.newKey ?? r), + isLocal: () => o === e.Location.LOCAL, + isGlobal: () => o === e.Location.GLOBAL, + isEnvVar: () => o === e.Location.ENVIRONMENT, + deprecated: a.deprecated ?? !1, + }; + } + getLocation(r) { + if (this.envVars[r] != null) return e.Location.ENVIRONMENT; + if (this.localConfig?.get(r)) return e.Location.LOCAL; + if (this.globalConfig?.get(r)) return e.Location.GLOBAL; + } + getPath(r) { + if (this.envVars[r] != null) return `$${qp.propertyToEnvName(r)}`; + if (this.localConfig?.getContents()[r] != null) return this.localConfig.getPath(); + if (this.globalConfig.getContents()[r] != null) return this.globalConfig.getPath(); + } + getConfigInfo() { + let r = Object.keys(this.getConfig()) + .filter((n) => this.getAllowedProperties().some((a) => n === a.key || n === a.newKey)) + .map((n) => this.getInfo(n)) + .filter((n) => !!n); + return (0, jg.sortBy)(r, 'key'); + } + getLocalConfig() { + return this.localConfig; + } + getGlobalConfig() { + return this.globalConfig; + } + getConfig() { + return this.config; + } + async unsetByValue(r) { + this.localConfig + ?.getKeysByValue(r) + .map((o) => this.localConfig?.unset(o)) + .some(Boolean) && (await this.localConfig?.write()), + this.globalConfig + ?.getKeysByValue(r) + .map((o) => this.globalConfig?.unset(o)) + .some(Boolean) && (await this.globalConfig?.write()); + } + getEnvVars() { + return this.envVars; + } + async reload() { + return await this.loadProperties(), this; + } + addAllowedProperties(r) { + (0, O9.isArray)(r) ? this.allowedProperties.push(...r) : this.allowedProperties.push(r); + } + setAllowedProperties(r) { + this.allowedProperties = r; + } + getAllowedProperties() { + return this.allowedProperties; + } + async loadProperties() { + this.resolveProperties(await this.globalConfig.read(), this.localConfig && (await this.localConfig.read())), + (e.encrypted = !1); + } + loadPropertiesSync() { + this.resolveProperties(this.globalConfig.readSync(), this.localConfig?.readSync()); + } + resolveProperties(r, n) { + let a = new qp(); + for (let l of this.getAllowedProperties()) { + let u = l.newKey ? l.newKey : l.key, + p = a.getPropertyFromEnv(l.key); + p && (this.envVars[u] = p); + } + let o = [r]; + n && o.push(n), o.push(this.envVars); + let s = {}; + return o.filter(O9.isJsonMap).reduce((l, u) => (0, jg.merge)(l, u), s); + } + }; +((t) => { + let e; + ((o) => ((o.GLOBAL = 'Global'), (o.LOCAL = 'Local'), (o.ENVIRONMENT = 'Environment')))((e = t.Location ||= {})); +})((Sr ||= {})); +Nt(); +Ut(); +Vs(); +Vo(); +var e5e = require('url'), + Ng = W(qe()), + of = W(Be()), + t5e = W(nb()), + r5e = W(GR()); +bb(); +Nt(); +Ut(); +Vs(); +Ya(); +ee.importMessagesDirectory(__dirname); +var T9 = ee.loadMessages('@salesforce/core', 'connection'), + i5e = `sfdx toolbelt:${process.env.SFDX_SET_CLIENT_IDS ?? ''}`, + Ws = { 'content-type': 'application/json', 'user-agent': i5e }, + Z9e = 'DomainNotFoundError', + yn = class extends t5e.Connection { + constructor(r) { + super(r.connectionOptions ?? {}); + this.hasResolved = !1; + (this.options = r), (this.username = r.authInfo.getUsername()); + } + get tooling() { + return super.tooling; + } + static async create(r) { + let n = { version: r.connectionOptions?.version, callOptions: { client: i5e } }; + if (!n.version) { + let s = r.configAggregator ?? (await Sr.create()); + n.version = (0, of.asString)(s.getInfo('org-api-version').value); + } + let a = r.authInfo.getConnectionOptions(); + r.connectionOptions = Object.assign(n, a); + let o = new this(r); + await o.init(); + try { + n.version + ? o.logger.debug( + `The org-api-version ${n.version} was found from ${ + r.connectionOptions?.version ? 'passed in options' : 'config' + }` + ) + : await o.useLatestApiVersion(); + } catch (s) { + let l = s; + if (l.name === Z9e) throw l; + o.logger.debug(`Error trying to load the API version: ${l.name} - ${l.message}`); + } + return o.logger.debug(`Connection created with apiVersion ${o.getApiVersion()}`), o; + } + async init() { + this.logger = this.tooling._logger = await le.child('connection'); + } + async deploy(r, n) { + let a = n.rest; + return ( + delete n.rest, + a + ? (this.logger.debug('deploy with REST'), await this.refreshAuth(), this.metadata.deployRest(r, n)) + : (this.logger.debug('deploy with SOAP'), this.metadata.deploy(r, n)) + ); + } + request(r, n) { + let a = (0, of.isString)(r) ? { method: 'GET', url: r } : r, + o = a.headers ? Object.fromEntries(Object.entries(a.headers).map(([s, l]) => [s.toLowerCase(), l])) : {}; + return (a.headers = { ...Ws, ...o }), this.logger.getRawLogger().debug(a, 'request'), super.request(a, n); + } + baseUrl() { + return super._baseUrl(); + } + async retrieveMaxApiVersion() { + if ((this.maxApiVersion ??= this.getCachedApiVersion())) return this.maxApiVersion; + await this.isResolvable(), this.logger.debug(`Fetching API versions supported for org: ${this.getUsername()}`); + let r = await this.request(`${this.instanceUrl}/services/data`); + if (!Array.isArray(r)) + throw ( + (this.logger.debug(`server response for retrieveMaxApiVersion: ${r}`), T9.createError('noApiVersionsError')) + ); + return ( + this.logger.debug(`response for org versions: ${r.map((n) => n.version).join(',')}`), + (this.maxApiVersion = (0, of.ensure)((0, Ng.maxBy)(r, (n) => n.version)).version), + await this.options.authInfo.save({ + instanceApiVersion: this.maxApiVersion, + instanceApiVersionLastRetrieved: new Date().toLocaleString(), + }), + this.maxApiVersion + ); + } + async useLatestApiVersion() { + try { + this.setApiVersion(await this.retrieveMaxApiVersion()); + } catch (r) { + let n = r; + if (n.name === Z9e) throw n; + this.logger.warn('Failed to set the latest API version:', n); + } + } + async isResolvable() { + if (this.hasResolved) return this.hasResolved; + if (!this.options.connectionOptions?.instanceUrl) throw T9.createError('noInstanceUrlError'); + let r = await Bo.create({ url: new e5e.URL(this.options.connectionOptions.instanceUrl) }); + try { + return await r.resolve(), (this.hasResolved = !0), !0; + } catch (n) { + throw T9.createError('domainNotFoundError', [], [], n); + } + } + getApiVersion() { + return this.version; + } + setApiVersion(r) { + if (!Xd(r)) throw T9.createError('incorrectAPIVersionError', [r]); + this.version = r; + } + getAuthInfo() { + return this.options.authInfo; + } + getAuthInfoFields() { + return this.options.authInfo.getFields() || {}; + } + getConnectionOptions() { + return this.options.authInfo.getConnectionOptions(); + } + getUsername() { + return this.username; + } + isUsingAccessToken() { + return this.options.authInfo.isUsingAccessToken(); + } + normalizeUrl(r) { + return this._normalizeUrl(r); + } + async autoFetchQuery(r, n = { tooling: !1 }) { + let o = ((await Sr.create()).getInfo('org-max-query-limit').value || n.maxFetch) ?? 1e4, + { tooling: s, ...l } = n, + u = Object.assign(l, { autoFetch: !0, maxFetch: o }), + p = s ? await this.tooling.query(r, u) : await this.query(r, u); + return ( + p.records.length && + p.totalSize > p.records.length && + He.getInstance().emitWarning( + `The query result is missing ${ + p.totalSize - p.records.length + } records due to a ${o} record limit. Increase the number of records returned by setting the config value "maxQueryLimit" or the environment variable "SFDX_MAX_QUERY_LIMIT" to ${ + p.totalSize + } or greater than ${o}.` + ), + p + ); + } + async singleRecordQuery(r, n = { choiceField: 'Name' }) { + let a = n.tooling ? await this.tooling.query(r) : await this.query(r); + if (a.totalSize === 0) throw new Q(`No record found for ${r}`, Dg.NoRecords); + if (a.totalSize > 1) + throw new Q( + n.returnChoicesOnMultiple + ? `Multiple records found. ${a.records.map((o) => o[n.choiceField]).join(',')}` + : 'The query returned more than 1 record', + Dg.MultipleRecords + ); + return a.records[0]; + } + async refreshAuth() { + this.logger.debug('Refreshing auth for org.'); + let r = { url: this.baseUrl(), method: 'GET' }; + await this.request(r); + } + getCachedApiVersion() { + if (Ng.env.getBoolean('SFDX_IGNORE_API_VERSION_CACHE', !1)) { + this.logger.debug('Using latest API version since SFDX_IGNORE_API_VERSION_CACHE = true'); + return; + } + let r = this.options.authInfo.getFields(), + n = r.instanceApiVersionLastRetrieved, + a = r.instanceApiVersion, + o; + try { + n && (0, of.isString)(n) && (o = Date.parse(n)); + } catch {} + if (o) { + let s = new Date(), + l = s.getTime() - o > Ng.Duration.hours(24).milliseconds; + if ((this.logger.debug(`API version cache last checked on ${n} (now is ${s.toLocaleString()})`), !l && a)) + return this.logger.debug(`Using cached API version: ${a}`), a; + this.logger.debug('API version cache expired. Re-fetching latest.'); + } + } + }, + Dg = { NoRecords: 'SingleRecordQuery_NoRecords', MultipleRecords: 'SingleRecordQuery_MultipleRecords' }; +r5e.Tooling.prototype.autoFetchQuery = yn.prototype.autoFetchQuery; +var nU = require('path'), + aU = W(require('fs')), + Ea = W(qe()), + qr = W(Be()); +Yi(); +var sf = class extends Wr { + constructor(t) { + super(t); + } + static getOptions(t) { + return { isGlobal: !0, isState: !0, filename: `${t}.json`, orgId: t, stateFolder: Oe.SFDX_STATE_FOLDER }; + } +}; +Yi(); +Ya(); +Nt(); +Ut(); +Vs(); +var xEe = W(require('http')), + OEe = require('querystring'), + TF = require('url'), + TEe = require('net'), + CEe = require('events'), + kEe = W(nb()), + du = W(qe()), + o5 = W(Be()); +Nt(); +Ut(); +var tn = require('path'), + EEe = W(require('fs')), + g2 = W(qe()), + OF = W(Be()); +Vo(); +var a5 = W(require('path')), + h2 = W(require('fs')), + SEe = W(wEe()), + Kg = W(qe()); +Ut(); +var yf = class { + constructor(t, r) { + this.schemaPath = r; + (this.logger = t.child('SchemaValidator')), (this.schemasDir = a5.dirname(this.schemaPath)); + } + async load() { + return ( + this.schema || + ((this.schema = (0, Kg.parseJsonMap)(await h2.promises.readFile(this.schemaPath, 'utf8'))), + this.logger.debug(`Schema loaded for ${this.schemaPath}`)), + this.schema + ); + } + loadSync() { + return ( + this.schema || + ((this.schema = (0, Kg.parseJsonMap)(h2.readFileSync(this.schemaPath, 'utf8'))), + this.logger.debug(`Schema loaded for ${this.schemaPath}`)), + this.schema + ); + } + async validate(t) { + return this.validateSync(t); + } + validateSync(t) { + let r = this.loadSync(), + n = this.loadExternalSchemas(r), + o = new SEe.default({ + allErrors: !0, + allowUnionTypes: !0, + schemas: n, + useDefaults: !0, + strictSchema: !1, + validateSchema: !1, + }).compile(r), + s = JSON.parse(JSON.stringify(t)); + if (!o(s)) + if (o.errors) { + let u = this.getErrorsText(o.errors); + throw new Q( + `Validation errors: +${u}`, + 'ValidationSchemaFieldError' + ); + } else throw new Q('Unknown schema validation error', 'ValidationSchemaUnknownError'); + return s; + } + loadExternalSchemas(t) { + return (0, Kg.getJsonValuesByName)(t, '$ref') + .map((r) => r && RegExp(/([\w\.]+)#/).exec(r)) + .map((r) => r?.[1]) + .filter((r) => !!r) + .map((r) => this.loadExternalSchema(r)); + } + loadExternalSchema(t) { + let r = a5.join(this.schemasDir, `${t}.json`); + try { + return (0, Kg.parseJsonMap)(h2.readFileSync(r, 'utf8')); + } catch (n) { + throw n.code === 'ENOENT' ? new Q(`Schema not found: ${r}`, 'ValidationSchemaNotFound') : n; + } + } + getErrorsText(t) { + return t.map((r) => { + let n = `${r.schemaPath}: ${r.message}`; + switch (r.keyword) { + case 'additionalProperties': + return `${n} '${r.params.additionalProperty}'`; + case 'enum': + return `${n} '${r.params.allowedValues.join(', ')}'`; + default: + return n; + } + }).join(` +`); + } +}; +Ut(); +Vs(); +ee.importMessagesDirectory(__dirname); +var Yo = ee.loadMessages('@salesforce/core', 'config'), + ykt = ee.loadMessages('@salesforce/core', 'core'), + Hn = class e extends Wr { + static { + this.BLOCKLIST = ['packageAliases']; + } + static getFileName() { + return _S; + } + static getDefaultOptions(t = !1) { + let r = Wr.getDefaultOptions(t, e.getFileName()); + return (r.isState = !1), r; + } + async read() { + let t = await super.read(); + return this.validateKeys(), t; + } + readSync() { + let t = super.readSync(); + return this.validateKeys(), t; + } + async write(t) { + return t && this.setContents(t), this.validateKeys(), super.write(); + } + writeSync(t) { + return t && this.setContents(t), this.validateKeys(), super.writeSync(); + } + getContents() { + return super.getContents(); + } + getDefaultOptions(t) { + let r = { isState: !1 }; + return Object.assign(r, t ?? {}), r; + } + async schemaValidate() { + this.hasRead || (await this.read()); + try { + let t = require.resolve('@salesforce/schemas/sfdx-project.schema.json'); + await new yf(this.logger, t).validate(this.getContents()); + } catch (t) { + let r = t; + if (g2.env.getBoolean('SFDX_PROJECT_JSON_VALIDATION', !1) && !this.options.isGlobal) + throw Yo.createError('schemaValidationError', [this.getPath(), r.message], [this.getPath()], r); + this.logger.warn(Yo.getMessage('schemaValidationError', [this.getPath(), r.message])); + } + } + async getPackageDirectories() { + return this.getPackageDirectoriesSync(); + } + schemaValidateSync() { + this.hasRead || this.readSync(); + try { + let t = require.resolve('@salesforce/schemas/sfdx-project.schema.json'); + new yf(this.logger, t).validateSync(this.getContents()); + } catch (t) { + let r = t; + if (g2.env.getBoolean('SFDX_PROJECT_JSON_VALIDATION', !1) && !this.options.isGlobal) + throw Yo.createError('schemaValidationError', [this.getPath(), r.message], [this.getPath()], r); + this.logger.warn(Yo.getMessage('schemaValidationError', [this.getPath(), r.message])); + } + } + getPackageDirectoriesSync() { + let r = (this.getContents().packageDirectories || []).map((a) => { + if ((0, tn.isAbsolute)(a.path)) throw Yo.createError('invalidPackageDirectory', [a.path]); + let o = tn.sep === '/' ? /\\/g : /\//g, + s = a.path.replace(o, tn.sep), + l = (0, tn.normalize)(s).replace(new RegExp(`\\${tn.sep}$`), ''), + u = `${(0, tn.dirname)(this.getPath())}${tn.sep}${l}${tn.sep}`; + if (!this.doesPackageExist(u)) throw Yo.createError('missingPackageDirectory', [a.path]); + return Object.assign({}, a, { name: l, path: s, fullPath: u }); + }); + if (r.length === 1) { + if (r[0].default === !1) throw Yo.createError('singleNonDefaultPackage'); + r[0].default = !0; + } + let n = r.filter((a) => a.default); + if (n.length === 0 && !this.isGlobal()) throw Yo.createError('missingDefaultPath'); + if (n.length > 1) throw Yo.createError('multipleDefaultPaths'); + return r; + } + getUniquePackageDirectories() { + let t = new Set(), + r = []; + return ( + this.getPackageDirectoriesSync().forEach((n) => { + t.has(n.name) || (t.add(n.name), r.push(n)); + }), + r + ); + } + getUniquePackageNames() { + return this.getUniquePackageDirectories().map((t) => t.name); + } + hasPackages() { + return this.getContents()?.packageDirectories?.length > 0; + } + hasMultiplePackages() { + return this.getContents()?.packageDirectories?.length > 1; + } + async hasPackageAliases() { + return Object.keys(this.getContents().packageAliases ?? {}).length > 0; + } + getPackageAliases() { + return this.getContents().packageAliases; + } + addPackageAlias(t, r) { + if (!/^.{15,18}$/.test(r)) throw Yo.createError('invalidId', [r]); + let n = this.getContents(); + n.packageAliases || (n.packageAliases = {}), (n.packageAliases[t] = r), this.setContents(n); + } + addPackageDirectory(t) { + let r = this.getContents().packageDirectories.findIndex((a) => { + let o = a; + return (o.path === t.path && !o.id && !o.package) || (!!t.package && t.package === o.package); + }), + n = Object.assign({}, r > -1 ? this.getContents().packageDirectories[r] : t, t); + r > -1 ? (this.getContents().packageDirectories[r] = n) : this.getContents().packageDirectories.push(n); + } + doesPackageExist(t) { + return EEe.existsSync(t); + } + validateKeys() { + let t = mS(this.toObject(), e.BLOCKLIST); + if (t) throw ykt.createError('invalidJsonCasing', [t, this.getPath()]); + } + }, + Xg = class e { + constructor(t) { + this.path = t; + } + static { + this.instances = new Map(); + } + static async resolve(t) { + if (((t = await this.resolveProjectPath(t ?? process.cwd())), !e.instances.has(t))) { + let r = new e(t); + e.instances.set(t, r); + } + return (0, OF.ensure)(e.instances.get(t)); + } + static getInstance(t) { + if (((t = this.resolveProjectPathSync(t ?? process.cwd())), !e.instances.has(t))) { + let r = new e(t); + e.instances.set(t, r); + } + return (0, OF.ensure)(e.instances.get(t)); + } + static async resolveProjectPath(t) { + return wS(t); + } + static resolveProjectPathSync(t) { + return SS(t); + } + getPath() { + return this.path; + } + async retrieveSfProjectJson(t = !1) { + let r = Hn.getDefaultOptions(t); + return t + ? (this.sfProjectJsonGlobal || (this.sfProjectJsonGlobal = await Hn.create(r)), this.sfProjectJsonGlobal) + : ((r.rootFolder = this.getPath()), + this.sfProjectJson || (this.sfProjectJson = await Hn.create(r)), + this.sfProjectJson); + } + getSfProjectJson(t = !1) { + let r = Hn.getDefaultOptions(t); + return t + ? (this.sfProjectJsonGlobal || ((this.sfProjectJsonGlobal = new Hn(r)), this.sfProjectJsonGlobal.readSync()), + this.sfProjectJsonGlobal) + : ((r.rootFolder = this.getPath()), + this.sfProjectJson || ((this.sfProjectJson = new Hn(r)), this.sfProjectJson.readSync()), + this.sfProjectJson); + } + getPackageDirectories() { + return ( + this.packageDirectories || (this.packageDirectories = this.getSfProjectJson().getPackageDirectoriesSync()), + this.packageDirectories + ); + } + getUniquePackageDirectories() { + return this.getSfProjectJson().getUniquePackageDirectories(); + } + getUniquePackageNames() { + return this.getSfProjectJson().getUniquePackageNames(); + } + getPackageFromPath(t) { + let r = this.getPackageDirectories(), + n = (0, tn.resolve)(t); + return r.find((o) => { + let s = o.fullPath.replace(/(\\|\/)$/, ''); + return (0, tn.basename)(t) === o.path || n === s || n.includes(o.fullPath); + }); + } + getPackageNameFromPath(t) { + let r = this.getPackageFromPath(t); + return r ? r.package ?? r.path : void 0; + } + getPackage(t) { + return this.getPackageDirectories().find((n) => n.name === t); + } + findPackage(t) { + return this.getPackageDirectories().find(t); + } + getPackagePath(t) { + return this.getPackage(t)?.fullPath; + } + hasPackages() { + return this.getSfProjectJson().hasPackages(); + } + hasMultiplePackages() { + return this.getSfProjectJson().hasMultiplePackages(); + } + getActivePackage() { + return this.activePackage; + } + setActivePackage(t) { + t == null ? (this.activePackage = null) : (this.activePackage = this.getPackage(t)); + } + getDefaultPackage() { + if (!this.hasPackages()) throw new Q('The sfdx-project.json does not have any packageDirectories defined.'); + return this.findPackage((r) => r.default === !0) ?? this.getPackageDirectories()[0]; + } + async resolveProjectConfig() { + if (!this.projectConfig) { + let [t, r, n] = await Promise.all([this.retrieveSfProjectJson(!0), this.retrieveSfProjectJson(), Sr.create()]); + await Promise.all([t.read(), r.read()]), + (this.projectConfig = (0, g2.defaults)(r.toObject(), t.toObject())), + Object.assign(this.projectConfig, n.getConfig()), + this.projectConfig.sfdcLoginUrl || + (this.projectConfig.sfdcLoginUrl = n.getConfig()['org-instance-url'] ?? _e.PRODUCTION), + process.env.FORCE_SFDC_LOGIN_URL && (this.projectConfig.sfdcLoginUrl = process.env.FORCE_SFDC_LOGIN_URL), + process.env.SFDX_SCRATCH_ORG_CREATION_LOGIN_URL && + (this.projectConfig.signupTargetLoginUrl = process.env.SFDX_SCRATCH_ORG_CREATION_LOGIN_URL); + } + return this.projectConfig; + } + async hasPackageAliases() { + return this.getSfProjectJson().hasPackageAliases(); + } + getPackageAliases() { + return ( + this.packageAliases || (this.packageAliases = this.getSfProjectJson().getPackageAliases()), this.packageAliases + ); + } + getPackageIdFromAlias(t) { + let r = this.getPackageAliases(); + return r ? r[t] : void 0; + } + getAliasesFromPackageId(t) { + if (!/^.{15,18}$/.test(t)) throw Yo.createError('invalidId', [t]); + return Object.entries(this.getPackageAliases() ?? {}) + .filter(([, r]) => r?.startsWith(t)) + .map(([r]) => r); + } + }; +ee.importMessagesDirectory(__dirname); +var Xp = ee.loadMessages('@salesforce/core', 'auth'), + Ys = class e extends du.AsyncCreatable { + constructor(r) { + super(r); + this.oauthError = new Error('Oauth Error'); + this.oauthConfig = r.oauthConfig; + } + static { + this.DEFAULT_PORT = 1717; + } + static async determineOauthPort() { + try { + return (await Hn.create()).get('oauthLocalPort') || e.DEFAULT_PORT; + } catch { + return e.DEFAULT_PORT; + } + } + getAuthorizationUrl() { + return this.authUrl; + } + async authorizeAndSave() { + return ( + this.webServer.server || (await this.start()), + new Promise((r, n) => { + let a = () => { + this.logger.debug(`OAuth web login service listening on port: ${this.webServer.port}`), + this.executeOauthRequest() + .then(async (o) => { + try { + let s = await ot.create({ oauth2Options: this.oauthConfig, oauth2: this.oauth2 }); + await s.save(), await this.webServer.handleSuccess(o), o.end(), r(s); + } catch (s) { + (this.oauthError = s), await this.webServer.handleError(o), n(s); + } + }) + .catch((o) => { + this.logger.debug('error reported, closing server connection and re-throwing'), n(o); + }) + .finally(() => { + this.logger.debug('closing server connection'), this.webServer.close(); + }); + }; + this.webServer.server.listening ? a() : this.webServer.server.once('listening', a); + }) + ); + } + async start() { + await this.webServer.start(); + } + async init() { + this.logger = await le.child(this.constructor.name); + let r = await e.determineOauthPort(); + this.oauthConfig.clientId || (this.oauthConfig.clientId = fu.clientId), + this.oauthConfig.loginUrl || (this.oauthConfig.loginUrl = ot.getDefaultInstanceUrl()), + this.oauthConfig.redirectUri || (this.oauthConfig.redirectUri = `http://localhost:${r}/OauthRedirect`), + (this.webServer = await CF.create({ port: r })), + (this.oauth2 = new kEe.OAuth2(this.oauthConfig)), + (this.authUrl = ot.getAuthorizationUrl(this.oauthConfig, this.oauth2)); + } + async executeOauthRequest() { + return new Promise((r, n) => { + this.logger.debug('Starting web auth flow'), + this.webServer.server.on('request', async (a, o) => { + if (a.url) { + let s = (0, TF.parse)(a.url); + if ((this.logger.debug(`processing request for uri: ${s.pathname}`), a.method === 'GET')) + if (s.pathname?.startsWith('/OauthRedirect') && s.query) { + if (((a.query = (0, OEe.parse)(s.query)), a.query.error)) { + let l = typeof a.query.error_description == 'string' ? a.query.error_description : a.query.error; + return ( + (this.oauthError = new Q(l, a.query.error)), + await this.webServer.handleError(o), + n(this.oauthError) + ); + } + this.logger.debug(`request.query.state: ${a.query.state}`); + try { + (this.oauthConfig.authCode = (0, o5.asString)(this.parseAuthCodeFromRequest(o, a))), r(o); + } catch (l) { + n(l); + } + } else if (s.pathname === '/OauthSuccess') this.webServer.reportSuccess(o); + else if (s.pathname === '/OauthError') this.webServer.reportError(this.oauthError, o); + else { + this.webServer.sendError(404, 'Resource not found', o); + let l = 'invalidRequestUri', + u = Xp.getMessage(l, [s.pathname]); + n(new Q(u, l)); + } + else { + this.webServer.sendError(405, 'Unsupported http methods', o); + let l = 'invalidRequestMethod', + u = Xp.getMessage(l, [a.method]); + n(new Q(u, l)); + } + } + }); + }); + } + parseAuthCodeFromRequest(r, n) { + if (this.validateState(n)) { + let a = n.query.code; + if (a && a.length > 4) this.logger.debug(`Successfully obtained auth code: ...${a.substring(a.length - 5)}`); + else + throw (this.logger.debug('Expected an auth code but could not find one.'), Xp.createError('missingAuthCode')); + return ( + this.logger.debug(`oauthConfig.loginUrl: ${this.oauthConfig.loginUrl}`), + this.logger.debug(`oauthConfig.clientId: ${this.oauthConfig.clientId}`), + this.logger.debug(`oauthConfig.redirectUri: ${this.oauthConfig.redirectUri}`), + a + ); + } else { + let a = new Q('urlStateMismatch'); + this.webServer.sendError( + 400, + `${a.message} +`, + r + ), + this.closeRequest(n), + this.logger.warn('urlStateMismatchAttempt detected.'), + (0, o5.get)(this.webServer.server, 'urlStateMismatchAttempt') || + (this.logger.error(a.message), (0, du.set)(this.webServer.server, 'urlStateMismatchAttempt', !0)); + } + return null; + } + closeRequest(r) { + r.connection.end(), r.connection.destroy(); + } + validateState(r) { + let n = r.query.state, + a = (0, TF.parse)(this.authUrl, !0).query; + return !!(n && n === a.state); + } + }, + CF = class e extends du.AsyncCreatable { + constructor(r) { + super(r); + this.port = Ys.DEFAULT_PORT; + this.host = 'localhost'; + this.sockets = []; + this.redirectStatus = new CEe.EventEmitter(); + r.port && (this.port = r.port), r.host && (this.host = r.host); + } + static { + this.DEFAULT_CLIENT_SOCKET_TIMEOUT = 2e4; + } + async start() { + try { + this.logger.debug('Starting web server'), + await this.checkOsPort(), + this.logger.debug(`Nothing listening on host: localhost port: ${this.port} - good!`), + (this.server = xEe.createServer()), + this.server.on('connection', (r) => { + this.logger.debug(`socket connection initialized from ${r.remoteAddress}`), this.sockets.push(r); + }), + this.server.listen(this.port, this.host); + } catch (r) { + throw r.name === 'EADDRINUSE' ? Xp.createError('portInUse', [this.port], [this.port]) : r; + } + } + close() { + this.sockets.forEach((r) => { + r.end(), r.destroy(); + }), + this.server.getConnections((r, n) => { + this.logger.debug(`number of connections open: ${n}`); + }), + this.server.close(); + } + sendError(r, n, a) { + (a.statusMessage = n), (a.statusCode = r), a.end(); + } + doRedirect(r, n, a) { + this.logger.debug(`Redirecting to ${n}`), a.setHeader('Content-Type', 'text/plain'); + let o = `${r} - Redirecting to ${n}`; + a.setHeader('Content-Length', Buffer.byteLength(o)), a.writeHead(r, { Location: n }), a.end(o); + } + reportError(r, n) { + n.setHeader('Content-Type', 'text/html'); + let a = new Date().getFullYear(), + o = Xp.getMessage('serverSfdcImage'), + s = Xp.getMessage('serverErrorHTMLResponse', [o, r.name, r.message, a]); + n.setHeader('Content-Length', Buffer.byteLength(s, 'utf8')), + n.end(s), + r.stack && this.logger.debug(r.stack), + this.redirectStatus.emit('complete'); + } + reportSuccess(r) { + r.setHeader('Content-Type', 'text/html'); + let n = new Date().getFullYear(), + a = Xp.getMessage('serverSfdcImage'), + o = Xp.getMessage('serverSuccessHTMLResponse', [a, n]); + r.setHeader('Content-Length', Buffer.byteLength(o, 'utf8')), r.end(o), this.redirectStatus.emit('complete'); + } + async handleSuccess(r) { + return this.handleRedirect(r, '/OauthSuccess'); + } + async handleError(r) { + return this.handleRedirect(r, '/OauthError'); + } + async init() { + this.logger = await le.child(this.constructor.name); + } + async handleRedirect(r, n) { + return new Promise((a) => { + this.redirectStatus.on('complete', () => { + this.logger.debug('Redirect complete'), a(); + }), + this.doRedirect(303, n, r); + }); + } + async checkOsPort() { + return new Promise((r, n) => { + let a = { port: this.port, host: this.host }, + o = new TEe.Socket(); + o.setTimeout(this.getSocketTimeout(), () => { + o.destroy(); + let s = new Q('timeout', 'SOCKET_TIMEOUT'); + n(s); + }), + o.connect(a, () => { + o.destroy(); + let s = new Q('Address in use', 'EADDRINUSE'); + (s.data = { port: a.port, address: a.host }), n(s); + }), + o.on('error', () => { + o.destroy(), r(this.port); + }); + }); + } + getSocketTimeout() { + let r = new du.Env(), + n = (0, du.toNumber)(r.getNumber('SFDX_HTTP_SOCKET_TIMEOUT')); + return Number.isInteger(n) && n > 0 ? n : e.DEFAULT_CLIENT_SOCKET_TIMEOUT; + } + }; +og(); +var iU = W(qe()), + Cke = W(Be()); +Nt(); +var ao = W(qe()), + jEe = W(pD()); +Nt(); +Ut(); +Vo(); +og(); +bb(); +Ya(); +var kF = W(Be()); +function v2(e, t, r) { + let n = Object.assign({}, e); + return Object.fromEntries( + Object.entries(n).map(([a, o]) => { + let s = t.call(null, a); + if (r) { + let l = o; + return ( + Array.isArray(o) + ? (l = o.map((u) => ((0, kF.isPlainObject)(u) ? v2(u, t, r) : u))) + : (0, kF.isPlainObject)(o) && (l = v2(o, t, r)), + [s, l] + ); + } + return [s, o]; + }) + ); +} +Ut(); +Nt(); +var AEe = W(qe()); +Yi(); +var Qs = class e extends jp { + static getFileName() { + return 'scratch-create-cache.json'; + } + static getDefaultOptions() { + return { + isGlobal: !0, + isState: !0, + filename: e.getFileName(), + stateFolder: Oe.SF_STATE_FOLDER, + ttl: AEe.Duration.days(1), + }; + } + static async unset(t) { + let r = await e.create(); + r.unset(t), await r.write(); + } +}; +Ya(); +var AF = 'scratchOrgLifecycleEvent', + IEe = ['prepare request', 'send request', 'wait for org', 'available', 'authenticate', 'deploy settings', 'done'], + ba = async (e) => He.getInstance().emit(AF, e), + bkt = [ + 'accessToken', + 'clientId', + 'created', + 'createdOrgInstance', + 'devHubUsername', + 'expirationDate', + 'instanceUrl', + 'loginUrl', + 'orgId', + 'username', + ], + _kt = (e) => bkt.includes(e), + IF = async (e) => { + await He.getInstance().emit('postorgcreate', Object.fromEntries(Object.entries(e).filter(([t]) => _kt(t)))); + }; +var wkt = 'sfdx-project.json'; +ee.importMessagesDirectory(__dirname); +var PEe = ee.loadMessages('@salesforce/core', 'scratchOrgErrorCodes'), + bf = ee.loadMessages('@salesforce/core', 'scratchOrgErrorCodes'), + Skt = (e, t) => { + try { + let r = PEe.getMessage(e); + return r.includes('%s') && (r = PEe.getMessage(e, t)), r; + } catch { + return; + } + }, + REe = async ({ jobId: e, scratchOrgInfo: t, cache: r, hubUsername: n }) => { + if (!t?.Id || t.Status === 'Deleted') + throw ( + (r.unset(e), + await r.write(), + t.Status === 'Deleted' ? bf.createError('ScratchOrgDeletedError') : bf.createError('NoScratchOrgInfoError')) + ); + if (['New', 'Creating'].includes(t.Status)) + throw bf.createError('StillInProgressError', [t.Status], ['action.StillInProgress']); + return PF(t, n); + }, + PF = async (e, t) => { + if (!e?.Id) throw new Q('No scratch org info found.', 'ScratchOrgInfoNotFound'); + if (e.Status === 'Active') return await ba({ stage: 'available', scratchOrgInfo: e }), e; + if (e.Status === 'Error' && e.ErrorCode) { + await Qs.unset(e.Id); + let r = Skt(e.ErrorCode, [wkt]); + throw r + ? new Q(r, 'RemoteOrgSignupFailed', [bf.getMessage('SignupFailedActionError', [e.ErrorCode])]) + : new Q(bf.getMessage('SignupFailedError', [e.ErrorCode])); + } + if (e.Status === 'Error') { + await Qs.unset(e.Id); + let r = await le.child('ScratchOrgErrorCodes'); + throw ( + (r.error('No error code on signup error! Logging request.'), + r.error(e), + new Q(bf.getMessage('SignupFailedUnknownError', [e.Id, t]), 'signupFailedUnknown')) + ); + } + throw new Q(bf.getMessage('SignupUnexpectedError'), 'UnexpectedSignupStatus'); + }; +ee.importMessagesDirectory(__dirname); +var s5 = ee.loadMessages('@salesforce/core', 'scratchOrgInfoApi'), + Ekt = ee.loadMessages('@salesforce/core', 'scratchOrgErrorCodes'), + xkt = function (e, t, r) { + let n = e.SignupInstance; + if (n === 'utf8') return t; + let a; + return n && !n.toLowerCase().endsWith('s') ? (a = `https://${n}.salesforce.com`) : (a = e.LoginUrl), r ?? a; + }, + Okt = async (e) => { + let t = await le.child('buildOAuth2Options'), + r = !!e.hubOrg.getConnection().getAuthInfoFields().privateKey, + n = { + loginUrl: xkt(e.scratchOrgInfoComplete, e.hubOrg.getField(rn.Fields.LOGIN_URL), e.signupTargetLoginUrlConfig), + }; + if ((t.debug(`isJwtFlow: ${r}`), r && !process.env.SFDX_CLIENT_SECRET)) { + n.privateKeyFile = e.hubOrg.getConnection().getAuthInfoFields().privateKey; + let a = e?.retry ?? ao.env.getNumber('SFDX_JWT_AUTH_RETRY_ATTEMPTS') ?? 0, + o = ao.env.getNumber('SFDX_JWT_AUTH_RETRY_TIMEOUT') ?? 300, + s = ao.Duration.seconds(o).milliseconds, + l = a ? s / a : 1e3; + return { options: n, retries: a, timeout: s, delay: l }; + } else + return ( + process.env.SFDX_CLIENT_SECRET + ? (n.clientSecret = process.env.SFDX_CLIENT_SECRET) + : e.clientSecret && (n.clientSecret = e.clientSecret), + (n.redirectUri = e.scratchOrgInfoComplete.ConnectedAppCallbackUrl), + (n.authCode = e.scratchOrgInfoComplete.AuthCode), + { options: n, retries: 0 } + ); + }, + Tkt = async (e) => { + let t = await le.child('getAuthInfo'), + r = (0, jEe.retryDecorator)(async (n) => ot.create(n), { + timeout: e.timeout, + delay: e.delay, + retries: e.retries, + }); + if (e.retries) + try { + return await r({ + username: e.username, + parentUsername: e.hubOrg.getUsername(), + oauth2Options: e.oauth2Options, + }); + } catch (n) { + let a = n; + throw (t.error(a), a.lastError || a); + } + else + return ot.create({ + username: e.username, + parentUsername: e.hubOrg.getUsername(), + oauth2Options: e.oauth2Options, + }); + }, + l5 = async (e, t) => await e.getConnection().sobject('ScratchOrgInfo').retrieve(t), + RF = async (e) => { + let { scratchOrgInfoComplete: t, hubOrg: r, clientSecret: n, signupTargetLoginUrlConfig: a, retry: o } = e; + await ba({ stage: 'authenticate', scratchOrgInfo: t }), + (await le.child('authorizeScratchOrg')).debug(`scratchOrgInfoComplete: ${JSON.stringify(t, null, 4)}`), + r.isDevHubOrg() || (await r.determineIfDevHubOrg(!0)); + let l = await Okt({ + hubOrg: r, + clientSecret: n, + scratchOrgInfoComplete: t, + retry: o, + signupTargetLoginUrlConfig: a, + }), + u = await Tkt({ + hubOrg: r, + username: t.SignupUsername, + oauth2Options: l.options, + retries: l.retries, + timeout: l.timeout, + delay: l.delay, + }); + return ( + await u.save({ + devHubUsername: r.getUsername(), + created: new Date(t.CreatedDate ?? new Date()).valueOf().toString(), + expirationDate: t.ExpirationDate, + clientId: t.ConnectedAppConsumerKey, + createdOrgInstance: t.SignupInstance, + isDevHub: !1, + snapshot: t.Snapshot, + }), + u + ); + }, + Ckt = async (e) => { + let t = Object.keys(e).find((n) => n.toUpperCase() === 'USERNAME'); + if (!t) return; + let r = e[t]; + if (r && r.length > 0) { + try { + await ot.create({ username: r.toLowerCase() }); + } catch (n) { + let a = Q.wrap(n); + if (a.name === 'NamedOrgNotFoundError') return; + throw a; + } + throw Ekt.createError('C-1007'); + } + }, + DEe = async (e, t, r) => { + if (!e.isDevHubOrg()) throw s5.createError('hubOrgIsNotDevHub', [e.getUsername(), e.getOrgId()]); + if ((delete t.settings, delete t.objectSettings, t.orgPreferences && r.hasSettings())) + throw new Q('SignupDuplicateSettingsSpecifiedError'); + if (t.orgPreferences) throw new Q(s5.getMessage('DeprecatedPrefFormat')); + let n = v2(t, ao.upperFirst, !0); + typeof n.Username == 'string' && (n.Username = n.Username.toLowerCase()), await Ckt(n); + try { + return await ba({ stage: 'send request' }), await e.getConnection().sobject('ScratchOrgInfo').create(n); + } catch (a) { + let o = a; + throw o.errorCode === 'REQUIRED_FIELD_MISSING' + ? new Q(s5.getMessage('SignupFieldsMissingError', [o.fields.toString()])) + : Q.wrap(o); + } + }, + NEe = async (e, t, r = ao.Duration.minutes(15)) => { + let n = await le.child('scratchOrgInfoApi-pollForScratchOrgInfo'); + n.debug(`PollingTimeout in minutes: ${r.minutes}`); + let a = { + async poll() { + try { + let s = await l5(e, t); + return ( + n.debug(`polling client result: ${JSON.stringify(s, null, 4)}`), + s.Status === 'Active' || s.Status === 'Error' + ? { completed: !0, payload: s } + : (await ba({ stage: 'wait for org', scratchOrgInfo: s }), + n.debug(`Scratch org status is ${s.Status}`), + { completed: !1 }) + ); + } catch (s) { + return ( + n.debug(`An error occurred trying to retrieve scratchOrgInfo for ${t}`), + n.debug(`Error: ${s.message}`), + n.debug('Re-trying deploy check again....'), + { completed: !1 } + ); + } + }, + timeout: r, + frequency: ao.Duration.seconds(1), + timeoutErrorName: 'ScratchOrgInfoTimeoutError', + }, + o = await Un.create(a); + try { + let s = await o.subscribe(); + return await PF(s, e.getUsername()); + } catch (s) { + if (s instanceof Error) { + let l = Q.wrap(s); + throw (l.setData({ username: e.getUsername(), orgId: e.getOrgId(), scratchOrgInfoId: t }), l); + } + throw new Q(`The scratch org did not complete within ${r.minutes} minutes`, 'orgCreationTimeout', [ + 'Try your force:org:create command again with a longer --wait value', + ]); + } + }, + jF = async (e, t, r, n = ao.Duration.minutes(10)) => { + let a = await le.child('scratchOrgInfoApi-deploySettings'); + if (t.hasSettings()) { + a.debug(`deploying scratch org settings with apiVersion ${r}`); + try { + await t.createDeploy(), + await t.deploySettingsViaFolder(e, r, n), + await kkt(e), + a.trace('Settings deployed to org'); + } catch (o) { + throw Q.wrap(o); + } + } + }, + DF = async (e) => { + let t = await le.child('scratchOrgInfoApi-resolveUrl'), + { instanceUrl: r } = e.getFields(); + if (!r) { + let a = new Q('Org does not have instanceUrl'); + throw (a.setData({ orgId: e.getFields().orgId, username: e.getFields().username, instanceUrl: r }), a); + } + t.debug(`processScratchOrgInfoResult - resultData.instanceUrl: ${r}`); + let n = { timeout: ao.Duration.minutes(3), frequency: ao.Duration.seconds(10), url: new _e(r) }; + try { + return await (await Bo.create(n)).resolve(), e; + } catch (a) { + let o = Q.wrap(a); + throw ( + (t.debug('processScratchOrgInfoResult - err: %s', a), + o.name === 'MyDomainResolverTimeoutError' && + (o.setData({ orgId: e.getFields().orgId, username: e.getFields().username, instanceUrl: r }), + t.debug('processScratchOrgInfoResult - err data: %s', o.data)), + o) + ); + } + }, + kkt = async (e) => { + let t = e.getConnection(), + r = await t.tooling.sobject('SourceMember').find({ RevisionCounter: { $gt: 0 } }, ['Id']); + if (r.length !== 0) + try { + await Promise.all(r.map((n) => t.tooling.sobject('SourceMember').update({ Id: n.Id, RevisionCounter: 0 }))); + } catch (n) { + await He.getInstance().emitWarning( + s5.getMessage('SourceStatusResetFailureError', [ + e.getOrgId(), + e.getUsername(), + n instanceof Error ? n.message : '', + ]) + ); + } + }; +var uc = W(require('path')), + pi = W(qe()), + _ke = W(Be()), + _7 = W(oxe()); +Nt(); +Ut(); +og(); +var gke = require('stream'), + vke = W(hke()); +Nt(); +Ut(); +var v7 = class extends gke.Writable { + constructor(r) { + super({ objectMode: !0 }); + this.rootDestination = r; + this.zip = new vke.default(); + let n = r ? `for: ${r}` : 'in memory'; + (this.logger = le.childFromRoot(this.constructor.name)), this.logger.debug(`generating zip ${n}`); + } + get buffer() { + if (!this.zipBuffer) throw new Q('Must finalize the ZipWriter before getting a buffer'); + return this.zipBuffer; + } + async addToStore(r, n) { + let a = n.replace(/\\/g, '/'); + return this.zip.file(a, r), Promise.resolve(); + } + async finalize() { + (this.zipBuffer = await this.zip.generateAsync({ + type: 'nodebuffer', + compression: 'DEFLATE', + compressionOptions: { level: 3 }, + })), + this.logger.debug('Generated zip complete'); + } + getDestinationPath() { + return this.rootDestination; + } +}; +var b7 = require('stream'), + sl = W(require('fs')), + yke = W(require('os')), + x1 = W(require('path')), + bke = require('util'), + ZDt = (0, bke.promisify)(b7.pipeline), + y7 = class { + constructor(t) { + this.rootDestination = t; + this.rootDestination + ? sl.mkdirSync(this.rootDestination, { recursive: !0 }) + : (this.rootDestination = sl.mkdtempSync(`${yke.tmpdir()}${x1.sep}`)); + } + get buffer() { + throw new Error('Not implemented'); + } + async addToStore(t, r) { + let n = x1.join(this.rootDestination, r); + if ((sl.mkdirSync(x1.dirname(n), { recursive: !0 }), t instanceof b7.Readable)) { + let a = sl.createWriteStream(n); + await ZDt(t, a); + } else typeof t == 'string' ? sl.writeFileSync(n, t) : t instanceof Buffer && sl.writeFileSync(n, t); + } + finalize() { + return Promise.resolve(void 0); + } + getDestinationPath() { + return this.rootDestination; + } + }; +var eNt = ['Succeeded', 'SucceededPartial', 'Failed', 'Canceled'], + tNt = ({ + allRecordTypes: e = [], + allBusinessProcesses: t = [], + apiVersion: r, + settingData: n, + objectSettingsData: a, + }) => { + let o = { '@': { xmlns: 'http://soap.sforce.com/2006/04/metadata' }, types: [] }; + if (n) { + let s = Object.keys(n).map((l) => (0, pi.upperFirst)(l).replace('Settings', '')); + o.types.push({ members: s, name: 'Settings' }); + } + if (a) { + let s = Object.keys(a).map((l) => (0, pi.upperFirst)(l)); + o.types.push({ members: s, name: 'CustomObject' }), + e.length > 0 && o.types.push({ members: e, name: 'RecordType' }), + t.length > 0 && o.types.push({ members: t, name: 'BusinessProcess' }); + } + return { ...o, version: r }; + }, + rNt = (e, t) => { + let r = null, + n = null; + if (['Case', 'Lead', 'Opportunity', 'Solution'].includes(e)) + switch (((r = (0, pi.upperFirst)(t) + 'Process'), e)) { + case 'Case': + n = 'New'; + break; + case 'Lead': + n = 'New - Not Contacted'; + break; + case 'Opportunity': + n = 'Prospecting'; + break; + case 'Solution': + n = 'Draft'; + } + return [r, n]; + }, + iNt = (e, t, r, n) => { + let a = { '@': { xmlns: 'http://soap.sforce.com/2006/04/metadata' } }, + o = (0, pi.upperFirst)(e), + s = t.sharingModel; + s && (a = { ...a, sharingModel: (0, pi.upperFirst)(s) }); + let l = t.defaultRecordType; + if (typeof l == 'string') { + r.push(`${o}.${(0, pi.upperFirst)(l)}`); + let [u, p] = rNt(o, l), + c = { fullName: (0, pi.upperFirst)(l), label: (0, pi.upperFirst)(l), active: !0 }; + if (((a = { ...a, recordTypes: { ...c } }), u)) { + let f = { fullName: p }; + o !== 'Opportunity' && (f.default = !0), + n.push(`${o}.${u}`), + (a = { + ...a, + recordTypes: { ...c, businessProcess: u }, + businessProcesses: { fullName: u, isActive: !0, values: f }, + }); + } + } + return a; + }, + O1 = class { + constructor(t) { + this.allRecordTypes = []; + this.allBusinessProcesses = []; + this.logger = le.childFromRoot('SettingsGenerator'); + let r = t?.mdApiTmpDir ?? pi.env.getString('SFDX_MDAPI_TEMP_DIR'); + (this.shapeDirName = t?.shapeDirName ?? `shape_${Date.now()}`), + (this.packageFilePath = uc.join(this.shapeDirName, 'package.xml')); + let n; + t?.asDirectory + ? ((n = r ? uc.join(r, this.shapeDirName) : void 0), (this.writer = new y7(n))) + : ((n = r ? uc.join(r, `${this.shapeDirName}.zip`) : void 0), (this.writer = new v7(n))); + } + async extract(t) { + return ( + this.logger.debug('extracting settings from scratch definition file'), + (this.settingData = t.settings), + (this.objectSettingsData = t.objectSettings), + this.logger.debug('settings are', this.settingData), + { settings: this.settingData, objectSettings: this.objectSettingsData } + ); + } + hasSettings() { + return !(0, pi.isEmpty)(this.settingData) || !(0, pi.isEmpty)(this.objectSettingsData); + } + async createDeploy() { + let t = uc.join(this.shapeDirName, 'settings'), + r = uc.join(this.shapeDirName, 'objects'); + await Promise.all([ + this.writeSettingsIfNeeded(t), + this.writeObjectSettingsIfNeeded(r, this.allRecordTypes, this.allBusinessProcesses), + ]); + } + async deploySettingsViaFolder(t, r, n = pi.Duration.minutes(10)) { + let a = t.getUsername(), + o = await le.child('deploySettingsViaFolder'); + await this.createDeployPackageContents(r); + let s = t.getConnection(); + o.debug(`deploying to apiVersion: ${r}`), s.setApiVersion(r); + let { id: l } = await s.deploy(this.writer.buffer, {}); + o.debug(`deploying settings id ${l}`); + let u = await s.metadata.checkDeployStatus(l), + p = { + async poll() { + try { + return ( + (u = await s.metadata.checkDeployStatus(l, !0)), + o.debug(`Deploy id: ${l} status: ${u.status}`), + eNt.includes(u.status) ? { completed: !0, payload: u.status } : { completed: !1 } + ); + } catch (h) { + return ( + o.debug(`An error occurred trying to check deploy id: ${l}`), + o.debug(`Error: ${h.message}`), + o.debug('Re-trying deploy check again....'), + { completed: !1 } + ); + } + }, + timeout: n, + frequency: pi.Duration.seconds(1), + timeoutErrorName: 'DeployingSettingsTimeoutError', + }; + if ((await (await Un.create(p)).subscribe()) !== 'Succeeded') { + let h = (0, _ke.ensureObject)(u.details).componentFailures, + m = (Array.isArray(h) ? h : [h]).map((y) => `[${y.problemType}] ${y.fullName} : ${y.problem} `).join(` +`), + v = new Q( + `A scratch org was created with username ${a}, but the settings failed to deploy due to: +${m}`, + 'ProblemDeployingSettings' + ); + throw (v.setData(u), v); + } + } + async createDeployPackageContents(t) { + let r = tNt({ + allRecordTypes: this.allRecordTypes, + allBusinessProcesses: this.allBusinessProcesses, + apiVersion: t, + settingData: this.settingData, + objectSettingsData: this.objectSettingsData, + }), + n = _7.parse('Package', r); + await this.writer.addToStore(n, this.packageFilePath), await this.writer.finalize(); + } + getShapeDirName() { + return this.shapeDirName; + } + getDestinationPath() { + return this.writer.getDestinationPath(); + } + async writeObjectSettingsIfNeeded(t, r, n) { + this.objectSettingsData && + (await Promise.all( + Object.entries(this.objectSettingsData).map(([a, o]) => { + let s = iNt(a, o, r, n), + l = _7.parse('CustomObject', s); + return this.writer.addToStore(l, uc.join(t, (0, pi.upperFirst)(a) + '.object')); + }) + )); + } + async writeSettingsIfNeeded(t) { + this.settingData && + (await Promise.all( + Object.entries(this.settingData).map(([r, n]) => { + let a = (0, pi.upperFirst)(r), + o = a.replace('Settings', ''), + s = _7.parse(a, n); + return this.writer.addToStore(s, uc.join(t, o + '.settings')); + }) + )); + } + }; +var Ske = require('fs'), + Eke = W(qe()), + xke = W(Be()); +Ut(); +var wke = W(Be()); +ee.importMessagesDirectory(__dirname); +var rU = ee.loadMessages('@salesforce/core', 'scratchOrgFeatureDeprecation'), + nNt = { + simpleFeatureMapping: { SALESWAVE: ['DEVELOPMENTWAVE'], SERVICEWAVE: ['DEVELOPMENTWAVE'] }, + quantifiedFeatureMapping: {}, + deprecatedFeatures: [ + 'EXPANDEDSOURCETRACKING', + 'LISTCUSTOMSETTINGCREATION', + 'AppNavCapabilities', + 'EditInSubtab', + 'OldNewRecordFlowConsole', + 'OldNewRecordFlowStd', + 'DesktopLayoutStandardOff', + 'SplitViewOnStandardOff', + 'PopOutUtilities', + ], + }, + w7 = class { + constructor(t = nNt) { + (this.featureTypes = t), + (this.featureTypes.deprecatedFeatures = this.featureTypes.deprecatedFeatures.map((n) => n.toUpperCase())); + let r = {}; + Object.keys(this.featureTypes.simpleFeatureMapping).forEach((n) => { + r[n.toUpperCase()] = this.featureTypes.simpleFeatureMapping[n]; + }), + (this.featureTypes.simpleFeatureMapping = r); + } + getFeatureWarnings(t) { + let r = [], + n = ((0, wke.isString)(t) ? t : t.join(';')).toUpperCase(); + return ( + Object.keys(this.featureTypes.quantifiedFeatureMapping).forEach((a) => { + new RegExp(`${a};|${a},|${a}$`, 'i').test(n) && + r.push( + rU.getMessage('quantifiedFeatureWithoutQuantityWarning', [ + a, + this.featureTypes.quantifiedFeatureMapping[a], + ]) + ); + }), + Object.keys(this.featureTypes.simpleFeatureMapping).forEach((a) => { + if (new RegExp(`${a};|${a},|${a}$`, 'i').test(n)) { + let o = '[' + this.featureTypes.simpleFeatureMapping[a].map((s) => "'" + s + "'").join(',') + ']'; + r.push(rU.getMessage('mappedFeatureWarning', [a, o])); + } + }), + this.featureTypes.deprecatedFeatures.forEach((a) => { + n.includes(a) && r.push(rU.getMessage('deprecatedFeatureWarning', [a])); + }), + r + ); + } + filterDeprecatedFeatures(t) { + return t.reduce((r, n) => { + let a = n.toUpperCase(); + if (this.featureTypes.deprecatedFeatures.includes(a)) return r; + if (this.featureTypes.simpleFeatureMapping[a]) { + let o = this.featureTypes.simpleFeatureMapping[a]; + return [...r, ...o]; + } + return [...r, n]; + }, []); + } + }; +ee.importMessagesDirectory(__dirname); +var ll = ee.loadMessages('@salesforce/core', 'scratchOrgInfoGenerator'), + aNt = ['features', 'orgPreferences', 'edition', 'sourceOrg', 'settingsPath', 'releaseVersion', 'language'], + oNt = (e, t) => { + if (e.toLowerCase() === 'durationdays') throw new Q('unrecognizedScratchOrgOption', 'durationDays'); + if (e.toLowerCase() === 'snapshot') { + let r = aNt.filter((n) => n in t); + if (r.length > 0) + throw new Q(ll.getMessage('unsupportedSnapshotOrgCreateOptions', [r.join(', ')]), 'orgSnapshot'); + } + }, + sNt = async (e, t, r) => { + if (Reflect.has(e, 'package2AncestorIds')) + throw new Q(ll.getMessage('Package2AncestorsIdsKeyNotSupportedError'), 'DeprecationError'); + let n = (await t.getPackageDirectories()).filter((o) => o.ancestorId ?? o.ancestorVersion); + if (n.length === 0) return ''; + let a = await Promise.all( + n.map(async (o) => { + let s = t.get('packageAliases'), + l = s[(0, xke.ensureString)(o.package)] ?? o.package; + if (o.ancestorVersion === 'NONE' || o.ancestorId === 'NONE') return ''; + if (o.ancestorVersion === 'HIGHEST' || o.ancestorId === 'HIGHEST') { + let u = `SELECT Id FROM Package2Version WHERE Package2Id = '${l}' AND IsReleased = True AND IsDeprecated = False AND PatchVersion = 0 ORDER BY MajorVersion Desc, MinorVersion Desc, PatchVersion Desc, BuildNumber Desc LIMIT 1`; + try { + return (await r.getConnection().singleRecordQuery(u, { tooling: !0 })).Id; + } catch { + throw o.ancestorVersion === 'HIGHEST' + ? new Q( + ll.getMessage('NoMatchingAncestorError', [o.ancestorVersion, o.package]), + 'NoMatchingAncestorError', + [ll.getMessage('AncestorNotReleasedError', [o.ancestorVersion])] + ) + : new Q( + ll.getMessage('NoMatchingAncestorIdError', [o.ancestorId, o.package]), + 'NoMatchingAncestorIdError', + [ll.getMessage('AncestorNotReleasedError', [o.ancestorId])] + ); + } + } + if (o.ancestorVersion) { + if (!/^[0-9]+.[0-9]+.[0-9]+(.[0-9]+)?$/.test(o.ancestorVersion)) + throw ll.createError('InvalidAncestorVersionFormatError', [o.ancestorVersion]); + let [u, p, c] = o.ancestorVersion.split('.'), + f; + try { + f = await r + .getConnection() + .singleRecordQuery( + `SELECT Id, IsReleased FROM Package2Version WHERE Package2Id = '${l}' AND MajorVersion = ${u} AND MinorVersion = ${p} AND PatchVersion = ${c} and IsReleased = true`, + { tooling: !0 } + ); + } catch { + throw new Q( + ll.getMessage('NoMatchingAncestorError', [o.ancestorVersion, o.package]), + 'NoMatchingAncestorError', + [ll.getMessage('AncestorNotReleasedError', [o.ancestorVersion])] + ); + } + if (o.ancestorId && o.ancestorId !== f.Id) + throw ll.createError('AncestorIdVersionMismatchError', [o.ancestorVersion, o.ancestorId]); + return f.Id; + } + if (o?.ancestorId?.startsWith('05i')) return o.ancestorId; + if (o?.ancestorId?.startsWith('04t')) + return ( + await r + .getConnection() + .singleRecordQuery( + `SELECT Id FROM Package2Version WHERE SubscriberPackageVersionId = '${o.ancestorId}'`, + { tooling: !0 } + ) + ).Id; + if (o.ancestorId && s?.[o.ancestorId]) return s[o.ancestorId]; + throw new Q(`Invalid ancestorId ${o.ancestorId}`, 'InvalidAncestorId'); + }) + ); + return Array.from(new Set(a.filter((o) => o !== ''))).join(';'); + }, + Oke = async ({ hubOrg: e, scratchOrgInfoPayload: t, nonamespace: r, ignoreAncestorIds: n }) => { + let a; + try { + a = await Hn.create({}); + } catch {} + return ( + (t.orgName = t.orgName ?? 'Company'), + (t.package2AncestorIds = !n && a?.hasPackages() ? await sNt(t, a, e) : ''), + t.connectedAppConsumerKey || + (t.connectedAppConsumerKey = e.getConnection().getAuthInfoFields().clientId ?? fu.clientId), + !r && a?.get('namespace') && (t.namespace = a.get('namespace')), + (t.connectedAppCallbackUrl = `http://localhost:${await Ys.determineOauthPort()}/OauthRedirect`), + t + ); + }, + Tke = async (e) => { + let t = [], + r = { + ...(e.definitionfile ? await lNt(e.definitionfile) : {}), + ...(e.definitionjson ? JSON.parse(e.definitionjson) : {}), + ...(e.orgConfig ?? {}), + }; + Object.keys(r).forEach((a) => { + if (a[0].toUpperCase() === a[0]) throw new Q('InvalidJsonCasing', a); + }), + Object.keys(r).forEach((a) => { + oNt(a, r); + }), + e.connectedAppConsumerKey && (r.connectedAppConsumerKey = e.connectedAppConsumerKey), + (r.durationDays = e.durationDays); + let n = new w7(); + return ( + r.features && + (typeof r.features == 'string' && (r.features = r.features.split(/[;,]/)), + (t = n.getFeatureWarnings(r.features)), + (r.features = r.features.map((a) => a.trim())), + (r.features = n.filterDeprecatedFeatures(r.features).join(';'))), + { scratchOrgInfoPayload: r, ignoreAncestorIds: e.nonamespace ?? e.noancestors ?? !1, warnings: t } + ); + }, + lNt = async (e) => { + try { + let t = await Ske.promises.readFile(e, 'utf8'); + return (0, Eke.parseJson)(t); + } catch (t) { + let r = t; + throw r.name === 'JsonParseError' ? new Q(`An error occurred parsing ${e}`) : Q.wrap(r); + } + }; +ee.importMessagesDirectory(__dirname); +var u6 = ee.loadMessages('@salesforce/core', 'scratchOrgCreate'), + uNt = 6, + pNt = (e) => { + if (Number.isInteger(e)) { + if (e < 1) throw u6.createError('DurationDaysValidationMinError', [1, e]); + if (e > 30) throw u6.createError('DurationDaysValidationMaxError', [30, e]); + return; + } + throw u6.createError('DurationDaysNotIntError'); + }, + cNt = (e) => { + if (!Number.isInteger(e)) throw u6.createError('RetryNotIntError'); + }, + kke = async (e) => { + let [t, r] = await Promise.all([le.child('scratchOrgResume'), Qs.create(), ba({ stage: 'send request' })]); + if ((t.debug(`resuming scratch org creation for jobId: ${e}`), !r.has(e))) + throw u6.createError('CacheMissError', [e]); + let { + hubUsername: n, + apiVersion: a, + clientSecret: o, + signupTargetLoginUrlConfig: s, + definitionjson: l, + alias: u, + setDefault: p, + tracksSource: c, + } = r.get(e), + f = await rn.create({ aliasOrUsername: n }), + h = await l5(f, e); + await REe({ jobId: e, scratchOrgInfo: h, cache: r, hubUsername: n }); + let m = h.Username ?? h.SignupUsername, + y = (await (await rr.getInstance()).orgs.exists(m)) + ? await ot.create({ username: m }) + : await RF({ scratchOrgInfoComplete: h, hubOrg: f, clientSecret: o, signupTargetLoginUrlConfig: s, retry: 0 }), + S = await rn.create({ aliasOrUsername: m }), + w = await Sr.create(); + await ba({ stage: 'deploy settings', scratchOrgInfo: h }); + let O = new O1(); + await O.extract({ ...h, ...l }); + let [x] = await Promise.all([ + DF(y), + jF(S, O, a ?? w.getPropertyValue('org-api-version') ?? (await S.retrieveMaxApiVersion())), + ]); + await y.handleAliasAndDefaultSettings({ + alias: u, + setDefault: p ?? !1, + setDefaultDevHub: !1, + setTracksSource: c ?? !0, + }), + r.unset(h.Id ?? e); + let _ = x.getFields(); + return ( + await Promise.all([ba({ stage: 'done', scratchOrgInfo: h }), r.write(), IF(_)]), + { username: m, scratchOrgInfo: h, authInfo: x, authFields: _, warnings: [] } + ); + }, + S7 = async (e) => { + let t = await le.child('scratchOrgCreate'), + r = Date.now(); + t.debug('scratchOrgCreate'), await ba({ stage: 'prepare request' }); + let { + hubOrg: n, + connectedAppConsumerKey: a, + durationDays: o = 1, + nonamespace: s, + noancestors: l, + wait: u = iU.Duration.minutes(uNt), + retry: p = 0, + apiversion: c, + definitionjson: f, + definitionfile: h, + orgConfig: m, + clientSecret: v = void 0, + alias: y, + setDefault: S = !1, + tracksSource: w = !0, + } = e; + pNt(o), cNt(p); + let { + scratchOrgInfoPayload: O, + ignoreAncestorIds: x, + warnings: _, + } = await Tke({ + definitionjson: f, + definitionfile: h, + connectedAppConsumerKey: a, + durationDays: o, + nonamespace: s, + noancestors: l, + orgConfig: m, + }), + b = await Oke({ hubOrg: n, scratchOrgInfoPayload: O, nonamespace: s, ignoreAncestorIds: x }), + T = new O1(), + R = await T.extract(b); + t.debug(`the scratch org def file has settings: ${T.hasSettings()}`); + let [C, N] = await Promise.all([DEe(n, b, T), dNt()]), + A = (0, Cke.ensureString)(C.id), + j = await Qs.create(); + if ( + (j.set(A, { + hubUsername: n.getUsername(), + hubBaseUrl: n.getField(rn.Fields.INSTANCE_URL)?.toString(), + definitionjson: { ...(f ? JSON.parse(f) : {}), ...m, ...R }, + clientSecret: v, + alias: y, + setDefault: S, + tracksSource: w, + }), + await j.write(), + t.debug(`scratch org has recordId ${A}`), + u.minutes === 0) + ) { + let he = await l5(n, A); + return { username: he.SignupUsername, warnings: [], scratchOrgInfo: he }; + } + let U = await NEe(n, A, u), + z = await RF({ + scratchOrgInfoComplete: U, + hubOrg: n, + clientSecret: v, + signupTargetLoginUrlConfig: N, + retry: p || 0, + }), + K = await rn.create({ aliasOrUsername: U.Username ?? U.SignupUsername }), + te = K.getUsername(); + t.debug(`scratch org username ${te}`), await ba({ stage: 'deploy settings', scratchOrgInfo: U }); + let J = await Sr.create(), + [ie] = await Promise.all([ + DF(z), + jF( + K, + T, + c ?? J.getPropertyValue('org-api-version') ?? (await K.retrieveMaxApiVersion()), + iU.Duration.milliseconds(u.milliseconds - (Date.now() - r)) + ), + ]); + await z.handleAliasAndDefaultSettings({ alias: y, setDefault: S, setDefaultDevHub: !1, setTracksSource: w !== !1 }), + j.unset(A); + let oe = ie.getFields(); + return ( + await Promise.all([ba({ stage: 'done', scratchOrgInfo: U }), j.write(), IF(oe)]), + { username: te, scratchOrgInfo: U, authInfo: ie, authFields: ie?.getFields(), warnings: _ } + ); + }, + dNt = async () => { + try { + return (await (await Xg.resolve()).resolveProjectConfig()).signupTargetLoginUrl; + } catch {} + }; +ee.importMessagesDirectory(__dirname); +var Xn = ee.loadMessages('@salesforce/core', 'org'), + oU = ((r) => ((r.Scratch = 'scratch'), (r.Sandbox = 'sandbox'), r))(oU || {}), + sU = ((s) => ( + (s.EVENT_STATUS = 'status'), + (s.EVENT_ASYNC_RESULT = 'asyncResult'), + (s.EVENT_RESULT = 'result'), + (s.EVENT_AUTH = 'auth'), + (s.EVENT_RESUME = 'resume'), + (s.EVENT_MULTIPLE_SBX_PROCESSES = 'multipleMatchingSbxProcesses'), + s + ))(sU || {}), + fNt = ['Activating', 'Pending', 'Pending Activation', 'Processing', 'Sampling', 'Completed']; +function mNt(e) { + return fNt.includes(e); +} +var rn = class e extends Ea.AsyncOptionalCreatable { + constructor(r) { + super(r); + this.status = e.Status.UNKNOWN; + this.options = r ?? {}; + } + async createSandbox(r, n = { wait: Ea.Duration.minutes(6), async: !1, interval: Ea.Duration.seconds(30) }) { + this.logger.debug(r, 'CreateSandbox called with SandboxRequest'); + let a = await this.connection.tooling.create('SandboxInfo', r); + if ((this.logger.debug(a, 'Return from calling tooling.create'), Array.isArray(a) || !a.success)) + throw Xn.createError('sandboxInfoCreateFailed', [JSON.stringify(a)]); + let o = await this.querySandboxProcessBySandboxInfoId(a.id); + if ((this.logger.debug(o, 'Return from calling singleRecordQuery with tooling'), !!n.async)) + return await He.getInstance().emit('asyncResult', o), o; + let [l, u] = this.validateWaitOptions(n); + return ( + this.logger.debug(o, `create - pollStatusAndAuth sandboxProcessObj, max wait time of ${l.minutes} minutes`), + this.pollStatusAndAuth({ sandboxProcessObj: o, wait: l, pollInterval: u }) + ); + } + async cloneSandbox(r, n, a) { + return ( + (r.SourceId = (await this.querySandboxProcessBySandboxName(n)).SandboxInfoId), + this.logger.debug(`Clone sandbox sourceId ${r.SourceId}`), + this.createSandbox(r, a) + ); + } + async resumeSandbox(r, n = { wait: Ea.Duration.minutes(0), async: !1, interval: Ea.Duration.seconds(30) }) { + this.logger.debug(r, 'ResumeSandbox called with ResumeSandboxRequest'); + let a; + if (r.SandboxProcessObjId) a = await this.querySandboxProcessById(r.SandboxProcessObjId); + else if (r.SandboxName) + try { + a = await this.querySandboxProcessBySandboxName(r.SandboxName); + } catch (l) { + if (l instanceof Q && l.name === 'SingleRecordQuery_MultipleRecords' && l.data) { + let u = l.data; + (a = u[0]), await He.getInstance().emit('multipleMatchingSbxProcesses', u); + } else throw l; + } + else throw Xn.createError('sandboxNotFound', [r.SandboxName ?? r.SandboxProcessObjId]); + if ((this.logger.debug(a, 'Return from calling singleRecordQuery with tooling'), !mNt(a.Status))) + throw Xn.createError('sandboxNotResumable', [a.SandboxName, a.Status]); + await He.getInstance().emit('resume', a); + let [o, s] = this.validateWaitOptions(n); + if (o.seconds === 0) { + if (a.Status === 'Completed') { + let l = await this.sandboxSignupComplete(a); + if (l) { + await He.getInstance().emit('auth', l); + try { + return this.logger.debug(l, 'sandbox signup complete'), await this.writeSandboxAuthFile(a, l), a; + } catch {} + } + } + throw (await He.getInstance().emit('asyncResult', a), Xn.createError('sandboxCreateNotComplete')); + } + return ( + this.logger.debug(a, `resume - pollStatusAndAuth sandboxProcessObj, max wait time of ${o.minutes} minutes`), + this.pollStatusAndAuth({ sandboxProcessObj: a, wait: o, pollInterval: s }) + ); + } + async scratchOrgCreate(r) { + return S7({ ...r, hubOrg: this }); + } + async sandboxStatus(r, n) { + return this.authWithRetriesByName(r, n); + } + async cleanLocalOrgData(r, n = !1) { + let a; + try { + (a = await this.getLocalDataDir(r)), this.logger.debug(`cleaning data for path: ${a}`); + } catch (o) { + if (o instanceof Error && o.name === 'InvalidProjectWorkspaceError') return; + throw o; + } + return this.manageDelete(async () => aU.promises.rmdir(a), a, n); + } + async retrieveOrgUsersConfig() { + return sf.create(sf.getOptions(this.getOrgId())); + } + async remove(r = !1) { + if (this.getConnection().isUsingAccessToken()) return Promise.resolve(); + await this.removeSandboxConfig(), + await this.removeUsers(r), + await this.removeUsersConfig(), + await this.removeAuth(), + await this.removeSourceTrackingFiles(); + } + async isSandbox() { + return (await rr.getInstance()).sandboxes.hasFile(this.getOrgId()); + } + async checkScratchOrg(r) { + let n = r; + n || (n = this.configAggregator.getPropertyValue('target-dev-hub')); + let a = (await e.create({ aliasOrUsername: n })).getConnection(), + o = this.getConnection().getAuthInfoFields(), + l = `SELECT CreatedDate,Edition,ExpirationDate FROM ActiveScratchOrg WHERE ScratchOrg='${Kd(o.orgId)}'`; + try { + if ((await a.query(l)).records.length !== 1) throw new Q('No results', 'NoResultsError'); + } catch (u) { + throw u instanceof Error && u.name === 'INVALID_TYPE' ? Xn.createError('notADevHub', [a.getUsername()]) : u; + } + return o; + } + async getDevHubOrg() { + if (this.isDevHubOrg()) return this; + if (this.getField(e.Fields.DEV_HUB_USERNAME)) { + let r = (0, qr.ensureString)(this.getField(e.Fields.DEV_HUB_USERNAME)); + return e.create({ connection: await yn.create({ authInfo: await ot.create({ username: r }) }) }); + } + } + isDevHubOrg() { + let r = this.getField(e.Fields.IS_DEV_HUB); + return (0, qr.isBoolean)(r) ? r : !1; + } + async deleteFrom(r) { + typeof r == 'string' && (r = await e.create({ aggregator: this.configAggregator, aliasOrUsername: r })), + (await this.isSandbox()) ? await this.deleteSandbox(r) : await this.deleteScratchOrg(r); + } + async delete() { + let r = (0, qr.ensureString)(this.getUsername()), + n = await rr.getInstance(), + a = n.aliases.getAll(r); + await n.aliases.unsetValuesAndSave(a), + [...a, r].flatMap((o) => this.configAggregator.unsetByValue(o)), + (await this.isSandbox()) ? await this.deleteSandbox() : await this.deleteScratchOrg(); + } + async determineIfDevHubOrg(r = !1) { + let n = this.getField(e.Fields.IS_DEV_HUB); + if (!r && (0, qr.isBoolean)(n)) return n; + if (this.isDevHubOrg()) return !0; + this.logger.debug('isDevHub is not cached - querying server...'); + let a = this.getConnection(), + o = !1; + try { + await a.query('SELECT Id FROM ScratchOrgInfo limit 1'), (o = !0); + } catch {} + let s = (0, qr.ensure)(this.getUsername()), + l = await ot.create({ username: s }); + return await l.save({ isDevHub: o }), (this.connection = await yn.create({ authInfo: l })), o; + } + isScratch() { + let r = this.getField(e.Fields.IS_SCRATCH); + return (0, qr.isBoolean)(r) ? r : !1; + } + async tracksSource() { + let r = this.getField(e.Fields.TRACKS_SOURCE); + if ((0, qr.isBoolean)(r)) return r; + if (await this.determineIfScratch()) return await this.setTracksSource(!0), !0; + if (await this.determineIfSandbox()) { + let n = await this.supportsSourceTracking(); + return await this.setTracksSource(n), n; + } + return await this.setTracksSource(!1), !1; + } + async setTracksSource(r) { + return (await ot.create({ username: this.getUsername() })).handleAliasAndDefaultSettings({ + setDefault: !1, + setDefaultDevHub: !1, + setTracksSource: r, + }); + } + async determineIfScratch() { + let r = this.getField(e.Fields.IS_SCRATCH); + return r || (await this.updateLocalInformation(), (r = this.getField(e.Fields.IS_SCRATCH))), r; + } + async determineIfSandbox() { + let r = this.getField(e.Fields.IS_SANDBOX); + return r || (await this.updateLocalInformation(), (r = this.getField(e.Fields.IS_SANDBOX))), r; + } + async retrieveOrganizationInformation() { + return this.getConnection().singleRecordQuery( + 'SELECT Name, InstanceName, IsSandbox, TrialExpirationDate, NamespacePrefix FROM Organization' + ); + } + async updateLocalInformation() { + let r = this.getUsername(); + if (r) { + let n = await this.retrieveOrganizationInformation(), + a = n.IsSandbox && !!n.TrialExpirationDate, + o = n.IsSandbox && !n.TrialExpirationDate, + s = await rr.getInstance(); + s.orgs.update(r, { + [e.Fields.NAME]: n.Name, + [e.Fields.INSTANCE_NAME]: n.InstanceName, + [e.Fields.NAMESPACE_PREFIX]: n.NamespacePrefix, + [e.Fields.IS_SANDBOX]: o, + [e.Fields.IS_SCRATCH]: a, + [e.Fields.TRIAL_EXPIRATION_DATE]: n.TrialExpirationDate, + }), + await s.orgs.write(r); + } + } + async refreshAuth() { + this.logger.debug('Refreshing auth for org.'); + let r = { url: this.getConnection().baseUrl(), method: 'GET' }; + await this.getConnection().request(r); + } + async readUserAuthFiles() { + let n = await (await this.retrieveOrgUsersConfig()).read(), + a = (0, qr.ensure)(this.getUsername()), + o = (0, qr.ensureJsonArray)(n.usernames ?? [a]); + return Promise.all( + o.map((s) => + s === a + ? ot.create({ username: this.getConnection().getUsername() }) + : ot.create({ username: (0, qr.ensureString)(s) }) + ) + ); + } + async addUsername(r) { + if (!r) throw new Q('Missing auth info', 'MissingAuthInfo'); + let n = (0, qr.isString)(r) ? await ot.create({ username: r }) : r; + this.logger.debug(`adding username ${n.getFields().username}`); + let a = await this.retrieveOrgUsersConfig(), + s = (await a.read()).usernames ?? []; + if (!(0, qr.isArray)(s)) throw new Q('Usernames is not an array', 'UnexpectedDataFormat'); + let l = !1, + u = (0, qr.ensure)(this.getUsername()); + s.includes(u) || (s.push(u), (l = !0)); + let p = n.getFields().username; + return p && (s.push(p), (l = !0)), l && (a.set('usernames', s), await a.write()), this; + } + async removeUsername(r) { + if (!r) throw new Q('Missing auth info', 'MissingAuthInfoError'); + let n = (0, qr.isString)(r) ? await ot.create({ username: r }) : r; + this.logger.debug(`removing username ${n.getFields().username}`); + let a = await this.retrieveOrgUsersConfig(), + o = await a.read(), + s = n.getFields().username, + l = o.usernames ?? []; + return (o.usernames = l.filter((u) => u !== s)), await a.write(), this; + } + async setSandboxConfig(r, n) { + return (await rr.getInstance()).sandboxes.set(r, n), this; + } + async getSandboxConfig(r) { + return (await rr.getInstance()).sandboxes.read(r); + } + async retrieveMaxApiVersion() { + return this.getConnection().retrieveMaxApiVersion(); + } + getUsername() { + return this.getConnection().getUsername(); + } + getOrgId() { + return this.orgId ?? this.getField(e.Fields.ORG_ID); + } + getConfigAggregator() { + return this.configAggregator; + } + getField(r) { + let n = this[r]; + return n && typeof n != 'function' ? n : this.getConnection().getAuthInfoFields()[r]; + } + getFields(r) { + let n = {}; + return r.reduce((a, o) => ((a[o] = this.getField(o)), a), n); + } + getConnection(r) { + return ( + r && + (this.connection.getApiVersion() === r + ? this.logger.warn(`Default API version is already ${r}`) + : this.connection.setApiVersion(r)), + this.connection + ); + } + async supportsSourceTracking() { + if (this.isScratch()) return !0; + try { + return await this.getConnection().tooling.sobject('SourceMember').describe(), !0; + } catch (r) { + if (r.message.includes('The requested resource does not exist')) return !1; + throw r; + } + } + async querySandboxProcessBySandboxName(r) { + return this.querySandboxProcess(`SandboxName='${r}'`); + } + async querySandboxProcessBySandboxInfoId(r) { + return this.querySandboxProcess(`SandboxInfoId='${r}'`); + } + async querySandboxProcessById(r) { + return this.querySandboxProcess(`Id='${r}'`); + } + async querySandboxProcessByOrgId(r) { + return this.querySandboxProcess(`SandboxOrganization='${Kd(r)}'`); + } + async init() { + let r = await rr.getInstance(); + if ( + ((this.logger = (await le.child('Org')).getRawLogger()), + (this.configAggregator = this.options.aggregator ? this.options.aggregator : await Sr.create()), + this.options.connection) + ) + this.connection = this.options.connection; + else { + if (this.options.aliasOrUsername == null) { + this.configAggregator = this.getConfigAggregator(); + let a = this.options.isDevHub + ? this.configAggregator.getPropertyValue('target-dev-hub') + : this.configAggregator.getPropertyValue('target-org'); + this.options.aliasOrUsername = a ?? void 0; + } + let n = r.aliases.resolveUsername(this.options.aliasOrUsername); + if (!n) throw Xn.createError('noUsernameFound'); + this.connection = await yn.create({ + authInfo: await ot.create({ username: n, isDevHub: this.options.isDevHub }), + }); + } + this.orgId = this.getField(e.Fields.ORG_ID); + } + getDefaultOptions() { + throw new Q('Not Supported', 'NotSupportedError'); + } + async getLocalDataDir(r) { + let n = await Kr.resolveRootFolder(!1); + return (0, nU.join)(n, Oe.SFDX_STATE_FOLDER, r || 'orgs'); + } + async authWithRetriesByName(r, n) { + return this.authWithRetries(await this.queryLatestSandboxProcessBySandboxName(r), n); + } + async authWithRetries(r, n = { wait: Ea.Duration.minutes(0), interval: Ea.Duration.seconds(30) }) { + let [a, o] = this.validateWaitOptions(n); + return ( + this.logger.debug(r, `AuthWithRetries sandboxProcessObj, max wait time of ${a.minutes} minutes`), + this.pollStatusAndAuth({ sandboxProcessObj: r, wait: a, pollInterval: o }) + ); + } + async queryLatestSandboxProcessBySandboxName(r) { + let { tooling: n } = this.getConnection(); + this.logger.debug(`QueryLatestSandboxProcessBySandboxName called with SandboxName: ${r}`); + let a = `SELECT Id, Status, SandboxName, SandboxInfoId, LicenseType, CreatedDate, CopyProgress, SandboxOrganization, SourceId, Description, EndDate FROM SandboxProcess WHERE SandboxName='${r}' AND Status != 'D' ORDER BY CreatedDate DESC LIMIT 1`, + o = await n.query(a); + if ((this.logger.debug(o, 'Return from calling queryToolingApi'), o?.records?.length === 1)) return o.records[0]; + throw o.records && o.records.length > 1 + ? Xn.createError('MultiSandboxProcessNotFoundBySandboxName', [r]) + : Xn.createError('SandboxProcessNotFoundBySandboxName', [r]); + } + async queryProduction(r, n, a) { + return r.connection.singleRecordQuery( + `SELECT SandboxInfoId FROM SandboxProcess WHERE ${n} ='${a}' AND Status NOT IN ('D', 'E')`, + { tooling: !0 } + ); + } + async destroySandbox(r, n) { + return r.getConnection().tooling.delete('SandboxInfo', n); + } + async destroyScratchOrg(r, n) { + return r.getConnection().delete('ActiveScratchOrg', n); + } + async deleteSandbox(r) { + let n = await this.getSandboxConfig(this.getOrgId()); + r ??= await e.create({ aggregator: this.configAggregator, aliasOrUsername: n?.prodOrgUsername }); + let a = n?.sandboxInfoId; + if (!a) { + let o; + try { + let s = n?.sandboxName ?? (this.getUsername() ?? '').split(`${r.getUsername()}.`)[1]; + if (!s) throw (this.logger.debug('Sandbox name is not available'), new Error()); + this.logger.debug(`attempting to locate sandbox with sandbox ${s}`); + try { + o = await this.queryProduction(r, 'SandboxName', s); + } catch (l) { + throw (this.logger.debug(`Failed to find sandbox with sandbox name: ${s}`), l); + } + } catch { + let s = Kd(this.getOrgId()); + this.logger.debug(`defaulting to trimming id from ${this.getOrgId()} to ${s}`); + try { + (o = await this.queryProduction(r, 'SandboxOrganization', s)), (a = o.SandboxInfoId); + } catch { + this.logger.debug(`Failed find a SandboxProcess for the sandbox org: ${this.getOrgId()}`); + } + } + } + if (a) { + let o = await this.destroySandbox(r, a); + this.logger.debug(o, 'Return from calling tooling.delete'); + } + await this.remove(); + } + async deleteScratchOrg(r) { + if (((r ??= await this.getDevHubOrg()), !r)) throw Xn.createError('noDevHubFound'); + if (r.getOrgId() === this.getOrgId()) throw Xn.createError('deleteOrgHubError'); + try { + let n = r.getConnection(), + a = this.getUsername(), + o = (await n.singleRecordQuery(`SELECT Id FROM ActiveScratchOrg WHERE SignupUsername='${a}'`)).Id; + this.logger.trace(`found matching ActiveScratchOrg with SignupUsername: ${a}. Deleting...`), + await this.destroyScratchOrg(r, o), + await this.remove(); + } catch (n) { + throw ( + (this.logger.info(n instanceof Error ? n.message : n), + n instanceof Error && (n.name === 'INVALID_TYPE' || n.name === 'INSUFFICIENT_ACCESS_OR_READONLY') + ? (this.logger.info('Insufficient privilege to access ActiveScratchOrgs.'), + Xn.createError('insufficientAccessToDelete')) + : n instanceof Error && n.name === Dg.NoRecords + ? (this.logger.info('The above error can be the result of deleting an expired or already deleted org.'), + this.logger.info('attempting to cleanup the auth file'), + await this.removeAuth(), + Xn.createError('scratchOrgNotFound')) + : n) + ); + } + } + async removeAuth() { + let r = await rr.getInstance(), + n = this.getUsername(); + n && + (this.logger.debug(`Removing auth for user: ${n}`), + this.logger.debug(`Clearing auth cache for user: ${n}`), + await r.orgs.remove(n)); + } + async removeUsersConfig() { + let r = await this.retrieveOrgUsersConfig(); + (await r.exists()) && (this.logger.debug(`Removing org users config at: ${r.getPath()}`), await r.unlink()); + } + async manageDelete(r, n, a) { + return r().catch((o) => { + if (a) throw o; + this.logger.warn(`failed to read directory ${n}`); + }); + } + async removeUsers(r) { + let n = await rr.getInstance(); + this.logger.debug(`Removing users associate with org: ${this.getOrgId()}`); + let a = await this.retrieveOrgUsersConfig(); + this.logger.debug(`using path for org users: ${a.getPath()}`); + let o = (await this.readUserAuthFiles()).map((s) => s.getFields().username).filter(qr.isString); + await Promise.all( + o.map(async (s) => { + let l = + s === this.getUsername() + ? this + : await e.create({ connection: await yn.create({ authInfo: await ot.create({ username: s }) }) }), + u = this.isDevHubOrg() ? 'target-dev-hub' : 'target-org', + p = l.configAggregator.getInfo(u), + c = (p.isGlobal() || p.isLocal()) && (p.value === s || n.aliases.get(p.value) === s); + return [l.removeAuth(), c ? Kr.update(p.isGlobal(), u, void 0) : void 0].filter(Boolean); + }) + ), + await n.aliases.unsetValuesAndSave(o); + } + async removeSandboxConfig() { + await (await rr.getInstance()).sandboxes.remove(this.getOrgId()); + } + async writeSandboxAuthFile(r, n) { + if ( + (this.logger.debug(r, 'writeSandboxAuthFile sandboxProcessObj'), + this.logger.debug(n, 'writeSandboxAuthFile sandboxRes'), + n.authUserName) + ) { + let a = this.connection.getAuthInfoFields(); + this.logger.debug(a, 'Result from getAuthInfoFields: AuthFields'); + let o = { loginUrl: n.loginUrl, instanceUrl: n.instanceUrl, username: n.authUserName }; + a.privateKey + ? ((o.privateKey = a.privateKey), (o.clientId = a.clientId)) + : ((o.redirectUri = `http://localhost:${await Ys.determineOauthPort()}/OauthRedirect`), + (o.authCode = n.authCode)); + let s = await ot.create({ username: n.authUserName, oauth2Options: o, parentUsername: a.username }); + this.logger.debug( + { sandboxResAuthUsername: n.authUserName, productionAuthFieldsUsername: a.username, ...o }, + 'Creating AuthInfo for sandbox' + ), + await s.save(); + let l = s.getFields().orgId; + if (!l) throw Xn.createError('AuthInfoOrgIdUndefined'); + let u = { + sandboxUsername: n.authUserName, + sandboxOrgId: l, + prodOrgUsername: this.getUsername(), + sandboxName: r.SandboxName, + sandboxProcessId: r.Id, + sandboxInfoId: r.SandboxInfoId, + timestamp: new Date().toISOString(), + }; + await this.setSandboxConfig(l, u), + await (await rr.getInstance()).sandboxes.write(l), + await He.getInstance().emit('result', { sandboxProcessObj: r, sandboxRes: n }); + } else throw Xn.createError('missingAuthUsername', [r.SandboxName]); + } + async pollStatusAndAuth(r) { + this.logger.debug(r, 'PollStatusAndAuth called with SandboxProcessObject'); + let n = r.wait, + a = !1; + return ( + await Un.create({ + poll: async () => { + let s = await this.querySandboxProcessById(r.sandboxProcessObj.Id), + l = await this.sandboxSignupComplete(s); + if (l) { + await He.getInstance().emit('auth', l); + try { + return ( + this.logger.debug(l, 'sandbox signup complete with'), + await this.writeSandboxAuthFile(s, l), + { completed: !0, payload: s } + ); + } catch (u) { + let p = u; + if ( + (this.logger.debug('Exception while calling writeSandboxAuthFile', u), + p?.name === 'JwtAuthError' && p?.stack?.includes("user hasn't approved")) + ) + a = !0; + else throw Q.wrap(p); + } + } + return ( + await He.getInstance().emit('status', { + sandboxProcessObj: s, + remainingWait: n.seconds, + interval: r.pollInterval.seconds, + waitingOnAuth: a, + }), + (n = Ea.Duration.seconds(n.seconds - r.pollInterval.seconds)), + { completed: !1, payload: s } + ); + }, + frequency: r.pollInterval, + timeout: r.wait, + }) + ).subscribe(); + } + async querySandboxProcess(r) { + let n = `SELECT Id, Status, SandboxName, SandboxInfoId, LicenseType, CreatedDate, CopyProgress, SandboxOrganization, SourceId, Description, EndDate FROM SandboxProcess WHERE ${r} ORDER BY CreatedDate DESC`, + a = (await this.connection.tooling.query(n)).records.filter((o) => !o.Status.startsWith('Del')); + if (a.length === 0) throw new Q(`No record found for ${n}`, Dg.NoRecords); + if (a.length > 1) { + let o = new Q('The query returned more than 1 record', Dg.MultipleRecords); + throw ((o.data = a), o); + } + return a[0]; + } + async sandboxSignupComplete(r) { + if ((this.logger.debug('sandboxSignupComplete called with SandboxProcessObject', r), !!r.EndDate)) + try { + let n = this.connection.getAuthInfoFields(), + a = `http://localhost:${await Ys.determineOauthPort()}/OauthRedirect`, + o = { clientId: n.clientId, sandboxName: r.SandboxName, callbackUrl: a }; + this.logger.debug(o, 'Calling sandboxAuth with SandboxUserAuthRequest'); + let l = { + method: 'POST', + url: `${this.connection.tooling._baseUrl()}/sandboxAuth`, + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify(o), + }, + u = await this.connection.tooling.request(l); + return this.logger.debug(u, 'Result of calling sandboxAuth'), u; + } catch (n) { + let a = n; + if (a?.name === 'INVALID_STATUS') this.logger.debug('Error while authenticating the user', a?.toString()); + else throw Q.wrap(a); + } + } + validateWaitOptions(r) { + let n = r.wait ?? Ea.Duration.minutes(30), + a = r.interval ?? Ea.Duration.seconds(30), + o = r.async ? Ea.Duration.seconds(0) : a; + return (o = o.seconds > n.seconds ? n : o), [n, o]; + } + async removeSourceTrackingFiles() { + try { + let r = await Kr.resolveRootFolder(!1); + await aU.promises.rm((0, nU.join)(r, Oe.SF_STATE_FOLDER, 'orgs', this.getOrgId()), { recursive: !0, force: !0 }); + } catch (r) { + let n = Q.wrap(r); + this.logger.debug(`error deleting source tracking information for ${this.getOrgId()} error: ${n.message}`); + } + } +}; +((r) => { + let e; + ((l) => ((l.ACTIVE = 'ACTIVE'), (l.EXPIRED = 'EXPIRED'), (l.UNKNOWN = 'UNKNOWN'), (l.MISSING = 'MISSING')))( + (e = r.Status ||= {}) + ); + let t; + ((_) => ( + (_.ALIAS = 'alias'), + (_.CREATED = 'created'), + (_.NAME = 'name'), + (_.NAMESPACE_PREFIX = 'namespacePrefix'), + (_.INSTANCE_NAME = 'instanceName'), + (_.TRIAL_EXPIRATION_DATE = 'trailExpirationDate'), + (_.CREATED_ORG_INSTANCE = 'createdOrgInstance'), + (_.DEV_HUB_USERNAME = 'devHubUsername'), + (_.INSTANCE_URL = 'instanceUrl'), + (_.IS_DEV_HUB = 'isDevHub'), + (_.IS_SCRATCH = 'isScratch'), + (_.IS_SANDBOX = 'isSandbox'), + (_.LOGIN_URL = 'loginUrl'), + (_.ORG_ID = 'orgId'), + (_.STATUS = 'status'), + (_.SNAPSHOT = 'snapshot'), + (_.TRACKS_SOURCE = 'tracksSource') + ))((t = r.Fields ||= {})); +})((rn ||= {})); +ee.importMessagesDirectory(__dirname); +var ul = ee.loadMessages('@salesforce/core', 'core'); +function lU(e) { + let t = e.split('/'), + r = t.pop(), + n = t.pop(); + return { userId: r, orgId: n, url: e }; +} +var fu = { clientId: 'PlatformCLI', clientSecret: '' }, + ot = class e extends xa.AsyncOptionalCreatable { + constructor(r) { + super(r); + this.usingAccessToken = !1; + this.options = r ?? {}; + } + static getDefaultInstanceUrl() { + return Sr.getValue('org-instance-url')?.value ?? _e.PRODUCTION; + } + static async listAllAuthorizations(r = (n) => !!n) { + let n = await rr.getInstance(), + a = (await Sr.create()).getConfigInfo(), + o = await n.orgs.readAll(), + s = []; + for (let l of o) { + let u = (0, Ge.ensureString)(l.username), + p = n.aliases.getAll(u) ?? void 0, + c = a.filter((f) => p.includes(f.value) || f.value === u).map((f) => f.key); + try { + let f = await e.create({ username: u }), + { orgId: h, instanceUrl: m, devHubUsername: v, expirationDate: y, isDevHub: S } = f.getFields(); + s.push({ + aliases: p, + configs: c, + username: u, + instanceUrl: m, + isScratchOrg: !!v, + isDevHub: S ?? !1, + isSandbox: await n.sandboxes.hasFile(h), + orgId: h, + accessToken: f.getConnectionOptions().accessToken, + oauthMethod: f.isJwt() ? 'jwt' : f.isOauth() ? 'web' : 'token', + isExpired: v && y ? new Date((0, Ge.ensureString)(y)).getTime() < new Date().getTime() : 'unknown', + }); + } catch (f) { + s.push({ + aliases: p, + configs: c, + username: u, + orgId: l.orgId, + instanceUrl: l.instanceUrl, + accessToken: void 0, + oauthMethod: 'unknown', + error: f.message, + isExpired: 'unknown', + }); + } + } + return s.filter(r); + } + static async hasAuthentications() { + try { + let r = await (await rr.getInstance()).orgs.list(); + return !(0, xa.isEmpty)(r); + } catch (r) { + let n = r; + if (n.name === 'OrgDataNotAvailableError' || n.code === 'ENOENT') return !1; + throw n; + } + } + static getAuthorizationUrl(r, n) { + r.useVerifier = !0; + let a = n ?? new T1.OAuth2(r), + o = { + state: (0, Ake.randomBytes)(Math.ceil(6)).toString('hex'), + prompt: 'login', + scope: r.scope ?? xa.env.getString('SFDX_AUTH_SCOPES', 'refresh_token api web'), + }; + return a.getAuthorizationUrl(o); + } + static parseSfdxAuthUrl(r) { + let n = r.match( + /^force:\/\/([a-zA-Z0-9._-]+={0,2}):([a-zA-Z0-9._-]*={0,2}):([a-zA-Z0-9._-]+={0,2})@([a-zA-Z0-9._-]+)/ + ); + if (!n) + throw new Q( + `Invalid SFDX auth URL. Must be in the format "force://::@". Note that the SFDX auth URL uses the "force" protocol, and not "http" or "https". Also note that the "instanceUrl" inside the SFDX auth URL doesn't include the protocol ("https://").`, + 'INVALID_SFDX_AUTH_URL' + ); + let [, a, o, s, l] = n; + return { clientId: a, clientSecret: o, refreshToken: s, loginUrl: `https://${l}` }; + } + static async identifyPossibleScratchOrgs(r, n) { + let a = await le.child('Common', { tag: 'identifyPossibleScratchOrgs' }); + if (r.isDevHub || r.devHubUsername || !r.orgId) return; + a.debug('getting devHubs and prod orgs to identify scratch orgs and sandboxes'); + let o = await e.getDevHubAuthInfos(), + s = await e.listAllAuthorizations((l) => l && !l.isScratchOrg && !l.isSandbox); + a.debug(`found ${o.length} DevHubs`), + a.debug(`found ${s.length} possible prod orgs`), + !(o.length === 0 && s.length === 0) && + (await Promise.all([ + ...o.map(async (l) => { + try { + let u = await e.queryScratchOrg(l.username, r.orgId); + a.debug(`found orgId ${r.orgId} in devhub ${l.username}`); + try { + await n.save({ ...r, devHubUsername: l.username, expirationDate: u.ExpirationDate, isScratch: !0 }), + a.debug( + `set ${l.username} as devhub and expirationDate ${ + u.ExpirationDate + } for scratch org ${n.getUsername()}` + ); + } catch (p) { + a.debug(`error updating auth file for ${n.getUsername()}`, p); + } + } catch (u) { + u instanceof Error && u.name === 'NoActiveScratchOrgFound' + ? a.error(`devhub ${l.username} has no scratch orgs`, u) + : a.error(`Error connecting to devhub ${l.username}`, u); + } + }), + ...s.map(async (l) => { + await e.identifyPossibleSandbox(l, r, n, a); + }), + ])); + } + static async getDevHubAuthInfos() { + return e.listAllAuthorizations((r) => r?.isDevHub ?? !1); + } + static async identifyPossibleSandbox(r, n, a, o) { + if (n.orgId) + try { + let l = await (await rn.create({ aliasOrUsername: r.username })).querySandboxProcessByOrgId(n.orgId); + if (!l?.SandboxInfoId) return; + o.debug(`${n.orgId} is a sandbox of ${r.username}`); + try { + await a.save({ ...n, isScratch: !1, isSandbox: !0 }); + } catch (u) { + throw (o.debug(`error updating auth file for: ${a.getUsername()}`, u), u); + } + try { + let u = { + sandboxUsername: n.username, + sandboxOrgId: n.orgId, + prodOrgUsername: r.username, + sandboxName: l.SandboxName, + sandboxProcessId: l.Id, + sandboxInfoId: l.SandboxInfoId, + timestamp: new Date().toISOString(), + }, + p = await rr.getInstance(); + p.sandboxes.set(n.orgId, u), + o.debug(`writing sandbox auth file for: ${a.getUsername()} with ID: ${n.orgId}`), + await p.sandboxes.write(n.orgId); + } catch (u) { + o.debug(`error writing sandbox auth file for: ${a.getUsername()}`, u); + } + } catch { + o.debug(`${n.orgId} is not a sandbox of ${r.username}`); + } + } + static async queryScratchOrg(r, n) { + let a = await rn.create({ aliasOrUsername: r }), + o = Kd(n), + u = ( + await a + .getConnection() + .query( + `select Id, ExpirationDate, ScratchOrg from ScratchOrgInfo where ScratchOrg = '${o}' and Status = 'Active'` + ) + ).records.filter((p) => p.ScratchOrg === o)[0]; + if (u) return u; + throw new Q(`DevHub ${r} has no active scratch orgs that match ${o}`, 'NoActiveScratchOrgFound'); + } + getUsername() { + return this.username; + } + isJwt() { + let { refreshToken: r, privateKey: n } = this.getFields(); + return !r && !!n; + } + isAccessTokenFlow() { + let { refreshToken: r, privateKey: n } = this.getFields(); + return !r && !n; + } + isOauth() { + return !this.isAccessTokenFlow() && !this.isJwt(); + } + isRefreshTokenFlow() { + let { refreshToken: r, authCode: n } = this.getFields(); + return !n && !!r; + } + async save(r) { + this.update(r); + let n = (0, Ge.ensure)(this.getUsername()); + return sg(n) + ? (this.logger.debug('Username is an accesstoken. Skip saving authinfo to disk.'), this) + : (await this.stateAggregator.orgs.write(n), this.logger.info(`Saved auth info for username: ${n}`), this); + } + update(r) { + return ( + r && + (0, Ge.isPlainObject)(r) && + ((this.username = r.username ?? this.username), + this.stateAggregator.orgs.update(this.username, r), + this.logger.info(`Updated auth info for username: ${this.username}`)), + this + ); + } + getConnectionOptions() { + let r, + n = this.getFields(!0), + { accessToken: a, instanceUrl: o, loginUrl: s } = n; + return ( + this.isAccessTokenFlow() + ? (this.logger.info('Returning fields for a connection using access token.'), + (r = { accessToken: a, instanceUrl: o, loginUrl: s })) + : this.isJwt() + ? (this.logger.info('Returning fields for a connection using JWT config.'), + (r = { accessToken: a, instanceUrl: o, refreshFn: this.refreshFn.bind(this) })) + : (this.logger.info('Returning fields for a connection using OAuth config.'), + (r = { + oauth2: { + loginUrl: o ?? _e.PRODUCTION, + clientId: this.getClientId(), + redirectUri: this.getRedirectUri(), + }, + accessToken: a, + instanceUrl: o, + refreshFn: this.refreshFn.bind(this), + })), + r + ); + } + getClientId() { + return this.getFields()?.clientId ?? fu.clientId; + } + getRedirectUri() { + return 'http://localhost:1717/OauthRedirect'; + } + getFields(r) { + return this.stateAggregator.orgs.get(this.username, r) ?? {}; + } + getOrgFrontDoorUrl() { + let r = this.getFields(!0), + n = (0, Ge.ensureString)(r.instanceUrl).replace(/\/+$/, ''), + a = (0, Ge.ensureString)(r.accessToken); + return `${n}/secur/frontdoor.jsp?sid=${a}`; + } + isUsingAccessToken() { + return this.usingAccessToken; + } + getSfdxAuthUrl() { + let r = this.getFields(!0), + n = (0, Ge.ensure)(r.instanceUrl, 'undefined instanceUrl').replace(/^https?:\/\//, ''), + a = 'force://'; + return ( + r.clientId && (a += `${r.clientId}:${r.clientSecret ?? ''}:`), + (a += `${(0, Ge.ensure)(r.refreshToken, 'undefined refreshToken')}@${n}`), + a + ); + } + async handleAliasAndDefaultSettings(r) { + (r.alias || r.setDefault || r.setDefaultDevHub || typeof r.setTracksSource == 'boolean') && + (r.alias && (await this.setAlias(r.alias)), + r.setDefault && (await this.setAsDefault({ org: !0 })), + r.setDefaultDevHub && (await this.setAsDefault({ devHub: !0 })), + typeof r.setTracksSource == 'boolean' + ? await this.save({ tracksSource: r.setTracksSource }) + : await this.save()); + } + async setAsDefault(r = { org: !0 }) { + let n; + try { + n = await Kr.create({ isGlobal: !1 }); + } catch { + n = await Kr.create({ isGlobal: !0 }); + } + let a = (0, Ge.ensureString)(this.getUsername()), + s = this.stateAggregator.aliases.get(a) ?? a; + r.org && n.set('target-org', s), r.devHub && n.set('target-dev-hub', s), await n.write(); + } + async setAlias(r) { + this.stateAggregator.aliases.set(r, this.getUsername()), await this.stateAggregator.aliases.write(); + } + async init() { + this.stateAggregator = await rr.getInstance(); + let r = this.options.username, + n = this.options.oauth2Options ?? this.options.accessTokenOptions; + if (!r && !n) throw ul.createError('authInfoCreationError'); + if (r && n && (await this.stateAggregator.orgs.hasFile(r))) throw ul.createError('authInfoOverwriteError'); + let a = r ?? n?.username; + if ((a && ((this.username = a), await this.stateAggregator.orgs.read(a, !1, !1)), (0, Ge.isString)(a) && sg(a))) { + this.logger = await le.child('AuthInfo'); + let o = await Sr.create(), + s = this.getInstanceUrl(o, n); + this.update({ accessToken: a, instanceUrl: s, orgId: a.split('!')[0], loginUrl: s }), + (this.usingAccessToken = !0); + } else { + if (r && !n && !(await this.stateAggregator.orgs.exists(r))) throw ul.createError('namedOrgNotFound', [r]); + await this.initAuthOptions(n); + } + } + getInstanceUrl(r, n) { + return n?.instanceUrl ?? r.getPropertyValue('org-instance-url') ?? _e.PRODUCTION; + } + async initAuthOptions(r) { + this.logger = await le.child('AuthInfo'); + let n; + if (r) { + if (((r = (0, xa.cloneJson)(r)), this.isTokenOptions(r))) { + n = r; + let o = await this.retrieveUserInfo((0, Ge.ensureString)(r.instanceUrl), (0, Ge.ensureString)(r.accessToken)); + this.update({ username: o?.username, orgId: o?.organizationId }); + } else { + if (this.options.parentUsername) { + let o = await this.loadDecryptedAuthFromConfig(this.options.parentUsername); + (r.clientId = o.clientId), + process.env.SFDX_CLIENT_SECRET + ? (r.clientSecret = process.env.SFDX_CLIENT_SECRET) + : Object.assign(r, { + clientSecret: o.clientSecret, + privateKey: o.privateKey ? (0, uU.resolve)(o.privateKey) : o.privateKey, + }); + } + !r.privateKey && r.privateKeyFile && (r.privateKey = (0, uU.resolve)(r.privateKeyFile)), + r.privateKey + ? (n = await this.authJwt(r)) + : !r.authCode && r.refreshToken + ? (n = await this.buildRefreshTokenConfig(r)) + : this.options.oauth2 instanceof T1.OAuth2 + ? (n = await this.exchangeToken(r, this.options.oauth2)) + : (n = await this.exchangeToken(r)); + } + n.isDevHub = await this.determineIfDevHub( + (0, Ge.ensureString)(n.instanceUrl), + (0, Ge.ensureString)(n.accessToken) + ); + let a = await this.getNamespacePrefix((0, Ge.ensureString)(n.instanceUrl), (0, Ge.ensureString)(n.accessToken)); + a && (n.namespacePrefix = a), + n.username && (await this.stateAggregator.orgs.read(n.username, !1, !1)), + this.update(n); + } + return this; + } + async loadDecryptedAuthFromConfig(r) { + let n = this.stateAggregator.orgs.get(r, !0); + if (!n) throw ul.createError('namedOrgNotFound', [r]); + return n; + } + isTokenOptions(r) { + return ( + 'accessToken' in r && + !('refreshToken' in r) && + !('privateKey' in r) && + !('privateKeyFile' in r) && + !('authCode' in r) + ); + } + async refreshFn(r, n) { + this.logger.info('Access token has expired. Updating...'); + try { + let a = this.getFields(!0); + return await this.initAuthOptions(a), await this.save(), await n(null, a.accessToken); + } catch (a) { + let o = a; + return o?.message?.includes('Data Not Available') + ? await n(ul.createError('orgDataNotAvailableError', [this.getUsername()], [], o)) + : await n(o); + } + } + async readJwtKey(r) { + return Pke.promises.readFile(r, 'utf8'); + } + async authJwt(r) { + if (!r.clientId) throw ul.createError('missingClientId'); + let n = await this.readJwtKey((0, Ge.ensureString)(r.privateKey)), + { loginUrl: a = _e.PRODUCTION } = r, + o = new _e(a), + s = (this.getFields().createdOrgInstance ?? '').trim().toLowerCase(), + l = await o.getJwtAudienceUrl(s), + u, + p = [], + c = dS(l, a); + for (let [v, y] of c) + try { + u = await this.tryJwtAuth(r.clientId, v, y, n); + break; + } catch (S) { + let w = S, + O = w.message.includes('audience') ? `${w.message} [audience=${y} login=${v}]` : w.message; + p.push(O); + } + if (!u) + throw new Q( + ul.getMessage('jwtAuthErrors', [ + p.join(` +`), + ]), + 'JwtAuthError' + ); + let f = { + accessToken: (0, Ge.asString)(u.access_token), + orgId: lU((0, Ge.ensureString)(u.id)).orgId, + loginUrl: r.loginUrl, + privateKey: r.privateKey, + clientId: r.clientId, + }, + h = (0, Ge.ensureString)(u.instance_url), + m = new _e(h); + try { + await m.lookup(), (f.instanceUrl = h); + } catch { + this.logger.debug( + `Instance URL [${u.instance_url}] is not available. DNS lookup failed. Using loginUrl [${r.loginUrl}] instead. This may result in a "Destination URL not reset" error.` + ), + (f.instanceUrl = r.loginUrl); + } + return f; + } + async tryJwtAuth(r, n, a, o) { + let s = Rke.sign({ iss: r, sub: this.getUsername(), aud: a, exp: Date.now() + 300 }, o, { algorithm: 'RS256' }), + l = new T1.OAuth2({ loginUrl: n }); + return (0, Ge.ensureJsonMap)( + await l.requestToken({ grant_type: 'urn:ietf:params:oauth:grant-type:jwt-bearer', assertion: s }) + ); + } + async buildRefreshTokenConfig(r) { + r.clientId || ((r.clientId = fu.clientId), (r.clientSecret = fu.clientSecret)), + r.redirectUri || (r.redirectUri = this.getRedirectUri()); + let n = new T1.OAuth2(r), + a; + try { + a = await n.refreshToken((0, Ge.ensure)(r.refreshToken)); + } catch (l) { + throw ul.createError('refreshTokenAuthError', [l.message]); + } + let { orgId: o } = lU(a.id), + s = this.getUsername(); + if (!s) { + let l = await this.retrieveUserInfo(a.instance_url, a.access_token); + s = (0, Ge.ensureString)(l?.username); + } + return { + orgId: o, + username: s, + accessToken: a.access_token, + instanceUrl: a.instance_url, + loginUrl: r.loginUrl ?? a.instance_url, + refreshToken: r.refreshToken, + clientId: r.clientId, + clientSecret: r.clientSecret, + }; + } + async exchangeToken(r, n = new T1.OAuth2(r)) { + n.redirectUri || (n.redirectUri = this.getRedirectUri()), n.clientId || (n.clientId = this.getClientId()); + let a; + try { + this.logger.info(`Exchanging auth code for access token using loginUrl: ${r.loginUrl}`), + (a = await n.requestToken((0, Ge.ensure)(r.authCode))); + } catch (l) { + throw ul.createError('authCodeExchangeError', [l.message]); + } + let { orgId: o } = lU(a.id), + s = this.getUsername(); + return ( + s || (s = (await this.retrieveUserInfo(a.instance_url, a.access_token))?.username), + { + accessToken: a.access_token, + instanceUrl: a.instance_url, + orgId: o, + username: s, + loginUrl: r.loginUrl ?? a.instance_url, + refreshToken: a.refresh_token, + clientId: r.clientId, + clientSecret: r.clientSecret, + } + ); + } + async retrieveUserInfo(r, n) { + let a = 'v51.0', + o = (0, Ge.ensure)(r), + s = new _e(o), + l = `${s.toString()}services/oauth2/userinfo`, + u = Object.assign({ Authorization: `Bearer ${n}` }, Ws); + try { + this.logger.info(`Sending request for Username after successful auth code exchange to URL: ${l}`); + let p = await new p6.default().httpRequest({ url: l, method: 'GET', headers: u }); + if (p.statusCode >= 400) this.throwUserGetException(p); + else { + let c = (0, xa.parseJsonMap)(p.body), + f = `${s.toString()}services/data/${a}/sobjects/User/${c.user_id}`; + return ( + this.logger.info(`Sending request for User SObject after successful auth code exchange to URL: ${f}`), + (p = await new p6.default().httpRequest({ url: f, method: 'GET', headers: u })), + p.statusCode >= 400 + ? this.throwUserGetException(p) + : (c.preferred_username = (0, xa.parseJsonMap)(p.body).Username), + { username: c.preferred_username, organizationId: c.organization_id } + ); + } + } catch (p) { + throw ul.createError('authCodeUsernameRetrievalError', [p.message]); + } + } + throwUserGetException(r) { + let n = '', + a = r.body ?? JSON.stringify({ message: 'UNKNOWN', errorCode: 'UNKNOWN' }); + try { + let o = (0, xa.parseJson)(a); + (0, Ge.isArray)(o) + ? (n = o.map((s) => s.message ?? s.errorCode ?? 'UNKNOWN').join(Ike.EOL)) + : (n = o.message ?? o.errorCode ?? 'UNKNOWN'); + } catch { + n = `${a}`; + } + throw new Q(n); + } + async getNamespacePrefix(r, n) { + let a = 'v51.0', + o = (0, Ge.ensure)(r), + l = `${new _e(o).toString()}/services/data/${a}/query?q=Select%20Namespaceprefix%20FROM%20Organization`, + u = Object.assign({ Authorization: `Bearer ${n}` }, Ws); + try { + let p = await new p6.default().httpRequest({ url: l, method: 'GET', headers: u }); + if (p.statusCode >= 400) return; + let c = JSON.parse(p.body); + return (0, Ge.ensureString)(c.records[0]?.NamespacePrefix); + } catch { + return; + } + } + async determineIfDevHub(r, n) { + let a = 'v51.0', + o = (0, Ge.ensure)(r), + l = `${new _e(o).toString()}/services/data/${a}/query?q=SELECT%20Id%20FROM%20ScratchOrgInfo%20limit%201`, + u = Object.assign({ Authorization: `Bearer ${n}` }, Ws); + try { + return !((await new p6.default().httpRequest({ url: l, method: 'GET', headers: u })).statusCode >= 400); + } catch { + return !1; + } + } + }; +var jke = W(qe()); +Nt(); +ee.importMessagesDirectory(__dirname); +var hNt = ee.loadMessages('@salesforce/core', 'auth'), + E7 = class extends jke.AsyncOptionalCreatable { + async removeAuth(r) { + let n = await this.resolveUsername(r); + this.logger.debug(`Removing authorization for user ${n}`), + await this.unsetConfigValues(n), + await this.unsetAliases(n), + await this.unsetTokens(n), + await this.stateAggregator.orgs.remove(n); + } + async removeAllAuths() { + let r = this.findAllAuths(), + n = Object.keys(r); + for (let a of n) await this.removeAuth(a); + } + async findAuth(r) { + let n = await this.resolveUsername(r ?? this.getTargetOrg()); + return this.stateAggregator.orgs.get(n, !1, !0); + } + findAllAuths() { + return this.stateAggregator.orgs.getAll().reduce((n, a) => ({ ...n, [a.username]: a }), {}); + } + async init() { + (this.logger = await le.child(this.constructor.name)), + (this.config = await Sr.create()), + (this.stateAggregator = await rr.getInstance()), + await this.stateAggregator.orgs.readAll(); + } + async resolveUsername(r) { + return this.stateAggregator.aliases.resolveUsername(r); + } + getTargetOrg() { + let r = this.config.getInfo('target-org').value; + if (!r) throw hNt.createError('targetOrgNotSet'); + return r; + } + getAliases(r) { + return this.stateAggregator.aliases.getAll(r); + } + async unsetConfigValues(r) { + let n = this.getAliases(r); + this.logger.debug(`Clearing config keys for username ${r} and aliases: ${n.join(',')}`); + let a = [this.config.getGlobalConfig(), this.config.getLocalConfig()]; + for (let o of a) + if (o) { + let s = o.getKeysByValue(r) || [], + l = n + .map((p) => o.getKeysByValue(p)) + .filter((p) => !!p) + .reduce((p, c) => p.concat(c), []), + u = s.concat(l); + this.logger.debug(`Found these config keys to remove: ${u.join(',')}`), + u.forEach((p) => { + try { + o.unset(p); + } catch { + this.logger.debug(`Failed to remove ${p}`); + } + }), + await o.write(); + } + } + async unsetAliases(r) { + this.logger.debug(`Clearing aliases for username: ${r}`); + let n = this.stateAggregator.aliases.getAll(r); + n.length !== 0 && + (this.logger.debug(`Found these aliases to remove: ${n.join(',')}`), + n.forEach((a) => this.stateAggregator.aliases.unset(a)), + await this.stateAggregator.aliases.write()); + } + async unsetTokens(r) { + this.logger.debug(`Clearing tokens for username: ${r}`); + let n = this.stateAggregator.tokens.getAll(); + for (let [a, o] of Object.entries(n)) o.user === r && this.stateAggregator.tokens.unset(a); + await this.stateAggregator.tokens.write(); + } + }; +var pU = require('os'), + x7 = W(qe()), + Dke = W(Be()); +Nt(); +Ut(); +ee.importMessagesDirectory(__dirname); +var Ff = ee.loadMessages('@salesforce/core', 'permissionSetAssignment'), + C1 = class e { + constructor(t, r) { + (this.logger = r), (this.org = t); + } + static async init(t) { + if (!t) throw Ff.createError('orgRequired'); + return new e(t, await le.child('PermissionSetAssignment')); + } + async create(t, r) { + if (!t) throw Ff.createError('userIdRequired'); + if (!r) throw Ff.createError('permSetRequired'); + let { nsPrefix: n, permSetName: a } = this.parsePermissionSetString(r), + o = `SELECT Id FROM PermissionSet WHERE Name='${a}'`; + n && (o += ` AND NamespacePrefix='${n}'`); + let l = (await this.org.getConnection().query(o))?.records[0]?.Id; + if (!l) + throw n + ? Ff.createError('assignCommandPermissionSetNotFoundForNSError', [a, n]) + : Ff.createError('assignCommandPermissionSetNotFoundError', [a]); + let u = { assigneeId: t, permissionSetId: l }, + p = await this.org + .getConnection() + .sobject('PermissionSetAssignment') + .create((0, x7.mapKeys)(u, (c, f) => (0, x7.upperFirst)(f))); + if ((0, Dke.hasArray)(p, 'errors') && p.errors.length > 0) { + let c = Ff.getMessage('errorsEncounteredCreatingAssignment'), + f = p.errors; + throw f && f.length > 0 + ? ((c = `${c}:${pU.EOL}`), + f.forEach((h) => { + c = `${c}${h}${pU.EOL}`; + }), + new Q(c, 'errorsEncounteredCreatingAssignment')) + : Ff.createError('notSuccessfulButNoErrorsReported'); + } else return u; + } + parsePermissionSetString(t) { + let r = RegExp(/(\w+(?=__))(__)(.*)/).exec(t), + n, + a; + if (r) + try { + (n = r[1]), (a = r[3]), this.logger.debug(`Using namespacePrefix ${n} for permission set ${a}`); + } catch (o) { + this.logger.debug(o); + } + else a = t; + return { nsPrefix: n, permSetName: a }; + } + }; +var cU = require('os'), + xn = W(qe()), + Er = W(Be()), + Fke = W(Rv()); +Nt(); +Ut(); +Vs(); +var Nke = (e) => Math.floor(Math.random() * e.length), + O7 = { + LOWER: 'abcdefghijklmnopqrstuvwxyz', + UPPER: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', + NUMBERS: '1234567890', + SYMBOLS: ['!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '_', '[', ']', '|', '-'], + }, + qke = { + 0: { LOWER: !0 }, + 1: { LOWER: !0, NUMBERS: !0 }, + 2: { LOWER: !0, SYMBOLS: !0 }, + 3: { LOWER: !0, UPPER: !0, NUMBERS: !0 }, + 4: { LOWER: !0, NUMBERS: !0, SYMBOLS: !0 }, + 5: { LOWER: !0, UPPER: !0, NUMBERS: !0, SYMBOLS: !0 }, + }, + gNt = '/services/scim/v1/Users', + vNt = { 'auto-approve-user': 'true' }; +ee.importMessagesDirectory(__dirname); +var pc = ee.loadMessages('@salesforce/core', 'user'), + on = { + id: 'id', + username: 'username', + lastName: 'lastName', + alias: 'alias', + timeZoneSidKey: 'timeZoneSidKey', + localeSidKey: 'localeSidKey', + emailEncodingKey: 'emailEncodingKey', + profileId: 'profileId', + languageLocaleKey: 'languageLocaleKey', + email: 'email', + }; +async function Lke(e, t) { + let r = await yn.create({ authInfo: await ot.create({ username: t }) }); + sg(t) + ? (e.debug('received an accessToken for the username. Converting...'), + (t = (await r.identity()).username), + e.debug(`accessToken converted to ${t}`)) + : e.debug('not a accessToken'); + let a = `SELECT ${Object.keys(on).map(xn.upperFirst)} FROM User WHERE Username='${t}'`, + o = await r.query(a); + if ((e.debug('Successfully retrieved the admin user for this org.'), o.totalSize === 1)) { + let s = (0, xn.mapKeys)(o.records[0], (u, p) => (0, xn.lowerFirst)(p)); + return { + id: (0, Er.ensureString)(s[on.id]), + username: t, + alias: (0, Er.ensureString)(s[on.alias]), + email: (0, Er.ensureString)(s[on.email]), + emailEncodingKey: (0, Er.ensureString)(s[on.emailEncodingKey]), + languageLocaleKey: (0, Er.ensureString)(s[on.languageLocaleKey]), + localeSidKey: (0, Er.ensureString)(s[on.localeSidKey]), + profileId: (0, Er.ensureString)(s[on.profileId]), + lastName: (0, Er.ensureString)(s[on.lastName]), + timeZoneSidKey: (0, Er.ensureString)(s[on.timeZoneSidKey]), + }; + } else throw pc.createError('userQueryFailed', [t]); +} +async function yNt(e, t) { + if (!DD(e)) { + let r = `SELECT Id FROM Profile WHERE name='${e}'`, + n = await t.query(r); + if (n.records.length > 0) return n.records[0].Id; + } + return e; +} +var T7 = class extends xn.AsyncCreatable { + constructor(r) { + super(r); + this.options = r || { templateUser: '' }; + } + getFields() { + return this.userFields; + } + async init() { + (this.logger = await le.child('DefaultUserFields')), + (this.userFields = await Lke(this.logger, this.options.templateUser)), + (this.userFields.profileId = await yNt( + 'Standard User', + await yn.create({ authInfo: await ot.create({ username: this.options.templateUser }) }) + )), + this.logger.debug(`Standard User profileId: ${this.userFields.profileId}`), + this.options.newUserName + ? (this.userFields.username = this.options.newUserName) + : (this.userFields.username = `${Date.now()}_${this.userFields.username}`); + } + }, + C7 = class e extends xn.AsyncCreatable { + constructor(r) { + super(r); + this.org = r.org; + } + static generatePasswordUtf8(r = { length: 13, complexity: 5 }) { + if (!qke[r.complexity]) { + let o = pc.getMessage('complexityOutOfBound'); + throw new Q(o, 'complexityOutOfBound'); + } + if (r.length < 8 || r.length > 1e3) { + let o = pc.getMessage('lengthOutOfBound'); + throw new Q(o, 'lengthOutOfBound'); + } + let n = []; + ['SYMBOLS', 'NUMBERS', 'UPPER', 'LOWER'].forEach((o) => { + qke[r.complexity][o] && n.push(O7[o][Nke(O7[o])]); + }), + (n = n.concat( + Array(Math.max(r.length - n.length, 0)) + .fill('0') + .map(() => O7.LOWER[Nke(O7.LOWER)]) + )), + (n = n.sort(() => Math.random() - 0.5)); + let a = new Rp(); + return a.consume(Buffer.from(n.join(''), 'utf8')), a; + } + async init() { + (this.logger = await le.child('User')), await this.org.refreshAuth(), this.logger.debug('Auth refresh ok'); + } + async assignPassword(r, n = e.generatePasswordUtf8()) { + this.logger.debug( + `Attempting to set password for userId: ${r.getFields().userId} username: ${r.getFields().username}` + ); + let a = await yn.create({ authInfo: r }); + return new Promise((o, s) => { + n.value(async (l) => { + try { + await a.soap.setPassword((0, Er.ensureString)(r.getFields().userId), l.toString('utf8')), + this.logger.debug(`Set password for userId: ${r.getFields().userId}`), + o(); + } catch (u) { + s(u); + } + }); + }); + } + async assignPermissionSets(r, n) { + if (!r) throw pc.createError('missingId'); + if (!n) throw pc.createError('permsetNamesAreRequired'); + let a = await C1.init(this.org); + await Promise.all(n.map((o) => a.create(r, o))); + } + async createUser(r) { + let n = await this.createUserInternal(r), + o = (await ot.create({ username: this.org.getUsername() })).getFields(!0), + s = { + loginUrl: o.instanceUrl ?? o.loginUrl, + refreshToken: n.buffer.value((p) => p.toString('utf8')), + clientId: o.clientId, + clientSecret: o.clientSecret, + privateKey: o.privateKey, + }, + l = await ot.create({ username: r.username, oauth2Options: s }), + u = l.getFields(); + return (u.userId = n.userId), await this.describeUserAndSave(l), await this.org.addUsername(l), l; + } + async retrieve(r) { + return Lke(this.logger, r); + } + async describeUserAndSave(r) { + let n = await yn.create({ authInfo: r }); + if ((this.logger.debug(`Created connection for user: ${r.getUsername()}`), (await n.describe('User'))?.fields)) + return await r.save(), r; + throw pc.createError('permsetNamesAreRequired'); + } + async createUserInternal(r) { + if (!r) throw pc.createError('missingFields'); + let n = this.org.getConnection(), + a = JSON.stringify({ + username: r.username, + emails: [r.email], + name: { familyName: r.lastName }, + nickName: r.username.substring(0, 40), + entitlements: [{ value: r.profileId }], + }); + this.logger.debug(`user create request body: ${a}`); + let o = n.normalizeUrl(gNt); + this.logger.debug(`scimUrl: ${o}`); + let s = { method: 'POST', url: o, headers: vNt, body: a }, + l = await this.rawRequest(n, s), + u = (0, xn.parseJsonMap)((0, Er.ensureString)(l.body)), + p = (0, Er.asNumber)(l.statusCode); + if ((this.logger.debug(`user create response.statusCode: ${l.statusCode}`), !(p === 201 || p === 200))) { + let m = pc.getMessage('invalidHttpResponseCreatingUser', [p]); + if (u) { + let v = (0, Er.asJsonArray)(u.Errors); + v && + v.length > 0 && + ((m = `${m} causes:${cU.EOL}`), + v.forEach((y) => { + (0, Er.isJsonMap)(y) && (m = `${m}${cU.EOL}${y.description}`); + })); + } + throw (this.logger.debug(m), new Q(m, 'UserCreateHttpError')); + } + (r.id = (0, Er.ensureString)(u.id)), await this.updateRequiredUserFields(r); + let c = new Rp(), + f = (0, Er.ensureJsonMap)(l.headers), + h = (0, Er.ensureString)(f['auto-approve-user']); + return c.consume(Buffer.from(h)), { buffer: c, userId: r.id }; + } + async rawRequest(r, n) { + return new Promise((a, o) => { + let s = new Fke.HttpApi(r, n); + s.on('response', (l) => a(l)), s.request(n).catch(o); + }); + } + async updateRequiredUserFields(r) { + let n = (0, xn.omit)(r, [on.username, on.email, on.lastName, on.profileId]), + a = (0, xn.mapKeys)(n, (o, s) => (0, xn.upperFirst)(s)); + await this.org.getConnection().sobject('User').update(a), + this.logger.debug(`Successfully Updated additional properties for user: ${r.username}`); + } + }; +Ut(); +ee.importMessagesDirectory(__dirname); +var bNt = ee.loadMessages('@salesforce/core', 'auth'); +async function _Nt(e = 1e3) { + return new Promise((t) => { + setTimeout(t, e); + }); +} +async function Mke(e) { + let t = await new Uke.default().httpRequest(e), + r = (0, k1.parseJsonMap)(t.body); + if (r.error) { + let n = typeof r.error_description == 'string' ? r.error_description : '', + a = typeof r.error == 'string' ? r.error : 'Unknown', + o = new Q(`Request Failed: ${a} ${n}`); + throw ((o.data = Object.assign(r, { status: t.statusCode })), o); + } else return r; +} +var A7 = class e extends k1.AsyncCreatable { + constructor(r) { + super(r); + this.pollingCount = 0; + (this.options = r), + this.options.clientId || (this.options.clientId = fu.clientId), + this.options.loginUrl || (this.options.loginUrl = ot.getDefaultInstanceUrl()); + } + static { + this.RESPONSE_TYPE = 'device_code'; + } + static { + this.GRANT_TYPE = 'device'; + } + static { + this.SCOPE = 'refresh_token web api'; + } + static { + this.POLLING_COUNT_MAX = 100; + } + async requestDeviceLogin() { + let r = this.getDeviceFlowRequestUrl(), + n = this.getLoginOptions(r); + return Mke(n); + } + async awaitDeviceApproval(r) { + let n = this.getDeviceFlowRequestUrl(), + a = this.getPollingOptions(n, r.device_code), + o = k1.Duration.seconds(r.interval).milliseconds; + return this.pollForDeviceApproval(a, o); + } + async authorizeAndSave(r) { + let n = await ot.create({ + oauth2Options: { + loginUrl: r.instance_url, + refreshToken: r.refresh_token, + clientSecret: this.options.clientSecret, + clientId: this.options.clientId, + }, + }); + return await n.save(), n; + } + async init() { + (this.logger = await le.child(this.constructor.name)), + this.logger.debug(`this.options.clientId: ${this.options.clientId}`), + this.logger.debug(`this.options.loginUrl: ${this.options.loginUrl}`); + } + getLoginOptions(r) { + let n = new dU.default(); + return ( + n.append('client_id', (0, k7.ensureString)(this.options.clientId)), + n.append('response_type', e.RESPONSE_TYPE), + n.append('scope', e.SCOPE), + { url: r, headers: { ...Ws, ...n.getHeaders() }, method: 'POST', body: n.getBuffer() } + ); + } + getPollingOptions(r, n) { + let a = new dU.default(); + return ( + a.append('client_id', (0, k7.ensureString)(this.options.clientId)), + a.append('grant_type', e.GRANT_TYPE), + a.append('code', n), + { url: r, headers: { ...Ws, ...a.getHeaders() }, method: 'POST', body: a.getBuffer() } + ); + } + getDeviceFlowRequestUrl() { + return `${(0, k7.ensureString)(this.options.loginUrl)}/services/oauth2/token`; + } + async poll(r) { + this.logger.debug(`polling for device approval (attempt ${this.pollingCount} of ${e.POLLING_COUNT_MAX})`); + try { + return await Mke(r); + } catch (n) { + let a = n.data; + if (!(a.error && a.status === 400 && a.error === 'authorization_pending')) + throw ( + (a.error && a.error_description + ? this.logger.error(`Polling error: ${a.error}: ${a.error_description}`) + : (this.logger.error('Unknown Polling Error:'), this.logger.error(a)), + a) + ); + } + } + shouldContinuePolling() { + return this.pollingCount < e.POLLING_COUNT_MAX; + } + async pollForDeviceApproval(r, n) { + this.logger.debug('BEGIN POLLING FOR DEVICE APPROVAL'); + let a; + for (; this.shouldContinuePolling(); ) + if (((a = await this.poll(r)), a)) { + this.logger.debug('POLLING FOR DEVICE APPROVAL SUCCESS'); + break; + } else this.logger.debug(`waiting ${n} ms...`), await _Nt(n), (this.pollingCount += 1); + if (this.pollingCount >= e.POLLING_COUNT_MAX) + throw ( + (this.logger.error(`Polling timed out because max polling was hit: ${this.pollingCount}`), + bNt.createError('pollingTimeout')) + ); + return a; + } +}; +var $ke = W(qe()); +Yi(); +var I7 = class e extends jp { + static getDefaultOptions() { + return { + isGlobal: !0, + isState: !0, + filename: e.getFileName(), + stateFolder: Oe.SF_STATE_FOLDER, + ttl: $ke.Duration.days(14), + }; + } + static async unset(t) { + let r = await e.create(); + r.unset(t), await r.write(); + } + static async set(t, r) { + let n = await e.create(); + n.set(t, r), await n.write(); + } + static getFileName() { + return 'sandbox-create-cache.json'; + } +}; +Yi(); +Ya(); +Vo(); +Vo(); +async function Bke(e) { + return e.loginUrl ? new _e(e.loginUrl).getJwtAudienceUrl(e.createdOrgInstance) : _e.PRODUCTION; +} +Nt(); +var mr = W(Be()); +Ut(); +var fU = class { + renderName(t) { + return t; + } + renderTitle(t) { + return t; + } + renderDescription(t) { + return t; + } + renderType(t) { + return t; + } + }, + P7 = class { + constructor(t, r, n = new fU()) { + this.schema = r; + this.propertyRenderer = n; + this.lines = []; + if (((this.logger = t.child('SchemaPrinter')), !this.schema.properties && !this.schema.items)) + throw new Q('There is no purpose to print a schema with no properties or items'); + let a = 0, + o = this.addFn(a); + this.schema.properties + ? (typeof this.schema.description == 'string' && (o(this.schema.description), o('')), + Object.keys(this.schema.properties).forEach((s) => { + let l = (0, mr.asJsonMap)(this.schema.properties); + l && (this.parseProperty(s, (0, mr.asJsonMap)(l[s]), a), o('')); + })) + : this.parseProperty('schema', this.schema, a); + } + getLines() { + return this.lines; + } + getLine(t) { + return this.lines[t]; + } + print() { + this.lines.forEach((t) => this.logger.info(t)); + } + addFn(t) { + let r = ' '.repeat(t * 4); + return (n) => { + this.lines.push(`${r}${n}`); + }; + } + parseProperty(t, r, n = 0) { + if (!r) return; + let a = this.addFn(n), + o = new mU(this.logger, this.schema, t, r, this.propertyRenderer); + a(o.renderHeader()), + o.type === 'object' && + o.properties && + Object.keys(o.properties).forEach((s) => { + this.parseProperty(s, o.getProperty(s), n + 1); + }), + o.type === 'array' && + (a(` ${o.renderArrayHeader()}`), + o.items && + o.items.type === 'object' && + o.items.properties && + Object.keys(o.items.properties).forEach((s) => { + let l = (0, mr.asJsonMap)(o.items); + if (!l) return; + let u = (0, mr.asJsonMap)(l.properties); + u && this.parseProperty(s, (0, mr.asJsonMap)(u[s]), n + 2); + })), + o.required && a(`Required: ${o.required.join(', ')}`); + } + }, + mU = class e { + constructor(t, r, n, a, o) { + this.logger = t; + this.schema = r; + this.name = n; + this.rawProperty = a; + this.propertyRenderer = o; + (this.name = n), + typeof this.rawProperty.$ref == 'string' && + (this.rawProperty = Object.assign({}, Vke(this.schema, this.rawProperty), a)); + let s = (0, mr.asJsonArray)(this.rawProperty.oneOf); + s && + !this.rawProperty.type && + (this.rawProperty.type = s.map((l) => ((0, mr.isJsonMap)(l) ? l.type ?? l.$ref : l)).join('|')), + (0, mr.isJsonMap)(this.items) && + this.items && + this.items.$ref && + Object.assign(this.items, Vke(this.schema, this.items)); + } + get title() { + return (0, mr.asString)(this.rawProperty.title); + } + get description() { + return (0, mr.asString)(this.rawProperty.description); + } + get type() { + return (0, mr.asString)(this.rawProperty.type); + } + get required() { + return (0, mr.asJsonArray)(this.rawProperty.required); + } + get properties() { + return (0, mr.asJsonMap)(this.rawProperty.properties); + } + get items() { + return (0, mr.asJsonMap)(this.rawProperty.items); + } + get minItems() { + return (0, mr.asNumber)(this.rawProperty.minItems); + } + getProperty(t) { + let r = this.getProperties(); + return (0, mr.asJsonMap)(r?.[t]); + } + getProperties() { + return (0, mr.asJsonMap)(this.rawProperty.properties); + } + renderName() { + return this.propertyRenderer.renderName(this.name); + } + renderTitle() { + return this.propertyRenderer.renderTitle(this.title ?? ''); + } + renderDescription() { + return this.propertyRenderer.renderDescription(this.description ?? ''); + } + renderType() { + return this.propertyRenderer.renderType(this.type ?? ''); + } + renderHeader() { + return `${this.renderName()}(${this.renderType()}) - ${this.renderTitle()}: ${this.renderDescription()}`; + } + renderArrayHeader() { + if (!this.items) return ''; + let t = this.minItems ? ` - min ${this.minItems}` : '', + r = new e(this.logger, this.schema, 'items', this.items, this.propertyRenderer); + return `items(${r.renderType()}${t}) - ${r.renderTitle()}: ${r.renderDescription()}`; + } + }; +function Vke(e, t) { + let r = t.$ref; + return !r || typeof r != 'string' + ? null + : r.split('/').reduce((n, a) => { + let o = n[a]; + return a === '#' ? e : (0, mr.isJsonMap)(o) ? o : {}; + }, t); +} +Ut(); +og(); +var Gke = require('url'), + xu = W(qe()), + f6 = W(Be()), + Wke = W(RR()); +Nt(); +Ut(); +var zke = require('events'), + c6 = class extends zke.EventEmitter {}; +ee.importMessagesDirectory(__dirname); +var d6 = ee.loadMessages('@salesforce/core', 'streaming'); +function Hke(e, t) { + if (e.milliseconds >= t.milliseconds) return e; + throw d6.createError('waitParamValidValueError', [t.minutes]); +} +var A1 = class e extends xu.AsyncOptionalCreatable { + constructor(r) { + super(r); + this.options = (0, f6.ensure)(r); + let n = (0, f6.ensure)(this.options.org.getConnection().getAuthInfoFields().instanceUrl); + (this.targetUrl = (0, Gke.resolve)(n, `cometd/${this.options.apiVersion}`)), + (this.cometClient = this.options.streamingImpl.getCometClient(this.targetUrl)), + this.options.streamingImpl.setLogger(this.log.bind(this)), + this.cometClient.on('transport:up', () => this.log('Transport up event received')), + this.cometClient.on('transport:down', () => this.log('Transport down event received')), + this.cometClient.addExtension({ incoming: this.incoming.bind(this) }), + this.cometClient.disable('websocket'); + } + async init() { + let r = this.options.org.getConnection(); + (this.options.apiVersion = this.options.apiVersion || r.getApiVersion()), + (this.logger = await le.child(this.constructor.name)), + await this.options.org.refreshAuth(); + let n = r.getConnectionOptions().accessToken; + if (n && n.length > 5) + this.logger.debug(`accessToken: XXXXXX${n.substring(n.length - 5, n.length - 1)}`), + this.cometClient.setHeader('Authorization', `OAuth ${n}`); + else throw new Q('Missing or invalid access token', 'MissingOrInvalidAccessToken'); + this.log(`Streaming client target url: ${this.targetUrl}`), + this.log(`options.subscribeTimeout (ms): ${this.options.subscribeTimeout.milliseconds}`), + this.log(`options.handshakeTimeout (ms): ${this.options.handshakeTimeout.milliseconds}`); + } + replay(r) { + this.cometClient.addExtension({ + outgoing: (n, a) => { + if (n.channel === '/meta/subscribe') { + n.ext || (n.ext = {}); + let o = {}; + (o[this.options.channel] = r), (0, xu.set)(n, 'ext.replay', o); + } + a(n); + }, + }); + } + handshake() { + let r; + return new Promise((n, a) => { + (r = setTimeout(() => { + let o = d6.createError('genericHandshakeTimeout', [this.targetUrl]); + this.doTimeout(r, o), a(o); + }, this.options.handshakeTimeout.milliseconds)), + this.cometClient.handshake(() => { + this.log('handshake completed'), + clearTimeout(r), + this.log('cleared handshake timeout'), + n(e.ConnectionState.CONNECTED); + }); + }); + } + subscribe(r) { + let n; + return new Promise((a, o) => + new Promise((s, l) => { + n = setTimeout(() => { + let p = d6.createError('genericTimeout'); + this.doTimeout(n, p), o(p); + }, this.options.subscribeTimeout.milliseconds); + let u = this.cometClient.subscribe(this.options.channel, (p) => { + try { + let c = this.options.streamProcessor(p); + c?.completed && (clearTimeout(n), this.disconnectClient(), a(c.payload)); + } catch (c) { + clearTimeout(n), this.disconnectClient(), o(c); + } + }); + u.callback(() => { + s(); + }), + u.errback((p) => { + l(p); + }); + }) + .then(() => r?.()) + .catch((s) => { + this.disconnect(), clearTimeout(n), o(s); + }) + ); + } + incoming(r, n) { + if ( + (this.log(r), + r && + r.channel === '/meta/handshake' && + r.error && + (0, f6.ensureString)(r.error).includes('400::API version in the URI is mandatory')) + ) + throw d6.createError('handshakeApiVersionError', [this.options.apiVersion]); + n(r); + } + doTimeout(r, n) { + return this.disconnect(), clearTimeout(r), this.log(JSON.stringify(n)), n; + } + disconnectClient() { + this.cometClient && this.cometClient.disconnect(); + } + disconnect() { + if ((this.log('Disconnecting the comet client'), this.cometClient._dispatcher)) { + this.log('Closing the faye dispatcher'); + let r = this.cometClient._dispatcher; + this.log(`dispatcher.clientId: ${r.clientId}`), r.clientId ? this.disconnectClient() : r.close(); + } + } + log(r) { + this.logger && this.logger.debug(r); + } +}; +((n) => { + class e { + static { + this.SFDX_ENABLE_FAYE_COOKIES_ALLOW_ALL_PATHS = 'SFDX_ENABLE_FAYE_REQUEST_RESPONSE_LOGGING'; + } + static { + this.SFDX_ENABLE_FAYE_REQUEST_RESPONSE_LOGGING = 'SFDX_ENABLE_FAYE_REQUEST_RESPONSE_LOGGING'; + } + static { + this.DEFAULT_SUBSCRIBE_TIMEOUT = xu.Duration.minutes(3); + } + static { + this.DEFAULT_HANDSHAKE_TIMEOUT = xu.Duration.seconds(30); + } + constructor(o, s, l, u = xu.env) { + if ((u && le.childFromRoot('StreamingClient').warn('envDep is deprecated'), !l)) + throw new Q('Missing stream processor', 'MissingArg'); + if (!o) throw new Q('Missing org', 'MissingArg'); + if (!s) throw new Q('Missing streaming channel', 'MissingArg'); + if ( + ((this.org = o), + (this.apiVersion = o.getConnection().getApiVersion()), + s.startsWith('/system') && (this.apiVersion = '36.0'), + !(parseFloat(this.apiVersion) > 0)) + ) + throw d6.createError('invalidApiVersion', [this.apiVersion]); + (this.streamProcessor = l), + (this.channel = s), + (this.subscribeTimeout = n.DefaultOptions.DEFAULT_SUBSCRIBE_TIMEOUT), + (this.handshakeTimeout = n.DefaultOptions.DEFAULT_HANDSHAKE_TIMEOUT), + (this.streamingImpl = { getCometClient: (p) => new Wke.Client(p), setLogger: (p) => {} }); + } + setSubscribeTimeout(o) { + this.subscribeTimeout = Hke(o, e.DEFAULT_SUBSCRIBE_TIMEOUT); + } + setHandshakeTimeout(o) { + this.handshakeTimeout = Hke(o, e.DEFAULT_HANDSHAKE_TIMEOUT); + } + } + n.DefaultOptions = e; + let t; + ((o) => (o[(o.CONNECTED = 0)] = 'CONNECTED'))((t = n.ConnectionState ||= {})); + let r; + ((s) => ((s.HANDSHAKE = 'GenericHandshakeTimeoutError'), (s.SUBSCRIBE = 'GenericTimeoutError')))( + (r = n.TimeoutErrorType ||= {}) + ); +})((A1 ||= {})); +bb(); +Vs(); +Vo(); +ee.importMessagesDirectory(__dirname); +0 && + (module.exports = { + AuthInfo, + AuthRemover, + CometClient, + Config, + ConfigAggregator, + ConfigFile, + Connection, + DefaultUserFields, + DeviceOauthService, + EnvVars, + EnvironmentVariable, + Global, + Lifecycle, + Logger, + LoggerLevel, + Messages, + Mode, + MyDomainResolver, + OAuth2Config, + ORG_CONFIG_ALLOWED_PROPERTIES, + Org, + OrgConfigProperties, + OrgTypes, + OrgUsersConfig, + PermissionSetAssignment, + PollingClient, + REQUIRED_FIELDS, + SFDX_ALLOWED_PROPERTIES, + SFDX_HTTP_HEADERS, + SF_ALLOWED_PROPERTIES, + SUPPORTED_ENV_VARS, + SandboxEvents, + SandboxRequestCache, + SchemaPrinter, + SchemaValidator, + ScratchOrgCache, + SfConfigProperties, + SfError, + SfProject, + SfProjectJson, + SfdcUrl, + SfdxPropertyKeys, + StateAggregator, + StreamingClient, + TTLConfig, + User, + WebOAuthServer, + accessTokenRegex, + envVars, + findUpperCaseKeys, + getJwtAudienceUrl, + getLoginAudienceCombos, + isInternalUrl, + matchesAccessToken, + scratchOrgCreate, + scratchOrgLifecycleEventName, + scratchOrgLifecycleStages, + scratchOrgResume, + sfdxAuthUrlRegex, + trimTo15, + validateApiVersion, + validateEmail, + validatePathDoesNotContainInvalidChars, + validateSalesforceId, + }); +/*! Bundled license information: + +@salesforce/kit/vendor/lodash.js: + (** + * @license + * Lodash (Custom Build) lodash.com/license | Underscore.js 1.8.3 underscorejs.org/LICENSE + * Build: `lodash exports="node" include="defaults,findKey,keyBy,includes,mapKeys,minBy,maxBy,merge,omit,once,set,sortBy,toNumber" -o vendor/lodash.js` + *) + +mime-db/index.js: + (*! + * mime-db + * Copyright(c) 2014 Jonathan Ong + * Copyright(c) 2015-2022 Douglas Christopher Wilson + * MIT Licensed + *) + +mime-types/index.js: + (*! + * mime-types + * Copyright(c) 2014 Jonathan Ong + * Copyright(c) 2015 Douglas Christopher Wilson + * MIT Licensed + *) + +sax/lib/sax.js: + (*! http://mths.be/fromcodepoint v0.1.0 by @mathias *) + +safe-buffer/index.js: + (*! safe-buffer. MIT License. Feross Aboukhadijeh *) + +tough-cookie/lib/pubsuffix-psl.js: + (*! + * Copyright (c) 2018, Salesforce.com, Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * 3. Neither the name of Salesforce.com nor the names of its contributors may + * be used to endorse or promote products derived from this software without + * specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + *) + +tough-cookie/lib/store.js: + (*! + * Copyright (c) 2015, Salesforce.com, Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * 3. Neither the name of Salesforce.com nor the names of its contributors may + * be used to endorse or promote products derived from this software without + * specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + *) + +tough-cookie/lib/permuteDomain.js: + (*! + * Copyright (c) 2015, Salesforce.com, Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * 3. Neither the name of Salesforce.com nor the names of its contributors may + * be used to endorse or promote products derived from this software without + * specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + *) + +tough-cookie/lib/pathMatch.js: + (*! + * Copyright (c) 2015, Salesforce.com, Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * 3. Neither the name of Salesforce.com nor the names of its contributors may + * be used to endorse or promote products derived from this software without + * specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + *) + +tough-cookie/lib/memstore.js: + (*! + * Copyright (c) 2015, Salesforce.com, Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * 3. Neither the name of Salesforce.com nor the names of its contributors may + * be used to endorse or promote products derived from this software without + * specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + *) + +tough-cookie/lib/cookie.js: + (*! + * Copyright (c) 2015-2020, Salesforce.com, Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * 3. Neither the name of Salesforce.com nor the names of its contributors may + * be used to endorse or promote products derived from this software without + * specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + *) + +uri-js/dist/es5/uri.all.js: + (** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js *) +*/ diff --git a/dist/pino-file.js b/dist/pino-file.js new file mode 100644 index 0000000000..54ac4c1f29 --- /dev/null +++ b/dist/pino-file.js @@ -0,0 +1,2973 @@ +'use strict'; +var E = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports); +var pe = E((nf, at) => { + 'use strict'; + var H = (e) => e && typeof e.message == 'string', + me = (e) => { + if (!e) return; + let t = e.cause; + if (typeof t == 'function') { + let r = e.cause(); + return H(r) ? r : void 0; + } else return H(t) ? t : void 0; + }, + ut = (e, t) => { + if (!H(e)) return ''; + let r = e.stack || ''; + if (t.has(e)) + return ( + r + + ` +causes have become circular...` + ); + let n = me(e); + return n + ? (t.add(e), + r + + ` +caused by: ` + + ut(n, t)) + : r; + }, + En = (e) => ut(e, new Set()), + ct = (e, t, r) => { + if (!H(e)) return ''; + let n = r ? '' : e.message || ''; + if (t.has(e)) return n + ': ...'; + let i = me(e); + if (i) { + t.add(e); + let o = typeof e.cause == 'function'; + return n + (o ? '' : ': ') + ct(i, t, o); + } else return n; + }, + xn = (e) => ct(e, new Set()); + at.exports = { isErrorLike: H, getErrorCause: me, stackWithCauses: En, messageWithCauses: xn }; +}); +var be = E((sf, dt) => { + 'use strict'; + var On = Symbol('circular-ref-tag'), + Y = Symbol('pino-raw-err-ref'), + ht = Object.create( + {}, + { + type: { enumerable: !0, writable: !0, value: void 0 }, + message: { enumerable: !0, writable: !0, value: void 0 }, + stack: { enumerable: !0, writable: !0, value: void 0 }, + aggregateErrors: { enumerable: !0, writable: !0, value: void 0 }, + raw: { + enumerable: !1, + get: function () { + return this[Y]; + }, + set: function (e) { + this[Y] = e; + }, + }, + } + ); + Object.defineProperty(ht, Y, { writable: !0, value: {} }); + dt.exports = { pinoErrProto: ht, pinoErrorSymbols: { seen: On, rawSymbol: Y } }; +}); +var mt = E((of, gt) => { + 'use strict'; + gt.exports = Se; + var { messageWithCauses: vn, stackWithCauses: $n, isErrorLike: yt } = pe(), + { pinoErrProto: An, pinoErrorSymbols: jn } = be(), + { seen: we } = jn, + { toString: Ln } = Object.prototype; + function Se(e) { + if (!yt(e)) return e; + e[we] = void 0; + let t = Object.create(An); + (t.type = Ln.call(e.constructor) === '[object Function]' ? e.constructor.name : e.name), + (t.message = vn(e)), + (t.stack = $n(e)), + Array.isArray(e.errors) && (t.aggregateErrors = e.errors.map((r) => Se(r))); + for (let r in e) + if (t[r] === void 0) { + let n = e[r]; + yt(n) ? r !== 'cause' && !Object.prototype.hasOwnProperty.call(n, we) && (t[r] = Se(n)) : (t[r] = n); + } + return delete e[we], (t.raw = e), t; + } +}); +var bt = E((lf, pt) => { + 'use strict'; + pt.exports = Z; + var { isErrorLike: _e } = pe(), + { pinoErrProto: kn, pinoErrorSymbols: Tn } = be(), + { seen: Q } = Tn, + { toString: Rn } = Object.prototype; + function Z(e) { + if (!_e(e)) return e; + e[Q] = void 0; + let t = Object.create(kn); + (t.type = Rn.call(e.constructor) === '[object Function]' ? e.constructor.name : e.name), + (t.message = e.message), + (t.stack = e.stack), + Array.isArray(e.errors) && (t.aggregateErrors = e.errors.map((r) => Z(r))), + _e(e.cause) && !Object.prototype.hasOwnProperty.call(e.cause, Q) && (t.cause = Z(e.cause)); + for (let r in e) + if (t[r] === void 0) { + let n = e[r]; + _e(n) ? Object.prototype.hasOwnProperty.call(n, Q) || (t[r] = Z(n)) : (t[r] = n); + } + return delete e[Q], (t.raw = e), t; + } +}); +var Et = E((ff, _t) => { + 'use strict'; + _t.exports = { mapHttpRequest: Bn, reqSerializer: St }; + var Ee = Symbol('pino-raw-req-ref'), + wt = Object.create( + {}, + { + id: { enumerable: !0, writable: !0, value: '' }, + method: { enumerable: !0, writable: !0, value: '' }, + url: { enumerable: !0, writable: !0, value: '' }, + query: { enumerable: !0, writable: !0, value: '' }, + params: { enumerable: !0, writable: !0, value: '' }, + headers: { enumerable: !0, writable: !0, value: {} }, + remoteAddress: { enumerable: !0, writable: !0, value: '' }, + remotePort: { enumerable: !0, writable: !0, value: '' }, + raw: { + enumerable: !1, + get: function () { + return this[Ee]; + }, + set: function (e) { + this[Ee] = e; + }, + }, + } + ); + Object.defineProperty(wt, Ee, { writable: !0, value: {} }); + function St(e) { + let t = e.info || e.socket, + r = Object.create(wt); + if ( + ((r.id = typeof e.id == 'function' ? e.id() : e.id || (e.info ? e.info.id : void 0)), + (r.method = e.method), + e.originalUrl) + ) + r.url = e.originalUrl; + else { + let n = e.path; + r.url = typeof n == 'string' ? n : e.url ? e.url.path || e.url : void 0; + } + return ( + e.query && (r.query = e.query), + e.params && (r.params = e.params), + (r.headers = e.headers), + (r.remoteAddress = t && t.remoteAddress), + (r.remotePort = t && t.remotePort), + (r.raw = e.raw || e), + r + ); + } + function Bn(e) { + return { req: St(e) }; + } +}); +var $t = E((uf, vt) => { + 'use strict'; + vt.exports = { mapHttpResponse: qn, resSerializer: Ot }; + var xe = Symbol('pino-raw-res-ref'), + xt = Object.create( + {}, + { + statusCode: { enumerable: !0, writable: !0, value: 0 }, + headers: { enumerable: !0, writable: !0, value: '' }, + raw: { + enumerable: !1, + get: function () { + return this[xe]; + }, + set: function (e) { + this[xe] = e; + }, + }, + } + ); + Object.defineProperty(xt, xe, { writable: !0, value: {} }); + function Ot(e) { + let t = Object.create(xt); + return ( + (t.statusCode = e.headersSent ? e.statusCode : null), + (t.headers = e.getHeaders ? e.getHeaders() : e._headers), + (t.raw = e), + t + ); + } + function qn(e) { + return { res: Ot(e) }; + } +}); +var ve = E((cf, At) => { + 'use strict'; + var Oe = mt(), + In = bt(), + ee = Et(), + te = $t(); + At.exports = { + err: Oe, + errWithCause: In, + mapHttpRequest: ee.mapHttpRequest, + mapHttpResponse: te.mapHttpResponse, + req: ee.reqSerializer, + res: te.resSerializer, + wrapErrorSerializer: function (t) { + return t === Oe + ? t + : function (n) { + return t(Oe(n)); + }; + }, + wrapRequestSerializer: function (t) { + return t === ee.reqSerializer + ? t + : function (n) { + return t(ee.reqSerializer(n)); + }; + }, + wrapResponseSerializer: function (t) { + return t === te.resSerializer + ? t + : function (n) { + return t(te.resSerializer(n)); + }; + }, + }; +}); +var $e = E((af, jt) => { + 'use strict'; + function Nn(e, t) { + return t; + } + jt.exports = function () { + let t = Error.prepareStackTrace; + Error.prepareStackTrace = Nn; + let r = new Error().stack; + if (((Error.prepareStackTrace = t), !Array.isArray(r))) return; + let n = r.slice(2), + i = []; + for (let o of n) o && i.push(o.getFileName()); + return i; + }; +}); +var kt = E((hf, Lt) => { + 'use strict'; + Lt.exports = Pn; + function Pn(e = {}) { + let { + ERR_PATHS_MUST_BE_STRINGS: t = () => 'fast-redact - Paths must be (non-empty) strings', + ERR_INVALID_PATH: r = (n) => `fast-redact \u2013 Invalid path (${n})`, + } = e; + return function ({ paths: i }) { + i.forEach((o) => { + if (typeof o != 'string') throw Error(t()); + try { + if (/〇/.test(o)) throw Error(); + let f = + (o[0] === '[' ? '' : '.') + + o + .replace(/^\*/, '\u3007') + .replace(/\.\*/g, '.\u3007') + .replace(/\[\*\]/g, '[\u3007]'); + if (/\n|\r|;/.test(f) || /\/\*/.test(f)) throw Error(); + Function(` + 'use strict' + const o = new Proxy({}, { get: () => o, set: () => { throw Error() } }); + const \u3007 = null; + o${f} + if ([o${f}].length !== 1) throw Error()`)(); + } catch { + throw Error(r(o)); + } + }); + }; + } +}); +var re = E((df, Tt) => { + 'use strict'; + Tt.exports = /[^.[\]]+|\[((?:.)*?)\]/g; +}); +var Bt = E((yf, Rt) => { + 'use strict'; + var Cn = re(); + Rt.exports = Dn; + function Dn({ paths: e }) { + let t = []; + var r = 0; + let n = e.reduce(function (i, o, f) { + var h = o.match(Cn).map((l) => l.replace(/'|"|`/g, '')); + let d = o[0] === '['; + h = h.map((l) => (l[0] === '[' ? l.substr(1, l.length - 2) : l)); + let y = h.indexOf('*'); + if (y > -1) { + let l = h.slice(0, y), + c = l.join('.'), + g = h.slice(y + 1, h.length), + s = g.length > 0; + r++, t.push({ before: l, beforeStr: c, after: g, nested: s }); + } else i[o] = { path: h, val: void 0, precensored: !1, circle: '', escPath: JSON.stringify(o), leadingBracket: d }; + return i; + }, {}); + return { wildcards: t, wcLen: r, secret: n }; + } +}); +var It = E((gf, qt) => { + 'use strict'; + var zn = re(); + qt.exports = Mn; + function Mn({ secret: e, serialize: t, wcLen: r, strict: n, isCensorFct: i, censorFctTakesPath: o }, f) { + let h = Function( + 'o', + ` + if (typeof o !== 'object' || o == null) { + ${Vn(n, t)} + } + const { censor, secret } = this + ${Wn(e, i, o)} + this.compileRestore() + ${Fn(r > 0, i, o)} + ${Kn(t)} + ` + ).bind(f); + return t === !1 && (h.restore = (d) => f.restore(d)), h; + } + function Wn(e, t, r) { + return Object.keys(e).map((n) => { + let { escPath: i, leadingBracket: o, path: f } = e[n], + h = o ? 1 : 0, + d = o ? '' : '.', + y = []; + for (var l; (l = zn.exec(n)) !== null; ) { + let [, u] = l, + { index: p, input: b } = l; + p > h && y.push(b.substring(0, p - (u ? 0 : 1))); + } + var c = y.map((u) => `o${d}${u}`).join(' && '); + c.length === 0 ? (c += `o${d}${n} != null`) : (c += ` && o${d}${n} != null`); + let g = ` + switch (true) { + ${y.reverse().map( + (u) => ` + case o${d}${u} === censor: + secret[${i}].circle = ${JSON.stringify(u)} + break + ` + ).join(` +`)} + } + `, + s = r ? `val, ${JSON.stringify(f)}` : 'val'; + return ` + if (${c}) { + const val = o${d}${n} + if (val === censor) { + secret[${i}].precensored = true + } else { + secret[${i}].val = val + o${d}${n} = ${t ? `censor(${s})` : 'censor'} + ${g} + } + } + `; + }).join(` +`); + } + function Fn(e, t, r) { + return e === !0 + ? ` + { + const { wildcards, wcLen, groupRedact, nestedRedact } = this + for (var i = 0; i < wcLen; i++) { + const { before, beforeStr, after, nested } = wildcards[i] + if (nested === true) { + secret[beforeStr] = secret[beforeStr] || [] + nestedRedact(secret[beforeStr], o, before, after, censor, ${t}, ${r}) + } else secret[beforeStr] = groupRedact(o, before, censor, ${t}, ${r}) + } + } + ` + : ''; + } + function Kn(e) { + return e === !1 + ? 'return o' + : ` + var s = this.serialize(o) + this.restore(o) + return s + `; + } + function Vn(e, t) { + return e === !0 + ? "throw Error('fast-redact: primitives cannot be redacted')" + : t === !1 + ? 'return o' + : 'return this.serialize(o)'; + } +}); +var Ae = E((mf, Dt) => { + 'use strict'; + Dt.exports = { groupRedact: Un, groupRestore: Jn, nestedRedact: Hn, nestedRestore: Gn }; + function Jn({ keys: e, values: t, target: r }) { + if (r == null) return; + let n = e.length; + for (var i = 0; i < n; i++) { + let o = e[i]; + r[o] = t[i]; + } + } + function Un(e, t, r, n, i) { + let o = Nt(e, t); + if (o == null) return { keys: null, values: null, target: null, flat: !0 }; + let f = Object.keys(o), + h = f.length, + d = t.length, + y = i ? [...t] : void 0, + l = new Array(h); + for (var c = 0; c < h; c++) { + let g = f[c]; + (l[c] = o[g]), i ? ((y[d] = g), (o[g] = r(o[g], y))) : n ? (o[g] = r(o[g])) : (o[g] = r); + } + return { keys: f, values: l, target: o, flat: !0 }; + } + function Gn(e) { + let t = e.length; + for (var r = 0; r < t; r++) { + let { key: i, target: o, value: f, level: h } = e[r]; + if (h === 0 || h === 1) { + if ((J(o, i) && (o[i] = f), typeof o == 'object')) { + let d = Object.keys(o); + for (var n = 0; n < d.length; n++) { + let y = d[n], + l = o[y]; + J(l, i) && (l[i] = f); + } + } + } else Ct(i, o, f, h); + } + } + function Hn(e, t, r, n, i, o, f) { + let h = Nt(t, r); + if (h == null) return; + let d = Object.keys(h), + y = d.length; + for (var l = 0; l < y; l++) { + let c = d[l], + { value: g, parent: s, exists: u, level: p } = Xn(h, c, r, n, i, o, f); + u === !0 && s !== null && e.push({ key: n[n.length - 1], target: s, value: g, level: p }); + } + return e; + } + function J(e, t) { + return e != null ? ('hasOwn' in Object ? Object.hasOwn(e, t) : Object.prototype.hasOwnProperty.call(e, t)) : !1; + } + function Xn(e, t, r, n, i, o, f) { + let h = n.length, + d = h - 1, + y = t; + var l = -1, + c, + g, + s, + u = null, + p = !0, + b = null, + w, + m, + S = !1, + _ = 0; + if (((s = c = e[t]), typeof c != 'object')) return { value: null, parent: null, exists: p }; + for (; c != null && ++l < h; ) { + if (((t = n[l]), (u = s), t !== '*' && !b && !(typeof c == 'object' && t in c))) { + p = !1; + break; + } + if (!(t === '*' && (b === '*' && (S = !0), (b = t), l !== d))) { + if (b) { + let $ = Object.keys(c); + for (var O = 0; O < $.length; O++) { + let v = $[O]; + (m = c[v]), + (w = t === '*'), + S + ? ((_ = l), (s = Pt(m, _ - 1, t, r, n, i, o, f, y, c, g, s, w, v, l, d, p))) + : (w || (typeof m == 'object' && m !== null && t in m)) && + (w ? (s = m) : (s = m[t]), + (g = l !== d ? s : o ? (f ? i(s, [...r, y, ...n]) : i(s)) : i), + w + ? (c[v] = g) + : m[t] === g + ? (p = !1) + : (m[t] = (g === void 0 && i !== void 0) || (J(m, t) && g === s) ? m[t] : g)); + } + b = null; + } else + (s = c[t]), + (g = l !== d ? s : o ? (f ? i(s, [...r, y, ...n]) : i(s)) : i), + (c[t] = (J(c, t) && g === s) || (g === void 0 && i !== void 0) ? c[t] : g), + (c = c[t]); + if (typeof c != 'object') break; + (s === u || typeof s > 'u') && (p = !1); + } + } + return { value: s, parent: u, exists: p, level: _ }; + } + function Nt(e, t) { + for (var r = -1, n = t.length, i = e; i != null && ++r < n; ) i = i[t[r]]; + return i; + } + function Pt(e, t, r, n, i, o, f, h, d, y, l, c, g, s, u, p, b) { + if (t === 0) + return ( + (g || (typeof e == 'object' && e !== null && r in e)) && + (g ? (c = e) : (c = e[r]), + (l = u !== p ? c : f ? (h ? o(c, [...n, d, ...i]) : o(c)) : o), + g + ? (y[s] = l) + : e[r] === l + ? (b = !1) + : (e[r] = (l === void 0 && o !== void 0) || (J(e, r) && l === c) ? e[r] : l)), + c + ); + for (let m in e) + if (typeof e[m] == 'object') { + var w = Pt(e[m], t - 1, r, n, i, o, f, h, d, y, l, c, g, s, u, p, b); + return w; + } + } + function Ct(e, t, r, n) { + if (n === 0) { + J(t, e) && (t[e] = r); + return; + } + for (let i in t) typeof t[i] == 'object' && Ct(e, t[i], r, n - 1); + } +}); +var Mt = E((pf, zt) => { + 'use strict'; + var { groupRestore: Yn, nestedRestore: Qn } = Ae(); + zt.exports = Zn; + function Zn({ secret: e, wcLen: t }) { + return function () { + if (this.restore) return; + let n = Object.keys(e), + i = ei(e, n), + o = t > 0, + f = o ? { secret: e, groupRestore: Yn, nestedRestore: Qn } : { secret: e }; + this.restore = Function('o', ti(i, n, o)).bind(f); + }; + } + function ei(e, t) { + return t + .map((r) => { + let { circle: n, escPath: i, leadingBracket: o } = e[r], + h = n ? `o.${n} = secret[${i}].val` : `o${o ? '' : '.'}${r} = secret[${i}].val`, + d = `secret[${i}].val = undefined`; + return ` + if (secret[${i}].val !== undefined) { + try { ${h} } catch (e) {} + ${d} + } + `; + }) + .join(''); + } + function ti(e, t, r) { + return ` + const secret = this.secret + ${ + r === !0 + ? ` + const keys = Object.keys(secret) + const len = keys.length + for (var i = len - 1; i >= ${t.length}; i--) { + const k = keys[i] + const o = secret[k] + if (o.flat === true) this.groupRestore(o) + else this.nestedRestore(o) + secret[k] = null + } + ` + : '' + } + ${e} + return o + `; + } +}); +var Ft = E((bf, Wt) => { + 'use strict'; + Wt.exports = ri; + function ri(e) { + let { + secret: t, + censor: r, + compileRestore: n, + serialize: i, + groupRedact: o, + nestedRedact: f, + wildcards: h, + wcLen: d, + } = e, + y = [{ secret: t, censor: r, compileRestore: n }]; + return ( + i !== !1 && y.push({ serialize: i }), + d > 0 && y.push({ groupRedact: o, nestedRedact: f, wildcards: h, wcLen: d }), + Object.assign(...y) + ); + } +}); +var Jt = E((wf, Vt) => { + 'use strict'; + var Kt = kt(), + ni = Bt(), + ii = It(), + si = Mt(), + { groupRedact: oi, nestedRedact: li } = Ae(), + fi = Ft(), + ui = re(), + ci = Kt(), + je = (e) => e; + je.restore = je; + var ai = '[REDACTED]'; + Le.rx = ui; + Le.validator = Kt; + Vt.exports = Le; + function Le(e = {}) { + let t = Array.from(new Set(e.paths || [])), + r = 'serialize' in e && (e.serialize === !1 || typeof e.serialize == 'function') ? e.serialize : JSON.stringify, + n = e.remove; + if (n === !0 && r !== JSON.stringify) + throw Error('fast-redact \u2013 remove option may only be set when serializer is JSON.stringify'); + let i = n === !0 ? void 0 : 'censor' in e ? e.censor : ai, + o = typeof i == 'function', + f = o && i.length > 1; + if (t.length === 0) return r || je; + ci({ paths: t, serialize: r, censor: i }); + let { wildcards: h, wcLen: d, secret: y } = ni({ paths: t, censor: i }), + l = si({ secret: y, wcLen: d }), + c = 'strict' in e ? e.strict : !0; + return ii( + { secret: y, wcLen: d, serialize: r, strict: c, isCensorFct: o, censorFctTakesPath: f }, + fi({ + secret: y, + censor: i, + compileRestore: l, + serialize: r, + groupRedact: oi, + nestedRedact: li, + wildcards: h, + wcLen: d, + }) + ); + } +}); +var U = E((Sf, Ut) => { + 'use strict'; + var hi = Symbol('pino.setLevel'), + di = Symbol('pino.getLevel'), + yi = Symbol('pino.levelVal'), + gi = Symbol('pino.useLevelLabels'), + mi = Symbol('pino.useOnlyCustomLevels'), + pi = Symbol('pino.mixin'), + bi = Symbol('pino.lsCache'), + wi = Symbol('pino.chindings'), + Si = Symbol('pino.asJson'), + _i = Symbol('pino.write'), + Ei = Symbol('pino.redactFmt'), + xi = Symbol('pino.time'), + Oi = Symbol('pino.timeSliceIndex'), + vi = Symbol('pino.stream'), + $i = Symbol('pino.stringify'), + Ai = Symbol('pino.stringifySafe'), + ji = Symbol('pino.stringifiers'), + Li = Symbol('pino.end'), + ki = Symbol('pino.formatOpts'), + Ti = Symbol('pino.messageKey'), + Ri = Symbol('pino.errorKey'), + Bi = Symbol('pino.nestedKey'), + qi = Symbol('pino.nestedKeyStr'), + Ii = Symbol('pino.mixinMergeStrategy'), + Ni = Symbol('pino.msgPrefix'), + Pi = Symbol('pino.wildcardFirst'), + Ci = Symbol.for('pino.serializers'), + Di = Symbol.for('pino.formatters'), + zi = Symbol.for('pino.hooks'), + Mi = Symbol.for('pino.metadata'); + Ut.exports = { + setLevelSym: hi, + getLevelSym: di, + levelValSym: yi, + useLevelLabelsSym: gi, + mixinSym: pi, + lsCacheSym: bi, + chindingsSym: wi, + asJsonSym: Si, + writeSym: _i, + serializersSym: Ci, + redactFmtSym: Ei, + timeSym: xi, + timeSliceIndexSym: Oi, + streamSym: vi, + stringifySym: $i, + stringifySafeSym: Ai, + stringifiersSym: ji, + endSym: Li, + formatOptsSym: ki, + messageKeySym: Ti, + errorKeySym: Ri, + nestedKeySym: Bi, + wildcardFirstSym: Pi, + needsMetadataGsym: Mi, + useOnlyCustomLevelsSym: mi, + formattersSym: Di, + hooksSym: zi, + nestedKeyStrSym: qi, + mixinMergeStrategySym: Ii, + msgPrefixSym: Ni, + }; +}); +var Re = E((_f, Yt) => { + 'use strict'; + var Te = Jt(), + { redactFmtSym: Wi, wildcardFirstSym: ne } = U(), + { rx: ke, validator: Fi } = Te, + Gt = Fi({ + ERR_PATHS_MUST_BE_STRINGS: () => 'pino \u2013 redacted paths must be strings', + ERR_INVALID_PATH: (e) => `pino \u2013 redact paths array contains an invalid path (${e})`, + }), + Ht = '[Redacted]', + Xt = !1; + function Ki(e, t) { + let { paths: r, censor: n } = Vi(e), + i = r.reduce((h, d) => { + ke.lastIndex = 0; + let y = ke.exec(d), + l = ke.exec(d), + c = y[1] !== void 0 ? y[1].replace(/^(?:"|'|`)(.*)(?:"|'|`)$/, '$1') : y[0]; + if ((c === '*' && (c = ne), l === null)) return (h[c] = null), h; + if (h[c] === null) return h; + let { index: g } = l, + s = `${d.substr(g, d.length - 1)}`; + return ( + (h[c] = h[c] || []), + c !== ne && h[c].length === 0 && h[c].push(...(h[ne] || [])), + c === ne && + Object.keys(h).forEach(function (u) { + h[u] && h[u].push(s); + }), + h[c].push(s), + h + ); + }, {}), + o = { [Wi]: Te({ paths: r, censor: n, serialize: t, strict: Xt }) }, + f = (...h) => t(typeof n == 'function' ? n(...h) : n); + return [...Object.keys(i), ...Object.getOwnPropertySymbols(i)].reduce((h, d) => { + if (i[d] === null) h[d] = (y) => f(y, [d]); + else { + let y = typeof n == 'function' ? (l, c) => n(l, [d, ...c]) : n; + h[d] = Te({ paths: i[d], censor: y, serialize: t, strict: Xt }); + } + return h; + }, o); + } + function Vi(e) { + if (Array.isArray(e)) return (e = { paths: e, censor: Ht }), Gt(e), e; + let { paths: t, censor: r = Ht, remove: n } = e; + if (Array.isArray(t) === !1) throw Error('pino \u2013 redact must contain an array of strings'); + return n === !0 && (r = void 0), Gt({ paths: t, censor: r }), { paths: t, censor: r }; + } + Yt.exports = Ki; +}); +var Zt = E((Ef, Qt) => { + 'use strict'; + var Ji = () => '', + Ui = () => `,"time":${Date.now()}`, + Gi = () => `,"time":${Math.round(Date.now() / 1e3)}`, + Hi = () => `,"time":"${new Date(Date.now()).toISOString()}"`; + Qt.exports = { nullTime: Ji, epochTime: Ui, unixTime: Gi, isoTime: Hi }; +}); +var tr = E((xf, er) => { + 'use strict'; + function Xi(e) { + try { + return JSON.stringify(e); + } catch { + return '"[Circular]"'; + } + } + er.exports = Yi; + function Yi(e, t, r) { + var n = (r && r.stringify) || Xi, + i = 1; + if (typeof e == 'object' && e !== null) { + var o = t.length + i; + if (o === 1) return e; + var f = new Array(o); + f[0] = n(e); + for (var h = 1; h < o; h++) f[h] = n(t[h]); + return f.join(' '); + } + if (typeof e != 'string') return e; + var d = t.length; + if (d === 0) return e; + for (var y = '', l = 1 - i, c = -1, g = (e && e.length) || 0, s = 0; s < g; ) { + if (e.charCodeAt(s) === 37 && s + 1 < g) { + switch (((c = c > -1 ? c : 0), e.charCodeAt(s + 1))) { + case 100: + case 102: + if (l >= d || t[l] == null) break; + c < s && (y += e.slice(c, s)), (y += Number(t[l])), (c = s + 2), s++; + break; + case 105: + if (l >= d || t[l] == null) break; + c < s && (y += e.slice(c, s)), (y += Math.floor(Number(t[l]))), (c = s + 2), s++; + break; + case 79: + case 111: + case 106: + if (l >= d || t[l] === void 0) break; + c < s && (y += e.slice(c, s)); + var u = typeof t[l]; + if (u === 'string') { + (y += "'" + t[l] + "'"), (c = s + 2), s++; + break; + } + if (u === 'function') { + (y += t[l].name || ''), (c = s + 2), s++; + break; + } + (y += n(t[l])), (c = s + 2), s++; + break; + case 115: + if (l >= d) break; + c < s && (y += e.slice(c, s)), (y += String(t[l])), (c = s + 2), s++; + break; + case 37: + c < s && (y += e.slice(c, s)), (y += '%'), (c = s + 2), s++, l--; + break; + } + ++l; + } + ++s; + } + return c === -1 ? e : (c < g && (y += e.slice(c)), y); + } +}); +var qe = E((Of, Be) => { + 'use strict'; + if (typeof SharedArrayBuffer < 'u' && typeof Atomics < 'u') { + let t = function (r) { + if ((r > 0 && r < 1 / 0) === !1) + throw typeof r != 'number' && typeof r != 'bigint' + ? TypeError('sleep: ms must be a number') + : RangeError('sleep: ms must be a number that is greater than 0 but less than Infinity'); + Atomics.wait(e, 0, 0, Number(r)); + }, + e = new Int32Array(new SharedArrayBuffer(4)); + Be.exports = t; + } else { + let e = function (t) { + if ((t > 0 && t < 1 / 0) === !1) + throw typeof t != 'number' && typeof t != 'bigint' + ? TypeError('sleep: ms must be a number') + : RangeError('sleep: ms must be a number that is greater than 0 but less than Infinity'); + let n = Date.now() + Number(t); + for (; n > Date.now(); ); + }; + Be.exports = e; + } +}); +var ur = E((vf, fr) => { + 'use strict'; + var A = require('fs'), + Qi = require('events'), + Zi = require('util').inherits, + rr = require('path'), + Ie = qe(), + ie = 100, + se = Buffer.allocUnsafe(0), + es = 16 * 1024, + nr = 'buffer', + ir = 'utf8'; + function sr(e, t) { + (t._opening = !0), (t._writing = !0), (t._asyncDrainScheduled = !1); + function r(o, f) { + if (o) { + (t._reopening = !1), + (t._writing = !1), + (t._opening = !1), + t.sync + ? process.nextTick(() => { + t.listenerCount('error') > 0 && t.emit('error', o); + }) + : t.emit('error', o); + return; + } + (t.fd = f), + (t.file = e), + (t._reopening = !1), + (t._opening = !1), + (t._writing = !1), + t.sync ? process.nextTick(() => t.emit('ready')) : t.emit('ready'), + !(t._reopening || t.destroyed) && + ((!t._writing && t._len > t.minLength) || t._flushPending) && + t._actualWrite(); + } + let n = t.append ? 'a' : 'w', + i = t.mode; + if (t.sync) + try { + t.mkdir && A.mkdirSync(rr.dirname(e), { recursive: !0 }); + let o = A.openSync(e, n, i); + r(null, o); + } catch (o) { + throw (r(o), o); + } + else + t.mkdir + ? A.mkdir(rr.dirname(e), { recursive: !0 }, (o) => { + if (o) return r(o); + A.open(e, n, i, r); + }) + : A.open(e, n, i, r); + } + function I(e) { + if (!(this instanceof I)) return new I(e); + let { + fd: t, + dest: r, + minLength: n, + maxLength: i, + maxWrite: o, + sync: f, + append: h = !0, + mkdir: d, + retryEAGAIN: y, + fsync: l, + contentMode: c, + mode: g, + } = e || {}; + (t = t || r), + (this._len = 0), + (this.fd = -1), + (this._bufs = []), + (this._lens = []), + (this._writing = !1), + (this._ending = !1), + (this._reopening = !1), + (this._asyncDrainScheduled = !1), + (this._flushPending = !1), + (this._hwm = Math.max(n || 0, 16387)), + (this.file = null), + (this.destroyed = !1), + (this.minLength = n || 0), + (this.maxLength = i || 0), + (this.maxWrite = o || es), + (this.sync = f || !1), + (this.writable = !0), + (this._fsync = l || !1), + (this.append = h || !1), + (this.mode = g), + (this.retryEAGAIN = y || (() => !0)), + (this.mkdir = d || !1); + let s, u; + if (c === nr) + (this._writingBuf = se), + (this.write = ns), + (this.flush = ss), + (this.flushSync = ls), + (this._actualWrite = us), + (s = () => A.writeSync(this.fd, this._writingBuf)), + (u = () => A.write(this.fd, this._writingBuf, this.release)); + else if (c === void 0 || c === ir) + (this._writingBuf = ''), + (this.write = rs), + (this.flush = is), + (this.flushSync = os), + (this._actualWrite = fs), + (s = () => A.writeSync(this.fd, this._writingBuf, 'utf8')), + (u = () => A.write(this.fd, this._writingBuf, 'utf8', this.release)); + else throw new Error(`SonicBoom supports "${ir}" and "${nr}", but passed ${c}`); + if (typeof t == 'number') (this.fd = t), process.nextTick(() => this.emit('ready')); + else if (typeof t == 'string') sr(t, this); + else throw new Error('SonicBoom supports only file descriptors and files'); + if (this.minLength >= this.maxWrite) + throw new Error(`minLength should be smaller than maxWrite (${this.maxWrite})`); + (this.release = (p, b) => { + if (p) { + if ( + (p.code === 'EAGAIN' || p.code === 'EBUSY') && + this.retryEAGAIN(p, this._writingBuf.length, this._len - this._writingBuf.length) + ) + if (this.sync) + try { + Ie(ie), this.release(void 0, 0); + } catch (m) { + this.release(m); + } + else setTimeout(u, ie); + else (this._writing = !1), this.emit('error', p); + return; + } + if ( + (this.emit('write', b), + (this._len -= b), + this._len < 0 && (this._len = 0), + (this._writingBuf = this._writingBuf.slice(b)), + this._writingBuf.length) + ) { + if (!this.sync) { + u(); + return; + } + try { + do { + let m = s(); + (this._len -= m), (this._writingBuf = this._writingBuf.slice(m)); + } while (this._writingBuf.length); + } catch (m) { + this.release(m); + return; + } + } + this._fsync && A.fsyncSync(this.fd); + let w = this._len; + this._reopening + ? ((this._writing = !1), (this._reopening = !1), this.reopen()) + : w > this.minLength + ? this._actualWrite() + : this._ending + ? w > 0 + ? this._actualWrite() + : ((this._writing = !1), oe(this)) + : ((this._writing = !1), + this.sync + ? this._asyncDrainScheduled || ((this._asyncDrainScheduled = !0), process.nextTick(ts, this)) + : this.emit('drain')); + }), + this.on('newListener', function (p) { + p === 'drain' && (this._asyncDrainScheduled = !1); + }); + } + function ts(e) { + e.listenerCount('drain') > 0 && ((e._asyncDrainScheduled = !1), e.emit('drain')); + } + Zi(I, Qi); + function or(e, t) { + return e.length === 0 ? se : e.length === 1 ? e[0] : Buffer.concat(e, t); + } + function rs(e) { + if (this.destroyed) throw new Error('SonicBoom destroyed'); + let t = this._len + e.length, + r = this._bufs; + return this.maxLength && t > this.maxLength + ? (this.emit('drop', e), this._len < this._hwm) + : (r.length === 0 || r[r.length - 1].length + e.length > this.maxWrite ? r.push('' + e) : (r[r.length - 1] += e), + (this._len = t), + !this._writing && this._len >= this.minLength && this._actualWrite(), + this._len < this._hwm); + } + function ns(e) { + if (this.destroyed) throw new Error('SonicBoom destroyed'); + let t = this._len + e.length, + r = this._bufs, + n = this._lens; + return this.maxLength && t > this.maxLength + ? (this.emit('drop', e), this._len < this._hwm) + : (r.length === 0 || n[n.length - 1] + e.length > this.maxWrite + ? (r.push([e]), n.push(e.length)) + : (r[r.length - 1].push(e), (n[n.length - 1] += e.length)), + (this._len = t), + !this._writing && this._len >= this.minLength && this._actualWrite(), + this._len < this._hwm); + } + function lr(e) { + this._flushPending = !0; + let t = () => { + this._fsync + ? ((this._flushPending = !1), e()) + : A.fsync(this.fd, (n) => { + (this._flushPending = !1), e(n); + }), + this.off('error', r); + }, + r = (n) => { + (this._flushPending = !1), e(n), this.off('drain', t); + }; + this.once('drain', t), this.once('error', r); + } + function is(e) { + if (e != null && typeof e != 'function') throw new Error('flush cb must be a function'); + if (this.destroyed) { + let t = new Error('SonicBoom destroyed'); + if (e) { + e(t); + return; + } + throw t; + } + if (this.minLength <= 0) { + e?.(); + return; + } + e && lr.call(this, e), !this._writing && (this._bufs.length === 0 && this._bufs.push(''), this._actualWrite()); + } + function ss(e) { + if (e != null && typeof e != 'function') throw new Error('flush cb must be a function'); + if (this.destroyed) { + let t = new Error('SonicBoom destroyed'); + if (e) { + e(t); + return; + } + throw t; + } + if (this.minLength <= 0) { + e?.(); + return; + } + e && lr.call(this, e), + !this._writing && (this._bufs.length === 0 && (this._bufs.push([]), this._lens.push(0)), this._actualWrite()); + } + I.prototype.reopen = function (e) { + if (this.destroyed) throw new Error('SonicBoom destroyed'); + if (this._opening) { + this.once('ready', () => { + this.reopen(e); + }); + return; + } + if (this._ending) return; + if (!this.file) throw new Error('Unable to reopen a file descriptor, you must pass a file to SonicBoom'); + if (((this._reopening = !0), this._writing)) return; + let t = this.fd; + this.once('ready', () => { + t !== this.fd && + A.close(t, (r) => { + if (r) return this.emit('error', r); + }); + }), + sr(e || this.file, this); + }; + I.prototype.end = function () { + if (this.destroyed) throw new Error('SonicBoom destroyed'); + if (this._opening) { + this.once('ready', () => { + this.end(); + }); + return; + } + this._ending || + ((this._ending = !0), !this._writing && (this._len > 0 && this.fd >= 0 ? this._actualWrite() : oe(this))); + }; + function os() { + if (this.destroyed) throw new Error('SonicBoom destroyed'); + if (this.fd < 0) throw new Error('sonic boom is not ready yet'); + !this._writing && this._writingBuf.length > 0 && (this._bufs.unshift(this._writingBuf), (this._writingBuf = '')); + let e = ''; + for (; this._bufs.length || e; ) { + e.length <= 0 && (e = this._bufs[0]); + try { + let t = A.writeSync(this.fd, e, 'utf8'); + (e = e.slice(t)), (this._len = Math.max(this._len - t, 0)), e.length <= 0 && this._bufs.shift(); + } catch (t) { + if ((t.code === 'EAGAIN' || t.code === 'EBUSY') && !this.retryEAGAIN(t, e.length, this._len - e.length)) + throw t; + Ie(ie); + } + } + try { + A.fsyncSync(this.fd); + } catch {} + } + function ls() { + if (this.destroyed) throw new Error('SonicBoom destroyed'); + if (this.fd < 0) throw new Error('sonic boom is not ready yet'); + !this._writing && this._writingBuf.length > 0 && (this._bufs.unshift([this._writingBuf]), (this._writingBuf = se)); + let e = se; + for (; this._bufs.length || e.length; ) { + e.length <= 0 && (e = or(this._bufs[0], this._lens[0])); + try { + let t = A.writeSync(this.fd, e); + (e = e.subarray(t)), + (this._len = Math.max(this._len - t, 0)), + e.length <= 0 && (this._bufs.shift(), this._lens.shift()); + } catch (t) { + if ((t.code === 'EAGAIN' || t.code === 'EBUSY') && !this.retryEAGAIN(t, e.length, this._len - e.length)) + throw t; + Ie(ie); + } + } + } + I.prototype.destroy = function () { + this.destroyed || oe(this); + }; + function fs() { + let e = this.release; + if (((this._writing = !0), (this._writingBuf = this._writingBuf || this._bufs.shift() || ''), this.sync)) + try { + let t = A.writeSync(this.fd, this._writingBuf, 'utf8'); + e(null, t); + } catch (t) { + e(t); + } + else A.write(this.fd, this._writingBuf, 'utf8', e); + } + function us() { + let e = this.release; + if ( + ((this._writing = !0), + (this._writingBuf = this._writingBuf.length ? this._writingBuf : or(this._bufs.shift(), this._lens.shift())), + this.sync) + ) + try { + let t = A.writeSync(this.fd, this._writingBuf); + e(null, t); + } catch (t) { + e(t); + } + else A.write(this.fd, this._writingBuf, e); + } + function oe(e) { + if (e.fd === -1) { + e.once('ready', oe.bind(null, e)); + return; + } + (e.destroyed = !0), (e._bufs = []), (e._lens = []), A.fsync(e.fd, t); + function t() { + e.fd !== 1 && e.fd !== 2 ? A.close(e.fd, r) : r(); + } + function r(n) { + if (n) { + e.emit('error', n); + return; + } + e._ending && !e._writing && e.emit('finish'), e.emit('close'); + } + } + I.SonicBoom = I; + I.default = I; + fr.exports = I; +}); +var Ne = E(($f, gr) => { + 'use strict'; + var D = { exit: [], beforeExit: [] }, + cr = { exit: as, beforeExit: hs }, + ar = new FinalizationRegistry(ds); + function cs(e) { + D[e].length > 0 || process.on(e, cr[e]); + } + function hr(e) { + D[e].length > 0 || process.removeListener(e, cr[e]); + } + function as() { + dr('exit'); + } + function hs() { + dr('beforeExit'); + } + function dr(e) { + for (let t of D[e]) { + let r = t.deref(), + n = t.fn; + r !== void 0 && n(r, e); + } + } + function ds(e) { + for (let t of ['exit', 'beforeExit']) { + let r = D[t].indexOf(e); + D[t].splice(r, r + 1), hr(t); + } + } + function yr(e, t, r) { + if (t === void 0) throw new Error("the object can't be undefined"); + cs(e); + let n = new WeakRef(t); + (n.fn = r), ar.register(t, n), D[e].push(n); + } + function ys(e, t) { + yr('exit', e, t); + } + function gs(e, t) { + yr('beforeExit', e, t); + } + function ms(e) { + ar.unregister(e); + for (let t of ['exit', 'beforeExit']) + (D[t] = D[t].filter((r) => { + let n = r.deref(); + return n && n !== e; + })), + hr(t); + } + gr.exports = { register: ys, registerBeforeExit: gs, unregister: ms }; +}); +var mr = E((Af, ps) => { + ps.exports = { + name: 'thread-stream', + version: '2.3.0', + description: 'A streaming way to send data to a Node.js Worker Thread', + main: 'index.js', + types: 'index.d.ts', + dependencies: { 'real-require': '^0.2.0' }, + devDependencies: { + '@types/node': '^18.0.0', + '@types/tap': '^15.0.0', + desm: '^1.3.0', + fastbench: '^1.0.1', + husky: '^8.0.1', + 'sonic-boom': '^3.0.0', + standard: '^17.0.0', + tap: '^16.2.0', + 'ts-node': '^10.8.0', + typescript: '^4.7.2', + 'why-is-node-running': '^2.2.2', + }, + scripts: { + test: 'standard && npm run transpile && tap test/*.test.*js && tap --ts test/*.test.*ts', + 'test:ci': 'standard && npm run transpile && npm run test:ci:js && npm run test:ci:ts', + 'test:ci:js': 'tap --no-check-coverage --coverage-report=lcovonly "test/**/*.test.*js"', + 'test:ci:ts': 'tap --ts --no-check-coverage --coverage-report=lcovonly "test/**/*.test.*ts"', + 'test:yarn': 'npm run transpile && tap "test/**/*.test.js" --no-check-coverage', + transpile: 'sh ./test/ts/transpile.sh', + prepare: 'husky install', + }, + standard: { ignore: ['test/ts/**/*'] }, + repository: { type: 'git', url: 'git+https://github.com/mcollina/thread-stream.git' }, + keywords: ['worker', 'thread', 'threads', 'stream'], + author: 'Matteo Collina ', + license: 'MIT', + bugs: { url: 'https://github.com/mcollina/thread-stream/issues' }, + homepage: 'https://github.com/mcollina/thread-stream#readme', + }; +}); +var br = E((jf, pr) => { + 'use strict'; + function bs(e, t, r, n, i) { + let o = Date.now() + n, + f = Atomics.load(e, t); + if (f === r) { + i(null, 'ok'); + return; + } + let h = f, + d = (y) => { + Date.now() > o + ? i(null, 'timed-out') + : setTimeout(() => { + (h = f), + (f = Atomics.load(e, t)), + f === h ? d(y >= 1e3 ? 1e3 : y * 2) : f === r ? i(null, 'ok') : i(null, 'not-equal'); + }, y); + }; + d(1); + } + function ws(e, t, r, n, i) { + let o = Date.now() + n, + f = Atomics.load(e, t); + if (f !== r) { + i(null, 'ok'); + return; + } + let h = (d) => { + Date.now() > o + ? i(null, 'timed-out') + : setTimeout(() => { + (f = Atomics.load(e, t)), f !== r ? i(null, 'ok') : h(d >= 1e3 ? 1e3 : d * 2); + }, d); + }; + h(1); + } + pr.exports = { wait: bs, waitDiff: ws }; +}); +var Sr = E((Lf, wr) => { + 'use strict'; + wr.exports = { WRITE_INDEX: 4, READ_INDEX: 8 }; +}); +var vr = E((Tf, Or) => { + 'use strict'; + var { version: Ss } = mr(), + { EventEmitter: _s } = require('events'), + { Worker: Es } = require('worker_threads'), + { join: xs } = require('path'), + { pathToFileURL: Os } = require('url'), + { wait: vs } = br(), + { WRITE_INDEX: T, READ_INDEX: P } = Sr(), + $s = require('buffer'), + As = require('assert'), + a = Symbol('kImpl'), + js = $s.constants.MAX_STRING_LENGTH, + fe = class { + constructor(t) { + this._value = t; + } + deref() { + return this._value; + } + }, + Ls = + global.FinalizationRegistry || + class { + register() {} + unregister() {} + }, + ks = global.WeakRef || fe, + _r = new Ls((e) => { + e.exited || e.terminate(); + }); + function Ts(e, t) { + let { filename: r, workerData: n } = t, + o = + ('__bundlerPathsOverrides' in globalThis ? globalThis.__bundlerPathsOverrides : {})['thread-stream-worker'] || + xs(__dirname, 'lib', 'worker.js'), + f = new Es(o, { + ...t.workerOpts, + trackUnmanagedFds: !1, + workerData: { + filename: r.indexOf('file://') === 0 ? r : Os(r).href, + dataBuf: e[a].dataBuf, + stateBuf: e[a].stateBuf, + workerData: { $context: { threadStreamVersion: Ss }, ...n }, + }, + }); + return (f.stream = new fe(e)), f.on('message', Rs), f.on('exit', xr), _r.register(e, f), f; + } + function Er(e) { + As(!e[a].sync), e[a].needDrain && ((e[a].needDrain = !1), e.emit('drain')); + } + function le(e) { + let t = Atomics.load(e[a].state, T), + r = e[a].data.length - t; + if (r > 0) { + if (e[a].buf.length === 0) { + (e[a].flushing = !1), e[a].ending ? Me(e) : e[a].needDrain && process.nextTick(Er, e); + return; + } + let n = e[a].buf.slice(0, r), + i = Buffer.byteLength(n); + i <= r + ? ((e[a].buf = e[a].buf.slice(r)), ue(e, n, le.bind(null, e))) + : e.flush(() => { + if (!e.destroyed) { + for (Atomics.store(e[a].state, P, 0), Atomics.store(e[a].state, T, 0); i > e[a].data.length; ) + (r = r / 2), (n = e[a].buf.slice(0, r)), (i = Buffer.byteLength(n)); + (e[a].buf = e[a].buf.slice(r)), ue(e, n, le.bind(null, e)); + } + }); + } else if (r === 0) { + if (t === 0 && e[a].buf.length === 0) return; + e.flush(() => { + Atomics.store(e[a].state, P, 0), Atomics.store(e[a].state, T, 0), le(e); + }); + } else C(e, new Error('overwritten')); + } + function Rs(e) { + let t = this.stream.deref(); + if (t === void 0) { + (this.exited = !0), this.terminate(); + return; + } + switch (e.code) { + case 'READY': + (this.stream = new ks(t)), + t.flush(() => { + (t[a].ready = !0), t.emit('ready'); + }); + break; + case 'ERROR': + C(t, e.err); + break; + case 'EVENT': + Array.isArray(e.args) ? t.emit(e.name, ...e.args) : t.emit(e.name, e.args); + break; + default: + C(t, new Error('this should not happen: ' + e.code)); + } + } + function xr(e) { + let t = this.stream.deref(); + t !== void 0 && + (_r.unregister(t), + (t.worker.exited = !0), + t.worker.off('exit', xr), + C(t, e !== 0 ? new Error('the worker thread exited') : null)); + } + var Ce = class extends _s { + constructor(t = {}) { + if ((super(), t.bufferSize < 4)) throw new Error('bufferSize must at least fit a 4-byte utf-8 char'); + (this[a] = {}), + (this[a].stateBuf = new SharedArrayBuffer(128)), + (this[a].state = new Int32Array(this[a].stateBuf)), + (this[a].dataBuf = new SharedArrayBuffer(t.bufferSize || 4 * 1024 * 1024)), + (this[a].data = Buffer.from(this[a].dataBuf)), + (this[a].sync = t.sync || !1), + (this[a].ending = !1), + (this[a].ended = !1), + (this[a].needDrain = !1), + (this[a].destroyed = !1), + (this[a].flushing = !1), + (this[a].ready = !1), + (this[a].finished = !1), + (this[a].errored = null), + (this[a].closed = !1), + (this[a].buf = ''), + (this.worker = Ts(this, t)); + } + write(t) { + if (this[a].destroyed) return De(this, new Error('the worker has exited')), !1; + if (this[a].ending) return De(this, new Error('the worker is ending')), !1; + if (this[a].flushing && this[a].buf.length + t.length >= js) + try { + Pe(this), (this[a].flushing = !0); + } catch (r) { + return C(this, r), !1; + } + if (((this[a].buf += t), this[a].sync)) + try { + return Pe(this), !0; + } catch (r) { + return C(this, r), !1; + } + return ( + this[a].flushing || ((this[a].flushing = !0), setImmediate(le, this)), + (this[a].needDrain = this[a].data.length - this[a].buf.length - Atomics.load(this[a].state, T) <= 0), + !this[a].needDrain + ); + } + end() { + this[a].destroyed || ((this[a].ending = !0), Me(this)); + } + flush(t) { + if (this[a].destroyed) { + typeof t == 'function' && process.nextTick(t, new Error('the worker has exited')); + return; + } + let r = Atomics.load(this[a].state, T); + vs(this[a].state, P, r, 1 / 0, (n, i) => { + if (n) { + C(this, n), process.nextTick(t, n); + return; + } + if (i === 'not-equal') { + this.flush(t); + return; + } + process.nextTick(t); + }); + } + flushSync() { + this[a].destroyed || (Pe(this), ze(this)); + } + unref() { + this.worker.unref(); + } + ref() { + this.worker.ref(); + } + get ready() { + return this[a].ready; + } + get destroyed() { + return this[a].destroyed; + } + get closed() { + return this[a].closed; + } + get writable() { + return !this[a].destroyed && !this[a].ending; + } + get writableEnded() { + return this[a].ending; + } + get writableFinished() { + return this[a].finished; + } + get writableNeedDrain() { + return this[a].needDrain; + } + get writableObjectMode() { + return !1; + } + get writableErrored() { + return this[a].errored; + } + }; + function De(e, t) { + setImmediate(() => { + e.emit('error', t); + }); + } + function C(e, t) { + e[a].destroyed || + ((e[a].destroyed = !0), + t && ((e[a].errored = t), De(e, t)), + e.worker.exited + ? setImmediate(() => { + (e[a].closed = !0), e.emit('close'); + }) + : e.worker + .terminate() + .catch(() => {}) + .then(() => { + (e[a].closed = !0), e.emit('close'); + })); + } + function ue(e, t, r) { + let n = Atomics.load(e[a].state, T), + i = Buffer.byteLength(t); + return e[a].data.write(t, n), Atomics.store(e[a].state, T, n + i), Atomics.notify(e[a].state, T), r(), !0; + } + function Me(e) { + if (!(e[a].ended || !e[a].ending || e[a].flushing)) { + e[a].ended = !0; + try { + e.flushSync(); + let t = Atomics.load(e[a].state, P); + Atomics.store(e[a].state, T, -1), Atomics.notify(e[a].state, T); + let r = 0; + for (; t !== -1; ) { + if ((Atomics.wait(e[a].state, P, t, 1e3), (t = Atomics.load(e[a].state, P)), t === -2)) { + C(e, new Error('end() failed')); + return; + } + if (++r === 10) { + C(e, new Error('end() took too long (10s)')); + return; + } + } + process.nextTick(() => { + (e[a].finished = !0), e.emit('finish'); + }); + } catch (t) { + C(e, t); + } + } + } + function Pe(e) { + let t = () => { + e[a].ending ? Me(e) : e[a].needDrain && process.nextTick(Er, e); + }; + for (e[a].flushing = !1; e[a].buf.length !== 0; ) { + let r = Atomics.load(e[a].state, T), + n = e[a].data.length - r; + if (n === 0) { + ze(e), Atomics.store(e[a].state, P, 0), Atomics.store(e[a].state, T, 0); + continue; + } else if (n < 0) throw new Error('overwritten'); + let i = e[a].buf.slice(0, n), + o = Buffer.byteLength(i); + if (o <= n) (e[a].buf = e[a].buf.slice(n)), ue(e, i, t); + else { + for (ze(e), Atomics.store(e[a].state, P, 0), Atomics.store(e[a].state, T, 0); o > e[a].buf.length; ) + (n = n / 2), (i = e[a].buf.slice(0, n)), (o = Buffer.byteLength(i)); + (e[a].buf = e[a].buf.slice(n)), ue(e, i, t); + } + } + } + function ze(e) { + if (e[a].flushing) throw new Error('unable to flush while flushing'); + let t = Atomics.load(e[a].state, T), + r = 0; + for (;;) { + let n = Atomics.load(e[a].state, P); + if (n === -2) throw Error('_flushSync failed'); + if (n !== t) Atomics.wait(e[a].state, P, n, 1e3); + else break; + if (++r === 10) throw new Error('_flushSync took too long (10s)'); + } + } + Or.exports = Ce; +}); +var Ke = E((Rf, $r) => { + 'use strict'; + var { createRequire: Bs } = require('module'), + qs = $e(), + { join: We, isAbsolute: Is, sep: Ns } = require('path'), + Ps = qe(), + Fe = Ne(), + Cs = vr(); + function Ds(e) { + Fe.register(e, Ms), + Fe.registerBeforeExit(e, Ws), + e.on('close', function () { + Fe.unregister(e); + }); + } + function zs(e, t, r) { + let n = new Cs({ filename: e, workerData: t, workerOpts: r }); + n.on('ready', i), + n.on('close', function () { + process.removeListener('exit', o); + }), + process.on('exit', o); + function i() { + process.removeListener('exit', o), n.unref(), r.autoEnd !== !1 && Ds(n); + } + function o() { + n.closed || (n.flushSync(), Ps(100), n.end()); + } + return n; + } + function Ms(e) { + e.ref(), + e.flushSync(), + e.end(), + e.once('close', function () { + e.unref(); + }); + } + function Ws(e) { + e.flushSync(); + } + function Fs(e) { + let { pipeline: t, targets: r, levels: n, dedupe: i, options: o = {}, worker: f = {}, caller: h = qs() } = e, + d = typeof h == 'string' ? [h] : h, + y = '__bundlerPathsOverrides' in globalThis ? globalThis.__bundlerPathsOverrides : {}, + l = e.target; + if (l && r) throw new Error('only one of target or targets can be specified'); + return ( + r + ? ((l = y['pino-worker'] || We(__dirname, 'worker.js')), + (o.targets = r.map((g) => ({ ...g, target: c(g.target) })))) + : t && + ((l = y['pino-pipeline-worker'] || We(__dirname, 'worker-pipeline.js')), + (o.targets = t.map((g) => ({ ...g, target: c(g.target) })))), + n && (o.levels = n), + i && (o.dedupe = i), + zs(c(l), o, f) + ); + function c(g) { + if (((g = y[g] || g), Is(g) || g.indexOf('file://') === 0)) return g; + if (g === 'pino/file') return We(__dirname, '..', 'file.js'); + let s; + for (let u of d) + try { + let p = u === 'node:repl' ? process.cwd() + Ns : u; + s = Bs(p).resolve(g); + break; + } catch { + continue; + } + if (!s) throw new Error(`unable to determine transport target for "${g}"`); + return s; + } + } + $r.exports = Fs; +}); +var he = E((Bf, Pr) => { + 'use strict'; + var Ar = tr(), + { mapHttpRequest: Ks, mapHttpResponse: Vs } = ve(), + Je = ur(), + jr = Ne(), + { + lsCacheSym: Js, + chindingsSym: Tr, + writeSym: Lr, + serializersSym: Rr, + formatOptsSym: kr, + endSym: Us, + stringifiersSym: Br, + stringifySym: qr, + stringifySafeSym: Ue, + wildcardFirstSym: Ir, + nestedKeySym: Gs, + formattersSym: Nr, + messageKeySym: Hs, + errorKeySym: Xs, + nestedKeyStrSym: Ys, + msgPrefixSym: ce, + } = U(), + { isMainThread: Qs } = require('worker_threads'), + Zs = Ke(); + function G() {} + function eo(e, t) { + if (!t) return r; + return function (...i) { + t.call(this, i, r, e); + }; + function r(n, ...i) { + if (typeof n == 'object') { + let o = n; + n !== null && + (n.method && n.headers && n.socket ? (n = Ks(n)) : typeof n.setHeader == 'function' && (n = Vs(n))); + let f; + o === null && i.length === 0 ? (f = [null]) : ((o = i.shift()), (f = i)), + typeof this[ce] == 'string' && o !== void 0 && o !== null && (o = this[ce] + o), + this[Lr](n, Ar(o, f, this[kr]), e); + } else { + let o = n === void 0 ? i.shift() : n; + typeof this[ce] == 'string' && o !== void 0 && o !== null && (o = this[ce] + o), + this[Lr](null, Ar(o, i, this[kr]), e); + } + } + } + function Ve(e) { + let t = '', + r = 0, + n = !1, + i = 255, + o = e.length; + if (o > 100) return JSON.stringify(e); + for (var f = 0; f < o && i >= 32; f++) + (i = e.charCodeAt(f)), (i === 34 || i === 92) && ((t += e.slice(r, f) + '\\'), (r = f), (n = !0)); + return n ? (t += e.slice(r)) : (t = e), i < 32 ? JSON.stringify(e) : '"' + t + '"'; + } + function to(e, t, r, n) { + let i = this[qr], + o = this[Ue], + f = this[Br], + h = this[Us], + d = this[Tr], + y = this[Rr], + l = this[Nr], + c = this[Hs], + g = this[Xs], + s = this[Js][r] + n; + s = s + d; + let u; + l.log && (e = l.log(e)); + let p = f[Ir], + b = ''; + for (let m in e) + if (((u = e[m]), Object.prototype.hasOwnProperty.call(e, m) && u !== void 0)) { + y[m] ? (u = y[m](u)) : m === g && y.err && (u = y.err(u)); + let S = f[m] || p; + switch (typeof u) { + case 'undefined': + case 'function': + continue; + case 'number': + Number.isFinite(u) === !1 && (u = null); + case 'boolean': + S && (u = S(u)); + break; + case 'string': + u = (S || Ve)(u); + break; + default: + u = (S || i)(u, o); + } + if (u === void 0) continue; + let _ = Ve(m); + b += ',' + _ + ':' + u; + } + let w = ''; + if (t !== void 0) { + u = y[c] ? y[c](t) : t; + let m = f[c] || p; + switch (typeof u) { + case 'function': + break; + case 'number': + Number.isFinite(u) === !1 && (u = null); + case 'boolean': + m && (u = m(u)), (w = ',"' + c + '":' + u); + break; + case 'string': + (u = (m || Ve)(u)), (w = ',"' + c + '":' + u); + break; + default: + (u = (m || i)(u, o)), (w = ',"' + c + '":' + u); + } + } + return this[Gs] && b ? s + this[Ys] + b.slice(1) + '}' + w + h : s + b + w + h; + } + function ro(e, t) { + let r, + n = e[Tr], + i = e[qr], + o = e[Ue], + f = e[Br], + h = f[Ir], + d = e[Rr], + y = e[Nr].bindings; + t = y(t); + for (let l in t) + if ( + ((r = t[l]), + (l !== 'level' && + l !== 'serializers' && + l !== 'formatters' && + l !== 'customLevels' && + t.hasOwnProperty(l) && + r !== void 0) === !0) + ) { + if (((r = d[l] ? d[l](r) : r), (r = (f[l] || h || i)(r, o)), r === void 0)) continue; + n += ',"' + l + '":' + r; + } + return n; + } + function no(e) { + return e.write !== e.constructor.prototype.write; + } + var io = process.env.NODE_V8_COVERAGE || process.env.V8_COVERAGE; + function ae(e) { + let t = new Je(e); + return ( + t.on('error', r), + !io && + !e.sync && + Qs && + (jr.register(t, so), + t.on('close', function () { + jr.unregister(t); + })), + t + ); + function r(n) { + if (n.code === 'EPIPE') { + (t.write = G), (t.end = G), (t.flushSync = G), (t.destroy = G); + return; + } + t.removeListener('error', r), t.emit('error', n); + } + } + function so(e, t) { + e.destroyed || + (t === 'beforeExit' + ? (e.flush(), + e.on('drain', function () { + e.end(); + })) + : e.flushSync()); + } + function oo(e) { + return function (r, n, i = {}, o) { + if (typeof i == 'string') (o = ae({ dest: i })), (i = {}); + else if (typeof o == 'string') { + if (i && i.transport) throw Error('only one of option.transport or stream can be specified'); + o = ae({ dest: o }); + } else if (i instanceof Je || i.writable || i._writableState) (o = i), (i = {}); + else if (i.transport) { + if (i.transport instanceof Je || i.transport.writable || i.transport._writableState) + throw Error('option.transport do not allow stream, please pass to option directly. e.g. pino(transport)'); + if ( + i.transport.targets && + i.transport.targets.length && + i.formatters && + typeof i.formatters.level == 'function' + ) + throw Error('option.transport.targets do not allow custom level formatters'); + let d; + i.customLevels && (d = i.useOnlyCustomLevels ? i.customLevels : Object.assign({}, i.levels, i.customLevels)), + (o = Zs({ caller: n, ...i.transport, levels: d })); + } + if ( + ((i = Object.assign({}, e, i)), + (i.serializers = Object.assign({}, e.serializers, i.serializers)), + (i.formatters = Object.assign({}, e.formatters, i.formatters)), + i.prettyPrint) + ) + throw new Error( + 'prettyPrint option is no longer supported, see the pino-pretty package (https://github.com/pinojs/pino-pretty)' + ); + let { enabled: f, onChild: h } = i; + return ( + f === !1 && (i.level = 'silent'), + h || (i.onChild = G), + o || (no(process.stdout) ? (o = process.stdout) : (o = ae({ fd: process.stdout.fd || 1 }))), + { opts: i, stream: o } + ); + }; + } + function lo(e, t) { + try { + return JSON.stringify(e); + } catch { + try { + return (t || this[Ue])(e); + } catch { + return '"[unable to serialize, circular reference is too complex to analyze]"'; + } + } + } + function fo(e, t, r) { + return { level: e, bindings: t, log: r }; + } + function uo(e) { + let t = Number(e); + return typeof e == 'string' && Number.isFinite(t) ? t : e === void 0 ? 1 : e; + } + Pr.exports = { + noop: G, + buildSafeSonicBoom: ae, + asChindings: ro, + asJson: to, + genLog: eo, + createArgsNormalizer: oo, + stringify: lo, + buildFormatters: fo, + normalizeDestFileDescriptor: uo, + }; +}); +var de = E((qf, Dr) => { + 'use strict'; + var { + lsCacheSym: co, + levelValSym: Ge, + useOnlyCustomLevelsSym: ao, + streamSym: ho, + formattersSym: yo, + hooksSym: go, + } = U(), + { noop: mo, genLog: W } = he(), + N = { trace: 10, debug: 20, info: 30, warn: 40, error: 50, fatal: 60 }, + Cr = { + fatal: (e) => { + let t = W(N.fatal, e); + return function (...r) { + let n = this[ho]; + if ((t.call(this, ...r), typeof n.flushSync == 'function')) + try { + n.flushSync(); + } catch {} + }; + }, + error: (e) => W(N.error, e), + warn: (e) => W(N.warn, e), + info: (e) => W(N.info, e), + debug: (e) => W(N.debug, e), + trace: (e) => W(N.trace, e), + }, + He = Object.keys(N).reduce((e, t) => ((e[N[t]] = t), e), {}), + po = Object.keys(He).reduce((e, t) => ((e[t] = '{"level":' + Number(t)), e), {}); + function bo(e) { + let t = e[yo].level, + { labels: r } = e.levels, + n = {}; + for (let i in r) { + let o = t(r[i], Number(i)); + n[i] = JSON.stringify(o).slice(0, -1); + } + return (e[co] = n), e; + } + function wo(e, t) { + if (t) return !1; + switch (e) { + case 'fatal': + case 'error': + case 'warn': + case 'info': + case 'debug': + case 'trace': + return !0; + default: + return !1; + } + } + function So(e) { + let { labels: t, values: r } = this.levels; + if (typeof e == 'number') { + if (t[e] === void 0) throw Error('unknown level value' + e); + e = t[e]; + } + if (r[e] === void 0) throw Error('unknown level ' + e); + let n = this[Ge], + i = (this[Ge] = r[e]), + o = this[ao], + f = this[go].logMethod; + for (let h in r) { + if (i > r[h]) { + this[h] = mo; + continue; + } + this[h] = wo(h, o) ? Cr[h](f) : W(r[h], f); + } + this.emit('level-change', e, i, t[n], n, this); + } + function _o(e) { + let { levels: t, levelVal: r } = this; + return t && t.labels ? t.labels[r] : ''; + } + function Eo(e) { + let { values: t } = this.levels, + r = t[e]; + return r !== void 0 && r >= this[Ge]; + } + function xo(e = null, t = !1) { + let r = e ? Object.keys(e).reduce((o, f) => ((o[e[f]] = f), o), {}) : null, + n = Object.assign(Object.create(Object.prototype, { Infinity: { value: 'silent' } }), t ? null : He, r), + i = Object.assign(Object.create(Object.prototype, { silent: { value: 1 / 0 } }), t ? null : N, e); + return { labels: n, values: i }; + } + function Oo(e, t, r) { + if (typeof e == 'number') { + if ( + ![] + .concat( + Object.keys(t || {}).map((o) => t[o]), + r ? [] : Object.keys(He).map((o) => +o), + 1 / 0 + ) + .includes(e) + ) + throw Error(`default level:${e} must be included in custom levels`); + return; + } + let n = Object.assign(Object.create(Object.prototype, { silent: { value: 1 / 0 } }), r ? null : N, t); + if (!(e in n)) throw Error(`default level:${e} must be included in custom levels`); + } + function vo(e, t) { + let { labels: r, values: n } = e; + for (let i in t) { + if (i in n) throw Error('levels cannot be overridden'); + if (t[i] in r) throw Error('pre-existing level values cannot be used for new levels'); + } + } + Dr.exports = { + initialLsCache: po, + genLsCache: bo, + levelMethods: Cr, + getLevel: _o, + setLevel: So, + isLevelEnabled: Eo, + mappings: xo, + levels: N, + assertNoLevelCollisions: vo, + assertDefaultLevelFound: Oo, + }; +}); +var Xe = E((If, zr) => { + 'use strict'; + zr.exports = { version: '8.16.0' }; +}); +var Yr = E((Pf, Xr) => { + 'use strict'; + var { EventEmitter: $o } = require('events'), + { + lsCacheSym: Ao, + levelValSym: jo, + setLevelSym: Qe, + getLevelSym: Mr, + chindingsSym: Ze, + parsedChindingsSym: Lo, + mixinSym: ko, + asJsonSym: Jr, + writeSym: To, + mixinMergeStrategySym: Ro, + timeSym: Bo, + timeSliceIndexSym: qo, + streamSym: Ur, + serializersSym: F, + formattersSym: Ye, + errorKeySym: Io, + messageKeySym: No, + useOnlyCustomLevelsSym: Po, + needsMetadataGsym: Co, + redactFmtSym: Do, + stringifySym: zo, + formatOptsSym: Mo, + stringifiersSym: Wo, + msgPrefixSym: Wr, + } = U(), + { + getLevel: Fo, + setLevel: Ko, + isLevelEnabled: Vo, + mappings: Jo, + initialLsCache: Uo, + genLsCache: Go, + assertNoLevelCollisions: Ho, + } = de(), + { asChindings: Gr, asJson: Xo, buildFormatters: Fr, stringify: Kr } = he(), + { version: Yo } = Xe(), + Qo = Re(), + Zo = class {}, + Hr = { + constructor: Zo, + child: el, + bindings: tl, + setBindings: rl, + flush: ol, + isLevelEnabled: Vo, + version: Yo, + get level() { + return this[Mr](); + }, + set level(e) { + this[Qe](e); + }, + get levelVal() { + return this[jo]; + }, + set levelVal(e) { + throw Error('levelVal is read-only'); + }, + [Ao]: Uo, + [To]: il, + [Jr]: Xo, + [Mr]: Fo, + [Qe]: Ko, + }; + Object.setPrototypeOf(Hr, $o.prototype); + Xr.exports = function () { + return Object.create(Hr); + }; + var Vr = (e) => e; + function el(e, t) { + if (!e) throw Error('missing bindings for child Pino'); + t = t || {}; + let r = this[F], + n = this[Ye], + i = Object.create(this); + if (t.hasOwnProperty('serializers') === !0) { + i[F] = Object.create(null); + for (let l in r) i[F][l] = r[l]; + let d = Object.getOwnPropertySymbols(r); + for (var o = 0; o < d.length; o++) { + let l = d[o]; + i[F][l] = r[l]; + } + for (let l in t.serializers) i[F][l] = t.serializers[l]; + let y = Object.getOwnPropertySymbols(t.serializers); + for (var f = 0; f < y.length; f++) { + let l = y[f]; + i[F][l] = t.serializers[l]; + } + } else i[F] = r; + if (t.hasOwnProperty('formatters')) { + let { level: d, bindings: y, log: l } = t.formatters; + i[Ye] = Fr(d || n.level, y || Vr, l || n.log); + } else i[Ye] = Fr(n.level, Vr, n.log); + if ( + (t.hasOwnProperty('customLevels') === !0 && + (Ho(this.levels, t.customLevels), (i.levels = Jo(t.customLevels, i[Po])), Go(i)), + (typeof t.redact == 'object' && t.redact !== null) || Array.isArray(t.redact)) + ) { + i.redact = t.redact; + let d = Qo(i.redact, Kr), + y = { stringify: d[Do] }; + (i[zo] = Kr), (i[Wo] = d), (i[Mo] = y); + } + typeof t.msgPrefix == 'string' && (i[Wr] = (this[Wr] || '') + t.msgPrefix), (i[Ze] = Gr(i, e)); + let h = t.level || this.level; + return i[Qe](h), this.onChild(i), i; + } + function tl() { + let t = `{${this[Ze].substr(1)}}`, + r = JSON.parse(t); + return delete r.pid, delete r.hostname, r; + } + function rl(e) { + let t = Gr(this, e); + (this[Ze] = t), delete this[Lo]; + } + function nl(e, t) { + return Object.assign(t, e); + } + function il(e, t, r) { + let n = this[Bo](), + i = this[ko], + o = this[Io], + f = this[No], + h = this[Ro] || nl, + d; + e == null + ? (d = {}) + : e instanceof Error + ? ((d = { [o]: e }), t === void 0 && (t = e.message)) + : ((d = e), t === void 0 && e[f] === void 0 && e[o] && (t = e[o].message)), + i && (d = h(d, i(d, r, this))); + let y = this[Jr](d, t, r, n), + l = this[Ur]; + l[Co] === !0 && + ((l.lastLevel = r), (l.lastObj = d), (l.lastMsg = t), (l.lastTime = n.slice(this[qo])), (l.lastLogger = this)), + l.write(y); + } + function sl() {} + function ol(e) { + if (e != null && typeof e != 'function') throw Error('callback must be a function'); + let t = this[Ur]; + 'flush' in t ? t.flush(e || sl) : e && e(); + } +}); +var rn = E((nt, tn) => { + 'use strict'; + var { hasOwnProperty: ye } = Object.prototype, + V = rt(); + V.configure = rt; + V.stringify = V; + V.default = V; + nt.stringify = V; + nt.configure = rt; + tn.exports = V; + var ll = + /[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/; + function z(e) { + return e.length < 5e3 && !ll.test(e) ? `"${e}"` : JSON.stringify(e); + } + function et(e) { + if (e.length > 200) return e.sort(); + for (let t = 1; t < e.length; t++) { + let r = e[t], + n = t; + for (; n !== 0 && e[n - 1] > r; ) (e[n] = e[n - 1]), n--; + e[n] = r; + } + return e; + } + var fl = Object.getOwnPropertyDescriptor( + Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array())), + Symbol.toStringTag + ).get; + function tt(e) { + return fl.call(e) !== void 0 && e.length !== 0; + } + function Qr(e, t, r) { + e.length < r && (r = e.length); + let n = t === ',' ? '' : ' ', + i = `"0":${n}${e[0]}`; + for (let o = 1; o < r; o++) i += `${t}"${o}":${n}${e[o]}`; + return i; + } + function ul(e) { + if (ye.call(e, 'circularValue')) { + let t = e.circularValue; + if (typeof t == 'string') return `"${t}"`; + if (t == null) return t; + if (t === Error || t === TypeError) + return { + toString() { + throw new TypeError('Converting circular structure to JSON'); + }, + }; + throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined'); + } + return '"[Circular]"'; + } + function Zr(e, t) { + let r; + if (ye.call(e, t) && ((r = e[t]), typeof r != 'boolean')) + throw new TypeError(`The "${t}" argument must be of type boolean`); + return r === void 0 ? !0 : r; + } + function en(e, t) { + let r; + if (ye.call(e, t)) { + if (((r = e[t]), typeof r != 'number')) throw new TypeError(`The "${t}" argument must be of type number`); + if (!Number.isInteger(r)) throw new TypeError(`The "${t}" argument must be an integer`); + if (r < 1) throw new RangeError(`The "${t}" argument must be >= 1`); + } + return r === void 0 ? 1 / 0 : r; + } + function K(e) { + return e === 1 ? '1 item' : `${e} items`; + } + function cl(e) { + let t = new Set(); + for (let r of e) (typeof r == 'string' || typeof r == 'number') && t.add(String(r)); + return t; + } + function al(e) { + if (ye.call(e, 'strict')) { + let t = e.strict; + if (typeof t != 'boolean') throw new TypeError('The "strict" argument must be of type boolean'); + if (t) + return (r) => { + let n = `Object can not safely be stringified. Received type ${typeof r}`; + throw (typeof r != 'function' && (n += ` (${r.toString()})`), new Error(n)); + }; + } + } + function rt(e) { + e = { ...e }; + let t = al(e); + t && (e.bigint === void 0 && (e.bigint = !1), 'circularValue' in e || (e.circularValue = Error)); + let r = ul(e), + n = Zr(e, 'bigint'), + i = Zr(e, 'deterministic'), + o = en(e, 'maximumDepth'), + f = en(e, 'maximumBreadth'); + function h(g, s, u, p, b, w) { + let m = s[g]; + switch ( + (typeof m == 'object' && m !== null && typeof m.toJSON == 'function' && (m = m.toJSON(g)), + (m = p.call(s, g, m)), + typeof m) + ) { + case 'string': + return z(m); + case 'object': { + if (m === null) return 'null'; + if (u.indexOf(m) !== -1) return r; + let S = '', + _ = ',', + O = w; + if (Array.isArray(m)) { + if (m.length === 0) return '[]'; + if (o < u.length + 1) return '"[Array]"'; + u.push(m), + b !== '' && + ((w += b), + (S += ` +${w}`), + (_ = `, +${w}`)); + let L = Math.min(m.length, f), + R = 0; + for (; R < L - 1; R++) { + let M = h(String(R), m, u, p, b, w); + (S += M !== void 0 ? M : 'null'), (S += _); + } + let B = h(String(R), m, u, p, b, w); + if (((S += B !== void 0 ? B : 'null'), m.length - 1 > f)) { + let M = m.length - f - 1; + S += `${_}"... ${K(M)} not stringified"`; + } + return ( + b !== '' && + (S += ` +${O}`), + u.pop(), + `[${S}]` + ); + } + let $ = Object.keys(m), + v = $.length; + if (v === 0) return '{}'; + if (o < u.length + 1) return '"[Object]"'; + let x = '', + j = ''; + b !== '' && + ((w += b), + (_ = `, +${w}`), + (x = ' ')); + let k = Math.min(v, f); + i && !tt(m) && ($ = et($)), u.push(m); + for (let L = 0; L < k; L++) { + let R = $[L], + B = h(R, m, u, p, b, w); + B !== void 0 && ((S += `${j}${z(R)}:${x}${B}`), (j = _)); + } + if (v > f) { + let L = v - f; + (S += `${j}"...":${x}"${K(L)} not stringified"`), (j = _); + } + return ( + b !== '' && + j.length > 1 && + (S = ` +${w}${S} +${O}`), + u.pop(), + `{${S}}` + ); + } + case 'number': + return isFinite(m) ? String(m) : t ? t(m) : 'null'; + case 'boolean': + return m === !0 ? 'true' : 'false'; + case 'undefined': + return; + case 'bigint': + if (n) return String(m); + default: + return t ? t(m) : void 0; + } + } + function d(g, s, u, p, b, w) { + switch ((typeof s == 'object' && s !== null && typeof s.toJSON == 'function' && (s = s.toJSON(g)), typeof s)) { + case 'string': + return z(s); + case 'object': { + if (s === null) return 'null'; + if (u.indexOf(s) !== -1) return r; + let m = w, + S = '', + _ = ','; + if (Array.isArray(s)) { + if (s.length === 0) return '[]'; + if (o < u.length + 1) return '"[Array]"'; + u.push(s), + b !== '' && + ((w += b), + (S += ` +${w}`), + (_ = `, +${w}`)); + let v = Math.min(s.length, f), + x = 0; + for (; x < v - 1; x++) { + let k = d(String(x), s[x], u, p, b, w); + (S += k !== void 0 ? k : 'null'), (S += _); + } + let j = d(String(x), s[x], u, p, b, w); + if (((S += j !== void 0 ? j : 'null'), s.length - 1 > f)) { + let k = s.length - f - 1; + S += `${_}"... ${K(k)} not stringified"`; + } + return ( + b !== '' && + (S += ` +${m}`), + u.pop(), + `[${S}]` + ); + } + u.push(s); + let O = ''; + b !== '' && + ((w += b), + (_ = `, +${w}`), + (O = ' ')); + let $ = ''; + for (let v of p) { + let x = d(v, s[v], u, p, b, w); + x !== void 0 && ((S += `${$}${z(v)}:${O}${x}`), ($ = _)); + } + return ( + b !== '' && + $.length > 1 && + (S = ` +${w}${S} +${m}`), + u.pop(), + `{${S}}` + ); + } + case 'number': + return isFinite(s) ? String(s) : t ? t(s) : 'null'; + case 'boolean': + return s === !0 ? 'true' : 'false'; + case 'undefined': + return; + case 'bigint': + if (n) return String(s); + default: + return t ? t(s) : void 0; + } + } + function y(g, s, u, p, b) { + switch (typeof s) { + case 'string': + return z(s); + case 'object': { + if (s === null) return 'null'; + if (typeof s.toJSON == 'function') { + if (((s = s.toJSON(g)), typeof s != 'object')) return y(g, s, u, p, b); + if (s === null) return 'null'; + } + if (u.indexOf(s) !== -1) return r; + let w = b; + if (Array.isArray(s)) { + if (s.length === 0) return '[]'; + if (o < u.length + 1) return '"[Array]"'; + u.push(s), (b += p); + let x = ` +${b}`, + j = `, +${b}`, + k = Math.min(s.length, f), + L = 0; + for (; L < k - 1; L++) { + let B = y(String(L), s[L], u, p, b); + (x += B !== void 0 ? B : 'null'), (x += j); + } + let R = y(String(L), s[L], u, p, b); + if (((x += R !== void 0 ? R : 'null'), s.length - 1 > f)) { + let B = s.length - f - 1; + x += `${j}"... ${K(B)} not stringified"`; + } + return ( + (x += ` +${w}`), + u.pop(), + `[${x}]` + ); + } + let m = Object.keys(s), + S = m.length; + if (S === 0) return '{}'; + if (o < u.length + 1) return '"[Object]"'; + b += p; + let _ = `, +${b}`, + O = '', + $ = '', + v = Math.min(S, f); + tt(s) && ((O += Qr(s, _, f)), (m = m.slice(s.length)), (v -= s.length), ($ = _)), i && (m = et(m)), u.push(s); + for (let x = 0; x < v; x++) { + let j = m[x], + k = y(j, s[j], u, p, b); + k !== void 0 && ((O += `${$}${z(j)}: ${k}`), ($ = _)); + } + if (S > f) { + let x = S - f; + (O += `${$}"...": "${K(x)} not stringified"`), ($ = _); + } + return ( + $ !== '' && + (O = ` +${b}${O} +${w}`), + u.pop(), + `{${O}}` + ); + } + case 'number': + return isFinite(s) ? String(s) : t ? t(s) : 'null'; + case 'boolean': + return s === !0 ? 'true' : 'false'; + case 'undefined': + return; + case 'bigint': + if (n) return String(s); + default: + return t ? t(s) : void 0; + } + } + function l(g, s, u) { + switch (typeof s) { + case 'string': + return z(s); + case 'object': { + if (s === null) return 'null'; + if (typeof s.toJSON == 'function') { + if (((s = s.toJSON(g)), typeof s != 'object')) return l(g, s, u); + if (s === null) return 'null'; + } + if (u.indexOf(s) !== -1) return r; + let p = ''; + if (Array.isArray(s)) { + if (s.length === 0) return '[]'; + if (o < u.length + 1) return '"[Array]"'; + u.push(s); + let _ = Math.min(s.length, f), + O = 0; + for (; O < _ - 1; O++) { + let v = l(String(O), s[O], u); + (p += v !== void 0 ? v : 'null'), (p += ','); + } + let $ = l(String(O), s[O], u); + if (((p += $ !== void 0 ? $ : 'null'), s.length - 1 > f)) { + let v = s.length - f - 1; + p += `,"... ${K(v)} not stringified"`; + } + return u.pop(), `[${p}]`; + } + let b = Object.keys(s), + w = b.length; + if (w === 0) return '{}'; + if (o < u.length + 1) return '"[Object]"'; + let m = '', + S = Math.min(w, f); + tt(s) && ((p += Qr(s, ',', f)), (b = b.slice(s.length)), (S -= s.length), (m = ',')), + i && (b = et(b)), + u.push(s); + for (let _ = 0; _ < S; _++) { + let O = b[_], + $ = l(O, s[O], u); + $ !== void 0 && ((p += `${m}${z(O)}:${$}`), (m = ',')); + } + if (w > f) { + let _ = w - f; + p += `${m}"...":"${K(_)} not stringified"`; + } + return u.pop(), `{${p}}`; + } + case 'number': + return isFinite(s) ? String(s) : t ? t(s) : 'null'; + case 'boolean': + return s === !0 ? 'true' : 'false'; + case 'undefined': + return; + case 'bigint': + if (n) return String(s); + default: + return t ? t(s) : void 0; + } + } + function c(g, s, u) { + if (arguments.length > 1) { + let p = ''; + if ( + (typeof u == 'number' ? (p = ' '.repeat(Math.min(u, 10))) : typeof u == 'string' && (p = u.slice(0, 10)), + s != null) + ) { + if (typeof s == 'function') return h('', { '': g }, [], s, p, ''); + if (Array.isArray(s)) return d('', g, [], cl(s), p, ''); + } + if (p.length !== 0) return y('', g, [], p, ''); + } + return l('', g, []); + } + return c; + } +}); +var on = E((Cf, sn) => { + 'use strict'; + var it = Symbol.for('pino.metadata'), + { levels: nn } = de(), + hl = nn.info; + function dl(e, t) { + let r = 0; + (e = e || []), (t = t || { dedupe: !1 }); + let n = Object.create(nn); + (n.silent = 1 / 0), + t.levels && + typeof t.levels == 'object' && + Object.keys(t.levels).forEach((l) => { + n[l] = t.levels[l]; + }); + let i = { write: o, add: h, flushSync: f, end: d, minLevel: 0, streams: [], clone: y, [it]: !0, streamLevels: n }; + return Array.isArray(e) ? e.forEach(h, i) : h.call(i, e), (e = null), i; + function o(l) { + let c, + g = this.lastLevel, + { streams: s } = this, + u = 0, + p; + for (let b = gl(s.length, t.dedupe); pl(b, s.length, t.dedupe); b = ml(b, t.dedupe)) + if (((c = s[b]), c.level <= g)) { + if (u !== 0 && u !== c.level) break; + if (((p = c.stream), p[it])) { + let { lastTime: w, lastMsg: m, lastObj: S, lastLogger: _ } = this; + (p.lastLevel = g), (p.lastTime = w), (p.lastMsg = m), (p.lastObj = S), (p.lastLogger = _); + } + p.write(l), t.dedupe && (u = c.level); + } else if (!t.dedupe) break; + } + function f() { + for (let { stream: l } of this.streams) typeof l.flushSync == 'function' && l.flushSync(); + } + function h(l) { + if (!l) return i; + let c = typeof l.write == 'function' || l.stream, + g = l.write ? l : l.stream; + if (!c) throw Error('stream object needs to implement either StreamEntry or DestinationStream interface'); + let { streams: s, streamLevels: u } = this, + p; + typeof l.levelVal == 'number' + ? (p = l.levelVal) + : typeof l.level == 'string' + ? (p = u[l.level]) + : typeof l.level == 'number' + ? (p = l.level) + : (p = hl); + let b = { stream: g, level: p, levelVal: void 0, id: r++ }; + return s.unshift(b), s.sort(yl), (this.minLevel = s[0].level), i; + } + function d() { + for (let { stream: l } of this.streams) typeof l.flushSync == 'function' && l.flushSync(), l.end(); + } + function y(l) { + let c = new Array(this.streams.length); + for (let g = 0; g < c.length; g++) c[g] = { level: l, stream: this.streams[g].stream }; + return { write: o, add: h, minLevel: l, streams: c, clone: y, flushSync: f, [it]: !0 }; + } + } + function yl(e, t) { + return e.level - t.level; + } + function gl(e, t) { + return t ? e - 1 : 0; + } + function ml(e, t) { + return t ? e - 1 : e + 1; + } + function pl(e, t, r) { + return r ? e >= 0 : e < t; + } + sn.exports = dl; +}); +var wn = E((Df, q) => { + function X(e) { + try { + return require('path').join(`${process.cwd()}${require('path').sep}dist`.replace(/\\/g, '/'), e); + } catch { + return new Function('p', 'return new URL(p, import.meta.url).pathname')(e); + } + } + globalThis.__bundlerPathsOverrides = { + ...(globalThis.__bundlerPathsOverrides || {}), + 'thread-stream-worker': X('./thread-stream-worker.js'), + 'pino-worker': X('./pino-worker.js'), + 'pino-pipeline-worker': X('./pino-pipeline-worker.js'), + 'pino/file': X('./pino-file.js'), + 'pino-pretty': X('./pino-pretty.js'), + }; + var bl = require('os'), + yn = ve(), + wl = $e(), + Sl = Re(), + gn = Zt(), + _l = Yr(), + mn = U(), + { configure: El } = rn(), + { assertDefaultLevelFound: xl, mappings: pn, genLsCache: Ol, levels: vl } = de(), + { + createArgsNormalizer: $l, + asChindings: Al, + buildSafeSonicBoom: ln, + buildFormatters: jl, + stringify: st, + normalizeDestFileDescriptor: fn, + noop: Ll, + } = he(), + { version: kl } = Xe(), + { + chindingsSym: un, + redactFmtSym: Tl, + serializersSym: cn, + timeSym: Rl, + timeSliceIndexSym: Bl, + streamSym: ql, + stringifySym: an, + stringifySafeSym: ot, + stringifiersSym: hn, + setLevelSym: Il, + endSym: Nl, + formatOptsSym: Pl, + messageKeySym: Cl, + errorKeySym: Dl, + nestedKeySym: zl, + mixinSym: Ml, + useOnlyCustomLevelsSym: Wl, + formattersSym: dn, + hooksSym: Fl, + nestedKeyStrSym: Kl, + mixinMergeStrategySym: Vl, + msgPrefixSym: Jl, + } = mn, + { epochTime: bn, nullTime: Ul } = gn, + { pid: Gl } = process, + Hl = bl.hostname(), + Xl = yn.err, + Yl = { + level: 'info', + levels: vl, + messageKey: 'msg', + errorKey: 'err', + nestedKey: null, + enabled: !0, + base: { pid: Gl, hostname: Hl }, + serializers: Object.assign(Object.create(null), { err: Xl }), + formatters: Object.assign(Object.create(null), { + bindings(e) { + return e; + }, + level(e, t) { + return { level: t }; + }, + }), + hooks: { logMethod: void 0 }, + timestamp: bn, + name: void 0, + redact: null, + customLevels: null, + useOnlyCustomLevels: !1, + depthLimit: 5, + edgeLimit: 100, + }, + Ql = $l(Yl), + Zl = Object.assign(Object.create(null), yn); + function lt(...e) { + let t = {}, + { opts: r, stream: n } = Ql(t, wl(), ...e), + { + redact: i, + crlf: o, + serializers: f, + timestamp: h, + messageKey: d, + errorKey: y, + nestedKey: l, + base: c, + name: g, + level: s, + customLevels: u, + mixin: p, + mixinMergeStrategy: b, + useOnlyCustomLevels: w, + formatters: m, + hooks: S, + depthLimit: _, + edgeLimit: O, + onChild: $, + msgPrefix: v, + } = r, + x = El({ maximumDepth: _, maximumBreadth: O }), + j = jl(m.level, m.bindings, m.log), + k = st.bind({ [ot]: x }), + L = i ? Sl(i, k) : {}, + R = i ? { stringify: L[Tl] } : { stringify: k }, + B = + '}' + + (o + ? `\r +` + : ` +`), + M = Al.bind(null, { [un]: '', [cn]: f, [hn]: L, [an]: st, [ot]: x, [dn]: j }), + ge = ''; + c !== null && (g === void 0 ? (ge = M(c)) : (ge = M(Object.assign({}, c, { name: g })))); + let ft = h instanceof Function ? h : h ? bn : Ul, + Sn = ft().indexOf(':') + 1; + if (w && !u) throw Error('customLevels is required if useOnlyCustomLevels is set true'); + if (p && typeof p != 'function') throw Error(`Unknown mixin type "${typeof p}" - expected "function"`); + if (v && typeof v != 'string') throw Error(`Unknown msgPrefix type "${typeof v}" - expected "string"`); + xl(s, u, w); + let _n = pn(u, w); + return ( + Object.assign(t, { + levels: _n, + [Wl]: w, + [ql]: n, + [Rl]: ft, + [Bl]: Sn, + [an]: st, + [ot]: x, + [hn]: L, + [Nl]: B, + [Pl]: R, + [Cl]: d, + [Dl]: y, + [zl]: l, + [Kl]: l ? `,${JSON.stringify(l)}:{` : '', + [cn]: f, + [Ml]: p, + [Vl]: b, + [un]: ge, + [dn]: j, + [Fl]: S, + silent: Ll, + onChild: $, + [Jl]: v, + }), + Object.setPrototypeOf(t, _l()), + Ol(t), + t[Il](s), + t + ); + } + q.exports = lt; + q.exports.destination = (e = process.stdout.fd) => + typeof e == 'object' ? ((e.dest = fn(e.dest || process.stdout.fd)), ln(e)) : ln({ dest: fn(e), minLength: 0 }); + q.exports.transport = Ke(); + q.exports.multistream = on(); + q.exports.levels = pn(); + q.exports.stdSerializers = Zl; + q.exports.stdTimeFunctions = Object.assign({}, gn); + q.exports.symbols = mn; + q.exports.version = kl; + q.exports.default = lt; + q.exports.pino = lt; +}); +var ef = wn(), + { once: tf } = require('events'); +module.exports = async function (e = {}) { + let t = Object.assign({}, e, { dest: e.destination || 1, sync: !1 }); + delete t.destination; + let r = ef.destination(t); + return await tf(r, 'ready'), r; +}; diff --git a/dist/pino-pipeline-worker.js b/dist/pino-pipeline-worker.js new file mode 100644 index 0000000000..c61444400a --- /dev/null +++ b/dist/pino-pipeline-worker.js @@ -0,0 +1,56 @@ +'use strict'; +var c = (t, e) => () => (e || t((e = { exports: {} }).exports, e), e.exports); +var u = c((T, a) => { + var p = new Function('modulePath', 'return import(modulePath)'); + function l(t) { + return typeof __non_webpack__require__ == 'function' ? __non_webpack__require__(t) : require(t); + } + a.exports = { realImport: p, realRequire: l }; +}); +var d = c((D, f) => { + 'use strict'; + var { realImport: _, realRequire: n } = u(); + f.exports = m; + async function m(t) { + let e; + try { + let r = 'file://' + t; + r.endsWith('.ts') || r.endsWith('.cts') + ? (process[Symbol.for('ts-node.register.instance')] + ? n('ts-node/register') + : process.env && process.env.TS_NODE_DEV && n('ts-node-dev'), + (e = n(decodeURIComponent(t)))) + : (e = await _(r)); + } catch (r) { + if (r.code === 'ENOTDIR' || r.code === 'ERR_MODULE_NOT_FOUND') e = n(t); + else if (r.code === void 0) e = n(decodeURIComponent(t)); + else throw r; + } + if ((typeof e == 'object' && (e = e.default), typeof e == 'object' && (e = e.default), typeof e != 'function')) + throw Error('exported worker is not a function'); + return e; + } +}); +var E = require('events'), + w = d(), + { pipeline: R, PassThrough: y } = require('stream'); +module.exports = async function ({ targets: t }) { + let e = await Promise.all(t.map(async (o) => await (await w(o.target))(o.options))), + r = new E(), + i = new y({ + autoDestroy: !0, + destroy(o, s) { + r.on('error', s), r.on('closed', s); + }, + }); + return ( + R(i, ...e, function (o) { + if (o && o.code !== 'ERR_STREAM_PREMATURE_CLOSE') { + r.emit('error', o); + return; + } + r.emit('closed'); + }), + i + ); +}; diff --git a/dist/pino-pretty.js b/dist/pino-pretty.js new file mode 100644 index 0000000000..b669a62109 --- /dev/null +++ b/dist/pino-pretty.js @@ -0,0 +1,10396 @@ +'use strict'; +var _ = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports); +var Ln = _((R) => { + 'use strict'; + Object.defineProperty(R, '__esModule', { value: !0 }); + var jh = require('tty'); + function Bh(e) { + if (e && e.__esModule) return e; + var t = Object.create(null); + return ( + e && + Object.keys(e).forEach(function (r) { + if (r !== 'default') { + var n = Object.getOwnPropertyDescriptor(e, r); + Object.defineProperty( + t, + r, + n.get + ? n + : { + enumerable: !0, + get: function () { + return e[r]; + }, + } + ); + } + }), + (t.default = e), + Object.freeze(t) + ); + } + var On = Bh(jh), + { env: Pe = {}, argv: Ll = [], platform: Fh = '' } = typeof process > 'u' ? {} : process, + $h = 'NO_COLOR' in Pe || Ll.includes('--no-color'), + Uh = 'FORCE_COLOR' in Pe || Ll.includes('--color'), + Gh = Fh === 'win32', + xl = Pe.TERM === 'dumb', + Hh = On && On.isatty && On.isatty(1) && Pe.TERM && !xl, + Vh = 'CI' in Pe && ('GITHUB_ACTIONS' in Pe || 'GITLAB_CI' in Pe || 'CIRCLECI' in Pe), + Ml = !$h && (Uh || (Gh && !xl) || Hh || Vh), + vl = (e, t, r, n, i = t.substring(0, e) + n, o = t.substring(e + r.length), l = o.indexOf(r)) => + i + (l < 0 ? o : vl(l, o, r, n)), + Kh = (e, t, r, n, i) => (e < 0 ? r + t + n : r + vl(e, t, n, i) + n), + Yh = + (e, t, r = e, n = e.length + 1) => + (i) => + i || !(i === '' || i === void 0) ? Kh(('' + i).indexOf(t, n), i, e, t, r) : '', + T = (e, t, r) => Yh(`\x1B[${e}m`, `\x1B[${t}m`, r), + Ol = { + reset: T(0, 0), + bold: T(1, 22, '\x1B[22m\x1B[1m'), + dim: T(2, 22, '\x1B[22m\x1B[2m'), + italic: T(3, 23), + underline: T(4, 24), + inverse: T(7, 27), + hidden: T(8, 28), + strikethrough: T(9, 29), + black: T(30, 39), + red: T(31, 39), + green: T(32, 39), + yellow: T(33, 39), + blue: T(34, 39), + magenta: T(35, 39), + cyan: T(36, 39), + white: T(37, 39), + gray: T(90, 39), + bgBlack: T(40, 49), + bgRed: T(41, 49), + bgGreen: T(42, 49), + bgYellow: T(43, 49), + bgBlue: T(44, 49), + bgMagenta: T(45, 49), + bgCyan: T(46, 49), + bgWhite: T(47, 49), + blackBright: T(90, 39), + redBright: T(91, 39), + greenBright: T(92, 39), + yellowBright: T(93, 39), + blueBright: T(94, 39), + magentaBright: T(95, 39), + cyanBright: T(96, 39), + whiteBright: T(97, 39), + bgBlackBright: T(100, 49), + bgRedBright: T(101, 49), + bgGreenBright: T(102, 49), + bgYellowBright: T(103, 49), + bgBlueBright: T(104, 49), + bgMagentaBright: T(105, 49), + bgCyanBright: T(106, 49), + bgWhiteBright: T(107, 49), + }, + Il = ({ useColor: e = Ml } = {}) => (e ? Ol : Object.keys(Ol).reduce((t, r) => ({ ...t, [r]: String }), {})), + { + reset: zh, + bold: Jh, + dim: Xh, + italic: Zh, + underline: Qh, + inverse: eb, + hidden: tb, + strikethrough: rb, + black: nb, + red: ib, + green: ob, + yellow: lb, + blue: sb, + magenta: ub, + cyan: fb, + white: ab, + gray: cb, + bgBlack: db, + bgRed: hb, + bgGreen: bb, + bgYellow: pb, + bgBlue: yb, + bgMagenta: gb, + bgCyan: _b, + bgWhite: wb, + blackBright: Sb, + redBright: Eb, + greenBright: mb, + yellowBright: Rb, + blueBright: Ab, + magentaBright: Tb, + cyanBright: Ob, + whiteBright: Lb, + bgBlackBright: xb, + bgRedBright: Mb, + bgGreenBright: vb, + bgYellowBright: Ib, + bgBlueBright: Db, + bgMagentaBright: Nb, + bgCyanBright: Pb, + bgWhiteBright: qb, + } = Il(); + R.bgBlack = db; + R.bgBlackBright = xb; + R.bgBlue = yb; + R.bgBlueBright = Db; + R.bgCyan = _b; + R.bgCyanBright = Pb; + R.bgGreen = bb; + R.bgGreenBright = vb; + R.bgMagenta = gb; + R.bgMagentaBright = Nb; + R.bgRed = hb; + R.bgRedBright = Mb; + R.bgWhite = wb; + R.bgWhiteBright = qb; + R.bgYellow = pb; + R.bgYellowBright = Ib; + R.black = nb; + R.blackBright = Sb; + R.blue = sb; + R.blueBright = Ab; + R.bold = Jh; + R.createColors = Il; + R.cyan = fb; + R.cyanBright = Ob; + R.dim = Xh; + R.gray = cb; + R.green = ob; + R.greenBright = mb; + R.hidden = tb; + R.inverse = eb; + R.isColorSupported = Ml; + R.italic = Zh; + R.magenta = ub; + R.magentaBright = Tb; + R.red = ib; + R.redBright = Eb; + R.reset = zh; + R.strikethrough = rb; + R.underline = Qh; + R.white = ab; + R.whiteBright = Lb; + R.yellow = lb; + R.yellowBright = Rb; +}); +var Pl = _((oO, Nl) => { + Nl.exports = Dl; + function Dl(e, t) { + if (e && t) return Dl(e)(t); + if (typeof e != 'function') throw new TypeError('need wrapper function'); + return ( + Object.keys(e).forEach(function (n) { + r[n] = e[n]; + }), + r + ); + function r() { + for (var n = new Array(arguments.length), i = 0; i < n.length; i++) n[i] = arguments[i]; + var o = e.apply(this, n), + l = n[n.length - 1]; + return ( + typeof o == 'function' && + o !== l && + Object.keys(l).forEach(function (s) { + o[s] = l[s]; + }), + o + ); + } + } +}); +var Mn = _((lO, xn) => { + var ql = Pl(); + xn.exports = ql(sr); + xn.exports.strict = ql(Cl); + sr.proto = sr(function () { + Object.defineProperty(Function.prototype, 'once', { + value: function () { + return sr(this); + }, + configurable: !0, + }), + Object.defineProperty(Function.prototype, 'onceStrict', { + value: function () { + return Cl(this); + }, + configurable: !0, + }); + }); + function sr(e) { + var t = function () { + return t.called ? t.value : ((t.called = !0), (t.value = e.apply(this, arguments))); + }; + return (t.called = !1), t; + } + function Cl(e) { + var t = function () { + if (t.called) throw new Error(t.onceError); + return (t.called = !0), (t.value = e.apply(this, arguments)); + }, + r = e.name || 'Function wrapped with `once`'; + return (t.onceError = r + " shouldn't be called more than once"), (t.called = !1), t; + } +}); +var jl = _((sO, kl) => { + var Cb = Mn(), + Wb = function () {}, + kb = function (e) { + return e.setHeader && typeof e.abort == 'function'; + }, + jb = function (e) { + return e.stdio && Array.isArray(e.stdio) && e.stdio.length === 3; + }, + Wl = function (e, t, r) { + if (typeof t == 'function') return Wl(e, null, t); + t || (t = {}), (r = Cb(r || Wb)); + var n = e._writableState, + i = e._readableState, + o = t.readable || (t.readable !== !1 && e.readable), + l = t.writable || (t.writable !== !1 && e.writable), + s = !1, + f = function () { + e.writable || u(); + }, + u = function () { + (l = !1), o || r.call(e); + }, + c = function () { + (o = !1), l || r.call(e); + }, + a = function (y) { + r.call(e, y ? new Error('exited with error code: ' + y) : null); + }, + b = function (y) { + r.call(e, y); + }, + h = function () { + process.nextTick(d); + }, + d = function () { + if (!s) { + if (o && !(i && i.ended && !i.destroyed)) return r.call(e, new Error('premature close')); + if (l && !(n && n.ended && !n.destroyed)) return r.call(e, new Error('premature close')); + } + }, + S = function () { + e.req.on('finish', u); + }; + return ( + kb(e) + ? (e.on('complete', u), e.on('abort', h), e.req ? S() : e.on('request', S)) + : l && !n && (e.on('end', f), e.on('close', f)), + jb(e) && e.on('exit', a), + e.on('end', c), + e.on('finish', u), + t.error !== !1 && e.on('error', b), + e.on('close', h), + function () { + (s = !0), + e.removeListener('complete', u), + e.removeListener('abort', h), + e.removeListener('request', S), + e.req && e.req.removeListener('finish', u), + e.removeListener('end', f), + e.removeListener('close', f), + e.removeListener('finish', u), + e.removeListener('exit', a), + e.removeListener('end', c), + e.removeListener('error', b), + e.removeListener('close', h); + } + ); + }; + kl.exports = Wl; +}); +var $l = _((uO, Fl) => { + var Bb = Mn(), + Fb = jl(), + vn = require('fs'), + Pt = function () {}, + $b = /^v?\.0/.test(process.version), + ur = function (e) { + return typeof e == 'function'; + }, + Ub = function (e) { + return !$b || !vn + ? !1 + : (e instanceof (vn.ReadStream || Pt) || e instanceof (vn.WriteStream || Pt)) && ur(e.close); + }, + Gb = function (e) { + return e.setHeader && ur(e.abort); + }, + Hb = function (e, t, r, n) { + n = Bb(n); + var i = !1; + e.on('close', function () { + i = !0; + }), + Fb(e, { readable: t, writable: r }, function (l) { + if (l) return n(l); + (i = !0), n(); + }); + var o = !1; + return function (l) { + if (!i && !o) { + if (((o = !0), Ub(e))) return e.close(Pt); + if (Gb(e)) return e.abort(); + if (ur(e.destroy)) return e.destroy(); + n(l || new Error('stream was destroyed')); + } + }; + }, + Bl = function (e) { + e(); + }, + Vb = function (e, t) { + return e.pipe(t); + }, + Kb = function () { + var e = Array.prototype.slice.call(arguments), + t = (ur(e[e.length - 1] || Pt) && e.pop()) || Pt; + if ((Array.isArray(e[0]) && (e = e[0]), e.length < 2)) throw new Error('pump requires two streams per minimum'); + var r, + n = e.map(function (i, o) { + var l = o < e.length - 1, + s = o > 0; + return Hb(i, l, s, function (f) { + r || (r = f), f && n.forEach(Bl), !l && (n.forEach(Bl), t(r)); + }); + }); + return e.reduce(Vb); + }; + Fl.exports = Kb; +}); +var U = _((fO, Ul) => { + 'use strict'; + Ul.exports = { + ArrayIsArray(e) { + return Array.isArray(e); + }, + ArrayPrototypeIncludes(e, t) { + return e.includes(t); + }, + ArrayPrototypeIndexOf(e, t) { + return e.indexOf(t); + }, + ArrayPrototypeJoin(e, t) { + return e.join(t); + }, + ArrayPrototypeMap(e, t) { + return e.map(t); + }, + ArrayPrototypePop(e, t) { + return e.pop(t); + }, + ArrayPrototypePush(e, t) { + return e.push(t); + }, + ArrayPrototypeSlice(e, t, r) { + return e.slice(t, r); + }, + Error, + FunctionPrototypeCall(e, t, ...r) { + return e.call(t, ...r); + }, + FunctionPrototypeSymbolHasInstance(e, t) { + return Function.prototype[Symbol.hasInstance].call(e, t); + }, + MathFloor: Math.floor, + Number, + NumberIsInteger: Number.isInteger, + NumberIsNaN: Number.isNaN, + NumberMAX_SAFE_INTEGER: Number.MAX_SAFE_INTEGER, + NumberMIN_SAFE_INTEGER: Number.MIN_SAFE_INTEGER, + NumberParseInt: Number.parseInt, + ObjectDefineProperties(e, t) { + return Object.defineProperties(e, t); + }, + ObjectDefineProperty(e, t, r) { + return Object.defineProperty(e, t, r); + }, + ObjectGetOwnPropertyDescriptor(e, t) { + return Object.getOwnPropertyDescriptor(e, t); + }, + ObjectKeys(e) { + return Object.keys(e); + }, + ObjectSetPrototypeOf(e, t) { + return Object.setPrototypeOf(e, t); + }, + Promise, + PromisePrototypeCatch(e, t) { + return e.catch(t); + }, + PromisePrototypeThen(e, t, r) { + return e.then(t, r); + }, + PromiseReject(e) { + return Promise.reject(e); + }, + ReflectApply: Reflect.apply, + RegExpPrototypeTest(e, t) { + return e.test(t); + }, + SafeSet: Set, + String, + StringPrototypeSlice(e, t, r) { + return e.slice(t, r); + }, + StringPrototypeToLowerCase(e) { + return e.toLowerCase(); + }, + StringPrototypeToUpperCase(e) { + return e.toUpperCase(); + }, + StringPrototypeTrim(e) { + return e.trim(); + }, + Symbol, + SymbolFor: Symbol.for, + SymbolAsyncIterator: Symbol.asyncIterator, + SymbolHasInstance: Symbol.hasInstance, + SymbolIterator: Symbol.iterator, + TypedArrayPrototypeSet(e, t, r) { + return e.set(t, r); + }, + Uint8Array, + }; +}); +var de = _((aO, Dn) => { + 'use strict'; + var Yb = require('buffer'), + zb = Object.getPrototypeOf(async function () {}).constructor, + Gl = globalThis.Blob || Yb.Blob, + Jb = + typeof Gl < 'u' + ? function (t) { + return t instanceof Gl; + } + : function (t) { + return !1; + }, + In = class extends Error { + constructor(t) { + if (!Array.isArray(t)) throw new TypeError(`Expected input to be an Array, got ${typeof t}`); + let r = ''; + for (let n = 0; n < t.length; n++) + r += ` ${t[n].stack} +`; + super(r), (this.name = 'AggregateError'), (this.errors = t); + } + }; + Dn.exports = { + AggregateError: In, + kEmptyObject: Object.freeze({}), + once(e) { + let t = !1; + return function (...r) { + t || ((t = !0), e.apply(this, r)); + }; + }, + createDeferredPromise: function () { + let e, t; + return { + promise: new Promise((n, i) => { + (e = n), (t = i); + }), + resolve: e, + reject: t, + }; + }, + promisify(e) { + return new Promise((t, r) => { + e((n, ...i) => (n ? r(n) : t(...i))); + }); + }, + debuglog() { + return function () {}; + }, + format(e, ...t) { + return e.replace(/%([sdifj])/g, function (...[r, n]) { + let i = t.shift(); + return n === 'f' + ? i.toFixed(6) + : n === 'j' + ? JSON.stringify(i) + : n === 's' && typeof i == 'object' + ? `${i.constructor !== Object ? i.constructor.name : ''} {}`.trim() + : i.toString(); + }); + }, + inspect(e) { + switch (typeof e) { + case 'string': + if (e.includes("'")) + if (e.includes('"')) { + if (!e.includes('`') && !e.includes('${')) return `\`${e}\``; + } else return `"${e}"`; + return `'${e}'`; + case 'number': + return isNaN(e) ? 'NaN' : Object.is(e, -0) ? String(e) : e; + case 'bigint': + return `${String(e)}n`; + case 'boolean': + case 'undefined': + return String(e); + case 'object': + return '{}'; + } + }, + types: { + isAsyncFunction(e) { + return e instanceof zb; + }, + isArrayBufferView(e) { + return ArrayBuffer.isView(e); + }, + }, + isBlob: Jb, + }; + Dn.exports.promisify.custom = Symbol.for('nodejs.util.promisify.custom'); +}); +var es = _((Wt, Ct) => { + 'use strict'; + Object.defineProperty(Wt, '__esModule', { value: !0 }); + var Jl = new WeakMap(), + Nn = new WeakMap(); + function q(e) { + let t = Jl.get(e); + return console.assert(t != null, "'this' is expected an Event object, but got", e), t; + } + function Hl(e) { + if (e.passiveListener != null) { + typeof console < 'u' && + typeof console.error == 'function' && + console.error('Unable to preventDefault inside passive event listener invocation.', e.passiveListener); + return; + } + e.event.cancelable && ((e.canceled = !0), typeof e.event.preventDefault == 'function' && e.event.preventDefault()); + } + function dt(e, t) { + Jl.set(this, { + eventTarget: e, + event: t, + eventPhase: 2, + currentTarget: e, + canceled: !1, + stopped: !1, + immediateStopped: !1, + passiveListener: null, + timeStamp: t.timeStamp || Date.now(), + }), + Object.defineProperty(this, 'isTrusted', { value: !1, enumerable: !0 }); + let r = Object.keys(t); + for (let n = 0; n < r.length; ++n) { + let i = r[n]; + i in this || Object.defineProperty(this, i, Xl(i)); + } + } + dt.prototype = { + get type() { + return q(this).event.type; + }, + get target() { + return q(this).eventTarget; + }, + get currentTarget() { + return q(this).currentTarget; + }, + composedPath() { + let e = q(this).currentTarget; + return e == null ? [] : [e]; + }, + get NONE() { + return 0; + }, + get CAPTURING_PHASE() { + return 1; + }, + get AT_TARGET() { + return 2; + }, + get BUBBLING_PHASE() { + return 3; + }, + get eventPhase() { + return q(this).eventPhase; + }, + stopPropagation() { + let e = q(this); + (e.stopped = !0), typeof e.event.stopPropagation == 'function' && e.event.stopPropagation(); + }, + stopImmediatePropagation() { + let e = q(this); + (e.stopped = !0), + (e.immediateStopped = !0), + typeof e.event.stopImmediatePropagation == 'function' && e.event.stopImmediatePropagation(); + }, + get bubbles() { + return !!q(this).event.bubbles; + }, + get cancelable() { + return !!q(this).event.cancelable; + }, + preventDefault() { + Hl(q(this)); + }, + get defaultPrevented() { + return q(this).canceled; + }, + get composed() { + return !!q(this).event.composed; + }, + get timeStamp() { + return q(this).timeStamp; + }, + get srcElement() { + return q(this).eventTarget; + }, + get cancelBubble() { + return q(this).stopped; + }, + set cancelBubble(e) { + if (!e) return; + let t = q(this); + (t.stopped = !0), typeof t.event.cancelBubble == 'boolean' && (t.event.cancelBubble = !0); + }, + get returnValue() { + return !q(this).canceled; + }, + set returnValue(e) { + e || Hl(q(this)); + }, + initEvent() {}, + }; + Object.defineProperty(dt.prototype, 'constructor', { value: dt, configurable: !0, writable: !0 }); + typeof window < 'u' && + typeof window.Event < 'u' && + (Object.setPrototypeOf(dt.prototype, window.Event.prototype), Nn.set(window.Event.prototype, dt)); + function Xl(e) { + return { + get() { + return q(this).event[e]; + }, + set(t) { + q(this).event[e] = t; + }, + configurable: !0, + enumerable: !0, + }; + } + function Xb(e) { + return { + value() { + let t = q(this).event; + return t[e].apply(t, arguments); + }, + configurable: !0, + enumerable: !0, + }; + } + function Zb(e, t) { + let r = Object.keys(t); + if (r.length === 0) return e; + function n(i, o) { + e.call(this, i, o); + } + n.prototype = Object.create(e.prototype, { constructor: { value: n, configurable: !0, writable: !0 } }); + for (let i = 0; i < r.length; ++i) { + let o = r[i]; + if (!(o in e.prototype)) { + let s = typeof Object.getOwnPropertyDescriptor(t, o).value == 'function'; + Object.defineProperty(n.prototype, o, s ? Xb(o) : Xl(o)); + } + } + return n; + } + function Zl(e) { + if (e == null || e === Object.prototype) return dt; + let t = Nn.get(e); + return t == null && ((t = Zb(Zl(Object.getPrototypeOf(e)), e)), Nn.set(e, t)), t; + } + function Qb(e, t) { + let r = Zl(Object.getPrototypeOf(t)); + return new r(e, t); + } + function ep(e) { + return q(e).immediateStopped; + } + function tp(e, t) { + q(e).eventPhase = t; + } + function rp(e, t) { + q(e).currentTarget = t; + } + function Vl(e, t) { + q(e).passiveListener = t; + } + var Ql = new WeakMap(), + Kl = 1, + Yl = 2, + fr = 3; + function ar(e) { + return e !== null && typeof e == 'object'; + } + function qt(e) { + let t = Ql.get(e); + if (t == null) throw new TypeError("'this' is expected an EventTarget object, but got another value."); + return t; + } + function np(e) { + return { + get() { + let r = qt(this).get(e); + for (; r != null; ) { + if (r.listenerType === fr) return r.listener; + r = r.next; + } + return null; + }, + set(t) { + typeof t != 'function' && !ar(t) && (t = null); + let r = qt(this), + n = null, + i = r.get(e); + for (; i != null; ) + i.listenerType === fr + ? n !== null + ? (n.next = i.next) + : i.next !== null + ? r.set(e, i.next) + : r.delete(e) + : (n = i), + (i = i.next); + if (t !== null) { + let o = { listener: t, listenerType: fr, passive: !1, once: !1, next: null }; + n === null ? r.set(e, o) : (n.next = o); + } + }, + configurable: !0, + enumerable: !0, + }; + } + function Pn(e, t) { + Object.defineProperty(e, `on${t}`, np(t)); + } + function zl(e) { + function t() { + le.call(this); + } + t.prototype = Object.create(le.prototype, { constructor: { value: t, configurable: !0, writable: !0 } }); + for (let r = 0; r < e.length; ++r) Pn(t.prototype, e[r]); + return t; + } + function le() { + if (this instanceof le) { + Ql.set(this, new Map()); + return; + } + if (arguments.length === 1 && Array.isArray(arguments[0])) return zl(arguments[0]); + if (arguments.length > 0) { + let e = new Array(arguments.length); + for (let t = 0; t < arguments.length; ++t) e[t] = arguments[t]; + return zl(e); + } + throw new TypeError('Cannot call a class as a function'); + } + le.prototype = { + addEventListener(e, t, r) { + if (t == null) return; + if (typeof t != 'function' && !ar(t)) throw new TypeError("'listener' should be a function or an object."); + let n = qt(this), + i = ar(r), + l = (i ? !!r.capture : !!r) ? Kl : Yl, + s = { listener: t, listenerType: l, passive: i && !!r.passive, once: i && !!r.once, next: null }, + f = n.get(e); + if (f === void 0) { + n.set(e, s); + return; + } + let u = null; + for (; f != null; ) { + if (f.listener === t && f.listenerType === l) return; + (u = f), (f = f.next); + } + u.next = s; + }, + removeEventListener(e, t, r) { + if (t == null) return; + let n = qt(this), + o = (ar(r) ? !!r.capture : !!r) ? Kl : Yl, + l = null, + s = n.get(e); + for (; s != null; ) { + if (s.listener === t && s.listenerType === o) { + l !== null ? (l.next = s.next) : s.next !== null ? n.set(e, s.next) : n.delete(e); + return; + } + (l = s), (s = s.next); + } + }, + dispatchEvent(e) { + if (e == null || typeof e.type != 'string') throw new TypeError('"event.type" should be a string.'); + let t = qt(this), + r = e.type, + n = t.get(r); + if (n == null) return !0; + let i = Qb(this, e), + o = null; + for (; n != null; ) { + if ( + (n.once ? (o !== null ? (o.next = n.next) : n.next !== null ? t.set(r, n.next) : t.delete(r)) : (o = n), + Vl(i, n.passive ? n.listener : null), + typeof n.listener == 'function') + ) + try { + n.listener.call(this, i); + } catch (l) { + typeof console < 'u' && typeof console.error == 'function' && console.error(l); + } + else n.listenerType !== fr && typeof n.listener.handleEvent == 'function' && n.listener.handleEvent(i); + if (ep(i)) break; + n = n.next; + } + return Vl(i, null), tp(i, 0), rp(i, null), !i.defaultPrevented; + }, + }; + Object.defineProperty(le.prototype, 'constructor', { value: le, configurable: !0, writable: !0 }); + typeof window < 'u' && + typeof window.EventTarget < 'u' && + Object.setPrototypeOf(le.prototype, window.EventTarget.prototype); + Wt.defineEventAttribute = Pn; + Wt.EventTarget = le; + Wt.default = le; + Ct.exports = le; + Ct.exports.EventTarget = Ct.exports.default = le; + Ct.exports.defineEventAttribute = Pn; +}); +var Ue = _((jt, kt) => { + 'use strict'; + Object.defineProperty(jt, '__esModule', { value: !0 }); + var qn = es(), + qe = class extends qn.EventTarget { + constructor() { + throw (super(), new TypeError('AbortSignal cannot be constructed directly')); + } + get aborted() { + let t = cr.get(this); + if (typeof t != 'boolean') + throw new TypeError( + `Expected 'this' to be an 'AbortSignal' object, but got ${this === null ? 'null' : typeof this}` + ); + return t; + } + }; + qn.defineEventAttribute(qe.prototype, 'abort'); + function ip() { + let e = Object.create(qe.prototype); + return qn.EventTarget.call(e), cr.set(e, !1), e; + } + function op(e) { + cr.get(e) === !1 && (cr.set(e, !0), e.dispatchEvent({ type: 'abort' })); + } + var cr = new WeakMap(); + Object.defineProperties(qe.prototype, { aborted: { enumerable: !0 } }); + typeof Symbol == 'function' && + typeof Symbol.toStringTag == 'symbol' && + Object.defineProperty(qe.prototype, Symbol.toStringTag, { configurable: !0, value: 'AbortSignal' }); + var Ce = class { + constructor() { + rs.set(this, ip()); + } + get signal() { + return ts(this); + } + abort() { + op(ts(this)); + } + }, + rs = new WeakMap(); + function ts(e) { + let t = rs.get(e); + if (t == null) + throw new TypeError( + `Expected 'this' to be an 'AbortController' object, but got ${e === null ? 'null' : typeof e}` + ); + return t; + } + Object.defineProperties(Ce.prototype, { signal: { enumerable: !0 }, abort: { enumerable: !0 } }); + typeof Symbol == 'function' && + typeof Symbol.toStringTag == 'symbol' && + Object.defineProperty(Ce.prototype, Symbol.toStringTag, { configurable: !0, value: 'AbortController' }); + jt.AbortController = Ce; + jt.AbortSignal = qe; + jt.default = Ce; + kt.exports = Ce; + kt.exports.AbortController = kt.exports.default = Ce; + kt.exports.AbortSignal = qe; +}); +var z = _((cO, os) => { + 'use strict'; + var { format: lp, inspect: dr, AggregateError: sp } = de(), + up = globalThis.AggregateError || sp, + fp = Symbol('kIsNodeError'), + ap = ['string', 'function', 'number', 'object', 'Function', 'Object', 'boolean', 'bigint', 'symbol'], + cp = /^([A-Z][a-z0-9]*)+$/, + dp = '__node_internal_', + hr = {}; + function Ge(e, t) { + if (!e) throw new hr.ERR_INTERNAL_ASSERTION(t); + } + function ns(e) { + let t = '', + r = e.length, + n = e[0] === '-' ? 1 : 0; + for (; r >= n + 4; r -= 3) t = `_${e.slice(r - 3, r)}${t}`; + return `${e.slice(0, r)}${t}`; + } + function hp(e, t, r) { + if (typeof t == 'function') + return ( + Ge( + t.length <= r.length, + `Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${t.length}).` + ), + t(...r) + ); + let n = (t.match(/%[dfijoOs]/g) || []).length; + return ( + Ge( + n === r.length, + `Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${n}).` + ), + r.length === 0 ? t : lp(t, ...r) + ); + } + function K(e, t, r) { + r || (r = Error); + class n extends r { + constructor(...o) { + super(hp(e, t, o)); + } + toString() { + return `${this.name} [${e}]: ${this.message}`; + } + } + Object.defineProperties(n.prototype, { + name: { value: r.name, writable: !0, enumerable: !1, configurable: !0 }, + toString: { + value() { + return `${this.name} [${e}]: ${this.message}`; + }, + writable: !0, + enumerable: !1, + configurable: !0, + }, + }), + (n.prototype.code = e), + (n.prototype[fp] = !0), + (hr[e] = n); + } + function is(e) { + let t = dp + e.name; + return Object.defineProperty(e, 'name', { value: t }), e; + } + function bp(e, t) { + if (e && t && e !== t) { + if (Array.isArray(t.errors)) return t.errors.push(e), t; + let r = new up([t, e], t.message); + return (r.code = t.code), r; + } + return e || t; + } + var Cn = class extends Error { + constructor(t = 'The operation was aborted', r = void 0) { + if (r !== void 0 && typeof r != 'object') throw new hr.ERR_INVALID_ARG_TYPE('options', 'Object', r); + super(t, r), (this.code = 'ABORT_ERR'), (this.name = 'AbortError'); + } + }; + K('ERR_ASSERTION', '%s', Error); + K( + 'ERR_INVALID_ARG_TYPE', + (e, t, r) => { + Ge(typeof e == 'string', "'name' must be a string"), Array.isArray(t) || (t = [t]); + let n = 'The '; + e.endsWith(' argument') ? (n += `${e} `) : (n += `"${e}" ${e.includes('.') ? 'property' : 'argument'} `), + (n += 'must be '); + let i = [], + o = [], + l = []; + for (let f of t) + Ge(typeof f == 'string', 'All expected entries have to be of type string'), + ap.includes(f) + ? i.push(f.toLowerCase()) + : cp.test(f) + ? o.push(f) + : (Ge(f !== 'object', 'The value "object" should be written as "Object"'), l.push(f)); + if (o.length > 0) { + let f = i.indexOf('object'); + f !== -1 && (i.splice(i, f, 1), o.push('Object')); + } + if (i.length > 0) { + switch (i.length) { + case 1: + n += `of type ${i[0]}`; + break; + case 2: + n += `one of type ${i[0]} or ${i[1]}`; + break; + default: { + let f = i.pop(); + n += `one of type ${i.join(', ')}, or ${f}`; + } + } + (o.length > 0 || l.length > 0) && (n += ' or '); + } + if (o.length > 0) { + switch (o.length) { + case 1: + n += `an instance of ${o[0]}`; + break; + case 2: + n += `an instance of ${o[0]} or ${o[1]}`; + break; + default: { + let f = o.pop(); + n += `an instance of ${o.join(', ')}, or ${f}`; + } + } + l.length > 0 && (n += ' or '); + } + switch (l.length) { + case 0: + break; + case 1: + l[0].toLowerCase() !== l[0] && (n += 'an '), (n += `${l[0]}`); + break; + case 2: + n += `one of ${l[0]} or ${l[1]}`; + break; + default: { + let f = l.pop(); + n += `one of ${l.join(', ')}, or ${f}`; + } + } + if (r == null) n += `. Received ${r}`; + else if (typeof r == 'function' && r.name) n += `. Received function ${r.name}`; + else if (typeof r == 'object') { + var s; + if ((s = r.constructor) !== null && s !== void 0 && s.name) + n += `. Received an instance of ${r.constructor.name}`; + else { + let f = dr(r, { depth: -1 }); + n += `. Received ${f}`; + } + } else { + let f = dr(r, { colors: !1 }); + f.length > 25 && (f = `${f.slice(0, 25)}...`), (n += `. Received type ${typeof r} (${f})`); + } + return n; + }, + TypeError + ); + K( + 'ERR_INVALID_ARG_VALUE', + (e, t, r = 'is invalid') => { + let n = dr(t); + return ( + n.length > 128 && (n = n.slice(0, 128) + '...'), + `The ${e.includes('.') ? 'property' : 'argument'} '${e}' ${r}. Received ${n}` + ); + }, + TypeError + ); + K( + 'ERR_INVALID_RETURN_VALUE', + (e, t, r) => { + var n; + let i = + r != null && (n = r.constructor) !== null && n !== void 0 && n.name + ? `instance of ${r.constructor.name}` + : `type ${typeof r}`; + return `Expected ${e} to be returned from the "${t}" function but got ${i}.`; + }, + TypeError + ); + K( + 'ERR_MISSING_ARGS', + (...e) => { + Ge(e.length > 0, 'At least one arg needs to be specified'); + let t, + r = e.length; + switch (((e = (Array.isArray(e) ? e : [e]).map((n) => `"${n}"`).join(' or ')), r)) { + case 1: + t += `The ${e[0]} argument`; + break; + case 2: + t += `The ${e[0]} and ${e[1]} arguments`; + break; + default: + { + let n = e.pop(); + t += `The ${e.join(', ')}, and ${n} arguments`; + } + break; + } + return `${t} must be specified`; + }, + TypeError + ); + K( + 'ERR_OUT_OF_RANGE', + (e, t, r) => { + Ge(t, 'Missing "range" argument'); + let n; + return ( + Number.isInteger(r) && Math.abs(r) > 2 ** 32 + ? (n = ns(String(r))) + : typeof r == 'bigint' + ? ((n = String(r)), (r > 2n ** 32n || r < -(2n ** 32n)) && (n = ns(n)), (n += 'n')) + : (n = dr(r)), + `The value of "${e}" is out of range. It must be ${t}. Received ${n}` + ); + }, + RangeError + ); + K('ERR_MULTIPLE_CALLBACK', 'Callback called multiple times', Error); + K('ERR_METHOD_NOT_IMPLEMENTED', 'The %s method is not implemented', Error); + K('ERR_STREAM_ALREADY_FINISHED', 'Cannot call %s after a stream was finished', Error); + K('ERR_STREAM_CANNOT_PIPE', 'Cannot pipe, not readable', Error); + K('ERR_STREAM_DESTROYED', 'Cannot call %s after a stream was destroyed', Error); + K('ERR_STREAM_NULL_VALUES', 'May not write null values to stream', TypeError); + K('ERR_STREAM_PREMATURE_CLOSE', 'Premature close', Error); + K('ERR_STREAM_PUSH_AFTER_EOF', 'stream.push() after EOF', Error); + K('ERR_STREAM_UNSHIFT_AFTER_END_EVENT', 'stream.unshift() after end event', Error); + K('ERR_STREAM_WRITE_AFTER_END', 'write after end', Error); + K('ERR_UNKNOWN_ENCODING', 'Unknown encoding: %s', TypeError); + os.exports = { AbortError: Cn, aggregateTwoErrors: is(bp), hideStackFrames: is, codes: hr }; +}); +var Bt = _((dO, bs) => { + 'use strict'; + var { + ArrayIsArray: kn, + ArrayPrototypeIncludes: fs, + ArrayPrototypeJoin: as, + ArrayPrototypeMap: pp, + NumberIsInteger: jn, + NumberIsNaN: yp, + NumberMAX_SAFE_INTEGER: gp, + NumberMIN_SAFE_INTEGER: _p, + NumberParseInt: wp, + ObjectPrototypeHasOwnProperty: Sp, + RegExpPrototypeExec: cs, + String: Ep, + StringPrototypeToUpperCase: mp, + StringPrototypeTrim: Rp, + } = U(), + { + hideStackFrames: re, + codes: { + ERR_SOCKET_BAD_PORT: Ap, + ERR_INVALID_ARG_TYPE: J, + ERR_INVALID_ARG_VALUE: ht, + ERR_OUT_OF_RANGE: He, + ERR_UNKNOWN_SIGNAL: ls, + }, + } = z(), + { normalizeEncoding: Tp } = de(), + { isAsyncFunction: Op, isArrayBufferView: Lp } = de().types, + ss = {}; + function xp(e) { + return e === (e | 0); + } + function Mp(e) { + return e === e >>> 0; + } + var vp = /^[0-7]+$/, + Ip = 'must be a 32-bit unsigned integer or an octal string'; + function Dp(e, t, r) { + if ((typeof e > 'u' && (e = r), typeof e == 'string')) { + if (cs(vp, e) === null) throw new ht(t, e, Ip); + e = wp(e, 8); + } + return ds(e, t), e; + } + var Np = re((e, t, r = _p, n = gp) => { + if (typeof e != 'number') throw new J(t, 'number', e); + if (!jn(e)) throw new He(t, 'an integer', e); + if (e < r || e > n) throw new He(t, `>= ${r} && <= ${n}`, e); + }), + Pp = re((e, t, r = -2147483648, n = 2147483647) => { + if (typeof e != 'number') throw new J(t, 'number', e); + if (!jn(e)) throw new He(t, 'an integer', e); + if (e < r || e > n) throw new He(t, `>= ${r} && <= ${n}`, e); + }), + ds = re((e, t, r = !1) => { + if (typeof e != 'number') throw new J(t, 'number', e); + if (!jn(e)) throw new He(t, 'an integer', e); + let n = r ? 1 : 0, + i = 4294967295; + if (e < n || e > i) throw new He(t, `>= ${n} && <= ${i}`, e); + }); + function Bn(e, t) { + if (typeof e != 'string') throw new J(t, 'string', e); + } + function qp(e, t, r = void 0, n) { + if (typeof e != 'number') throw new J(t, 'number', e); + if ((r != null && e < r) || (n != null && e > n) || ((r != null || n != null) && yp(e))) + throw new He( + t, + `${r != null ? `>= ${r}` : ''}${r != null && n != null ? ' && ' : ''}${n != null ? `<= ${n}` : ''}`, + e + ); + } + var Cp = re((e, t, r) => { + if (!fs(r, e)) { + let i = + 'must be one of: ' + + as( + pp(r, (o) => (typeof o == 'string' ? `'${o}'` : Ep(o))), + ', ' + ); + throw new ht(t, e, i); + } + }); + function hs(e, t) { + if (typeof e != 'boolean') throw new J(t, 'boolean', e); + } + function Wn(e, t, r) { + return e == null || !Sp(e, t) ? r : e[t]; + } + var Wp = re((e, t, r = null) => { + let n = Wn(r, 'allowArray', !1), + i = Wn(r, 'allowFunction', !1); + if ( + (!Wn(r, 'nullable', !1) && e === null) || + (!n && kn(e)) || + (typeof e != 'object' && (!i || typeof e != 'function')) + ) + throw new J(t, 'Object', e); + }), + kp = re((e, t) => { + if (e != null && typeof e != 'object' && typeof e != 'function') throw new J(t, 'a dictionary', e); + }), + Fn = re((e, t, r = 0) => { + if (!kn(e)) throw new J(t, 'Array', e); + if (e.length < r) { + let n = `must be longer than ${r}`; + throw new ht(t, e, n); + } + }); + function jp(e, t) { + Fn(e, t); + for (let r = 0; r < e.length; r++) Bn(e[r], `${t}[${r}]`); + } + function Bp(e, t) { + Fn(e, t); + for (let r = 0; r < e.length; r++) hs(e[r], `${t}[${r}]`); + } + function Fp(e, t = 'signal') { + if ((Bn(e, t), ss[e] === void 0)) + throw ss[mp(e)] !== void 0 ? new ls(e + ' (signals must use all capital letters)') : new ls(e); + } + var $p = re((e, t = 'buffer') => { + if (!Lp(e)) throw new J(t, ['Buffer', 'TypedArray', 'DataView'], e); + }); + function Up(e, t) { + let r = Tp(t), + n = e.length; + if (r === 'hex' && n % 2 !== 0) throw new ht('encoding', t, `is invalid for data of length ${n}`); + } + function Gp(e, t = 'Port', r = !0) { + if ( + (typeof e != 'number' && typeof e != 'string') || + (typeof e == 'string' && Rp(e).length === 0) || + +e !== +e >>> 0 || + e > 65535 || + (e === 0 && !r) + ) + throw new Ap(t, e, r); + return e | 0; + } + var Hp = re((e, t) => { + if (e !== void 0 && (e === null || typeof e != 'object' || !('aborted' in e))) throw new J(t, 'AbortSignal', e); + }), + Vp = re((e, t) => { + if (typeof e != 'function') throw new J(t, 'Function', e); + }), + Kp = re((e, t) => { + if (typeof e != 'function' || Op(e)) throw new J(t, 'Function', e); + }), + Yp = re((e, t) => { + if (e !== void 0) throw new J(t, 'undefined', e); + }); + function zp(e, t, r) { + if (!fs(r, e)) throw new J(t, `('${as(r, '|')}')`, e); + } + var Jp = /^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/; + function us(e, t) { + if (typeof e > 'u' || !cs(Jp, e)) + throw new ht(t, e, 'must be an array or string of format "; rel=preload; as=style"'); + } + function Xp(e) { + if (typeof e == 'string') return us(e, 'hints'), e; + if (kn(e)) { + let t = e.length, + r = ''; + if (t === 0) return r; + for (let n = 0; n < t; n++) { + let i = e[n]; + us(i, 'hints'), (r += i), n !== t - 1 && (r += ', '); + } + return r; + } + throw new ht('hints', e, 'must be an array or string of format "; rel=preload; as=style"'); + } + bs.exports = { + isInt32: xp, + isUint32: Mp, + parseFileMode: Dp, + validateArray: Fn, + validateStringArray: jp, + validateBooleanArray: Bp, + validateBoolean: hs, + validateBuffer: $p, + validateDictionary: kp, + validateEncoding: Up, + validateFunction: Vp, + validateInt32: Pp, + validateInteger: Np, + validateNumber: qp, + validateObject: Wp, + validateOneOf: Cp, + validatePlainFunction: Kp, + validatePort: Gp, + validateSignalName: Fp, + validateString: Bn, + validateUint32: ds, + validateUndefined: Yp, + validateUnion: zp, + validateAbortSignal: Hp, + validateLinkHeaderValue: Xp, + }; +}); +var X = _((hO, ps) => { + ps.exports = global.process; +}); +var be = _((bO, Is) => { + 'use strict'; + var { Symbol: br, SymbolAsyncIterator: ys, SymbolIterator: gs, SymbolFor: _s } = U(), + ws = br('kDestroyed'), + Ss = br('kIsErrored'), + $n = br('kIsReadable'), + Es = br('kIsDisturbed'), + Zp = _s('nodejs.webstream.isClosedPromise'), + Qp = _s('nodejs.webstream.controllerErrorFunction'); + function pr(e, t = !1) { + var r; + return !!( + e && + typeof e.pipe == 'function' && + typeof e.on == 'function' && + (!t || (typeof e.pause == 'function' && typeof e.resume == 'function')) && + (!e._writableState || ((r = e._readableState) === null || r === void 0 ? void 0 : r.readable) !== !1) && + (!e._writableState || e._readableState) + ); + } + function yr(e) { + var t; + return !!( + e && + typeof e.write == 'function' && + typeof e.on == 'function' && + (!e._readableState || ((t = e._writableState) === null || t === void 0 ? void 0 : t.writable) !== !1) + ); + } + function ey(e) { + return !!( + e && + typeof e.pipe == 'function' && + e._readableState && + typeof e.on == 'function' && + typeof e.write == 'function' + ); + } + function he(e) { + return ( + e && + (e._readableState || + e._writableState || + (typeof e.write == 'function' && typeof e.on == 'function') || + (typeof e.pipe == 'function' && typeof e.on == 'function')) + ); + } + function ms(e) { + return !!( + e && + !he(e) && + typeof e.pipeThrough == 'function' && + typeof e.getReader == 'function' && + typeof e.cancel == 'function' + ); + } + function Rs(e) { + return !!(e && !he(e) && typeof e.getWriter == 'function' && typeof e.abort == 'function'); + } + function As(e) { + return !!(e && !he(e) && typeof e.readable == 'object' && typeof e.writable == 'object'); + } + function ty(e) { + return ms(e) || Rs(e) || As(e); + } + function ry(e, t) { + return e == null + ? !1 + : t === !0 + ? typeof e[ys] == 'function' + : t === !1 + ? typeof e[gs] == 'function' + : typeof e[ys] == 'function' || typeof e[gs] == 'function'; + } + function gr(e) { + if (!he(e)) return null; + let t = e._writableState, + r = e._readableState, + n = t || r; + return !!(e.destroyed || e[ws] || (n != null && n.destroyed)); + } + function Ts(e) { + if (!yr(e)) return null; + if (e.writableEnded === !0) return !0; + let t = e._writableState; + return t != null && t.errored ? !1 : typeof t?.ended != 'boolean' ? null : t.ended; + } + function ny(e, t) { + if (!yr(e)) return null; + if (e.writableFinished === !0) return !0; + let r = e._writableState; + return r != null && r.errored + ? !1 + : typeof r?.finished != 'boolean' + ? null + : !!(r.finished || (t === !1 && r.ended === !0 && r.length === 0)); + } + function iy(e) { + if (!pr(e)) return null; + if (e.readableEnded === !0) return !0; + let t = e._readableState; + return !t || t.errored ? !1 : typeof t?.ended != 'boolean' ? null : t.ended; + } + function Os(e, t) { + if (!pr(e)) return null; + let r = e._readableState; + return r != null && r.errored + ? !1 + : typeof r?.endEmitted != 'boolean' + ? null + : !!(r.endEmitted || (t === !1 && r.ended === !0 && r.length === 0)); + } + function Ls(e) { + return e && e[$n] != null + ? e[$n] + : typeof e?.readable != 'boolean' + ? null + : gr(e) + ? !1 + : pr(e) && e.readable && !Os(e); + } + function xs(e) { + return typeof e?.writable != 'boolean' ? null : gr(e) ? !1 : yr(e) && e.writable && !Ts(e); + } + function oy(e, t) { + return he(e) ? (gr(e) ? !0 : !((t?.readable !== !1 && Ls(e)) || (t?.writable !== !1 && xs(e)))) : null; + } + function ly(e) { + var t, r; + return he(e) + ? e.writableErrored + ? e.writableErrored + : (t = (r = e._writableState) === null || r === void 0 ? void 0 : r.errored) !== null && t !== void 0 + ? t + : null + : null; + } + function sy(e) { + var t, r; + return he(e) + ? e.readableErrored + ? e.readableErrored + : (t = (r = e._readableState) === null || r === void 0 ? void 0 : r.errored) !== null && t !== void 0 + ? t + : null + : null; + } + function uy(e) { + if (!he(e)) return null; + if (typeof e.closed == 'boolean') return e.closed; + let t = e._writableState, + r = e._readableState; + return typeof t?.closed == 'boolean' || typeof r?.closed == 'boolean' + ? t?.closed || r?.closed + : typeof e._closed == 'boolean' && Ms(e) + ? e._closed + : null; + } + function Ms(e) { + return ( + typeof e._closed == 'boolean' && + typeof e._defaultKeepAlive == 'boolean' && + typeof e._removedConnection == 'boolean' && + typeof e._removedContLen == 'boolean' + ); + } + function vs(e) { + return typeof e._sent100 == 'boolean' && Ms(e); + } + function fy(e) { + var t; + return ( + typeof e._consuming == 'boolean' && + typeof e._dumped == 'boolean' && + ((t = e.req) === null || t === void 0 ? void 0 : t.upgradeOrConnect) === void 0 + ); + } + function ay(e) { + if (!he(e)) return null; + let t = e._writableState, + r = e._readableState, + n = t || r; + return (!n && vs(e)) || !!(n && n.autoDestroy && n.emitClose && n.closed === !1); + } + function cy(e) { + var t; + return !!(e && ((t = e[Es]) !== null && t !== void 0 ? t : e.readableDidRead || e.readableAborted)); + } + function dy(e) { + var t, r, n, i, o, l, s, f, u, c; + return !!( + e && + ((t = + (r = + (n = + (i = + (o = (l = e[Ss]) !== null && l !== void 0 ? l : e.readableErrored) !== null && o !== void 0 + ? o + : e.writableErrored) !== null && i !== void 0 + ? i + : (s = e._readableState) === null || s === void 0 + ? void 0 + : s.errorEmitted) !== null && n !== void 0 + ? n + : (f = e._writableState) === null || f === void 0 + ? void 0 + : f.errorEmitted) !== null && r !== void 0 + ? r + : (u = e._readableState) === null || u === void 0 + ? void 0 + : u.errored) !== null && t !== void 0 + ? t + : !((c = e._writableState) === null || c === void 0) && c.errored) + ); + } + Is.exports = { + kDestroyed: ws, + isDisturbed: cy, + kIsDisturbed: Es, + isErrored: dy, + kIsErrored: Ss, + isReadable: Ls, + kIsReadable: $n, + kIsClosedPromise: Zp, + kControllerErrorFunction: Qp, + isClosed: uy, + isDestroyed: gr, + isDuplexNodeStream: ey, + isFinished: oy, + isIterable: ry, + isReadableNodeStream: pr, + isReadableStream: ms, + isReadableEnded: iy, + isReadableFinished: Os, + isReadableErrored: sy, + isNodeStream: he, + isWebStream: ty, + isWritable: xs, + isWritableNodeStream: yr, + isWritableStream: Rs, + isWritableEnded: Ts, + isWritableFinished: ny, + isWritableErrored: ly, + isServerRequest: fy, + isServerResponse: vs, + willEmitClose: ay, + isTransformStream: As, + }; +}); +var Ae = _((pO, Kn) => { + var We = X(), + { AbortError: Bs, codes: hy } = z(), + { ERR_INVALID_ARG_TYPE: by, ERR_STREAM_PREMATURE_CLOSE: Ds } = hy, + { kEmptyObject: Gn, once: Hn } = de(), + { validateAbortSignal: py, validateFunction: yy, validateObject: gy, validateBoolean: _y } = Bt(), + { Promise: wy, PromisePrototypeThen: Sy } = U(), + { + isClosed: Ey, + isReadable: Ns, + isReadableNodeStream: Un, + isReadableStream: my, + isReadableFinished: Ps, + isReadableErrored: qs, + isWritable: Cs, + isWritableNodeStream: Ws, + isWritableStream: Ry, + isWritableFinished: ks, + isWritableErrored: js, + isNodeStream: Ay, + willEmitClose: Ty, + kIsClosedPromise: Oy, + } = be(); + function Ly(e) { + return e.setHeader && typeof e.abort == 'function'; + } + var Vn = () => {}; + function Fs(e, t, r) { + var n, i; + if ( + (arguments.length === 2 ? ((r = t), (t = Gn)) : t == null ? (t = Gn) : gy(t, 'options'), + yy(r, 'callback'), + py(t.signal, 'options.signal'), + (r = Hn(r)), + my(e) || Ry(e)) + ) + return xy(e, t, r); + if (!Ay(e)) throw new by('stream', ['ReadableStream', 'WritableStream', 'Stream'], e); + let o = (n = t.readable) !== null && n !== void 0 ? n : Un(e), + l = (i = t.writable) !== null && i !== void 0 ? i : Ws(e), + s = e._writableState, + f = e._readableState, + u = () => { + e.writable || b(); + }, + c = Ty(e) && Un(e) === o && Ws(e) === l, + a = ks(e, !1), + b = () => { + (a = !0), e.destroyed && (c = !1), !(c && (!e.readable || o)) && (!o || h) && r.call(e); + }, + h = Ps(e, !1), + d = () => { + (h = !0), e.destroyed && (c = !1), !(c && (!e.writable || l)) && (!l || a) && r.call(e); + }, + S = (m) => { + r.call(e, m); + }, + y = Ey(e), + w = () => { + y = !0; + let m = js(e) || qs(e); + if (m && typeof m != 'boolean') return r.call(e, m); + if (o && !h && Un(e, !0) && !Ps(e, !1)) return r.call(e, new Ds()); + if (l && !a && !ks(e, !1)) return r.call(e, new Ds()); + r.call(e); + }, + g = () => { + y = !0; + let m = js(e) || qs(e); + if (m && typeof m != 'boolean') return r.call(e, m); + r.call(e); + }, + p = () => { + e.req.on('finish', b); + }; + Ly(e) + ? (e.on('complete', b), c || e.on('abort', w), e.req ? p() : e.on('request', p)) + : l && !s && (e.on('end', u), e.on('close', u)), + !c && typeof e.aborted == 'boolean' && e.on('aborted', w), + e.on('end', d), + e.on('finish', b), + t.error !== !1 && e.on('error', S), + e.on('close', w), + y + ? We.nextTick(w) + : (s != null && s.errorEmitted) || (f != null && f.errorEmitted) + ? c || We.nextTick(g) + : ((!o && (!c || Ns(e)) && (a || Cs(e) === !1)) || + (!l && (!c || Cs(e)) && (h || Ns(e) === !1)) || + (f && e.req && e.aborted)) && + We.nextTick(g); + let A = () => { + (r = Vn), + e.removeListener('aborted', w), + e.removeListener('complete', b), + e.removeListener('abort', w), + e.removeListener('request', p), + e.req && e.req.removeListener('finish', b), + e.removeListener('end', u), + e.removeListener('close', u), + e.removeListener('finish', b), + e.removeListener('end', d), + e.removeListener('error', S), + e.removeListener('close', w); + }; + if (t.signal && !y) { + let m = () => { + let v = r; + A(), v.call(e, new Bs(void 0, { cause: t.signal.reason })); + }; + if (t.signal.aborted) We.nextTick(m); + else { + let v = r; + (r = Hn((...j) => { + t.signal.removeEventListener('abort', m), v.apply(e, j); + })), + t.signal.addEventListener('abort', m); + } + } + return A; + } + function xy(e, t, r) { + let n = !1, + i = Vn; + if (t.signal) + if ( + ((i = () => { + (n = !0), r.call(e, new Bs(void 0, { cause: t.signal.reason })); + }), + t.signal.aborted) + ) + We.nextTick(i); + else { + let l = r; + (r = Hn((...s) => { + t.signal.removeEventListener('abort', i), l.apply(e, s); + })), + t.signal.addEventListener('abort', i); + } + let o = (...l) => { + n || We.nextTick(() => r.apply(e, l)); + }; + return Sy(e[Oy].promise, o, o), Vn; + } + function My(e, t) { + var r; + let n = !1; + return ( + t === null && (t = Gn), + (r = t) !== null && r !== void 0 && r.cleanup && (_y(t.cleanup, 'cleanup'), (n = t.cleanup)), + new wy((i, o) => { + let l = Fs(e, t, (s) => { + n && l(), s ? o(s) : i(); + }); + }) + ); + } + Kn.exports = Fs; + Kn.exports.finished = My; +}); +var Ve = _((yO, zs) => { + 'use strict'; + var pe = X(), + { + aggregateTwoErrors: vy, + codes: { ERR_MULTIPLE_CALLBACK: Iy }, + AbortError: Dy, + } = z(), + { Symbol: Gs } = U(), + { kDestroyed: Ny, isDestroyed: Py, isFinished: qy, isServerRequest: Cy } = be(), + Hs = Gs('kDestroy'), + Yn = Gs('kConstruct'); + function Vs(e, t, r) { + e && (e.stack, t && !t.errored && (t.errored = e), r && !r.errored && (r.errored = e)); + } + function Wy(e, t) { + let r = this._readableState, + n = this._writableState, + i = n || r; + return (n != null && n.destroyed) || (r != null && r.destroyed) + ? (typeof t == 'function' && t(), this) + : (Vs(e, n, r), + n && (n.destroyed = !0), + r && (r.destroyed = !0), + i.constructed + ? $s(this, e, t) + : this.once(Hs, function (o) { + $s(this, vy(o, e), t); + }), + this); + } + function $s(e, t, r) { + let n = !1; + function i(o) { + if (n) return; + n = !0; + let l = e._readableState, + s = e._writableState; + Vs(o, s, l), + s && (s.closed = !0), + l && (l.closed = !0), + typeof r == 'function' && r(o), + o ? pe.nextTick(ky, e, o) : pe.nextTick(Ks, e); + } + try { + e._destroy(t || null, i); + } catch (o) { + i(o); + } + } + function ky(e, t) { + zn(e, t), Ks(e); + } + function Ks(e) { + let t = e._readableState, + r = e._writableState; + r && (r.closeEmitted = !0), + t && (t.closeEmitted = !0), + ((r != null && r.emitClose) || (t != null && t.emitClose)) && e.emit('close'); + } + function zn(e, t) { + let r = e._readableState, + n = e._writableState; + (n != null && n.errorEmitted) || + (r != null && r.errorEmitted) || + (n && (n.errorEmitted = !0), r && (r.errorEmitted = !0), e.emit('error', t)); + } + function jy() { + let e = this._readableState, + t = this._writableState; + e && + ((e.constructed = !0), + (e.closed = !1), + (e.closeEmitted = !1), + (e.destroyed = !1), + (e.errored = null), + (e.errorEmitted = !1), + (e.reading = !1), + (e.ended = e.readable === !1), + (e.endEmitted = e.readable === !1)), + t && + ((t.constructed = !0), + (t.destroyed = !1), + (t.closed = !1), + (t.closeEmitted = !1), + (t.errored = null), + (t.errorEmitted = !1), + (t.finalCalled = !1), + (t.prefinished = !1), + (t.ended = t.writable === !1), + (t.ending = t.writable === !1), + (t.finished = t.writable === !1)); + } + function Jn(e, t, r) { + let n = e._readableState, + i = e._writableState; + if ((i != null && i.destroyed) || (n != null && n.destroyed)) return this; + (n != null && n.autoDestroy) || (i != null && i.autoDestroy) + ? e.destroy(t) + : t && + (t.stack, + i && !i.errored && (i.errored = t), + n && !n.errored && (n.errored = t), + r ? pe.nextTick(zn, e, t) : zn(e, t)); + } + function By(e, t) { + if (typeof e._construct != 'function') return; + let r = e._readableState, + n = e._writableState; + r && (r.constructed = !1), + n && (n.constructed = !1), + e.once(Yn, t), + !(e.listenerCount(Yn) > 1) && pe.nextTick(Fy, e); + } + function Fy(e) { + let t = !1; + function r(n) { + if (t) { + Jn(e, n ?? new Iy()); + return; + } + t = !0; + let i = e._readableState, + o = e._writableState, + l = o || i; + i && (i.constructed = !0), + o && (o.constructed = !0), + l.destroyed ? e.emit(Hs, n) : n ? Jn(e, n, !0) : pe.nextTick($y, e); + } + try { + e._construct((n) => { + pe.nextTick(r, n); + }); + } catch (n) { + pe.nextTick(r, n); + } + } + function $y(e) { + e.emit(Yn); + } + function Us(e) { + return e?.setHeader && typeof e.abort == 'function'; + } + function Ys(e) { + e.emit('close'); + } + function Uy(e, t) { + e.emit('error', t), pe.nextTick(Ys, e); + } + function Gy(e, t) { + !e || + Py(e) || + (!t && !qy(e) && (t = new Dy()), + Cy(e) + ? ((e.socket = null), e.destroy(t)) + : Us(e) + ? e.abort() + : Us(e.req) + ? e.req.abort() + : typeof e.destroy == 'function' + ? e.destroy(t) + : typeof e.close == 'function' + ? e.close() + : t + ? pe.nextTick(Uy, e, t) + : pe.nextTick(Ys, e), + e.destroyed || (e[Ny] = !0)); + } + zs.exports = { construct: By, destroyer: Gy, destroy: Wy, undestroy: jy, errorOrDestroy: Jn }; +}); +var Sr = _((gO, Xs) => { + 'use strict'; + var { ArrayIsArray: Hy, ObjectSetPrototypeOf: Js } = U(), + { EventEmitter: _r } = require('events'); + function wr(e) { + _r.call(this, e); + } + Js(wr.prototype, _r.prototype); + Js(wr, _r); + wr.prototype.pipe = function (e, t) { + let r = this; + function n(c) { + e.writable && e.write(c) === !1 && r.pause && r.pause(); + } + r.on('data', n); + function i() { + r.readable && r.resume && r.resume(); + } + e.on('drain', i), !e._isStdio && (!t || t.end !== !1) && (r.on('end', l), r.on('close', s)); + let o = !1; + function l() { + o || ((o = !0), e.end()); + } + function s() { + o || ((o = !0), typeof e.destroy == 'function' && e.destroy()); + } + function f(c) { + u(), _r.listenerCount(this, 'error') === 0 && this.emit('error', c); + } + Xn(r, 'error', f), Xn(e, 'error', f); + function u() { + r.removeListener('data', n), + e.removeListener('drain', i), + r.removeListener('end', l), + r.removeListener('close', s), + r.removeListener('error', f), + e.removeListener('error', f), + r.removeListener('end', u), + r.removeListener('close', u), + e.removeListener('close', u); + } + return r.on('end', u), r.on('close', u), e.on('close', u), e.emit('pipe', r), e; + }; + function Xn(e, t, r) { + if (typeof e.prependListener == 'function') return e.prependListener(t, r); + !e._events || !e._events[t] + ? e.on(t, r) + : Hy(e._events[t]) + ? e._events[t].unshift(r) + : (e._events[t] = [r, e._events[t]]); + } + Xs.exports = { Stream: wr, prependListener: Xn }; +}); +var Ft = _((_O, Er) => { + 'use strict'; + var { AbortError: Zs, codes: Vy } = z(), + { isNodeStream: Qs, isWebStream: Ky, kControllerErrorFunction: Yy } = be(), + zy = Ae(), + { ERR_INVALID_ARG_TYPE: eu } = Vy, + Jy = (e, t) => { + if (typeof e != 'object' || !('aborted' in e)) throw new eu(t, 'AbortSignal', e); + }; + Er.exports.addAbortSignal = function (t, r) { + if ((Jy(t, 'signal'), !Qs(r) && !Ky(r))) throw new eu('stream', ['ReadableStream', 'WritableStream', 'Stream'], r); + return Er.exports.addAbortSignalNoValidate(t, r); + }; + Er.exports.addAbortSignalNoValidate = function (e, t) { + if (typeof e != 'object' || !('aborted' in e)) return t; + let r = Qs(t) + ? () => { + t.destroy(new Zs(void 0, { cause: e.reason })); + } + : () => { + t[Yy](new Zs(void 0, { cause: e.reason })); + }; + return e.aborted ? r() : (e.addEventListener('abort', r), zy(t, () => e.removeEventListener('abort', r))), t; + }; +}); +var nu = _((SO, ru) => { + 'use strict'; + var { StringPrototypeSlice: tu, SymbolIterator: Xy, TypedArrayPrototypeSet: mr, Uint8Array: Zy } = U(), + { Buffer: Zn } = require('buffer'), + { inspect: Qy } = de(); + ru.exports = class { + constructor() { + (this.head = null), (this.tail = null), (this.length = 0); + } + push(t) { + let r = { data: t, next: null }; + this.length > 0 ? (this.tail.next = r) : (this.head = r), (this.tail = r), ++this.length; + } + unshift(t) { + let r = { data: t, next: this.head }; + this.length === 0 && (this.tail = r), (this.head = r), ++this.length; + } + shift() { + if (this.length === 0) return; + let t = this.head.data; + return this.length === 1 ? (this.head = this.tail = null) : (this.head = this.head.next), --this.length, t; + } + clear() { + (this.head = this.tail = null), (this.length = 0); + } + join(t) { + if (this.length === 0) return ''; + let r = this.head, + n = '' + r.data; + for (; (r = r.next) !== null; ) n += t + r.data; + return n; + } + concat(t) { + if (this.length === 0) return Zn.alloc(0); + let r = Zn.allocUnsafe(t >>> 0), + n = this.head, + i = 0; + for (; n; ) mr(r, n.data, i), (i += n.data.length), (n = n.next); + return r; + } + consume(t, r) { + let n = this.head.data; + if (t < n.length) { + let i = n.slice(0, t); + return (this.head.data = n.slice(t)), i; + } + return t === n.length ? this.shift() : r ? this._getString(t) : this._getBuffer(t); + } + first() { + return this.head.data; + } + *[Xy]() { + for (let t = this.head; t; t = t.next) yield t.data; + } + _getString(t) { + let r = '', + n = this.head, + i = 0; + do { + let o = n.data; + if (t > o.length) (r += o), (t -= o.length); + else { + t === o.length + ? ((r += o), ++i, n.next ? (this.head = n.next) : (this.head = this.tail = null)) + : ((r += tu(o, 0, t)), (this.head = n), (n.data = tu(o, t))); + break; + } + ++i; + } while ((n = n.next) !== null); + return (this.length -= i), r; + } + _getBuffer(t) { + let r = Zn.allocUnsafe(t), + n = t, + i = this.head, + o = 0; + do { + let l = i.data; + if (t > l.length) mr(r, l, n - t), (t -= l.length); + else { + t === l.length + ? (mr(r, l, n - t), ++o, i.next ? (this.head = i.next) : (this.head = this.tail = null)) + : (mr(r, new Zy(l.buffer, l.byteOffset, t), n - t), (this.head = i), (i.data = l.slice(t))); + break; + } + ++o; + } while ((i = i.next) !== null); + return (this.length -= o), r; + } + [Symbol.for('nodejs.util.inspect.custom')](t, r) { + return Qy(this, { ...r, depth: 0, customInspect: !1 }); + } + }; +}); +var Rr = _((EO, ou) => { + 'use strict'; + var { MathFloor: eg, NumberIsInteger: tg } = U(), + { ERR_INVALID_ARG_VALUE: rg } = z().codes; + function ng(e, t, r) { + return e.highWaterMark != null ? e.highWaterMark : t ? e[r] : null; + } + function iu(e) { + return e ? 16 : 16 * 1024; + } + function ig(e, t, r, n) { + let i = ng(t, n, r); + if (i != null) { + if (!tg(i) || i < 0) { + let o = n ? `options.${r}` : 'options.highWaterMark'; + throw new rg(o, i); + } + return eg(i); + } + return iu(e.objectMode); + } + ou.exports = { getHighWaterMark: ig, getDefaultHighWaterMark: iu }; +}); +var Qn = _((mO, fu) => { + 'use strict'; + var lu = X(), + { PromisePrototypeThen: og, SymbolAsyncIterator: su, SymbolIterator: uu } = U(), + { Buffer: lg } = require('buffer'), + { ERR_INVALID_ARG_TYPE: sg, ERR_STREAM_NULL_VALUES: ug } = z().codes; + function fg(e, t, r) { + let n; + if (typeof t == 'string' || t instanceof lg) + return new e({ + objectMode: !0, + ...r, + read() { + this.push(t), this.push(null); + }, + }); + let i; + if (t && t[su]) (i = !0), (n = t[su]()); + else if (t && t[uu]) (i = !1), (n = t[uu]()); + else throw new sg('iterable', ['Iterable'], t); + let o = new e({ objectMode: !0, highWaterMark: 1, ...r }), + l = !1; + (o._read = function () { + l || ((l = !0), f()); + }), + (o._destroy = function (u, c) { + og( + s(u), + () => lu.nextTick(c, u), + (a) => lu.nextTick(c, a || u) + ); + }); + async function s(u) { + let c = u != null, + a = typeof n.throw == 'function'; + if (c && a) { + let { value: b, done: h } = await n.throw(u); + if ((await b, h)) return; + } + if (typeof n.return == 'function') { + let { value: b } = await n.return(); + await b; + } + } + async function f() { + for (;;) { + try { + let { value: u, done: c } = i ? await n.next() : n.next(); + if (c) o.push(null); + else { + let a = u && typeof u.then == 'function' ? await u : u; + if (a === null) throw ((l = !1), new ug()); + if (o.push(a)) continue; + l = !1; + } + } catch (u) { + o.destroy(u); + } + break; + } + } + return o; + } + fu.exports = fg; +}); +var $t = _((RO, mu) => { + var se = X(), + { + ArrayPrototypeIndexOf: ag, + NumberIsInteger: cg, + NumberIsNaN: dg, + NumberParseInt: hg, + ObjectDefineProperties: du, + ObjectKeys: bg, + ObjectSetPrototypeOf: hu, + Promise: pg, + SafeSet: yg, + SymbolAsyncIterator: gg, + Symbol: _g, + } = U(); + mu.exports = O; + O.ReadableState = oi; + var { EventEmitter: wg } = require('events'), + { Stream: ke, prependListener: Sg } = Sr(), + { Buffer: ei } = require('buffer'), + { addAbortSignal: Eg } = Ft(), + mg = Ae(), + D = de().debuglog('stream', (e) => { + D = e; + }), + Rg = nu(), + pt = Ve(), + { getHighWaterMark: Ag, getDefaultHighWaterMark: Tg } = Rr(), + { + aggregateTwoErrors: au, + codes: { + ERR_INVALID_ARG_TYPE: Og, + ERR_METHOD_NOT_IMPLEMENTED: Lg, + ERR_OUT_OF_RANGE: xg, + ERR_STREAM_PUSH_AFTER_EOF: Mg, + ERR_STREAM_UNSHIFT_AFTER_END_EVENT: vg, + }, + } = z(), + { validateObject: Ig } = Bt(), + Ke = _g('kPaused'), + { StringDecoder: bu } = require('string_decoder'), + Dg = Qn(); + hu(O.prototype, ke.prototype); + hu(O, ke); + var ti = () => {}, + { errorOrDestroy: bt } = pt; + function oi(e, t, r) { + typeof r != 'boolean' && (r = t instanceof ye()), + (this.objectMode = !!(e && e.objectMode)), + r && (this.objectMode = this.objectMode || !!(e && e.readableObjectMode)), + (this.highWaterMark = e ? Ag(this, e, 'readableHighWaterMark', r) : Tg(!1)), + (this.buffer = new Rg()), + (this.length = 0), + (this.pipes = []), + (this.flowing = null), + (this.ended = !1), + (this.endEmitted = !1), + (this.reading = !1), + (this.constructed = !0), + (this.sync = !0), + (this.needReadable = !1), + (this.emittedReadable = !1), + (this.readableListening = !1), + (this.resumeScheduled = !1), + (this[Ke] = null), + (this.errorEmitted = !1), + (this.emitClose = !e || e.emitClose !== !1), + (this.autoDestroy = !e || e.autoDestroy !== !1), + (this.destroyed = !1), + (this.errored = null), + (this.closed = !1), + (this.closeEmitted = !1), + (this.defaultEncoding = (e && e.defaultEncoding) || 'utf8'), + (this.awaitDrainWriters = null), + (this.multiAwaitDrain = !1), + (this.readingMore = !1), + (this.dataEmitted = !1), + (this.decoder = null), + (this.encoding = null), + e && e.encoding && ((this.decoder = new bu(e.encoding)), (this.encoding = e.encoding)); + } + function O(e) { + if (!(this instanceof O)) return new O(e); + let t = this instanceof ye(); + (this._readableState = new oi(e, this, t)), + e && + (typeof e.read == 'function' && (this._read = e.read), + typeof e.destroy == 'function' && (this._destroy = e.destroy), + typeof e.construct == 'function' && (this._construct = e.construct), + e.signal && !t && Eg(e.signal, this)), + ke.call(this, e), + pt.construct(this, () => { + this._readableState.needReadable && Ar(this, this._readableState); + }); + } + O.prototype.destroy = pt.destroy; + O.prototype._undestroy = pt.undestroy; + O.prototype._destroy = function (e, t) { + t(e); + }; + O.prototype[wg.captureRejectionSymbol] = function (e) { + this.destroy(e); + }; + O.prototype.push = function (e, t) { + return pu(this, e, t, !1); + }; + O.prototype.unshift = function (e, t) { + return pu(this, e, t, !0); + }; + function pu(e, t, r, n) { + D('readableAddChunk', t); + let i = e._readableState, + o; + if ( + (i.objectMode || + (typeof t == 'string' + ? ((r = r || i.defaultEncoding), + i.encoding !== r && + (n && i.encoding ? (t = ei.from(t, r).toString(i.encoding)) : ((t = ei.from(t, r)), (r = '')))) + : t instanceof ei + ? (r = '') + : ke._isUint8Array(t) + ? ((t = ke._uint8ArrayToBuffer(t)), (r = '')) + : t != null && (o = new Og('chunk', ['string', 'Buffer', 'Uint8Array'], t))), + o) + ) + bt(e, o); + else if (t === null) (i.reading = !1), qg(e, i); + else if (i.objectMode || (t && t.length > 0)) + if (n) + if (i.endEmitted) bt(e, new vg()); + else { + if (i.destroyed || i.errored) return !1; + ri(e, i, t, !0); + } + else if (i.ended) bt(e, new Mg()); + else { + if (i.destroyed || i.errored) return !1; + (i.reading = !1), + i.decoder && !r + ? ((t = i.decoder.write(t)), i.objectMode || t.length !== 0 ? ri(e, i, t, !1) : Ar(e, i)) + : ri(e, i, t, !1); + } + else n || ((i.reading = !1), Ar(e, i)); + return !i.ended && (i.length < i.highWaterMark || i.length === 0); + } + function ri(e, t, r, n) { + t.flowing && t.length === 0 && !t.sync && e.listenerCount('data') > 0 + ? (t.multiAwaitDrain ? t.awaitDrainWriters.clear() : (t.awaitDrainWriters = null), + (t.dataEmitted = !0), + e.emit('data', r)) + : ((t.length += t.objectMode ? 1 : r.length), + n ? t.buffer.unshift(r) : t.buffer.push(r), + t.needReadable && Tr(e)), + Ar(e, t); + } + O.prototype.isPaused = function () { + let e = this._readableState; + return e[Ke] === !0 || e.flowing === !1; + }; + O.prototype.setEncoding = function (e) { + let t = new bu(e); + (this._readableState.decoder = t), (this._readableState.encoding = this._readableState.decoder.encoding); + let r = this._readableState.buffer, + n = ''; + for (let i of r) n += t.write(i); + return r.clear(), n !== '' && r.push(n), (this._readableState.length = n.length), this; + }; + var Ng = 1073741824; + function Pg(e) { + if (e > Ng) throw new xg('size', '<= 1GiB', e); + return e--, (e |= e >>> 1), (e |= e >>> 2), (e |= e >>> 4), (e |= e >>> 8), (e |= e >>> 16), e++, e; + } + function cu(e, t) { + return e <= 0 || (t.length === 0 && t.ended) + ? 0 + : t.objectMode + ? 1 + : dg(e) + ? t.flowing && t.length + ? t.buffer.first().length + : t.length + : e <= t.length + ? e + : t.ended + ? t.length + : 0; + } + O.prototype.read = function (e) { + D('read', e), e === void 0 ? (e = NaN) : cg(e) || (e = hg(e, 10)); + let t = this._readableState, + r = e; + if ( + (e > t.highWaterMark && (t.highWaterMark = Pg(e)), + e !== 0 && (t.emittedReadable = !1), + e === 0 && t.needReadable && ((t.highWaterMark !== 0 ? t.length >= t.highWaterMark : t.length > 0) || t.ended)) + ) + return D('read: emitReadable', t.length, t.ended), t.length === 0 && t.ended ? ni(this) : Tr(this), null; + if (((e = cu(e, t)), e === 0 && t.ended)) return t.length === 0 && ni(this), null; + let n = t.needReadable; + if ( + (D('need readable', n), + (t.length === 0 || t.length - e < t.highWaterMark) && ((n = !0), D('length less than watermark', n)), + t.ended || t.reading || t.destroyed || t.errored || !t.constructed) + ) + (n = !1), D('reading, ended or constructing', n); + else if (n) { + D('do read'), (t.reading = !0), (t.sync = !0), t.length === 0 && (t.needReadable = !0); + try { + this._read(t.highWaterMark); + } catch (o) { + bt(this, o); + } + (t.sync = !1), t.reading || (e = cu(r, t)); + } + let i; + return ( + e > 0 ? (i = Su(e, t)) : (i = null), + i === null + ? ((t.needReadable = t.length <= t.highWaterMark), (e = 0)) + : ((t.length -= e), t.multiAwaitDrain ? t.awaitDrainWriters.clear() : (t.awaitDrainWriters = null)), + t.length === 0 && (t.ended || (t.needReadable = !0), r !== e && t.ended && ni(this)), + i !== null && !t.errorEmitted && !t.closeEmitted && ((t.dataEmitted = !0), this.emit('data', i)), + i + ); + }; + function qg(e, t) { + if ((D('onEofChunk'), !t.ended)) { + if (t.decoder) { + let r = t.decoder.end(); + r && r.length && (t.buffer.push(r), (t.length += t.objectMode ? 1 : r.length)); + } + (t.ended = !0), t.sync ? Tr(e) : ((t.needReadable = !1), (t.emittedReadable = !0), yu(e)); + } + } + function Tr(e) { + let t = e._readableState; + D('emitReadable', t.needReadable, t.emittedReadable), + (t.needReadable = !1), + t.emittedReadable || (D('emitReadable', t.flowing), (t.emittedReadable = !0), se.nextTick(yu, e)); + } + function yu(e) { + let t = e._readableState; + D('emitReadable_', t.destroyed, t.length, t.ended), + !t.destroyed && !t.errored && (t.length || t.ended) && (e.emit('readable'), (t.emittedReadable = !1)), + (t.needReadable = !t.flowing && !t.ended && t.length <= t.highWaterMark), + _u(e); + } + function Ar(e, t) { + !t.readingMore && t.constructed && ((t.readingMore = !0), se.nextTick(Cg, e, t)); + } + function Cg(e, t) { + for (; !t.reading && !t.ended && (t.length < t.highWaterMark || (t.flowing && t.length === 0)); ) { + let r = t.length; + if ((D('maybeReadMore read 0'), e.read(0), r === t.length)) break; + } + t.readingMore = !1; + } + O.prototype._read = function (e) { + throw new Lg('_read()'); + }; + O.prototype.pipe = function (e, t) { + let r = this, + n = this._readableState; + n.pipes.length === 1 && + (n.multiAwaitDrain || + ((n.multiAwaitDrain = !0), (n.awaitDrainWriters = new yg(n.awaitDrainWriters ? [n.awaitDrainWriters] : [])))), + n.pipes.push(e), + D('pipe count=%d opts=%j', n.pipes.length, t); + let o = (!t || t.end !== !1) && e !== se.stdout && e !== se.stderr ? s : y; + n.endEmitted ? se.nextTick(o) : r.once('end', o), e.on('unpipe', l); + function l(w, g) { + D('onunpipe'), w === r && g && g.hasUnpiped === !1 && ((g.hasUnpiped = !0), c()); + } + function s() { + D('onend'), e.end(); + } + let f, + u = !1; + function c() { + D('cleanup'), + e.removeListener('close', d), + e.removeListener('finish', S), + f && e.removeListener('drain', f), + e.removeListener('error', h), + e.removeListener('unpipe', l), + r.removeListener('end', s), + r.removeListener('end', y), + r.removeListener('data', b), + (u = !0), + f && n.awaitDrainWriters && (!e._writableState || e._writableState.needDrain) && f(); + } + function a() { + u || + (n.pipes.length === 1 && n.pipes[0] === e + ? (D('false write response, pause', 0), (n.awaitDrainWriters = e), (n.multiAwaitDrain = !1)) + : n.pipes.length > 1 && + n.pipes.includes(e) && + (D('false write response, pause', n.awaitDrainWriters.size), n.awaitDrainWriters.add(e)), + r.pause()), + f || ((f = Wg(r, e)), e.on('drain', f)); + } + r.on('data', b); + function b(w) { + D('ondata'); + let g = e.write(w); + D('dest.write', g), g === !1 && a(); + } + function h(w) { + if ((D('onerror', w), y(), e.removeListener('error', h), e.listenerCount('error') === 0)) { + let g = e._writableState || e._readableState; + g && !g.errorEmitted ? bt(e, w) : e.emit('error', w); + } + } + Sg(e, 'error', h); + function d() { + e.removeListener('finish', S), y(); + } + e.once('close', d); + function S() { + D('onfinish'), e.removeListener('close', d), y(); + } + e.once('finish', S); + function y() { + D('unpipe'), r.unpipe(e); + } + return ( + e.emit('pipe', r), e.writableNeedDrain === !0 ? n.flowing && a() : n.flowing || (D('pipe resume'), r.resume()), e + ); + }; + function Wg(e, t) { + return function () { + let n = e._readableState; + n.awaitDrainWriters === t + ? (D('pipeOnDrain', 1), (n.awaitDrainWriters = null)) + : n.multiAwaitDrain && (D('pipeOnDrain', n.awaitDrainWriters.size), n.awaitDrainWriters.delete(t)), + (!n.awaitDrainWriters || n.awaitDrainWriters.size === 0) && e.listenerCount('data') && e.resume(); + }; + } + O.prototype.unpipe = function (e) { + let t = this._readableState, + r = { hasUnpiped: !1 }; + if (t.pipes.length === 0) return this; + if (!e) { + let i = t.pipes; + (t.pipes = []), this.pause(); + for (let o = 0; o < i.length; o++) i[o].emit('unpipe', this, { hasUnpiped: !1 }); + return this; + } + let n = ag(t.pipes, e); + return n === -1 + ? this + : (t.pipes.splice(n, 1), t.pipes.length === 0 && this.pause(), e.emit('unpipe', this, r), this); + }; + O.prototype.on = function (e, t) { + let r = ke.prototype.on.call(this, e, t), + n = this._readableState; + return ( + e === 'data' + ? ((n.readableListening = this.listenerCount('readable') > 0), n.flowing !== !1 && this.resume()) + : e === 'readable' && + !n.endEmitted && + !n.readableListening && + ((n.readableListening = n.needReadable = !0), + (n.flowing = !1), + (n.emittedReadable = !1), + D('on readable', n.length, n.reading), + n.length ? Tr(this) : n.reading || se.nextTick(kg, this)), + r + ); + }; + O.prototype.addListener = O.prototype.on; + O.prototype.removeListener = function (e, t) { + let r = ke.prototype.removeListener.call(this, e, t); + return e === 'readable' && se.nextTick(gu, this), r; + }; + O.prototype.off = O.prototype.removeListener; + O.prototype.removeAllListeners = function (e) { + let t = ke.prototype.removeAllListeners.apply(this, arguments); + return (e === 'readable' || e === void 0) && se.nextTick(gu, this), t; + }; + function gu(e) { + let t = e._readableState; + (t.readableListening = e.listenerCount('readable') > 0), + t.resumeScheduled && t[Ke] === !1 + ? (t.flowing = !0) + : e.listenerCount('data') > 0 + ? e.resume() + : t.readableListening || (t.flowing = null); + } + function kg(e) { + D('readable nexttick read 0'), e.read(0); + } + O.prototype.resume = function () { + let e = this._readableState; + return e.flowing || (D('resume'), (e.flowing = !e.readableListening), jg(this, e)), (e[Ke] = !1), this; + }; + function jg(e, t) { + t.resumeScheduled || ((t.resumeScheduled = !0), se.nextTick(Bg, e, t)); + } + function Bg(e, t) { + D('resume', t.reading), + t.reading || e.read(0), + (t.resumeScheduled = !1), + e.emit('resume'), + _u(e), + t.flowing && !t.reading && e.read(0); + } + O.prototype.pause = function () { + return ( + D('call pause flowing=%j', this._readableState.flowing), + this._readableState.flowing !== !1 && (D('pause'), (this._readableState.flowing = !1), this.emit('pause')), + (this._readableState[Ke] = !0), + this + ); + }; + function _u(e) { + let t = e._readableState; + for (D('flow', t.flowing); t.flowing && e.read() !== null; ); + } + O.prototype.wrap = function (e) { + let t = !1; + e.on('data', (n) => { + !this.push(n) && e.pause && ((t = !0), e.pause()); + }), + e.on('end', () => { + this.push(null); + }), + e.on('error', (n) => { + bt(this, n); + }), + e.on('close', () => { + this.destroy(); + }), + e.on('destroy', () => { + this.destroy(); + }), + (this._read = () => { + t && e.resume && ((t = !1), e.resume()); + }); + let r = bg(e); + for (let n = 1; n < r.length; n++) { + let i = r[n]; + this[i] === void 0 && typeof e[i] == 'function' && (this[i] = e[i].bind(e)); + } + return this; + }; + O.prototype[gg] = function () { + return wu(this); + }; + O.prototype.iterator = function (e) { + return e !== void 0 && Ig(e, 'options'), wu(this, e); + }; + function wu(e, t) { + typeof e.read != 'function' && (e = O.wrap(e, { objectMode: !0 })); + let r = Fg(e, t); + return (r.stream = e), r; + } + async function* Fg(e, t) { + let r = ti; + function n(l) { + this === e ? (r(), (r = ti)) : (r = l); + } + e.on('readable', n); + let i, + o = mg(e, { writable: !1 }, (l) => { + (i = l ? au(i, l) : null), r(), (r = ti); + }); + try { + for (;;) { + let l = e.destroyed ? null : e.read(); + if (l !== null) yield l; + else { + if (i) throw i; + if (i === null) return; + await new pg(n); + } + } + } catch (l) { + throw ((i = au(i, l)), i); + } finally { + (i || t?.destroyOnReturn !== !1) && (i === void 0 || e._readableState.autoDestroy) + ? pt.destroyer(e, null) + : (e.off('readable', n), o()); + } + } + du(O.prototype, { + readable: { + __proto__: null, + get() { + let e = this._readableState; + return !!e && e.readable !== !1 && !e.destroyed && !e.errorEmitted && !e.endEmitted; + }, + set(e) { + this._readableState && (this._readableState.readable = !!e); + }, + }, + readableDidRead: { + __proto__: null, + enumerable: !1, + get: function () { + return this._readableState.dataEmitted; + }, + }, + readableAborted: { + __proto__: null, + enumerable: !1, + get: function () { + return !!( + this._readableState.readable !== !1 && + (this._readableState.destroyed || this._readableState.errored) && + !this._readableState.endEmitted + ); + }, + }, + readableHighWaterMark: { + __proto__: null, + enumerable: !1, + get: function () { + return this._readableState.highWaterMark; + }, + }, + readableBuffer: { + __proto__: null, + enumerable: !1, + get: function () { + return this._readableState && this._readableState.buffer; + }, + }, + readableFlowing: { + __proto__: null, + enumerable: !1, + get: function () { + return this._readableState.flowing; + }, + set: function (e) { + this._readableState && (this._readableState.flowing = e); + }, + }, + readableLength: { + __proto__: null, + enumerable: !1, + get() { + return this._readableState.length; + }, + }, + readableObjectMode: { + __proto__: null, + enumerable: !1, + get() { + return this._readableState ? this._readableState.objectMode : !1; + }, + }, + readableEncoding: { + __proto__: null, + enumerable: !1, + get() { + return this._readableState ? this._readableState.encoding : null; + }, + }, + errored: { + __proto__: null, + enumerable: !1, + get() { + return this._readableState ? this._readableState.errored : null; + }, + }, + closed: { + __proto__: null, + get() { + return this._readableState ? this._readableState.closed : !1; + }, + }, + destroyed: { + __proto__: null, + enumerable: !1, + get() { + return this._readableState ? this._readableState.destroyed : !1; + }, + set(e) { + this._readableState && (this._readableState.destroyed = e); + }, + }, + readableEnded: { + __proto__: null, + enumerable: !1, + get() { + return this._readableState ? this._readableState.endEmitted : !1; + }, + }, + }); + du(oi.prototype, { + pipesCount: { + __proto__: null, + get() { + return this.pipes.length; + }, + }, + paused: { + __proto__: null, + get() { + return this[Ke] !== !1; + }, + set(e) { + this[Ke] = !!e; + }, + }, + }); + O._fromList = Su; + function Su(e, t) { + if (t.length === 0) return null; + let r; + return ( + t.objectMode + ? (r = t.buffer.shift()) + : !e || e >= t.length + ? (t.decoder + ? (r = t.buffer.join('')) + : t.buffer.length === 1 + ? (r = t.buffer.first()) + : (r = t.buffer.concat(t.length)), + t.buffer.clear()) + : (r = t.buffer.consume(e, t.decoder)), + r + ); + } + function ni(e) { + let t = e._readableState; + D('endReadable', t.endEmitted), t.endEmitted || ((t.ended = !0), se.nextTick($g, t, e)); + } + function $g(e, t) { + if ( + (D('endReadableNT', e.endEmitted, e.length), !e.errored && !e.closeEmitted && !e.endEmitted && e.length === 0) + ) { + if (((e.endEmitted = !0), t.emit('end'), t.writable && t.allowHalfOpen === !1)) se.nextTick(Ug, t); + else if (e.autoDestroy) { + let r = t._writableState; + (!r || (r.autoDestroy && (r.finished || r.writable === !1))) && t.destroy(); + } + } + } + function Ug(e) { + e.writable && !e.writableEnded && !e.destroyed && e.end(); + } + O.from = function (e, t) { + return Dg(O, e, t); + }; + var ii; + function Eu() { + return ii === void 0 && (ii = {}), ii; + } + O.fromWeb = function (e, t) { + return Eu().newStreamReadableFromReadableStream(e, t); + }; + O.toWeb = function (e, t) { + return Eu().newReadableStreamFromStreamReadable(e, t); + }; + O.wrap = function (e, t) { + var r, n; + return new O({ + objectMode: + (r = (n = e.readableObjectMode) !== null && n !== void 0 ? n : e.objectMode) !== null && r !== void 0 ? r : !0, + ...t, + destroy(i, o) { + pt.destroyer(e, i), o(i); + }, + }).wrap(e); + }; +}); +var di = _((AO, Pu) => { + var Ye = X(), + { + ArrayPrototypeSlice: Tu, + Error: Gg, + FunctionPrototypeSymbolHasInstance: Ou, + ObjectDefineProperty: Lu, + ObjectDefineProperties: Hg, + ObjectSetPrototypeOf: xu, + StringPrototypeToLowerCase: Vg, + Symbol: Kg, + SymbolHasInstance: Yg, + } = U(); + Pu.exports = W; + W.WritableState = Ht; + var { EventEmitter: zg } = require('events'), + Ut = Sr().Stream, + { Buffer: Or } = require('buffer'), + Mr = Ve(), + { addAbortSignal: Jg } = Ft(), + { getHighWaterMark: Xg, getDefaultHighWaterMark: Zg } = Rr(), + { + ERR_INVALID_ARG_TYPE: Qg, + ERR_METHOD_NOT_IMPLEMENTED: e_, + ERR_MULTIPLE_CALLBACK: Mu, + ERR_STREAM_CANNOT_PIPE: t_, + ERR_STREAM_DESTROYED: Gt, + ERR_STREAM_ALREADY_FINISHED: r_, + ERR_STREAM_NULL_VALUES: n_, + ERR_STREAM_WRITE_AFTER_END: i_, + ERR_UNKNOWN_ENCODING: vu, + } = z().codes, + { errorOrDestroy: yt } = Mr; + xu(W.prototype, Ut.prototype); + xu(W, Ut); + function ui() {} + var gt = Kg('kOnFinished'); + function Ht(e, t, r) { + typeof r != 'boolean' && (r = t instanceof ye()), + (this.objectMode = !!(e && e.objectMode)), + r && (this.objectMode = this.objectMode || !!(e && e.writableObjectMode)), + (this.highWaterMark = e ? Xg(this, e, 'writableHighWaterMark', r) : Zg(!1)), + (this.finalCalled = !1), + (this.needDrain = !1), + (this.ending = !1), + (this.ended = !1), + (this.finished = !1), + (this.destroyed = !1); + let n = !!(e && e.decodeStrings === !1); + (this.decodeStrings = !n), + (this.defaultEncoding = (e && e.defaultEncoding) || 'utf8'), + (this.length = 0), + (this.writing = !1), + (this.corked = 0), + (this.sync = !0), + (this.bufferProcessing = !1), + (this.onwrite = l_.bind(void 0, t)), + (this.writecb = null), + (this.writelen = 0), + (this.afterWriteTickInfo = null), + xr(this), + (this.pendingcb = 0), + (this.constructed = !0), + (this.prefinished = !1), + (this.errorEmitted = !1), + (this.emitClose = !e || e.emitClose !== !1), + (this.autoDestroy = !e || e.autoDestroy !== !1), + (this.errored = null), + (this.closed = !1), + (this.closeEmitted = !1), + (this[gt] = []); + } + function xr(e) { + (e.buffered = []), (e.bufferedIndex = 0), (e.allBuffers = !0), (e.allNoop = !0); + } + Ht.prototype.getBuffer = function () { + return Tu(this.buffered, this.bufferedIndex); + }; + Lu(Ht.prototype, 'bufferedRequestCount', { + __proto__: null, + get() { + return this.buffered.length - this.bufferedIndex; + }, + }); + function W(e) { + let t = this instanceof ye(); + if (!t && !Ou(W, this)) return new W(e); + (this._writableState = new Ht(e, this, t)), + e && + (typeof e.write == 'function' && (this._write = e.write), + typeof e.writev == 'function' && (this._writev = e.writev), + typeof e.destroy == 'function' && (this._destroy = e.destroy), + typeof e.final == 'function' && (this._final = e.final), + typeof e.construct == 'function' && (this._construct = e.construct), + e.signal && Jg(e.signal, this)), + Ut.call(this, e), + Mr.construct(this, () => { + let r = this._writableState; + r.writing || ai(this, r), ci(this, r); + }); + } + Lu(W, Yg, { + __proto__: null, + value: function (e) { + return Ou(this, e) ? !0 : this !== W ? !1 : e && e._writableState instanceof Ht; + }, + }); + W.prototype.pipe = function () { + yt(this, new t_()); + }; + function Iu(e, t, r, n) { + let i = e._writableState; + if (typeof r == 'function') (n = r), (r = i.defaultEncoding); + else { + if (!r) r = i.defaultEncoding; + else if (r !== 'buffer' && !Or.isEncoding(r)) throw new vu(r); + typeof n != 'function' && (n = ui); + } + if (t === null) throw new n_(); + if (!i.objectMode) + if (typeof t == 'string') i.decodeStrings !== !1 && ((t = Or.from(t, r)), (r = 'buffer')); + else if (t instanceof Or) r = 'buffer'; + else if (Ut._isUint8Array(t)) (t = Ut._uint8ArrayToBuffer(t)), (r = 'buffer'); + else throw new Qg('chunk', ['string', 'Buffer', 'Uint8Array'], t); + let o; + return ( + i.ending ? (o = new i_()) : i.destroyed && (o = new Gt('write')), + o ? (Ye.nextTick(n, o), yt(e, o, !0), o) : (i.pendingcb++, o_(e, i, t, r, n)) + ); + } + W.prototype.write = function (e, t, r) { + return Iu(this, e, t, r) === !0; + }; + W.prototype.cork = function () { + this._writableState.corked++; + }; + W.prototype.uncork = function () { + let e = this._writableState; + e.corked && (e.corked--, e.writing || ai(this, e)); + }; + W.prototype.setDefaultEncoding = function (t) { + if ((typeof t == 'string' && (t = Vg(t)), !Or.isEncoding(t))) throw new vu(t); + return (this._writableState.defaultEncoding = t), this; + }; + function o_(e, t, r, n, i) { + let o = t.objectMode ? 1 : r.length; + t.length += o; + let l = t.length < t.highWaterMark; + return ( + l || (t.needDrain = !0), + t.writing || t.corked || t.errored || !t.constructed + ? (t.buffered.push({ chunk: r, encoding: n, callback: i }), + t.allBuffers && n !== 'buffer' && (t.allBuffers = !1), + t.allNoop && i !== ui && (t.allNoop = !1)) + : ((t.writelen = o), + (t.writecb = i), + (t.writing = !0), + (t.sync = !0), + e._write(r, n, t.onwrite), + (t.sync = !1)), + l && !t.errored && !t.destroyed + ); + } + function Ru(e, t, r, n, i, o, l) { + (t.writelen = n), + (t.writecb = l), + (t.writing = !0), + (t.sync = !0), + t.destroyed ? t.onwrite(new Gt('write')) : r ? e._writev(i, t.onwrite) : e._write(i, o, t.onwrite), + (t.sync = !1); + } + function Au(e, t, r, n) { + --t.pendingcb, n(r), fi(t), yt(e, r); + } + function l_(e, t) { + let r = e._writableState, + n = r.sync, + i = r.writecb; + if (typeof i != 'function') { + yt(e, new Mu()); + return; + } + (r.writing = !1), + (r.writecb = null), + (r.length -= r.writelen), + (r.writelen = 0), + t + ? (t.stack, + r.errored || (r.errored = t), + e._readableState && !e._readableState.errored && (e._readableState.errored = t), + n ? Ye.nextTick(Au, e, r, t, i) : Au(e, r, t, i)) + : (r.buffered.length > r.bufferedIndex && ai(e, r), + n + ? r.afterWriteTickInfo !== null && r.afterWriteTickInfo.cb === i + ? r.afterWriteTickInfo.count++ + : ((r.afterWriteTickInfo = { count: 1, cb: i, stream: e, state: r }), + Ye.nextTick(s_, r.afterWriteTickInfo)) + : Du(e, r, 1, i)); + } + function s_({ stream: e, state: t, count: r, cb: n }) { + return (t.afterWriteTickInfo = null), Du(e, t, r, n); + } + function Du(e, t, r, n) { + for (!t.ending && !e.destroyed && t.length === 0 && t.needDrain && ((t.needDrain = !1), e.emit('drain')); r-- > 0; ) + t.pendingcb--, n(); + t.destroyed && fi(t), ci(e, t); + } + function fi(e) { + if (e.writing) return; + for (let i = e.bufferedIndex; i < e.buffered.length; ++i) { + var t; + let { chunk: o, callback: l } = e.buffered[i], + s = e.objectMode ? 1 : o.length; + (e.length -= s), l((t = e.errored) !== null && t !== void 0 ? t : new Gt('write')); + } + let r = e[gt].splice(0); + for (let i = 0; i < r.length; i++) { + var n; + r[i]((n = e.errored) !== null && n !== void 0 ? n : new Gt('end')); + } + xr(e); + } + function ai(e, t) { + if (t.corked || t.bufferProcessing || t.destroyed || !t.constructed) return; + let { buffered: r, bufferedIndex: n, objectMode: i } = t, + o = r.length - n; + if (!o) return; + let l = n; + if (((t.bufferProcessing = !0), o > 1 && e._writev)) { + t.pendingcb -= o - 1; + let s = t.allNoop + ? ui + : (u) => { + for (let c = l; c < r.length; ++c) r[c].callback(u); + }, + f = t.allNoop && l === 0 ? r : Tu(r, l); + (f.allBuffers = t.allBuffers), Ru(e, t, !0, t.length, f, '', s), xr(t); + } else { + do { + let { chunk: s, encoding: f, callback: u } = r[l]; + r[l++] = null; + let c = i ? 1 : s.length; + Ru(e, t, !1, c, s, f, u); + } while (l < r.length && !t.writing); + l === r.length ? xr(t) : l > 256 ? (r.splice(0, l), (t.bufferedIndex = 0)) : (t.bufferedIndex = l); + } + t.bufferProcessing = !1; + } + W.prototype._write = function (e, t, r) { + if (this._writev) this._writev([{ chunk: e, encoding: t }], r); + else throw new e_('_write()'); + }; + W.prototype._writev = null; + W.prototype.end = function (e, t, r) { + let n = this._writableState; + typeof e == 'function' ? ((r = e), (e = null), (t = null)) : typeof t == 'function' && ((r = t), (t = null)); + let i; + if (e != null) { + let o = Iu(this, e, t); + o instanceof Gg && (i = o); + } + return ( + n.corked && ((n.corked = 1), this.uncork()), + i || + (!n.errored && !n.ending + ? ((n.ending = !0), ci(this, n, !0), (n.ended = !0)) + : n.finished + ? (i = new r_('end')) + : n.destroyed && (i = new Gt('end'))), + typeof r == 'function' && (i || n.finished ? Ye.nextTick(r, i) : n[gt].push(r)), + this + ); + }; + function Lr(e) { + return ( + e.ending && + !e.destroyed && + e.constructed && + e.length === 0 && + !e.errored && + e.buffered.length === 0 && + !e.finished && + !e.writing && + !e.errorEmitted && + !e.closeEmitted + ); + } + function u_(e, t) { + let r = !1; + function n(i) { + if (r) { + yt(e, i ?? Mu()); + return; + } + if (((r = !0), t.pendingcb--, i)) { + let o = t[gt].splice(0); + for (let l = 0; l < o.length; l++) o[l](i); + yt(e, i, t.sync); + } else Lr(t) && ((t.prefinished = !0), e.emit('prefinish'), t.pendingcb++, Ye.nextTick(si, e, t)); + } + (t.sync = !0), t.pendingcb++; + try { + e._final(n); + } catch (i) { + n(i); + } + t.sync = !1; + } + function f_(e, t) { + !t.prefinished && + !t.finalCalled && + (typeof e._final == 'function' && !t.destroyed + ? ((t.finalCalled = !0), u_(e, t)) + : ((t.prefinished = !0), e.emit('prefinish'))); + } + function ci(e, t, r) { + Lr(t) && + (f_(e, t), + t.pendingcb === 0 && + (r + ? (t.pendingcb++, + Ye.nextTick( + (n, i) => { + Lr(i) ? si(n, i) : i.pendingcb--; + }, + e, + t + )) + : Lr(t) && (t.pendingcb++, si(e, t)))); + } + function si(e, t) { + t.pendingcb--, (t.finished = !0); + let r = t[gt].splice(0); + for (let n = 0; n < r.length; n++) r[n](); + if ((e.emit('finish'), t.autoDestroy)) { + let n = e._readableState; + (!n || (n.autoDestroy && (n.endEmitted || n.readable === !1))) && e.destroy(); + } + } + Hg(W.prototype, { + closed: { + __proto__: null, + get() { + return this._writableState ? this._writableState.closed : !1; + }, + }, + destroyed: { + __proto__: null, + get() { + return this._writableState ? this._writableState.destroyed : !1; + }, + set(e) { + this._writableState && (this._writableState.destroyed = e); + }, + }, + writable: { + __proto__: null, + get() { + let e = this._writableState; + return !!e && e.writable !== !1 && !e.destroyed && !e.errored && !e.ending && !e.ended; + }, + set(e) { + this._writableState && (this._writableState.writable = !!e); + }, + }, + writableFinished: { + __proto__: null, + get() { + return this._writableState ? this._writableState.finished : !1; + }, + }, + writableObjectMode: { + __proto__: null, + get() { + return this._writableState ? this._writableState.objectMode : !1; + }, + }, + writableBuffer: { + __proto__: null, + get() { + return this._writableState && this._writableState.getBuffer(); + }, + }, + writableEnded: { + __proto__: null, + get() { + return this._writableState ? this._writableState.ending : !1; + }, + }, + writableNeedDrain: { + __proto__: null, + get() { + let e = this._writableState; + return e ? !e.destroyed && !e.ending && e.needDrain : !1; + }, + }, + writableHighWaterMark: { + __proto__: null, + get() { + return this._writableState && this._writableState.highWaterMark; + }, + }, + writableCorked: { + __proto__: null, + get() { + return this._writableState ? this._writableState.corked : 0; + }, + }, + writableLength: { + __proto__: null, + get() { + return this._writableState && this._writableState.length; + }, + }, + errored: { + __proto__: null, + enumerable: !1, + get() { + return this._writableState ? this._writableState.errored : null; + }, + }, + writableAborted: { + __proto__: null, + enumerable: !1, + get: function () { + return !!( + this._writableState.writable !== !1 && + (this._writableState.destroyed || this._writableState.errored) && + !this._writableState.finished + ); + }, + }, + }); + var a_ = Mr.destroy; + W.prototype.destroy = function (e, t) { + let r = this._writableState; + return ( + !r.destroyed && (r.bufferedIndex < r.buffered.length || r[gt].length) && Ye.nextTick(fi, r), + a_.call(this, e, t), + this + ); + }; + W.prototype._undestroy = Mr.undestroy; + W.prototype._destroy = function (e, t) { + t(e); + }; + W.prototype[zg.captureRejectionSymbol] = function (e) { + this.destroy(e); + }; + var li; + function Nu() { + return li === void 0 && (li = {}), li; + } + W.fromWeb = function (e, t) { + return Nu().newStreamWritableFromWritableStream(e, t); + }; + W.toWeb = function (e) { + return Nu().newWritableStreamFromStreamWritable(e); + }; +}); +var Vu = _((TO, Hu) => { + var hi = X(), + c_ = require('buffer'), + { + isReadable: d_, + isWritable: h_, + isIterable: qu, + isNodeStream: b_, + isReadableNodeStream: Cu, + isWritableNodeStream: Wu, + isDuplexNodeStream: p_, + } = be(), + ku = Ae(), + { + AbortError: Gu, + codes: { ERR_INVALID_ARG_TYPE: y_, ERR_INVALID_RETURN_VALUE: ju }, + } = z(), + { destroyer: _t } = Ve(), + g_ = ye(), + __ = $t(), + { createDeferredPromise: Bu } = de(), + Fu = Qn(), + $u = globalThis.Blob || c_.Blob, + w_ = + typeof $u < 'u' + ? function (t) { + return t instanceof $u; + } + : function (t) { + return !1; + }, + S_ = globalThis.AbortController || Ue().AbortController, + { FunctionPrototypeCall: Uu } = U(), + ze = class extends g_ { + constructor(t) { + super(t), + t?.readable === !1 && + ((this._readableState.readable = !1), + (this._readableState.ended = !0), + (this._readableState.endEmitted = !0)), + t?.writable === !1 && + ((this._writableState.writable = !1), + (this._writableState.ending = !0), + (this._writableState.ended = !0), + (this._writableState.finished = !0)); + } + }; + Hu.exports = function e(t, r) { + if (p_(t)) return t; + if (Cu(t)) return vr({ readable: t }); + if (Wu(t)) return vr({ writable: t }); + if (b_(t)) return vr({ writable: !1, readable: !1 }); + if (typeof t == 'function') { + let { value: i, write: o, final: l, destroy: s } = E_(t); + if (qu(i)) return Fu(ze, i, { objectMode: !0, write: o, final: l, destroy: s }); + let f = i?.then; + if (typeof f == 'function') { + let u, + c = Uu( + f, + i, + (a) => { + if (a != null) throw new ju('nully', 'body', a); + }, + (a) => { + _t(u, a); + } + ); + return (u = new ze({ + objectMode: !0, + readable: !1, + write: o, + final(a) { + l(async () => { + try { + await c, hi.nextTick(a, null); + } catch (b) { + hi.nextTick(a, b); + } + }); + }, + destroy: s, + })); + } + throw new ju('Iterable, AsyncIterable or AsyncFunction', r, i); + } + if (w_(t)) return e(t.arrayBuffer()); + if (qu(t)) return Fu(ze, t, { objectMode: !0, writable: !1 }); + if (typeof t?.writable == 'object' || typeof t?.readable == 'object') { + let i = t != null && t.readable ? (Cu(t?.readable) ? t?.readable : e(t.readable)) : void 0, + o = t != null && t.writable ? (Wu(t?.writable) ? t?.writable : e(t.writable)) : void 0; + return vr({ readable: i, writable: o }); + } + let n = t?.then; + if (typeof n == 'function') { + let i; + return ( + Uu( + n, + t, + (o) => { + o != null && i.push(o), i.push(null); + }, + (o) => { + _t(i, o); + } + ), + (i = new ze({ objectMode: !0, writable: !1, read() {} })) + ); + } + throw new y_( + r, + [ + 'Blob', + 'ReadableStream', + 'WritableStream', + 'Stream', + 'Iterable', + 'AsyncIterable', + 'Function', + '{ readable, writable } pair', + 'Promise', + ], + t + ); + }; + function E_(e) { + let { promise: t, resolve: r } = Bu(), + n = new S_(), + i = n.signal; + return { + value: e( + (async function* () { + for (;;) { + let l = t; + t = null; + let { chunk: s, done: f, cb: u } = await l; + if ((hi.nextTick(u), f)) return; + if (i.aborted) throw new Gu(void 0, { cause: i.reason }); + ({ promise: t, resolve: r } = Bu()), yield s; + } + })(), + { signal: i } + ), + write(l, s, f) { + let u = r; + (r = null), u({ chunk: l, done: !1, cb: f }); + }, + final(l) { + let s = r; + (r = null), s({ done: !0, cb: l }); + }, + destroy(l, s) { + n.abort(), s(l); + }, + }; + } + function vr(e) { + let t = e.readable && typeof e.readable.read != 'function' ? __.wrap(e.readable) : e.readable, + r = e.writable, + n = !!d_(t), + i = !!h_(r), + o, + l, + s, + f, + u; + function c(a) { + let b = f; + (f = null), b ? b(a) : a && u.destroy(a); + } + return ( + (u = new ze({ + readableObjectMode: !!(t != null && t.readableObjectMode), + writableObjectMode: !!(r != null && r.writableObjectMode), + readable: n, + writable: i, + })), + i && + (ku(r, (a) => { + (i = !1), a && _t(t, a), c(a); + }), + (u._write = function (a, b, h) { + r.write(a, b) ? h() : (o = h); + }), + (u._final = function (a) { + r.end(), (l = a); + }), + r.on('drain', function () { + if (o) { + let a = o; + (o = null), a(); + } + }), + r.on('finish', function () { + if (l) { + let a = l; + (l = null), a(); + } + })), + n && + (ku(t, (a) => { + (n = !1), a && _t(t, a), c(a); + }), + t.on('readable', function () { + if (s) { + let a = s; + (s = null), a(); + } + }), + t.on('end', function () { + u.push(null); + }), + (u._read = function () { + for (;;) { + let a = t.read(); + if (a === null) { + s = u._read; + return; + } + if (!u.push(a)) return; + } + })), + (u._destroy = function (a, b) { + !a && f !== null && (a = new Gu()), + (s = null), + (o = null), + (l = null), + f === null ? b(a) : ((f = b), _t(r, a), _t(t, a)); + }), + u + ); + } +}); +var ye = _((OO, zu) => { + 'use strict'; + var { + ObjectDefineProperties: m_, + ObjectGetOwnPropertyDescriptor: Te, + ObjectKeys: R_, + ObjectSetPrototypeOf: Ku, + } = U(); + zu.exports = ue; + var yi = $t(), + ne = di(); + Ku(ue.prototype, yi.prototype); + Ku(ue, yi); + { + let e = R_(ne.prototype); + for (let t = 0; t < e.length; t++) { + let r = e[t]; + ue.prototype[r] || (ue.prototype[r] = ne.prototype[r]); + } + } + function ue(e) { + if (!(this instanceof ue)) return new ue(e); + yi.call(this, e), + ne.call(this, e), + e + ? ((this.allowHalfOpen = e.allowHalfOpen !== !1), + e.readable === !1 && + ((this._readableState.readable = !1), + (this._readableState.ended = !0), + (this._readableState.endEmitted = !0)), + e.writable === !1 && + ((this._writableState.writable = !1), + (this._writableState.ending = !0), + (this._writableState.ended = !0), + (this._writableState.finished = !0))) + : (this.allowHalfOpen = !0); + } + m_(ue.prototype, { + writable: { __proto__: null, ...Te(ne.prototype, 'writable') }, + writableHighWaterMark: { __proto__: null, ...Te(ne.prototype, 'writableHighWaterMark') }, + writableObjectMode: { __proto__: null, ...Te(ne.prototype, 'writableObjectMode') }, + writableBuffer: { __proto__: null, ...Te(ne.prototype, 'writableBuffer') }, + writableLength: { __proto__: null, ...Te(ne.prototype, 'writableLength') }, + writableFinished: { __proto__: null, ...Te(ne.prototype, 'writableFinished') }, + writableCorked: { __proto__: null, ...Te(ne.prototype, 'writableCorked') }, + writableEnded: { __proto__: null, ...Te(ne.prototype, 'writableEnded') }, + writableNeedDrain: { __proto__: null, ...Te(ne.prototype, 'writableNeedDrain') }, + destroyed: { + __proto__: null, + get() { + return this._readableState === void 0 || this._writableState === void 0 + ? !1 + : this._readableState.destroyed && this._writableState.destroyed; + }, + set(e) { + this._readableState && + this._writableState && + ((this._readableState.destroyed = e), (this._writableState.destroyed = e)); + }, + }, + }); + var bi; + function Yu() { + return bi === void 0 && (bi = {}), bi; + } + ue.fromWeb = function (e, t) { + return Yu().newStreamDuplexFromReadableWritablePair(e, t); + }; + ue.toWeb = function (e) { + return Yu().newReadableWritablePairFromDuplex(e); + }; + var pi; + ue.from = function (e) { + return pi || (pi = Vu()), pi(e, 'body'); + }; +}); +var wi = _((LO, Xu) => { + 'use strict'; + var { ObjectSetPrototypeOf: Ju, Symbol: A_ } = U(); + Xu.exports = Oe; + var { ERR_METHOD_NOT_IMPLEMENTED: T_ } = z().codes, + _i = ye(), + { getHighWaterMark: O_ } = Rr(); + Ju(Oe.prototype, _i.prototype); + Ju(Oe, _i); + var Vt = A_('kCallback'); + function Oe(e) { + if (!(this instanceof Oe)) return new Oe(e); + let t = e ? O_(this, e, 'readableHighWaterMark', !0) : null; + t === 0 && + (e = { + ...e, + highWaterMark: null, + readableHighWaterMark: t, + writableHighWaterMark: e.writableHighWaterMark || 0, + }), + _i.call(this, e), + (this._readableState.sync = !1), + (this[Vt] = null), + e && + (typeof e.transform == 'function' && (this._transform = e.transform), + typeof e.flush == 'function' && (this._flush = e.flush)), + this.on('prefinish', L_); + } + function gi(e) { + typeof this._flush == 'function' && !this.destroyed + ? this._flush((t, r) => { + if (t) { + e ? e(t) : this.destroy(t); + return; + } + r != null && this.push(r), this.push(null), e && e(); + }) + : (this.push(null), e && e()); + } + function L_() { + this._final !== gi && gi.call(this); + } + Oe.prototype._final = gi; + Oe.prototype._transform = function (e, t, r) { + throw new T_('_transform()'); + }; + Oe.prototype._write = function (e, t, r) { + let n = this._readableState, + i = this._writableState, + o = n.length; + this._transform(e, t, (l, s) => { + if (l) { + r(l); + return; + } + s != null && this.push(s), i.ended || o === n.length || n.length < n.highWaterMark ? r() : (this[Vt] = r); + }); + }; + Oe.prototype._read = function () { + if (this[Vt]) { + let e = this[Vt]; + (this[Vt] = null), e(); + } + }; +}); +var Ei = _((xO, Qu) => { + 'use strict'; + var { ObjectSetPrototypeOf: Zu } = U(); + Qu.exports = wt; + var Si = wi(); + Zu(wt.prototype, Si.prototype); + Zu(wt, Si); + function wt(e) { + if (!(this instanceof wt)) return new wt(e); + Si.call(this, e); + } + wt.prototype._transform = function (e, t, r) { + r(null, e); + }; +}); +var Pr = _((MO, of) => { + var Kt = X(), + { ArrayIsArray: x_, Promise: M_, SymbolAsyncIterator: v_ } = U(), + Nr = Ae(), + { once: I_ } = de(), + D_ = Ve(), + ef = ye(), + { + aggregateTwoErrors: N_, + codes: { + ERR_INVALID_ARG_TYPE: Mi, + ERR_INVALID_RETURN_VALUE: mi, + ERR_MISSING_ARGS: P_, + ERR_STREAM_DESTROYED: q_, + ERR_STREAM_PREMATURE_CLOSE: C_, + }, + AbortError: W_, + } = z(), + { validateFunction: k_, validateAbortSignal: j_ } = Bt(), + { + isIterable: Je, + isReadable: Ri, + isReadableNodeStream: Dr, + isNodeStream: tf, + isTransformStream: St, + isWebStream: B_, + isReadableStream: Ai, + isReadableEnded: F_, + } = be(), + $_ = globalThis.AbortController || Ue().AbortController, + Ti, + Oi; + function rf(e, t, r) { + let n = !1; + e.on('close', () => { + n = !0; + }); + let i = Nr(e, { readable: t, writable: r }, (o) => { + n = !o; + }); + return { + destroy: (o) => { + n || ((n = !0), D_.destroyer(e, o || new q_('pipe'))); + }, + cleanup: i, + }; + } + function U_(e) { + return k_(e[e.length - 1], 'streams[stream.length - 1]'), e.pop(); + } + function Li(e) { + if (Je(e)) return e; + if (Dr(e)) return G_(e); + throw new Mi('val', ['Readable', 'Iterable', 'AsyncIterable'], e); + } + async function* G_(e) { + Oi || (Oi = $t()), yield* Oi.prototype[v_].call(e); + } + async function Ir(e, t, r, { end: n }) { + let i, + o = null, + l = (u) => { + if ((u && (i = u), o)) { + let c = o; + (o = null), c(); + } + }, + s = () => + new M_((u, c) => { + i + ? c(i) + : (o = () => { + i ? c(i) : u(); + }); + }); + t.on('drain', l); + let f = Nr(t, { readable: !1 }, l); + try { + t.writableNeedDrain && (await s()); + for await (let u of e) t.write(u) || (await s()); + n && t.end(), await s(), r(); + } catch (u) { + r(i !== u ? N_(i, u) : u); + } finally { + f(), t.off('drain', l); + } + } + async function xi(e, t, r, { end: n }) { + St(t) && (t = t.writable); + let i = t.getWriter(); + try { + for await (let o of e) await i.ready, i.write(o).catch(() => {}); + await i.ready, n && (await i.close()), r(); + } catch (o) { + try { + await i.abort(o), r(o); + } catch (l) { + r(l); + } + } + } + function H_(...e) { + return nf(e, I_(U_(e))); + } + function nf(e, t, r) { + if ((e.length === 1 && x_(e[0]) && (e = e[0]), e.length < 2)) throw new P_('streams'); + let n = new $_(), + i = n.signal, + o = r?.signal, + l = []; + j_(o, 'options.signal'); + function s() { + h(new W_()); + } + o?.addEventListener('abort', s); + let f, + u, + c = [], + a = 0; + function b(g) { + h(g, --a === 0); + } + function h(g, p) { + if ((g && (!f || f.code === 'ERR_STREAM_PREMATURE_CLOSE') && (f = g), !(!f && !p))) { + for (; c.length; ) c.shift()(f); + o?.removeEventListener('abort', s), n.abort(), p && (f || l.forEach((A) => A()), Kt.nextTick(t, f, u)); + } + } + let d; + for (let g = 0; g < e.length; g++) { + let p = e[g], + A = g < e.length - 1, + m = g > 0, + v = A || r?.end !== !1, + j = g === e.length - 1; + if (tf(p)) { + let I = function (P) { + P && P.name !== 'AbortError' && P.code !== 'ERR_STREAM_PREMATURE_CLOSE' && b(P); + }; + var w = I; + if (v) { + let { destroy: P, cleanup: ee } = rf(p, A, m); + c.push(P), Ri(p) && j && l.push(ee); + } + p.on('error', I), + Ri(p) && + j && + l.push(() => { + p.removeListener('error', I); + }); + } + if (g === 0) + if (typeof p == 'function') { + if (((d = p({ signal: i })), !Je(d))) throw new mi('Iterable, AsyncIterable or Stream', 'source', d); + } else Je(p) || Dr(p) || St(p) ? (d = p) : (d = ef.from(p)); + else if (typeof p == 'function') { + if (St(d)) { + var S; + d = Li((S = d) === null || S === void 0 ? void 0 : S.readable); + } else d = Li(d); + if (((d = p(d, { signal: i })), A)) { + if (!Je(d, !0)) throw new mi('AsyncIterable', `transform[${g - 1}]`, d); + } else { + var y; + Ti || (Ti = Ei()); + let I = new Ti({ objectMode: !0 }), + P = (y = d) === null || y === void 0 ? void 0 : y.then; + if (typeof P == 'function') + a++, + P.call( + d, + (C) => { + (u = C), C != null && I.write(C), v && I.end(), Kt.nextTick(b); + }, + (C) => { + I.destroy(C), Kt.nextTick(b, C); + } + ); + else if (Je(d, !0)) a++, Ir(d, I, b, { end: v }); + else if (Ai(d) || St(d)) { + let C = d.readable || d; + a++, Ir(C, I, b, { end: v }); + } else throw new mi('AsyncIterable or Promise', 'destination', d); + d = I; + let { destroy: ee, cleanup: te } = rf(d, !1, !0); + c.push(ee), j && l.push(te); + } + } else if (tf(p)) { + if (Dr(d)) { + a += 2; + let I = V_(d, p, b, { end: v }); + Ri(p) && j && l.push(I); + } else if (St(d) || Ai(d)) { + let I = d.readable || d; + a++, Ir(I, p, b, { end: v }); + } else if (Je(d)) a++, Ir(d, p, b, { end: v }); + else throw new Mi('val', ['Readable', 'Iterable', 'AsyncIterable', 'ReadableStream', 'TransformStream'], d); + d = p; + } else if (B_(p)) { + if (Dr(d)) a++, xi(Li(d), p, b, { end: v }); + else if (Ai(d) || Je(d)) a++, xi(d, p, b, { end: v }); + else if (St(d)) a++, xi(d.readable, p, b, { end: v }); + else throw new Mi('val', ['Readable', 'Iterable', 'AsyncIterable', 'ReadableStream', 'TransformStream'], d); + d = p; + } else d = ef.from(p); + } + return ((i != null && i.aborted) || (o != null && o.aborted)) && Kt.nextTick(s), d; + } + function V_(e, t, r, { end: n }) { + let i = !1; + if ( + (t.on('close', () => { + i || r(new C_()); + }), + e.pipe(t, { end: !1 }), + n) + ) { + let l = function () { + (i = !0), t.end(); + }; + var o = l; + F_(e) ? Kt.nextTick(l) : e.once('end', l); + } else r(); + return ( + Nr(e, { readable: !0, writable: !1 }, (l) => { + let s = e._readableState; + l && l.code === 'ERR_STREAM_PREMATURE_CLOSE' && s && s.ended && !s.errored && !s.errorEmitted + ? e.once('end', r).once('error', r) + : r(l); + }), + Nr(t, { readable: !1, writable: !0 }, r) + ); + } + of.exports = { pipelineImpl: nf, pipeline: H_ }; +}); +var Ii = _((vO, cf) => { + 'use strict'; + var { pipeline: K_ } = Pr(), + qr = ye(), + { destroyer: Y_ } = Ve(), + { + isNodeStream: Cr, + isReadable: lf, + isWritable: sf, + isWebStream: vi, + isTransformStream: Xe, + isWritableStream: uf, + isReadableStream: ff, + } = be(), + { + AbortError: z_, + codes: { ERR_INVALID_ARG_VALUE: af, ERR_MISSING_ARGS: J_ }, + } = z(), + X_ = Ae(); + cf.exports = function (...t) { + if (t.length === 0) throw new J_('streams'); + if (t.length === 1) return qr.from(t[0]); + let r = [...t]; + if ((typeof t[0] == 'function' && (t[0] = qr.from(t[0])), typeof t[t.length - 1] == 'function')) { + let h = t.length - 1; + t[h] = qr.from(t[h]); + } + for (let h = 0; h < t.length; ++h) + if (!(!Cr(t[h]) && !vi(t[h]))) { + if (h < t.length - 1 && !(lf(t[h]) || ff(t[h]) || Xe(t[h]))) + throw new af(`streams[${h}]`, r[h], 'must be readable'); + if (h > 0 && !(sf(t[h]) || uf(t[h]) || Xe(t[h]))) throw new af(`streams[${h}]`, r[h], 'must be writable'); + } + let n, i, o, l, s; + function f(h) { + let d = l; + (l = null), d ? d(h) : h ? s.destroy(h) : !b && !a && s.destroy(); + } + let u = t[0], + c = K_(t, f), + a = !!(sf(u) || uf(u) || Xe(u)), + b = !!(lf(c) || ff(c) || Xe(c)); + if ( + ((s = new qr({ + writableObjectMode: !!(u != null && u.writableObjectMode), + readableObjectMode: !!(c != null && c.writableObjectMode), + writable: a, + readable: b, + })), + a) + ) { + if (Cr(u)) + (s._write = function (d, S, y) { + u.write(d, S) ? y() : (n = y); + }), + (s._final = function (d) { + u.end(), (i = d); + }), + u.on('drain', function () { + if (n) { + let d = n; + (n = null), d(); + } + }); + else if (vi(u)) { + let S = (Xe(u) ? u.writable : u).getWriter(); + (s._write = async function (y, w, g) { + try { + await S.ready, S.write(y).catch(() => {}), g(); + } catch (p) { + g(p); + } + }), + (s._final = async function (y) { + try { + await S.ready, S.close().catch(() => {}), (i = y); + } catch (w) { + y(w); + } + }); + } + let h = Xe(c) ? c.readable : c; + X_(h, () => { + if (i) { + let d = i; + (i = null), d(); + } + }); + } + if (b) { + if (Cr(c)) + c.on('readable', function () { + if (o) { + let h = o; + (o = null), h(); + } + }), + c.on('end', function () { + s.push(null); + }), + (s._read = function () { + for (;;) { + let h = c.read(); + if (h === null) { + o = s._read; + return; + } + if (!s.push(h)) return; + } + }); + else if (vi(c)) { + let d = (Xe(c) ? c.readable : c).getReader(); + s._read = async function () { + for (;;) + try { + let { value: S, done: y } = await d.read(); + if (!s.push(S)) return; + if (y) { + s.push(null); + return; + } + } catch { + return; + } + }; + } + } + return ( + (s._destroy = function (h, d) { + !h && l !== null && (h = new z_()), + (o = null), + (n = null), + (i = null), + l === null ? d(h) : ((l = d), Cr(c) && Y_(c, h)); + }), + s + ); + }; +}); +var wf = _((IO, Pi) => { + 'use strict'; + var pf = globalThis.AbortController || Ue().AbortController, + { + codes: { ERR_INVALID_ARG_VALUE: Z_, ERR_INVALID_ARG_TYPE: Yt, ERR_MISSING_ARGS: Q_, ERR_OUT_OF_RANGE: ew }, + AbortError: ge, + } = z(), + { validateAbortSignal: Ze, validateInteger: tw, validateObject: Qe } = Bt(), + rw = U().Symbol('kWeak'), + { finished: nw } = Ae(), + iw = Ii(), + { addAbortSignalNoValidate: ow } = Ft(), + { isWritable: lw, isNodeStream: sw } = be(), + { + ArrayPrototypePush: uw, + MathFloor: fw, + Number: aw, + NumberIsNaN: cw, + Promise: df, + PromiseReject: hf, + PromisePrototypeThen: dw, + Symbol: yf, + } = U(), + Wr = yf('kEmpty'), + bf = yf('kEof'); + function hw(e, t) { + if ((t != null && Qe(t, 'options'), t?.signal != null && Ze(t.signal, 'options.signal'), sw(e) && !lw(e))) + throw new Z_('stream', e, 'must be writable'); + let r = iw(this, e); + return t != null && t.signal && ow(t.signal, r), r; + } + function kr(e, t) { + if (typeof e != 'function') throw new Yt('fn', ['Function', 'AsyncFunction'], e); + t != null && Qe(t, 'options'), t?.signal != null && Ze(t.signal, 'options.signal'); + let r = 1; + return ( + t?.concurrency != null && (r = fw(t.concurrency)), + tw(r, 'concurrency', 1), + async function* () { + var i, o; + let l = new pf(), + s = this, + f = [], + u = l.signal, + c = { signal: u }, + a = () => l.abort(); + t != null && (i = t.signal) !== null && i !== void 0 && i.aborted && a(), + t == null || (o = t.signal) === null || o === void 0 || o.addEventListener('abort', a); + let b, + h, + d = !1; + function S() { + d = !0; + } + async function y() { + try { + for await (let p of s) { + var w; + if (d) return; + if (u.aborted) throw new ge(); + try { + p = e(p, c); + } catch (A) { + p = hf(A); + } + p !== Wr && + (typeof ((w = p) === null || w === void 0 ? void 0 : w.catch) == 'function' && p.catch(S), + f.push(p), + b && (b(), (b = null)), + !d && + f.length && + f.length >= r && + (await new df((A) => { + h = A; + }))); + } + f.push(bf); + } catch (p) { + let A = hf(p); + dw(A, void 0, S), f.push(A); + } finally { + var g; + (d = !0), + b && (b(), (b = null)), + t == null || (g = t.signal) === null || g === void 0 || g.removeEventListener('abort', a); + } + } + y(); + try { + for (;;) { + for (; f.length > 0; ) { + let w = await f[0]; + if (w === bf) return; + if (u.aborted) throw new ge(); + w !== Wr && (yield w), f.shift(), h && (h(), (h = null)); + } + await new df((w) => { + b = w; + }); + } + } finally { + l.abort(), (d = !0), h && (h(), (h = null)); + } + }.call(this) + ); + } + function bw(e = void 0) { + return ( + e != null && Qe(e, 'options'), + e?.signal != null && Ze(e.signal, 'options.signal'), + async function* () { + let r = 0; + for await (let i of this) { + var n; + if (e != null && (n = e.signal) !== null && n !== void 0 && n.aborted) + throw new ge({ cause: e.signal.reason }); + yield [r++, i]; + } + }.call(this) + ); + } + async function gf(e, t = void 0) { + for await (let r of Ni.call(this, e, t)) return !0; + return !1; + } + async function pw(e, t = void 0) { + if (typeof e != 'function') throw new Yt('fn', ['Function', 'AsyncFunction'], e); + return !(await gf.call(this, async (...r) => !(await e(...r)), t)); + } + async function yw(e, t) { + for await (let r of Ni.call(this, e, t)) return r; + } + async function gw(e, t) { + if (typeof e != 'function') throw new Yt('fn', ['Function', 'AsyncFunction'], e); + async function r(n, i) { + return await e(n, i), Wr; + } + for await (let n of kr.call(this, r, t)); + } + function Ni(e, t) { + if (typeof e != 'function') throw new Yt('fn', ['Function', 'AsyncFunction'], e); + async function r(n, i) { + return (await e(n, i)) ? n : Wr; + } + return kr.call(this, r, t); + } + var Di = class extends Q_ { + constructor() { + super('reduce'), (this.message = 'Reduce of an empty stream requires an initial value'); + } + }; + async function _w(e, t, r) { + var n; + if (typeof e != 'function') throw new Yt('reducer', ['Function', 'AsyncFunction'], e); + r != null && Qe(r, 'options'), r?.signal != null && Ze(r.signal, 'options.signal'); + let i = arguments.length > 1; + if (r != null && (n = r.signal) !== null && n !== void 0 && n.aborted) { + let u = new ge(void 0, { cause: r.signal.reason }); + throw (this.once('error', () => {}), await nw(this.destroy(u)), u); + } + let o = new pf(), + l = o.signal; + if (r != null && r.signal) { + let u = { once: !0, [rw]: this }; + r.signal.addEventListener('abort', () => o.abort(), u); + } + let s = !1; + try { + for await (let u of this) { + var f; + if (((s = !0), r != null && (f = r.signal) !== null && f !== void 0 && f.aborted)) throw new ge(); + i ? (t = await e(t, u, { signal: l })) : ((t = u), (i = !0)); + } + if (!s && !i) throw new Di(); + } finally { + o.abort(); + } + return t; + } + async function ww(e) { + e != null && Qe(e, 'options'), e?.signal != null && Ze(e.signal, 'options.signal'); + let t = []; + for await (let n of this) { + var r; + if (e != null && (r = e.signal) !== null && r !== void 0 && r.aborted) + throw new ge(void 0, { cause: e.signal.reason }); + uw(t, n); + } + return t; + } + function Sw(e, t) { + let r = kr.call(this, e, t); + return async function* () { + for await (let i of r) yield* i; + }.call(this); + } + function _f(e) { + if (((e = aw(e)), cw(e))) return 0; + if (e < 0) throw new ew('number', '>= 0', e); + return e; + } + function Ew(e, t = void 0) { + return ( + t != null && Qe(t, 'options'), + t?.signal != null && Ze(t.signal, 'options.signal'), + (e = _f(e)), + async function* () { + var n; + if (t != null && (n = t.signal) !== null && n !== void 0 && n.aborted) throw new ge(); + for await (let o of this) { + var i; + if (t != null && (i = t.signal) !== null && i !== void 0 && i.aborted) throw new ge(); + e-- <= 0 && (yield o); + } + }.call(this) + ); + } + function mw(e, t = void 0) { + return ( + t != null && Qe(t, 'options'), + t?.signal != null && Ze(t.signal, 'options.signal'), + (e = _f(e)), + async function* () { + var n; + if (t != null && (n = t.signal) !== null && n !== void 0 && n.aborted) throw new ge(); + for await (let o of this) { + var i; + if (t != null && (i = t.signal) !== null && i !== void 0 && i.aborted) throw new ge(); + if (e-- > 0) yield o; + else return; + } + }.call(this) + ); + } + Pi.exports.streamReturningOperators = { + asIndexedPairs: bw, + drop: Ew, + filter: Ni, + flatMap: Sw, + map: kr, + take: mw, + compose: hw, + }; + Pi.exports.promiseReturningOperators = { every: pw, forEach: gw, reduce: _w, toArray: ww, some: gf, find: yw }; +}); +var qi = _((DO, Sf) => { + 'use strict'; + var { ArrayPrototypePop: Rw, Promise: Aw } = U(), + { isIterable: Tw, isNodeStream: Ow, isWebStream: Lw } = be(), + { pipelineImpl: xw } = Pr(), + { finished: Mw } = Ae(); + require('stream'); + function vw(...e) { + return new Aw((t, r) => { + let n, + i, + o = e[e.length - 1]; + if (o && typeof o == 'object' && !Ow(o) && !Tw(o) && !Lw(o)) { + let l = Rw(e); + (n = l.signal), (i = l.end); + } + xw( + e, + (l, s) => { + l ? r(l) : t(s); + }, + { signal: n, end: i } + ); + }); + } + Sf.exports = { finished: Mw, pipeline: vw }; +}); +var vf = _((NO, Mf) => { + var { Buffer: Iw } = require('buffer'), + { ObjectDefineProperty: Le, ObjectKeys: Rf, ReflectApply: Af } = U(), + { + promisify: { custom: Tf }, + } = de(), + { streamReturningOperators: Ef, promiseReturningOperators: mf } = wf(), + { + codes: { ERR_ILLEGAL_CONSTRUCTOR: Of }, + } = z(), + Dw = Ii(), + { pipeline: Lf } = Pr(), + { destroyer: Nw } = Ve(), + xf = Ae(), + Ci = qi(), + Wi = be(), + B = (Mf.exports = Sr().Stream); + B.isDisturbed = Wi.isDisturbed; + B.isErrored = Wi.isErrored; + B.isReadable = Wi.isReadable; + B.Readable = $t(); + for (let e of Rf(Ef)) { + let r = function (...n) { + if (new.target) throw Of(); + return B.Readable.from(Af(t, this, n)); + }; + ki = r; + let t = Ef[e]; + Le(r, 'name', { __proto__: null, value: t.name }), + Le(r, 'length', { __proto__: null, value: t.length }), + Le(B.Readable.prototype, e, { __proto__: null, value: r, enumerable: !1, configurable: !0, writable: !0 }); + } + var ki; + for (let e of Rf(mf)) { + let r = function (...i) { + if (new.target) throw Of(); + return Af(t, this, i); + }; + ki = r; + let t = mf[e]; + Le(r, 'name', { __proto__: null, value: t.name }), + Le(r, 'length', { __proto__: null, value: t.length }), + Le(B.Readable.prototype, e, { __proto__: null, value: r, enumerable: !1, configurable: !0, writable: !0 }); + } + var ki; + B.Writable = di(); + B.Duplex = ye(); + B.Transform = wi(); + B.PassThrough = Ei(); + B.pipeline = Lf; + var { addAbortSignal: Pw } = Ft(); + B.addAbortSignal = Pw; + B.finished = xf; + B.destroy = Nw; + B.compose = Dw; + Le(B, 'promises', { + __proto__: null, + configurable: !0, + enumerable: !0, + get() { + return Ci; + }, + }); + Le(Lf, Tf, { + __proto__: null, + enumerable: !0, + get() { + return Ci.pipeline; + }, + }); + Le(xf, Tf, { + __proto__: null, + enumerable: !0, + get() { + return Ci.finished; + }, + }); + B.Stream = B; + B._isUint8Array = function (t) { + return t instanceof Uint8Array; + }; + B._uint8ArrayToBuffer = function (t) { + return Iw.from(t.buffer, t.byteOffset, t.byteLength); + }; +}); +var If = _((PO, x) => { + 'use strict'; + var H = require('stream'); + if (H && process.env.READABLE_STREAM === 'disable') { + let e = H.promises; + (x.exports._uint8ArrayToBuffer = H._uint8ArrayToBuffer), + (x.exports._isUint8Array = H._isUint8Array), + (x.exports.isDisturbed = H.isDisturbed), + (x.exports.isErrored = H.isErrored), + (x.exports.isReadable = H.isReadable), + (x.exports.Readable = H.Readable), + (x.exports.Writable = H.Writable), + (x.exports.Duplex = H.Duplex), + (x.exports.Transform = H.Transform), + (x.exports.PassThrough = H.PassThrough), + (x.exports.addAbortSignal = H.addAbortSignal), + (x.exports.finished = H.finished), + (x.exports.destroy = H.destroy), + (x.exports.pipeline = H.pipeline), + (x.exports.compose = H.compose), + Object.defineProperty(H, 'promises', { + configurable: !0, + enumerable: !0, + get() { + return e; + }, + }), + (x.exports.Stream = H.Stream); + } else { + let e = vf(), + t = qi(), + r = e.Readable.destroy; + (x.exports = e.Readable), + (x.exports._uint8ArrayToBuffer = e._uint8ArrayToBuffer), + (x.exports._isUint8Array = e._isUint8Array), + (x.exports.isDisturbed = e.isDisturbed), + (x.exports.isErrored = e.isErrored), + (x.exports.isReadable = e.isReadable), + (x.exports.Readable = e.Readable), + (x.exports.Writable = e.Writable), + (x.exports.Duplex = e.Duplex), + (x.exports.Transform = e.Transform), + (x.exports.PassThrough = e.PassThrough), + (x.exports.addAbortSignal = e.addAbortSignal), + (x.exports.finished = e.finished), + (x.exports.destroy = e.destroy), + (x.exports.destroy = r), + (x.exports.pipeline = e.pipeline), + (x.exports.compose = e.compose), + Object.defineProperty(e, 'promises', { + configurable: !0, + enumerable: !0, + get() { + return t; + }, + }), + (x.exports.Stream = e.Stream); + } + x.exports.default = x.exports; +}); +var qf = _((qO, Pf) => { + 'use strict'; + var { Transform: qw } = require('stream'), + { StringDecoder: Cw } = require('string_decoder'), + je = Symbol('last'), + jr = Symbol('decoder'); + function Ww(e, t, r) { + let n; + if (this.overflow) { + if (((n = this[jr].write(e).split(this.matcher)), n.length === 1)) return r(); + n.shift(), (this.overflow = !1); + } else (this[je] += this[jr].write(e)), (n = this[je].split(this.matcher)); + this[je] = n.pop(); + for (let i = 0; i < n.length; i++) + try { + Nf(this, this.mapper(n[i])); + } catch (o) { + return r(o); + } + if (((this.overflow = this[je].length > this.maxLength), this.overflow && !this.skipOverflow)) { + r(new Error('maximum buffer reached')); + return; + } + r(); + } + function kw(e) { + if (((this[je] += this[jr].end()), this[je])) + try { + Nf(this, this.mapper(this[je])); + } catch (t) { + return e(t); + } + e(); + } + function Nf(e, t) { + t !== void 0 && e.push(t); + } + function Df(e) { + return e; + } + function jw(e, t, r) { + switch (((e = e || /\r?\n/), (t = t || Df), (r = r || {}), arguments.length)) { + case 1: + typeof e == 'function' + ? ((t = e), (e = /\r?\n/)) + : typeof e == 'object' && !(e instanceof RegExp) && !e[Symbol.split] && ((r = e), (e = /\r?\n/)); + break; + case 2: + typeof e == 'function' ? ((r = t), (t = e), (e = /\r?\n/)) : typeof t == 'object' && ((r = t), (t = Df)); + } + (r = Object.assign({}, r)), (r.autoDestroy = !0), (r.transform = Ww), (r.flush = kw), (r.readableObjectMode = !0); + let n = new qw(r); + return ( + (n[je] = ''), + (n[jr] = new Cw('utf8')), + (n.matcher = e), + (n.mapper = t), + (n.maxLength = r.maxLength), + (n.skipOverflow = r.skipOverflow || !1), + (n.overflow = !1), + (n._destroy = function (i, o) { + (this._writableState.errorEmitted = !1), o(i); + }), + n + ); + } + Pf.exports = jw; +}); +var G = _((CO, Cf) => { + 'use strict'; + Cf.exports = { + ArrayIsArray(e) { + return Array.isArray(e); + }, + ArrayPrototypeIncludes(e, t) { + return e.includes(t); + }, + ArrayPrototypeIndexOf(e, t) { + return e.indexOf(t); + }, + ArrayPrototypeJoin(e, t) { + return e.join(t); + }, + ArrayPrototypeMap(e, t) { + return e.map(t); + }, + ArrayPrototypePop(e, t) { + return e.pop(t); + }, + ArrayPrototypePush(e, t) { + return e.push(t); + }, + ArrayPrototypeSlice(e, t, r) { + return e.slice(t, r); + }, + Error, + FunctionPrototypeCall(e, t, ...r) { + return e.call(t, ...r); + }, + FunctionPrototypeSymbolHasInstance(e, t) { + return Function.prototype[Symbol.hasInstance].call(e, t); + }, + MathFloor: Math.floor, + Number, + NumberIsInteger: Number.isInteger, + NumberIsNaN: Number.isNaN, + NumberMAX_SAFE_INTEGER: Number.MAX_SAFE_INTEGER, + NumberMIN_SAFE_INTEGER: Number.MIN_SAFE_INTEGER, + NumberParseInt: Number.parseInt, + ObjectDefineProperties(e, t) { + return Object.defineProperties(e, t); + }, + ObjectDefineProperty(e, t, r) { + return Object.defineProperty(e, t, r); + }, + ObjectGetOwnPropertyDescriptor(e, t) { + return Object.getOwnPropertyDescriptor(e, t); + }, + ObjectKeys(e) { + return Object.keys(e); + }, + ObjectSetPrototypeOf(e, t) { + return Object.setPrototypeOf(e, t); + }, + Promise, + PromisePrototypeCatch(e, t) { + return e.catch(t); + }, + PromisePrototypeThen(e, t, r) { + return e.then(t, r); + }, + PromiseReject(e) { + return Promise.reject(e); + }, + ReflectApply: Reflect.apply, + RegExpPrototypeTest(e, t) { + return e.test(t); + }, + SafeSet: Set, + String, + StringPrototypeSlice(e, t, r) { + return e.slice(t, r); + }, + StringPrototypeToLowerCase(e) { + return e.toLowerCase(); + }, + StringPrototypeToUpperCase(e) { + return e.toUpperCase(); + }, + StringPrototypeTrim(e) { + return e.trim(); + }, + Symbol, + SymbolFor: Symbol.for, + SymbolAsyncIterator: Symbol.asyncIterator, + SymbolHasInstance: Symbol.hasInstance, + SymbolIterator: Symbol.iterator, + TypedArrayPrototypeSet(e, t, r) { + return e.set(t, r); + }, + Uint8Array, + }; +}); +var _e = _((WO, Bi) => { + 'use strict'; + var Bw = require('buffer'), + Fw = Object.getPrototypeOf(async function () {}).constructor, + Wf = globalThis.Blob || Bw.Blob, + $w = + typeof Wf < 'u' + ? function (t) { + return t instanceof Wf; + } + : function (t) { + return !1; + }, + ji = class extends Error { + constructor(t) { + if (!Array.isArray(t)) throw new TypeError(`Expected input to be an Array, got ${typeof t}`); + let r = ''; + for (let n = 0; n < t.length; n++) + r += ` ${t[n].stack} +`; + super(r), (this.name = 'AggregateError'), (this.errors = t); + } + }; + Bi.exports = { + AggregateError: ji, + kEmptyObject: Object.freeze({}), + once(e) { + let t = !1; + return function (...r) { + t || ((t = !0), e.apply(this, r)); + }; + }, + createDeferredPromise: function () { + let e, t; + return { + promise: new Promise((n, i) => { + (e = n), (t = i); + }), + resolve: e, + reject: t, + }; + }, + promisify(e) { + return new Promise((t, r) => { + e((n, ...i) => (n ? r(n) : t(...i))); + }); + }, + debuglog() { + return function () {}; + }, + format(e, ...t) { + return e.replace(/%([sdifj])/g, function (...[r, n]) { + let i = t.shift(); + return n === 'f' + ? i.toFixed(6) + : n === 'j' + ? JSON.stringify(i) + : n === 's' && typeof i == 'object' + ? `${i.constructor !== Object ? i.constructor.name : ''} {}`.trim() + : i.toString(); + }); + }, + inspect(e) { + switch (typeof e) { + case 'string': + if (e.includes("'")) + if (e.includes('"')) { + if (!e.includes('`') && !e.includes('${')) return `\`${e}\``; + } else return `"${e}"`; + return `'${e}'`; + case 'number': + return isNaN(e) ? 'NaN' : Object.is(e, -0) ? String(e) : e; + case 'bigint': + return `${String(e)}n`; + case 'boolean': + case 'undefined': + return String(e); + case 'object': + return '{}'; + } + }, + types: { + isAsyncFunction(e) { + return e instanceof Fw; + }, + isArrayBufferView(e) { + return ArrayBuffer.isView(e); + }, + }, + isBlob: $w, + }; + Bi.exports.promisify.custom = Symbol.for('nodejs.util.promisify.custom'); +}); +var Z = _((kO, Bf) => { + 'use strict'; + var { format: Uw, inspect: Br, AggregateError: Gw } = _e(), + Hw = globalThis.AggregateError || Gw, + Vw = Symbol('kIsNodeError'), + Kw = ['string', 'function', 'number', 'object', 'Function', 'Object', 'boolean', 'bigint', 'symbol'], + Yw = /^([A-Z][a-z0-9]*)+$/, + zw = '__node_internal_', + Fr = {}; + function et(e, t) { + if (!e) throw new Fr.ERR_INTERNAL_ASSERTION(t); + } + function kf(e) { + let t = '', + r = e.length, + n = e[0] === '-' ? 1 : 0; + for (; r >= n + 4; r -= 3) t = `_${e.slice(r - 3, r)}${t}`; + return `${e.slice(0, r)}${t}`; + } + function Jw(e, t, r) { + if (typeof t == 'function') + return ( + et( + t.length <= r.length, + `Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${t.length}).` + ), + t(...r) + ); + let n = (t.match(/%[dfijoOs]/g) || []).length; + return ( + et( + n === r.length, + `Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${n}).` + ), + r.length === 0 ? t : Uw(t, ...r) + ); + } + function Y(e, t, r) { + r || (r = Error); + class n extends r { + constructor(...o) { + super(Jw(e, t, o)); + } + toString() { + return `${this.name} [${e}]: ${this.message}`; + } + } + Object.defineProperties(n.prototype, { + name: { value: r.name, writable: !0, enumerable: !1, configurable: !0 }, + toString: { + value() { + return `${this.name} [${e}]: ${this.message}`; + }, + writable: !0, + enumerable: !1, + configurable: !0, + }, + }), + (n.prototype.code = e), + (n.prototype[Vw] = !0), + (Fr[e] = n); + } + function jf(e) { + let t = zw + e.name; + return Object.defineProperty(e, 'name', { value: t }), e; + } + function Xw(e, t) { + if (e && t && e !== t) { + if (Array.isArray(t.errors)) return t.errors.push(e), t; + let r = new Hw([t, e], t.message); + return (r.code = t.code), r; + } + return e || t; + } + var Fi = class extends Error { + constructor(t = 'The operation was aborted', r = void 0) { + if (r !== void 0 && typeof r != 'object') throw new Fr.ERR_INVALID_ARG_TYPE('options', 'Object', r); + super(t, r), (this.code = 'ABORT_ERR'), (this.name = 'AbortError'); + } + }; + Y('ERR_ASSERTION', '%s', Error); + Y( + 'ERR_INVALID_ARG_TYPE', + (e, t, r) => { + et(typeof e == 'string', "'name' must be a string"), Array.isArray(t) || (t = [t]); + let n = 'The '; + e.endsWith(' argument') ? (n += `${e} `) : (n += `"${e}" ${e.includes('.') ? 'property' : 'argument'} `), + (n += 'must be '); + let i = [], + o = [], + l = []; + for (let f of t) + et(typeof f == 'string', 'All expected entries have to be of type string'), + Kw.includes(f) + ? i.push(f.toLowerCase()) + : Yw.test(f) + ? o.push(f) + : (et(f !== 'object', 'The value "object" should be written as "Object"'), l.push(f)); + if (o.length > 0) { + let f = i.indexOf('object'); + f !== -1 && (i.splice(i, f, 1), o.push('Object')); + } + if (i.length > 0) { + switch (i.length) { + case 1: + n += `of type ${i[0]}`; + break; + case 2: + n += `one of type ${i[0]} or ${i[1]}`; + break; + default: { + let f = i.pop(); + n += `one of type ${i.join(', ')}, or ${f}`; + } + } + (o.length > 0 || l.length > 0) && (n += ' or '); + } + if (o.length > 0) { + switch (o.length) { + case 1: + n += `an instance of ${o[0]}`; + break; + case 2: + n += `an instance of ${o[0]} or ${o[1]}`; + break; + default: { + let f = o.pop(); + n += `an instance of ${o.join(', ')}, or ${f}`; + } + } + l.length > 0 && (n += ' or '); + } + switch (l.length) { + case 0: + break; + case 1: + l[0].toLowerCase() !== l[0] && (n += 'an '), (n += `${l[0]}`); + break; + case 2: + n += `one of ${l[0]} or ${l[1]}`; + break; + default: { + let f = l.pop(); + n += `one of ${l.join(', ')}, or ${f}`; + } + } + if (r == null) n += `. Received ${r}`; + else if (typeof r == 'function' && r.name) n += `. Received function ${r.name}`; + else if (typeof r == 'object') { + var s; + if ((s = r.constructor) !== null && s !== void 0 && s.name) + n += `. Received an instance of ${r.constructor.name}`; + else { + let f = Br(r, { depth: -1 }); + n += `. Received ${f}`; + } + } else { + let f = Br(r, { colors: !1 }); + f.length > 25 && (f = `${f.slice(0, 25)}...`), (n += `. Received type ${typeof r} (${f})`); + } + return n; + }, + TypeError + ); + Y( + 'ERR_INVALID_ARG_VALUE', + (e, t, r = 'is invalid') => { + let n = Br(t); + return ( + n.length > 128 && (n = n.slice(0, 128) + '...'), + `The ${e.includes('.') ? 'property' : 'argument'} '${e}' ${r}. Received ${n}` + ); + }, + TypeError + ); + Y( + 'ERR_INVALID_RETURN_VALUE', + (e, t, r) => { + var n; + let i = + r != null && (n = r.constructor) !== null && n !== void 0 && n.name + ? `instance of ${r.constructor.name}` + : `type ${typeof r}`; + return `Expected ${e} to be returned from the "${t}" function but got ${i}.`; + }, + TypeError + ); + Y( + 'ERR_MISSING_ARGS', + (...e) => { + et(e.length > 0, 'At least one arg needs to be specified'); + let t, + r = e.length; + switch (((e = (Array.isArray(e) ? e : [e]).map((n) => `"${n}"`).join(' or ')), r)) { + case 1: + t += `The ${e[0]} argument`; + break; + case 2: + t += `The ${e[0]} and ${e[1]} arguments`; + break; + default: + { + let n = e.pop(); + t += `The ${e.join(', ')}, and ${n} arguments`; + } + break; + } + return `${t} must be specified`; + }, + TypeError + ); + Y( + 'ERR_OUT_OF_RANGE', + (e, t, r) => { + et(t, 'Missing "range" argument'); + let n; + return ( + Number.isInteger(r) && Math.abs(r) > 2 ** 32 + ? (n = kf(String(r))) + : typeof r == 'bigint' + ? ((n = String(r)), (r > 2n ** 32n || r < -(2n ** 32n)) && (n = kf(n)), (n += 'n')) + : (n = Br(r)), + `The value of "${e}" is out of range. It must be ${t}. Received ${n}` + ); + }, + RangeError + ); + Y('ERR_MULTIPLE_CALLBACK', 'Callback called multiple times', Error); + Y('ERR_METHOD_NOT_IMPLEMENTED', 'The %s method is not implemented', Error); + Y('ERR_STREAM_ALREADY_FINISHED', 'Cannot call %s after a stream was finished', Error); + Y('ERR_STREAM_CANNOT_PIPE', 'Cannot pipe, not readable', Error); + Y('ERR_STREAM_DESTROYED', 'Cannot call %s after a stream was destroyed', Error); + Y('ERR_STREAM_NULL_VALUES', 'May not write null values to stream', TypeError); + Y('ERR_STREAM_PREMATURE_CLOSE', 'Premature close', Error); + Y('ERR_STREAM_PUSH_AFTER_EOF', 'stream.push() after EOF', Error); + Y('ERR_STREAM_UNSHIFT_AFTER_END_EVENT', 'stream.unshift() after end event', Error); + Y('ERR_STREAM_WRITE_AFTER_END', 'write after end', Error); + Y('ERR_UNKNOWN_ENCODING', 'Unknown encoding: %s', TypeError); + Bf.exports = { AbortError: Fi, aggregateTwoErrors: jf(Xw), hideStackFrames: jf, codes: Fr }; +}); +var zt = _((jO, zf) => { + 'use strict'; + var { + ArrayIsArray: Ui, + ArrayPrototypeIncludes: Gf, + ArrayPrototypeJoin: Hf, + ArrayPrototypeMap: Zw, + NumberIsInteger: Gi, + NumberIsNaN: Qw, + NumberMAX_SAFE_INTEGER: eS, + NumberMIN_SAFE_INTEGER: tS, + NumberParseInt: rS, + ObjectPrototypeHasOwnProperty: nS, + RegExpPrototypeExec: Vf, + String: iS, + StringPrototypeToUpperCase: oS, + StringPrototypeTrim: lS, + } = G(), + { + hideStackFrames: ie, + codes: { + ERR_SOCKET_BAD_PORT: sS, + ERR_INVALID_ARG_TYPE: Q, + ERR_INVALID_ARG_VALUE: Et, + ERR_OUT_OF_RANGE: tt, + ERR_UNKNOWN_SIGNAL: Ff, + }, + } = Z(), + { normalizeEncoding: uS } = _e(), + { isAsyncFunction: fS, isArrayBufferView: aS } = _e().types, + $f = {}; + function cS(e) { + return e === (e | 0); + } + function dS(e) { + return e === e >>> 0; + } + var hS = /^[0-7]+$/, + bS = 'must be a 32-bit unsigned integer or an octal string'; + function pS(e, t, r) { + if ((typeof e > 'u' && (e = r), typeof e == 'string')) { + if (Vf(hS, e) === null) throw new Et(t, e, bS); + e = rS(e, 8); + } + return Kf(e, t), e; + } + var yS = ie((e, t, r = tS, n = eS) => { + if (typeof e != 'number') throw new Q(t, 'number', e); + if (!Gi(e)) throw new tt(t, 'an integer', e); + if (e < r || e > n) throw new tt(t, `>= ${r} && <= ${n}`, e); + }), + gS = ie((e, t, r = -2147483648, n = 2147483647) => { + if (typeof e != 'number') throw new Q(t, 'number', e); + if (!Gi(e)) throw new tt(t, 'an integer', e); + if (e < r || e > n) throw new tt(t, `>= ${r} && <= ${n}`, e); + }), + Kf = ie((e, t, r = !1) => { + if (typeof e != 'number') throw new Q(t, 'number', e); + if (!Gi(e)) throw new tt(t, 'an integer', e); + let n = r ? 1 : 0, + i = 4294967295; + if (e < n || e > i) throw new tt(t, `>= ${n} && <= ${i}`, e); + }); + function Hi(e, t) { + if (typeof e != 'string') throw new Q(t, 'string', e); + } + function _S(e, t, r = void 0, n) { + if (typeof e != 'number') throw new Q(t, 'number', e); + if ((r != null && e < r) || (n != null && e > n) || ((r != null || n != null) && Qw(e))) + throw new tt( + t, + `${r != null ? `>= ${r}` : ''}${r != null && n != null ? ' && ' : ''}${n != null ? `<= ${n}` : ''}`, + e + ); + } + var wS = ie((e, t, r) => { + if (!Gf(r, e)) { + let i = + 'must be one of: ' + + Hf( + Zw(r, (o) => (typeof o == 'string' ? `'${o}'` : iS(o))), + ', ' + ); + throw new Et(t, e, i); + } + }); + function Yf(e, t) { + if (typeof e != 'boolean') throw new Q(t, 'boolean', e); + } + function $i(e, t, r) { + return e == null || !nS(e, t) ? r : e[t]; + } + var SS = ie((e, t, r = null) => { + let n = $i(r, 'allowArray', !1), + i = $i(r, 'allowFunction', !1); + if ( + (!$i(r, 'nullable', !1) && e === null) || + (!n && Ui(e)) || + (typeof e != 'object' && (!i || typeof e != 'function')) + ) + throw new Q(t, 'Object', e); + }), + ES = ie((e, t) => { + if (e != null && typeof e != 'object' && typeof e != 'function') throw new Q(t, 'a dictionary', e); + }), + Vi = ie((e, t, r = 0) => { + if (!Ui(e)) throw new Q(t, 'Array', e); + if (e.length < r) { + let n = `must be longer than ${r}`; + throw new Et(t, e, n); + } + }); + function mS(e, t) { + Vi(e, t); + for (let r = 0; r < e.length; r++) Hi(e[r], `${t}[${r}]`); + } + function RS(e, t) { + Vi(e, t); + for (let r = 0; r < e.length; r++) Yf(e[r], `${t}[${r}]`); + } + function AS(e, t = 'signal') { + if ((Hi(e, t), $f[e] === void 0)) + throw $f[oS(e)] !== void 0 ? new Ff(e + ' (signals must use all capital letters)') : new Ff(e); + } + var TS = ie((e, t = 'buffer') => { + if (!aS(e)) throw new Q(t, ['Buffer', 'TypedArray', 'DataView'], e); + }); + function OS(e, t) { + let r = uS(t), + n = e.length; + if (r === 'hex' && n % 2 !== 0) throw new Et('encoding', t, `is invalid for data of length ${n}`); + } + function LS(e, t = 'Port', r = !0) { + if ( + (typeof e != 'number' && typeof e != 'string') || + (typeof e == 'string' && lS(e).length === 0) || + +e !== +e >>> 0 || + e > 65535 || + (e === 0 && !r) + ) + throw new sS(t, e, r); + return e | 0; + } + var xS = ie((e, t) => { + if (e !== void 0 && (e === null || typeof e != 'object' || !('aborted' in e))) throw new Q(t, 'AbortSignal', e); + }), + MS = ie((e, t) => { + if (typeof e != 'function') throw new Q(t, 'Function', e); + }), + vS = ie((e, t) => { + if (typeof e != 'function' || fS(e)) throw new Q(t, 'Function', e); + }), + IS = ie((e, t) => { + if (e !== void 0) throw new Q(t, 'undefined', e); + }); + function DS(e, t, r) { + if (!Gf(r, e)) throw new Q(t, `('${Hf(r, '|')}')`, e); + } + var NS = /^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/; + function Uf(e, t) { + if (typeof e > 'u' || !Vf(NS, e)) + throw new Et(t, e, 'must be an array or string of format "; rel=preload; as=style"'); + } + function PS(e) { + if (typeof e == 'string') return Uf(e, 'hints'), e; + if (Ui(e)) { + let t = e.length, + r = ''; + if (t === 0) return r; + for (let n = 0; n < t; n++) { + let i = e[n]; + Uf(i, 'hints'), (r += i), n !== t - 1 && (r += ', '); + } + return r; + } + throw new Et('hints', e, 'must be an array or string of format "; rel=preload; as=style"'); + } + zf.exports = { + isInt32: cS, + isUint32: dS, + parseFileMode: pS, + validateArray: Vi, + validateStringArray: mS, + validateBooleanArray: RS, + validateBoolean: Yf, + validateBuffer: TS, + validateDictionary: ES, + validateEncoding: OS, + validateFunction: MS, + validateInt32: gS, + validateInteger: yS, + validateNumber: _S, + validateObject: SS, + validateOneOf: wS, + validatePlainFunction: vS, + validatePort: LS, + validateSignalName: AS, + validateString: Hi, + validateUint32: Kf, + validateUndefined: IS, + validateUnion: DS, + validateAbortSignal: xS, + validateLinkHeaderValue: PS, + }; +}); +var Se = _((BO, ca) => { + 'use strict'; + var { Symbol: $r, SymbolAsyncIterator: Jf, SymbolIterator: Xf, SymbolFor: Zf } = G(), + Qf = $r('kDestroyed'), + ea = $r('kIsErrored'), + Ki = $r('kIsReadable'), + ta = $r('kIsDisturbed'), + qS = Zf('nodejs.webstream.isClosedPromise'), + CS = Zf('nodejs.webstream.controllerErrorFunction'); + function Ur(e, t = !1) { + var r; + return !!( + e && + typeof e.pipe == 'function' && + typeof e.on == 'function' && + (!t || (typeof e.pause == 'function' && typeof e.resume == 'function')) && + (!e._writableState || ((r = e._readableState) === null || r === void 0 ? void 0 : r.readable) !== !1) && + (!e._writableState || e._readableState) + ); + } + function Gr(e) { + var t; + return !!( + e && + typeof e.write == 'function' && + typeof e.on == 'function' && + (!e._readableState || ((t = e._writableState) === null || t === void 0 ? void 0 : t.writable) !== !1) + ); + } + function WS(e) { + return !!( + e && + typeof e.pipe == 'function' && + e._readableState && + typeof e.on == 'function' && + typeof e.write == 'function' + ); + } + function we(e) { + return ( + e && + (e._readableState || + e._writableState || + (typeof e.write == 'function' && typeof e.on == 'function') || + (typeof e.pipe == 'function' && typeof e.on == 'function')) + ); + } + function ra(e) { + return !!( + e && + !we(e) && + typeof e.pipeThrough == 'function' && + typeof e.getReader == 'function' && + typeof e.cancel == 'function' + ); + } + function na(e) { + return !!(e && !we(e) && typeof e.getWriter == 'function' && typeof e.abort == 'function'); + } + function ia(e) { + return !!(e && !we(e) && typeof e.readable == 'object' && typeof e.writable == 'object'); + } + function kS(e) { + return ra(e) || na(e) || ia(e); + } + function jS(e, t) { + return e == null + ? !1 + : t === !0 + ? typeof e[Jf] == 'function' + : t === !1 + ? typeof e[Xf] == 'function' + : typeof e[Jf] == 'function' || typeof e[Xf] == 'function'; + } + function Hr(e) { + if (!we(e)) return null; + let t = e._writableState, + r = e._readableState, + n = t || r; + return !!(e.destroyed || e[Qf] || (n != null && n.destroyed)); + } + function oa(e) { + if (!Gr(e)) return null; + if (e.writableEnded === !0) return !0; + let t = e._writableState; + return t != null && t.errored ? !1 : typeof t?.ended != 'boolean' ? null : t.ended; + } + function BS(e, t) { + if (!Gr(e)) return null; + if (e.writableFinished === !0) return !0; + let r = e._writableState; + return r != null && r.errored + ? !1 + : typeof r?.finished != 'boolean' + ? null + : !!(r.finished || (t === !1 && r.ended === !0 && r.length === 0)); + } + function FS(e) { + if (!Ur(e)) return null; + if (e.readableEnded === !0) return !0; + let t = e._readableState; + return !t || t.errored ? !1 : typeof t?.ended != 'boolean' ? null : t.ended; + } + function la(e, t) { + if (!Ur(e)) return null; + let r = e._readableState; + return r != null && r.errored + ? !1 + : typeof r?.endEmitted != 'boolean' + ? null + : !!(r.endEmitted || (t === !1 && r.ended === !0 && r.length === 0)); + } + function sa(e) { + return e && e[Ki] != null + ? e[Ki] + : typeof e?.readable != 'boolean' + ? null + : Hr(e) + ? !1 + : Ur(e) && e.readable && !la(e); + } + function ua(e) { + return typeof e?.writable != 'boolean' ? null : Hr(e) ? !1 : Gr(e) && e.writable && !oa(e); + } + function $S(e, t) { + return we(e) ? (Hr(e) ? !0 : !((t?.readable !== !1 && sa(e)) || (t?.writable !== !1 && ua(e)))) : null; + } + function US(e) { + var t, r; + return we(e) + ? e.writableErrored + ? e.writableErrored + : (t = (r = e._writableState) === null || r === void 0 ? void 0 : r.errored) !== null && t !== void 0 + ? t + : null + : null; + } + function GS(e) { + var t, r; + return we(e) + ? e.readableErrored + ? e.readableErrored + : (t = (r = e._readableState) === null || r === void 0 ? void 0 : r.errored) !== null && t !== void 0 + ? t + : null + : null; + } + function HS(e) { + if (!we(e)) return null; + if (typeof e.closed == 'boolean') return e.closed; + let t = e._writableState, + r = e._readableState; + return typeof t?.closed == 'boolean' || typeof r?.closed == 'boolean' + ? t?.closed || r?.closed + : typeof e._closed == 'boolean' && fa(e) + ? e._closed + : null; + } + function fa(e) { + return ( + typeof e._closed == 'boolean' && + typeof e._defaultKeepAlive == 'boolean' && + typeof e._removedConnection == 'boolean' && + typeof e._removedContLen == 'boolean' + ); + } + function aa(e) { + return typeof e._sent100 == 'boolean' && fa(e); + } + function VS(e) { + var t; + return ( + typeof e._consuming == 'boolean' && + typeof e._dumped == 'boolean' && + ((t = e.req) === null || t === void 0 ? void 0 : t.upgradeOrConnect) === void 0 + ); + } + function KS(e) { + if (!we(e)) return null; + let t = e._writableState, + r = e._readableState, + n = t || r; + return (!n && aa(e)) || !!(n && n.autoDestroy && n.emitClose && n.closed === !1); + } + function YS(e) { + var t; + return !!(e && ((t = e[ta]) !== null && t !== void 0 ? t : e.readableDidRead || e.readableAborted)); + } + function zS(e) { + var t, r, n, i, o, l, s, f, u, c; + return !!( + e && + ((t = + (r = + (n = + (i = + (o = (l = e[ea]) !== null && l !== void 0 ? l : e.readableErrored) !== null && o !== void 0 + ? o + : e.writableErrored) !== null && i !== void 0 + ? i + : (s = e._readableState) === null || s === void 0 + ? void 0 + : s.errorEmitted) !== null && n !== void 0 + ? n + : (f = e._writableState) === null || f === void 0 + ? void 0 + : f.errorEmitted) !== null && r !== void 0 + ? r + : (u = e._readableState) === null || u === void 0 + ? void 0 + : u.errored) !== null && t !== void 0 + ? t + : !((c = e._writableState) === null || c === void 0) && c.errored) + ); + } + ca.exports = { + kDestroyed: Qf, + isDisturbed: YS, + kIsDisturbed: ta, + isErrored: zS, + kIsErrored: ea, + isReadable: sa, + kIsReadable: Ki, + kIsClosedPromise: qS, + kControllerErrorFunction: CS, + isClosed: HS, + isDestroyed: Hr, + isDuplexNodeStream: WS, + isFinished: $S, + isIterable: jS, + isReadableNodeStream: Ur, + isReadableStream: ra, + isReadableEnded: FS, + isReadableFinished: la, + isReadableErrored: GS, + isNodeStream: we, + isWebStream: kS, + isWritable: ua, + isWritableNodeStream: Gr, + isWritableStream: na, + isWritableEnded: oa, + isWritableFinished: BS, + isWritableErrored: US, + isServerRequest: VS, + isServerResponse: aa, + willEmitClose: KS, + isTransformStream: ia, + }; +}); +var xe = _((FO, Zi) => { + var Be = X(), + { AbortError: Sa, codes: JS } = Z(), + { ERR_INVALID_ARG_TYPE: XS, ERR_STREAM_PREMATURE_CLOSE: da } = JS, + { kEmptyObject: zi, once: Ji } = _e(), + { validateAbortSignal: ZS, validateFunction: QS, validateObject: eE, validateBoolean: tE } = zt(), + { Promise: rE, PromisePrototypeThen: nE } = G(), + { + isClosed: iE, + isReadable: ha, + isReadableNodeStream: Yi, + isReadableStream: oE, + isReadableFinished: ba, + isReadableErrored: pa, + isWritable: ya, + isWritableNodeStream: ga, + isWritableStream: lE, + isWritableFinished: _a, + isWritableErrored: wa, + isNodeStream: sE, + willEmitClose: uE, + kIsClosedPromise: fE, + } = Se(); + function aE(e) { + return e.setHeader && typeof e.abort == 'function'; + } + var Xi = () => {}; + function Ea(e, t, r) { + var n, i; + if ( + (arguments.length === 2 ? ((r = t), (t = zi)) : t == null ? (t = zi) : eE(t, 'options'), + QS(r, 'callback'), + ZS(t.signal, 'options.signal'), + (r = Ji(r)), + oE(e) || lE(e)) + ) + return cE(e, t, r); + if (!sE(e)) throw new XS('stream', ['ReadableStream', 'WritableStream', 'Stream'], e); + let o = (n = t.readable) !== null && n !== void 0 ? n : Yi(e), + l = (i = t.writable) !== null && i !== void 0 ? i : ga(e), + s = e._writableState, + f = e._readableState, + u = () => { + e.writable || b(); + }, + c = uE(e) && Yi(e) === o && ga(e) === l, + a = _a(e, !1), + b = () => { + (a = !0), e.destroyed && (c = !1), !(c && (!e.readable || o)) && (!o || h) && r.call(e); + }, + h = ba(e, !1), + d = () => { + (h = !0), e.destroyed && (c = !1), !(c && (!e.writable || l)) && (!l || a) && r.call(e); + }, + S = (m) => { + r.call(e, m); + }, + y = iE(e), + w = () => { + y = !0; + let m = wa(e) || pa(e); + if (m && typeof m != 'boolean') return r.call(e, m); + if (o && !h && Yi(e, !0) && !ba(e, !1)) return r.call(e, new da()); + if (l && !a && !_a(e, !1)) return r.call(e, new da()); + r.call(e); + }, + g = () => { + y = !0; + let m = wa(e) || pa(e); + if (m && typeof m != 'boolean') return r.call(e, m); + r.call(e); + }, + p = () => { + e.req.on('finish', b); + }; + aE(e) + ? (e.on('complete', b), c || e.on('abort', w), e.req ? p() : e.on('request', p)) + : l && !s && (e.on('end', u), e.on('close', u)), + !c && typeof e.aborted == 'boolean' && e.on('aborted', w), + e.on('end', d), + e.on('finish', b), + t.error !== !1 && e.on('error', S), + e.on('close', w), + y + ? Be.nextTick(w) + : (s != null && s.errorEmitted) || (f != null && f.errorEmitted) + ? c || Be.nextTick(g) + : ((!o && (!c || ha(e)) && (a || ya(e) === !1)) || + (!l && (!c || ya(e)) && (h || ha(e) === !1)) || + (f && e.req && e.aborted)) && + Be.nextTick(g); + let A = () => { + (r = Xi), + e.removeListener('aborted', w), + e.removeListener('complete', b), + e.removeListener('abort', w), + e.removeListener('request', p), + e.req && e.req.removeListener('finish', b), + e.removeListener('end', u), + e.removeListener('close', u), + e.removeListener('finish', b), + e.removeListener('end', d), + e.removeListener('error', S), + e.removeListener('close', w); + }; + if (t.signal && !y) { + let m = () => { + let v = r; + A(), v.call(e, new Sa(void 0, { cause: t.signal.reason })); + }; + if (t.signal.aborted) Be.nextTick(m); + else { + let v = r; + (r = Ji((...j) => { + t.signal.removeEventListener('abort', m), v.apply(e, j); + })), + t.signal.addEventListener('abort', m); + } + } + return A; + } + function cE(e, t, r) { + let n = !1, + i = Xi; + if (t.signal) + if ( + ((i = () => { + (n = !0), r.call(e, new Sa(void 0, { cause: t.signal.reason })); + }), + t.signal.aborted) + ) + Be.nextTick(i); + else { + let l = r; + (r = Ji((...s) => { + t.signal.removeEventListener('abort', i), l.apply(e, s); + })), + t.signal.addEventListener('abort', i); + } + let o = (...l) => { + n || Be.nextTick(() => r.apply(e, l)); + }; + return nE(e[fE].promise, o, o), Xi; + } + function dE(e, t) { + var r; + let n = !1; + return ( + t === null && (t = zi), + (r = t) !== null && r !== void 0 && r.cleanup && (tE(t.cleanup, 'cleanup'), (n = t.cleanup)), + new rE((i, o) => { + let l = Ea(e, t, (s) => { + n && l(), s ? o(s) : i(); + }); + }) + ); + } + Zi.exports = Ea; + Zi.exports.finished = dE; +}); +var rt = _(($O, Ma) => { + 'use strict'; + var Ee = X(), + { + aggregateTwoErrors: hE, + codes: { ERR_MULTIPLE_CALLBACK: bE }, + AbortError: pE, + } = Z(), + { Symbol: Aa } = G(), + { kDestroyed: yE, isDestroyed: gE, isFinished: _E, isServerRequest: wE } = Se(), + Ta = Aa('kDestroy'), + Qi = Aa('kConstruct'); + function Oa(e, t, r) { + e && (e.stack, t && !t.errored && (t.errored = e), r && !r.errored && (r.errored = e)); + } + function SE(e, t) { + let r = this._readableState, + n = this._writableState, + i = n || r; + return (n != null && n.destroyed) || (r != null && r.destroyed) + ? (typeof t == 'function' && t(), this) + : (Oa(e, n, r), + n && (n.destroyed = !0), + r && (r.destroyed = !0), + i.constructed + ? ma(this, e, t) + : this.once(Ta, function (o) { + ma(this, hE(o, e), t); + }), + this); + } + function ma(e, t, r) { + let n = !1; + function i(o) { + if (n) return; + n = !0; + let l = e._readableState, + s = e._writableState; + Oa(o, s, l), + s && (s.closed = !0), + l && (l.closed = !0), + typeof r == 'function' && r(o), + o ? Ee.nextTick(EE, e, o) : Ee.nextTick(La, e); + } + try { + e._destroy(t || null, i); + } catch (o) { + i(o); + } + } + function EE(e, t) { + eo(e, t), La(e); + } + function La(e) { + let t = e._readableState, + r = e._writableState; + r && (r.closeEmitted = !0), + t && (t.closeEmitted = !0), + ((r != null && r.emitClose) || (t != null && t.emitClose)) && e.emit('close'); + } + function eo(e, t) { + let r = e._readableState, + n = e._writableState; + (n != null && n.errorEmitted) || + (r != null && r.errorEmitted) || + (n && (n.errorEmitted = !0), r && (r.errorEmitted = !0), e.emit('error', t)); + } + function mE() { + let e = this._readableState, + t = this._writableState; + e && + ((e.constructed = !0), + (e.closed = !1), + (e.closeEmitted = !1), + (e.destroyed = !1), + (e.errored = null), + (e.errorEmitted = !1), + (e.reading = !1), + (e.ended = e.readable === !1), + (e.endEmitted = e.readable === !1)), + t && + ((t.constructed = !0), + (t.destroyed = !1), + (t.closed = !1), + (t.closeEmitted = !1), + (t.errored = null), + (t.errorEmitted = !1), + (t.finalCalled = !1), + (t.prefinished = !1), + (t.ended = t.writable === !1), + (t.ending = t.writable === !1), + (t.finished = t.writable === !1)); + } + function to(e, t, r) { + let n = e._readableState, + i = e._writableState; + if ((i != null && i.destroyed) || (n != null && n.destroyed)) return this; + (n != null && n.autoDestroy) || (i != null && i.autoDestroy) + ? e.destroy(t) + : t && + (t.stack, + i && !i.errored && (i.errored = t), + n && !n.errored && (n.errored = t), + r ? Ee.nextTick(eo, e, t) : eo(e, t)); + } + function RE(e, t) { + if (typeof e._construct != 'function') return; + let r = e._readableState, + n = e._writableState; + r && (r.constructed = !1), + n && (n.constructed = !1), + e.once(Qi, t), + !(e.listenerCount(Qi) > 1) && Ee.nextTick(AE, e); + } + function AE(e) { + let t = !1; + function r(n) { + if (t) { + to(e, n ?? new bE()); + return; + } + t = !0; + let i = e._readableState, + o = e._writableState, + l = o || i; + i && (i.constructed = !0), + o && (o.constructed = !0), + l.destroyed ? e.emit(Ta, n) : n ? to(e, n, !0) : Ee.nextTick(TE, e); + } + try { + e._construct((n) => { + Ee.nextTick(r, n); + }); + } catch (n) { + Ee.nextTick(r, n); + } + } + function TE(e) { + e.emit(Qi); + } + function Ra(e) { + return e?.setHeader && typeof e.abort == 'function'; + } + function xa(e) { + e.emit('close'); + } + function OE(e, t) { + e.emit('error', t), Ee.nextTick(xa, e); + } + function LE(e, t) { + !e || + gE(e) || + (!t && !_E(e) && (t = new pE()), + wE(e) + ? ((e.socket = null), e.destroy(t)) + : Ra(e) + ? e.abort() + : Ra(e.req) + ? e.req.abort() + : typeof e.destroy == 'function' + ? e.destroy(t) + : typeof e.close == 'function' + ? e.close() + : t + ? Ee.nextTick(OE, e, t) + : Ee.nextTick(xa, e), + e.destroyed || (e[yE] = !0)); + } + Ma.exports = { construct: RE, destroyer: LE, destroy: SE, undestroy: mE, errorOrDestroy: to }; +}); +var Yr = _((UO, Ia) => { + 'use strict'; + var { ArrayIsArray: xE, ObjectSetPrototypeOf: va } = G(), + { EventEmitter: Vr } = require('events'); + function Kr(e) { + Vr.call(this, e); + } + va(Kr.prototype, Vr.prototype); + va(Kr, Vr); + Kr.prototype.pipe = function (e, t) { + let r = this; + function n(c) { + e.writable && e.write(c) === !1 && r.pause && r.pause(); + } + r.on('data', n); + function i() { + r.readable && r.resume && r.resume(); + } + e.on('drain', i), !e._isStdio && (!t || t.end !== !1) && (r.on('end', l), r.on('close', s)); + let o = !1; + function l() { + o || ((o = !0), e.end()); + } + function s() { + o || ((o = !0), typeof e.destroy == 'function' && e.destroy()); + } + function f(c) { + u(), Vr.listenerCount(this, 'error') === 0 && this.emit('error', c); + } + ro(r, 'error', f), ro(e, 'error', f); + function u() { + r.removeListener('data', n), + e.removeListener('drain', i), + r.removeListener('end', l), + r.removeListener('close', s), + r.removeListener('error', f), + e.removeListener('error', f), + r.removeListener('end', u), + r.removeListener('close', u), + e.removeListener('close', u); + } + return r.on('end', u), r.on('close', u), e.on('close', u), e.emit('pipe', r), e; + }; + function ro(e, t, r) { + if (typeof e.prependListener == 'function') return e.prependListener(t, r); + !e._events || !e._events[t] + ? e.on(t, r) + : xE(e._events[t]) + ? e._events[t].unshift(r) + : (e._events[t] = [r, e._events[t]]); + } + Ia.exports = { Stream: Kr, prependListener: ro }; +}); +var Jt = _((GO, zr) => { + 'use strict'; + var { AbortError: Da, codes: ME } = Z(), + { isNodeStream: Na, isWebStream: vE, kControllerErrorFunction: IE } = Se(), + DE = xe(), + { ERR_INVALID_ARG_TYPE: Pa } = ME, + NE = (e, t) => { + if (typeof e != 'object' || !('aborted' in e)) throw new Pa(t, 'AbortSignal', e); + }; + zr.exports.addAbortSignal = function (t, r) { + if ((NE(t, 'signal'), !Na(r) && !vE(r))) throw new Pa('stream', ['ReadableStream', 'WritableStream', 'Stream'], r); + return zr.exports.addAbortSignalNoValidate(t, r); + }; + zr.exports.addAbortSignalNoValidate = function (e, t) { + if (typeof e != 'object' || !('aborted' in e)) return t; + let r = Na(t) + ? () => { + t.destroy(new Da(void 0, { cause: e.reason })); + } + : () => { + t[IE](new Da(void 0, { cause: e.reason })); + }; + return e.aborted ? r() : (e.addEventListener('abort', r), DE(t, () => e.removeEventListener('abort', r))), t; + }; +}); +var Wa = _((VO, Ca) => { + 'use strict'; + var { StringPrototypeSlice: qa, SymbolIterator: PE, TypedArrayPrototypeSet: Jr, Uint8Array: qE } = G(), + { Buffer: no } = require('buffer'), + { inspect: CE } = _e(); + Ca.exports = class { + constructor() { + (this.head = null), (this.tail = null), (this.length = 0); + } + push(t) { + let r = { data: t, next: null }; + this.length > 0 ? (this.tail.next = r) : (this.head = r), (this.tail = r), ++this.length; + } + unshift(t) { + let r = { data: t, next: this.head }; + this.length === 0 && (this.tail = r), (this.head = r), ++this.length; + } + shift() { + if (this.length === 0) return; + let t = this.head.data; + return this.length === 1 ? (this.head = this.tail = null) : (this.head = this.head.next), --this.length, t; + } + clear() { + (this.head = this.tail = null), (this.length = 0); + } + join(t) { + if (this.length === 0) return ''; + let r = this.head, + n = '' + r.data; + for (; (r = r.next) !== null; ) n += t + r.data; + return n; + } + concat(t) { + if (this.length === 0) return no.alloc(0); + let r = no.allocUnsafe(t >>> 0), + n = this.head, + i = 0; + for (; n; ) Jr(r, n.data, i), (i += n.data.length), (n = n.next); + return r; + } + consume(t, r) { + let n = this.head.data; + if (t < n.length) { + let i = n.slice(0, t); + return (this.head.data = n.slice(t)), i; + } + return t === n.length ? this.shift() : r ? this._getString(t) : this._getBuffer(t); + } + first() { + return this.head.data; + } + *[PE]() { + for (let t = this.head; t; t = t.next) yield t.data; + } + _getString(t) { + let r = '', + n = this.head, + i = 0; + do { + let o = n.data; + if (t > o.length) (r += o), (t -= o.length); + else { + t === o.length + ? ((r += o), ++i, n.next ? (this.head = n.next) : (this.head = this.tail = null)) + : ((r += qa(o, 0, t)), (this.head = n), (n.data = qa(o, t))); + break; + } + ++i; + } while ((n = n.next) !== null); + return (this.length -= i), r; + } + _getBuffer(t) { + let r = no.allocUnsafe(t), + n = t, + i = this.head, + o = 0; + do { + let l = i.data; + if (t > l.length) Jr(r, l, n - t), (t -= l.length); + else { + t === l.length + ? (Jr(r, l, n - t), ++o, i.next ? (this.head = i.next) : (this.head = this.tail = null)) + : (Jr(r, new qE(l.buffer, l.byteOffset, t), n - t), (this.head = i), (i.data = l.slice(t))); + break; + } + ++o; + } while ((i = i.next) !== null); + return (this.length -= o), r; + } + [Symbol.for('nodejs.util.inspect.custom')](t, r) { + return CE(this, { ...r, depth: 0, customInspect: !1 }); + } + }; +}); +var Xr = _((KO, ja) => { + 'use strict'; + var { MathFloor: WE, NumberIsInteger: kE } = G(), + { ERR_INVALID_ARG_VALUE: jE } = Z().codes; + function BE(e, t, r) { + return e.highWaterMark != null ? e.highWaterMark : t ? e[r] : null; + } + function ka(e) { + return e ? 16 : 16 * 1024; + } + function FE(e, t, r, n) { + let i = BE(t, n, r); + if (i != null) { + if (!kE(i) || i < 0) { + let o = n ? `options.${r}` : 'options.highWaterMark'; + throw new jE(o, i); + } + return WE(i); + } + return ka(e.objectMode); + } + ja.exports = { getHighWaterMark: FE, getDefaultHighWaterMark: ka }; +}); +var io = _((YO, Ua) => { + 'use strict'; + var Ba = X(), + { PromisePrototypeThen: $E, SymbolAsyncIterator: Fa, SymbolIterator: $a } = G(), + { Buffer: UE } = require('buffer'), + { ERR_INVALID_ARG_TYPE: GE, ERR_STREAM_NULL_VALUES: HE } = Z().codes; + function VE(e, t, r) { + let n; + if (typeof t == 'string' || t instanceof UE) + return new e({ + objectMode: !0, + ...r, + read() { + this.push(t), this.push(null); + }, + }); + let i; + if (t && t[Fa]) (i = !0), (n = t[Fa]()); + else if (t && t[$a]) (i = !1), (n = t[$a]()); + else throw new GE('iterable', ['Iterable'], t); + let o = new e({ objectMode: !0, highWaterMark: 1, ...r }), + l = !1; + (o._read = function () { + l || ((l = !0), f()); + }), + (o._destroy = function (u, c) { + $E( + s(u), + () => Ba.nextTick(c, u), + (a) => Ba.nextTick(c, a || u) + ); + }); + async function s(u) { + let c = u != null, + a = typeof n.throw == 'function'; + if (c && a) { + let { value: b, done: h } = await n.throw(u); + if ((await b, h)) return; + } + if (typeof n.return == 'function') { + let { value: b } = await n.return(); + await b; + } + } + async function f() { + for (;;) { + try { + let { value: u, done: c } = i ? await n.next() : n.next(); + if (c) o.push(null); + else { + let a = u && typeof u.then == 'function' ? await u : u; + if (a === null) throw ((l = !1), new HE()); + if (o.push(a)) continue; + l = !1; + } + } catch (u) { + o.destroy(u); + } + break; + } + } + return o; + } + Ua.exports = VE; +}); +var Xt = _((zO, rc) => { + var fe = X(), + { + ArrayPrototypeIndexOf: KE, + NumberIsInteger: YE, + NumberIsNaN: zE, + NumberParseInt: JE, + ObjectDefineProperties: Va, + ObjectKeys: XE, + ObjectSetPrototypeOf: Ka, + Promise: ZE, + SafeSet: QE, + SymbolAsyncIterator: em, + Symbol: tm, + } = G(); + rc.exports = L; + L.ReadableState = ao; + var { EventEmitter: rm } = require('events'), + { Stream: Fe, prependListener: nm } = Yr(), + { Buffer: oo } = require('buffer'), + { addAbortSignal: im } = Jt(), + om = xe(), + N = _e().debuglog('stream', (e) => { + N = e; + }), + lm = Wa(), + Rt = rt(), + { getHighWaterMark: sm, getDefaultHighWaterMark: um } = Xr(), + { + aggregateTwoErrors: Ga, + codes: { + ERR_INVALID_ARG_TYPE: fm, + ERR_METHOD_NOT_IMPLEMENTED: am, + ERR_OUT_OF_RANGE: cm, + ERR_STREAM_PUSH_AFTER_EOF: dm, + ERR_STREAM_UNSHIFT_AFTER_END_EVENT: hm, + }, + } = Z(), + { validateObject: bm } = zt(), + nt = tm('kPaused'), + { StringDecoder: Ya } = require('string_decoder'), + pm = io(); + Ka(L.prototype, Fe.prototype); + Ka(L, Fe); + var lo = () => {}, + { errorOrDestroy: mt } = Rt; + function ao(e, t, r) { + typeof r != 'boolean' && (r = t instanceof me()), + (this.objectMode = !!(e && e.objectMode)), + r && (this.objectMode = this.objectMode || !!(e && e.readableObjectMode)), + (this.highWaterMark = e ? sm(this, e, 'readableHighWaterMark', r) : um(!1)), + (this.buffer = new lm()), + (this.length = 0), + (this.pipes = []), + (this.flowing = null), + (this.ended = !1), + (this.endEmitted = !1), + (this.reading = !1), + (this.constructed = !0), + (this.sync = !0), + (this.needReadable = !1), + (this.emittedReadable = !1), + (this.readableListening = !1), + (this.resumeScheduled = !1), + (this[nt] = null), + (this.errorEmitted = !1), + (this.emitClose = !e || e.emitClose !== !1), + (this.autoDestroy = !e || e.autoDestroy !== !1), + (this.destroyed = !1), + (this.errored = null), + (this.closed = !1), + (this.closeEmitted = !1), + (this.defaultEncoding = (e && e.defaultEncoding) || 'utf8'), + (this.awaitDrainWriters = null), + (this.multiAwaitDrain = !1), + (this.readingMore = !1), + (this.dataEmitted = !1), + (this.decoder = null), + (this.encoding = null), + e && e.encoding && ((this.decoder = new Ya(e.encoding)), (this.encoding = e.encoding)); + } + function L(e) { + if (!(this instanceof L)) return new L(e); + let t = this instanceof me(); + (this._readableState = new ao(e, this, t)), + e && + (typeof e.read == 'function' && (this._read = e.read), + typeof e.destroy == 'function' && (this._destroy = e.destroy), + typeof e.construct == 'function' && (this._construct = e.construct), + e.signal && !t && im(e.signal, this)), + Fe.call(this, e), + Rt.construct(this, () => { + this._readableState.needReadable && Zr(this, this._readableState); + }); + } + L.prototype.destroy = Rt.destroy; + L.prototype._undestroy = Rt.undestroy; + L.prototype._destroy = function (e, t) { + t(e); + }; + L.prototype[rm.captureRejectionSymbol] = function (e) { + this.destroy(e); + }; + L.prototype.push = function (e, t) { + return za(this, e, t, !1); + }; + L.prototype.unshift = function (e, t) { + return za(this, e, t, !0); + }; + function za(e, t, r, n) { + N('readableAddChunk', t); + let i = e._readableState, + o; + if ( + (i.objectMode || + (typeof t == 'string' + ? ((r = r || i.defaultEncoding), + i.encoding !== r && + (n && i.encoding ? (t = oo.from(t, r).toString(i.encoding)) : ((t = oo.from(t, r)), (r = '')))) + : t instanceof oo + ? (r = '') + : Fe._isUint8Array(t) + ? ((t = Fe._uint8ArrayToBuffer(t)), (r = '')) + : t != null && (o = new fm('chunk', ['string', 'Buffer', 'Uint8Array'], t))), + o) + ) + mt(e, o); + else if (t === null) (i.reading = !1), _m(e, i); + else if (i.objectMode || (t && t.length > 0)) + if (n) + if (i.endEmitted) mt(e, new hm()); + else { + if (i.destroyed || i.errored) return !1; + so(e, i, t, !0); + } + else if (i.ended) mt(e, new dm()); + else { + if (i.destroyed || i.errored) return !1; + (i.reading = !1), + i.decoder && !r + ? ((t = i.decoder.write(t)), i.objectMode || t.length !== 0 ? so(e, i, t, !1) : Zr(e, i)) + : so(e, i, t, !1); + } + else n || ((i.reading = !1), Zr(e, i)); + return !i.ended && (i.length < i.highWaterMark || i.length === 0); + } + function so(e, t, r, n) { + t.flowing && t.length === 0 && !t.sync && e.listenerCount('data') > 0 + ? (t.multiAwaitDrain ? t.awaitDrainWriters.clear() : (t.awaitDrainWriters = null), + (t.dataEmitted = !0), + e.emit('data', r)) + : ((t.length += t.objectMode ? 1 : r.length), + n ? t.buffer.unshift(r) : t.buffer.push(r), + t.needReadable && Qr(e)), + Zr(e, t); + } + L.prototype.isPaused = function () { + let e = this._readableState; + return e[nt] === !0 || e.flowing === !1; + }; + L.prototype.setEncoding = function (e) { + let t = new Ya(e); + (this._readableState.decoder = t), (this._readableState.encoding = this._readableState.decoder.encoding); + let r = this._readableState.buffer, + n = ''; + for (let i of r) n += t.write(i); + return r.clear(), n !== '' && r.push(n), (this._readableState.length = n.length), this; + }; + var ym = 1073741824; + function gm(e) { + if (e > ym) throw new cm('size', '<= 1GiB', e); + return e--, (e |= e >>> 1), (e |= e >>> 2), (e |= e >>> 4), (e |= e >>> 8), (e |= e >>> 16), e++, e; + } + function Ha(e, t) { + return e <= 0 || (t.length === 0 && t.ended) + ? 0 + : t.objectMode + ? 1 + : zE(e) + ? t.flowing && t.length + ? t.buffer.first().length + : t.length + : e <= t.length + ? e + : t.ended + ? t.length + : 0; + } + L.prototype.read = function (e) { + N('read', e), e === void 0 ? (e = NaN) : YE(e) || (e = JE(e, 10)); + let t = this._readableState, + r = e; + if ( + (e > t.highWaterMark && (t.highWaterMark = gm(e)), + e !== 0 && (t.emittedReadable = !1), + e === 0 && t.needReadable && ((t.highWaterMark !== 0 ? t.length >= t.highWaterMark : t.length > 0) || t.ended)) + ) + return N('read: emitReadable', t.length, t.ended), t.length === 0 && t.ended ? uo(this) : Qr(this), null; + if (((e = Ha(e, t)), e === 0 && t.ended)) return t.length === 0 && uo(this), null; + let n = t.needReadable; + if ( + (N('need readable', n), + (t.length === 0 || t.length - e < t.highWaterMark) && ((n = !0), N('length less than watermark', n)), + t.ended || t.reading || t.destroyed || t.errored || !t.constructed) + ) + (n = !1), N('reading, ended or constructing', n); + else if (n) { + N('do read'), (t.reading = !0), (t.sync = !0), t.length === 0 && (t.needReadable = !0); + try { + this._read(t.highWaterMark); + } catch (o) { + mt(this, o); + } + (t.sync = !1), t.reading || (e = Ha(r, t)); + } + let i; + return ( + e > 0 ? (i = ec(e, t)) : (i = null), + i === null + ? ((t.needReadable = t.length <= t.highWaterMark), (e = 0)) + : ((t.length -= e), t.multiAwaitDrain ? t.awaitDrainWriters.clear() : (t.awaitDrainWriters = null)), + t.length === 0 && (t.ended || (t.needReadable = !0), r !== e && t.ended && uo(this)), + i !== null && !t.errorEmitted && !t.closeEmitted && ((t.dataEmitted = !0), this.emit('data', i)), + i + ); + }; + function _m(e, t) { + if ((N('onEofChunk'), !t.ended)) { + if (t.decoder) { + let r = t.decoder.end(); + r && r.length && (t.buffer.push(r), (t.length += t.objectMode ? 1 : r.length)); + } + (t.ended = !0), t.sync ? Qr(e) : ((t.needReadable = !1), (t.emittedReadable = !0), Ja(e)); + } + } + function Qr(e) { + let t = e._readableState; + N('emitReadable', t.needReadable, t.emittedReadable), + (t.needReadable = !1), + t.emittedReadable || (N('emitReadable', t.flowing), (t.emittedReadable = !0), fe.nextTick(Ja, e)); + } + function Ja(e) { + let t = e._readableState; + N('emitReadable_', t.destroyed, t.length, t.ended), + !t.destroyed && !t.errored && (t.length || t.ended) && (e.emit('readable'), (t.emittedReadable = !1)), + (t.needReadable = !t.flowing && !t.ended && t.length <= t.highWaterMark), + Za(e); + } + function Zr(e, t) { + !t.readingMore && t.constructed && ((t.readingMore = !0), fe.nextTick(wm, e, t)); + } + function wm(e, t) { + for (; !t.reading && !t.ended && (t.length < t.highWaterMark || (t.flowing && t.length === 0)); ) { + let r = t.length; + if ((N('maybeReadMore read 0'), e.read(0), r === t.length)) break; + } + t.readingMore = !1; + } + L.prototype._read = function (e) { + throw new am('_read()'); + }; + L.prototype.pipe = function (e, t) { + let r = this, + n = this._readableState; + n.pipes.length === 1 && + (n.multiAwaitDrain || + ((n.multiAwaitDrain = !0), (n.awaitDrainWriters = new QE(n.awaitDrainWriters ? [n.awaitDrainWriters] : [])))), + n.pipes.push(e), + N('pipe count=%d opts=%j', n.pipes.length, t); + let o = (!t || t.end !== !1) && e !== fe.stdout && e !== fe.stderr ? s : y; + n.endEmitted ? fe.nextTick(o) : r.once('end', o), e.on('unpipe', l); + function l(w, g) { + N('onunpipe'), w === r && g && g.hasUnpiped === !1 && ((g.hasUnpiped = !0), c()); + } + function s() { + N('onend'), e.end(); + } + let f, + u = !1; + function c() { + N('cleanup'), + e.removeListener('close', d), + e.removeListener('finish', S), + f && e.removeListener('drain', f), + e.removeListener('error', h), + e.removeListener('unpipe', l), + r.removeListener('end', s), + r.removeListener('end', y), + r.removeListener('data', b), + (u = !0), + f && n.awaitDrainWriters && (!e._writableState || e._writableState.needDrain) && f(); + } + function a() { + u || + (n.pipes.length === 1 && n.pipes[0] === e + ? (N('false write response, pause', 0), (n.awaitDrainWriters = e), (n.multiAwaitDrain = !1)) + : n.pipes.length > 1 && + n.pipes.includes(e) && + (N('false write response, pause', n.awaitDrainWriters.size), n.awaitDrainWriters.add(e)), + r.pause()), + f || ((f = Sm(r, e)), e.on('drain', f)); + } + r.on('data', b); + function b(w) { + N('ondata'); + let g = e.write(w); + N('dest.write', g), g === !1 && a(); + } + function h(w) { + if ((N('onerror', w), y(), e.removeListener('error', h), e.listenerCount('error') === 0)) { + let g = e._writableState || e._readableState; + g && !g.errorEmitted ? mt(e, w) : e.emit('error', w); + } + } + nm(e, 'error', h); + function d() { + e.removeListener('finish', S), y(); + } + e.once('close', d); + function S() { + N('onfinish'), e.removeListener('close', d), y(); + } + e.once('finish', S); + function y() { + N('unpipe'), r.unpipe(e); + } + return ( + e.emit('pipe', r), e.writableNeedDrain === !0 ? n.flowing && a() : n.flowing || (N('pipe resume'), r.resume()), e + ); + }; + function Sm(e, t) { + return function () { + let n = e._readableState; + n.awaitDrainWriters === t + ? (N('pipeOnDrain', 1), (n.awaitDrainWriters = null)) + : n.multiAwaitDrain && (N('pipeOnDrain', n.awaitDrainWriters.size), n.awaitDrainWriters.delete(t)), + (!n.awaitDrainWriters || n.awaitDrainWriters.size === 0) && e.listenerCount('data') && e.resume(); + }; + } + L.prototype.unpipe = function (e) { + let t = this._readableState, + r = { hasUnpiped: !1 }; + if (t.pipes.length === 0) return this; + if (!e) { + let i = t.pipes; + (t.pipes = []), this.pause(); + for (let o = 0; o < i.length; o++) i[o].emit('unpipe', this, { hasUnpiped: !1 }); + return this; + } + let n = KE(t.pipes, e); + return n === -1 + ? this + : (t.pipes.splice(n, 1), t.pipes.length === 0 && this.pause(), e.emit('unpipe', this, r), this); + }; + L.prototype.on = function (e, t) { + let r = Fe.prototype.on.call(this, e, t), + n = this._readableState; + return ( + e === 'data' + ? ((n.readableListening = this.listenerCount('readable') > 0), n.flowing !== !1 && this.resume()) + : e === 'readable' && + !n.endEmitted && + !n.readableListening && + ((n.readableListening = n.needReadable = !0), + (n.flowing = !1), + (n.emittedReadable = !1), + N('on readable', n.length, n.reading), + n.length ? Qr(this) : n.reading || fe.nextTick(Em, this)), + r + ); + }; + L.prototype.addListener = L.prototype.on; + L.prototype.removeListener = function (e, t) { + let r = Fe.prototype.removeListener.call(this, e, t); + return e === 'readable' && fe.nextTick(Xa, this), r; + }; + L.prototype.off = L.prototype.removeListener; + L.prototype.removeAllListeners = function (e) { + let t = Fe.prototype.removeAllListeners.apply(this, arguments); + return (e === 'readable' || e === void 0) && fe.nextTick(Xa, this), t; + }; + function Xa(e) { + let t = e._readableState; + (t.readableListening = e.listenerCount('readable') > 0), + t.resumeScheduled && t[nt] === !1 + ? (t.flowing = !0) + : e.listenerCount('data') > 0 + ? e.resume() + : t.readableListening || (t.flowing = null); + } + function Em(e) { + N('readable nexttick read 0'), e.read(0); + } + L.prototype.resume = function () { + let e = this._readableState; + return e.flowing || (N('resume'), (e.flowing = !e.readableListening), mm(this, e)), (e[nt] = !1), this; + }; + function mm(e, t) { + t.resumeScheduled || ((t.resumeScheduled = !0), fe.nextTick(Rm, e, t)); + } + function Rm(e, t) { + N('resume', t.reading), + t.reading || e.read(0), + (t.resumeScheduled = !1), + e.emit('resume'), + Za(e), + t.flowing && !t.reading && e.read(0); + } + L.prototype.pause = function () { + return ( + N('call pause flowing=%j', this._readableState.flowing), + this._readableState.flowing !== !1 && (N('pause'), (this._readableState.flowing = !1), this.emit('pause')), + (this._readableState[nt] = !0), + this + ); + }; + function Za(e) { + let t = e._readableState; + for (N('flow', t.flowing); t.flowing && e.read() !== null; ); + } + L.prototype.wrap = function (e) { + let t = !1; + e.on('data', (n) => { + !this.push(n) && e.pause && ((t = !0), e.pause()); + }), + e.on('end', () => { + this.push(null); + }), + e.on('error', (n) => { + mt(this, n); + }), + e.on('close', () => { + this.destroy(); + }), + e.on('destroy', () => { + this.destroy(); + }), + (this._read = () => { + t && e.resume && ((t = !1), e.resume()); + }); + let r = XE(e); + for (let n = 1; n < r.length; n++) { + let i = r[n]; + this[i] === void 0 && typeof e[i] == 'function' && (this[i] = e[i].bind(e)); + } + return this; + }; + L.prototype[em] = function () { + return Qa(this); + }; + L.prototype.iterator = function (e) { + return e !== void 0 && bm(e, 'options'), Qa(this, e); + }; + function Qa(e, t) { + typeof e.read != 'function' && (e = L.wrap(e, { objectMode: !0 })); + let r = Am(e, t); + return (r.stream = e), r; + } + async function* Am(e, t) { + let r = lo; + function n(l) { + this === e ? (r(), (r = lo)) : (r = l); + } + e.on('readable', n); + let i, + o = om(e, { writable: !1 }, (l) => { + (i = l ? Ga(i, l) : null), r(), (r = lo); + }); + try { + for (;;) { + let l = e.destroyed ? null : e.read(); + if (l !== null) yield l; + else { + if (i) throw i; + if (i === null) return; + await new ZE(n); + } + } + } catch (l) { + throw ((i = Ga(i, l)), i); + } finally { + (i || t?.destroyOnReturn !== !1) && (i === void 0 || e._readableState.autoDestroy) + ? Rt.destroyer(e, null) + : (e.off('readable', n), o()); + } + } + Va(L.prototype, { + readable: { + __proto__: null, + get() { + let e = this._readableState; + return !!e && e.readable !== !1 && !e.destroyed && !e.errorEmitted && !e.endEmitted; + }, + set(e) { + this._readableState && (this._readableState.readable = !!e); + }, + }, + readableDidRead: { + __proto__: null, + enumerable: !1, + get: function () { + return this._readableState.dataEmitted; + }, + }, + readableAborted: { + __proto__: null, + enumerable: !1, + get: function () { + return !!( + this._readableState.readable !== !1 && + (this._readableState.destroyed || this._readableState.errored) && + !this._readableState.endEmitted + ); + }, + }, + readableHighWaterMark: { + __proto__: null, + enumerable: !1, + get: function () { + return this._readableState.highWaterMark; + }, + }, + readableBuffer: { + __proto__: null, + enumerable: !1, + get: function () { + return this._readableState && this._readableState.buffer; + }, + }, + readableFlowing: { + __proto__: null, + enumerable: !1, + get: function () { + return this._readableState.flowing; + }, + set: function (e) { + this._readableState && (this._readableState.flowing = e); + }, + }, + readableLength: { + __proto__: null, + enumerable: !1, + get() { + return this._readableState.length; + }, + }, + readableObjectMode: { + __proto__: null, + enumerable: !1, + get() { + return this._readableState ? this._readableState.objectMode : !1; + }, + }, + readableEncoding: { + __proto__: null, + enumerable: !1, + get() { + return this._readableState ? this._readableState.encoding : null; + }, + }, + errored: { + __proto__: null, + enumerable: !1, + get() { + return this._readableState ? this._readableState.errored : null; + }, + }, + closed: { + __proto__: null, + get() { + return this._readableState ? this._readableState.closed : !1; + }, + }, + destroyed: { + __proto__: null, + enumerable: !1, + get() { + return this._readableState ? this._readableState.destroyed : !1; + }, + set(e) { + this._readableState && (this._readableState.destroyed = e); + }, + }, + readableEnded: { + __proto__: null, + enumerable: !1, + get() { + return this._readableState ? this._readableState.endEmitted : !1; + }, + }, + }); + Va(ao.prototype, { + pipesCount: { + __proto__: null, + get() { + return this.pipes.length; + }, + }, + paused: { + __proto__: null, + get() { + return this[nt] !== !1; + }, + set(e) { + this[nt] = !!e; + }, + }, + }); + L._fromList = ec; + function ec(e, t) { + if (t.length === 0) return null; + let r; + return ( + t.objectMode + ? (r = t.buffer.shift()) + : !e || e >= t.length + ? (t.decoder + ? (r = t.buffer.join('')) + : t.buffer.length === 1 + ? (r = t.buffer.first()) + : (r = t.buffer.concat(t.length)), + t.buffer.clear()) + : (r = t.buffer.consume(e, t.decoder)), + r + ); + } + function uo(e) { + let t = e._readableState; + N('endReadable', t.endEmitted), t.endEmitted || ((t.ended = !0), fe.nextTick(Tm, t, e)); + } + function Tm(e, t) { + if ( + (N('endReadableNT', e.endEmitted, e.length), !e.errored && !e.closeEmitted && !e.endEmitted && e.length === 0) + ) { + if (((e.endEmitted = !0), t.emit('end'), t.writable && t.allowHalfOpen === !1)) fe.nextTick(Om, t); + else if (e.autoDestroy) { + let r = t._writableState; + (!r || (r.autoDestroy && (r.finished || r.writable === !1))) && t.destroy(); + } + } + } + function Om(e) { + e.writable && !e.writableEnded && !e.destroyed && e.end(); + } + L.from = function (e, t) { + return pm(L, e, t); + }; + var fo; + function tc() { + return fo === void 0 && (fo = {}), fo; + } + L.fromWeb = function (e, t) { + return tc().newStreamReadableFromReadableStream(e, t); + }; + L.toWeb = function (e, t) { + return tc().newReadableStreamFromStreamReadable(e, t); + }; + L.wrap = function (e, t) { + var r, n; + return new L({ + objectMode: + (r = (n = e.readableObjectMode) !== null && n !== void 0 ? n : e.objectMode) !== null && r !== void 0 ? r : !0, + ...t, + destroy(i, o) { + Rt.destroyer(e, i), o(i); + }, + }).wrap(e); + }; +}); +var _o = _((JO, bc) => { + var it = X(), + { + ArrayPrototypeSlice: oc, + Error: Lm, + FunctionPrototypeSymbolHasInstance: lc, + ObjectDefineProperty: sc, + ObjectDefineProperties: xm, + ObjectSetPrototypeOf: uc, + StringPrototypeToLowerCase: Mm, + Symbol: vm, + SymbolHasInstance: Im, + } = G(); + bc.exports = k; + k.WritableState = er; + var { EventEmitter: Dm } = require('events'), + Zt = Yr().Stream, + { Buffer: en } = require('buffer'), + nn = rt(), + { addAbortSignal: Nm } = Jt(), + { getHighWaterMark: Pm, getDefaultHighWaterMark: qm } = Xr(), + { + ERR_INVALID_ARG_TYPE: Cm, + ERR_METHOD_NOT_IMPLEMENTED: Wm, + ERR_MULTIPLE_CALLBACK: fc, + ERR_STREAM_CANNOT_PIPE: km, + ERR_STREAM_DESTROYED: Qt, + ERR_STREAM_ALREADY_FINISHED: jm, + ERR_STREAM_NULL_VALUES: Bm, + ERR_STREAM_WRITE_AFTER_END: Fm, + ERR_UNKNOWN_ENCODING: ac, + } = Z().codes, + { errorOrDestroy: At } = nn; + uc(k.prototype, Zt.prototype); + uc(k, Zt); + function bo() {} + var Tt = vm('kOnFinished'); + function er(e, t, r) { + typeof r != 'boolean' && (r = t instanceof me()), + (this.objectMode = !!(e && e.objectMode)), + r && (this.objectMode = this.objectMode || !!(e && e.writableObjectMode)), + (this.highWaterMark = e ? Pm(this, e, 'writableHighWaterMark', r) : qm(!1)), + (this.finalCalled = !1), + (this.needDrain = !1), + (this.ending = !1), + (this.ended = !1), + (this.finished = !1), + (this.destroyed = !1); + let n = !!(e && e.decodeStrings === !1); + (this.decodeStrings = !n), + (this.defaultEncoding = (e && e.defaultEncoding) || 'utf8'), + (this.length = 0), + (this.writing = !1), + (this.corked = 0), + (this.sync = !0), + (this.bufferProcessing = !1), + (this.onwrite = Um.bind(void 0, t)), + (this.writecb = null), + (this.writelen = 0), + (this.afterWriteTickInfo = null), + rn(this), + (this.pendingcb = 0), + (this.constructed = !0), + (this.prefinished = !1), + (this.errorEmitted = !1), + (this.emitClose = !e || e.emitClose !== !1), + (this.autoDestroy = !e || e.autoDestroy !== !1), + (this.errored = null), + (this.closed = !1), + (this.closeEmitted = !1), + (this[Tt] = []); + } + function rn(e) { + (e.buffered = []), (e.bufferedIndex = 0), (e.allBuffers = !0), (e.allNoop = !0); + } + er.prototype.getBuffer = function () { + return oc(this.buffered, this.bufferedIndex); + }; + sc(er.prototype, 'bufferedRequestCount', { + __proto__: null, + get() { + return this.buffered.length - this.bufferedIndex; + }, + }); + function k(e) { + let t = this instanceof me(); + if (!t && !lc(k, this)) return new k(e); + (this._writableState = new er(e, this, t)), + e && + (typeof e.write == 'function' && (this._write = e.write), + typeof e.writev == 'function' && (this._writev = e.writev), + typeof e.destroy == 'function' && (this._destroy = e.destroy), + typeof e.final == 'function' && (this._final = e.final), + typeof e.construct == 'function' && (this._construct = e.construct), + e.signal && Nm(e.signal, this)), + Zt.call(this, e), + nn.construct(this, () => { + let r = this._writableState; + r.writing || yo(this, r), go(this, r); + }); + } + sc(k, Im, { + __proto__: null, + value: function (e) { + return lc(this, e) ? !0 : this !== k ? !1 : e && e._writableState instanceof er; + }, + }); + k.prototype.pipe = function () { + At(this, new km()); + }; + function cc(e, t, r, n) { + let i = e._writableState; + if (typeof r == 'function') (n = r), (r = i.defaultEncoding); + else { + if (!r) r = i.defaultEncoding; + else if (r !== 'buffer' && !en.isEncoding(r)) throw new ac(r); + typeof n != 'function' && (n = bo); + } + if (t === null) throw new Bm(); + if (!i.objectMode) + if (typeof t == 'string') i.decodeStrings !== !1 && ((t = en.from(t, r)), (r = 'buffer')); + else if (t instanceof en) r = 'buffer'; + else if (Zt._isUint8Array(t)) (t = Zt._uint8ArrayToBuffer(t)), (r = 'buffer'); + else throw new Cm('chunk', ['string', 'Buffer', 'Uint8Array'], t); + let o; + return ( + i.ending ? (o = new Fm()) : i.destroyed && (o = new Qt('write')), + o ? (it.nextTick(n, o), At(e, o, !0), o) : (i.pendingcb++, $m(e, i, t, r, n)) + ); + } + k.prototype.write = function (e, t, r) { + return cc(this, e, t, r) === !0; + }; + k.prototype.cork = function () { + this._writableState.corked++; + }; + k.prototype.uncork = function () { + let e = this._writableState; + e.corked && (e.corked--, e.writing || yo(this, e)); + }; + k.prototype.setDefaultEncoding = function (t) { + if ((typeof t == 'string' && (t = Mm(t)), !en.isEncoding(t))) throw new ac(t); + return (this._writableState.defaultEncoding = t), this; + }; + function $m(e, t, r, n, i) { + let o = t.objectMode ? 1 : r.length; + t.length += o; + let l = t.length < t.highWaterMark; + return ( + l || (t.needDrain = !0), + t.writing || t.corked || t.errored || !t.constructed + ? (t.buffered.push({ chunk: r, encoding: n, callback: i }), + t.allBuffers && n !== 'buffer' && (t.allBuffers = !1), + t.allNoop && i !== bo && (t.allNoop = !1)) + : ((t.writelen = o), + (t.writecb = i), + (t.writing = !0), + (t.sync = !0), + e._write(r, n, t.onwrite), + (t.sync = !1)), + l && !t.errored && !t.destroyed + ); + } + function nc(e, t, r, n, i, o, l) { + (t.writelen = n), + (t.writecb = l), + (t.writing = !0), + (t.sync = !0), + t.destroyed ? t.onwrite(new Qt('write')) : r ? e._writev(i, t.onwrite) : e._write(i, o, t.onwrite), + (t.sync = !1); + } + function ic(e, t, r, n) { + --t.pendingcb, n(r), po(t), At(e, r); + } + function Um(e, t) { + let r = e._writableState, + n = r.sync, + i = r.writecb; + if (typeof i != 'function') { + At(e, new fc()); + return; + } + (r.writing = !1), + (r.writecb = null), + (r.length -= r.writelen), + (r.writelen = 0), + t + ? (t.stack, + r.errored || (r.errored = t), + e._readableState && !e._readableState.errored && (e._readableState.errored = t), + n ? it.nextTick(ic, e, r, t, i) : ic(e, r, t, i)) + : (r.buffered.length > r.bufferedIndex && yo(e, r), + n + ? r.afterWriteTickInfo !== null && r.afterWriteTickInfo.cb === i + ? r.afterWriteTickInfo.count++ + : ((r.afterWriteTickInfo = { count: 1, cb: i, stream: e, state: r }), + it.nextTick(Gm, r.afterWriteTickInfo)) + : dc(e, r, 1, i)); + } + function Gm({ stream: e, state: t, count: r, cb: n }) { + return (t.afterWriteTickInfo = null), dc(e, t, r, n); + } + function dc(e, t, r, n) { + for (!t.ending && !e.destroyed && t.length === 0 && t.needDrain && ((t.needDrain = !1), e.emit('drain')); r-- > 0; ) + t.pendingcb--, n(); + t.destroyed && po(t), go(e, t); + } + function po(e) { + if (e.writing) return; + for (let i = e.bufferedIndex; i < e.buffered.length; ++i) { + var t; + let { chunk: o, callback: l } = e.buffered[i], + s = e.objectMode ? 1 : o.length; + (e.length -= s), l((t = e.errored) !== null && t !== void 0 ? t : new Qt('write')); + } + let r = e[Tt].splice(0); + for (let i = 0; i < r.length; i++) { + var n; + r[i]((n = e.errored) !== null && n !== void 0 ? n : new Qt('end')); + } + rn(e); + } + function yo(e, t) { + if (t.corked || t.bufferProcessing || t.destroyed || !t.constructed) return; + let { buffered: r, bufferedIndex: n, objectMode: i } = t, + o = r.length - n; + if (!o) return; + let l = n; + if (((t.bufferProcessing = !0), o > 1 && e._writev)) { + t.pendingcb -= o - 1; + let s = t.allNoop + ? bo + : (u) => { + for (let c = l; c < r.length; ++c) r[c].callback(u); + }, + f = t.allNoop && l === 0 ? r : oc(r, l); + (f.allBuffers = t.allBuffers), nc(e, t, !0, t.length, f, '', s), rn(t); + } else { + do { + let { chunk: s, encoding: f, callback: u } = r[l]; + r[l++] = null; + let c = i ? 1 : s.length; + nc(e, t, !1, c, s, f, u); + } while (l < r.length && !t.writing); + l === r.length ? rn(t) : l > 256 ? (r.splice(0, l), (t.bufferedIndex = 0)) : (t.bufferedIndex = l); + } + t.bufferProcessing = !1; + } + k.prototype._write = function (e, t, r) { + if (this._writev) this._writev([{ chunk: e, encoding: t }], r); + else throw new Wm('_write()'); + }; + k.prototype._writev = null; + k.prototype.end = function (e, t, r) { + let n = this._writableState; + typeof e == 'function' ? ((r = e), (e = null), (t = null)) : typeof t == 'function' && ((r = t), (t = null)); + let i; + if (e != null) { + let o = cc(this, e, t); + o instanceof Lm && (i = o); + } + return ( + n.corked && ((n.corked = 1), this.uncork()), + i || + (!n.errored && !n.ending + ? ((n.ending = !0), go(this, n, !0), (n.ended = !0)) + : n.finished + ? (i = new jm('end')) + : n.destroyed && (i = new Qt('end'))), + typeof r == 'function' && (i || n.finished ? it.nextTick(r, i) : n[Tt].push(r)), + this + ); + }; + function tn(e) { + return ( + e.ending && + !e.destroyed && + e.constructed && + e.length === 0 && + !e.errored && + e.buffered.length === 0 && + !e.finished && + !e.writing && + !e.errorEmitted && + !e.closeEmitted + ); + } + function Hm(e, t) { + let r = !1; + function n(i) { + if (r) { + At(e, i ?? fc()); + return; + } + if (((r = !0), t.pendingcb--, i)) { + let o = t[Tt].splice(0); + for (let l = 0; l < o.length; l++) o[l](i); + At(e, i, t.sync); + } else tn(t) && ((t.prefinished = !0), e.emit('prefinish'), t.pendingcb++, it.nextTick(ho, e, t)); + } + (t.sync = !0), t.pendingcb++; + try { + e._final(n); + } catch (i) { + n(i); + } + t.sync = !1; + } + function Vm(e, t) { + !t.prefinished && + !t.finalCalled && + (typeof e._final == 'function' && !t.destroyed + ? ((t.finalCalled = !0), Hm(e, t)) + : ((t.prefinished = !0), e.emit('prefinish'))); + } + function go(e, t, r) { + tn(t) && + (Vm(e, t), + t.pendingcb === 0 && + (r + ? (t.pendingcb++, + it.nextTick( + (n, i) => { + tn(i) ? ho(n, i) : i.pendingcb--; + }, + e, + t + )) + : tn(t) && (t.pendingcb++, ho(e, t)))); + } + function ho(e, t) { + t.pendingcb--, (t.finished = !0); + let r = t[Tt].splice(0); + for (let n = 0; n < r.length; n++) r[n](); + if ((e.emit('finish'), t.autoDestroy)) { + let n = e._readableState; + (!n || (n.autoDestroy && (n.endEmitted || n.readable === !1))) && e.destroy(); + } + } + xm(k.prototype, { + closed: { + __proto__: null, + get() { + return this._writableState ? this._writableState.closed : !1; + }, + }, + destroyed: { + __proto__: null, + get() { + return this._writableState ? this._writableState.destroyed : !1; + }, + set(e) { + this._writableState && (this._writableState.destroyed = e); + }, + }, + writable: { + __proto__: null, + get() { + let e = this._writableState; + return !!e && e.writable !== !1 && !e.destroyed && !e.errored && !e.ending && !e.ended; + }, + set(e) { + this._writableState && (this._writableState.writable = !!e); + }, + }, + writableFinished: { + __proto__: null, + get() { + return this._writableState ? this._writableState.finished : !1; + }, + }, + writableObjectMode: { + __proto__: null, + get() { + return this._writableState ? this._writableState.objectMode : !1; + }, + }, + writableBuffer: { + __proto__: null, + get() { + return this._writableState && this._writableState.getBuffer(); + }, + }, + writableEnded: { + __proto__: null, + get() { + return this._writableState ? this._writableState.ending : !1; + }, + }, + writableNeedDrain: { + __proto__: null, + get() { + let e = this._writableState; + return e ? !e.destroyed && !e.ending && e.needDrain : !1; + }, + }, + writableHighWaterMark: { + __proto__: null, + get() { + return this._writableState && this._writableState.highWaterMark; + }, + }, + writableCorked: { + __proto__: null, + get() { + return this._writableState ? this._writableState.corked : 0; + }, + }, + writableLength: { + __proto__: null, + get() { + return this._writableState && this._writableState.length; + }, + }, + errored: { + __proto__: null, + enumerable: !1, + get() { + return this._writableState ? this._writableState.errored : null; + }, + }, + writableAborted: { + __proto__: null, + enumerable: !1, + get: function () { + return !!( + this._writableState.writable !== !1 && + (this._writableState.destroyed || this._writableState.errored) && + !this._writableState.finished + ); + }, + }, + }); + var Km = nn.destroy; + k.prototype.destroy = function (e, t) { + let r = this._writableState; + return ( + !r.destroyed && (r.bufferedIndex < r.buffered.length || r[Tt].length) && it.nextTick(po, r), + Km.call(this, e, t), + this + ); + }; + k.prototype._undestroy = nn.undestroy; + k.prototype._destroy = function (e, t) { + t(e); + }; + k.prototype[Dm.captureRejectionSymbol] = function (e) { + this.destroy(e); + }; + var co; + function hc() { + return co === void 0 && (co = {}), co; + } + k.fromWeb = function (e, t) { + return hc().newStreamWritableFromWritableStream(e, t); + }; + k.toWeb = function (e) { + return hc().newWritableStreamFromStreamWritable(e); + }; +}); +var Oc = _((XO, Tc) => { + var wo = X(), + Ym = require('buffer'), + { + isReadable: zm, + isWritable: Jm, + isIterable: pc, + isNodeStream: Xm, + isReadableNodeStream: yc, + isWritableNodeStream: gc, + isDuplexNodeStream: Zm, + } = Se(), + _c = xe(), + { + AbortError: Ac, + codes: { ERR_INVALID_ARG_TYPE: Qm, ERR_INVALID_RETURN_VALUE: wc }, + } = Z(), + { destroyer: Ot } = rt(), + eR = me(), + tR = Xt(), + { createDeferredPromise: Sc } = _e(), + Ec = io(), + mc = globalThis.Blob || Ym.Blob, + rR = + typeof mc < 'u' + ? function (t) { + return t instanceof mc; + } + : function (t) { + return !1; + }, + nR = globalThis.AbortController || Ue().AbortController, + { FunctionPrototypeCall: Rc } = G(), + ot = class extends eR { + constructor(t) { + super(t), + t?.readable === !1 && + ((this._readableState.readable = !1), + (this._readableState.ended = !0), + (this._readableState.endEmitted = !0)), + t?.writable === !1 && + ((this._writableState.writable = !1), + (this._writableState.ending = !0), + (this._writableState.ended = !0), + (this._writableState.finished = !0)); + } + }; + Tc.exports = function e(t, r) { + if (Zm(t)) return t; + if (yc(t)) return on({ readable: t }); + if (gc(t)) return on({ writable: t }); + if (Xm(t)) return on({ writable: !1, readable: !1 }); + if (typeof t == 'function') { + let { value: i, write: o, final: l, destroy: s } = iR(t); + if (pc(i)) return Ec(ot, i, { objectMode: !0, write: o, final: l, destroy: s }); + let f = i?.then; + if (typeof f == 'function') { + let u, + c = Rc( + f, + i, + (a) => { + if (a != null) throw new wc('nully', 'body', a); + }, + (a) => { + Ot(u, a); + } + ); + return (u = new ot({ + objectMode: !0, + readable: !1, + write: o, + final(a) { + l(async () => { + try { + await c, wo.nextTick(a, null); + } catch (b) { + wo.nextTick(a, b); + } + }); + }, + destroy: s, + })); + } + throw new wc('Iterable, AsyncIterable or AsyncFunction', r, i); + } + if (rR(t)) return e(t.arrayBuffer()); + if (pc(t)) return Ec(ot, t, { objectMode: !0, writable: !1 }); + if (typeof t?.writable == 'object' || typeof t?.readable == 'object') { + let i = t != null && t.readable ? (yc(t?.readable) ? t?.readable : e(t.readable)) : void 0, + o = t != null && t.writable ? (gc(t?.writable) ? t?.writable : e(t.writable)) : void 0; + return on({ readable: i, writable: o }); + } + let n = t?.then; + if (typeof n == 'function') { + let i; + return ( + Rc( + n, + t, + (o) => { + o != null && i.push(o), i.push(null); + }, + (o) => { + Ot(i, o); + } + ), + (i = new ot({ objectMode: !0, writable: !1, read() {} })) + ); + } + throw new Qm( + r, + [ + 'Blob', + 'ReadableStream', + 'WritableStream', + 'Stream', + 'Iterable', + 'AsyncIterable', + 'Function', + '{ readable, writable } pair', + 'Promise', + ], + t + ); + }; + function iR(e) { + let { promise: t, resolve: r } = Sc(), + n = new nR(), + i = n.signal; + return { + value: e( + (async function* () { + for (;;) { + let l = t; + t = null; + let { chunk: s, done: f, cb: u } = await l; + if ((wo.nextTick(u), f)) return; + if (i.aborted) throw new Ac(void 0, { cause: i.reason }); + ({ promise: t, resolve: r } = Sc()), yield s; + } + })(), + { signal: i } + ), + write(l, s, f) { + let u = r; + (r = null), u({ chunk: l, done: !1, cb: f }); + }, + final(l) { + let s = r; + (r = null), s({ done: !0, cb: l }); + }, + destroy(l, s) { + n.abort(), s(l); + }, + }; + } + function on(e) { + let t = e.readable && typeof e.readable.read != 'function' ? tR.wrap(e.readable) : e.readable, + r = e.writable, + n = !!zm(t), + i = !!Jm(r), + o, + l, + s, + f, + u; + function c(a) { + let b = f; + (f = null), b ? b(a) : a && u.destroy(a); + } + return ( + (u = new ot({ + readableObjectMode: !!(t != null && t.readableObjectMode), + writableObjectMode: !!(r != null && r.writableObjectMode), + readable: n, + writable: i, + })), + i && + (_c(r, (a) => { + (i = !1), a && Ot(t, a), c(a); + }), + (u._write = function (a, b, h) { + r.write(a, b) ? h() : (o = h); + }), + (u._final = function (a) { + r.end(), (l = a); + }), + r.on('drain', function () { + if (o) { + let a = o; + (o = null), a(); + } + }), + r.on('finish', function () { + if (l) { + let a = l; + (l = null), a(); + } + })), + n && + (_c(t, (a) => { + (n = !1), a && Ot(t, a), c(a); + }), + t.on('readable', function () { + if (s) { + let a = s; + (s = null), a(); + } + }), + t.on('end', function () { + u.push(null); + }), + (u._read = function () { + for (;;) { + let a = t.read(); + if (a === null) { + s = u._read; + return; + } + if (!u.push(a)) return; + } + })), + (u._destroy = function (a, b) { + !a && f !== null && (a = new Ac()), + (s = null), + (o = null), + (l = null), + f === null ? b(a) : ((f = b), Ot(r, a), Ot(t, a)); + }), + u + ); + } +}); +var me = _((ZO, Mc) => { + 'use strict'; + var { + ObjectDefineProperties: oR, + ObjectGetOwnPropertyDescriptor: Me, + ObjectKeys: lR, + ObjectSetPrototypeOf: Lc, + } = G(); + Mc.exports = ae; + var mo = Xt(), + oe = _o(); + Lc(ae.prototype, mo.prototype); + Lc(ae, mo); + { + let e = lR(oe.prototype); + for (let t = 0; t < e.length; t++) { + let r = e[t]; + ae.prototype[r] || (ae.prototype[r] = oe.prototype[r]); + } + } + function ae(e) { + if (!(this instanceof ae)) return new ae(e); + mo.call(this, e), + oe.call(this, e), + e + ? ((this.allowHalfOpen = e.allowHalfOpen !== !1), + e.readable === !1 && + ((this._readableState.readable = !1), + (this._readableState.ended = !0), + (this._readableState.endEmitted = !0)), + e.writable === !1 && + ((this._writableState.writable = !1), + (this._writableState.ending = !0), + (this._writableState.ended = !0), + (this._writableState.finished = !0))) + : (this.allowHalfOpen = !0); + } + oR(ae.prototype, { + writable: { __proto__: null, ...Me(oe.prototype, 'writable') }, + writableHighWaterMark: { __proto__: null, ...Me(oe.prototype, 'writableHighWaterMark') }, + writableObjectMode: { __proto__: null, ...Me(oe.prototype, 'writableObjectMode') }, + writableBuffer: { __proto__: null, ...Me(oe.prototype, 'writableBuffer') }, + writableLength: { __proto__: null, ...Me(oe.prototype, 'writableLength') }, + writableFinished: { __proto__: null, ...Me(oe.prototype, 'writableFinished') }, + writableCorked: { __proto__: null, ...Me(oe.prototype, 'writableCorked') }, + writableEnded: { __proto__: null, ...Me(oe.prototype, 'writableEnded') }, + writableNeedDrain: { __proto__: null, ...Me(oe.prototype, 'writableNeedDrain') }, + destroyed: { + __proto__: null, + get() { + return this._readableState === void 0 || this._writableState === void 0 + ? !1 + : this._readableState.destroyed && this._writableState.destroyed; + }, + set(e) { + this._readableState && + this._writableState && + ((this._readableState.destroyed = e), (this._writableState.destroyed = e)); + }, + }, + }); + var So; + function xc() { + return So === void 0 && (So = {}), So; + } + ae.fromWeb = function (e, t) { + return xc().newStreamDuplexFromReadableWritablePair(e, t); + }; + ae.toWeb = function (e) { + return xc().newReadableWritablePairFromDuplex(e); + }; + var Eo; + ae.from = function (e) { + return Eo || (Eo = Oc()), Eo(e, 'body'); + }; +}); +var To = _((QO, Ic) => { + 'use strict'; + var { ObjectSetPrototypeOf: vc, Symbol: sR } = G(); + Ic.exports = ve; + var { ERR_METHOD_NOT_IMPLEMENTED: uR } = Z().codes, + Ao = me(), + { getHighWaterMark: fR } = Xr(); + vc(ve.prototype, Ao.prototype); + vc(ve, Ao); + var tr = sR('kCallback'); + function ve(e) { + if (!(this instanceof ve)) return new ve(e); + let t = e ? fR(this, e, 'readableHighWaterMark', !0) : null; + t === 0 && + (e = { + ...e, + highWaterMark: null, + readableHighWaterMark: t, + writableHighWaterMark: e.writableHighWaterMark || 0, + }), + Ao.call(this, e), + (this._readableState.sync = !1), + (this[tr] = null), + e && + (typeof e.transform == 'function' && (this._transform = e.transform), + typeof e.flush == 'function' && (this._flush = e.flush)), + this.on('prefinish', aR); + } + function Ro(e) { + typeof this._flush == 'function' && !this.destroyed + ? this._flush((t, r) => { + if (t) { + e ? e(t) : this.destroy(t); + return; + } + r != null && this.push(r), this.push(null), e && e(); + }) + : (this.push(null), e && e()); + } + function aR() { + this._final !== Ro && Ro.call(this); + } + ve.prototype._final = Ro; + ve.prototype._transform = function (e, t, r) { + throw new uR('_transform()'); + }; + ve.prototype._write = function (e, t, r) { + let n = this._readableState, + i = this._writableState, + o = n.length; + this._transform(e, t, (l, s) => { + if (l) { + r(l); + return; + } + s != null && this.push(s), i.ended || o === n.length || n.length < n.highWaterMark ? r() : (this[tr] = r); + }); + }; + ve.prototype._read = function () { + if (this[tr]) { + let e = this[tr]; + (this[tr] = null), e(); + } + }; +}); +var Lo = _((eL, Nc) => { + 'use strict'; + var { ObjectSetPrototypeOf: Dc } = G(); + Nc.exports = Lt; + var Oo = To(); + Dc(Lt.prototype, Oo.prototype); + Dc(Lt, Oo); + function Lt(e) { + if (!(this instanceof Lt)) return new Lt(e); + Oo.call(this, e); + } + Lt.prototype._transform = function (e, t, r) { + r(null, e); + }; +}); +var fn = _((tL, kc) => { + var rr = X(), + { ArrayIsArray: cR, Promise: dR, SymbolAsyncIterator: hR } = G(), + un = xe(), + { once: bR } = _e(), + pR = rt(), + Pc = me(), + { + aggregateTwoErrors: yR, + codes: { + ERR_INVALID_ARG_TYPE: qo, + ERR_INVALID_RETURN_VALUE: xo, + ERR_MISSING_ARGS: gR, + ERR_STREAM_DESTROYED: _R, + ERR_STREAM_PREMATURE_CLOSE: wR, + }, + AbortError: SR, + } = Z(), + { validateFunction: ER, validateAbortSignal: mR } = zt(), + { + isIterable: lt, + isReadable: Mo, + isReadableNodeStream: sn, + isNodeStream: qc, + isTransformStream: xt, + isWebStream: RR, + isReadableStream: vo, + isReadableEnded: AR, + } = Se(), + TR = globalThis.AbortController || Ue().AbortController, + Io, + Do; + function Cc(e, t, r) { + let n = !1; + e.on('close', () => { + n = !0; + }); + let i = un(e, { readable: t, writable: r }, (o) => { + n = !o; + }); + return { + destroy: (o) => { + n || ((n = !0), pR.destroyer(e, o || new _R('pipe'))); + }, + cleanup: i, + }; + } + function OR(e) { + return ER(e[e.length - 1], 'streams[stream.length - 1]'), e.pop(); + } + function No(e) { + if (lt(e)) return e; + if (sn(e)) return LR(e); + throw new qo('val', ['Readable', 'Iterable', 'AsyncIterable'], e); + } + async function* LR(e) { + Do || (Do = Xt()), yield* Do.prototype[hR].call(e); + } + async function ln(e, t, r, { end: n }) { + let i, + o = null, + l = (u) => { + if ((u && (i = u), o)) { + let c = o; + (o = null), c(); + } + }, + s = () => + new dR((u, c) => { + i + ? c(i) + : (o = () => { + i ? c(i) : u(); + }); + }); + t.on('drain', l); + let f = un(t, { readable: !1 }, l); + try { + t.writableNeedDrain && (await s()); + for await (let u of e) t.write(u) || (await s()); + n && t.end(), await s(), r(); + } catch (u) { + r(i !== u ? yR(i, u) : u); + } finally { + f(), t.off('drain', l); + } + } + async function Po(e, t, r, { end: n }) { + xt(t) && (t = t.writable); + let i = t.getWriter(); + try { + for await (let o of e) await i.ready, i.write(o).catch(() => {}); + await i.ready, n && (await i.close()), r(); + } catch (o) { + try { + await i.abort(o), r(o); + } catch (l) { + r(l); + } + } + } + function xR(...e) { + return Wc(e, bR(OR(e))); + } + function Wc(e, t, r) { + if ((e.length === 1 && cR(e[0]) && (e = e[0]), e.length < 2)) throw new gR('streams'); + let n = new TR(), + i = n.signal, + o = r?.signal, + l = []; + mR(o, 'options.signal'); + function s() { + h(new SR()); + } + o?.addEventListener('abort', s); + let f, + u, + c = [], + a = 0; + function b(g) { + h(g, --a === 0); + } + function h(g, p) { + if ((g && (!f || f.code === 'ERR_STREAM_PREMATURE_CLOSE') && (f = g), !(!f && !p))) { + for (; c.length; ) c.shift()(f); + o?.removeEventListener('abort', s), n.abort(), p && (f || l.forEach((A) => A()), rr.nextTick(t, f, u)); + } + } + let d; + for (let g = 0; g < e.length; g++) { + let p = e[g], + A = g < e.length - 1, + m = g > 0, + v = A || r?.end !== !1, + j = g === e.length - 1; + if (qc(p)) { + let I = function (P) { + P && P.name !== 'AbortError' && P.code !== 'ERR_STREAM_PREMATURE_CLOSE' && b(P); + }; + var w = I; + if (v) { + let { destroy: P, cleanup: ee } = Cc(p, A, m); + c.push(P), Mo(p) && j && l.push(ee); + } + p.on('error', I), + Mo(p) && + j && + l.push(() => { + p.removeListener('error', I); + }); + } + if (g === 0) + if (typeof p == 'function') { + if (((d = p({ signal: i })), !lt(d))) throw new xo('Iterable, AsyncIterable or Stream', 'source', d); + } else lt(p) || sn(p) || xt(p) ? (d = p) : (d = Pc.from(p)); + else if (typeof p == 'function') { + if (xt(d)) { + var S; + d = No((S = d) === null || S === void 0 ? void 0 : S.readable); + } else d = No(d); + if (((d = p(d, { signal: i })), A)) { + if (!lt(d, !0)) throw new xo('AsyncIterable', `transform[${g - 1}]`, d); + } else { + var y; + Io || (Io = Lo()); + let I = new Io({ objectMode: !0 }), + P = (y = d) === null || y === void 0 ? void 0 : y.then; + if (typeof P == 'function') + a++, + P.call( + d, + (C) => { + (u = C), C != null && I.write(C), v && I.end(), rr.nextTick(b); + }, + (C) => { + I.destroy(C), rr.nextTick(b, C); + } + ); + else if (lt(d, !0)) a++, ln(d, I, b, { end: v }); + else if (vo(d) || xt(d)) { + let C = d.readable || d; + a++, ln(C, I, b, { end: v }); + } else throw new xo('AsyncIterable or Promise', 'destination', d); + d = I; + let { destroy: ee, cleanup: te } = Cc(d, !1, !0); + c.push(ee), j && l.push(te); + } + } else if (qc(p)) { + if (sn(d)) { + a += 2; + let I = MR(d, p, b, { end: v }); + Mo(p) && j && l.push(I); + } else if (xt(d) || vo(d)) { + let I = d.readable || d; + a++, ln(I, p, b, { end: v }); + } else if (lt(d)) a++, ln(d, p, b, { end: v }); + else throw new qo('val', ['Readable', 'Iterable', 'AsyncIterable', 'ReadableStream', 'TransformStream'], d); + d = p; + } else if (RR(p)) { + if (sn(d)) a++, Po(No(d), p, b, { end: v }); + else if (vo(d) || lt(d)) a++, Po(d, p, b, { end: v }); + else if (xt(d)) a++, Po(d.readable, p, b, { end: v }); + else throw new qo('val', ['Readable', 'Iterable', 'AsyncIterable', 'ReadableStream', 'TransformStream'], d); + d = p; + } else d = Pc.from(p); + } + return ((i != null && i.aborted) || (o != null && o.aborted)) && rr.nextTick(s), d; + } + function MR(e, t, r, { end: n }) { + let i = !1; + if ( + (t.on('close', () => { + i || r(new wR()); + }), + e.pipe(t, { end: !1 }), + n) + ) { + let l = function () { + (i = !0), t.end(); + }; + var o = l; + AR(e) ? rr.nextTick(l) : e.once('end', l); + } else r(); + return ( + un(e, { readable: !0, writable: !1 }, (l) => { + let s = e._readableState; + l && l.code === 'ERR_STREAM_PREMATURE_CLOSE' && s && s.ended && !s.errored && !s.errorEmitted + ? e.once('end', r).once('error', r) + : r(l); + }), + un(t, { readable: !1, writable: !0 }, r) + ); + } + kc.exports = { pipelineImpl: Wc, pipeline: xR }; +}); +var Wo = _((rL, Gc) => { + 'use strict'; + var { pipeline: vR } = fn(), + an = me(), + { destroyer: IR } = rt(), + { + isNodeStream: cn, + isReadable: jc, + isWritable: Bc, + isWebStream: Co, + isTransformStream: st, + isWritableStream: Fc, + isReadableStream: $c, + } = Se(), + { + AbortError: DR, + codes: { ERR_INVALID_ARG_VALUE: Uc, ERR_MISSING_ARGS: NR }, + } = Z(), + PR = xe(); + Gc.exports = function (...t) { + if (t.length === 0) throw new NR('streams'); + if (t.length === 1) return an.from(t[0]); + let r = [...t]; + if ((typeof t[0] == 'function' && (t[0] = an.from(t[0])), typeof t[t.length - 1] == 'function')) { + let h = t.length - 1; + t[h] = an.from(t[h]); + } + for (let h = 0; h < t.length; ++h) + if (!(!cn(t[h]) && !Co(t[h]))) { + if (h < t.length - 1 && !(jc(t[h]) || $c(t[h]) || st(t[h]))) + throw new Uc(`streams[${h}]`, r[h], 'must be readable'); + if (h > 0 && !(Bc(t[h]) || Fc(t[h]) || st(t[h]))) throw new Uc(`streams[${h}]`, r[h], 'must be writable'); + } + let n, i, o, l, s; + function f(h) { + let d = l; + (l = null), d ? d(h) : h ? s.destroy(h) : !b && !a && s.destroy(); + } + let u = t[0], + c = vR(t, f), + a = !!(Bc(u) || Fc(u) || st(u)), + b = !!(jc(c) || $c(c) || st(c)); + if ( + ((s = new an({ + writableObjectMode: !!(u != null && u.writableObjectMode), + readableObjectMode: !!(c != null && c.writableObjectMode), + writable: a, + readable: b, + })), + a) + ) { + if (cn(u)) + (s._write = function (d, S, y) { + u.write(d, S) ? y() : (n = y); + }), + (s._final = function (d) { + u.end(), (i = d); + }), + u.on('drain', function () { + if (n) { + let d = n; + (n = null), d(); + } + }); + else if (Co(u)) { + let S = (st(u) ? u.writable : u).getWriter(); + (s._write = async function (y, w, g) { + try { + await S.ready, S.write(y).catch(() => {}), g(); + } catch (p) { + g(p); + } + }), + (s._final = async function (y) { + try { + await S.ready, S.close().catch(() => {}), (i = y); + } catch (w) { + y(w); + } + }); + } + let h = st(c) ? c.readable : c; + PR(h, () => { + if (i) { + let d = i; + (i = null), d(); + } + }); + } + if (b) { + if (cn(c)) + c.on('readable', function () { + if (o) { + let h = o; + (o = null), h(); + } + }), + c.on('end', function () { + s.push(null); + }), + (s._read = function () { + for (;;) { + let h = c.read(); + if (h === null) { + o = s._read; + return; + } + if (!s.push(h)) return; + } + }); + else if (Co(c)) { + let d = (st(c) ? c.readable : c).getReader(); + s._read = async function () { + for (;;) + try { + let { value: S, done: y } = await d.read(); + if (!s.push(S)) return; + if (y) { + s.push(null); + return; + } + } catch { + return; + } + }; + } + } + return ( + (s._destroy = function (h, d) { + !h && l !== null && (h = new DR()), + (o = null), + (n = null), + (i = null), + l === null ? d(h) : ((l = d), cn(c) && IR(c, h)); + }), + s + ); + }; +}); +var Zc = _((nL, Bo) => { + 'use strict'; + var Yc = globalThis.AbortController || Ue().AbortController, + { + codes: { ERR_INVALID_ARG_VALUE: qR, ERR_INVALID_ARG_TYPE: nr, ERR_MISSING_ARGS: CR, ERR_OUT_OF_RANGE: WR }, + AbortError: Re, + } = Z(), + { validateAbortSignal: ut, validateInteger: kR, validateObject: ft } = zt(), + jR = G().Symbol('kWeak'), + { finished: BR } = xe(), + FR = Wo(), + { addAbortSignalNoValidate: $R } = Jt(), + { isWritable: UR, isNodeStream: GR } = Se(), + { + ArrayPrototypePush: HR, + MathFloor: VR, + Number: KR, + NumberIsNaN: YR, + Promise: Hc, + PromiseReject: Vc, + PromisePrototypeThen: zR, + Symbol: zc, + } = G(), + dn = zc('kEmpty'), + Kc = zc('kEof'); + function JR(e, t) { + if ((t != null && ft(t, 'options'), t?.signal != null && ut(t.signal, 'options.signal'), GR(e) && !UR(e))) + throw new qR('stream', e, 'must be writable'); + let r = FR(this, e); + return t != null && t.signal && $R(t.signal, r), r; + } + function hn(e, t) { + if (typeof e != 'function') throw new nr('fn', ['Function', 'AsyncFunction'], e); + t != null && ft(t, 'options'), t?.signal != null && ut(t.signal, 'options.signal'); + let r = 1; + return ( + t?.concurrency != null && (r = VR(t.concurrency)), + kR(r, 'concurrency', 1), + async function* () { + var i, o; + let l = new Yc(), + s = this, + f = [], + u = l.signal, + c = { signal: u }, + a = () => l.abort(); + t != null && (i = t.signal) !== null && i !== void 0 && i.aborted && a(), + t == null || (o = t.signal) === null || o === void 0 || o.addEventListener('abort', a); + let b, + h, + d = !1; + function S() { + d = !0; + } + async function y() { + try { + for await (let p of s) { + var w; + if (d) return; + if (u.aborted) throw new Re(); + try { + p = e(p, c); + } catch (A) { + p = Vc(A); + } + p !== dn && + (typeof ((w = p) === null || w === void 0 ? void 0 : w.catch) == 'function' && p.catch(S), + f.push(p), + b && (b(), (b = null)), + !d && + f.length && + f.length >= r && + (await new Hc((A) => { + h = A; + }))); + } + f.push(Kc); + } catch (p) { + let A = Vc(p); + zR(A, void 0, S), f.push(A); + } finally { + var g; + (d = !0), + b && (b(), (b = null)), + t == null || (g = t.signal) === null || g === void 0 || g.removeEventListener('abort', a); + } + } + y(); + try { + for (;;) { + for (; f.length > 0; ) { + let w = await f[0]; + if (w === Kc) return; + if (u.aborted) throw new Re(); + w !== dn && (yield w), f.shift(), h && (h(), (h = null)); + } + await new Hc((w) => { + b = w; + }); + } + } finally { + l.abort(), (d = !0), h && (h(), (h = null)); + } + }.call(this) + ); + } + function XR(e = void 0) { + return ( + e != null && ft(e, 'options'), + e?.signal != null && ut(e.signal, 'options.signal'), + async function* () { + let r = 0; + for await (let i of this) { + var n; + if (e != null && (n = e.signal) !== null && n !== void 0 && n.aborted) + throw new Re({ cause: e.signal.reason }); + yield [r++, i]; + } + }.call(this) + ); + } + async function Jc(e, t = void 0) { + for await (let r of jo.call(this, e, t)) return !0; + return !1; + } + async function ZR(e, t = void 0) { + if (typeof e != 'function') throw new nr('fn', ['Function', 'AsyncFunction'], e); + return !(await Jc.call(this, async (...r) => !(await e(...r)), t)); + } + async function QR(e, t) { + for await (let r of jo.call(this, e, t)) return r; + } + async function eA(e, t) { + if (typeof e != 'function') throw new nr('fn', ['Function', 'AsyncFunction'], e); + async function r(n, i) { + return await e(n, i), dn; + } + for await (let n of hn.call(this, r, t)); + } + function jo(e, t) { + if (typeof e != 'function') throw new nr('fn', ['Function', 'AsyncFunction'], e); + async function r(n, i) { + return (await e(n, i)) ? n : dn; + } + return hn.call(this, r, t); + } + var ko = class extends CR { + constructor() { + super('reduce'), (this.message = 'Reduce of an empty stream requires an initial value'); + } + }; + async function tA(e, t, r) { + var n; + if (typeof e != 'function') throw new nr('reducer', ['Function', 'AsyncFunction'], e); + r != null && ft(r, 'options'), r?.signal != null && ut(r.signal, 'options.signal'); + let i = arguments.length > 1; + if (r != null && (n = r.signal) !== null && n !== void 0 && n.aborted) { + let u = new Re(void 0, { cause: r.signal.reason }); + throw (this.once('error', () => {}), await BR(this.destroy(u)), u); + } + let o = new Yc(), + l = o.signal; + if (r != null && r.signal) { + let u = { once: !0, [jR]: this }; + r.signal.addEventListener('abort', () => o.abort(), u); + } + let s = !1; + try { + for await (let u of this) { + var f; + if (((s = !0), r != null && (f = r.signal) !== null && f !== void 0 && f.aborted)) throw new Re(); + i ? (t = await e(t, u, { signal: l })) : ((t = u), (i = !0)); + } + if (!s && !i) throw new ko(); + } finally { + o.abort(); + } + return t; + } + async function rA(e) { + e != null && ft(e, 'options'), e?.signal != null && ut(e.signal, 'options.signal'); + let t = []; + for await (let n of this) { + var r; + if (e != null && (r = e.signal) !== null && r !== void 0 && r.aborted) + throw new Re(void 0, { cause: e.signal.reason }); + HR(t, n); + } + return t; + } + function nA(e, t) { + let r = hn.call(this, e, t); + return async function* () { + for await (let i of r) yield* i; + }.call(this); + } + function Xc(e) { + if (((e = KR(e)), YR(e))) return 0; + if (e < 0) throw new WR('number', '>= 0', e); + return e; + } + function iA(e, t = void 0) { + return ( + t != null && ft(t, 'options'), + t?.signal != null && ut(t.signal, 'options.signal'), + (e = Xc(e)), + async function* () { + var n; + if (t != null && (n = t.signal) !== null && n !== void 0 && n.aborted) throw new Re(); + for await (let o of this) { + var i; + if (t != null && (i = t.signal) !== null && i !== void 0 && i.aborted) throw new Re(); + e-- <= 0 && (yield o); + } + }.call(this) + ); + } + function oA(e, t = void 0) { + return ( + t != null && ft(t, 'options'), + t?.signal != null && ut(t.signal, 'options.signal'), + (e = Xc(e)), + async function* () { + var n; + if (t != null && (n = t.signal) !== null && n !== void 0 && n.aborted) throw new Re(); + for await (let o of this) { + var i; + if (t != null && (i = t.signal) !== null && i !== void 0 && i.aborted) throw new Re(); + if (e-- > 0) yield o; + else return; + } + }.call(this) + ); + } + Bo.exports.streamReturningOperators = { + asIndexedPairs: XR, + drop: iA, + filter: jo, + flatMap: nA, + map: hn, + take: oA, + compose: JR, + }; + Bo.exports.promiseReturningOperators = { every: ZR, forEach: eA, reduce: tA, toArray: rA, some: Jc, find: QR }; +}); +var Fo = _((iL, Qc) => { + 'use strict'; + var { ArrayPrototypePop: lA, Promise: sA } = G(), + { isIterable: uA, isNodeStream: fA, isWebStream: aA } = Se(), + { pipelineImpl: cA } = fn(), + { finished: dA } = xe(); + require('stream'); + function hA(...e) { + return new sA((t, r) => { + let n, + i, + o = e[e.length - 1]; + if (o && typeof o == 'object' && !fA(o) && !uA(o) && !aA(o)) { + let l = lA(e); + (n = l.signal), (i = l.end); + } + cA( + e, + (l, s) => { + l ? r(l) : t(s); + }, + { signal: n, end: i } + ); + }); + } + Qc.exports = { finished: dA, pipeline: hA }; +}); +var fd = _((oL, ud) => { + var { Buffer: bA } = require('buffer'), + { ObjectDefineProperty: Ie, ObjectKeys: rd, ReflectApply: nd } = G(), + { + promisify: { custom: id }, + } = _e(), + { streamReturningOperators: ed, promiseReturningOperators: td } = Zc(), + { + codes: { ERR_ILLEGAL_CONSTRUCTOR: od }, + } = Z(), + pA = Wo(), + { pipeline: ld } = fn(), + { destroyer: yA } = rt(), + sd = xe(), + $o = Fo(), + Uo = Se(), + F = (ud.exports = Yr().Stream); + F.isDisturbed = Uo.isDisturbed; + F.isErrored = Uo.isErrored; + F.isReadable = Uo.isReadable; + F.Readable = Xt(); + for (let e of rd(ed)) { + let r = function (...n) { + if (new.target) throw od(); + return F.Readable.from(nd(t, this, n)); + }; + Go = r; + let t = ed[e]; + Ie(r, 'name', { __proto__: null, value: t.name }), + Ie(r, 'length', { __proto__: null, value: t.length }), + Ie(F.Readable.prototype, e, { __proto__: null, value: r, enumerable: !1, configurable: !0, writable: !0 }); + } + var Go; + for (let e of rd(td)) { + let r = function (...i) { + if (new.target) throw od(); + return nd(t, this, i); + }; + Go = r; + let t = td[e]; + Ie(r, 'name', { __proto__: null, value: t.name }), + Ie(r, 'length', { __proto__: null, value: t.length }), + Ie(F.Readable.prototype, e, { __proto__: null, value: r, enumerable: !1, configurable: !0, writable: !0 }); + } + var Go; + F.Writable = _o(); + F.Duplex = me(); + F.Transform = To(); + F.PassThrough = Lo(); + F.pipeline = ld; + var { addAbortSignal: gA } = Jt(); + F.addAbortSignal = gA; + F.finished = sd; + F.destroy = yA; + F.compose = pA; + Ie(F, 'promises', { + __proto__: null, + configurable: !0, + enumerable: !0, + get() { + return $o; + }, + }); + Ie(ld, id, { + __proto__: null, + enumerable: !0, + get() { + return $o.pipeline; + }, + }); + Ie(sd, id, { + __proto__: null, + enumerable: !0, + get() { + return $o.finished; + }, + }); + F.Stream = F; + F._isUint8Array = function (t) { + return t instanceof Uint8Array; + }; + F._uint8ArrayToBuffer = function (t) { + return bA.from(t.buffer, t.byteOffset, t.byteLength); + }; +}); +var ad = _((lL, M) => { + 'use strict'; + var V = require('stream'); + if (V && process.env.READABLE_STREAM === 'disable') { + let e = V.promises; + (M.exports._uint8ArrayToBuffer = V._uint8ArrayToBuffer), + (M.exports._isUint8Array = V._isUint8Array), + (M.exports.isDisturbed = V.isDisturbed), + (M.exports.isErrored = V.isErrored), + (M.exports.isReadable = V.isReadable), + (M.exports.Readable = V.Readable), + (M.exports.Writable = V.Writable), + (M.exports.Duplex = V.Duplex), + (M.exports.Transform = V.Transform), + (M.exports.PassThrough = V.PassThrough), + (M.exports.addAbortSignal = V.addAbortSignal), + (M.exports.finished = V.finished), + (M.exports.destroy = V.destroy), + (M.exports.pipeline = V.pipeline), + (M.exports.compose = V.compose), + Object.defineProperty(V, 'promises', { + configurable: !0, + enumerable: !0, + get() { + return e; + }, + }), + (M.exports.Stream = V.Stream); + } else { + let e = fd(), + t = Fo(), + r = e.Readable.destroy; + (M.exports = e.Readable), + (M.exports._uint8ArrayToBuffer = e._uint8ArrayToBuffer), + (M.exports._isUint8Array = e._isUint8Array), + (M.exports.isDisturbed = e.isDisturbed), + (M.exports.isErrored = e.isErrored), + (M.exports.isReadable = e.isReadable), + (M.exports.Readable = e.Readable), + (M.exports.Writable = e.Writable), + (M.exports.Duplex = e.Duplex), + (M.exports.Transform = e.Transform), + (M.exports.PassThrough = e.PassThrough), + (M.exports.addAbortSignal = e.addAbortSignal), + (M.exports.finished = e.finished), + (M.exports.destroy = e.destroy), + (M.exports.destroy = r), + (M.exports.pipeline = e.pipeline), + (M.exports.compose = e.compose), + Object.defineProperty(e, 'promises', { + configurable: !0, + enumerable: !0, + get() { + return t; + }, + }), + (M.exports.Stream = e.Stream); + } + M.exports.default = M.exports; +}); +var hd = _((sL, dd) => { + 'use strict'; + var cd = Symbol.for('pino.metadata'), + _A = qf(), + { Duplex: wA } = ad(); + dd.exports = function (t, r = {}) { + let n = r.parse === 'lines', + i = typeof r.parseLine == 'function' ? r.parseLine : JSON.parse, + o = r.close || SA, + l = _A( + function (f) { + let u; + try { + u = i(f); + } catch (c) { + this.emit('unknown', f, c); + return; + } + if (u === null) { + this.emit('unknown', f, 'Null value ignored'); + return; + } + return ( + typeof u != 'object' && (u = { data: u, time: Date.now() }), + l[cd] && ((l.lastTime = u.time), (l.lastLevel = u.level), (l.lastObj = u)), + n ? f : u + ); + }, + { autoDestroy: !0 } + ); + (l._destroy = function (f, u) { + let c = o(f, u); + c && typeof c.then == 'function' && c.then(u, u); + }), + r.metadata !== !1 && ((l[cd] = !0), (l.lastTime = 0), (l.lastLevel = 0), (l.lastObj = null)); + let s = t(l); + if (s && typeof s.catch == 'function') + s.catch((f) => { + l.destroy(f); + }), + (s = null); + else if (r.enablePipelining && s) return wA.from({ writable: l, readable: s, objectMode: !0 }); + return l; + }; + function SA(e, t) { + process.nextTick(t, e); + } +}); +var De = _((uL, bd) => { + 'use strict'; + bd.exports = { + DATE_FORMAT: 'yyyy-mm-dd HH:MM:ss.l o', + DATE_FORMAT_SIMPLE: 'HH:MM:ss.l', + ERROR_LIKE_KEYS: ['err', 'error'], + MESSAGE_KEY: 'msg', + LEVEL_KEY: 'level', + LEVEL_LABEL: 'levelLabel', + TIMESTAMP_KEY: 'time', + LEVELS: { default: 'USERLVL', 60: 'FATAL', 50: 'ERROR', 40: 'WARN', 30: 'INFO', 20: 'DEBUG', 10: 'TRACE' }, + LEVEL_NAMES: { fatal: 60, error: 50, warn: 40, info: 30, debug: 20, trace: 10 }, + LOGGER_KEYS: ['pid', 'hostname', 'name', 'level', 'time', 'timestamp', 'caller'], + }; +}); +var Jo = _((fL, _d) => { + 'use strict'; + var { LEVELS: pd, LEVEL_NAMES: yd } = De(), + Ne = (e) => e, + Ho = { default: Ne, 60: Ne, 50: Ne, 40: Ne, 30: Ne, 20: Ne, 10: Ne, message: Ne, greyMessage: Ne }, + { createColors: EA } = Ln(), + Vo = EA({ useColor: !0 }), + { white: Ko, bgRed: mA, red: RA, yellow: AA, green: TA, blue: OA, gray: Yo, cyan: gd } = Vo, + bn = { default: Ko, 60: mA, 50: RA, 40: AA, 30: TA, 20: OA, 10: Yo, message: gd, greyMessage: Yo }; + function LA(e) { + return e.reduce( + function (t, [r, n]) { + return (t[r] = typeof Vo[n] == 'function' ? Vo[n] : Ko), t; + }, + { default: Ko, message: gd, greyMessage: Yo } + ); + } + function zo(e) { + return function (t, r, { customLevels: n, customLevelNames: i } = {}) { + let o = e ? n || pd : Object.assign({}, pd, n), + l = e ? i || yd : Object.assign({}, yd, i), + s = 'default'; + Number.isInteger(+t) + ? (s = Object.prototype.hasOwnProperty.call(o, t) ? t : s) + : (s = Object.prototype.hasOwnProperty.call(l, t.toLowerCase()) ? l[t.toLowerCase()] : s); + let f = o[s]; + return Object.prototype.hasOwnProperty.call(r, s) ? r[s](f) : r.default(f); + }; + } + function xA(e) { + let t = zo(e), + r = function (n, i) { + return t(n, Ho, i); + }; + return (r.message = Ho.message), (r.greyMessage = Ho.greyMessage), r; + } + function MA(e) { + let t = zo(e), + r = function (n, i) { + return t(n, bn, i); + }; + return (r.message = bn.message), (r.greyMessage = bn.greyMessage), r; + } + function vA(e, t) { + let r = LA(e), + n = t ? r : Object.assign({}, bn, r), + i = zo(t), + o = function (l, s) { + return i(l, n, s); + }; + return (o.message = o.message || n.message), (o.greyMessage = o.greyMessage || n.greyMessage), o; + } + _d.exports = function (t = !1, r, n) { + return t && r !== void 0 ? vA(r, n) : t ? MA(n) : xA(n); + }; +}); +var wd = _((aL, Xo) => { + 'use strict'; + if (typeof SharedArrayBuffer < 'u' && typeof Atomics < 'u') { + let t = function (r) { + if ((r > 0 && r < 1 / 0) === !1) + throw typeof r != 'number' && typeof r != 'bigint' + ? TypeError('sleep: ms must be a number') + : RangeError('sleep: ms must be a number that is greater than 0 but less than Infinity'); + Atomics.wait(e, 0, 0, Number(r)); + }, + e = new Int32Array(new SharedArrayBuffer(4)); + Xo.exports = t; + } else { + let e = function (t) { + if ((t > 0 && t < 1 / 0) === !1) + throw typeof t != 'number' && typeof t != 'bigint' + ? TypeError('sleep: ms must be a number') + : RangeError('sleep: ms must be a number that is greater than 0 but less than Infinity'); + let n = Date.now() + Number(t); + for (; n > Date.now(); ); + }; + Xo.exports = e; + } +}); +var Ld = _((cL, Od) => { + 'use strict'; + var $ = require('fs'), + IA = require('events'), + DA = require('util').inherits, + Sd = require('path'), + Zo = wd(), + pn = 100, + yn = Buffer.allocUnsafe(0), + NA = 16 * 1024, + Ed = 'buffer', + md = 'utf8'; + function Rd(e, t) { + (t._opening = !0), (t._writing = !0), (t._asyncDrainScheduled = !1); + function r(o, l) { + if (o) { + (t._reopening = !1), + (t._writing = !1), + (t._opening = !1), + t.sync + ? process.nextTick(() => { + t.listenerCount('error') > 0 && t.emit('error', o); + }) + : t.emit('error', o); + return; + } + (t.fd = l), + (t.file = e), + (t._reopening = !1), + (t._opening = !1), + (t._writing = !1), + t.sync ? process.nextTick(() => t.emit('ready')) : t.emit('ready'), + !(t._reopening || t.destroyed) && + ((!t._writing && t._len > t.minLength) || t._flushPending) && + t._actualWrite(); + } + let n = t.append ? 'a' : 'w', + i = t.mode; + if (t.sync) + try { + t.mkdir && $.mkdirSync(Sd.dirname(e), { recursive: !0 }); + let o = $.openSync(e, n, i); + r(null, o); + } catch (o) { + throw (r(o), o); + } + else + t.mkdir + ? $.mkdir(Sd.dirname(e), { recursive: !0 }, (o) => { + if (o) return r(o); + $.open(e, n, i, r); + }) + : $.open(e, n, i, r); + } + function ce(e) { + if (!(this instanceof ce)) return new ce(e); + let { + fd: t, + dest: r, + minLength: n, + maxLength: i, + maxWrite: o, + sync: l, + append: s = !0, + mkdir: f, + retryEAGAIN: u, + fsync: c, + contentMode: a, + mode: b, + } = e || {}; + (t = t || r), + (this._len = 0), + (this.fd = -1), + (this._bufs = []), + (this._lens = []), + (this._writing = !1), + (this._ending = !1), + (this._reopening = !1), + (this._asyncDrainScheduled = !1), + (this._flushPending = !1), + (this._hwm = Math.max(n || 0, 16387)), + (this.file = null), + (this.destroyed = !1), + (this.minLength = n || 0), + (this.maxLength = i || 0), + (this.maxWrite = o || NA), + (this.sync = l || !1), + (this.writable = !0), + (this._fsync = c || !1), + (this.append = s || !1), + (this.mode = b), + (this.retryEAGAIN = u || (() => !0)), + (this.mkdir = f || !1); + let h, d; + if (a === Ed) + (this._writingBuf = yn), + (this.write = CA), + (this.flush = kA), + (this.flushSync = BA), + (this._actualWrite = $A), + (h = () => $.writeSync(this.fd, this._writingBuf)), + (d = () => $.write(this.fd, this._writingBuf, this.release)); + else if (a === void 0 || a === md) + (this._writingBuf = ''), + (this.write = qA), + (this.flush = WA), + (this.flushSync = jA), + (this._actualWrite = FA), + (h = () => $.writeSync(this.fd, this._writingBuf, 'utf8')), + (d = () => $.write(this.fd, this._writingBuf, 'utf8', this.release)); + else throw new Error(`SonicBoom supports "${md}" and "${Ed}", but passed ${a}`); + if (typeof t == 'number') (this.fd = t), process.nextTick(() => this.emit('ready')); + else if (typeof t == 'string') Rd(t, this); + else throw new Error('SonicBoom supports only file descriptors and files'); + if (this.minLength >= this.maxWrite) + throw new Error(`minLength should be smaller than maxWrite (${this.maxWrite})`); + (this.release = (S, y) => { + if (S) { + if ( + (S.code === 'EAGAIN' || S.code === 'EBUSY') && + this.retryEAGAIN(S, this._writingBuf.length, this._len - this._writingBuf.length) + ) + if (this.sync) + try { + Zo(pn), this.release(void 0, 0); + } catch (g) { + this.release(g); + } + else setTimeout(d, pn); + else (this._writing = !1), this.emit('error', S); + return; + } + if ( + (this.emit('write', y), + (this._len -= y), + this._len < 0 && (this._len = 0), + (this._writingBuf = this._writingBuf.slice(y)), + this._writingBuf.length) + ) { + if (!this.sync) { + d(); + return; + } + try { + do { + let g = h(); + (this._len -= g), (this._writingBuf = this._writingBuf.slice(g)); + } while (this._writingBuf.length); + } catch (g) { + this.release(g); + return; + } + } + this._fsync && $.fsyncSync(this.fd); + let w = this._len; + this._reopening + ? ((this._writing = !1), (this._reopening = !1), this.reopen()) + : w > this.minLength + ? this._actualWrite() + : this._ending + ? w > 0 + ? this._actualWrite() + : ((this._writing = !1), gn(this)) + : ((this._writing = !1), + this.sync + ? this._asyncDrainScheduled || ((this._asyncDrainScheduled = !0), process.nextTick(PA, this)) + : this.emit('drain')); + }), + this.on('newListener', function (S) { + S === 'drain' && (this._asyncDrainScheduled = !1); + }); + } + function PA(e) { + e.listenerCount('drain') > 0 && ((e._asyncDrainScheduled = !1), e.emit('drain')); + } + DA(ce, IA); + function Ad(e, t) { + return e.length === 0 ? yn : e.length === 1 ? e[0] : Buffer.concat(e, t); + } + function qA(e) { + if (this.destroyed) throw new Error('SonicBoom destroyed'); + let t = this._len + e.length, + r = this._bufs; + return this.maxLength && t > this.maxLength + ? (this.emit('drop', e), this._len < this._hwm) + : (r.length === 0 || r[r.length - 1].length + e.length > this.maxWrite ? r.push('' + e) : (r[r.length - 1] += e), + (this._len = t), + !this._writing && this._len >= this.minLength && this._actualWrite(), + this._len < this._hwm); + } + function CA(e) { + if (this.destroyed) throw new Error('SonicBoom destroyed'); + let t = this._len + e.length, + r = this._bufs, + n = this._lens; + return this.maxLength && t > this.maxLength + ? (this.emit('drop', e), this._len < this._hwm) + : (r.length === 0 || n[n.length - 1] + e.length > this.maxWrite + ? (r.push([e]), n.push(e.length)) + : (r[r.length - 1].push(e), (n[n.length - 1] += e.length)), + (this._len = t), + !this._writing && this._len >= this.minLength && this._actualWrite(), + this._len < this._hwm); + } + function Td(e) { + this._flushPending = !0; + let t = () => { + this._fsync + ? ((this._flushPending = !1), e()) + : $.fsync(this.fd, (n) => { + (this._flushPending = !1), e(n); + }), + this.off('error', r); + }, + r = (n) => { + (this._flushPending = !1), e(n), this.off('drain', t); + }; + this.once('drain', t), this.once('error', r); + } + function WA(e) { + if (e != null && typeof e != 'function') throw new Error('flush cb must be a function'); + if (this.destroyed) { + let t = new Error('SonicBoom destroyed'); + if (e) { + e(t); + return; + } + throw t; + } + if (this.minLength <= 0) { + e?.(); + return; + } + e && Td.call(this, e), !this._writing && (this._bufs.length === 0 && this._bufs.push(''), this._actualWrite()); + } + function kA(e) { + if (e != null && typeof e != 'function') throw new Error('flush cb must be a function'); + if (this.destroyed) { + let t = new Error('SonicBoom destroyed'); + if (e) { + e(t); + return; + } + throw t; + } + if (this.minLength <= 0) { + e?.(); + return; + } + e && Td.call(this, e), + !this._writing && (this._bufs.length === 0 && (this._bufs.push([]), this._lens.push(0)), this._actualWrite()); + } + ce.prototype.reopen = function (e) { + if (this.destroyed) throw new Error('SonicBoom destroyed'); + if (this._opening) { + this.once('ready', () => { + this.reopen(e); + }); + return; + } + if (this._ending) return; + if (!this.file) throw new Error('Unable to reopen a file descriptor, you must pass a file to SonicBoom'); + if (((this._reopening = !0), this._writing)) return; + let t = this.fd; + this.once('ready', () => { + t !== this.fd && + $.close(t, (r) => { + if (r) return this.emit('error', r); + }); + }), + Rd(e || this.file, this); + }; + ce.prototype.end = function () { + if (this.destroyed) throw new Error('SonicBoom destroyed'); + if (this._opening) { + this.once('ready', () => { + this.end(); + }); + return; + } + this._ending || + ((this._ending = !0), !this._writing && (this._len > 0 && this.fd >= 0 ? this._actualWrite() : gn(this))); + }; + function jA() { + if (this.destroyed) throw new Error('SonicBoom destroyed'); + if (this.fd < 0) throw new Error('sonic boom is not ready yet'); + !this._writing && this._writingBuf.length > 0 && (this._bufs.unshift(this._writingBuf), (this._writingBuf = '')); + let e = ''; + for (; this._bufs.length || e; ) { + e.length <= 0 && (e = this._bufs[0]); + try { + let t = $.writeSync(this.fd, e, 'utf8'); + (e = e.slice(t)), (this._len = Math.max(this._len - t, 0)), e.length <= 0 && this._bufs.shift(); + } catch (t) { + if ((t.code === 'EAGAIN' || t.code === 'EBUSY') && !this.retryEAGAIN(t, e.length, this._len - e.length)) + throw t; + Zo(pn); + } + } + try { + $.fsyncSync(this.fd); + } catch {} + } + function BA() { + if (this.destroyed) throw new Error('SonicBoom destroyed'); + if (this.fd < 0) throw new Error('sonic boom is not ready yet'); + !this._writing && this._writingBuf.length > 0 && (this._bufs.unshift([this._writingBuf]), (this._writingBuf = yn)); + let e = yn; + for (; this._bufs.length || e.length; ) { + e.length <= 0 && (e = Ad(this._bufs[0], this._lens[0])); + try { + let t = $.writeSync(this.fd, e); + (e = e.subarray(t)), + (this._len = Math.max(this._len - t, 0)), + e.length <= 0 && (this._bufs.shift(), this._lens.shift()); + } catch (t) { + if ((t.code === 'EAGAIN' || t.code === 'EBUSY') && !this.retryEAGAIN(t, e.length, this._len - e.length)) + throw t; + Zo(pn); + } + } + } + ce.prototype.destroy = function () { + this.destroyed || gn(this); + }; + function FA() { + let e = this.release; + if (((this._writing = !0), (this._writingBuf = this._writingBuf || this._bufs.shift() || ''), this.sync)) + try { + let t = $.writeSync(this.fd, this._writingBuf, 'utf8'); + e(null, t); + } catch (t) { + e(t); + } + else $.write(this.fd, this._writingBuf, 'utf8', e); + } + function $A() { + let e = this.release; + if ( + ((this._writing = !0), + (this._writingBuf = this._writingBuf.length ? this._writingBuf : Ad(this._bufs.shift(), this._lens.shift())), + this.sync) + ) + try { + let t = $.writeSync(this.fd, this._writingBuf); + e(null, t); + } catch (t) { + e(t); + } + else $.write(this.fd, this._writingBuf, e); + } + function gn(e) { + if (e.fd === -1) { + e.once('ready', gn.bind(null, e)); + return; + } + (e.destroyed = !0), (e._bufs = []), (e._lens = []), $.fsync(e.fd, t); + function t() { + e.fd !== 1 && e.fd !== 2 ? $.close(e.fd, r) : r(); + } + function r(n) { + if (n) { + e.emit('error', n); + return; + } + e._ending && !e._writing && e.emit('finish'), e.emit('close'); + } + } + ce.SonicBoom = ce; + ce.default = ce; + Od.exports = ce; +}); +var Qo = _((dL, xd) => { + 'use strict'; + xd.exports = function () {}; +}); +var qd = _((hL, Pd) => { + 'use strict'; + var $e = { exit: [], beforeExit: [] }, + Md = { exit: GA, beforeExit: HA }, + vd = new FinalizationRegistry(VA); + function UA(e) { + $e[e].length > 0 || process.on(e, Md[e]); + } + function Id(e) { + $e[e].length > 0 || process.removeListener(e, Md[e]); + } + function GA() { + Dd('exit'); + } + function HA() { + Dd('beforeExit'); + } + function Dd(e) { + for (let t of $e[e]) { + let r = t.deref(), + n = t.fn; + r !== void 0 && n(r, e); + } + } + function VA(e) { + for (let t of ['exit', 'beforeExit']) { + let r = $e[t].indexOf(e); + $e[t].splice(r, r + 1), Id(t); + } + } + function Nd(e, t, r) { + if (t === void 0) throw new Error("the object can't be undefined"); + UA(e); + let n = new WeakRef(t); + (n.fn = r), vd.register(t, n), $e[e].push(n); + } + function KA(e, t) { + Nd('exit', e, t); + } + function YA(e, t) { + Nd('beforeExit', e, t); + } + function zA(e) { + vd.unregister(e); + for (let t of ['exit', 'beforeExit']) + ($e[t] = $e[t].filter((r) => { + let n = r.deref(); + return n && n !== e; + })), + Id(t); + } + Pd.exports = { register: KA, registerBeforeExit: YA, unregister: zA }; +}); +var Wd = _((bL, Cd) => { + 'use strict'; + Cd.exports = ZA; + var { isMainThread: JA } = require('worker_threads'), + XA = Ld(), + _n = Qo(); + function ZA(e) { + let t = new XA(e); + return t.on('error', r), !process.env.NODE_V8_COVERAGE && !e.sync && JA && QA(t), t; + function r(n) { + if (n.code === 'EPIPE') { + (t.write = _n), (t.end = _n), (t.flushSync = _n), (t.destroy = _n); + return; + } + t.removeListener('error', r); + } + } + function QA(e) { + if (global.WeakRef && global.WeakMap && global.FinalizationRegistry) { + let t = qd(); + t.register(e, eT), + e.on('close', function () { + t.unregister(e); + }); + } + } + function eT(e, t) { + e.destroyed || + (t === 'beforeExit' + ? (e.flush(), + e.on('drain', function () { + e.end(); + })) + : e.flushSync()); + } +}); +var wn = _((pL, kd) => { + 'use strict'; + kd.exports = tT; + function tT(e) { + return e instanceof Date && !Number.isNaN(e.getTime()); + } +}); +var el = _((yL, jd) => { + 'use strict'; + jd.exports = nT; + var rT = wn(); + function nT(e) { + let t = new Date(e); + return rT(t) || (t = new Date(+e)), t; + } +}); +var Sn = _((gL, Bd) => { + 'use strict'; + Bd.exports = iT; + function iT(e) { + let t = [], + r = !1, + n = ''; + for (let i = 0; i < e.length; i++) { + let o = e.charAt(i); + if (o === '\\') { + r = !0; + continue; + } + if (r) { + (r = !1), (n += o); + continue; + } + if (o === '.') { + t.push(n), (n = ''); + continue; + } + n += o; + } + return n.length && t.push(n), t; + } +}); +var Mt = _((_L, Fd) => { + 'use strict'; + Fd.exports = lT; + var oT = Sn(); + function lT(e, t) { + let r = Array.isArray(t) ? t : oT(t); + for (let n of r) { + if (!Object.prototype.hasOwnProperty.call(e, n)) return; + e = e[n]; + } + return e; + } +}); +var tl = _((wL, $d) => { + 'use strict'; + $d.exports = fT; + var sT = Mt(), + uT = Sn(); + function fT(e, t) { + let r = uT(t), + n = r.pop(); + (e = sT(e, r)), e !== null && typeof e == 'object' && Object.prototype.hasOwnProperty.call(e, n) && delete e[n]; + } +}); +var Qd = _((vt) => { + 'use strict'; + Object.defineProperty(vt, '__esModule', { value: !0 }); + var aT = Function.prototype.toString, + rl = Object.create, + cT = Object.prototype.toString, + dT = (function () { + function e() { + (this._keys = []), (this._values = []); + } + return ( + (e.prototype.has = function (t) { + return !!~this._keys.indexOf(t); + }), + (e.prototype.get = function (t) { + return this._values[this._keys.indexOf(t)]; + }), + (e.prototype.set = function (t, r) { + this._keys.push(t), this._values.push(r); + }), + e + ); + })(); + function hT() { + return new dT(); + } + function bT() { + return new WeakMap(); + } + var pT = typeof WeakMap < 'u' ? bT : hT; + function il(e) { + if (!e) return rl(null); + var t = e.constructor; + if (t === Object) return e === Object.prototype ? {} : rl(e); + if (~aT.call(t).indexOf('[native code]')) + try { + return new t(); + } catch {} + return rl(e); + } + function yT(e) { + var t = ''; + return ( + e.global && (t += 'g'), + e.ignoreCase && (t += 'i'), + e.multiline && (t += 'm'), + e.unicode && (t += 'u'), + e.sticky && (t += 'y'), + t + ); + } + function gT(e) { + return e.flags; + } + var _T = /test/g.flags === 'g' ? gT : yT; + function Ud(e) { + var t = cT.call(e); + return t.substring(8, t.length - 1); + } + function wT(e) { + return e[Symbol.toStringTag] || Ud(e); + } + var ST = typeof Symbol < 'u' ? wT : Ud, + ET = Object.defineProperty, + mT = Object.getOwnPropertyDescriptor, + Gd = Object.getOwnPropertyNames, + ol = Object.getOwnPropertySymbols, + Hd = Object.prototype, + Vd = Hd.hasOwnProperty, + RT = Hd.propertyIsEnumerable, + Kd = typeof ol == 'function'; + function AT(e) { + return Gd(e).concat(ol(e)); + } + var TT = Kd ? AT : Gd; + function mn(e, t, r) { + for (var n = TT(e), i = 0, o = n.length, l = void 0, s = void 0; i < o; ++i) + if (((l = n[i]), !(l === 'callee' || l === 'caller'))) { + if (((s = mT(e, l)), !s)) { + t[l] = r.copier(e[l], r); + continue; + } + !s.get && !s.set && (s.value = r.copier(s.value, r)); + try { + ET(t, l, s); + } catch { + t[l] = s.value; + } + } + return t; + } + function OT(e, t) { + var r = new t.Constructor(); + t.cache.set(e, r); + for (var n = 0, i = e.length; n < i; ++n) r[n] = t.copier(e[n], t); + return r; + } + function LT(e, t) { + var r = new t.Constructor(); + return t.cache.set(e, r), mn(e, r, t); + } + function Yd(e, t) { + return e.slice(0); + } + function xT(e, t) { + return e.slice(0, e.size, e.type); + } + function MT(e, t) { + return new t.Constructor(Yd(e.buffer)); + } + function vT(e, t) { + return new t.Constructor(e.getTime()); + } + function zd(e, t) { + var r = new t.Constructor(); + return ( + t.cache.set(e, r), + e.forEach(function (n, i) { + r.set(i, t.copier(n, t)); + }), + r + ); + } + function IT(e, t) { + return mn(e, zd(e, t), t); + } + function DT(e, t) { + var r = il(t.prototype); + t.cache.set(e, r); + for (var n in e) Vd.call(e, n) && (r[n] = t.copier(e[n], t)); + return r; + } + function NT(e, t) { + var r = il(t.prototype); + t.cache.set(e, r); + for (var n in e) Vd.call(e, n) && (r[n] = t.copier(e[n], t)); + for (var i = ol(e), o = 0, l = i.length, s = void 0; o < l; ++o) + (s = i[o]), RT.call(e, s) && (r[s] = t.copier(e[s], t)); + return r; + } + var PT = Kd ? NT : DT; + function qT(e, t) { + var r = il(t.prototype); + return t.cache.set(e, r), mn(e, r, t); + } + function nl(e, t) { + return new t.Constructor(e.valueOf()); + } + function CT(e, t) { + var r = new t.Constructor(e.source, _T(e)); + return (r.lastIndex = e.lastIndex), r; + } + function En(e, t) { + return e; + } + function Jd(e, t) { + var r = new t.Constructor(); + return ( + t.cache.set(e, r), + e.forEach(function (n) { + r.add(t.copier(n, t)); + }), + r + ); + } + function WT(e, t) { + return mn(e, Jd(e, t), t); + } + var kT = Array.isArray, + ll = Object.assign, + jT = + Object.getPrototypeOf || + function (e) { + return e.__proto__; + }, + Xd = { + array: OT, + arrayBuffer: Yd, + blob: xT, + dataView: MT, + date: vT, + error: En, + map: zd, + object: PT, + regExp: CT, + set: Jd, + }, + BT = ll({}, Xd, { array: LT, map: IT, object: qT, set: WT }); + function FT(e) { + return { + Arguments: e.object, + Array: e.array, + ArrayBuffer: e.arrayBuffer, + Blob: e.blob, + Boolean: nl, + DataView: e.dataView, + Date: e.date, + Error: e.error, + Float32Array: e.arrayBuffer, + Float64Array: e.arrayBuffer, + Int8Array: e.arrayBuffer, + Int16Array: e.arrayBuffer, + Int32Array: e.arrayBuffer, + Map: e.map, + Number: nl, + Object: e.object, + Promise: En, + RegExp: e.regExp, + Set: e.set, + String: nl, + WeakMap: En, + WeakSet: En, + Uint8Array: e.arrayBuffer, + Uint8ClampedArray: e.arrayBuffer, + Uint16Array: e.arrayBuffer, + Uint32Array: e.arrayBuffer, + Uint64Array: e.arrayBuffer, + }; + } + function sl(e) { + var t = ll({}, Xd, e), + r = FT(t), + n = r.Array, + i = r.Object; + function o(l, s) { + if (((s.prototype = s.Constructor = void 0), !l || typeof l != 'object')) return l; + if (s.cache.has(l)) return s.cache.get(l); + if ( + ((s.prototype = jT(l)), + (s.Constructor = s.prototype && s.prototype.constructor), + !s.Constructor || s.Constructor === Object) + ) + return i(l, s); + if (kT(l)) return n(l, s); + var f = r[ST(l)]; + return f ? f(l, s) : typeof l.then == 'function' ? l : i(l, s); + } + return function (s) { + return o(s, { Constructor: void 0, cache: pT(), copier: o, prototype: void 0 }); + }; + } + function Zd(e) { + return sl(ll({}, BT, e)); + } + var $T = Zd({}), + UT = sl({}); + vt.copyStrict = $T; + vt.createCopier = sl; + vt.createStrictCopier = Zd; + vt.default = UT; +}); +var ul = _((EL, eh) => { + 'use strict'; + eh.exports = KT; + var { createCopier: GT } = Qd(), + HT = GT({}), + VT = tl(); + function KT({ log: e, context: t }) { + let { ignoreKeys: r, includeKeys: n } = t, + i = HT(e); + if (n) { + let o = {}; + return ( + n.forEach((l) => { + o[l] = i[l]; + }), + o + ); + } + return ( + r.forEach((o) => { + VT(i, o); + }), + i + ); + } +}); +var rh = _((fl, th) => { + 'use strict'; + function It(e) { + '@babel/helpers - typeof'; + return ( + typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol' + ? (It = function (r) { + return typeof r; + }) + : (It = function (r) { + return r && typeof Symbol == 'function' && r.constructor === Symbol && r !== Symbol.prototype + ? 'symbol' + : typeof r; + }), + It(e) + ); + } + (function (e) { + var t = arguments, + r = (function () { + var f = /d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g, + u = + /\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g, + c = /[^-+\dA-Z]/g; + return function (a, b, h, d) { + if ( + (t.length === 1 && s(a) === 'string' && !/\d/.test(a) && ((b = a), (a = void 0)), + (a = a || a === 0 ? a : new Date()), + a instanceof Date || (a = new Date(a)), + isNaN(a)) + ) + throw TypeError('Invalid date'); + b = String(r.masks[b] || b || r.masks.default); + var S = b.slice(0, 4); + (S === 'UTC:' || S === 'GMT:') && ((b = b.slice(4)), (h = !0), S === 'GMT:' && (d = !0)); + var y = function () { + return h ? 'getUTC' : 'get'; + }, + w = function () { + return a[y() + 'Date'](); + }, + g = function () { + return a[y() + 'Day'](); + }, + p = function () { + return a[y() + 'Month'](); + }, + A = function () { + return a[y() + 'FullYear'](); + }, + m = function () { + return a[y() + 'Hours'](); + }, + v = function () { + return a[y() + 'Minutes'](); + }, + j = function () { + return a[y() + 'Seconds'](); + }, + I = function () { + return a[y() + 'Milliseconds'](); + }, + P = function () { + return h ? 0 : a.getTimezoneOffset(); + }, + ee = function () { + return o(a); + }, + te = function () { + return l(a); + }, + C = { + d: function () { + return w(); + }, + dd: function () { + return n(w()); + }, + ddd: function () { + return r.i18n.dayNames[g()]; + }, + DDD: function () { + return i({ y: A(), m: p(), d: w(), _: y(), dayName: r.i18n.dayNames[g()], short: !0 }); + }, + dddd: function () { + return r.i18n.dayNames[g() + 7]; + }, + DDDD: function () { + return i({ y: A(), m: p(), d: w(), _: y(), dayName: r.i18n.dayNames[g() + 7] }); + }, + m: function () { + return p() + 1; + }, + mm: function () { + return n(p() + 1); + }, + mmm: function () { + return r.i18n.monthNames[p()]; + }, + mmmm: function () { + return r.i18n.monthNames[p() + 12]; + }, + yy: function () { + return String(A()).slice(2); + }, + yyyy: function () { + return n(A(), 4); + }, + h: function () { + return m() % 12 || 12; + }, + hh: function () { + return n(m() % 12 || 12); + }, + H: function () { + return m(); + }, + HH: function () { + return n(m()); + }, + M: function () { + return v(); + }, + MM: function () { + return n(v()); + }, + s: function () { + return j(); + }, + ss: function () { + return n(j()); + }, + l: function () { + return n(I(), 3); + }, + L: function () { + return n(Math.floor(I() / 10)); + }, + t: function () { + return m() < 12 ? r.i18n.timeNames[0] : r.i18n.timeNames[1]; + }, + tt: function () { + return m() < 12 ? r.i18n.timeNames[2] : r.i18n.timeNames[3]; + }, + T: function () { + return m() < 12 ? r.i18n.timeNames[4] : r.i18n.timeNames[5]; + }, + TT: function () { + return m() < 12 ? r.i18n.timeNames[6] : r.i18n.timeNames[7]; + }, + Z: function () { + return d + ? 'GMT' + : h + ? 'UTC' + : (String(a).match(u) || ['']) + .pop() + .replace(c, '') + .replace(/GMT\+0000/g, 'UTC'); + }, + o: function () { + return (P() > 0 ? '-' : '+') + n(Math.floor(Math.abs(P()) / 60) * 100 + (Math.abs(P()) % 60), 4); + }, + p: function () { + return ( + (P() > 0 ? '-' : '+') + + n(Math.floor(Math.abs(P()) / 60), 2) + + ':' + + n(Math.floor(Math.abs(P()) % 60), 2) + ); + }, + S: function () { + return ['th', 'st', 'nd', 'rd'][w() % 10 > 3 ? 0 : (((w() % 100) - (w() % 10) != 10) * w()) % 10]; + }, + W: function () { + return ee(); + }, + WW: function () { + return n(ee()); + }, + N: function () { + return te(); + }, + }; + return b.replace(f, function (E) { + return E in C ? C[E]() : E.slice(1, E.length - 1); + }); + }; + })(); + (r.masks = { + default: 'ddd mmm dd yyyy HH:MM:ss', + shortDate: 'm/d/yy', + paddedShortDate: 'mm/dd/yyyy', + mediumDate: 'mmm d, yyyy', + longDate: 'mmmm d, yyyy', + fullDate: 'dddd, mmmm d, yyyy', + shortTime: 'h:MM TT', + mediumTime: 'h:MM:ss TT', + longTime: 'h:MM:ss TT Z', + isoDate: 'yyyy-mm-dd', + isoTime: 'HH:MM:ss', + isoDateTime: "yyyy-mm-dd'T'HH:MM:sso", + isoUtcDateTime: "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'", + expiresHeaderFormat: 'ddd, dd mmm yyyy HH:MM:ss Z', + }), + (r.i18n = { + dayNames: [ + 'Sun', + 'Mon', + 'Tue', + 'Wed', + 'Thu', + 'Fri', + 'Sat', + 'Sunday', + 'Monday', + 'Tuesday', + 'Wednesday', + 'Thursday', + 'Friday', + 'Saturday', + ], + monthNames: [ + 'Jan', + 'Feb', + 'Mar', + 'Apr', + 'May', + 'Jun', + 'Jul', + 'Aug', + 'Sep', + 'Oct', + 'Nov', + 'Dec', + 'January', + 'February', + 'March', + 'April', + 'May', + 'June', + 'July', + 'August', + 'September', + 'October', + 'November', + 'December', + ], + timeNames: ['a', 'p', 'am', 'pm', 'A', 'P', 'AM', 'PM'], + }); + var n = function (u, c) { + for (u = String(u), c = c || 2; u.length < c; ) u = '0' + u; + return u; + }, + i = function (u) { + var c = u.y, + a = u.m, + b = u.d, + h = u._, + d = u.dayName, + S = u.short, + y = S === void 0 ? !1 : S, + w = new Date(), + g = new Date(); + g.setDate(g[h + 'Date']() - 1); + var p = new Date(); + p.setDate(p[h + 'Date']() + 1); + var A = function () { + return w[h + 'Date'](); + }, + m = function () { + return w[h + 'Month'](); + }, + v = function () { + return w[h + 'FullYear'](); + }, + j = function () { + return g[h + 'Date'](); + }, + I = function () { + return g[h + 'Month'](); + }, + P = function () { + return g[h + 'FullYear'](); + }, + ee = function () { + return p[h + 'Date'](); + }, + te = function () { + return p[h + 'Month'](); + }, + C = function () { + return p[h + 'FullYear'](); + }; + return v() === c && m() === a && A() === b + ? y + ? 'Tdy' + : 'Today' + : P() === c && I() === a && j() === b + ? y + ? 'Ysd' + : 'Yesterday' + : C() === c && te() === a && ee() === b + ? y + ? 'Tmw' + : 'Tomorrow' + : d; + }, + o = function (u) { + var c = new Date(u.getFullYear(), u.getMonth(), u.getDate()); + c.setDate(c.getDate() - ((c.getDay() + 6) % 7) + 3); + var a = new Date(c.getFullYear(), 0, 4); + a.setDate(a.getDate() - ((a.getDay() + 6) % 7) + 3); + var b = c.getTimezoneOffset() - a.getTimezoneOffset(); + c.setHours(c.getHours() - b); + var h = (c - a) / (864e5 * 7); + return 1 + Math.floor(h); + }, + l = function (u) { + var c = u.getDay(); + return c === 0 && (c = 7), c; + }, + s = function (u) { + return u === null + ? 'null' + : u === void 0 + ? 'undefined' + : It(u) !== 'object' + ? It(u) + : Array.isArray(u) + ? 'array' + : {}.toString.call(u).slice(8, -1).toLowerCase(); + }; + typeof define == 'function' && define.amd + ? define(function () { + return r; + }) + : (typeof fl > 'u' ? 'undefined' : It(fl)) === 'object' + ? (th.exports = r) + : (e.dateFormat = r); + })(void 0); +}); +var al = _((mL, nh) => { + 'use strict'; + nh.exports = ZT; + var { DATE_FORMAT: YT, DATE_FORMAT_SIMPLE: zT } = De(), + ir = rh(), + JT = el(), + XT = wn(); + function ZT(e, t = !1) { + if (t === !1) return e; + let r = JT(e); + if (!XT(r)) return e; + if (t === !0) return ir(r, zT); + let n = t.toUpperCase(); + if (n === 'SYS:STANDARD') return ir(r, YT); + let i = n.substr(0, 4); + return i === 'SYS:' || i === 'UTC:' ? (i === 'UTC:' ? ir(r, t) : ir(r, t.slice(4))) : ir(r, `UTC:${t}`); + } +}); +var cl = _((RL, ih) => { + 'use strict'; + ih.exports = QT; + function QT(e) { + return e + ? typeof e == 'string' + ? e.split(',').reduce((t, r, n) => { + let [i, o = n] = r.split(':'); + return (t[i.toLowerCase()] = o), t; + }, {}) + : Object.prototype.toString.call(e) === '[object Object]' + ? Object.keys(e).reduce((t, r) => ((t[r.toLowerCase()] = e[r]), t), {}) + : {} + : {}; + } +}); +var dl = _((AL, oh) => { + 'use strict'; + oh.exports = e0; + function e0(e) { + return e + ? typeof e == 'string' + ? e.split(',').reduce( + (t, r, n) => { + let [i, o = n] = r.split(':'); + return (t[o] = i.toUpperCase()), t; + }, + { default: 'USERLVL' } + ) + : Object.prototype.toString.call(e) === '[object Object]' + ? Object.keys(e).reduce((t, r) => ((t[e[r]] = r.toUpperCase()), t), { default: 'USERLVL' }) + : {} + : {}; + } +}); +var hl = _((TL, lh) => { + 'use strict'; + lh.exports = r0; + var t0 = Mt(); + function r0(e, t) { + return ( + (e = e.replace(/{if (.*?)}(.*?){end}/g, r)), + (e = e.replace(/{if (.*?)}/g, '')), + (e = e.replace(/{end}/g, '')), + e.replace(/\s+/g, ' ').trim() + ); + function r(n, i, o) { + let l = t0(t, i); + return l && o.includes(i) ? o.replace(new RegExp('{' + i + '}', 'g'), l) : ''; + } + } +}); +var Rn = _((OL, sh) => { + 'use strict'; + sh.exports = n0; + function n0(e) { + return Object.prototype.toString.apply(e) === '[object Object]'; + } +}); +var or = _((LL, uh) => { + 'use strict'; + uh.exports = i0; + function i0({ + input: e, + ident: t = ' ', + eol: r = ` +`, + }) { + let n = e.split(/\r?\n/); + for (let i = 1; i < n.length; i += 1) n[i] = t + n[i]; + return n.join(r); + } +}); +var ch = _((xL, ah) => { + 'use strict'; + ah.exports = u0; + var { LEVEL_NAMES: o0 } = De(), + fh = Jo(), + l0 = dl(), + s0 = cl(); + function u0(e) { + let t = e.crlf + ? `\r +` + : ` +`, + r = ' ', + { + customPrettifiers: n, + errorLikeObjectKeys: i, + hideObject: o, + levelFirst: l, + levelKey: s, + levelLabel: f, + messageFormat: u, + messageKey: c, + minimumLevel: a, + singleLine: b, + timestampKey: h, + translateTime: d, + } = e, + S = e.errorProps.split(','), + y = typeof e.useOnlyCustomProps == 'boolean' ? e.useOnlyCustomProps : e.useOnlyCustomProps === 'true', + w = l0(e.customLevels), + g = s0(e.customLevels), + p; + e.customColors && + (p = e.customColors.split(',').reduce((P, ee) => { + let [te, C] = ee.split(':'), + Tl = (y ? e.customLevels : g[te] !== void 0) ? g[te] : o0[te], + kh = Tl !== void 0 ? Tl : te; + return P.push([kh, C]), P; + }, [])); + let A = { customLevels: w, customLevelNames: g }; + y === !0 && !e.customLevels && ((A.customLevels = void 0), (A.customLevelNames = void 0)); + let m = e.include !== void 0 ? new Set(e.include.split(',')) : void 0, + v = !m && e.ignore ? new Set(e.ignore.split(',')) : void 0, + j = fh(e.colorize, p, y), + I = e.colorizeObjects ? j : fh(!1, [], !1); + return { + EOL: t, + IDENT: r, + colorizer: j, + customColors: p, + customLevelNames: g, + customLevels: w, + customPrettifiers: n, + customProperties: A, + errorLikeObjectKeys: i, + errorProps: S, + hideObject: o, + ignoreKeys: v, + includeKeys: m, + levelFirst: l, + levelKey: s, + levelLabel: f, + messageFormat: u, + messageKey: c, + minimumLevel: a, + objectColorizer: I, + singleLine: b, + timestampKey: h, + translateTime: d, + useOnlyCustomProps: y, + }; + } +}); +var gh = _((ML, yh) => { + yh.exports = lr; + lr.default = lr; + lr.stable = bh; + lr.stableStringify = bh; + var An = '[...]', + dh = '[Circular]', + ct = [], + at = []; + function hh() { + return { depthLimit: Number.MAX_SAFE_INTEGER, edgesLimit: Number.MAX_SAFE_INTEGER }; + } + function lr(e, t, r, n) { + typeof n > 'u' && (n = hh()), bl(e, '', 0, [], void 0, 0, n); + var i; + try { + at.length === 0 ? (i = JSON.stringify(e, t, r)) : (i = JSON.stringify(e, ph(t), r)); + } catch { + return JSON.stringify('[unable to serialize, circular reference is too complex to analyze]'); + } finally { + for (; ct.length !== 0; ) { + var o = ct.pop(); + o.length === 4 ? Object.defineProperty(o[0], o[1], o[3]) : (o[0][o[1]] = o[2]); + } + } + return i; + } + function Dt(e, t, r, n) { + var i = Object.getOwnPropertyDescriptor(n, r); + i.get !== void 0 + ? i.configurable + ? (Object.defineProperty(n, r, { value: e }), ct.push([n, r, t, i])) + : at.push([t, r, e]) + : ((n[r] = e), ct.push([n, r, t])); + } + function bl(e, t, r, n, i, o, l) { + o += 1; + var s; + if (typeof e == 'object' && e !== null) { + for (s = 0; s < n.length; s++) + if (n[s] === e) { + Dt(dh, e, t, i); + return; + } + if (typeof l.depthLimit < 'u' && o > l.depthLimit) { + Dt(An, e, t, i); + return; + } + if (typeof l.edgesLimit < 'u' && r + 1 > l.edgesLimit) { + Dt(An, e, t, i); + return; + } + if ((n.push(e), Array.isArray(e))) for (s = 0; s < e.length; s++) bl(e[s], s, s, n, e, o, l); + else { + var f = Object.keys(e); + for (s = 0; s < f.length; s++) { + var u = f[s]; + bl(e[u], u, s, n, e, o, l); + } + } + n.pop(); + } + } + function f0(e, t) { + return e < t ? -1 : e > t ? 1 : 0; + } + function bh(e, t, r, n) { + typeof n > 'u' && (n = hh()); + var i = pl(e, '', 0, [], void 0, 0, n) || e, + o; + try { + at.length === 0 ? (o = JSON.stringify(i, t, r)) : (o = JSON.stringify(i, ph(t), r)); + } catch { + return JSON.stringify('[unable to serialize, circular reference is too complex to analyze]'); + } finally { + for (; ct.length !== 0; ) { + var l = ct.pop(); + l.length === 4 ? Object.defineProperty(l[0], l[1], l[3]) : (l[0][l[1]] = l[2]); + } + } + return o; + } + function pl(e, t, r, n, i, o, l) { + o += 1; + var s; + if (typeof e == 'object' && e !== null) { + for (s = 0; s < n.length; s++) + if (n[s] === e) { + Dt(dh, e, t, i); + return; + } + try { + if (typeof e.toJSON == 'function') return; + } catch { + return; + } + if (typeof l.depthLimit < 'u' && o > l.depthLimit) { + Dt(An, e, t, i); + return; + } + if (typeof l.edgesLimit < 'u' && r + 1 > l.edgesLimit) { + Dt(An, e, t, i); + return; + } + if ((n.push(e), Array.isArray(e))) for (s = 0; s < e.length; s++) pl(e[s], s, s, n, e, o, l); + else { + var f = {}, + u = Object.keys(e).sort(f0); + for (s = 0; s < u.length; s++) { + var c = u[s]; + pl(e[c], c, s, n, e, o, l), (f[c] = e[c]); + } + if (typeof i < 'u') ct.push([i, t, e]), (i[t] = f); + else return f; + } + n.pop(); + } + } + function ph(e) { + return ( + (e = + typeof e < 'u' + ? e + : function (t, r) { + return r; + }), + function (t, r) { + if (at.length > 0) + for (var n = 0; n < at.length; n++) { + var i = at[n]; + if (i[1] === t && i[0] === r) { + (r = i[2]), at.splice(n, 1); + break; + } + } + return e.call(this, t, r); + } + ); + } +}); +var yl = _((vL, _h) => { + 'use strict'; + _h.exports = c0; + var a0 = or(); + function c0({ keyName: e, lines: t, eol: r, ident: n }) { + let i = '', + o = a0({ input: t, ident: n, eol: r }), + l = `${n}${e}: ${o}${r}`.split(r); + for (let s = 0; s < l.length; s += 1) { + s !== 0 && (i += r); + let f = l[s]; + if (/^\s*"stack"/.test(f)) { + let u = /^(\s*"stack":)\s*(".*"),?$/.exec(f); + if (u && u.length === 3) { + let c = /^\s*/.exec(f)[0].length + 4, + a = ' '.repeat(c), + b = u[2]; + i += u[1] + r + a + JSON.parse(b).replace(/\n/g, r + a); + } else i += f; + } else i += f; + } + return i; + } +}); +var Tn = _((IL, wh) => { + 'use strict'; + wh.exports = p0; + var { LOGGER_KEYS: d0 } = De(), + gl = gh(), + h0 = or(), + b0 = yl(); + function p0({ log: e, excludeLoggerKeys: t = !0, skipKeys: r = [], context: n }) { + let { EOL: i, IDENT: o, customPrettifiers: l, errorLikeObjectKeys: s, objectColorizer: f, singleLine: u } = n, + c = [].concat(r); + t === !0 && Array.prototype.push.apply(c, d0); + let a = '', + { plain: b, errors: h } = Object.entries(e).reduce( + ({ plain: d, errors: S }, [y, w]) => { + if (c.includes(y) === !1) { + let g = typeof l[y] == 'function' ? l[y](w, y, e) : w; + s.includes(y) ? (S[y] = g) : (d[y] = g); + } + return { plain: d, errors: S }; + }, + { plain: {}, errors: {} } + ); + return ( + u + ? (Object.keys(b).length > 0 && (a += f.greyMessage(gl(b))), (a += i), (a = a.replace(/\\\\/gi, '\\'))) + : Object.entries(b).forEach(([d, S]) => { + let y = typeof l[d] == 'function' ? S : gl(S, null, 2); + if (y === void 0) return; + y = y.replace(/\\\\/gi, '\\'); + let w = h0({ input: y, ident: o, eol: i }); + a += `${o}${d}:${w.startsWith(i) ? '' : ' '}${w}${i}`; + }), + Object.entries(h).forEach(([d, S]) => { + let y = typeof l[d] == 'function' ? S : gl(S, null, 2); + y !== void 0 && (a += b0({ keyName: d, lines: y, eol: i, ident: o })); + }), + a + ); + } +}); +var _l = _((DL, Sh) => { + 'use strict'; + Sh.exports = S0; + var { LOGGER_KEYS: y0 } = De(), + g0 = Rn(), + _0 = or(), + w0 = Tn(); + function S0({ log: e, context: t }) { + let { EOL: r, IDENT: n, errorProps: i, messageKey: o } = t, + l = e.stack, + s = _0({ input: l, ident: n, eol: r }), + f = `${n}${s}${r}`; + if (i.length > 0) { + let u = y0.concat(o, 'type', 'stack'), + c; + i[0] === '*' + ? (c = Object.keys(e).filter((a) => u.includes(a) === !1)) + : (c = i.filter((a) => u.includes(a) === !1)); + for (let a = 0; a < c.length; a += 1) { + let b = c[a]; + if (b in e) { + if (g0(e[b])) { + let h = w0({ log: e[b], excludeLoggerKeys: !1, context: { ...t, IDENT: n + n } }); + f = `${f}${n}${b}: {${r}${h}${n}}${r}`; + continue; + } + f = `${f}${n}${b}: ${e[b]}${r}`; + } + } + } + return f; + } +}); +var wl = _((NL, Eh) => { + 'use strict'; + Eh.exports = m0; + var E0 = Mt(); + function m0({ log: e, context: t }) { + let { colorizer: r, customLevels: n, customLevelNames: i, levelKey: o } = t, + l = t.customPrettifiers?.level, + s = E0(e, o); + if (s !== void 0) return l ? l(s) : r(s, { customLevels: n, customLevelNames: i }); + } +}); +var Sl = _((PL, Rh) => { + 'use strict'; + Rh.exports = T0; + var { LEVELS: R0 } = De(), + mh = Mt(), + A0 = hl(); + function T0({ log: e, context: t }) { + let { + colorizer: r, + customLevels: n, + levelKey: i, + levelLabel: o, + messageFormat: l, + messageKey: s, + useOnlyCustomProps: f, + } = t; + if (l && typeof l == 'string') { + let u = A0(l, e), + c = String(u).replace(/{([^{}]+)}/g, function (a, b) { + let h; + return b === o && (h = mh(e, i)) !== void 0 + ? (f ? n === void 0 : n[h] === void 0) + ? R0[h] + : n[h] + : mh(e, b) || ''; + }); + return r.message(c); + } + if (l && typeof l == 'function') { + let u = l(e, s, o); + return r.message(u); + } + if (s in e && !(typeof e[s] != 'string' && typeof e[s] != 'number' && typeof e[s] != 'boolean')) + return r.message(e[s]); + } +}); +var El = _((qL, Ah) => { + 'use strict'; + Ah.exports = O0; + function O0({ log: e, context: t }) { + let r = t.customPrettifiers, + n = ''; + if (e.name || e.pid || e.hostname) { + if (((n += '('), e.name && (n += r.name ? r.name(e.name) : e.name), e.pid)) { + let i = r.pid ? r.pid(e.pid) : e.pid; + e.name && e.pid ? (n += '/' + i) : (n += i); + } + e.hostname && (n += `${n === '(' ? 'on' : ' on'} ${r.hostname ? r.hostname(e.hostname) : e.hostname}`), + (n += ')'); + } + if ((e.caller && (n += `${n === '' ? '' : ' '}<${r.caller ? r.caller(e.caller) : e.caller}>`), n !== '')) return n; + } +}); +var ml = _((CL, Th) => { + 'use strict'; + Th.exports = x0; + var L0 = al(); + function x0({ log: e, context: t }) { + let { timestampKey: r, translateTime: n } = t, + i = t.customPrettifiers?.time, + o = null; + if ((r in e ? (o = e[r]) : 'timestamp' in e && (o = e.timestamp), o === null)) return; + let l = n ? L0(o, n) : o; + return i ? i(l) : `[${l}]`; + } +}); +var Lh = _((WL, Oh) => { + 'use strict'; + Oh.exports = { + buildSafeSonicBoom: Wd(), + createDate: el(), + deleteLogProperty: tl(), + filterLog: ul(), + formatTime: al(), + getPropertyValue: Mt(), + handleCustomLevelsNamesOpts: cl(), + handleCustomLevelsOpts: dl(), + interpretConditionals: hl(), + isObject: Rn(), + isValidDate: wn(), + joinLinesWithIndentation: or(), + noop: Qo(), + parseFactoryOptions: ch(), + prettifyErrorLog: _l(), + prettifyError: yl(), + prettifyLevel: wl(), + prettifyMessage: Sl(), + prettifyMetadata: El(), + prettifyObject: Tn(), + prettifyTime: ml(), + splitPropertyKey: Sn(), + }; +}); +var Dh = _((kL, Nt) => { + 'use strict'; + var M0 = typeof Buffer < 'u', + xh = + /"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/, + Mh = + /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/; + function vh(e, t, r) { + r == null && t !== null && typeof t == 'object' && ((r = t), (t = void 0)), + M0 && Buffer.isBuffer(e) && (e = e.toString()), + e && e.charCodeAt(0) === 65279 && (e = e.slice(1)); + let n = JSON.parse(e, t); + if (n === null || typeof n != 'object') return n; + let i = (r && r.protoAction) || 'error', + o = (r && r.constructorAction) || 'error'; + if (i === 'ignore' && o === 'ignore') return n; + if (i !== 'ignore' && o !== 'ignore') { + if (xh.test(e) === !1 && Mh.test(e) === !1) return n; + } else if (i !== 'ignore' && o === 'ignore') { + if (xh.test(e) === !1) return n; + } else if (Mh.test(e) === !1) return n; + return Ih(n, { protoAction: i, constructorAction: o, safe: r && r.safe }); + } + function Ih(e, { protoAction: t = 'error', constructorAction: r = 'error', safe: n } = {}) { + let i = [e]; + for (; i.length; ) { + let o = i; + i = []; + for (let l of o) { + if (t !== 'ignore' && Object.prototype.hasOwnProperty.call(l, '__proto__')) { + if (n === !0) return null; + if (t === 'error') throw new SyntaxError('Object contains forbidden prototype property'); + delete l.__proto__; + } + if ( + r !== 'ignore' && + Object.prototype.hasOwnProperty.call(l, 'constructor') && + Object.prototype.hasOwnProperty.call(l.constructor, 'prototype') + ) { + if (n === !0) return null; + if (r === 'error') throw new SyntaxError('Object contains forbidden prototype property'); + delete l.constructor; + } + for (let s in l) { + let f = l[s]; + f && typeof f == 'object' && i.push(f); + } + } + } + return e; + } + function Rl(e, t, r) { + let n = Error.stackTraceLimit; + Error.stackTraceLimit = 0; + try { + return vh(e, t, r); + } finally { + Error.stackTraceLimit = n; + } + } + function v0(e, t) { + let r = Error.stackTraceLimit; + Error.stackTraceLimit = 0; + try { + return vh(e, t, { safe: !0 }); + } catch { + return null; + } finally { + Error.stackTraceLimit = r; + } + } + Nt.exports = Rl; + Nt.exports.default = Rl; + Nt.exports.parse = Rl; + Nt.exports.safeParse = v0; + Nt.exports.scan = Ih; +}); +var qh = _((jL, Ph) => { + 'use strict'; + Ph.exports = $0; + var I0 = Dh(), + Nh = Rn(), + D0 = _l(), + N0 = wl(), + P0 = Sl(), + q0 = El(), + C0 = Tn(), + W0 = ml(), + k0 = ul(), + { LEVELS: j0, LEVEL_KEY: B0, LEVEL_NAMES: Al } = De(), + F0 = (e) => { + try { + return { value: I0.parse(e, { protoAction: 'remove' }) }; + } catch (t) { + return { err: t }; + } + }; + function $0(e) { + let t; + if (Nh(e)) t = e; + else { + let s = F0(e); + if (s.err || !Nh(s.value)) return e + this.EOL; + t = s.value; + } + if (this.minimumLevel) { + let s; + this.useOnlyCustomProps ? (s = this.customLevels) : (s = this.customLevelNames[this.minimumLevel] !== void 0); + let f; + if ( + (s ? (f = this.customLevelNames[this.minimumLevel]) : (f = Al[this.minimumLevel]), + f || + (f = typeof this.minimumLevel == 'string' ? Al[this.minimumLevel] : Al[j0[this.minimumLevel].toLowerCase()]), + t[this.levelKey === void 0 ? B0 : this.levelKey] < f) + ) + return; + } + let r = P0({ log: t, context: this.context }); + (this.ignoreKeys || this.includeKeys) && (t = k0({ log: t, context: this.context })); + let n = N0({ log: t, context: { ...this.context, ...this.context.customProperties } }), + i = q0({ log: t, context: this.context }), + o = W0({ log: t, context: this.context }), + l = ''; + if ( + (this.levelFirst && n && (l = `${n}`), + o && l === '' ? (l = `${o}`) : o && (l = `${l} ${o}`), + !this.levelFirst && n && (l.length > 0 ? (l = `${l} ${n}`) : (l = n)), + i && (l.length > 0 ? (l = `${l} ${i}:`) : (l = i)), + l.endsWith(':') === !1 && l !== '' && (l += ':'), + r !== void 0 && (l.length > 0 ? (l = `${l} ${r}`) : (l = r)), + l.length > 0 && !this.singleLine && (l += this.EOL), + t.type === 'Error' && t.stack) + ) { + let s = D0({ log: t, context: this.context }); + this.singleLine && (l += this.EOL), (l += s); + } else if (this.hideObject === !1) { + let s = [this.messageKey, this.levelKey, this.timestampKey].filter( + (u) => typeof t[u] == 'string' || typeof t[u] == 'number' || typeof t[u] == 'boolean' + ), + f = C0({ log: t, skipKeys: s, context: this.context }); + this.singleLine && !/^\s$/.test(f) && (l += ' '), (l += f); + } + return l; + } +}); +var { isColorSupported: U0 } = Ln(), + G0 = $l(), + { Transform: H0 } = If(), + V0 = hd(), + K0 = Jo(), + { ERROR_LIKE_KEYS: Y0, LEVEL_KEY: z0, LEVEL_LABEL: J0, MESSAGE_KEY: X0, TIMESTAMP_KEY: Z0 } = De(), + { buildSafeSonicBoom: Q0, parseFactoryOptions: eO } = Lh(), + tO = qh(), + rO = { + colorize: U0, + colorizeObjects: !0, + crlf: !1, + customColors: null, + customLevels: null, + customPrettifiers: {}, + errorLikeObjectKeys: Y0, + errorProps: '', + hideObject: !1, + ignore: 'hostname', + include: void 0, + levelFirst: !1, + levelKey: z0, + levelLabel: J0, + messageFormat: null, + messageKey: X0, + minimumLevel: void 0, + outputStream: process.stdout, + singleLine: !1, + timestampKey: Z0, + translateTime: !0, + useOnlyCustomProps: !0, + }; +function Ch(e) { + let t = eO(Object.assign({}, rO, e)); + return tO.bind({ ...t, context: t }); +} +function Wh(e = {}) { + let t = Ch(e); + return V0( + function (r) { + let n = new H0({ + objectMode: !0, + autoDestroy: !0, + transform(o, l, s) { + let f = t(o); + s(null, f); + }, + }), + i; + return ( + typeof e.destination == 'object' && typeof e.destination.write == 'function' + ? (i = e.destination) + : (i = Q0({ dest: e.destination || 1, append: e.append, mkdir: e.mkdir, sync: e.sync })), + r.on('unknown', function (o) { + i.write( + o + + ` +` + ); + }), + G0(r, n, i), + n + ); + }, + { parse: 'lines' } + ); +} +module.exports = Wh; +module.exports.prettyFactory = Ch; +module.exports.colorizerFactory = K0; +module.exports.default = Wh; diff --git a/dist/pino-worker.js b/dist/pino-worker.js new file mode 100644 index 0000000000..4d425163c9 --- /dev/null +++ b/dist/pino-worker.js @@ -0,0 +1,7313 @@ +'use strict'; +var S = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports); +var lr = S((tm, ai) => { + 'use strict'; + var Ge = (e) => e && typeof e.message == 'string', + sr = (e) => { + if (!e) return; + let t = e.cause; + if (typeof t == 'function') { + let r = e.cause(); + return Ge(r) ? r : void 0; + } else return Ge(t) ? t : void 0; + }, + fi = (e, t) => { + if (!Ge(e)) return ''; + let r = e.stack || ''; + if (t.has(e)) + return ( + r + + ` +causes have become circular...` + ); + let n = sr(e); + return n + ? (t.add(e), + r + + ` +caused by: ` + + fi(n, t)) + : r; + }, + Su = (e) => fi(e, new Set()), + ui = (e, t, r) => { + if (!Ge(e)) return ''; + let n = r ? '' : e.message || ''; + if (t.has(e)) return n + ': ...'; + let i = sr(e); + if (i) { + t.add(e); + let o = typeof e.cause == 'function'; + return n + (o ? '' : ': ') + ui(i, t, o); + } else return n; + }, + Eu = (e) => ui(e, new Set()); + ai.exports = { isErrorLike: Ge, getErrorCause: sr, stackWithCauses: Su, messageWithCauses: Eu }; +}); +var fr = S((rm, di) => { + 'use strict'; + var Ru = Symbol('circular-ref-tag'), + ut = Symbol('pino-raw-err-ref'), + ci = Object.create( + {}, + { + type: { enumerable: !0, writable: !0, value: void 0 }, + message: { enumerable: !0, writable: !0, value: void 0 }, + stack: { enumerable: !0, writable: !0, value: void 0 }, + aggregateErrors: { enumerable: !0, writable: !0, value: void 0 }, + raw: { + enumerable: !1, + get: function () { + return this[ut]; + }, + set: function (e) { + this[ut] = e; + }, + }, + } + ); + Object.defineProperty(ci, ut, { writable: !0, value: {} }); + di.exports = { pinoErrProto: ci, pinoErrorSymbols: { seen: Ru, rawSymbol: ut } }; +}); +var yi = S((nm, pi) => { + 'use strict'; + pi.exports = ar; + var { messageWithCauses: Au, stackWithCauses: xu, isErrorLike: hi } = lr(), + { pinoErrProto: Tu, pinoErrorSymbols: Ou } = fr(), + { seen: ur } = Ou, + { toString: vu } = Object.prototype; + function ar(e) { + if (!hi(e)) return e; + e[ur] = void 0; + let t = Object.create(Tu); + (t.type = vu.call(e.constructor) === '[object Function]' ? e.constructor.name : e.name), + (t.message = Au(e)), + (t.stack = xu(e)), + Array.isArray(e.errors) && (t.aggregateErrors = e.errors.map((r) => ar(r))); + for (let r in e) + if (t[r] === void 0) { + let n = e[r]; + hi(n) ? r !== 'cause' && !Object.prototype.hasOwnProperty.call(n, ur) && (t[r] = ar(n)) : (t[r] = n); + } + return delete e[ur], (t.raw = e), t; + } +}); +var gi = S((im, bi) => { + 'use strict'; + bi.exports = ct; + var { isErrorLike: cr } = lr(), + { pinoErrProto: Lu, pinoErrorSymbols: Iu } = fr(), + { seen: at } = Iu, + { toString: ku } = Object.prototype; + function ct(e) { + if (!cr(e)) return e; + e[at] = void 0; + let t = Object.create(Lu); + (t.type = ku.call(e.constructor) === '[object Function]' ? e.constructor.name : e.name), + (t.message = e.message), + (t.stack = e.stack), + Array.isArray(e.errors) && (t.aggregateErrors = e.errors.map((r) => ct(r))), + cr(e.cause) && !Object.prototype.hasOwnProperty.call(e.cause, at) && (t.cause = ct(e.cause)); + for (let r in e) + if (t[r] === void 0) { + let n = e[r]; + cr(n) ? Object.prototype.hasOwnProperty.call(n, at) || (t[r] = ct(n)) : (t[r] = n); + } + return delete e[at], (t.raw = e), t; + } +}); +var Si = S((om, _i) => { + 'use strict'; + _i.exports = { mapHttpRequest: ju, reqSerializer: mi }; + var dr = Symbol('pino-raw-req-ref'), + wi = Object.create( + {}, + { + id: { enumerable: !0, writable: !0, value: '' }, + method: { enumerable: !0, writable: !0, value: '' }, + url: { enumerable: !0, writable: !0, value: '' }, + query: { enumerable: !0, writable: !0, value: '' }, + params: { enumerable: !0, writable: !0, value: '' }, + headers: { enumerable: !0, writable: !0, value: {} }, + remoteAddress: { enumerable: !0, writable: !0, value: '' }, + remotePort: { enumerable: !0, writable: !0, value: '' }, + raw: { + enumerable: !1, + get: function () { + return this[dr]; + }, + set: function (e) { + this[dr] = e; + }, + }, + } + ); + Object.defineProperty(wi, dr, { writable: !0, value: {} }); + function mi(e) { + let t = e.info || e.socket, + r = Object.create(wi); + if ( + ((r.id = typeof e.id == 'function' ? e.id() : e.id || (e.info ? e.info.id : void 0)), + (r.method = e.method), + e.originalUrl) + ) + r.url = e.originalUrl; + else { + let n = e.path; + r.url = typeof n == 'string' ? n : e.url ? e.url.path || e.url : void 0; + } + return ( + e.query && (r.query = e.query), + e.params && (r.params = e.params), + (r.headers = e.headers), + (r.remoteAddress = t && t.remoteAddress), + (r.remotePort = t && t.remotePort), + (r.raw = e.raw || e), + r + ); + } + function ju(e) { + return { req: mi(e) }; + } +}); +var xi = S((sm, Ai) => { + 'use strict'; + Ai.exports = { mapHttpResponse: Pu, resSerializer: Ri }; + var hr = Symbol('pino-raw-res-ref'), + Ei = Object.create( + {}, + { + statusCode: { enumerable: !0, writable: !0, value: 0 }, + headers: { enumerable: !0, writable: !0, value: '' }, + raw: { + enumerable: !1, + get: function () { + return this[hr]; + }, + set: function (e) { + this[hr] = e; + }, + }, + } + ); + Object.defineProperty(Ei, hr, { writable: !0, value: {} }); + function Ri(e) { + let t = Object.create(Ei); + return ( + (t.statusCode = e.headersSent ? e.statusCode : null), + (t.headers = e.getHeaders ? e.getHeaders() : e._headers), + (t.raw = e), + t + ); + } + function Pu(e) { + return { res: Ri(e) }; + } +}); +var yr = S((lm, Ti) => { + 'use strict'; + var pr = yi(), + qu = gi(), + dt = Si(), + ht = xi(); + Ti.exports = { + err: pr, + errWithCause: qu, + mapHttpRequest: dt.mapHttpRequest, + mapHttpResponse: ht.mapHttpResponse, + req: dt.reqSerializer, + res: ht.resSerializer, + wrapErrorSerializer: function (t) { + return t === pr + ? t + : function (n) { + return t(pr(n)); + }; + }, + wrapRequestSerializer: function (t) { + return t === dt.reqSerializer + ? t + : function (n) { + return t(dt.reqSerializer(n)); + }; + }, + wrapResponseSerializer: function (t) { + return t === ht.resSerializer + ? t + : function (n) { + return t(ht.resSerializer(n)); + }; + }, + }; +}); +var br = S((fm, Oi) => { + 'use strict'; + function Nu(e, t) { + return t; + } + Oi.exports = function () { + let t = Error.prepareStackTrace; + Error.prepareStackTrace = Nu; + let r = new Error().stack; + if (((Error.prepareStackTrace = t), !Array.isArray(r))) return; + let n = r.slice(2), + i = []; + for (let o of n) o && i.push(o.getFileName()); + return i; + }; +}); +var Li = S((um, vi) => { + 'use strict'; + vi.exports = Du; + function Du(e = {}) { + let { + ERR_PATHS_MUST_BE_STRINGS: t = () => 'fast-redact - Paths must be (non-empty) strings', + ERR_INVALID_PATH: r = (n) => `fast-redact \u2013 Invalid path (${n})`, + } = e; + return function ({ paths: i }) { + i.forEach((o) => { + if (typeof o != 'string') throw Error(t()); + try { + if (/〇/.test(o)) throw Error(); + let s = + (o[0] === '[' ? '' : '.') + + o + .replace(/^\*/, '\u3007') + .replace(/\.\*/g, '.\u3007') + .replace(/\[\*\]/g, '[\u3007]'); + if (/\n|\r|;/.test(s) || /\/\*/.test(s)) throw Error(); + Function(` + 'use strict' + const o = new Proxy({}, { get: () => o, set: () => { throw Error() } }); + const \u3007 = null; + o${s} + if ([o${s}].length !== 1) throw Error()`)(); + } catch { + throw Error(r(o)); + } + }); + }; + } +}); +var pt = S((am, Ii) => { + 'use strict'; + Ii.exports = /[^.[\]]+|\[((?:.)*?)\]/g; +}); +var ji = S((cm, ki) => { + 'use strict'; + var $u = pt(); + ki.exports = Mu; + function Mu({ paths: e }) { + let t = []; + var r = 0; + let n = e.reduce(function (i, o, s) { + var f = o.match($u).map((u) => u.replace(/'|"|`/g, '')); + let a = o[0] === '['; + f = f.map((u) => (u[0] === '[' ? u.substr(1, u.length - 2) : u)); + let c = f.indexOf('*'); + if (c > -1) { + let u = f.slice(0, c), + h = u.join('.'), + p = f.slice(c + 1, f.length), + l = p.length > 0; + r++, t.push({ before: u, beforeStr: h, after: p, nested: l }); + } else i[o] = { path: f, val: void 0, precensored: !1, circle: '', escPath: JSON.stringify(o), leadingBracket: a }; + return i; + }, {}); + return { wildcards: t, wcLen: r, secret: n }; + } +}); +var qi = S((dm, Pi) => { + 'use strict'; + var Cu = pt(); + Pi.exports = Wu; + function Wu({ secret: e, serialize: t, wcLen: r, strict: n, isCensorFct: i, censorFctTakesPath: o }, s) { + let f = Function( + 'o', + ` + if (typeof o !== 'object' || o == null) { + ${Vu(n, t)} + } + const { censor, secret } = this + ${Bu(e, i, o)} + this.compileRestore() + ${Fu(r > 0, i, o)} + ${Uu(t)} + ` + ).bind(s); + return t === !1 && (f.restore = (a) => s.restore(a)), f; + } + function Bu(e, t, r) { + return Object.keys(e).map((n) => { + let { escPath: i, leadingBracket: o, path: s } = e[n], + f = o ? 1 : 0, + a = o ? '' : '.', + c = []; + for (var u; (u = Cu.exec(n)) !== null; ) { + let [, d] = u, + { index: g, input: w } = u; + g > f && c.push(w.substring(0, g - (d ? 0 : 1))); + } + var h = c.map((d) => `o${a}${d}`).join(' && '); + h.length === 0 ? (h += `o${a}${n} != null`) : (h += ` && o${a}${n} != null`); + let p = ` + switch (true) { + ${c.reverse().map( + (d) => ` + case o${a}${d} === censor: + secret[${i}].circle = ${JSON.stringify(d)} + break + ` + ).join(` +`)} + } + `, + l = r ? `val, ${JSON.stringify(s)}` : 'val'; + return ` + if (${h}) { + const val = o${a}${n} + if (val === censor) { + secret[${i}].precensored = true + } else { + secret[${i}].val = val + o${a}${n} = ${t ? `censor(${l})` : 'censor'} + ${p} + } + } + `; + }).join(` +`); + } + function Fu(e, t, r) { + return e === !0 + ? ` + { + const { wildcards, wcLen, groupRedact, nestedRedact } = this + for (var i = 0; i < wcLen; i++) { + const { before, beforeStr, after, nested } = wildcards[i] + if (nested === true) { + secret[beforeStr] = secret[beforeStr] || [] + nestedRedact(secret[beforeStr], o, before, after, censor, ${t}, ${r}) + } else secret[beforeStr] = groupRedact(o, before, censor, ${t}, ${r}) + } + } + ` + : ''; + } + function Uu(e) { + return e === !1 + ? 'return o' + : ` + var s = this.serialize(o) + this.restore(o) + return s + `; + } + function Vu(e, t) { + return e === !0 + ? "throw Error('fast-redact: primitives cannot be redacted')" + : t === !1 + ? 'return o' + : 'return this.serialize(o)'; + } +}); +var gr = S((hm, Mi) => { + 'use strict'; + Mi.exports = { groupRedact: Gu, groupRestore: zu, nestedRedact: Ku, nestedRestore: Hu }; + function zu({ keys: e, values: t, target: r }) { + if (r == null) return; + let n = e.length; + for (var i = 0; i < n; i++) { + let o = e[i]; + r[o] = t[i]; + } + } + function Gu(e, t, r, n, i) { + let o = Ni(e, t); + if (o == null) return { keys: null, values: null, target: null, flat: !0 }; + let s = Object.keys(o), + f = s.length, + a = t.length, + c = i ? [...t] : void 0, + u = new Array(f); + for (var h = 0; h < f; h++) { + let p = s[h]; + (u[h] = o[p]), i ? ((c[a] = p), (o[p] = r(o[p], c))) : n ? (o[p] = r(o[p])) : (o[p] = r); + } + return { keys: s, values: u, target: o, flat: !0 }; + } + function Hu(e) { + let t = e.length; + for (var r = 0; r < t; r++) { + let { key: i, target: o, value: s, level: f } = e[r]; + if (f === 0 || f === 1) { + if ((qe(o, i) && (o[i] = s), typeof o == 'object')) { + let a = Object.keys(o); + for (var n = 0; n < a.length; n++) { + let c = a[n], + u = o[c]; + qe(u, i) && (u[i] = s); + } + } + } else $i(i, o, s, f); + } + } + function Ku(e, t, r, n, i, o, s) { + let f = Ni(t, r); + if (f == null) return; + let a = Object.keys(f), + c = a.length; + for (var u = 0; u < c; u++) { + let h = a[u], + { value: p, parent: l, exists: d, level: g } = Ju(f, h, r, n, i, o, s); + d === !0 && l !== null && e.push({ key: n[n.length - 1], target: l, value: p, level: g }); + } + return e; + } + function qe(e, t) { + return e != null ? ('hasOwn' in Object ? Object.hasOwn(e, t) : Object.prototype.hasOwnProperty.call(e, t)) : !1; + } + function Ju(e, t, r, n, i, o, s) { + let f = n.length, + a = f - 1, + c = t; + var u = -1, + h, + p, + l, + d = null, + g = !0, + w = null, + _, + y, + m = !1, + E = 0; + if (((l = h = e[t]), typeof h != 'object')) return { value: null, parent: null, exists: g }; + for (; h != null && ++u < f; ) { + if (((t = n[u]), (d = l), t !== '*' && !w && !(typeof h == 'object' && t in h))) { + g = !1; + break; + } + if (!(t === '*' && (w === '*' && (m = !0), (w = t), u !== a))) { + if (w) { + let x = Object.keys(h); + for (var R = 0; R < x.length; R++) { + let L = x[R]; + (y = h[L]), + (_ = t === '*'), + m + ? ((E = u), (l = Di(y, E - 1, t, r, n, i, o, s, c, h, p, l, _, L, u, a, g))) + : (_ || (typeof y == 'object' && y !== null && t in y)) && + (_ ? (l = y) : (l = y[t]), + (p = u !== a ? l : o ? (s ? i(l, [...r, c, ...n]) : i(l)) : i), + _ + ? (h[L] = p) + : y[t] === p + ? (g = !1) + : (y[t] = (p === void 0 && i !== void 0) || (qe(y, t) && p === l) ? y[t] : p)); + } + w = null; + } else + (l = h[t]), + (p = u !== a ? l : o ? (s ? i(l, [...r, c, ...n]) : i(l)) : i), + (h[t] = (qe(h, t) && p === l) || (p === void 0 && i !== void 0) ? h[t] : p), + (h = h[t]); + if (typeof h != 'object') break; + (l === d || typeof l > 'u') && (g = !1); + } + } + return { value: l, parent: d, exists: g, level: E }; + } + function Ni(e, t) { + for (var r = -1, n = t.length, i = e; i != null && ++r < n; ) i = i[t[r]]; + return i; + } + function Di(e, t, r, n, i, o, s, f, a, c, u, h, p, l, d, g, w) { + if (t === 0) + return ( + (p || (typeof e == 'object' && e !== null && r in e)) && + (p ? (h = e) : (h = e[r]), + (u = d !== g ? h : s ? (f ? o(h, [...n, a, ...i]) : o(h)) : o), + p + ? (c[l] = u) + : e[r] === u + ? (w = !1) + : (e[r] = (u === void 0 && o !== void 0) || (qe(e, r) && u === h) ? e[r] : u)), + h + ); + for (let y in e) + if (typeof e[y] == 'object') { + var _ = Di(e[y], t - 1, r, n, i, o, s, f, a, c, u, h, p, l, d, g, w); + return _; + } + } + function $i(e, t, r, n) { + if (n === 0) { + qe(t, e) && (t[e] = r); + return; + } + for (let i in t) typeof t[i] == 'object' && $i(e, t[i], r, n - 1); + } +}); +var Wi = S((pm, Ci) => { + 'use strict'; + var { groupRestore: Yu, nestedRestore: Xu } = gr(); + Ci.exports = Qu; + function Qu({ secret: e, wcLen: t }) { + return function () { + if (this.restore) return; + let n = Object.keys(e), + i = Zu(e, n), + o = t > 0, + s = o ? { secret: e, groupRestore: Yu, nestedRestore: Xu } : { secret: e }; + this.restore = Function('o', ea(i, n, o)).bind(s); + }; + } + function Zu(e, t) { + return t + .map((r) => { + let { circle: n, escPath: i, leadingBracket: o } = e[r], + f = n ? `o.${n} = secret[${i}].val` : `o${o ? '' : '.'}${r} = secret[${i}].val`, + a = `secret[${i}].val = undefined`; + return ` + if (secret[${i}].val !== undefined) { + try { ${f} } catch (e) {} + ${a} + } + `; + }) + .join(''); + } + function ea(e, t, r) { + return ` + const secret = this.secret + ${ + r === !0 + ? ` + const keys = Object.keys(secret) + const len = keys.length + for (var i = len - 1; i >= ${t.length}; i--) { + const k = keys[i] + const o = secret[k] + if (o.flat === true) this.groupRestore(o) + else this.nestedRestore(o) + secret[k] = null + } + ` + : '' + } + ${e} + return o + `; + } +}); +var Fi = S((ym, Bi) => { + 'use strict'; + Bi.exports = ta; + function ta(e) { + let { + secret: t, + censor: r, + compileRestore: n, + serialize: i, + groupRedact: o, + nestedRedact: s, + wildcards: f, + wcLen: a, + } = e, + c = [{ secret: t, censor: r, compileRestore: n }]; + return ( + i !== !1 && c.push({ serialize: i }), + a > 0 && c.push({ groupRedact: o, nestedRedact: s, wildcards: f, wcLen: a }), + Object.assign(...c) + ); + } +}); +var zi = S((bm, Vi) => { + 'use strict'; + var Ui = Li(), + ra = ji(), + na = qi(), + ia = Wi(), + { groupRedact: oa, nestedRedact: sa } = gr(), + la = Fi(), + fa = pt(), + ua = Ui(), + wr = (e) => e; + wr.restore = wr; + var aa = '[REDACTED]'; + mr.rx = fa; + mr.validator = Ui; + Vi.exports = mr; + function mr(e = {}) { + let t = Array.from(new Set(e.paths || [])), + r = 'serialize' in e && (e.serialize === !1 || typeof e.serialize == 'function') ? e.serialize : JSON.stringify, + n = e.remove; + if (n === !0 && r !== JSON.stringify) + throw Error('fast-redact \u2013 remove option may only be set when serializer is JSON.stringify'); + let i = n === !0 ? void 0 : 'censor' in e ? e.censor : aa, + o = typeof i == 'function', + s = o && i.length > 1; + if (t.length === 0) return r || wr; + ua({ paths: t, serialize: r, censor: i }); + let { wildcards: f, wcLen: a, secret: c } = ra({ paths: t, censor: i }), + u = ia({ secret: c, wcLen: a }), + h = 'strict' in e ? e.strict : !0; + return na( + { secret: c, wcLen: a, serialize: r, strict: h, isCensorFct: o, censorFctTakesPath: s }, + la({ + secret: c, + censor: i, + compileRestore: u, + serialize: r, + groupRedact: oa, + nestedRedact: sa, + wildcards: f, + wcLen: a, + }) + ); + } +}); +var Ne = S((gm, Gi) => { + 'use strict'; + var ca = Symbol('pino.setLevel'), + da = Symbol('pino.getLevel'), + ha = Symbol('pino.levelVal'), + pa = Symbol('pino.useLevelLabels'), + ya = Symbol('pino.useOnlyCustomLevels'), + ba = Symbol('pino.mixin'), + ga = Symbol('pino.lsCache'), + wa = Symbol('pino.chindings'), + ma = Symbol('pino.asJson'), + _a = Symbol('pino.write'), + Sa = Symbol('pino.redactFmt'), + Ea = Symbol('pino.time'), + Ra = Symbol('pino.timeSliceIndex'), + Aa = Symbol('pino.stream'), + xa = Symbol('pino.stringify'), + Ta = Symbol('pino.stringifySafe'), + Oa = Symbol('pino.stringifiers'), + va = Symbol('pino.end'), + La = Symbol('pino.formatOpts'), + Ia = Symbol('pino.messageKey'), + ka = Symbol('pino.errorKey'), + ja = Symbol('pino.nestedKey'), + Pa = Symbol('pino.nestedKeyStr'), + qa = Symbol('pino.mixinMergeStrategy'), + Na = Symbol('pino.msgPrefix'), + Da = Symbol('pino.wildcardFirst'), + $a = Symbol.for('pino.serializers'), + Ma = Symbol.for('pino.formatters'), + Ca = Symbol.for('pino.hooks'), + Wa = Symbol.for('pino.metadata'); + Gi.exports = { + setLevelSym: ca, + getLevelSym: da, + levelValSym: ha, + useLevelLabelsSym: pa, + mixinSym: ba, + lsCacheSym: ga, + chindingsSym: wa, + asJsonSym: ma, + writeSym: _a, + serializersSym: $a, + redactFmtSym: Sa, + timeSym: Ea, + timeSliceIndexSym: Ra, + streamSym: Aa, + stringifySym: xa, + stringifySafeSym: Ta, + stringifiersSym: Oa, + endSym: va, + formatOptsSym: La, + messageKeySym: Ia, + errorKeySym: ka, + nestedKeySym: ja, + wildcardFirstSym: Da, + needsMetadataGsym: Wa, + useOnlyCustomLevelsSym: ya, + formattersSym: Ma, + hooksSym: Ca, + nestedKeyStrSym: Pa, + mixinMergeStrategySym: qa, + msgPrefixSym: Na, + }; +}); +var Er = S((wm, Yi) => { + 'use strict'; + var Sr = zi(), + { redactFmtSym: Ba, wildcardFirstSym: yt } = Ne(), + { rx: _r, validator: Fa } = Sr, + Hi = Fa({ + ERR_PATHS_MUST_BE_STRINGS: () => 'pino \u2013 redacted paths must be strings', + ERR_INVALID_PATH: (e) => `pino \u2013 redact paths array contains an invalid path (${e})`, + }), + Ki = '[Redacted]', + Ji = !1; + function Ua(e, t) { + let { paths: r, censor: n } = Va(e), + i = r.reduce((f, a) => { + _r.lastIndex = 0; + let c = _r.exec(a), + u = _r.exec(a), + h = c[1] !== void 0 ? c[1].replace(/^(?:"|'|`)(.*)(?:"|'|`)$/, '$1') : c[0]; + if ((h === '*' && (h = yt), u === null)) return (f[h] = null), f; + if (f[h] === null) return f; + let { index: p } = u, + l = `${a.substr(p, a.length - 1)}`; + return ( + (f[h] = f[h] || []), + h !== yt && f[h].length === 0 && f[h].push(...(f[yt] || [])), + h === yt && + Object.keys(f).forEach(function (d) { + f[d] && f[d].push(l); + }), + f[h].push(l), + f + ); + }, {}), + o = { [Ba]: Sr({ paths: r, censor: n, serialize: t, strict: Ji }) }, + s = (...f) => t(typeof n == 'function' ? n(...f) : n); + return [...Object.keys(i), ...Object.getOwnPropertySymbols(i)].reduce((f, a) => { + if (i[a] === null) f[a] = (c) => s(c, [a]); + else { + let c = typeof n == 'function' ? (u, h) => n(u, [a, ...h]) : n; + f[a] = Sr({ paths: i[a], censor: c, serialize: t, strict: Ji }); + } + return f; + }, o); + } + function Va(e) { + if (Array.isArray(e)) return (e = { paths: e, censor: Ki }), Hi(e), e; + let { paths: t, censor: r = Ki, remove: n } = e; + if (Array.isArray(t) === !1) throw Error('pino \u2013 redact must contain an array of strings'); + return n === !0 && (r = void 0), Hi({ paths: t, censor: r }), { paths: t, censor: r }; + } + Yi.exports = Ua; +}); +var Qi = S((mm, Xi) => { + 'use strict'; + var za = () => '', + Ga = () => `,"time":${Date.now()}`, + Ha = () => `,"time":${Math.round(Date.now() / 1e3)}`, + Ka = () => `,"time":"${new Date(Date.now()).toISOString()}"`; + Xi.exports = { nullTime: za, epochTime: Ga, unixTime: Ha, isoTime: Ka }; +}); +var eo = S((_m, Zi) => { + 'use strict'; + function Ja(e) { + try { + return JSON.stringify(e); + } catch { + return '"[Circular]"'; + } + } + Zi.exports = Ya; + function Ya(e, t, r) { + var n = (r && r.stringify) || Ja, + i = 1; + if (typeof e == 'object' && e !== null) { + var o = t.length + i; + if (o === 1) return e; + var s = new Array(o); + s[0] = n(e); + for (var f = 1; f < o; f++) s[f] = n(t[f]); + return s.join(' '); + } + if (typeof e != 'string') return e; + var a = t.length; + if (a === 0) return e; + for (var c = '', u = 1 - i, h = -1, p = (e && e.length) || 0, l = 0; l < p; ) { + if (e.charCodeAt(l) === 37 && l + 1 < p) { + switch (((h = h > -1 ? h : 0), e.charCodeAt(l + 1))) { + case 100: + case 102: + if (u >= a || t[u] == null) break; + h < l && (c += e.slice(h, l)), (c += Number(t[u])), (h = l + 2), l++; + break; + case 105: + if (u >= a || t[u] == null) break; + h < l && (c += e.slice(h, l)), (c += Math.floor(Number(t[u]))), (h = l + 2), l++; + break; + case 79: + case 111: + case 106: + if (u >= a || t[u] === void 0) break; + h < l && (c += e.slice(h, l)); + var d = typeof t[u]; + if (d === 'string') { + (c += "'" + t[u] + "'"), (h = l + 2), l++; + break; + } + if (d === 'function') { + (c += t[u].name || ''), (h = l + 2), l++; + break; + } + (c += n(t[u])), (h = l + 2), l++; + break; + case 115: + if (u >= a) break; + h < l && (c += e.slice(h, l)), (c += String(t[u])), (h = l + 2), l++; + break; + case 37: + h < l && (c += e.slice(h, l)), (c += '%'), (h = l + 2), l++, u--; + break; + } + ++u; + } + ++l; + } + return h === -1 ? e : (h < p && (c += e.slice(h)), c); + } +}); +var Ar = S((Sm, Rr) => { + 'use strict'; + if (typeof SharedArrayBuffer < 'u' && typeof Atomics < 'u') { + let t = function (r) { + if ((r > 0 && r < 1 / 0) === !1) + throw typeof r != 'number' && typeof r != 'bigint' + ? TypeError('sleep: ms must be a number') + : RangeError('sleep: ms must be a number that is greater than 0 but less than Infinity'); + Atomics.wait(e, 0, 0, Number(r)); + }, + e = new Int32Array(new SharedArrayBuffer(4)); + Rr.exports = t; + } else { + let e = function (t) { + if ((t > 0 && t < 1 / 0) === !1) + throw typeof t != 'number' && typeof t != 'bigint' + ? TypeError('sleep: ms must be a number') + : RangeError('sleep: ms must be a number that is greater than 0 but less than Infinity'); + let n = Date.now() + Number(t); + for (; n > Date.now(); ); + }; + Rr.exports = e; + } +}); +var fo = S((Em, lo) => { + 'use strict'; + var q = require('fs'), + Xa = require('events'), + Qa = require('util').inherits, + to = require('path'), + xr = Ar(), + bt = 100, + gt = Buffer.allocUnsafe(0), + Za = 16 * 1024, + ro = 'buffer', + no = 'utf8'; + function io(e, t) { + (t._opening = !0), (t._writing = !0), (t._asyncDrainScheduled = !1); + function r(o, s) { + if (o) { + (t._reopening = !1), + (t._writing = !1), + (t._opening = !1), + t.sync + ? process.nextTick(() => { + t.listenerCount('error') > 0 && t.emit('error', o); + }) + : t.emit('error', o); + return; + } + (t.fd = s), + (t.file = e), + (t._reopening = !1), + (t._opening = !1), + (t._writing = !1), + t.sync ? process.nextTick(() => t.emit('ready')) : t.emit('ready'), + !(t._reopening || t.destroyed) && + ((!t._writing && t._len > t.minLength) || t._flushPending) && + t._actualWrite(); + } + let n = t.append ? 'a' : 'w', + i = t.mode; + if (t.sync) + try { + t.mkdir && q.mkdirSync(to.dirname(e), { recursive: !0 }); + let o = q.openSync(e, n, i); + r(null, o); + } catch (o) { + throw (r(o), o); + } + else + t.mkdir + ? q.mkdir(to.dirname(e), { recursive: !0 }, (o) => { + if (o) return r(o); + q.open(e, n, i, r); + }) + : q.open(e, n, i, r); + } + function K(e) { + if (!(this instanceof K)) return new K(e); + let { + fd: t, + dest: r, + minLength: n, + maxLength: i, + maxWrite: o, + sync: s, + append: f = !0, + mkdir: a, + retryEAGAIN: c, + fsync: u, + contentMode: h, + mode: p, + } = e || {}; + (t = t || r), + (this._len = 0), + (this.fd = -1), + (this._bufs = []), + (this._lens = []), + (this._writing = !1), + (this._ending = !1), + (this._reopening = !1), + (this._asyncDrainScheduled = !1), + (this._flushPending = !1), + (this._hwm = Math.max(n || 0, 16387)), + (this.file = null), + (this.destroyed = !1), + (this.minLength = n || 0), + (this.maxLength = i || 0), + (this.maxWrite = o || Za), + (this.sync = s || !1), + (this.writable = !0), + (this._fsync = u || !1), + (this.append = f || !1), + (this.mode = p), + (this.retryEAGAIN = c || (() => !0)), + (this.mkdir = a || !1); + let l, d; + if (h === ro) + (this._writingBuf = gt), + (this.write = rc), + (this.flush = ic), + (this.flushSync = sc), + (this._actualWrite = fc), + (l = () => q.writeSync(this.fd, this._writingBuf)), + (d = () => q.write(this.fd, this._writingBuf, this.release)); + else if (h === void 0 || h === no) + (this._writingBuf = ''), + (this.write = tc), + (this.flush = nc), + (this.flushSync = oc), + (this._actualWrite = lc), + (l = () => q.writeSync(this.fd, this._writingBuf, 'utf8')), + (d = () => q.write(this.fd, this._writingBuf, 'utf8', this.release)); + else throw new Error(`SonicBoom supports "${no}" and "${ro}", but passed ${h}`); + if (typeof t == 'number') (this.fd = t), process.nextTick(() => this.emit('ready')); + else if (typeof t == 'string') io(t, this); + else throw new Error('SonicBoom supports only file descriptors and files'); + if (this.minLength >= this.maxWrite) + throw new Error(`minLength should be smaller than maxWrite (${this.maxWrite})`); + (this.release = (g, w) => { + if (g) { + if ( + (g.code === 'EAGAIN' || g.code === 'EBUSY') && + this.retryEAGAIN(g, this._writingBuf.length, this._len - this._writingBuf.length) + ) + if (this.sync) + try { + xr(bt), this.release(void 0, 0); + } catch (y) { + this.release(y); + } + else setTimeout(d, bt); + else (this._writing = !1), this.emit('error', g); + return; + } + if ( + (this.emit('write', w), + (this._len -= w), + this._len < 0 && (this._len = 0), + (this._writingBuf = this._writingBuf.slice(w)), + this._writingBuf.length) + ) { + if (!this.sync) { + d(); + return; + } + try { + do { + let y = l(); + (this._len -= y), (this._writingBuf = this._writingBuf.slice(y)); + } while (this._writingBuf.length); + } catch (y) { + this.release(y); + return; + } + } + this._fsync && q.fsyncSync(this.fd); + let _ = this._len; + this._reopening + ? ((this._writing = !1), (this._reopening = !1), this.reopen()) + : _ > this.minLength + ? this._actualWrite() + : this._ending + ? _ > 0 + ? this._actualWrite() + : ((this._writing = !1), wt(this)) + : ((this._writing = !1), + this.sync + ? this._asyncDrainScheduled || ((this._asyncDrainScheduled = !0), process.nextTick(ec, this)) + : this.emit('drain')); + }), + this.on('newListener', function (g) { + g === 'drain' && (this._asyncDrainScheduled = !1); + }); + } + function ec(e) { + e.listenerCount('drain') > 0 && ((e._asyncDrainScheduled = !1), e.emit('drain')); + } + Qa(K, Xa); + function oo(e, t) { + return e.length === 0 ? gt : e.length === 1 ? e[0] : Buffer.concat(e, t); + } + function tc(e) { + if (this.destroyed) throw new Error('SonicBoom destroyed'); + let t = this._len + e.length, + r = this._bufs; + return this.maxLength && t > this.maxLength + ? (this.emit('drop', e), this._len < this._hwm) + : (r.length === 0 || r[r.length - 1].length + e.length > this.maxWrite ? r.push('' + e) : (r[r.length - 1] += e), + (this._len = t), + !this._writing && this._len >= this.minLength && this._actualWrite(), + this._len < this._hwm); + } + function rc(e) { + if (this.destroyed) throw new Error('SonicBoom destroyed'); + let t = this._len + e.length, + r = this._bufs, + n = this._lens; + return this.maxLength && t > this.maxLength + ? (this.emit('drop', e), this._len < this._hwm) + : (r.length === 0 || n[n.length - 1] + e.length > this.maxWrite + ? (r.push([e]), n.push(e.length)) + : (r[r.length - 1].push(e), (n[n.length - 1] += e.length)), + (this._len = t), + !this._writing && this._len >= this.minLength && this._actualWrite(), + this._len < this._hwm); + } + function so(e) { + this._flushPending = !0; + let t = () => { + this._fsync + ? ((this._flushPending = !1), e()) + : q.fsync(this.fd, (n) => { + (this._flushPending = !1), e(n); + }), + this.off('error', r); + }, + r = (n) => { + (this._flushPending = !1), e(n), this.off('drain', t); + }; + this.once('drain', t), this.once('error', r); + } + function nc(e) { + if (e != null && typeof e != 'function') throw new Error('flush cb must be a function'); + if (this.destroyed) { + let t = new Error('SonicBoom destroyed'); + if (e) { + e(t); + return; + } + throw t; + } + if (this.minLength <= 0) { + e?.(); + return; + } + e && so.call(this, e), !this._writing && (this._bufs.length === 0 && this._bufs.push(''), this._actualWrite()); + } + function ic(e) { + if (e != null && typeof e != 'function') throw new Error('flush cb must be a function'); + if (this.destroyed) { + let t = new Error('SonicBoom destroyed'); + if (e) { + e(t); + return; + } + throw t; + } + if (this.minLength <= 0) { + e?.(); + return; + } + e && so.call(this, e), + !this._writing && (this._bufs.length === 0 && (this._bufs.push([]), this._lens.push(0)), this._actualWrite()); + } + K.prototype.reopen = function (e) { + if (this.destroyed) throw new Error('SonicBoom destroyed'); + if (this._opening) { + this.once('ready', () => { + this.reopen(e); + }); + return; + } + if (this._ending) return; + if (!this.file) throw new Error('Unable to reopen a file descriptor, you must pass a file to SonicBoom'); + if (((this._reopening = !0), this._writing)) return; + let t = this.fd; + this.once('ready', () => { + t !== this.fd && + q.close(t, (r) => { + if (r) return this.emit('error', r); + }); + }), + io(e || this.file, this); + }; + K.prototype.end = function () { + if (this.destroyed) throw new Error('SonicBoom destroyed'); + if (this._opening) { + this.once('ready', () => { + this.end(); + }); + return; + } + this._ending || + ((this._ending = !0), !this._writing && (this._len > 0 && this.fd >= 0 ? this._actualWrite() : wt(this))); + }; + function oc() { + if (this.destroyed) throw new Error('SonicBoom destroyed'); + if (this.fd < 0) throw new Error('sonic boom is not ready yet'); + !this._writing && this._writingBuf.length > 0 && (this._bufs.unshift(this._writingBuf), (this._writingBuf = '')); + let e = ''; + for (; this._bufs.length || e; ) { + e.length <= 0 && (e = this._bufs[0]); + try { + let t = q.writeSync(this.fd, e, 'utf8'); + (e = e.slice(t)), (this._len = Math.max(this._len - t, 0)), e.length <= 0 && this._bufs.shift(); + } catch (t) { + if ((t.code === 'EAGAIN' || t.code === 'EBUSY') && !this.retryEAGAIN(t, e.length, this._len - e.length)) + throw t; + xr(bt); + } + } + try { + q.fsyncSync(this.fd); + } catch {} + } + function sc() { + if (this.destroyed) throw new Error('SonicBoom destroyed'); + if (this.fd < 0) throw new Error('sonic boom is not ready yet'); + !this._writing && this._writingBuf.length > 0 && (this._bufs.unshift([this._writingBuf]), (this._writingBuf = gt)); + let e = gt; + for (; this._bufs.length || e.length; ) { + e.length <= 0 && (e = oo(this._bufs[0], this._lens[0])); + try { + let t = q.writeSync(this.fd, e); + (e = e.subarray(t)), + (this._len = Math.max(this._len - t, 0)), + e.length <= 0 && (this._bufs.shift(), this._lens.shift()); + } catch (t) { + if ((t.code === 'EAGAIN' || t.code === 'EBUSY') && !this.retryEAGAIN(t, e.length, this._len - e.length)) + throw t; + xr(bt); + } + } + } + K.prototype.destroy = function () { + this.destroyed || wt(this); + }; + function lc() { + let e = this.release; + if (((this._writing = !0), (this._writingBuf = this._writingBuf || this._bufs.shift() || ''), this.sync)) + try { + let t = q.writeSync(this.fd, this._writingBuf, 'utf8'); + e(null, t); + } catch (t) { + e(t); + } + else q.write(this.fd, this._writingBuf, 'utf8', e); + } + function fc() { + let e = this.release; + if ( + ((this._writing = !0), + (this._writingBuf = this._writingBuf.length ? this._writingBuf : oo(this._bufs.shift(), this._lens.shift())), + this.sync) + ) + try { + let t = q.writeSync(this.fd, this._writingBuf); + e(null, t); + } catch (t) { + e(t); + } + else q.write(this.fd, this._writingBuf, e); + } + function wt(e) { + if (e.fd === -1) { + e.once('ready', wt.bind(null, e)); + return; + } + (e.destroyed = !0), (e._bufs = []), (e._lens = []), q.fsync(e.fd, t); + function t() { + e.fd !== 1 && e.fd !== 2 ? q.close(e.fd, r) : r(); + } + function r(n) { + if (n) { + e.emit('error', n); + return; + } + e._ending && !e._writing && e.emit('finish'), e.emit('close'); + } + } + K.SonicBoom = K; + K.default = K; + lo.exports = K; +}); +var Tr = S((Rm, yo) => { + 'use strict'; + var ce = { exit: [], beforeExit: [] }, + uo = { exit: ac, beforeExit: cc }, + ao = new FinalizationRegistry(dc); + function uc(e) { + ce[e].length > 0 || process.on(e, uo[e]); + } + function co(e) { + ce[e].length > 0 || process.removeListener(e, uo[e]); + } + function ac() { + ho('exit'); + } + function cc() { + ho('beforeExit'); + } + function ho(e) { + for (let t of ce[e]) { + let r = t.deref(), + n = t.fn; + r !== void 0 && n(r, e); + } + } + function dc(e) { + for (let t of ['exit', 'beforeExit']) { + let r = ce[t].indexOf(e); + ce[t].splice(r, r + 1), co(t); + } + } + function po(e, t, r) { + if (t === void 0) throw new Error("the object can't be undefined"); + uc(e); + let n = new WeakRef(t); + (n.fn = r), ao.register(t, n), ce[e].push(n); + } + function hc(e, t) { + po('exit', e, t); + } + function pc(e, t) { + po('beforeExit', e, t); + } + function yc(e) { + ao.unregister(e); + for (let t of ['exit', 'beforeExit']) + (ce[t] = ce[t].filter((r) => { + let n = r.deref(); + return n && n !== e; + })), + co(t); + } + yo.exports = { register: hc, registerBeforeExit: pc, unregister: yc }; +}); +var bo = S((Am, bc) => { + bc.exports = { + name: 'thread-stream', + version: '2.3.0', + description: 'A streaming way to send data to a Node.js Worker Thread', + main: 'index.js', + types: 'index.d.ts', + dependencies: { 'real-require': '^0.2.0' }, + devDependencies: { + '@types/node': '^18.0.0', + '@types/tap': '^15.0.0', + desm: '^1.3.0', + fastbench: '^1.0.1', + husky: '^8.0.1', + 'sonic-boom': '^3.0.0', + standard: '^17.0.0', + tap: '^16.2.0', + 'ts-node': '^10.8.0', + typescript: '^4.7.2', + 'why-is-node-running': '^2.2.2', + }, + scripts: { + test: 'standard && npm run transpile && tap test/*.test.*js && tap --ts test/*.test.*ts', + 'test:ci': 'standard && npm run transpile && npm run test:ci:js && npm run test:ci:ts', + 'test:ci:js': 'tap --no-check-coverage --coverage-report=lcovonly "test/**/*.test.*js"', + 'test:ci:ts': 'tap --ts --no-check-coverage --coverage-report=lcovonly "test/**/*.test.*ts"', + 'test:yarn': 'npm run transpile && tap "test/**/*.test.js" --no-check-coverage', + transpile: 'sh ./test/ts/transpile.sh', + prepare: 'husky install', + }, + standard: { ignore: ['test/ts/**/*'] }, + repository: { type: 'git', url: 'git+https://github.com/mcollina/thread-stream.git' }, + keywords: ['worker', 'thread', 'threads', 'stream'], + author: 'Matteo Collina ', + license: 'MIT', + bugs: { url: 'https://github.com/mcollina/thread-stream/issues' }, + homepage: 'https://github.com/mcollina/thread-stream#readme', + }; +}); +var wo = S((xm, go) => { + 'use strict'; + function gc(e, t, r, n, i) { + let o = Date.now() + n, + s = Atomics.load(e, t); + if (s === r) { + i(null, 'ok'); + return; + } + let f = s, + a = (c) => { + Date.now() > o + ? i(null, 'timed-out') + : setTimeout(() => { + (f = s), + (s = Atomics.load(e, t)), + s === f ? a(c >= 1e3 ? 1e3 : c * 2) : s === r ? i(null, 'ok') : i(null, 'not-equal'); + }, c); + }; + a(1); + } + function wc(e, t, r, n, i) { + let o = Date.now() + n, + s = Atomics.load(e, t); + if (s !== r) { + i(null, 'ok'); + return; + } + let f = (a) => { + Date.now() > o + ? i(null, 'timed-out') + : setTimeout(() => { + (s = Atomics.load(e, t)), s !== r ? i(null, 'ok') : f(a >= 1e3 ? 1e3 : a * 2); + }, a); + }; + f(1); + } + go.exports = { wait: gc, waitDiff: wc }; +}); +var _o = S((Tm, mo) => { + 'use strict'; + mo.exports = { WRITE_INDEX: 4, READ_INDEX: 8 }; +}); +var xo = S((vm, Ao) => { + 'use strict'; + var { version: mc } = bo(), + { EventEmitter: _c } = require('events'), + { Worker: Sc } = require('worker_threads'), + { join: Ec } = require('path'), + { pathToFileURL: Rc } = require('url'), + { wait: Ac } = wo(), + { WRITE_INDEX: U, READ_INDEX: Z } = _o(), + xc = require('buffer'), + Tc = require('assert'), + b = Symbol('kImpl'), + Oc = xc.constants.MAX_STRING_LENGTH, + _t = class { + constructor(t) { + this._value = t; + } + deref() { + return this._value; + } + }, + vc = + global.FinalizationRegistry || + class { + register() {} + unregister() {} + }, + Lc = global.WeakRef || _t, + So = new vc((e) => { + e.exited || e.terminate(); + }); + function Ic(e, t) { + let { filename: r, workerData: n } = t, + o = + ('__bundlerPathsOverrides' in globalThis ? globalThis.__bundlerPathsOverrides : {})['thread-stream-worker'] || + Ec(__dirname, 'lib', 'worker.js'), + s = new Sc(o, { + ...t.workerOpts, + trackUnmanagedFds: !1, + workerData: { + filename: r.indexOf('file://') === 0 ? r : Rc(r).href, + dataBuf: e[b].dataBuf, + stateBuf: e[b].stateBuf, + workerData: { $context: { threadStreamVersion: mc }, ...n }, + }, + }); + return (s.stream = new _t(e)), s.on('message', kc), s.on('exit', Ro), So.register(e, s), s; + } + function Eo(e) { + Tc(!e[b].sync), e[b].needDrain && ((e[b].needDrain = !1), e.emit('drain')); + } + function mt(e) { + let t = Atomics.load(e[b].state, U), + r = e[b].data.length - t; + if (r > 0) { + if (e[b].buf.length === 0) { + (e[b].flushing = !1), e[b].ending ? kr(e) : e[b].needDrain && process.nextTick(Eo, e); + return; + } + let n = e[b].buf.slice(0, r), + i = Buffer.byteLength(n); + i <= r + ? ((e[b].buf = e[b].buf.slice(r)), St(e, n, mt.bind(null, e))) + : e.flush(() => { + if (!e.destroyed) { + for (Atomics.store(e[b].state, Z, 0), Atomics.store(e[b].state, U, 0); i > e[b].data.length; ) + (r = r / 2), (n = e[b].buf.slice(0, r)), (i = Buffer.byteLength(n)); + (e[b].buf = e[b].buf.slice(r)), St(e, n, mt.bind(null, e)); + } + }); + } else if (r === 0) { + if (t === 0 && e[b].buf.length === 0) return; + e.flush(() => { + Atomics.store(e[b].state, Z, 0), Atomics.store(e[b].state, U, 0), mt(e); + }); + } else ee(e, new Error('overwritten')); + } + function kc(e) { + let t = this.stream.deref(); + if (t === void 0) { + (this.exited = !0), this.terminate(); + return; + } + switch (e.code) { + case 'READY': + (this.stream = new Lc(t)), + t.flush(() => { + (t[b].ready = !0), t.emit('ready'); + }); + break; + case 'ERROR': + ee(t, e.err); + break; + case 'EVENT': + Array.isArray(e.args) ? t.emit(e.name, ...e.args) : t.emit(e.name, e.args); + break; + default: + ee(t, new Error('this should not happen: ' + e.code)); + } + } + function Ro(e) { + let t = this.stream.deref(); + t !== void 0 && + (So.unregister(t), + (t.worker.exited = !0), + t.worker.off('exit', Ro), + ee(t, e !== 0 ? new Error('the worker thread exited') : null)); + } + var vr = class extends _c { + constructor(t = {}) { + if ((super(), t.bufferSize < 4)) throw new Error('bufferSize must at least fit a 4-byte utf-8 char'); + (this[b] = {}), + (this[b].stateBuf = new SharedArrayBuffer(128)), + (this[b].state = new Int32Array(this[b].stateBuf)), + (this[b].dataBuf = new SharedArrayBuffer(t.bufferSize || 4 * 1024 * 1024)), + (this[b].data = Buffer.from(this[b].dataBuf)), + (this[b].sync = t.sync || !1), + (this[b].ending = !1), + (this[b].ended = !1), + (this[b].needDrain = !1), + (this[b].destroyed = !1), + (this[b].flushing = !1), + (this[b].ready = !1), + (this[b].finished = !1), + (this[b].errored = null), + (this[b].closed = !1), + (this[b].buf = ''), + (this.worker = Ic(this, t)); + } + write(t) { + if (this[b].destroyed) return Lr(this, new Error('the worker has exited')), !1; + if (this[b].ending) return Lr(this, new Error('the worker is ending')), !1; + if (this[b].flushing && this[b].buf.length + t.length >= Oc) + try { + Or(this), (this[b].flushing = !0); + } catch (r) { + return ee(this, r), !1; + } + if (((this[b].buf += t), this[b].sync)) + try { + return Or(this), !0; + } catch (r) { + return ee(this, r), !1; + } + return ( + this[b].flushing || ((this[b].flushing = !0), setImmediate(mt, this)), + (this[b].needDrain = this[b].data.length - this[b].buf.length - Atomics.load(this[b].state, U) <= 0), + !this[b].needDrain + ); + } + end() { + this[b].destroyed || ((this[b].ending = !0), kr(this)); + } + flush(t) { + if (this[b].destroyed) { + typeof t == 'function' && process.nextTick(t, new Error('the worker has exited')); + return; + } + let r = Atomics.load(this[b].state, U); + Ac(this[b].state, Z, r, 1 / 0, (n, i) => { + if (n) { + ee(this, n), process.nextTick(t, n); + return; + } + if (i === 'not-equal') { + this.flush(t); + return; + } + process.nextTick(t); + }); + } + flushSync() { + this[b].destroyed || (Or(this), Ir(this)); + } + unref() { + this.worker.unref(); + } + ref() { + this.worker.ref(); + } + get ready() { + return this[b].ready; + } + get destroyed() { + return this[b].destroyed; + } + get closed() { + return this[b].closed; + } + get writable() { + return !this[b].destroyed && !this[b].ending; + } + get writableEnded() { + return this[b].ending; + } + get writableFinished() { + return this[b].finished; + } + get writableNeedDrain() { + return this[b].needDrain; + } + get writableObjectMode() { + return !1; + } + get writableErrored() { + return this[b].errored; + } + }; + function Lr(e, t) { + setImmediate(() => { + e.emit('error', t); + }); + } + function ee(e, t) { + e[b].destroyed || + ((e[b].destroyed = !0), + t && ((e[b].errored = t), Lr(e, t)), + e.worker.exited + ? setImmediate(() => { + (e[b].closed = !0), e.emit('close'); + }) + : e.worker + .terminate() + .catch(() => {}) + .then(() => { + (e[b].closed = !0), e.emit('close'); + })); + } + function St(e, t, r) { + let n = Atomics.load(e[b].state, U), + i = Buffer.byteLength(t); + return e[b].data.write(t, n), Atomics.store(e[b].state, U, n + i), Atomics.notify(e[b].state, U), r(), !0; + } + function kr(e) { + if (!(e[b].ended || !e[b].ending || e[b].flushing)) { + e[b].ended = !0; + try { + e.flushSync(); + let t = Atomics.load(e[b].state, Z); + Atomics.store(e[b].state, U, -1), Atomics.notify(e[b].state, U); + let r = 0; + for (; t !== -1; ) { + if ((Atomics.wait(e[b].state, Z, t, 1e3), (t = Atomics.load(e[b].state, Z)), t === -2)) { + ee(e, new Error('end() failed')); + return; + } + if (++r === 10) { + ee(e, new Error('end() took too long (10s)')); + return; + } + } + process.nextTick(() => { + (e[b].finished = !0), e.emit('finish'); + }); + } catch (t) { + ee(e, t); + } + } + } + function Or(e) { + let t = () => { + e[b].ending ? kr(e) : e[b].needDrain && process.nextTick(Eo, e); + }; + for (e[b].flushing = !1; e[b].buf.length !== 0; ) { + let r = Atomics.load(e[b].state, U), + n = e[b].data.length - r; + if (n === 0) { + Ir(e), Atomics.store(e[b].state, Z, 0), Atomics.store(e[b].state, U, 0); + continue; + } else if (n < 0) throw new Error('overwritten'); + let i = e[b].buf.slice(0, n), + o = Buffer.byteLength(i); + if (o <= n) (e[b].buf = e[b].buf.slice(n)), St(e, i, t); + else { + for (Ir(e), Atomics.store(e[b].state, Z, 0), Atomics.store(e[b].state, U, 0); o > e[b].buf.length; ) + (n = n / 2), (i = e[b].buf.slice(0, n)), (o = Buffer.byteLength(i)); + (e[b].buf = e[b].buf.slice(n)), St(e, i, t); + } + } + } + function Ir(e) { + if (e[b].flushing) throw new Error('unable to flush while flushing'); + let t = Atomics.load(e[b].state, U), + r = 0; + for (;;) { + let n = Atomics.load(e[b].state, Z); + if (n === -2) throw Error('_flushSync failed'); + if (n !== t) Atomics.wait(e[b].state, Z, n, 1e3); + else break; + if (++r === 10) throw new Error('_flushSync took too long (10s)'); + } + } + Ao.exports = vr; +}); +var qr = S((Lm, To) => { + 'use strict'; + var { createRequire: jc } = require('module'), + Pc = br(), + { join: jr, isAbsolute: qc, sep: Nc } = require('path'), + Dc = Ar(), + Pr = Tr(), + $c = xo(); + function Mc(e) { + Pr.register(e, Wc), + Pr.registerBeforeExit(e, Bc), + e.on('close', function () { + Pr.unregister(e); + }); + } + function Cc(e, t, r) { + let n = new $c({ filename: e, workerData: t, workerOpts: r }); + n.on('ready', i), + n.on('close', function () { + process.removeListener('exit', o); + }), + process.on('exit', o); + function i() { + process.removeListener('exit', o), n.unref(), r.autoEnd !== !1 && Mc(n); + } + function o() { + n.closed || (n.flushSync(), Dc(100), n.end()); + } + return n; + } + function Wc(e) { + e.ref(), + e.flushSync(), + e.end(), + e.once('close', function () { + e.unref(); + }); + } + function Bc(e) { + e.flushSync(); + } + function Fc(e) { + let { pipeline: t, targets: r, levels: n, dedupe: i, options: o = {}, worker: s = {}, caller: f = Pc() } = e, + a = typeof f == 'string' ? [f] : f, + c = '__bundlerPathsOverrides' in globalThis ? globalThis.__bundlerPathsOverrides : {}, + u = e.target; + if (u && r) throw new Error('only one of target or targets can be specified'); + return ( + r + ? ((u = c['pino-worker'] || jr(__dirname, 'worker.js')), + (o.targets = r.map((p) => ({ ...p, target: h(p.target) })))) + : t && + ((u = c['pino-pipeline-worker'] || jr(__dirname, 'worker-pipeline.js')), + (o.targets = t.map((p) => ({ ...p, target: h(p.target) })))), + n && (o.levels = n), + i && (o.dedupe = i), + Cc(h(u), o, s) + ); + function h(p) { + if (((p = c[p] || p), qc(p) || p.indexOf('file://') === 0)) return p; + if (p === 'pino/file') return jr(__dirname, '..', 'file.js'); + let l; + for (let d of a) + try { + let g = d === 'node:repl' ? process.cwd() + Nc : d; + l = jc(g).resolve(p); + break; + } catch { + continue; + } + if (!l) throw new Error(`unable to determine transport target for "${p}"`); + return l; + } + } + To.exports = Fc; +}); +var At = S((Im, $o) => { + 'use strict'; + var Oo = eo(), + { mapHttpRequest: Uc, mapHttpResponse: Vc } = yr(), + Dr = fo(), + vo = Tr(), + { + lsCacheSym: zc, + chindingsSym: ko, + writeSym: Lo, + serializersSym: jo, + formatOptsSym: Io, + endSym: Gc, + stringifiersSym: Po, + stringifySym: qo, + stringifySafeSym: $r, + wildcardFirstSym: No, + nestedKeySym: Hc, + formattersSym: Do, + messageKeySym: Kc, + errorKeySym: Jc, + nestedKeyStrSym: Yc, + msgPrefixSym: Et, + } = Ne(), + { isMainThread: Xc } = require('worker_threads'), + Qc = qr(); + function De() {} + function Zc(e, t) { + if (!t) return r; + return function (...i) { + t.call(this, i, r, e); + }; + function r(n, ...i) { + if (typeof n == 'object') { + let o = n; + n !== null && + (n.method && n.headers && n.socket ? (n = Uc(n)) : typeof n.setHeader == 'function' && (n = Vc(n))); + let s; + o === null && i.length === 0 ? (s = [null]) : ((o = i.shift()), (s = i)), + typeof this[Et] == 'string' && o !== void 0 && o !== null && (o = this[Et] + o), + this[Lo](n, Oo(o, s, this[Io]), e); + } else { + let o = n === void 0 ? i.shift() : n; + typeof this[Et] == 'string' && o !== void 0 && o !== null && (o = this[Et] + o), + this[Lo](null, Oo(o, i, this[Io]), e); + } + } + } + function Nr(e) { + let t = '', + r = 0, + n = !1, + i = 255, + o = e.length; + if (o > 100) return JSON.stringify(e); + for (var s = 0; s < o && i >= 32; s++) + (i = e.charCodeAt(s)), (i === 34 || i === 92) && ((t += e.slice(r, s) + '\\'), (r = s), (n = !0)); + return n ? (t += e.slice(r)) : (t = e), i < 32 ? JSON.stringify(e) : '"' + t + '"'; + } + function ed(e, t, r, n) { + let i = this[qo], + o = this[$r], + s = this[Po], + f = this[Gc], + a = this[ko], + c = this[jo], + u = this[Do], + h = this[Kc], + p = this[Jc], + l = this[zc][r] + n; + l = l + a; + let d; + u.log && (e = u.log(e)); + let g = s[No], + w = ''; + for (let y in e) + if (((d = e[y]), Object.prototype.hasOwnProperty.call(e, y) && d !== void 0)) { + c[y] ? (d = c[y](d)) : y === p && c.err && (d = c.err(d)); + let m = s[y] || g; + switch (typeof d) { + case 'undefined': + case 'function': + continue; + case 'number': + Number.isFinite(d) === !1 && (d = null); + case 'boolean': + m && (d = m(d)); + break; + case 'string': + d = (m || Nr)(d); + break; + default: + d = (m || i)(d, o); + } + if (d === void 0) continue; + let E = Nr(y); + w += ',' + E + ':' + d; + } + let _ = ''; + if (t !== void 0) { + d = c[h] ? c[h](t) : t; + let y = s[h] || g; + switch (typeof d) { + case 'function': + break; + case 'number': + Number.isFinite(d) === !1 && (d = null); + case 'boolean': + y && (d = y(d)), (_ = ',"' + h + '":' + d); + break; + case 'string': + (d = (y || Nr)(d)), (_ = ',"' + h + '":' + d); + break; + default: + (d = (y || i)(d, o)), (_ = ',"' + h + '":' + d); + } + } + return this[Hc] && w ? l + this[Yc] + w.slice(1) + '}' + _ + f : l + w + _ + f; + } + function td(e, t) { + let r, + n = e[ko], + i = e[qo], + o = e[$r], + s = e[Po], + f = s[No], + a = e[jo], + c = e[Do].bindings; + t = c(t); + for (let u in t) + if ( + ((r = t[u]), + (u !== 'level' && + u !== 'serializers' && + u !== 'formatters' && + u !== 'customLevels' && + t.hasOwnProperty(u) && + r !== void 0) === !0) + ) { + if (((r = a[u] ? a[u](r) : r), (r = (s[u] || f || i)(r, o)), r === void 0)) continue; + n += ',"' + u + '":' + r; + } + return n; + } + function rd(e) { + return e.write !== e.constructor.prototype.write; + } + var nd = process.env.NODE_V8_COVERAGE || process.env.V8_COVERAGE; + function Rt(e) { + let t = new Dr(e); + return ( + t.on('error', r), + !nd && + !e.sync && + Xc && + (vo.register(t, id), + t.on('close', function () { + vo.unregister(t); + })), + t + ); + function r(n) { + if (n.code === 'EPIPE') { + (t.write = De), (t.end = De), (t.flushSync = De), (t.destroy = De); + return; + } + t.removeListener('error', r), t.emit('error', n); + } + } + function id(e, t) { + e.destroyed || + (t === 'beforeExit' + ? (e.flush(), + e.on('drain', function () { + e.end(); + })) + : e.flushSync()); + } + function od(e) { + return function (r, n, i = {}, o) { + if (typeof i == 'string') (o = Rt({ dest: i })), (i = {}); + else if (typeof o == 'string') { + if (i && i.transport) throw Error('only one of option.transport or stream can be specified'); + o = Rt({ dest: o }); + } else if (i instanceof Dr || i.writable || i._writableState) (o = i), (i = {}); + else if (i.transport) { + if (i.transport instanceof Dr || i.transport.writable || i.transport._writableState) + throw Error('option.transport do not allow stream, please pass to option directly. e.g. pino(transport)'); + if ( + i.transport.targets && + i.transport.targets.length && + i.formatters && + typeof i.formatters.level == 'function' + ) + throw Error('option.transport.targets do not allow custom level formatters'); + let a; + i.customLevels && (a = i.useOnlyCustomLevels ? i.customLevels : Object.assign({}, i.levels, i.customLevels)), + (o = Qc({ caller: n, ...i.transport, levels: a })); + } + if ( + ((i = Object.assign({}, e, i)), + (i.serializers = Object.assign({}, e.serializers, i.serializers)), + (i.formatters = Object.assign({}, e.formatters, i.formatters)), + i.prettyPrint) + ) + throw new Error( + 'prettyPrint option is no longer supported, see the pino-pretty package (https://github.com/pinojs/pino-pretty)' + ); + let { enabled: s, onChild: f } = i; + return ( + s === !1 && (i.level = 'silent'), + f || (i.onChild = De), + o || (rd(process.stdout) ? (o = process.stdout) : (o = Rt({ fd: process.stdout.fd || 1 }))), + { opts: i, stream: o } + ); + }; + } + function sd(e, t) { + try { + return JSON.stringify(e); + } catch { + try { + return (t || this[$r])(e); + } catch { + return '"[unable to serialize, circular reference is too complex to analyze]"'; + } + } + } + function ld(e, t, r) { + return { level: e, bindings: t, log: r }; + } + function fd(e) { + let t = Number(e); + return typeof e == 'string' && Number.isFinite(t) ? t : e === void 0 ? 1 : e; + } + $o.exports = { + noop: De, + buildSafeSonicBoom: Rt, + asChindings: td, + asJson: ed, + genLog: Zc, + createArgsNormalizer: od, + stringify: sd, + buildFormatters: ld, + normalizeDestFileDescriptor: fd, + }; +}); +var xt = S((km, Co) => { + 'use strict'; + var { + lsCacheSym: ud, + levelValSym: Mr, + useOnlyCustomLevelsSym: ad, + streamSym: cd, + formattersSym: dd, + hooksSym: hd, + } = Ne(), + { noop: pd, genLog: _e } = At(), + J = { trace: 10, debug: 20, info: 30, warn: 40, error: 50, fatal: 60 }, + Mo = { + fatal: (e) => { + let t = _e(J.fatal, e); + return function (...r) { + let n = this[cd]; + if ((t.call(this, ...r), typeof n.flushSync == 'function')) + try { + n.flushSync(); + } catch {} + }; + }, + error: (e) => _e(J.error, e), + warn: (e) => _e(J.warn, e), + info: (e) => _e(J.info, e), + debug: (e) => _e(J.debug, e), + trace: (e) => _e(J.trace, e), + }, + Cr = Object.keys(J).reduce((e, t) => ((e[J[t]] = t), e), {}), + yd = Object.keys(Cr).reduce((e, t) => ((e[t] = '{"level":' + Number(t)), e), {}); + function bd(e) { + let t = e[dd].level, + { labels: r } = e.levels, + n = {}; + for (let i in r) { + let o = t(r[i], Number(i)); + n[i] = JSON.stringify(o).slice(0, -1); + } + return (e[ud] = n), e; + } + function gd(e, t) { + if (t) return !1; + switch (e) { + case 'fatal': + case 'error': + case 'warn': + case 'info': + case 'debug': + case 'trace': + return !0; + default: + return !1; + } + } + function wd(e) { + let { labels: t, values: r } = this.levels; + if (typeof e == 'number') { + if (t[e] === void 0) throw Error('unknown level value' + e); + e = t[e]; + } + if (r[e] === void 0) throw Error('unknown level ' + e); + let n = this[Mr], + i = (this[Mr] = r[e]), + o = this[ad], + s = this[hd].logMethod; + for (let f in r) { + if (i > r[f]) { + this[f] = pd; + continue; + } + this[f] = gd(f, o) ? Mo[f](s) : _e(r[f], s); + } + this.emit('level-change', e, i, t[n], n, this); + } + function md(e) { + let { levels: t, levelVal: r } = this; + return t && t.labels ? t.labels[r] : ''; + } + function _d(e) { + let { values: t } = this.levels, + r = t[e]; + return r !== void 0 && r >= this[Mr]; + } + function Sd(e = null, t = !1) { + let r = e ? Object.keys(e).reduce((o, s) => ((o[e[s]] = s), o), {}) : null, + n = Object.assign(Object.create(Object.prototype, { Infinity: { value: 'silent' } }), t ? null : Cr, r), + i = Object.assign(Object.create(Object.prototype, { silent: { value: 1 / 0 } }), t ? null : J, e); + return { labels: n, values: i }; + } + function Ed(e, t, r) { + if (typeof e == 'number') { + if ( + ![] + .concat( + Object.keys(t || {}).map((o) => t[o]), + r ? [] : Object.keys(Cr).map((o) => +o), + 1 / 0 + ) + .includes(e) + ) + throw Error(`default level:${e} must be included in custom levels`); + return; + } + let n = Object.assign(Object.create(Object.prototype, { silent: { value: 1 / 0 } }), r ? null : J, t); + if (!(e in n)) throw Error(`default level:${e} must be included in custom levels`); + } + function Rd(e, t) { + let { labels: r, values: n } = e; + for (let i in t) { + if (i in n) throw Error('levels cannot be overridden'); + if (t[i] in r) throw Error('pre-existing level values cannot be used for new levels'); + } + } + Co.exports = { + initialLsCache: yd, + genLsCache: bd, + levelMethods: Mo, + getLevel: md, + setLevel: wd, + isLevelEnabled: _d, + mappings: Sd, + levels: J, + assertNoLevelCollisions: Rd, + assertDefaultLevelFound: Ed, + }; +}); +var Wr = S((jm, Wo) => { + 'use strict'; + Wo.exports = { version: '8.16.0' }; +}); +var Xo = S((qm, Yo) => { + 'use strict'; + var { EventEmitter: Ad } = require('events'), + { + lsCacheSym: xd, + levelValSym: Td, + setLevelSym: Fr, + getLevelSym: Bo, + chindingsSym: Ur, + parsedChindingsSym: Od, + mixinSym: vd, + asJsonSym: Go, + writeSym: Ld, + mixinMergeStrategySym: Id, + timeSym: kd, + timeSliceIndexSym: jd, + streamSym: Ho, + serializersSym: Se, + formattersSym: Br, + errorKeySym: Pd, + messageKeySym: qd, + useOnlyCustomLevelsSym: Nd, + needsMetadataGsym: Dd, + redactFmtSym: $d, + stringifySym: Md, + formatOptsSym: Cd, + stringifiersSym: Wd, + msgPrefixSym: Fo, + } = Ne(), + { + getLevel: Bd, + setLevel: Fd, + isLevelEnabled: Ud, + mappings: Vd, + initialLsCache: zd, + genLsCache: Gd, + assertNoLevelCollisions: Hd, + } = xt(), + { asChindings: Ko, asJson: Kd, buildFormatters: Uo, stringify: Vo } = At(), + { version: Jd } = Wr(), + Yd = Er(), + Xd = class {}, + Jo = { + constructor: Xd, + child: Qd, + bindings: Zd, + setBindings: eh, + flush: ih, + isLevelEnabled: Ud, + version: Jd, + get level() { + return this[Bo](); + }, + set level(e) { + this[Fr](e); + }, + get levelVal() { + return this[Td]; + }, + set levelVal(e) { + throw Error('levelVal is read-only'); + }, + [xd]: zd, + [Ld]: rh, + [Go]: Kd, + [Bo]: Bd, + [Fr]: Fd, + }; + Object.setPrototypeOf(Jo, Ad.prototype); + Yo.exports = function () { + return Object.create(Jo); + }; + var zo = (e) => e; + function Qd(e, t) { + if (!e) throw Error('missing bindings for child Pino'); + t = t || {}; + let r = this[Se], + n = this[Br], + i = Object.create(this); + if (t.hasOwnProperty('serializers') === !0) { + i[Se] = Object.create(null); + for (let u in r) i[Se][u] = r[u]; + let a = Object.getOwnPropertySymbols(r); + for (var o = 0; o < a.length; o++) { + let u = a[o]; + i[Se][u] = r[u]; + } + for (let u in t.serializers) i[Se][u] = t.serializers[u]; + let c = Object.getOwnPropertySymbols(t.serializers); + for (var s = 0; s < c.length; s++) { + let u = c[s]; + i[Se][u] = t.serializers[u]; + } + } else i[Se] = r; + if (t.hasOwnProperty('formatters')) { + let { level: a, bindings: c, log: u } = t.formatters; + i[Br] = Uo(a || n.level, c || zo, u || n.log); + } else i[Br] = Uo(n.level, zo, n.log); + if ( + (t.hasOwnProperty('customLevels') === !0 && + (Hd(this.levels, t.customLevels), (i.levels = Vd(t.customLevels, i[Nd])), Gd(i)), + (typeof t.redact == 'object' && t.redact !== null) || Array.isArray(t.redact)) + ) { + i.redact = t.redact; + let a = Yd(i.redact, Vo), + c = { stringify: a[$d] }; + (i[Md] = Vo), (i[Wd] = a), (i[Cd] = c); + } + typeof t.msgPrefix == 'string' && (i[Fo] = (this[Fo] || '') + t.msgPrefix), (i[Ur] = Ko(i, e)); + let f = t.level || this.level; + return i[Fr](f), this.onChild(i), i; + } + function Zd() { + let t = `{${this[Ur].substr(1)}}`, + r = JSON.parse(t); + return delete r.pid, delete r.hostname, r; + } + function eh(e) { + let t = Ko(this, e); + (this[Ur] = t), delete this[Od]; + } + function th(e, t) { + return Object.assign(t, e); + } + function rh(e, t, r) { + let n = this[kd](), + i = this[vd], + o = this[Pd], + s = this[qd], + f = this[Id] || th, + a; + e == null + ? (a = {}) + : e instanceof Error + ? ((a = { [o]: e }), t === void 0 && (t = e.message)) + : ((a = e), t === void 0 && e[s] === void 0 && e[o] && (t = e[o].message)), + i && (a = f(a, i(a, r, this))); + let c = this[Go](a, t, r, n), + u = this[Ho]; + u[Dd] === !0 && + ((u.lastLevel = r), (u.lastObj = a), (u.lastMsg = t), (u.lastTime = n.slice(this[jd])), (u.lastLogger = this)), + u.write(c); + } + function nh() {} + function ih(e) { + if (e != null && typeof e != 'function') throw Error('callback must be a function'); + let t = this[Ho]; + 'flush' in t ? t.flush(e || nh) : e && e(); + } +}); +var rs = S((Hr, ts) => { + 'use strict'; + var { hasOwnProperty: Tt } = Object.prototype, + Re = Gr(); + Re.configure = Gr; + Re.stringify = Re; + Re.default = Re; + Hr.stringify = Re; + Hr.configure = Gr; + ts.exports = Re; + var oh = + /[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/; + function de(e) { + return e.length < 5e3 && !oh.test(e) ? `"${e}"` : JSON.stringify(e); + } + function Vr(e) { + if (e.length > 200) return e.sort(); + for (let t = 1; t < e.length; t++) { + let r = e[t], + n = t; + for (; n !== 0 && e[n - 1] > r; ) (e[n] = e[n - 1]), n--; + e[n] = r; + } + return e; + } + var sh = Object.getOwnPropertyDescriptor( + Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array())), + Symbol.toStringTag + ).get; + function zr(e) { + return sh.call(e) !== void 0 && e.length !== 0; + } + function Qo(e, t, r) { + e.length < r && (r = e.length); + let n = t === ',' ? '' : ' ', + i = `"0":${n}${e[0]}`; + for (let o = 1; o < r; o++) i += `${t}"${o}":${n}${e[o]}`; + return i; + } + function lh(e) { + if (Tt.call(e, 'circularValue')) { + let t = e.circularValue; + if (typeof t == 'string') return `"${t}"`; + if (t == null) return t; + if (t === Error || t === TypeError) + return { + toString() { + throw new TypeError('Converting circular structure to JSON'); + }, + }; + throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined'); + } + return '"[Circular]"'; + } + function Zo(e, t) { + let r; + if (Tt.call(e, t) && ((r = e[t]), typeof r != 'boolean')) + throw new TypeError(`The "${t}" argument must be of type boolean`); + return r === void 0 ? !0 : r; + } + function es(e, t) { + let r; + if (Tt.call(e, t)) { + if (((r = e[t]), typeof r != 'number')) throw new TypeError(`The "${t}" argument must be of type number`); + if (!Number.isInteger(r)) throw new TypeError(`The "${t}" argument must be an integer`); + if (r < 1) throw new RangeError(`The "${t}" argument must be >= 1`); + } + return r === void 0 ? 1 / 0 : r; + } + function Ee(e) { + return e === 1 ? '1 item' : `${e} items`; + } + function fh(e) { + let t = new Set(); + for (let r of e) (typeof r == 'string' || typeof r == 'number') && t.add(String(r)); + return t; + } + function uh(e) { + if (Tt.call(e, 'strict')) { + let t = e.strict; + if (typeof t != 'boolean') throw new TypeError('The "strict" argument must be of type boolean'); + if (t) + return (r) => { + let n = `Object can not safely be stringified. Received type ${typeof r}`; + throw (typeof r != 'function' && (n += ` (${r.toString()})`), new Error(n)); + }; + } + } + function Gr(e) { + e = { ...e }; + let t = uh(e); + t && (e.bigint === void 0 && (e.bigint = !1), 'circularValue' in e || (e.circularValue = Error)); + let r = lh(e), + n = Zo(e, 'bigint'), + i = Zo(e, 'deterministic'), + o = es(e, 'maximumDepth'), + s = es(e, 'maximumBreadth'); + function f(p, l, d, g, w, _) { + let y = l[p]; + switch ( + (typeof y == 'object' && y !== null && typeof y.toJSON == 'function' && (y = y.toJSON(p)), + (y = g.call(l, p, y)), + typeof y) + ) { + case 'string': + return de(y); + case 'object': { + if (y === null) return 'null'; + if (d.indexOf(y) !== -1) return r; + let m = '', + E = ',', + R = _; + if (Array.isArray(y)) { + if (y.length === 0) return '[]'; + if (o < d.length + 1) return '"[Array]"'; + d.push(y), + w !== '' && + ((_ += w), + (m += ` +${_}`), + (E = `, +${_}`)); + let D = Math.min(y.length, s), + P = 0; + for (; P < D - 1; P++) { + let me = f(String(P), y, d, g, w, _); + (m += me !== void 0 ? me : 'null'), (m += E); + } + let V = f(String(P), y, d, g, w, _); + if (((m += V !== void 0 ? V : 'null'), y.length - 1 > s)) { + let me = y.length - s - 1; + m += `${E}"... ${Ee(me)} not stringified"`; + } + return ( + w !== '' && + (m += ` +${R}`), + d.pop(), + `[${m}]` + ); + } + let x = Object.keys(y), + L = x.length; + if (L === 0) return '{}'; + if (o < d.length + 1) return '"[Object]"'; + let A = '', + I = ''; + w !== '' && + ((_ += w), + (E = `, +${_}`), + (A = ' ')); + let C = Math.min(L, s); + i && !zr(y) && (x = Vr(x)), d.push(y); + for (let D = 0; D < C; D++) { + let P = x[D], + V = f(P, y, d, g, w, _); + V !== void 0 && ((m += `${I}${de(P)}:${A}${V}`), (I = E)); + } + if (L > s) { + let D = L - s; + (m += `${I}"...":${A}"${Ee(D)} not stringified"`), (I = E); + } + return ( + w !== '' && + I.length > 1 && + (m = ` +${_}${m} +${R}`), + d.pop(), + `{${m}}` + ); + } + case 'number': + return isFinite(y) ? String(y) : t ? t(y) : 'null'; + case 'boolean': + return y === !0 ? 'true' : 'false'; + case 'undefined': + return; + case 'bigint': + if (n) return String(y); + default: + return t ? t(y) : void 0; + } + } + function a(p, l, d, g, w, _) { + switch ((typeof l == 'object' && l !== null && typeof l.toJSON == 'function' && (l = l.toJSON(p)), typeof l)) { + case 'string': + return de(l); + case 'object': { + if (l === null) return 'null'; + if (d.indexOf(l) !== -1) return r; + let y = _, + m = '', + E = ','; + if (Array.isArray(l)) { + if (l.length === 0) return '[]'; + if (o < d.length + 1) return '"[Array]"'; + d.push(l), + w !== '' && + ((_ += w), + (m += ` +${_}`), + (E = `, +${_}`)); + let L = Math.min(l.length, s), + A = 0; + for (; A < L - 1; A++) { + let C = a(String(A), l[A], d, g, w, _); + (m += C !== void 0 ? C : 'null'), (m += E); + } + let I = a(String(A), l[A], d, g, w, _); + if (((m += I !== void 0 ? I : 'null'), l.length - 1 > s)) { + let C = l.length - s - 1; + m += `${E}"... ${Ee(C)} not stringified"`; + } + return ( + w !== '' && + (m += ` +${y}`), + d.pop(), + `[${m}]` + ); + } + d.push(l); + let R = ''; + w !== '' && + ((_ += w), + (E = `, +${_}`), + (R = ' ')); + let x = ''; + for (let L of g) { + let A = a(L, l[L], d, g, w, _); + A !== void 0 && ((m += `${x}${de(L)}:${R}${A}`), (x = E)); + } + return ( + w !== '' && + x.length > 1 && + (m = ` +${_}${m} +${y}`), + d.pop(), + `{${m}}` + ); + } + case 'number': + return isFinite(l) ? String(l) : t ? t(l) : 'null'; + case 'boolean': + return l === !0 ? 'true' : 'false'; + case 'undefined': + return; + case 'bigint': + if (n) return String(l); + default: + return t ? t(l) : void 0; + } + } + function c(p, l, d, g, w) { + switch (typeof l) { + case 'string': + return de(l); + case 'object': { + if (l === null) return 'null'; + if (typeof l.toJSON == 'function') { + if (((l = l.toJSON(p)), typeof l != 'object')) return c(p, l, d, g, w); + if (l === null) return 'null'; + } + if (d.indexOf(l) !== -1) return r; + let _ = w; + if (Array.isArray(l)) { + if (l.length === 0) return '[]'; + if (o < d.length + 1) return '"[Array]"'; + d.push(l), (w += g); + let A = ` +${w}`, + I = `, +${w}`, + C = Math.min(l.length, s), + D = 0; + for (; D < C - 1; D++) { + let V = c(String(D), l[D], d, g, w); + (A += V !== void 0 ? V : 'null'), (A += I); + } + let P = c(String(D), l[D], d, g, w); + if (((A += P !== void 0 ? P : 'null'), l.length - 1 > s)) { + let V = l.length - s - 1; + A += `${I}"... ${Ee(V)} not stringified"`; + } + return ( + (A += ` +${_}`), + d.pop(), + `[${A}]` + ); + } + let y = Object.keys(l), + m = y.length; + if (m === 0) return '{}'; + if (o < d.length + 1) return '"[Object]"'; + w += g; + let E = `, +${w}`, + R = '', + x = '', + L = Math.min(m, s); + zr(l) && ((R += Qo(l, E, s)), (y = y.slice(l.length)), (L -= l.length), (x = E)), i && (y = Vr(y)), d.push(l); + for (let A = 0; A < L; A++) { + let I = y[A], + C = c(I, l[I], d, g, w); + C !== void 0 && ((R += `${x}${de(I)}: ${C}`), (x = E)); + } + if (m > s) { + let A = m - s; + (R += `${x}"...": "${Ee(A)} not stringified"`), (x = E); + } + return ( + x !== '' && + (R = ` +${w}${R} +${_}`), + d.pop(), + `{${R}}` + ); + } + case 'number': + return isFinite(l) ? String(l) : t ? t(l) : 'null'; + case 'boolean': + return l === !0 ? 'true' : 'false'; + case 'undefined': + return; + case 'bigint': + if (n) return String(l); + default: + return t ? t(l) : void 0; + } + } + function u(p, l, d) { + switch (typeof l) { + case 'string': + return de(l); + case 'object': { + if (l === null) return 'null'; + if (typeof l.toJSON == 'function') { + if (((l = l.toJSON(p)), typeof l != 'object')) return u(p, l, d); + if (l === null) return 'null'; + } + if (d.indexOf(l) !== -1) return r; + let g = ''; + if (Array.isArray(l)) { + if (l.length === 0) return '[]'; + if (o < d.length + 1) return '"[Array]"'; + d.push(l); + let E = Math.min(l.length, s), + R = 0; + for (; R < E - 1; R++) { + let L = u(String(R), l[R], d); + (g += L !== void 0 ? L : 'null'), (g += ','); + } + let x = u(String(R), l[R], d); + if (((g += x !== void 0 ? x : 'null'), l.length - 1 > s)) { + let L = l.length - s - 1; + g += `,"... ${Ee(L)} not stringified"`; + } + return d.pop(), `[${g}]`; + } + let w = Object.keys(l), + _ = w.length; + if (_ === 0) return '{}'; + if (o < d.length + 1) return '"[Object]"'; + let y = '', + m = Math.min(_, s); + zr(l) && ((g += Qo(l, ',', s)), (w = w.slice(l.length)), (m -= l.length), (y = ',')), + i && (w = Vr(w)), + d.push(l); + for (let E = 0; E < m; E++) { + let R = w[E], + x = u(R, l[R], d); + x !== void 0 && ((g += `${y}${de(R)}:${x}`), (y = ',')); + } + if (_ > s) { + let E = _ - s; + g += `${y}"...":"${Ee(E)} not stringified"`; + } + return d.pop(), `{${g}}`; + } + case 'number': + return isFinite(l) ? String(l) : t ? t(l) : 'null'; + case 'boolean': + return l === !0 ? 'true' : 'false'; + case 'undefined': + return; + case 'bigint': + if (n) return String(l); + default: + return t ? t(l) : void 0; + } + } + function h(p, l, d) { + if (arguments.length > 1) { + let g = ''; + if ( + (typeof d == 'number' ? (g = ' '.repeat(Math.min(d, 10))) : typeof d == 'string' && (g = d.slice(0, 10)), + l != null) + ) { + if (typeof l == 'function') return f('', { '': p }, [], l, g, ''); + if (Array.isArray(l)) return a('', p, [], fh(l), g, ''); + } + if (g.length !== 0) return c('', p, [], g, ''); + } + return u('', p, []); + } + return h; + } +}); +var os = S((Nm, is) => { + 'use strict'; + var Kr = Symbol.for('pino.metadata'), + { levels: ns } = xt(), + ah = ns.info; + function ch(e, t) { + let r = 0; + (e = e || []), (t = t || { dedupe: !1 }); + let n = Object.create(ns); + (n.silent = 1 / 0), + t.levels && + typeof t.levels == 'object' && + Object.keys(t.levels).forEach((u) => { + n[u] = t.levels[u]; + }); + let i = { write: o, add: f, flushSync: s, end: a, minLevel: 0, streams: [], clone: c, [Kr]: !0, streamLevels: n }; + return Array.isArray(e) ? e.forEach(f, i) : f.call(i, e), (e = null), i; + function o(u) { + let h, + p = this.lastLevel, + { streams: l } = this, + d = 0, + g; + for (let w = hh(l.length, t.dedupe); yh(w, l.length, t.dedupe); w = ph(w, t.dedupe)) + if (((h = l[w]), h.level <= p)) { + if (d !== 0 && d !== h.level) break; + if (((g = h.stream), g[Kr])) { + let { lastTime: _, lastMsg: y, lastObj: m, lastLogger: E } = this; + (g.lastLevel = p), (g.lastTime = _), (g.lastMsg = y), (g.lastObj = m), (g.lastLogger = E); + } + g.write(u), t.dedupe && (d = h.level); + } else if (!t.dedupe) break; + } + function s() { + for (let { stream: u } of this.streams) typeof u.flushSync == 'function' && u.flushSync(); + } + function f(u) { + if (!u) return i; + let h = typeof u.write == 'function' || u.stream, + p = u.write ? u : u.stream; + if (!h) throw Error('stream object needs to implement either StreamEntry or DestinationStream interface'); + let { streams: l, streamLevels: d } = this, + g; + typeof u.levelVal == 'number' + ? (g = u.levelVal) + : typeof u.level == 'string' + ? (g = d[u.level]) + : typeof u.level == 'number' + ? (g = u.level) + : (g = ah); + let w = { stream: p, level: g, levelVal: void 0, id: r++ }; + return l.unshift(w), l.sort(dh), (this.minLevel = l[0].level), i; + } + function a() { + for (let { stream: u } of this.streams) typeof u.flushSync == 'function' && u.flushSync(), u.end(); + } + function c(u) { + let h = new Array(this.streams.length); + for (let p = 0; p < h.length; p++) h[p] = { level: u, stream: this.streams[p].stream }; + return { write: o, add: f, minLevel: u, streams: h, clone: c, flushSync: s, [Kr]: !0 }; + } + } + function dh(e, t) { + return e.level - t.level; + } + function hh(e, t) { + return t ? e - 1 : 0; + } + function ph(e, t) { + return t ? e - 1 : e + 1; + } + function yh(e, t, r) { + return r ? e >= 0 : e < t; + } + is.exports = ch; +}); +var ws = S((Dm, z) => { + function He(e) { + try { + return require('path').join(`${process.cwd()}${require('path').sep}dist`.replace(/\\/g, '/'), e); + } catch { + return new Function('p', 'return new URL(p, import.meta.url).pathname')(e); + } + } + globalThis.__bundlerPathsOverrides = { + ...(globalThis.__bundlerPathsOverrides || {}), + 'thread-stream-worker': He('./thread-stream-worker.js'), + 'pino-worker': He('./pino-worker.js'), + 'pino-pipeline-worker': He('./pino-pipeline-worker.js'), + 'pino/file': He('./pino-file.js'), + 'pino-pretty': He('./pino-pretty.js'), + }; + var bh = require('os'), + hs = yr(), + gh = br(), + wh = Er(), + ps = Qi(), + mh = Xo(), + ys = Ne(), + { configure: _h } = rs(), + { assertDefaultLevelFound: Sh, mappings: bs, genLsCache: Eh, levels: Rh } = xt(), + { + createArgsNormalizer: Ah, + asChindings: xh, + buildSafeSonicBoom: ss, + buildFormatters: Th, + stringify: Jr, + normalizeDestFileDescriptor: ls, + noop: Oh, + } = At(), + { version: vh } = Wr(), + { + chindingsSym: fs, + redactFmtSym: Lh, + serializersSym: us, + timeSym: Ih, + timeSliceIndexSym: kh, + streamSym: jh, + stringifySym: as, + stringifySafeSym: Yr, + stringifiersSym: cs, + setLevelSym: Ph, + endSym: qh, + formatOptsSym: Nh, + messageKeySym: Dh, + errorKeySym: $h, + nestedKeySym: Mh, + mixinSym: Ch, + useOnlyCustomLevelsSym: Wh, + formattersSym: ds, + hooksSym: Bh, + nestedKeyStrSym: Fh, + mixinMergeStrategySym: Uh, + msgPrefixSym: Vh, + } = ys, + { epochTime: gs, nullTime: zh } = ps, + { pid: Gh } = process, + Hh = bh.hostname(), + Kh = hs.err, + Jh = { + level: 'info', + levels: Rh, + messageKey: 'msg', + errorKey: 'err', + nestedKey: null, + enabled: !0, + base: { pid: Gh, hostname: Hh }, + serializers: Object.assign(Object.create(null), { err: Kh }), + formatters: Object.assign(Object.create(null), { + bindings(e) { + return e; + }, + level(e, t) { + return { level: t }; + }, + }), + hooks: { logMethod: void 0 }, + timestamp: gs, + name: void 0, + redact: null, + customLevels: null, + useOnlyCustomLevels: !1, + depthLimit: 5, + edgeLimit: 100, + }, + Yh = Ah(Jh), + Xh = Object.assign(Object.create(null), hs); + function Xr(...e) { + let t = {}, + { opts: r, stream: n } = Yh(t, gh(), ...e), + { + redact: i, + crlf: o, + serializers: s, + timestamp: f, + messageKey: a, + errorKey: c, + nestedKey: u, + base: h, + name: p, + level: l, + customLevels: d, + mixin: g, + mixinMergeStrategy: w, + useOnlyCustomLevels: _, + formatters: y, + hooks: m, + depthLimit: E, + edgeLimit: R, + onChild: x, + msgPrefix: L, + } = r, + A = _h({ maximumDepth: E, maximumBreadth: R }), + I = Th(y.level, y.bindings, y.log), + C = Jr.bind({ [Yr]: A }), + D = i ? wh(i, C) : {}, + P = i ? { stringify: D[Lh] } : { stringify: C }, + V = + '}' + + (o + ? `\r +` + : ` +`), + me = xh.bind(null, { [fs]: '', [us]: s, [cs]: D, [as]: Jr, [Yr]: A, [ds]: I }), + or = ''; + h !== null && (p === void 0 ? (or = me(h)) : (or = me(Object.assign({}, h, { name: p })))); + let li = f instanceof Function ? f : f ? gs : zh, + mu = li().indexOf(':') + 1; + if (_ && !d) throw Error('customLevels is required if useOnlyCustomLevels is set true'); + if (g && typeof g != 'function') throw Error(`Unknown mixin type "${typeof g}" - expected "function"`); + if (L && typeof L != 'string') throw Error(`Unknown msgPrefix type "${typeof L}" - expected "string"`); + Sh(l, d, _); + let _u = bs(d, _); + return ( + Object.assign(t, { + levels: _u, + [Wh]: _, + [jh]: n, + [Ih]: li, + [kh]: mu, + [as]: Jr, + [Yr]: A, + [cs]: D, + [qh]: V, + [Nh]: P, + [Dh]: a, + [$h]: c, + [Mh]: u, + [Fh]: u ? `,${JSON.stringify(u)}:{` : '', + [us]: s, + [Ch]: g, + [Uh]: w, + [fs]: or, + [ds]: I, + [Bh]: m, + silent: Oh, + onChild: x, + [Vh]: L, + }), + Object.setPrototypeOf(t, mh()), + Eh(t), + t[Ph](l), + t + ); + } + z.exports = Xr; + z.exports.destination = (e = process.stdout.fd) => + typeof e == 'object' ? ((e.dest = ls(e.dest || process.stdout.fd)), ss(e)) : ss({ dest: ls(e), minLength: 0 }); + z.exports.transport = qr(); + z.exports.multistream = os(); + z.exports.levels = bs(); + z.exports.stdSerializers = Xh; + z.exports.stdTimeFunctions = Object.assign({}, ps); + z.exports.symbols = ys; + z.exports.version = vh; + z.exports.default = Xr; + z.exports.pino = Xr; +}); +var Es = S(($m, Ss) => { + 'use strict'; + var { Transform: Qh } = require('stream'), + { StringDecoder: Zh } = require('string_decoder'), + he = Symbol('last'), + Ot = Symbol('decoder'); + function ep(e, t, r) { + let n; + if (this.overflow) { + if (((n = this[Ot].write(e).split(this.matcher)), n.length === 1)) return r(); + n.shift(), (this.overflow = !1); + } else (this[he] += this[Ot].write(e)), (n = this[he].split(this.matcher)); + this[he] = n.pop(); + for (let i = 0; i < n.length; i++) + try { + _s(this, this.mapper(n[i])); + } catch (o) { + return r(o); + } + if (((this.overflow = this[he].length > this.maxLength), this.overflow && !this.skipOverflow)) { + r(new Error('maximum buffer reached')); + return; + } + r(); + } + function tp(e) { + if (((this[he] += this[Ot].end()), this[he])) + try { + _s(this, this.mapper(this[he])); + } catch (t) { + return e(t); + } + e(); + } + function _s(e, t) { + t !== void 0 && e.push(t); + } + function ms(e) { + return e; + } + function rp(e, t, r) { + switch (((e = e || /\r?\n/), (t = t || ms), (r = r || {}), arguments.length)) { + case 1: + typeof e == 'function' + ? ((t = e), (e = /\r?\n/)) + : typeof e == 'object' && !(e instanceof RegExp) && !e[Symbol.split] && ((r = e), (e = /\r?\n/)); + break; + case 2: + typeof e == 'function' ? ((r = t), (t = e), (e = /\r?\n/)) : typeof t == 'object' && ((r = t), (t = ms)); + } + (r = Object.assign({}, r)), (r.autoDestroy = !0), (r.transform = ep), (r.flush = tp), (r.readableObjectMode = !0); + let n = new Qh(r); + return ( + (n[he] = ''), + (n[Ot] = new Zh('utf8')), + (n.matcher = e), + (n.mapper = t), + (n.maxLength = r.maxLength), + (n.skipOverflow = r.skipOverflow || !1), + (n.overflow = !1), + (n._destroy = function (i, o) { + (this._writableState.errorEmitted = !1), o(i); + }), + n + ); + } + Ss.exports = rp; +}); +var $ = S((Mm, Rs) => { + 'use strict'; + Rs.exports = { + ArrayIsArray(e) { + return Array.isArray(e); + }, + ArrayPrototypeIncludes(e, t) { + return e.includes(t); + }, + ArrayPrototypeIndexOf(e, t) { + return e.indexOf(t); + }, + ArrayPrototypeJoin(e, t) { + return e.join(t); + }, + ArrayPrototypeMap(e, t) { + return e.map(t); + }, + ArrayPrototypePop(e, t) { + return e.pop(t); + }, + ArrayPrototypePush(e, t) { + return e.push(t); + }, + ArrayPrototypeSlice(e, t, r) { + return e.slice(t, r); + }, + Error, + FunctionPrototypeCall(e, t, ...r) { + return e.call(t, ...r); + }, + FunctionPrototypeSymbolHasInstance(e, t) { + return Function.prototype[Symbol.hasInstance].call(e, t); + }, + MathFloor: Math.floor, + Number, + NumberIsInteger: Number.isInteger, + NumberIsNaN: Number.isNaN, + NumberMAX_SAFE_INTEGER: Number.MAX_SAFE_INTEGER, + NumberMIN_SAFE_INTEGER: Number.MIN_SAFE_INTEGER, + NumberParseInt: Number.parseInt, + ObjectDefineProperties(e, t) { + return Object.defineProperties(e, t); + }, + ObjectDefineProperty(e, t, r) { + return Object.defineProperty(e, t, r); + }, + ObjectGetOwnPropertyDescriptor(e, t) { + return Object.getOwnPropertyDescriptor(e, t); + }, + ObjectKeys(e) { + return Object.keys(e); + }, + ObjectSetPrototypeOf(e, t) { + return Object.setPrototypeOf(e, t); + }, + Promise, + PromisePrototypeCatch(e, t) { + return e.catch(t); + }, + PromisePrototypeThen(e, t, r) { + return e.then(t, r); + }, + PromiseReject(e) { + return Promise.reject(e); + }, + ReflectApply: Reflect.apply, + RegExpPrototypeTest(e, t) { + return e.test(t); + }, + SafeSet: Set, + String, + StringPrototypeSlice(e, t, r) { + return e.slice(t, r); + }, + StringPrototypeToLowerCase(e) { + return e.toLowerCase(); + }, + StringPrototypeToUpperCase(e) { + return e.toUpperCase(); + }, + StringPrototypeTrim(e) { + return e.trim(); + }, + Symbol, + SymbolFor: Symbol.for, + SymbolAsyncIterator: Symbol.asyncIterator, + SymbolHasInstance: Symbol.hasInstance, + SymbolIterator: Symbol.iterator, + TypedArrayPrototypeSet(e, t, r) { + return e.set(t, r); + }, + Uint8Array, + }; +}); +var te = S((Cm, Zr) => { + 'use strict'; + var np = require('buffer'), + ip = Object.getPrototypeOf(async function () {}).constructor, + As = globalThis.Blob || np.Blob, + op = + typeof As < 'u' + ? function (t) { + return t instanceof As; + } + : function (t) { + return !1; + }, + Qr = class extends Error { + constructor(t) { + if (!Array.isArray(t)) throw new TypeError(`Expected input to be an Array, got ${typeof t}`); + let r = ''; + for (let n = 0; n < t.length; n++) + r += ` ${t[n].stack} +`; + super(r), (this.name = 'AggregateError'), (this.errors = t); + } + }; + Zr.exports = { + AggregateError: Qr, + kEmptyObject: Object.freeze({}), + once(e) { + let t = !1; + return function (...r) { + t || ((t = !0), e.apply(this, r)); + }; + }, + createDeferredPromise: function () { + let e, t; + return { + promise: new Promise((n, i) => { + (e = n), (t = i); + }), + resolve: e, + reject: t, + }; + }, + promisify(e) { + return new Promise((t, r) => { + e((n, ...i) => (n ? r(n) : t(...i))); + }); + }, + debuglog() { + return function () {}; + }, + format(e, ...t) { + return e.replace(/%([sdifj])/g, function (...[r, n]) { + let i = t.shift(); + return n === 'f' + ? i.toFixed(6) + : n === 'j' + ? JSON.stringify(i) + : n === 's' && typeof i == 'object' + ? `${i.constructor !== Object ? i.constructor.name : ''} {}`.trim() + : i.toString(); + }); + }, + inspect(e) { + switch (typeof e) { + case 'string': + if (e.includes("'")) + if (e.includes('"')) { + if (!e.includes('`') && !e.includes('${')) return `\`${e}\``; + } else return `"${e}"`; + return `'${e}'`; + case 'number': + return isNaN(e) ? 'NaN' : Object.is(e, -0) ? String(e) : e; + case 'bigint': + return `${String(e)}n`; + case 'boolean': + case 'undefined': + return String(e); + case 'object': + return '{}'; + } + }, + types: { + isAsyncFunction(e) { + return e instanceof ip; + }, + isArrayBufferView(e) { + return ArrayBuffer.isView(e); + }, + }, + isBlob: op, + }; + Zr.exports.promisify.custom = Symbol.for('nodejs.util.promisify.custom'); +}); +var qs = S((Ye, Je) => { + 'use strict'; + Object.defineProperty(Ye, '__esModule', { value: !0 }); + var Is = new WeakMap(), + en = new WeakMap(); + function k(e) { + let t = Is.get(e); + return console.assert(t != null, "'this' is expected an Event object, but got", e), t; + } + function xs(e) { + if (e.passiveListener != null) { + typeof console < 'u' && + typeof console.error == 'function' && + console.error('Unable to preventDefault inside passive event listener invocation.', e.passiveListener); + return; + } + e.event.cancelable && ((e.canceled = !0), typeof e.event.preventDefault == 'function' && e.event.preventDefault()); + } + function $e(e, t) { + Is.set(this, { + eventTarget: e, + event: t, + eventPhase: 2, + currentTarget: e, + canceled: !1, + stopped: !1, + immediateStopped: !1, + passiveListener: null, + timeStamp: t.timeStamp || Date.now(), + }), + Object.defineProperty(this, 'isTrusted', { value: !1, enumerable: !0 }); + let r = Object.keys(t); + for (let n = 0; n < r.length; ++n) { + let i = r[n]; + i in this || Object.defineProperty(this, i, ks(i)); + } + } + $e.prototype = { + get type() { + return k(this).event.type; + }, + get target() { + return k(this).eventTarget; + }, + get currentTarget() { + return k(this).currentTarget; + }, + composedPath() { + let e = k(this).currentTarget; + return e == null ? [] : [e]; + }, + get NONE() { + return 0; + }, + get CAPTURING_PHASE() { + return 1; + }, + get AT_TARGET() { + return 2; + }, + get BUBBLING_PHASE() { + return 3; + }, + get eventPhase() { + return k(this).eventPhase; + }, + stopPropagation() { + let e = k(this); + (e.stopped = !0), typeof e.event.stopPropagation == 'function' && e.event.stopPropagation(); + }, + stopImmediatePropagation() { + let e = k(this); + (e.stopped = !0), + (e.immediateStopped = !0), + typeof e.event.stopImmediatePropagation == 'function' && e.event.stopImmediatePropagation(); + }, + get bubbles() { + return !!k(this).event.bubbles; + }, + get cancelable() { + return !!k(this).event.cancelable; + }, + preventDefault() { + xs(k(this)); + }, + get defaultPrevented() { + return k(this).canceled; + }, + get composed() { + return !!k(this).event.composed; + }, + get timeStamp() { + return k(this).timeStamp; + }, + get srcElement() { + return k(this).eventTarget; + }, + get cancelBubble() { + return k(this).stopped; + }, + set cancelBubble(e) { + if (!e) return; + let t = k(this); + (t.stopped = !0), typeof t.event.cancelBubble == 'boolean' && (t.event.cancelBubble = !0); + }, + get returnValue() { + return !k(this).canceled; + }, + set returnValue(e) { + e || xs(k(this)); + }, + initEvent() {}, + }; + Object.defineProperty($e.prototype, 'constructor', { value: $e, configurable: !0, writable: !0 }); + typeof window < 'u' && + typeof window.Event < 'u' && + (Object.setPrototypeOf($e.prototype, window.Event.prototype), en.set(window.Event.prototype, $e)); + function ks(e) { + return { + get() { + return k(this).event[e]; + }, + set(t) { + k(this).event[e] = t; + }, + configurable: !0, + enumerable: !0, + }; + } + function sp(e) { + return { + value() { + let t = k(this).event; + return t[e].apply(t, arguments); + }, + configurable: !0, + enumerable: !0, + }; + } + function lp(e, t) { + let r = Object.keys(t); + if (r.length === 0) return e; + function n(i, o) { + e.call(this, i, o); + } + n.prototype = Object.create(e.prototype, { constructor: { value: n, configurable: !0, writable: !0 } }); + for (let i = 0; i < r.length; ++i) { + let o = r[i]; + if (!(o in e.prototype)) { + let f = typeof Object.getOwnPropertyDescriptor(t, o).value == 'function'; + Object.defineProperty(n.prototype, o, f ? sp(o) : ks(o)); + } + } + return n; + } + function js(e) { + if (e == null || e === Object.prototype) return $e; + let t = en.get(e); + return t == null && ((t = lp(js(Object.getPrototypeOf(e)), e)), en.set(e, t)), t; + } + function fp(e, t) { + let r = js(Object.getPrototypeOf(t)); + return new r(e, t); + } + function up(e) { + return k(e).immediateStopped; + } + function ap(e, t) { + k(e).eventPhase = t; + } + function cp(e, t) { + k(e).currentTarget = t; + } + function Ts(e, t) { + k(e).passiveListener = t; + } + var Ps = new WeakMap(), + Os = 1, + vs = 2, + vt = 3; + function Lt(e) { + return e !== null && typeof e == 'object'; + } + function Ke(e) { + let t = Ps.get(e); + if (t == null) throw new TypeError("'this' is expected an EventTarget object, but got another value."); + return t; + } + function dp(e) { + return { + get() { + let r = Ke(this).get(e); + for (; r != null; ) { + if (r.listenerType === vt) return r.listener; + r = r.next; + } + return null; + }, + set(t) { + typeof t != 'function' && !Lt(t) && (t = null); + let r = Ke(this), + n = null, + i = r.get(e); + for (; i != null; ) + i.listenerType === vt + ? n !== null + ? (n.next = i.next) + : i.next !== null + ? r.set(e, i.next) + : r.delete(e) + : (n = i), + (i = i.next); + if (t !== null) { + let o = { listener: t, listenerType: vt, passive: !1, once: !1, next: null }; + n === null ? r.set(e, o) : (n.next = o); + } + }, + configurable: !0, + enumerable: !0, + }; + } + function tn(e, t) { + Object.defineProperty(e, `on${t}`, dp(t)); + } + function Ls(e) { + function t() { + Y.call(this); + } + t.prototype = Object.create(Y.prototype, { constructor: { value: t, configurable: !0, writable: !0 } }); + for (let r = 0; r < e.length; ++r) tn(t.prototype, e[r]); + return t; + } + function Y() { + if (this instanceof Y) { + Ps.set(this, new Map()); + return; + } + if (arguments.length === 1 && Array.isArray(arguments[0])) return Ls(arguments[0]); + if (arguments.length > 0) { + let e = new Array(arguments.length); + for (let t = 0; t < arguments.length; ++t) e[t] = arguments[t]; + return Ls(e); + } + throw new TypeError('Cannot call a class as a function'); + } + Y.prototype = { + addEventListener(e, t, r) { + if (t == null) return; + if (typeof t != 'function' && !Lt(t)) throw new TypeError("'listener' should be a function or an object."); + let n = Ke(this), + i = Lt(r), + s = (i ? !!r.capture : !!r) ? Os : vs, + f = { listener: t, listenerType: s, passive: i && !!r.passive, once: i && !!r.once, next: null }, + a = n.get(e); + if (a === void 0) { + n.set(e, f); + return; + } + let c = null; + for (; a != null; ) { + if (a.listener === t && a.listenerType === s) return; + (c = a), (a = a.next); + } + c.next = f; + }, + removeEventListener(e, t, r) { + if (t == null) return; + let n = Ke(this), + o = (Lt(r) ? !!r.capture : !!r) ? Os : vs, + s = null, + f = n.get(e); + for (; f != null; ) { + if (f.listener === t && f.listenerType === o) { + s !== null ? (s.next = f.next) : f.next !== null ? n.set(e, f.next) : n.delete(e); + return; + } + (s = f), (f = f.next); + } + }, + dispatchEvent(e) { + if (e == null || typeof e.type != 'string') throw new TypeError('"event.type" should be a string.'); + let t = Ke(this), + r = e.type, + n = t.get(r); + if (n == null) return !0; + let i = fp(this, e), + o = null; + for (; n != null; ) { + if ( + (n.once ? (o !== null ? (o.next = n.next) : n.next !== null ? t.set(r, n.next) : t.delete(r)) : (o = n), + Ts(i, n.passive ? n.listener : null), + typeof n.listener == 'function') + ) + try { + n.listener.call(this, i); + } catch (s) { + typeof console < 'u' && typeof console.error == 'function' && console.error(s); + } + else n.listenerType !== vt && typeof n.listener.handleEvent == 'function' && n.listener.handleEvent(i); + if (up(i)) break; + n = n.next; + } + return Ts(i, null), ap(i, 0), cp(i, null), !i.defaultPrevented; + }, + }; + Object.defineProperty(Y.prototype, 'constructor', { value: Y, configurable: !0, writable: !0 }); + typeof window < 'u' && + typeof window.EventTarget < 'u' && + Object.setPrototypeOf(Y.prototype, window.EventTarget.prototype); + Ye.defineEventAttribute = tn; + Ye.EventTarget = Y; + Ye.default = Y; + Je.exports = Y; + Je.exports.EventTarget = Je.exports.default = Y; + Je.exports.defineEventAttribute = tn; +}); +var kt = S((Qe, Xe) => { + 'use strict'; + Object.defineProperty(Qe, '__esModule', { value: !0 }); + var rn = qs(), + pe = class extends rn.EventTarget { + constructor() { + throw (super(), new TypeError('AbortSignal cannot be constructed directly')); + } + get aborted() { + let t = It.get(this); + if (typeof t != 'boolean') + throw new TypeError( + `Expected 'this' to be an 'AbortSignal' object, but got ${this === null ? 'null' : typeof this}` + ); + return t; + } + }; + rn.defineEventAttribute(pe.prototype, 'abort'); + function hp() { + let e = Object.create(pe.prototype); + return rn.EventTarget.call(e), It.set(e, !1), e; + } + function pp(e) { + It.get(e) === !1 && (It.set(e, !0), e.dispatchEvent({ type: 'abort' })); + } + var It = new WeakMap(); + Object.defineProperties(pe.prototype, { aborted: { enumerable: !0 } }); + typeof Symbol == 'function' && + typeof Symbol.toStringTag == 'symbol' && + Object.defineProperty(pe.prototype, Symbol.toStringTag, { configurable: !0, value: 'AbortSignal' }); + var ye = class { + constructor() { + Ds.set(this, hp()); + } + get signal() { + return Ns(this); + } + abort() { + pp(Ns(this)); + } + }, + Ds = new WeakMap(); + function Ns(e) { + let t = Ds.get(e); + if (t == null) + throw new TypeError( + `Expected 'this' to be an 'AbortController' object, but got ${e === null ? 'null' : typeof e}` + ); + return t; + } + Object.defineProperties(ye.prototype, { signal: { enumerable: !0 }, abort: { enumerable: !0 } }); + typeof Symbol == 'function' && + typeof Symbol.toStringTag == 'symbol' && + Object.defineProperty(ye.prototype, Symbol.toStringTag, { configurable: !0, value: 'AbortController' }); + Qe.AbortController = ye; + Qe.AbortSignal = pe; + Qe.default = ye; + Xe.exports = ye; + Xe.exports.AbortController = Xe.exports.default = ye; + Xe.exports.AbortSignal = pe; +}); +var B = S((Wm, Cs) => { + 'use strict'; + var { format: yp, inspect: jt, AggregateError: bp } = te(), + gp = globalThis.AggregateError || bp, + wp = Symbol('kIsNodeError'), + mp = ['string', 'function', 'number', 'object', 'Function', 'Object', 'boolean', 'bigint', 'symbol'], + _p = /^([A-Z][a-z0-9]*)+$/, + Sp = '__node_internal_', + Pt = {}; + function Ae(e, t) { + if (!e) throw new Pt.ERR_INTERNAL_ASSERTION(t); + } + function $s(e) { + let t = '', + r = e.length, + n = e[0] === '-' ? 1 : 0; + for (; r >= n + 4; r -= 3) t = `_${e.slice(r - 3, r)}${t}`; + return `${e.slice(0, r)}${t}`; + } + function Ep(e, t, r) { + if (typeof t == 'function') + return ( + Ae( + t.length <= r.length, + `Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${t.length}).` + ), + t(...r) + ); + let n = (t.match(/%[dfijoOs]/g) || []).length; + return ( + Ae( + n === r.length, + `Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${n}).` + ), + r.length === 0 ? t : yp(t, ...r) + ); + } + function W(e, t, r) { + r || (r = Error); + class n extends r { + constructor(...o) { + super(Ep(e, t, o)); + } + toString() { + return `${this.name} [${e}]: ${this.message}`; + } + } + Object.defineProperties(n.prototype, { + name: { value: r.name, writable: !0, enumerable: !1, configurable: !0 }, + toString: { + value() { + return `${this.name} [${e}]: ${this.message}`; + }, + writable: !0, + enumerable: !1, + configurable: !0, + }, + }), + (n.prototype.code = e), + (n.prototype[wp] = !0), + (Pt[e] = n); + } + function Ms(e) { + let t = Sp + e.name; + return Object.defineProperty(e, 'name', { value: t }), e; + } + function Rp(e, t) { + if (e && t && e !== t) { + if (Array.isArray(t.errors)) return t.errors.push(e), t; + let r = new gp([t, e], t.message); + return (r.code = t.code), r; + } + return e || t; + } + var nn = class extends Error { + constructor(t = 'The operation was aborted', r = void 0) { + if (r !== void 0 && typeof r != 'object') throw new Pt.ERR_INVALID_ARG_TYPE('options', 'Object', r); + super(t, r), (this.code = 'ABORT_ERR'), (this.name = 'AbortError'); + } + }; + W('ERR_ASSERTION', '%s', Error); + W( + 'ERR_INVALID_ARG_TYPE', + (e, t, r) => { + Ae(typeof e == 'string', "'name' must be a string"), Array.isArray(t) || (t = [t]); + let n = 'The '; + e.endsWith(' argument') ? (n += `${e} `) : (n += `"${e}" ${e.includes('.') ? 'property' : 'argument'} `), + (n += 'must be '); + let i = [], + o = [], + s = []; + for (let a of t) + Ae(typeof a == 'string', 'All expected entries have to be of type string'), + mp.includes(a) + ? i.push(a.toLowerCase()) + : _p.test(a) + ? o.push(a) + : (Ae(a !== 'object', 'The value "object" should be written as "Object"'), s.push(a)); + if (o.length > 0) { + let a = i.indexOf('object'); + a !== -1 && (i.splice(i, a, 1), o.push('Object')); + } + if (i.length > 0) { + switch (i.length) { + case 1: + n += `of type ${i[0]}`; + break; + case 2: + n += `one of type ${i[0]} or ${i[1]}`; + break; + default: { + let a = i.pop(); + n += `one of type ${i.join(', ')}, or ${a}`; + } + } + (o.length > 0 || s.length > 0) && (n += ' or '); + } + if (o.length > 0) { + switch (o.length) { + case 1: + n += `an instance of ${o[0]}`; + break; + case 2: + n += `an instance of ${o[0]} or ${o[1]}`; + break; + default: { + let a = o.pop(); + n += `an instance of ${o.join(', ')}, or ${a}`; + } + } + s.length > 0 && (n += ' or '); + } + switch (s.length) { + case 0: + break; + case 1: + s[0].toLowerCase() !== s[0] && (n += 'an '), (n += `${s[0]}`); + break; + case 2: + n += `one of ${s[0]} or ${s[1]}`; + break; + default: { + let a = s.pop(); + n += `one of ${s.join(', ')}, or ${a}`; + } + } + if (r == null) n += `. Received ${r}`; + else if (typeof r == 'function' && r.name) n += `. Received function ${r.name}`; + else if (typeof r == 'object') { + var f; + if ((f = r.constructor) !== null && f !== void 0 && f.name) + n += `. Received an instance of ${r.constructor.name}`; + else { + let a = jt(r, { depth: -1 }); + n += `. Received ${a}`; + } + } else { + let a = jt(r, { colors: !1 }); + a.length > 25 && (a = `${a.slice(0, 25)}...`), (n += `. Received type ${typeof r} (${a})`); + } + return n; + }, + TypeError + ); + W( + 'ERR_INVALID_ARG_VALUE', + (e, t, r = 'is invalid') => { + let n = jt(t); + return ( + n.length > 128 && (n = n.slice(0, 128) + '...'), + `The ${e.includes('.') ? 'property' : 'argument'} '${e}' ${r}. Received ${n}` + ); + }, + TypeError + ); + W( + 'ERR_INVALID_RETURN_VALUE', + (e, t, r) => { + var n; + let i = + r != null && (n = r.constructor) !== null && n !== void 0 && n.name + ? `instance of ${r.constructor.name}` + : `type ${typeof r}`; + return `Expected ${e} to be returned from the "${t}" function but got ${i}.`; + }, + TypeError + ); + W( + 'ERR_MISSING_ARGS', + (...e) => { + Ae(e.length > 0, 'At least one arg needs to be specified'); + let t, + r = e.length; + switch (((e = (Array.isArray(e) ? e : [e]).map((n) => `"${n}"`).join(' or ')), r)) { + case 1: + t += `The ${e[0]} argument`; + break; + case 2: + t += `The ${e[0]} and ${e[1]} arguments`; + break; + default: + { + let n = e.pop(); + t += `The ${e.join(', ')}, and ${n} arguments`; + } + break; + } + return `${t} must be specified`; + }, + TypeError + ); + W( + 'ERR_OUT_OF_RANGE', + (e, t, r) => { + Ae(t, 'Missing "range" argument'); + let n; + return ( + Number.isInteger(r) && Math.abs(r) > 2 ** 32 + ? (n = $s(String(r))) + : typeof r == 'bigint' + ? ((n = String(r)), (r > 2n ** 32n || r < -(2n ** 32n)) && (n = $s(n)), (n += 'n')) + : (n = jt(r)), + `The value of "${e}" is out of range. It must be ${t}. Received ${n}` + ); + }, + RangeError + ); + W('ERR_MULTIPLE_CALLBACK', 'Callback called multiple times', Error); + W('ERR_METHOD_NOT_IMPLEMENTED', 'The %s method is not implemented', Error); + W('ERR_STREAM_ALREADY_FINISHED', 'Cannot call %s after a stream was finished', Error); + W('ERR_STREAM_CANNOT_PIPE', 'Cannot pipe, not readable', Error); + W('ERR_STREAM_DESTROYED', 'Cannot call %s after a stream was destroyed', Error); + W('ERR_STREAM_NULL_VALUES', 'May not write null values to stream', TypeError); + W('ERR_STREAM_PREMATURE_CLOSE', 'Premature close', Error); + W('ERR_STREAM_PUSH_AFTER_EOF', 'stream.push() after EOF', Error); + W('ERR_STREAM_UNSHIFT_AFTER_END_EVENT', 'stream.unshift() after end event', Error); + W('ERR_STREAM_WRITE_AFTER_END', 'write after end', Error); + W('ERR_UNKNOWN_ENCODING', 'Unknown encoding: %s', TypeError); + Cs.exports = { AbortError: nn, aggregateTwoErrors: Ms(Rp), hideStackFrames: Ms, codes: Pt }; +}); +var Ze = S((Bm, Ks) => { + 'use strict'; + var { + ArrayIsArray: sn, + ArrayPrototypeIncludes: Us, + ArrayPrototypeJoin: Vs, + ArrayPrototypeMap: Ap, + NumberIsInteger: ln, + NumberIsNaN: xp, + NumberMAX_SAFE_INTEGER: Tp, + NumberMIN_SAFE_INTEGER: Op, + NumberParseInt: vp, + ObjectPrototypeHasOwnProperty: Lp, + RegExpPrototypeExec: zs, + String: Ip, + StringPrototypeToUpperCase: kp, + StringPrototypeTrim: jp, + } = $(), + { + hideStackFrames: G, + codes: { + ERR_SOCKET_BAD_PORT: Pp, + ERR_INVALID_ARG_TYPE: F, + ERR_INVALID_ARG_VALUE: Me, + ERR_OUT_OF_RANGE: xe, + ERR_UNKNOWN_SIGNAL: Ws, + }, + } = B(), + { normalizeEncoding: qp } = te(), + { isAsyncFunction: Np, isArrayBufferView: Dp } = te().types, + Bs = {}; + function $p(e) { + return e === (e | 0); + } + function Mp(e) { + return e === e >>> 0; + } + var Cp = /^[0-7]+$/, + Wp = 'must be a 32-bit unsigned integer or an octal string'; + function Bp(e, t, r) { + if ((typeof e > 'u' && (e = r), typeof e == 'string')) { + if (zs(Cp, e) === null) throw new Me(t, e, Wp); + e = vp(e, 8); + } + return Gs(e, t), e; + } + var Fp = G((e, t, r = Op, n = Tp) => { + if (typeof e != 'number') throw new F(t, 'number', e); + if (!ln(e)) throw new xe(t, 'an integer', e); + if (e < r || e > n) throw new xe(t, `>= ${r} && <= ${n}`, e); + }), + Up = G((e, t, r = -2147483648, n = 2147483647) => { + if (typeof e != 'number') throw new F(t, 'number', e); + if (!ln(e)) throw new xe(t, 'an integer', e); + if (e < r || e > n) throw new xe(t, `>= ${r} && <= ${n}`, e); + }), + Gs = G((e, t, r = !1) => { + if (typeof e != 'number') throw new F(t, 'number', e); + if (!ln(e)) throw new xe(t, 'an integer', e); + let n = r ? 1 : 0, + i = 4294967295; + if (e < n || e > i) throw new xe(t, `>= ${n} && <= ${i}`, e); + }); + function fn(e, t) { + if (typeof e != 'string') throw new F(t, 'string', e); + } + function Vp(e, t, r = void 0, n) { + if (typeof e != 'number') throw new F(t, 'number', e); + if ((r != null && e < r) || (n != null && e > n) || ((r != null || n != null) && xp(e))) + throw new xe( + t, + `${r != null ? `>= ${r}` : ''}${r != null && n != null ? ' && ' : ''}${n != null ? `<= ${n}` : ''}`, + e + ); + } + var zp = G((e, t, r) => { + if (!Us(r, e)) { + let i = + 'must be one of: ' + + Vs( + Ap(r, (o) => (typeof o == 'string' ? `'${o}'` : Ip(o))), + ', ' + ); + throw new Me(t, e, i); + } + }); + function Hs(e, t) { + if (typeof e != 'boolean') throw new F(t, 'boolean', e); + } + function on(e, t, r) { + return e == null || !Lp(e, t) ? r : e[t]; + } + var Gp = G((e, t, r = null) => { + let n = on(r, 'allowArray', !1), + i = on(r, 'allowFunction', !1); + if ( + (!on(r, 'nullable', !1) && e === null) || + (!n && sn(e)) || + (typeof e != 'object' && (!i || typeof e != 'function')) + ) + throw new F(t, 'Object', e); + }), + Hp = G((e, t) => { + if (e != null && typeof e != 'object' && typeof e != 'function') throw new F(t, 'a dictionary', e); + }), + un = G((e, t, r = 0) => { + if (!sn(e)) throw new F(t, 'Array', e); + if (e.length < r) { + let n = `must be longer than ${r}`; + throw new Me(t, e, n); + } + }); + function Kp(e, t) { + un(e, t); + for (let r = 0; r < e.length; r++) fn(e[r], `${t}[${r}]`); + } + function Jp(e, t) { + un(e, t); + for (let r = 0; r < e.length; r++) Hs(e[r], `${t}[${r}]`); + } + function Yp(e, t = 'signal') { + if ((fn(e, t), Bs[e] === void 0)) + throw Bs[kp(e)] !== void 0 ? new Ws(e + ' (signals must use all capital letters)') : new Ws(e); + } + var Xp = G((e, t = 'buffer') => { + if (!Dp(e)) throw new F(t, ['Buffer', 'TypedArray', 'DataView'], e); + }); + function Qp(e, t) { + let r = qp(t), + n = e.length; + if (r === 'hex' && n % 2 !== 0) throw new Me('encoding', t, `is invalid for data of length ${n}`); + } + function Zp(e, t = 'Port', r = !0) { + if ( + (typeof e != 'number' && typeof e != 'string') || + (typeof e == 'string' && jp(e).length === 0) || + +e !== +e >>> 0 || + e > 65535 || + (e === 0 && !r) + ) + throw new Pp(t, e, r); + return e | 0; + } + var ey = G((e, t) => { + if (e !== void 0 && (e === null || typeof e != 'object' || !('aborted' in e))) throw new F(t, 'AbortSignal', e); + }), + ty = G((e, t) => { + if (typeof e != 'function') throw new F(t, 'Function', e); + }), + ry = G((e, t) => { + if (typeof e != 'function' || Np(e)) throw new F(t, 'Function', e); + }), + ny = G((e, t) => { + if (e !== void 0) throw new F(t, 'undefined', e); + }); + function iy(e, t, r) { + if (!Us(r, e)) throw new F(t, `('${Vs(r, '|')}')`, e); + } + var oy = /^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/; + function Fs(e, t) { + if (typeof e > 'u' || !zs(oy, e)) + throw new Me(t, e, 'must be an array or string of format "; rel=preload; as=style"'); + } + function sy(e) { + if (typeof e == 'string') return Fs(e, 'hints'), e; + if (sn(e)) { + let t = e.length, + r = ''; + if (t === 0) return r; + for (let n = 0; n < t; n++) { + let i = e[n]; + Fs(i, 'hints'), (r += i), n !== t - 1 && (r += ', '); + } + return r; + } + throw new Me('hints', e, 'must be an array or string of format "; rel=preload; as=style"'); + } + Ks.exports = { + isInt32: $p, + isUint32: Mp, + parseFileMode: Bp, + validateArray: un, + validateStringArray: Kp, + validateBooleanArray: Jp, + validateBoolean: Hs, + validateBuffer: Xp, + validateDictionary: Hp, + validateEncoding: Qp, + validateFunction: ty, + validateInt32: Up, + validateInteger: Fp, + validateNumber: Vp, + validateObject: Gp, + validateOneOf: zp, + validatePlainFunction: ry, + validatePort: Zp, + validateSignalName: Yp, + validateString: fn, + validateUint32: Gs, + validateUndefined: ny, + validateUnion: iy, + validateAbortSignal: ey, + validateLinkHeaderValue: sy, + }; +}); +var be = S((Fm, Js) => { + Js.exports = global.process; +}); +var ne = S((Um, cl) => { + 'use strict'; + var { Symbol: qt, SymbolAsyncIterator: Ys, SymbolIterator: Xs, SymbolFor: Qs } = $(), + Zs = qt('kDestroyed'), + el = qt('kIsErrored'), + an = qt('kIsReadable'), + tl = qt('kIsDisturbed'), + ly = Qs('nodejs.webstream.isClosedPromise'), + fy = Qs('nodejs.webstream.controllerErrorFunction'); + function Nt(e, t = !1) { + var r; + return !!( + e && + typeof e.pipe == 'function' && + typeof e.on == 'function' && + (!t || (typeof e.pause == 'function' && typeof e.resume == 'function')) && + (!e._writableState || ((r = e._readableState) === null || r === void 0 ? void 0 : r.readable) !== !1) && + (!e._writableState || e._readableState) + ); + } + function Dt(e) { + var t; + return !!( + e && + typeof e.write == 'function' && + typeof e.on == 'function' && + (!e._readableState || ((t = e._writableState) === null || t === void 0 ? void 0 : t.writable) !== !1) + ); + } + function uy(e) { + return !!( + e && + typeof e.pipe == 'function' && + e._readableState && + typeof e.on == 'function' && + typeof e.write == 'function' + ); + } + function re(e) { + return ( + e && + (e._readableState || + e._writableState || + (typeof e.write == 'function' && typeof e.on == 'function') || + (typeof e.pipe == 'function' && typeof e.on == 'function')) + ); + } + function rl(e) { + return !!( + e && + !re(e) && + typeof e.pipeThrough == 'function' && + typeof e.getReader == 'function' && + typeof e.cancel == 'function' + ); + } + function nl(e) { + return !!(e && !re(e) && typeof e.getWriter == 'function' && typeof e.abort == 'function'); + } + function il(e) { + return !!(e && !re(e) && typeof e.readable == 'object' && typeof e.writable == 'object'); + } + function ay(e) { + return rl(e) || nl(e) || il(e); + } + function cy(e, t) { + return e == null + ? !1 + : t === !0 + ? typeof e[Ys] == 'function' + : t === !1 + ? typeof e[Xs] == 'function' + : typeof e[Ys] == 'function' || typeof e[Xs] == 'function'; + } + function $t(e) { + if (!re(e)) return null; + let t = e._writableState, + r = e._readableState, + n = t || r; + return !!(e.destroyed || e[Zs] || (n != null && n.destroyed)); + } + function ol(e) { + if (!Dt(e)) return null; + if (e.writableEnded === !0) return !0; + let t = e._writableState; + return t != null && t.errored ? !1 : typeof t?.ended != 'boolean' ? null : t.ended; + } + function dy(e, t) { + if (!Dt(e)) return null; + if (e.writableFinished === !0) return !0; + let r = e._writableState; + return r != null && r.errored + ? !1 + : typeof r?.finished != 'boolean' + ? null + : !!(r.finished || (t === !1 && r.ended === !0 && r.length === 0)); + } + function hy(e) { + if (!Nt(e)) return null; + if (e.readableEnded === !0) return !0; + let t = e._readableState; + return !t || t.errored ? !1 : typeof t?.ended != 'boolean' ? null : t.ended; + } + function sl(e, t) { + if (!Nt(e)) return null; + let r = e._readableState; + return r != null && r.errored + ? !1 + : typeof r?.endEmitted != 'boolean' + ? null + : !!(r.endEmitted || (t === !1 && r.ended === !0 && r.length === 0)); + } + function ll(e) { + return e && e[an] != null + ? e[an] + : typeof e?.readable != 'boolean' + ? null + : $t(e) + ? !1 + : Nt(e) && e.readable && !sl(e); + } + function fl(e) { + return typeof e?.writable != 'boolean' ? null : $t(e) ? !1 : Dt(e) && e.writable && !ol(e); + } + function py(e, t) { + return re(e) ? ($t(e) ? !0 : !((t?.readable !== !1 && ll(e)) || (t?.writable !== !1 && fl(e)))) : null; + } + function yy(e) { + var t, r; + return re(e) + ? e.writableErrored + ? e.writableErrored + : (t = (r = e._writableState) === null || r === void 0 ? void 0 : r.errored) !== null && t !== void 0 + ? t + : null + : null; + } + function by(e) { + var t, r; + return re(e) + ? e.readableErrored + ? e.readableErrored + : (t = (r = e._readableState) === null || r === void 0 ? void 0 : r.errored) !== null && t !== void 0 + ? t + : null + : null; + } + function gy(e) { + if (!re(e)) return null; + if (typeof e.closed == 'boolean') return e.closed; + let t = e._writableState, + r = e._readableState; + return typeof t?.closed == 'boolean' || typeof r?.closed == 'boolean' + ? t?.closed || r?.closed + : typeof e._closed == 'boolean' && ul(e) + ? e._closed + : null; + } + function ul(e) { + return ( + typeof e._closed == 'boolean' && + typeof e._defaultKeepAlive == 'boolean' && + typeof e._removedConnection == 'boolean' && + typeof e._removedContLen == 'boolean' + ); + } + function al(e) { + return typeof e._sent100 == 'boolean' && ul(e); + } + function wy(e) { + var t; + return ( + typeof e._consuming == 'boolean' && + typeof e._dumped == 'boolean' && + ((t = e.req) === null || t === void 0 ? void 0 : t.upgradeOrConnect) === void 0 + ); + } + function my(e) { + if (!re(e)) return null; + let t = e._writableState, + r = e._readableState, + n = t || r; + return (!n && al(e)) || !!(n && n.autoDestroy && n.emitClose && n.closed === !1); + } + function _y(e) { + var t; + return !!(e && ((t = e[tl]) !== null && t !== void 0 ? t : e.readableDidRead || e.readableAborted)); + } + function Sy(e) { + var t, r, n, i, o, s, f, a, c, u; + return !!( + e && + ((t = + (r = + (n = + (i = + (o = (s = e[el]) !== null && s !== void 0 ? s : e.readableErrored) !== null && o !== void 0 + ? o + : e.writableErrored) !== null && i !== void 0 + ? i + : (f = e._readableState) === null || f === void 0 + ? void 0 + : f.errorEmitted) !== null && n !== void 0 + ? n + : (a = e._writableState) === null || a === void 0 + ? void 0 + : a.errorEmitted) !== null && r !== void 0 + ? r + : (c = e._readableState) === null || c === void 0 + ? void 0 + : c.errored) !== null && t !== void 0 + ? t + : !((u = e._writableState) === null || u === void 0) && u.errored) + ); + } + cl.exports = { + kDestroyed: Zs, + isDisturbed: _y, + kIsDisturbed: tl, + isErrored: Sy, + kIsErrored: el, + isReadable: ll, + kIsReadable: an, + kIsClosedPromise: ly, + kControllerErrorFunction: fy, + isClosed: gy, + isDestroyed: $t, + isDuplexNodeStream: uy, + isFinished: py, + isIterable: cy, + isReadableNodeStream: Nt, + isReadableStream: rl, + isReadableEnded: hy, + isReadableFinished: sl, + isReadableErrored: by, + isNodeStream: re, + isWebStream: ay, + isWritable: fl, + isWritableNodeStream: Dt, + isWritableStream: nl, + isWritableEnded: ol, + isWritableFinished: dy, + isWritableErrored: yy, + isServerRequest: wy, + isServerResponse: al, + willEmitClose: my, + isTransformStream: il, + }; +}); +var le = S((Vm, yn) => { + var ge = be(), + { AbortError: _l, codes: Ey } = B(), + { ERR_INVALID_ARG_TYPE: Ry, ERR_STREAM_PREMATURE_CLOSE: dl } = Ey, + { kEmptyObject: dn, once: hn } = te(), + { validateAbortSignal: Ay, validateFunction: xy, validateObject: Ty, validateBoolean: Oy } = Ze(), + { Promise: vy, PromisePrototypeThen: Ly } = $(), + { + isClosed: Iy, + isReadable: hl, + isReadableNodeStream: cn, + isReadableStream: ky, + isReadableFinished: pl, + isReadableErrored: yl, + isWritable: bl, + isWritableNodeStream: gl, + isWritableStream: jy, + isWritableFinished: wl, + isWritableErrored: ml, + isNodeStream: Py, + willEmitClose: qy, + kIsClosedPromise: Ny, + } = ne(); + function Dy(e) { + return e.setHeader && typeof e.abort == 'function'; + } + var pn = () => {}; + function Sl(e, t, r) { + var n, i; + if ( + (arguments.length === 2 ? ((r = t), (t = dn)) : t == null ? (t = dn) : Ty(t, 'options'), + xy(r, 'callback'), + Ay(t.signal, 'options.signal'), + (r = hn(r)), + ky(e) || jy(e)) + ) + return $y(e, t, r); + if (!Py(e)) throw new Ry('stream', ['ReadableStream', 'WritableStream', 'Stream'], e); + let o = (n = t.readable) !== null && n !== void 0 ? n : cn(e), + s = (i = t.writable) !== null && i !== void 0 ? i : gl(e), + f = e._writableState, + a = e._readableState, + c = () => { + e.writable || p(); + }, + u = qy(e) && cn(e) === o && gl(e) === s, + h = wl(e, !1), + p = () => { + (h = !0), e.destroyed && (u = !1), !(u && (!e.readable || o)) && (!o || l) && r.call(e); + }, + l = pl(e, !1), + d = () => { + (l = !0), e.destroyed && (u = !1), !(u && (!e.writable || s)) && (!s || h) && r.call(e); + }, + g = (R) => { + r.call(e, R); + }, + w = Iy(e), + _ = () => { + w = !0; + let R = ml(e) || yl(e); + if (R && typeof R != 'boolean') return r.call(e, R); + if (o && !l && cn(e, !0) && !pl(e, !1)) return r.call(e, new dl()); + if (s && !h && !wl(e, !1)) return r.call(e, new dl()); + r.call(e); + }, + y = () => { + w = !0; + let R = ml(e) || yl(e); + if (R && typeof R != 'boolean') return r.call(e, R); + r.call(e); + }, + m = () => { + e.req.on('finish', p); + }; + Dy(e) + ? (e.on('complete', p), u || e.on('abort', _), e.req ? m() : e.on('request', m)) + : s && !f && (e.on('end', c), e.on('close', c)), + !u && typeof e.aborted == 'boolean' && e.on('aborted', _), + e.on('end', d), + e.on('finish', p), + t.error !== !1 && e.on('error', g), + e.on('close', _), + w + ? ge.nextTick(_) + : (f != null && f.errorEmitted) || (a != null && a.errorEmitted) + ? u || ge.nextTick(y) + : ((!o && (!u || hl(e)) && (h || bl(e) === !1)) || + (!s && (!u || bl(e)) && (l || hl(e) === !1)) || + (a && e.req && e.aborted)) && + ge.nextTick(y); + let E = () => { + (r = pn), + e.removeListener('aborted', _), + e.removeListener('complete', p), + e.removeListener('abort', _), + e.removeListener('request', m), + e.req && e.req.removeListener('finish', p), + e.removeListener('end', c), + e.removeListener('close', c), + e.removeListener('finish', p), + e.removeListener('end', d), + e.removeListener('error', g), + e.removeListener('close', _); + }; + if (t.signal && !w) { + let R = () => { + let x = r; + E(), x.call(e, new _l(void 0, { cause: t.signal.reason })); + }; + if (t.signal.aborted) ge.nextTick(R); + else { + let x = r; + (r = hn((...L) => { + t.signal.removeEventListener('abort', R), x.apply(e, L); + })), + t.signal.addEventListener('abort', R); + } + } + return E; + } + function $y(e, t, r) { + let n = !1, + i = pn; + if (t.signal) + if ( + ((i = () => { + (n = !0), r.call(e, new _l(void 0, { cause: t.signal.reason })); + }), + t.signal.aborted) + ) + ge.nextTick(i); + else { + let s = r; + (r = hn((...f) => { + t.signal.removeEventListener('abort', i), s.apply(e, f); + })), + t.signal.addEventListener('abort', i); + } + let o = (...s) => { + n || ge.nextTick(() => r.apply(e, s)); + }; + return Ly(e[Ny].promise, o, o), pn; + } + function My(e, t) { + var r; + let n = !1; + return ( + t === null && (t = dn), + (r = t) !== null && r !== void 0 && r.cleanup && (Oy(t.cleanup, 'cleanup'), (n = t.cleanup)), + new vy((i, o) => { + let s = Sl(e, t, (f) => { + n && s(), f ? o(f) : i(); + }); + }) + ); + } + yn.exports = Sl; + yn.exports.finished = My; +}); +var Te = S((zm, Ll) => { + 'use strict'; + var ie = be(), + { + aggregateTwoErrors: Cy, + codes: { ERR_MULTIPLE_CALLBACK: Wy }, + AbortError: By, + } = B(), + { Symbol: Al } = $(), + { kDestroyed: Fy, isDestroyed: Uy, isFinished: Vy, isServerRequest: zy } = ne(), + xl = Al('kDestroy'), + bn = Al('kConstruct'); + function Tl(e, t, r) { + e && (e.stack, t && !t.errored && (t.errored = e), r && !r.errored && (r.errored = e)); + } + function Gy(e, t) { + let r = this._readableState, + n = this._writableState, + i = n || r; + return (n != null && n.destroyed) || (r != null && r.destroyed) + ? (typeof t == 'function' && t(), this) + : (Tl(e, n, r), + n && (n.destroyed = !0), + r && (r.destroyed = !0), + i.constructed + ? El(this, e, t) + : this.once(xl, function (o) { + El(this, Cy(o, e), t); + }), + this); + } + function El(e, t, r) { + let n = !1; + function i(o) { + if (n) return; + n = !0; + let s = e._readableState, + f = e._writableState; + Tl(o, f, s), + f && (f.closed = !0), + s && (s.closed = !0), + typeof r == 'function' && r(o), + o ? ie.nextTick(Hy, e, o) : ie.nextTick(Ol, e); + } + try { + e._destroy(t || null, i); + } catch (o) { + i(o); + } + } + function Hy(e, t) { + gn(e, t), Ol(e); + } + function Ol(e) { + let t = e._readableState, + r = e._writableState; + r && (r.closeEmitted = !0), + t && (t.closeEmitted = !0), + ((r != null && r.emitClose) || (t != null && t.emitClose)) && e.emit('close'); + } + function gn(e, t) { + let r = e._readableState, + n = e._writableState; + (n != null && n.errorEmitted) || + (r != null && r.errorEmitted) || + (n && (n.errorEmitted = !0), r && (r.errorEmitted = !0), e.emit('error', t)); + } + function Ky() { + let e = this._readableState, + t = this._writableState; + e && + ((e.constructed = !0), + (e.closed = !1), + (e.closeEmitted = !1), + (e.destroyed = !1), + (e.errored = null), + (e.errorEmitted = !1), + (e.reading = !1), + (e.ended = e.readable === !1), + (e.endEmitted = e.readable === !1)), + t && + ((t.constructed = !0), + (t.destroyed = !1), + (t.closed = !1), + (t.closeEmitted = !1), + (t.errored = null), + (t.errorEmitted = !1), + (t.finalCalled = !1), + (t.prefinished = !1), + (t.ended = t.writable === !1), + (t.ending = t.writable === !1), + (t.finished = t.writable === !1)); + } + function wn(e, t, r) { + let n = e._readableState, + i = e._writableState; + if ((i != null && i.destroyed) || (n != null && n.destroyed)) return this; + (n != null && n.autoDestroy) || (i != null && i.autoDestroy) + ? e.destroy(t) + : t && + (t.stack, + i && !i.errored && (i.errored = t), + n && !n.errored && (n.errored = t), + r ? ie.nextTick(gn, e, t) : gn(e, t)); + } + function Jy(e, t) { + if (typeof e._construct != 'function') return; + let r = e._readableState, + n = e._writableState; + r && (r.constructed = !1), + n && (n.constructed = !1), + e.once(bn, t), + !(e.listenerCount(bn) > 1) && ie.nextTick(Yy, e); + } + function Yy(e) { + let t = !1; + function r(n) { + if (t) { + wn(e, n ?? new Wy()); + return; + } + t = !0; + let i = e._readableState, + o = e._writableState, + s = o || i; + i && (i.constructed = !0), + o && (o.constructed = !0), + s.destroyed ? e.emit(xl, n) : n ? wn(e, n, !0) : ie.nextTick(Xy, e); + } + try { + e._construct((n) => { + ie.nextTick(r, n); + }); + } catch (n) { + ie.nextTick(r, n); + } + } + function Xy(e) { + e.emit(bn); + } + function Rl(e) { + return e?.setHeader && typeof e.abort == 'function'; + } + function vl(e) { + e.emit('close'); + } + function Qy(e, t) { + e.emit('error', t), ie.nextTick(vl, e); + } + function Zy(e, t) { + !e || + Uy(e) || + (!t && !Vy(e) && (t = new By()), + zy(e) + ? ((e.socket = null), e.destroy(t)) + : Rl(e) + ? e.abort() + : Rl(e.req) + ? e.req.abort() + : typeof e.destroy == 'function' + ? e.destroy(t) + : typeof e.close == 'function' + ? e.close() + : t + ? ie.nextTick(Qy, e, t) + : ie.nextTick(vl, e), + e.destroyed || (e[Fy] = !0)); + } + Ll.exports = { construct: Jy, destroyer: Zy, destroy: Gy, undestroy: Ky, errorOrDestroy: wn }; +}); +var Wt = S((Gm, kl) => { + 'use strict'; + var { ArrayIsArray: eb, ObjectSetPrototypeOf: Il } = $(), + { EventEmitter: Mt } = require('events'); + function Ct(e) { + Mt.call(this, e); + } + Il(Ct.prototype, Mt.prototype); + Il(Ct, Mt); + Ct.prototype.pipe = function (e, t) { + let r = this; + function n(u) { + e.writable && e.write(u) === !1 && r.pause && r.pause(); + } + r.on('data', n); + function i() { + r.readable && r.resume && r.resume(); + } + e.on('drain', i), !e._isStdio && (!t || t.end !== !1) && (r.on('end', s), r.on('close', f)); + let o = !1; + function s() { + o || ((o = !0), e.end()); + } + function f() { + o || ((o = !0), typeof e.destroy == 'function' && e.destroy()); + } + function a(u) { + c(), Mt.listenerCount(this, 'error') === 0 && this.emit('error', u); + } + mn(r, 'error', a), mn(e, 'error', a); + function c() { + r.removeListener('data', n), + e.removeListener('drain', i), + r.removeListener('end', s), + r.removeListener('close', f), + r.removeListener('error', a), + e.removeListener('error', a), + r.removeListener('end', c), + r.removeListener('close', c), + e.removeListener('close', c); + } + return r.on('end', c), r.on('close', c), e.on('close', c), e.emit('pipe', r), e; + }; + function mn(e, t, r) { + if (typeof e.prependListener == 'function') return e.prependListener(t, r); + !e._events || !e._events[t] + ? e.on(t, r) + : eb(e._events[t]) + ? e._events[t].unshift(r) + : (e._events[t] = [r, e._events[t]]); + } + kl.exports = { Stream: Ct, prependListener: mn }; +}); +var et = S((Hm, Bt) => { + 'use strict'; + var { AbortError: jl, codes: tb } = B(), + { isNodeStream: Pl, isWebStream: rb, kControllerErrorFunction: nb } = ne(), + ib = le(), + { ERR_INVALID_ARG_TYPE: ql } = tb, + ob = (e, t) => { + if (typeof e != 'object' || !('aborted' in e)) throw new ql(t, 'AbortSignal', e); + }; + Bt.exports.addAbortSignal = function (t, r) { + if ((ob(t, 'signal'), !Pl(r) && !rb(r))) throw new ql('stream', ['ReadableStream', 'WritableStream', 'Stream'], r); + return Bt.exports.addAbortSignalNoValidate(t, r); + }; + Bt.exports.addAbortSignalNoValidate = function (e, t) { + if (typeof e != 'object' || !('aborted' in e)) return t; + let r = Pl(t) + ? () => { + t.destroy(new jl(void 0, { cause: e.reason })); + } + : () => { + t[nb](new jl(void 0, { cause: e.reason })); + }; + return e.aborted ? r() : (e.addEventListener('abort', r), ib(t, () => e.removeEventListener('abort', r))), t; + }; +}); +var $l = S((Jm, Dl) => { + 'use strict'; + var { StringPrototypeSlice: Nl, SymbolIterator: sb, TypedArrayPrototypeSet: Ft, Uint8Array: lb } = $(), + { Buffer: _n } = require('buffer'), + { inspect: fb } = te(); + Dl.exports = class { + constructor() { + (this.head = null), (this.tail = null), (this.length = 0); + } + push(t) { + let r = { data: t, next: null }; + this.length > 0 ? (this.tail.next = r) : (this.head = r), (this.tail = r), ++this.length; + } + unshift(t) { + let r = { data: t, next: this.head }; + this.length === 0 && (this.tail = r), (this.head = r), ++this.length; + } + shift() { + if (this.length === 0) return; + let t = this.head.data; + return this.length === 1 ? (this.head = this.tail = null) : (this.head = this.head.next), --this.length, t; + } + clear() { + (this.head = this.tail = null), (this.length = 0); + } + join(t) { + if (this.length === 0) return ''; + let r = this.head, + n = '' + r.data; + for (; (r = r.next) !== null; ) n += t + r.data; + return n; + } + concat(t) { + if (this.length === 0) return _n.alloc(0); + let r = _n.allocUnsafe(t >>> 0), + n = this.head, + i = 0; + for (; n; ) Ft(r, n.data, i), (i += n.data.length), (n = n.next); + return r; + } + consume(t, r) { + let n = this.head.data; + if (t < n.length) { + let i = n.slice(0, t); + return (this.head.data = n.slice(t)), i; + } + return t === n.length ? this.shift() : r ? this._getString(t) : this._getBuffer(t); + } + first() { + return this.head.data; + } + *[sb]() { + for (let t = this.head; t; t = t.next) yield t.data; + } + _getString(t) { + let r = '', + n = this.head, + i = 0; + do { + let o = n.data; + if (t > o.length) (r += o), (t -= o.length); + else { + t === o.length + ? ((r += o), ++i, n.next ? (this.head = n.next) : (this.head = this.tail = null)) + : ((r += Nl(o, 0, t)), (this.head = n), (n.data = Nl(o, t))); + break; + } + ++i; + } while ((n = n.next) !== null); + return (this.length -= i), r; + } + _getBuffer(t) { + let r = _n.allocUnsafe(t), + n = t, + i = this.head, + o = 0; + do { + let s = i.data; + if (t > s.length) Ft(r, s, n - t), (t -= s.length); + else { + t === s.length + ? (Ft(r, s, n - t), ++o, i.next ? (this.head = i.next) : (this.head = this.tail = null)) + : (Ft(r, new lb(s.buffer, s.byteOffset, t), n - t), (this.head = i), (i.data = s.slice(t))); + break; + } + ++o; + } while ((i = i.next) !== null); + return (this.length -= o), r; + } + [Symbol.for('nodejs.util.inspect.custom')](t, r) { + return fb(this, { ...r, depth: 0, customInspect: !1 }); + } + }; +}); +var Ut = S((Ym, Cl) => { + 'use strict'; + var { MathFloor: ub, NumberIsInteger: ab } = $(), + { ERR_INVALID_ARG_VALUE: cb } = B().codes; + function db(e, t, r) { + return e.highWaterMark != null ? e.highWaterMark : t ? e[r] : null; + } + function Ml(e) { + return e ? 16 : 16 * 1024; + } + function hb(e, t, r, n) { + let i = db(t, n, r); + if (i != null) { + if (!ab(i) || i < 0) { + let o = n ? `options.${r}` : 'options.highWaterMark'; + throw new cb(o, i); + } + return ub(i); + } + return Ml(e.objectMode); + } + Cl.exports = { getHighWaterMark: hb, getDefaultHighWaterMark: Ml }; +}); +var Sn = S((Xm, Ul) => { + 'use strict'; + var Wl = be(), + { PromisePrototypeThen: pb, SymbolAsyncIterator: Bl, SymbolIterator: Fl } = $(), + { Buffer: yb } = require('buffer'), + { ERR_INVALID_ARG_TYPE: bb, ERR_STREAM_NULL_VALUES: gb } = B().codes; + function wb(e, t, r) { + let n; + if (typeof t == 'string' || t instanceof yb) + return new e({ + objectMode: !0, + ...r, + read() { + this.push(t), this.push(null); + }, + }); + let i; + if (t && t[Bl]) (i = !0), (n = t[Bl]()); + else if (t && t[Fl]) (i = !1), (n = t[Fl]()); + else throw new bb('iterable', ['Iterable'], t); + let o = new e({ objectMode: !0, highWaterMark: 1, ...r }), + s = !1; + (o._read = function () { + s || ((s = !0), a()); + }), + (o._destroy = function (c, u) { + pb( + f(c), + () => Wl.nextTick(u, c), + (h) => Wl.nextTick(u, h || c) + ); + }); + async function f(c) { + let u = c != null, + h = typeof n.throw == 'function'; + if (u && h) { + let { value: p, done: l } = await n.throw(c); + if ((await p, l)) return; + } + if (typeof n.return == 'function') { + let { value: p } = await n.return(); + await p; + } + } + async function a() { + for (;;) { + try { + let { value: c, done: u } = i ? await n.next() : n.next(); + if (u) o.push(null); + else { + let h = c && typeof c.then == 'function' ? await c : c; + if (h === null) throw ((s = !1), new gb()); + if (o.push(h)) continue; + s = !1; + } + } catch (c) { + o.destroy(c); + } + break; + } + } + return o; + } + Ul.exports = wb; +}); +var tt = S((Qm, rf) => { + var X = be(), + { + ArrayPrototypeIndexOf: mb, + NumberIsInteger: _b, + NumberIsNaN: Sb, + NumberParseInt: Eb, + ObjectDefineProperties: Gl, + ObjectKeys: Rb, + ObjectSetPrototypeOf: Hl, + Promise: Ab, + SafeSet: xb, + SymbolAsyncIterator: Tb, + Symbol: Ob, + } = $(); + rf.exports = T; + T.ReadableState = On; + var { EventEmitter: vb } = require('events'), + { Stream: we, prependListener: Lb } = Wt(), + { Buffer: En } = require('buffer'), + { addAbortSignal: Ib } = et(), + kb = le(), + v = te().debuglog('stream', (e) => { + v = e; + }), + jb = $l(), + We = Te(), + { getHighWaterMark: Pb, getDefaultHighWaterMark: qb } = Ut(), + { + aggregateTwoErrors: Vl, + codes: { + ERR_INVALID_ARG_TYPE: Nb, + ERR_METHOD_NOT_IMPLEMENTED: Db, + ERR_OUT_OF_RANGE: $b, + ERR_STREAM_PUSH_AFTER_EOF: Mb, + ERR_STREAM_UNSHIFT_AFTER_END_EVENT: Cb, + }, + } = B(), + { validateObject: Wb } = Ze(), + Oe = Ob('kPaused'), + { StringDecoder: Kl } = require('string_decoder'), + Bb = Sn(); + Hl(T.prototype, we.prototype); + Hl(T, we); + var Rn = () => {}, + { errorOrDestroy: Ce } = We; + function On(e, t, r) { + typeof r != 'boolean' && (r = t instanceof oe()), + (this.objectMode = !!(e && e.objectMode)), + r && (this.objectMode = this.objectMode || !!(e && e.readableObjectMode)), + (this.highWaterMark = e ? Pb(this, e, 'readableHighWaterMark', r) : qb(!1)), + (this.buffer = new jb()), + (this.length = 0), + (this.pipes = []), + (this.flowing = null), + (this.ended = !1), + (this.endEmitted = !1), + (this.reading = !1), + (this.constructed = !0), + (this.sync = !0), + (this.needReadable = !1), + (this.emittedReadable = !1), + (this.readableListening = !1), + (this.resumeScheduled = !1), + (this[Oe] = null), + (this.errorEmitted = !1), + (this.emitClose = !e || e.emitClose !== !1), + (this.autoDestroy = !e || e.autoDestroy !== !1), + (this.destroyed = !1), + (this.errored = null), + (this.closed = !1), + (this.closeEmitted = !1), + (this.defaultEncoding = (e && e.defaultEncoding) || 'utf8'), + (this.awaitDrainWriters = null), + (this.multiAwaitDrain = !1), + (this.readingMore = !1), + (this.dataEmitted = !1), + (this.decoder = null), + (this.encoding = null), + e && e.encoding && ((this.decoder = new Kl(e.encoding)), (this.encoding = e.encoding)); + } + function T(e) { + if (!(this instanceof T)) return new T(e); + let t = this instanceof oe(); + (this._readableState = new On(e, this, t)), + e && + (typeof e.read == 'function' && (this._read = e.read), + typeof e.destroy == 'function' && (this._destroy = e.destroy), + typeof e.construct == 'function' && (this._construct = e.construct), + e.signal && !t && Ib(e.signal, this)), + we.call(this, e), + We.construct(this, () => { + this._readableState.needReadable && Vt(this, this._readableState); + }); + } + T.prototype.destroy = We.destroy; + T.prototype._undestroy = We.undestroy; + T.prototype._destroy = function (e, t) { + t(e); + }; + T.prototype[vb.captureRejectionSymbol] = function (e) { + this.destroy(e); + }; + T.prototype.push = function (e, t) { + return Jl(this, e, t, !1); + }; + T.prototype.unshift = function (e, t) { + return Jl(this, e, t, !0); + }; + function Jl(e, t, r, n) { + v('readableAddChunk', t); + let i = e._readableState, + o; + if ( + (i.objectMode || + (typeof t == 'string' + ? ((r = r || i.defaultEncoding), + i.encoding !== r && + (n && i.encoding ? (t = En.from(t, r).toString(i.encoding)) : ((t = En.from(t, r)), (r = '')))) + : t instanceof En + ? (r = '') + : we._isUint8Array(t) + ? ((t = we._uint8ArrayToBuffer(t)), (r = '')) + : t != null && (o = new Nb('chunk', ['string', 'Buffer', 'Uint8Array'], t))), + o) + ) + Ce(e, o); + else if (t === null) (i.reading = !1), Vb(e, i); + else if (i.objectMode || (t && t.length > 0)) + if (n) + if (i.endEmitted) Ce(e, new Cb()); + else { + if (i.destroyed || i.errored) return !1; + An(e, i, t, !0); + } + else if (i.ended) Ce(e, new Mb()); + else { + if (i.destroyed || i.errored) return !1; + (i.reading = !1), + i.decoder && !r + ? ((t = i.decoder.write(t)), i.objectMode || t.length !== 0 ? An(e, i, t, !1) : Vt(e, i)) + : An(e, i, t, !1); + } + else n || ((i.reading = !1), Vt(e, i)); + return !i.ended && (i.length < i.highWaterMark || i.length === 0); + } + function An(e, t, r, n) { + t.flowing && t.length === 0 && !t.sync && e.listenerCount('data') > 0 + ? (t.multiAwaitDrain ? t.awaitDrainWriters.clear() : (t.awaitDrainWriters = null), + (t.dataEmitted = !0), + e.emit('data', r)) + : ((t.length += t.objectMode ? 1 : r.length), + n ? t.buffer.unshift(r) : t.buffer.push(r), + t.needReadable && zt(e)), + Vt(e, t); + } + T.prototype.isPaused = function () { + let e = this._readableState; + return e[Oe] === !0 || e.flowing === !1; + }; + T.prototype.setEncoding = function (e) { + let t = new Kl(e); + (this._readableState.decoder = t), (this._readableState.encoding = this._readableState.decoder.encoding); + let r = this._readableState.buffer, + n = ''; + for (let i of r) n += t.write(i); + return r.clear(), n !== '' && r.push(n), (this._readableState.length = n.length), this; + }; + var Fb = 1073741824; + function Ub(e) { + if (e > Fb) throw new $b('size', '<= 1GiB', e); + return e--, (e |= e >>> 1), (e |= e >>> 2), (e |= e >>> 4), (e |= e >>> 8), (e |= e >>> 16), e++, e; + } + function zl(e, t) { + return e <= 0 || (t.length === 0 && t.ended) + ? 0 + : t.objectMode + ? 1 + : Sb(e) + ? t.flowing && t.length + ? t.buffer.first().length + : t.length + : e <= t.length + ? e + : t.ended + ? t.length + : 0; + } + T.prototype.read = function (e) { + v('read', e), e === void 0 ? (e = NaN) : _b(e) || (e = Eb(e, 10)); + let t = this._readableState, + r = e; + if ( + (e > t.highWaterMark && (t.highWaterMark = Ub(e)), + e !== 0 && (t.emittedReadable = !1), + e === 0 && t.needReadable && ((t.highWaterMark !== 0 ? t.length >= t.highWaterMark : t.length > 0) || t.ended)) + ) + return v('read: emitReadable', t.length, t.ended), t.length === 0 && t.ended ? xn(this) : zt(this), null; + if (((e = zl(e, t)), e === 0 && t.ended)) return t.length === 0 && xn(this), null; + let n = t.needReadable; + if ( + (v('need readable', n), + (t.length === 0 || t.length - e < t.highWaterMark) && ((n = !0), v('length less than watermark', n)), + t.ended || t.reading || t.destroyed || t.errored || !t.constructed) + ) + (n = !1), v('reading, ended or constructing', n); + else if (n) { + v('do read'), (t.reading = !0), (t.sync = !0), t.length === 0 && (t.needReadable = !0); + try { + this._read(t.highWaterMark); + } catch (o) { + Ce(this, o); + } + (t.sync = !1), t.reading || (e = zl(r, t)); + } + let i; + return ( + e > 0 ? (i = ef(e, t)) : (i = null), + i === null + ? ((t.needReadable = t.length <= t.highWaterMark), (e = 0)) + : ((t.length -= e), t.multiAwaitDrain ? t.awaitDrainWriters.clear() : (t.awaitDrainWriters = null)), + t.length === 0 && (t.ended || (t.needReadable = !0), r !== e && t.ended && xn(this)), + i !== null && !t.errorEmitted && !t.closeEmitted && ((t.dataEmitted = !0), this.emit('data', i)), + i + ); + }; + function Vb(e, t) { + if ((v('onEofChunk'), !t.ended)) { + if (t.decoder) { + let r = t.decoder.end(); + r && r.length && (t.buffer.push(r), (t.length += t.objectMode ? 1 : r.length)); + } + (t.ended = !0), t.sync ? zt(e) : ((t.needReadable = !1), (t.emittedReadable = !0), Yl(e)); + } + } + function zt(e) { + let t = e._readableState; + v('emitReadable', t.needReadable, t.emittedReadable), + (t.needReadable = !1), + t.emittedReadable || (v('emitReadable', t.flowing), (t.emittedReadable = !0), X.nextTick(Yl, e)); + } + function Yl(e) { + let t = e._readableState; + v('emitReadable_', t.destroyed, t.length, t.ended), + !t.destroyed && !t.errored && (t.length || t.ended) && (e.emit('readable'), (t.emittedReadable = !1)), + (t.needReadable = !t.flowing && !t.ended && t.length <= t.highWaterMark), + Ql(e); + } + function Vt(e, t) { + !t.readingMore && t.constructed && ((t.readingMore = !0), X.nextTick(zb, e, t)); + } + function zb(e, t) { + for (; !t.reading && !t.ended && (t.length < t.highWaterMark || (t.flowing && t.length === 0)); ) { + let r = t.length; + if ((v('maybeReadMore read 0'), e.read(0), r === t.length)) break; + } + t.readingMore = !1; + } + T.prototype._read = function (e) { + throw new Db('_read()'); + }; + T.prototype.pipe = function (e, t) { + let r = this, + n = this._readableState; + n.pipes.length === 1 && + (n.multiAwaitDrain || + ((n.multiAwaitDrain = !0), (n.awaitDrainWriters = new xb(n.awaitDrainWriters ? [n.awaitDrainWriters] : [])))), + n.pipes.push(e), + v('pipe count=%d opts=%j', n.pipes.length, t); + let o = (!t || t.end !== !1) && e !== X.stdout && e !== X.stderr ? f : w; + n.endEmitted ? X.nextTick(o) : r.once('end', o), e.on('unpipe', s); + function s(_, y) { + v('onunpipe'), _ === r && y && y.hasUnpiped === !1 && ((y.hasUnpiped = !0), u()); + } + function f() { + v('onend'), e.end(); + } + let a, + c = !1; + function u() { + v('cleanup'), + e.removeListener('close', d), + e.removeListener('finish', g), + a && e.removeListener('drain', a), + e.removeListener('error', l), + e.removeListener('unpipe', s), + r.removeListener('end', f), + r.removeListener('end', w), + r.removeListener('data', p), + (c = !0), + a && n.awaitDrainWriters && (!e._writableState || e._writableState.needDrain) && a(); + } + function h() { + c || + (n.pipes.length === 1 && n.pipes[0] === e + ? (v('false write response, pause', 0), (n.awaitDrainWriters = e), (n.multiAwaitDrain = !1)) + : n.pipes.length > 1 && + n.pipes.includes(e) && + (v('false write response, pause', n.awaitDrainWriters.size), n.awaitDrainWriters.add(e)), + r.pause()), + a || ((a = Gb(r, e)), e.on('drain', a)); + } + r.on('data', p); + function p(_) { + v('ondata'); + let y = e.write(_); + v('dest.write', y), y === !1 && h(); + } + function l(_) { + if ((v('onerror', _), w(), e.removeListener('error', l), e.listenerCount('error') === 0)) { + let y = e._writableState || e._readableState; + y && !y.errorEmitted ? Ce(e, _) : e.emit('error', _); + } + } + Lb(e, 'error', l); + function d() { + e.removeListener('finish', g), w(); + } + e.once('close', d); + function g() { + v('onfinish'), e.removeListener('close', d), w(); + } + e.once('finish', g); + function w() { + v('unpipe'), r.unpipe(e); + } + return ( + e.emit('pipe', r), e.writableNeedDrain === !0 ? n.flowing && h() : n.flowing || (v('pipe resume'), r.resume()), e + ); + }; + function Gb(e, t) { + return function () { + let n = e._readableState; + n.awaitDrainWriters === t + ? (v('pipeOnDrain', 1), (n.awaitDrainWriters = null)) + : n.multiAwaitDrain && (v('pipeOnDrain', n.awaitDrainWriters.size), n.awaitDrainWriters.delete(t)), + (!n.awaitDrainWriters || n.awaitDrainWriters.size === 0) && e.listenerCount('data') && e.resume(); + }; + } + T.prototype.unpipe = function (e) { + let t = this._readableState, + r = { hasUnpiped: !1 }; + if (t.pipes.length === 0) return this; + if (!e) { + let i = t.pipes; + (t.pipes = []), this.pause(); + for (let o = 0; o < i.length; o++) i[o].emit('unpipe', this, { hasUnpiped: !1 }); + return this; + } + let n = mb(t.pipes, e); + return n === -1 + ? this + : (t.pipes.splice(n, 1), t.pipes.length === 0 && this.pause(), e.emit('unpipe', this, r), this); + }; + T.prototype.on = function (e, t) { + let r = we.prototype.on.call(this, e, t), + n = this._readableState; + return ( + e === 'data' + ? ((n.readableListening = this.listenerCount('readable') > 0), n.flowing !== !1 && this.resume()) + : e === 'readable' && + !n.endEmitted && + !n.readableListening && + ((n.readableListening = n.needReadable = !0), + (n.flowing = !1), + (n.emittedReadable = !1), + v('on readable', n.length, n.reading), + n.length ? zt(this) : n.reading || X.nextTick(Hb, this)), + r + ); + }; + T.prototype.addListener = T.prototype.on; + T.prototype.removeListener = function (e, t) { + let r = we.prototype.removeListener.call(this, e, t); + return e === 'readable' && X.nextTick(Xl, this), r; + }; + T.prototype.off = T.prototype.removeListener; + T.prototype.removeAllListeners = function (e) { + let t = we.prototype.removeAllListeners.apply(this, arguments); + return (e === 'readable' || e === void 0) && X.nextTick(Xl, this), t; + }; + function Xl(e) { + let t = e._readableState; + (t.readableListening = e.listenerCount('readable') > 0), + t.resumeScheduled && t[Oe] === !1 + ? (t.flowing = !0) + : e.listenerCount('data') > 0 + ? e.resume() + : t.readableListening || (t.flowing = null); + } + function Hb(e) { + v('readable nexttick read 0'), e.read(0); + } + T.prototype.resume = function () { + let e = this._readableState; + return e.flowing || (v('resume'), (e.flowing = !e.readableListening), Kb(this, e)), (e[Oe] = !1), this; + }; + function Kb(e, t) { + t.resumeScheduled || ((t.resumeScheduled = !0), X.nextTick(Jb, e, t)); + } + function Jb(e, t) { + v('resume', t.reading), + t.reading || e.read(0), + (t.resumeScheduled = !1), + e.emit('resume'), + Ql(e), + t.flowing && !t.reading && e.read(0); + } + T.prototype.pause = function () { + return ( + v('call pause flowing=%j', this._readableState.flowing), + this._readableState.flowing !== !1 && (v('pause'), (this._readableState.flowing = !1), this.emit('pause')), + (this._readableState[Oe] = !0), + this + ); + }; + function Ql(e) { + let t = e._readableState; + for (v('flow', t.flowing); t.flowing && e.read() !== null; ); + } + T.prototype.wrap = function (e) { + let t = !1; + e.on('data', (n) => { + !this.push(n) && e.pause && ((t = !0), e.pause()); + }), + e.on('end', () => { + this.push(null); + }), + e.on('error', (n) => { + Ce(this, n); + }), + e.on('close', () => { + this.destroy(); + }), + e.on('destroy', () => { + this.destroy(); + }), + (this._read = () => { + t && e.resume && ((t = !1), e.resume()); + }); + let r = Rb(e); + for (let n = 1; n < r.length; n++) { + let i = r[n]; + this[i] === void 0 && typeof e[i] == 'function' && (this[i] = e[i].bind(e)); + } + return this; + }; + T.prototype[Tb] = function () { + return Zl(this); + }; + T.prototype.iterator = function (e) { + return e !== void 0 && Wb(e, 'options'), Zl(this, e); + }; + function Zl(e, t) { + typeof e.read != 'function' && (e = T.wrap(e, { objectMode: !0 })); + let r = Yb(e, t); + return (r.stream = e), r; + } + async function* Yb(e, t) { + let r = Rn; + function n(s) { + this === e ? (r(), (r = Rn)) : (r = s); + } + e.on('readable', n); + let i, + o = kb(e, { writable: !1 }, (s) => { + (i = s ? Vl(i, s) : null), r(), (r = Rn); + }); + try { + for (;;) { + let s = e.destroyed ? null : e.read(); + if (s !== null) yield s; + else { + if (i) throw i; + if (i === null) return; + await new Ab(n); + } + } + } catch (s) { + throw ((i = Vl(i, s)), i); + } finally { + (i || t?.destroyOnReturn !== !1) && (i === void 0 || e._readableState.autoDestroy) + ? We.destroyer(e, null) + : (e.off('readable', n), o()); + } + } + Gl(T.prototype, { + readable: { + __proto__: null, + get() { + let e = this._readableState; + return !!e && e.readable !== !1 && !e.destroyed && !e.errorEmitted && !e.endEmitted; + }, + set(e) { + this._readableState && (this._readableState.readable = !!e); + }, + }, + readableDidRead: { + __proto__: null, + enumerable: !1, + get: function () { + return this._readableState.dataEmitted; + }, + }, + readableAborted: { + __proto__: null, + enumerable: !1, + get: function () { + return !!( + this._readableState.readable !== !1 && + (this._readableState.destroyed || this._readableState.errored) && + !this._readableState.endEmitted + ); + }, + }, + readableHighWaterMark: { + __proto__: null, + enumerable: !1, + get: function () { + return this._readableState.highWaterMark; + }, + }, + readableBuffer: { + __proto__: null, + enumerable: !1, + get: function () { + return this._readableState && this._readableState.buffer; + }, + }, + readableFlowing: { + __proto__: null, + enumerable: !1, + get: function () { + return this._readableState.flowing; + }, + set: function (e) { + this._readableState && (this._readableState.flowing = e); + }, + }, + readableLength: { + __proto__: null, + enumerable: !1, + get() { + return this._readableState.length; + }, + }, + readableObjectMode: { + __proto__: null, + enumerable: !1, + get() { + return this._readableState ? this._readableState.objectMode : !1; + }, + }, + readableEncoding: { + __proto__: null, + enumerable: !1, + get() { + return this._readableState ? this._readableState.encoding : null; + }, + }, + errored: { + __proto__: null, + enumerable: !1, + get() { + return this._readableState ? this._readableState.errored : null; + }, + }, + closed: { + __proto__: null, + get() { + return this._readableState ? this._readableState.closed : !1; + }, + }, + destroyed: { + __proto__: null, + enumerable: !1, + get() { + return this._readableState ? this._readableState.destroyed : !1; + }, + set(e) { + this._readableState && (this._readableState.destroyed = e); + }, + }, + readableEnded: { + __proto__: null, + enumerable: !1, + get() { + return this._readableState ? this._readableState.endEmitted : !1; + }, + }, + }); + Gl(On.prototype, { + pipesCount: { + __proto__: null, + get() { + return this.pipes.length; + }, + }, + paused: { + __proto__: null, + get() { + return this[Oe] !== !1; + }, + set(e) { + this[Oe] = !!e; + }, + }, + }); + T._fromList = ef; + function ef(e, t) { + if (t.length === 0) return null; + let r; + return ( + t.objectMode + ? (r = t.buffer.shift()) + : !e || e >= t.length + ? (t.decoder + ? (r = t.buffer.join('')) + : t.buffer.length === 1 + ? (r = t.buffer.first()) + : (r = t.buffer.concat(t.length)), + t.buffer.clear()) + : (r = t.buffer.consume(e, t.decoder)), + r + ); + } + function xn(e) { + let t = e._readableState; + v('endReadable', t.endEmitted), t.endEmitted || ((t.ended = !0), X.nextTick(Xb, t, e)); + } + function Xb(e, t) { + if ( + (v('endReadableNT', e.endEmitted, e.length), !e.errored && !e.closeEmitted && !e.endEmitted && e.length === 0) + ) { + if (((e.endEmitted = !0), t.emit('end'), t.writable && t.allowHalfOpen === !1)) X.nextTick(Qb, t); + else if (e.autoDestroy) { + let r = t._writableState; + (!r || (r.autoDestroy && (r.finished || r.writable === !1))) && t.destroy(); + } + } + } + function Qb(e) { + e.writable && !e.writableEnded && !e.destroyed && e.end(); + } + T.from = function (e, t) { + return Bb(T, e, t); + }; + var Tn; + function tf() { + return Tn === void 0 && (Tn = {}), Tn; + } + T.fromWeb = function (e, t) { + return tf().newStreamReadableFromReadableStream(e, t); + }; + T.toWeb = function (e, t) { + return tf().newReadableStreamFromStreamReadable(e, t); + }; + T.wrap = function (e, t) { + var r, n; + return new T({ + objectMode: + (r = (n = e.readableObjectMode) !== null && n !== void 0 ? n : e.objectMode) !== null && r !== void 0 ? r : !0, + ...t, + destroy(i, o) { + We.destroyer(e, i), o(i); + }, + }).wrap(e); + }; +}); +var qn = S((Zm, yf) => { + var ve = be(), + { + ArrayPrototypeSlice: sf, + Error: Zb, + FunctionPrototypeSymbolHasInstance: lf, + ObjectDefineProperty: ff, + ObjectDefineProperties: eg, + ObjectSetPrototypeOf: uf, + StringPrototypeToLowerCase: tg, + Symbol: rg, + SymbolHasInstance: ng, + } = $(); + yf.exports = j; + j.WritableState = it; + var { EventEmitter: ig } = require('events'), + rt = Wt().Stream, + { Buffer: Gt } = require('buffer'), + Jt = Te(), + { addAbortSignal: og } = et(), + { getHighWaterMark: sg, getDefaultHighWaterMark: lg } = Ut(), + { + ERR_INVALID_ARG_TYPE: fg, + ERR_METHOD_NOT_IMPLEMENTED: ug, + ERR_MULTIPLE_CALLBACK: af, + ERR_STREAM_CANNOT_PIPE: ag, + ERR_STREAM_DESTROYED: nt, + ERR_STREAM_ALREADY_FINISHED: cg, + ERR_STREAM_NULL_VALUES: dg, + ERR_STREAM_WRITE_AFTER_END: hg, + ERR_UNKNOWN_ENCODING: cf, + } = B().codes, + { errorOrDestroy: Be } = Jt; + uf(j.prototype, rt.prototype); + uf(j, rt); + function In() {} + var Fe = rg('kOnFinished'); + function it(e, t, r) { + typeof r != 'boolean' && (r = t instanceof oe()), + (this.objectMode = !!(e && e.objectMode)), + r && (this.objectMode = this.objectMode || !!(e && e.writableObjectMode)), + (this.highWaterMark = e ? sg(this, e, 'writableHighWaterMark', r) : lg(!1)), + (this.finalCalled = !1), + (this.needDrain = !1), + (this.ending = !1), + (this.ended = !1), + (this.finished = !1), + (this.destroyed = !1); + let n = !!(e && e.decodeStrings === !1); + (this.decodeStrings = !n), + (this.defaultEncoding = (e && e.defaultEncoding) || 'utf8'), + (this.length = 0), + (this.writing = !1), + (this.corked = 0), + (this.sync = !0), + (this.bufferProcessing = !1), + (this.onwrite = yg.bind(void 0, t)), + (this.writecb = null), + (this.writelen = 0), + (this.afterWriteTickInfo = null), + Kt(this), + (this.pendingcb = 0), + (this.constructed = !0), + (this.prefinished = !1), + (this.errorEmitted = !1), + (this.emitClose = !e || e.emitClose !== !1), + (this.autoDestroy = !e || e.autoDestroy !== !1), + (this.errored = null), + (this.closed = !1), + (this.closeEmitted = !1), + (this[Fe] = []); + } + function Kt(e) { + (e.buffered = []), (e.bufferedIndex = 0), (e.allBuffers = !0), (e.allNoop = !0); + } + it.prototype.getBuffer = function () { + return sf(this.buffered, this.bufferedIndex); + }; + ff(it.prototype, 'bufferedRequestCount', { + __proto__: null, + get() { + return this.buffered.length - this.bufferedIndex; + }, + }); + function j(e) { + let t = this instanceof oe(); + if (!t && !lf(j, this)) return new j(e); + (this._writableState = new it(e, this, t)), + e && + (typeof e.write == 'function' && (this._write = e.write), + typeof e.writev == 'function' && (this._writev = e.writev), + typeof e.destroy == 'function' && (this._destroy = e.destroy), + typeof e.final == 'function' && (this._final = e.final), + typeof e.construct == 'function' && (this._construct = e.construct), + e.signal && og(e.signal, this)), + rt.call(this, e), + Jt.construct(this, () => { + let r = this._writableState; + r.writing || jn(this, r), Pn(this, r); + }); + } + ff(j, ng, { + __proto__: null, + value: function (e) { + return lf(this, e) ? !0 : this !== j ? !1 : e && e._writableState instanceof it; + }, + }); + j.prototype.pipe = function () { + Be(this, new ag()); + }; + function df(e, t, r, n) { + let i = e._writableState; + if (typeof r == 'function') (n = r), (r = i.defaultEncoding); + else { + if (!r) r = i.defaultEncoding; + else if (r !== 'buffer' && !Gt.isEncoding(r)) throw new cf(r); + typeof n != 'function' && (n = In); + } + if (t === null) throw new dg(); + if (!i.objectMode) + if (typeof t == 'string') i.decodeStrings !== !1 && ((t = Gt.from(t, r)), (r = 'buffer')); + else if (t instanceof Gt) r = 'buffer'; + else if (rt._isUint8Array(t)) (t = rt._uint8ArrayToBuffer(t)), (r = 'buffer'); + else throw new fg('chunk', ['string', 'Buffer', 'Uint8Array'], t); + let o; + return ( + i.ending ? (o = new hg()) : i.destroyed && (o = new nt('write')), + o ? (ve.nextTick(n, o), Be(e, o, !0), o) : (i.pendingcb++, pg(e, i, t, r, n)) + ); + } + j.prototype.write = function (e, t, r) { + return df(this, e, t, r) === !0; + }; + j.prototype.cork = function () { + this._writableState.corked++; + }; + j.prototype.uncork = function () { + let e = this._writableState; + e.corked && (e.corked--, e.writing || jn(this, e)); + }; + j.prototype.setDefaultEncoding = function (t) { + if ((typeof t == 'string' && (t = tg(t)), !Gt.isEncoding(t))) throw new cf(t); + return (this._writableState.defaultEncoding = t), this; + }; + function pg(e, t, r, n, i) { + let o = t.objectMode ? 1 : r.length; + t.length += o; + let s = t.length < t.highWaterMark; + return ( + s || (t.needDrain = !0), + t.writing || t.corked || t.errored || !t.constructed + ? (t.buffered.push({ chunk: r, encoding: n, callback: i }), + t.allBuffers && n !== 'buffer' && (t.allBuffers = !1), + t.allNoop && i !== In && (t.allNoop = !1)) + : ((t.writelen = o), + (t.writecb = i), + (t.writing = !0), + (t.sync = !0), + e._write(r, n, t.onwrite), + (t.sync = !1)), + s && !t.errored && !t.destroyed + ); + } + function nf(e, t, r, n, i, o, s) { + (t.writelen = n), + (t.writecb = s), + (t.writing = !0), + (t.sync = !0), + t.destroyed ? t.onwrite(new nt('write')) : r ? e._writev(i, t.onwrite) : e._write(i, o, t.onwrite), + (t.sync = !1); + } + function of(e, t, r, n) { + --t.pendingcb, n(r), kn(t), Be(e, r); + } + function yg(e, t) { + let r = e._writableState, + n = r.sync, + i = r.writecb; + if (typeof i != 'function') { + Be(e, new af()); + return; + } + (r.writing = !1), + (r.writecb = null), + (r.length -= r.writelen), + (r.writelen = 0), + t + ? (t.stack, + r.errored || (r.errored = t), + e._readableState && !e._readableState.errored && (e._readableState.errored = t), + n ? ve.nextTick(of, e, r, t, i) : of(e, r, t, i)) + : (r.buffered.length > r.bufferedIndex && jn(e, r), + n + ? r.afterWriteTickInfo !== null && r.afterWriteTickInfo.cb === i + ? r.afterWriteTickInfo.count++ + : ((r.afterWriteTickInfo = { count: 1, cb: i, stream: e, state: r }), + ve.nextTick(bg, r.afterWriteTickInfo)) + : hf(e, r, 1, i)); + } + function bg({ stream: e, state: t, count: r, cb: n }) { + return (t.afterWriteTickInfo = null), hf(e, t, r, n); + } + function hf(e, t, r, n) { + for (!t.ending && !e.destroyed && t.length === 0 && t.needDrain && ((t.needDrain = !1), e.emit('drain')); r-- > 0; ) + t.pendingcb--, n(); + t.destroyed && kn(t), Pn(e, t); + } + function kn(e) { + if (e.writing) return; + for (let i = e.bufferedIndex; i < e.buffered.length; ++i) { + var t; + let { chunk: o, callback: s } = e.buffered[i], + f = e.objectMode ? 1 : o.length; + (e.length -= f), s((t = e.errored) !== null && t !== void 0 ? t : new nt('write')); + } + let r = e[Fe].splice(0); + for (let i = 0; i < r.length; i++) { + var n; + r[i]((n = e.errored) !== null && n !== void 0 ? n : new nt('end')); + } + Kt(e); + } + function jn(e, t) { + if (t.corked || t.bufferProcessing || t.destroyed || !t.constructed) return; + let { buffered: r, bufferedIndex: n, objectMode: i } = t, + o = r.length - n; + if (!o) return; + let s = n; + if (((t.bufferProcessing = !0), o > 1 && e._writev)) { + t.pendingcb -= o - 1; + let f = t.allNoop + ? In + : (c) => { + for (let u = s; u < r.length; ++u) r[u].callback(c); + }, + a = t.allNoop && s === 0 ? r : sf(r, s); + (a.allBuffers = t.allBuffers), nf(e, t, !0, t.length, a, '', f), Kt(t); + } else { + do { + let { chunk: f, encoding: a, callback: c } = r[s]; + r[s++] = null; + let u = i ? 1 : f.length; + nf(e, t, !1, u, f, a, c); + } while (s < r.length && !t.writing); + s === r.length ? Kt(t) : s > 256 ? (r.splice(0, s), (t.bufferedIndex = 0)) : (t.bufferedIndex = s); + } + t.bufferProcessing = !1; + } + j.prototype._write = function (e, t, r) { + if (this._writev) this._writev([{ chunk: e, encoding: t }], r); + else throw new ug('_write()'); + }; + j.prototype._writev = null; + j.prototype.end = function (e, t, r) { + let n = this._writableState; + typeof e == 'function' ? ((r = e), (e = null), (t = null)) : typeof t == 'function' && ((r = t), (t = null)); + let i; + if (e != null) { + let o = df(this, e, t); + o instanceof Zb && (i = o); + } + return ( + n.corked && ((n.corked = 1), this.uncork()), + i || + (!n.errored && !n.ending + ? ((n.ending = !0), Pn(this, n, !0), (n.ended = !0)) + : n.finished + ? (i = new cg('end')) + : n.destroyed && (i = new nt('end'))), + typeof r == 'function' && (i || n.finished ? ve.nextTick(r, i) : n[Fe].push(r)), + this + ); + }; + function Ht(e) { + return ( + e.ending && + !e.destroyed && + e.constructed && + e.length === 0 && + !e.errored && + e.buffered.length === 0 && + !e.finished && + !e.writing && + !e.errorEmitted && + !e.closeEmitted + ); + } + function gg(e, t) { + let r = !1; + function n(i) { + if (r) { + Be(e, i ?? af()); + return; + } + if (((r = !0), t.pendingcb--, i)) { + let o = t[Fe].splice(0); + for (let s = 0; s < o.length; s++) o[s](i); + Be(e, i, t.sync); + } else Ht(t) && ((t.prefinished = !0), e.emit('prefinish'), t.pendingcb++, ve.nextTick(Ln, e, t)); + } + (t.sync = !0), t.pendingcb++; + try { + e._final(n); + } catch (i) { + n(i); + } + t.sync = !1; + } + function wg(e, t) { + !t.prefinished && + !t.finalCalled && + (typeof e._final == 'function' && !t.destroyed + ? ((t.finalCalled = !0), gg(e, t)) + : ((t.prefinished = !0), e.emit('prefinish'))); + } + function Pn(e, t, r) { + Ht(t) && + (wg(e, t), + t.pendingcb === 0 && + (r + ? (t.pendingcb++, + ve.nextTick( + (n, i) => { + Ht(i) ? Ln(n, i) : i.pendingcb--; + }, + e, + t + )) + : Ht(t) && (t.pendingcb++, Ln(e, t)))); + } + function Ln(e, t) { + t.pendingcb--, (t.finished = !0); + let r = t[Fe].splice(0); + for (let n = 0; n < r.length; n++) r[n](); + if ((e.emit('finish'), t.autoDestroy)) { + let n = e._readableState; + (!n || (n.autoDestroy && (n.endEmitted || n.readable === !1))) && e.destroy(); + } + } + eg(j.prototype, { + closed: { + __proto__: null, + get() { + return this._writableState ? this._writableState.closed : !1; + }, + }, + destroyed: { + __proto__: null, + get() { + return this._writableState ? this._writableState.destroyed : !1; + }, + set(e) { + this._writableState && (this._writableState.destroyed = e); + }, + }, + writable: { + __proto__: null, + get() { + let e = this._writableState; + return !!e && e.writable !== !1 && !e.destroyed && !e.errored && !e.ending && !e.ended; + }, + set(e) { + this._writableState && (this._writableState.writable = !!e); + }, + }, + writableFinished: { + __proto__: null, + get() { + return this._writableState ? this._writableState.finished : !1; + }, + }, + writableObjectMode: { + __proto__: null, + get() { + return this._writableState ? this._writableState.objectMode : !1; + }, + }, + writableBuffer: { + __proto__: null, + get() { + return this._writableState && this._writableState.getBuffer(); + }, + }, + writableEnded: { + __proto__: null, + get() { + return this._writableState ? this._writableState.ending : !1; + }, + }, + writableNeedDrain: { + __proto__: null, + get() { + let e = this._writableState; + return e ? !e.destroyed && !e.ending && e.needDrain : !1; + }, + }, + writableHighWaterMark: { + __proto__: null, + get() { + return this._writableState && this._writableState.highWaterMark; + }, + }, + writableCorked: { + __proto__: null, + get() { + return this._writableState ? this._writableState.corked : 0; + }, + }, + writableLength: { + __proto__: null, + get() { + return this._writableState && this._writableState.length; + }, + }, + errored: { + __proto__: null, + enumerable: !1, + get() { + return this._writableState ? this._writableState.errored : null; + }, + }, + writableAborted: { + __proto__: null, + enumerable: !1, + get: function () { + return !!( + this._writableState.writable !== !1 && + (this._writableState.destroyed || this._writableState.errored) && + !this._writableState.finished + ); + }, + }, + }); + var mg = Jt.destroy; + j.prototype.destroy = function (e, t) { + let r = this._writableState; + return ( + !r.destroyed && (r.bufferedIndex < r.buffered.length || r[Fe].length) && ve.nextTick(kn, r), + mg.call(this, e, t), + this + ); + }; + j.prototype._undestroy = Jt.undestroy; + j.prototype._destroy = function (e, t) { + t(e); + }; + j.prototype[ig.captureRejectionSymbol] = function (e) { + this.destroy(e); + }; + var vn; + function pf() { + return vn === void 0 && (vn = {}), vn; + } + j.fromWeb = function (e, t) { + return pf().newStreamWritableFromWritableStream(e, t); + }; + j.toWeb = function (e) { + return pf().newWritableStreamFromStreamWritable(e); + }; +}); +var Of = S((e_, Tf) => { + var Nn = be(), + _g = require('buffer'), + { + isReadable: Sg, + isWritable: Eg, + isIterable: bf, + isNodeStream: Rg, + isReadableNodeStream: gf, + isWritableNodeStream: wf, + isDuplexNodeStream: Ag, + } = ne(), + mf = le(), + { + AbortError: xf, + codes: { ERR_INVALID_ARG_TYPE: xg, ERR_INVALID_RETURN_VALUE: _f }, + } = B(), + { destroyer: Ue } = Te(), + Tg = oe(), + Og = tt(), + { createDeferredPromise: Sf } = te(), + Ef = Sn(), + Rf = globalThis.Blob || _g.Blob, + vg = + typeof Rf < 'u' + ? function (t) { + return t instanceof Rf; + } + : function (t) { + return !1; + }, + Lg = globalThis.AbortController || kt().AbortController, + { FunctionPrototypeCall: Af } = $(), + Le = class extends Tg { + constructor(t) { + super(t), + t?.readable === !1 && + ((this._readableState.readable = !1), + (this._readableState.ended = !0), + (this._readableState.endEmitted = !0)), + t?.writable === !1 && + ((this._writableState.writable = !1), + (this._writableState.ending = !0), + (this._writableState.ended = !0), + (this._writableState.finished = !0)); + } + }; + Tf.exports = function e(t, r) { + if (Ag(t)) return t; + if (gf(t)) return Yt({ readable: t }); + if (wf(t)) return Yt({ writable: t }); + if (Rg(t)) return Yt({ writable: !1, readable: !1 }); + if (typeof t == 'function') { + let { value: i, write: o, final: s, destroy: f } = Ig(t); + if (bf(i)) return Ef(Le, i, { objectMode: !0, write: o, final: s, destroy: f }); + let a = i?.then; + if (typeof a == 'function') { + let c, + u = Af( + a, + i, + (h) => { + if (h != null) throw new _f('nully', 'body', h); + }, + (h) => { + Ue(c, h); + } + ); + return (c = new Le({ + objectMode: !0, + readable: !1, + write: o, + final(h) { + s(async () => { + try { + await u, Nn.nextTick(h, null); + } catch (p) { + Nn.nextTick(h, p); + } + }); + }, + destroy: f, + })); + } + throw new _f('Iterable, AsyncIterable or AsyncFunction', r, i); + } + if (vg(t)) return e(t.arrayBuffer()); + if (bf(t)) return Ef(Le, t, { objectMode: !0, writable: !1 }); + if (typeof t?.writable == 'object' || typeof t?.readable == 'object') { + let i = t != null && t.readable ? (gf(t?.readable) ? t?.readable : e(t.readable)) : void 0, + o = t != null && t.writable ? (wf(t?.writable) ? t?.writable : e(t.writable)) : void 0; + return Yt({ readable: i, writable: o }); + } + let n = t?.then; + if (typeof n == 'function') { + let i; + return ( + Af( + n, + t, + (o) => { + o != null && i.push(o), i.push(null); + }, + (o) => { + Ue(i, o); + } + ), + (i = new Le({ objectMode: !0, writable: !1, read() {} })) + ); + } + throw new xg( + r, + [ + 'Blob', + 'ReadableStream', + 'WritableStream', + 'Stream', + 'Iterable', + 'AsyncIterable', + 'Function', + '{ readable, writable } pair', + 'Promise', + ], + t + ); + }; + function Ig(e) { + let { promise: t, resolve: r } = Sf(), + n = new Lg(), + i = n.signal; + return { + value: e( + (async function* () { + for (;;) { + let s = t; + t = null; + let { chunk: f, done: a, cb: c } = await s; + if ((Nn.nextTick(c), a)) return; + if (i.aborted) throw new xf(void 0, { cause: i.reason }); + ({ promise: t, resolve: r } = Sf()), yield f; + } + })(), + { signal: i } + ), + write(s, f, a) { + let c = r; + (r = null), c({ chunk: s, done: !1, cb: a }); + }, + final(s) { + let f = r; + (r = null), f({ done: !0, cb: s }); + }, + destroy(s, f) { + n.abort(), f(s); + }, + }; + } + function Yt(e) { + let t = e.readable && typeof e.readable.read != 'function' ? Og.wrap(e.readable) : e.readable, + r = e.writable, + n = !!Sg(t), + i = !!Eg(r), + o, + s, + f, + a, + c; + function u(h) { + let p = a; + (a = null), p ? p(h) : h && c.destroy(h); + } + return ( + (c = new Le({ + readableObjectMode: !!(t != null && t.readableObjectMode), + writableObjectMode: !!(r != null && r.writableObjectMode), + readable: n, + writable: i, + })), + i && + (mf(r, (h) => { + (i = !1), h && Ue(t, h), u(h); + }), + (c._write = function (h, p, l) { + r.write(h, p) ? l() : (o = l); + }), + (c._final = function (h) { + r.end(), (s = h); + }), + r.on('drain', function () { + if (o) { + let h = o; + (o = null), h(); + } + }), + r.on('finish', function () { + if (s) { + let h = s; + (s = null), h(); + } + })), + n && + (mf(t, (h) => { + (n = !1), h && Ue(t, h), u(h); + }), + t.on('readable', function () { + if (f) { + let h = f; + (f = null), h(); + } + }), + t.on('end', function () { + c.push(null); + }), + (c._read = function () { + for (;;) { + let h = t.read(); + if (h === null) { + f = c._read; + return; + } + if (!c.push(h)) return; + } + })), + (c._destroy = function (h, p) { + !h && a !== null && (h = new xf()), + (f = null), + (o = null), + (s = null), + a === null ? p(h) : ((a = p), Ue(r, h), Ue(t, h)); + }), + c + ); + } +}); +var oe = S((t_, If) => { + 'use strict'; + var { + ObjectDefineProperties: kg, + ObjectGetOwnPropertyDescriptor: fe, + ObjectKeys: jg, + ObjectSetPrototypeOf: vf, + } = $(); + If.exports = Q; + var Mn = tt(), + H = qn(); + vf(Q.prototype, Mn.prototype); + vf(Q, Mn); + { + let e = jg(H.prototype); + for (let t = 0; t < e.length; t++) { + let r = e[t]; + Q.prototype[r] || (Q.prototype[r] = H.prototype[r]); + } + } + function Q(e) { + if (!(this instanceof Q)) return new Q(e); + Mn.call(this, e), + H.call(this, e), + e + ? ((this.allowHalfOpen = e.allowHalfOpen !== !1), + e.readable === !1 && + ((this._readableState.readable = !1), + (this._readableState.ended = !0), + (this._readableState.endEmitted = !0)), + e.writable === !1 && + ((this._writableState.writable = !1), + (this._writableState.ending = !0), + (this._writableState.ended = !0), + (this._writableState.finished = !0))) + : (this.allowHalfOpen = !0); + } + kg(Q.prototype, { + writable: { __proto__: null, ...fe(H.prototype, 'writable') }, + writableHighWaterMark: { __proto__: null, ...fe(H.prototype, 'writableHighWaterMark') }, + writableObjectMode: { __proto__: null, ...fe(H.prototype, 'writableObjectMode') }, + writableBuffer: { __proto__: null, ...fe(H.prototype, 'writableBuffer') }, + writableLength: { __proto__: null, ...fe(H.prototype, 'writableLength') }, + writableFinished: { __proto__: null, ...fe(H.prototype, 'writableFinished') }, + writableCorked: { __proto__: null, ...fe(H.prototype, 'writableCorked') }, + writableEnded: { __proto__: null, ...fe(H.prototype, 'writableEnded') }, + writableNeedDrain: { __proto__: null, ...fe(H.prototype, 'writableNeedDrain') }, + destroyed: { + __proto__: null, + get() { + return this._readableState === void 0 || this._writableState === void 0 + ? !1 + : this._readableState.destroyed && this._writableState.destroyed; + }, + set(e) { + this._readableState && + this._writableState && + ((this._readableState.destroyed = e), (this._writableState.destroyed = e)); + }, + }, + }); + var Dn; + function Lf() { + return Dn === void 0 && (Dn = {}), Dn; + } + Q.fromWeb = function (e, t) { + return Lf().newStreamDuplexFromReadableWritablePair(e, t); + }; + Q.toWeb = function (e) { + return Lf().newReadableWritablePairFromDuplex(e); + }; + var $n; + Q.from = function (e) { + return $n || ($n = Of()), $n(e, 'body'); + }; +}); +var Bn = S((r_, jf) => { + 'use strict'; + var { ObjectSetPrototypeOf: kf, Symbol: Pg } = $(); + jf.exports = ue; + var { ERR_METHOD_NOT_IMPLEMENTED: qg } = B().codes, + Wn = oe(), + { getHighWaterMark: Ng } = Ut(); + kf(ue.prototype, Wn.prototype); + kf(ue, Wn); + var ot = Pg('kCallback'); + function ue(e) { + if (!(this instanceof ue)) return new ue(e); + let t = e ? Ng(this, e, 'readableHighWaterMark', !0) : null; + t === 0 && + (e = { + ...e, + highWaterMark: null, + readableHighWaterMark: t, + writableHighWaterMark: e.writableHighWaterMark || 0, + }), + Wn.call(this, e), + (this._readableState.sync = !1), + (this[ot] = null), + e && + (typeof e.transform == 'function' && (this._transform = e.transform), + typeof e.flush == 'function' && (this._flush = e.flush)), + this.on('prefinish', Dg); + } + function Cn(e) { + typeof this._flush == 'function' && !this.destroyed + ? this._flush((t, r) => { + if (t) { + e ? e(t) : this.destroy(t); + return; + } + r != null && this.push(r), this.push(null), e && e(); + }) + : (this.push(null), e && e()); + } + function Dg() { + this._final !== Cn && Cn.call(this); + } + ue.prototype._final = Cn; + ue.prototype._transform = function (e, t, r) { + throw new qg('_transform()'); + }; + ue.prototype._write = function (e, t, r) { + let n = this._readableState, + i = this._writableState, + o = n.length; + this._transform(e, t, (s, f) => { + if (s) { + r(s); + return; + } + f != null && this.push(f), i.ended || o === n.length || n.length < n.highWaterMark ? r() : (this[ot] = r); + }); + }; + ue.prototype._read = function () { + if (this[ot]) { + let e = this[ot]; + (this[ot] = null), e(); + } + }; +}); +var Un = S((n_, qf) => { + 'use strict'; + var { ObjectSetPrototypeOf: Pf } = $(); + qf.exports = Ve; + var Fn = Bn(); + Pf(Ve.prototype, Fn.prototype); + Pf(Ve, Fn); + function Ve(e) { + if (!(this instanceof Ve)) return new Ve(e); + Fn.call(this, e); + } + Ve.prototype._transform = function (e, t, r) { + r(null, e); + }; +}); +var er = S((i_, Cf) => { + var st = be(), + { ArrayIsArray: $g, Promise: Mg, SymbolAsyncIterator: Cg } = $(), + Zt = le(), + { once: Wg } = te(), + Bg = Te(), + Nf = oe(), + { + aggregateTwoErrors: Fg, + codes: { + ERR_INVALID_ARG_TYPE: Xn, + ERR_INVALID_RETURN_VALUE: Vn, + ERR_MISSING_ARGS: Ug, + ERR_STREAM_DESTROYED: Vg, + ERR_STREAM_PREMATURE_CLOSE: zg, + }, + AbortError: Gg, + } = B(), + { validateFunction: Hg, validateAbortSignal: Kg } = Ze(), + { + isIterable: Ie, + isReadable: zn, + isReadableNodeStream: Qt, + isNodeStream: Df, + isTransformStream: ze, + isWebStream: Jg, + isReadableStream: Gn, + isReadableEnded: Yg, + } = ne(), + Xg = globalThis.AbortController || kt().AbortController, + Hn, + Kn; + function $f(e, t, r) { + let n = !1; + e.on('close', () => { + n = !0; + }); + let i = Zt(e, { readable: t, writable: r }, (o) => { + n = !o; + }); + return { + destroy: (o) => { + n || ((n = !0), Bg.destroyer(e, o || new Vg('pipe'))); + }, + cleanup: i, + }; + } + function Qg(e) { + return Hg(e[e.length - 1], 'streams[stream.length - 1]'), e.pop(); + } + function Jn(e) { + if (Ie(e)) return e; + if (Qt(e)) return Zg(e); + throw new Xn('val', ['Readable', 'Iterable', 'AsyncIterable'], e); + } + async function* Zg(e) { + Kn || (Kn = tt()), yield* Kn.prototype[Cg].call(e); + } + async function Xt(e, t, r, { end: n }) { + let i, + o = null, + s = (c) => { + if ((c && (i = c), o)) { + let u = o; + (o = null), u(); + } + }, + f = () => + new Mg((c, u) => { + i + ? u(i) + : (o = () => { + i ? u(i) : c(); + }); + }); + t.on('drain', s); + let a = Zt(t, { readable: !1 }, s); + try { + t.writableNeedDrain && (await f()); + for await (let c of e) t.write(c) || (await f()); + n && t.end(), await f(), r(); + } catch (c) { + r(i !== c ? Fg(i, c) : c); + } finally { + a(), t.off('drain', s); + } + } + async function Yn(e, t, r, { end: n }) { + ze(t) && (t = t.writable); + let i = t.getWriter(); + try { + for await (let o of e) await i.ready, i.write(o).catch(() => {}); + await i.ready, n && (await i.close()), r(); + } catch (o) { + try { + await i.abort(o), r(o); + } catch (s) { + r(s); + } + } + } + function ew(...e) { + return Mf(e, Wg(Qg(e))); + } + function Mf(e, t, r) { + if ((e.length === 1 && $g(e[0]) && (e = e[0]), e.length < 2)) throw new Ug('streams'); + let n = new Xg(), + i = n.signal, + o = r?.signal, + s = []; + Kg(o, 'options.signal'); + function f() { + l(new Gg()); + } + o?.addEventListener('abort', f); + let a, + c, + u = [], + h = 0; + function p(y) { + l(y, --h === 0); + } + function l(y, m) { + if ((y && (!a || a.code === 'ERR_STREAM_PREMATURE_CLOSE') && (a = y), !(!a && !m))) { + for (; u.length; ) u.shift()(a); + o?.removeEventListener('abort', f), n.abort(), m && (a || s.forEach((E) => E()), st.nextTick(t, a, c)); + } + } + let d; + for (let y = 0; y < e.length; y++) { + let m = e[y], + E = y < e.length - 1, + R = y > 0, + x = E || r?.end !== !1, + L = y === e.length - 1; + if (Df(m)) { + let A = function (I) { + I && I.name !== 'AbortError' && I.code !== 'ERR_STREAM_PREMATURE_CLOSE' && p(I); + }; + var _ = A; + if (x) { + let { destroy: I, cleanup: C } = $f(m, E, R); + u.push(I), zn(m) && L && s.push(C); + } + m.on('error', A), + zn(m) && + L && + s.push(() => { + m.removeListener('error', A); + }); + } + if (y === 0) + if (typeof m == 'function') { + if (((d = m({ signal: i })), !Ie(d))) throw new Vn('Iterable, AsyncIterable or Stream', 'source', d); + } else Ie(m) || Qt(m) || ze(m) ? (d = m) : (d = Nf.from(m)); + else if (typeof m == 'function') { + if (ze(d)) { + var g; + d = Jn((g = d) === null || g === void 0 ? void 0 : g.readable); + } else d = Jn(d); + if (((d = m(d, { signal: i })), E)) { + if (!Ie(d, !0)) throw new Vn('AsyncIterable', `transform[${y - 1}]`, d); + } else { + var w; + Hn || (Hn = Un()); + let A = new Hn({ objectMode: !0 }), + I = (w = d) === null || w === void 0 ? void 0 : w.then; + if (typeof I == 'function') + h++, + I.call( + d, + (P) => { + (c = P), P != null && A.write(P), x && A.end(), st.nextTick(p); + }, + (P) => { + A.destroy(P), st.nextTick(p, P); + } + ); + else if (Ie(d, !0)) h++, Xt(d, A, p, { end: x }); + else if (Gn(d) || ze(d)) { + let P = d.readable || d; + h++, Xt(P, A, p, { end: x }); + } else throw new Vn('AsyncIterable or Promise', 'destination', d); + d = A; + let { destroy: C, cleanup: D } = $f(d, !1, !0); + u.push(C), L && s.push(D); + } + } else if (Df(m)) { + if (Qt(d)) { + h += 2; + let A = tw(d, m, p, { end: x }); + zn(m) && L && s.push(A); + } else if (ze(d) || Gn(d)) { + let A = d.readable || d; + h++, Xt(A, m, p, { end: x }); + } else if (Ie(d)) h++, Xt(d, m, p, { end: x }); + else throw new Xn('val', ['Readable', 'Iterable', 'AsyncIterable', 'ReadableStream', 'TransformStream'], d); + d = m; + } else if (Jg(m)) { + if (Qt(d)) h++, Yn(Jn(d), m, p, { end: x }); + else if (Gn(d) || Ie(d)) h++, Yn(d, m, p, { end: x }); + else if (ze(d)) h++, Yn(d.readable, m, p, { end: x }); + else throw new Xn('val', ['Readable', 'Iterable', 'AsyncIterable', 'ReadableStream', 'TransformStream'], d); + d = m; + } else d = Nf.from(m); + } + return ((i != null && i.aborted) || (o != null && o.aborted)) && st.nextTick(f), d; + } + function tw(e, t, r, { end: n }) { + let i = !1; + if ( + (t.on('close', () => { + i || r(new zg()); + }), + e.pipe(t, { end: !1 }), + n) + ) { + let s = function () { + (i = !0), t.end(); + }; + var o = s; + Yg(e) ? st.nextTick(s) : e.once('end', s); + } else r(); + return ( + Zt(e, { readable: !0, writable: !1 }, (s) => { + let f = e._readableState; + s && s.code === 'ERR_STREAM_PREMATURE_CLOSE' && f && f.ended && !f.errored && !f.errorEmitted + ? e.once('end', r).once('error', r) + : r(s); + }), + Zt(t, { readable: !1, writable: !0 }, r) + ); + } + Cf.exports = { pipelineImpl: Mf, pipeline: ew }; +}); +var Zn = S((o_, zf) => { + 'use strict'; + var { pipeline: rw } = er(), + tr = oe(), + { destroyer: nw } = Te(), + { + isNodeStream: rr, + isReadable: Wf, + isWritable: Bf, + isWebStream: Qn, + isTransformStream: ke, + isWritableStream: Ff, + isReadableStream: Uf, + } = ne(), + { + AbortError: iw, + codes: { ERR_INVALID_ARG_VALUE: Vf, ERR_MISSING_ARGS: ow }, + } = B(), + sw = le(); + zf.exports = function (...t) { + if (t.length === 0) throw new ow('streams'); + if (t.length === 1) return tr.from(t[0]); + let r = [...t]; + if ((typeof t[0] == 'function' && (t[0] = tr.from(t[0])), typeof t[t.length - 1] == 'function')) { + let l = t.length - 1; + t[l] = tr.from(t[l]); + } + for (let l = 0; l < t.length; ++l) + if (!(!rr(t[l]) && !Qn(t[l]))) { + if (l < t.length - 1 && !(Wf(t[l]) || Uf(t[l]) || ke(t[l]))) + throw new Vf(`streams[${l}]`, r[l], 'must be readable'); + if (l > 0 && !(Bf(t[l]) || Ff(t[l]) || ke(t[l]))) throw new Vf(`streams[${l}]`, r[l], 'must be writable'); + } + let n, i, o, s, f; + function a(l) { + let d = s; + (s = null), d ? d(l) : l ? f.destroy(l) : !p && !h && f.destroy(); + } + let c = t[0], + u = rw(t, a), + h = !!(Bf(c) || Ff(c) || ke(c)), + p = !!(Wf(u) || Uf(u) || ke(u)); + if ( + ((f = new tr({ + writableObjectMode: !!(c != null && c.writableObjectMode), + readableObjectMode: !!(u != null && u.writableObjectMode), + writable: h, + readable: p, + })), + h) + ) { + if (rr(c)) + (f._write = function (d, g, w) { + c.write(d, g) ? w() : (n = w); + }), + (f._final = function (d) { + c.end(), (i = d); + }), + c.on('drain', function () { + if (n) { + let d = n; + (n = null), d(); + } + }); + else if (Qn(c)) { + let g = (ke(c) ? c.writable : c).getWriter(); + (f._write = async function (w, _, y) { + try { + await g.ready, g.write(w).catch(() => {}), y(); + } catch (m) { + y(m); + } + }), + (f._final = async function (w) { + try { + await g.ready, g.close().catch(() => {}), (i = w); + } catch (_) { + w(_); + } + }); + } + let l = ke(u) ? u.readable : u; + sw(l, () => { + if (i) { + let d = i; + (i = null), d(); + } + }); + } + if (p) { + if (rr(u)) + u.on('readable', function () { + if (o) { + let l = o; + (o = null), l(); + } + }), + u.on('end', function () { + f.push(null); + }), + (f._read = function () { + for (;;) { + let l = u.read(); + if (l === null) { + o = f._read; + return; + } + if (!f.push(l)) return; + } + }); + else if (Qn(u)) { + let d = (ke(u) ? u.readable : u).getReader(); + f._read = async function () { + for (;;) + try { + let { value: g, done: w } = await d.read(); + if (!f.push(g)) return; + if (w) { + f.push(null); + return; + } + } catch { + return; + } + }; + } + } + return ( + (f._destroy = function (l, d) { + !l && s !== null && (l = new iw()), + (o = null), + (n = null), + (i = null), + s === null ? d(l) : ((s = d), rr(u) && nw(u, l)); + }), + f + ); + }; +}); +var Zf = S((s_, ri) => { + 'use strict'; + var Jf = globalThis.AbortController || kt().AbortController, + { + codes: { ERR_INVALID_ARG_VALUE: lw, ERR_INVALID_ARG_TYPE: lt, ERR_MISSING_ARGS: fw, ERR_OUT_OF_RANGE: uw }, + AbortError: se, + } = B(), + { validateAbortSignal: je, validateInteger: aw, validateObject: Pe } = Ze(), + cw = $().Symbol('kWeak'), + { finished: dw } = le(), + hw = Zn(), + { addAbortSignalNoValidate: pw } = et(), + { isWritable: yw, isNodeStream: bw } = ne(), + { + ArrayPrototypePush: gw, + MathFloor: ww, + Number: mw, + NumberIsNaN: _w, + Promise: Gf, + PromiseReject: Hf, + PromisePrototypeThen: Sw, + Symbol: Yf, + } = $(), + nr = Yf('kEmpty'), + Kf = Yf('kEof'); + function Ew(e, t) { + if ((t != null && Pe(t, 'options'), t?.signal != null && je(t.signal, 'options.signal'), bw(e) && !yw(e))) + throw new lw('stream', e, 'must be writable'); + let r = hw(this, e); + return t != null && t.signal && pw(t.signal, r), r; + } + function ir(e, t) { + if (typeof e != 'function') throw new lt('fn', ['Function', 'AsyncFunction'], e); + t != null && Pe(t, 'options'), t?.signal != null && je(t.signal, 'options.signal'); + let r = 1; + return ( + t?.concurrency != null && (r = ww(t.concurrency)), + aw(r, 'concurrency', 1), + async function* () { + var i, o; + let s = new Jf(), + f = this, + a = [], + c = s.signal, + u = { signal: c }, + h = () => s.abort(); + t != null && (i = t.signal) !== null && i !== void 0 && i.aborted && h(), + t == null || (o = t.signal) === null || o === void 0 || o.addEventListener('abort', h); + let p, + l, + d = !1; + function g() { + d = !0; + } + async function w() { + try { + for await (let m of f) { + var _; + if (d) return; + if (c.aborted) throw new se(); + try { + m = e(m, u); + } catch (E) { + m = Hf(E); + } + m !== nr && + (typeof ((_ = m) === null || _ === void 0 ? void 0 : _.catch) == 'function' && m.catch(g), + a.push(m), + p && (p(), (p = null)), + !d && + a.length && + a.length >= r && + (await new Gf((E) => { + l = E; + }))); + } + a.push(Kf); + } catch (m) { + let E = Hf(m); + Sw(E, void 0, g), a.push(E); + } finally { + var y; + (d = !0), + p && (p(), (p = null)), + t == null || (y = t.signal) === null || y === void 0 || y.removeEventListener('abort', h); + } + } + w(); + try { + for (;;) { + for (; a.length > 0; ) { + let _ = await a[0]; + if (_ === Kf) return; + if (c.aborted) throw new se(); + _ !== nr && (yield _), a.shift(), l && (l(), (l = null)); + } + await new Gf((_) => { + p = _; + }); + } + } finally { + s.abort(), (d = !0), l && (l(), (l = null)); + } + }.call(this) + ); + } + function Rw(e = void 0) { + return ( + e != null && Pe(e, 'options'), + e?.signal != null && je(e.signal, 'options.signal'), + async function* () { + let r = 0; + for await (let i of this) { + var n; + if (e != null && (n = e.signal) !== null && n !== void 0 && n.aborted) + throw new se({ cause: e.signal.reason }); + yield [r++, i]; + } + }.call(this) + ); + } + async function Xf(e, t = void 0) { + for await (let r of ti.call(this, e, t)) return !0; + return !1; + } + async function Aw(e, t = void 0) { + if (typeof e != 'function') throw new lt('fn', ['Function', 'AsyncFunction'], e); + return !(await Xf.call(this, async (...r) => !(await e(...r)), t)); + } + async function xw(e, t) { + for await (let r of ti.call(this, e, t)) return r; + } + async function Tw(e, t) { + if (typeof e != 'function') throw new lt('fn', ['Function', 'AsyncFunction'], e); + async function r(n, i) { + return await e(n, i), nr; + } + for await (let n of ir.call(this, r, t)); + } + function ti(e, t) { + if (typeof e != 'function') throw new lt('fn', ['Function', 'AsyncFunction'], e); + async function r(n, i) { + return (await e(n, i)) ? n : nr; + } + return ir.call(this, r, t); + } + var ei = class extends fw { + constructor() { + super('reduce'), (this.message = 'Reduce of an empty stream requires an initial value'); + } + }; + async function Ow(e, t, r) { + var n; + if (typeof e != 'function') throw new lt('reducer', ['Function', 'AsyncFunction'], e); + r != null && Pe(r, 'options'), r?.signal != null && je(r.signal, 'options.signal'); + let i = arguments.length > 1; + if (r != null && (n = r.signal) !== null && n !== void 0 && n.aborted) { + let c = new se(void 0, { cause: r.signal.reason }); + throw (this.once('error', () => {}), await dw(this.destroy(c)), c); + } + let o = new Jf(), + s = o.signal; + if (r != null && r.signal) { + let c = { once: !0, [cw]: this }; + r.signal.addEventListener('abort', () => o.abort(), c); + } + let f = !1; + try { + for await (let c of this) { + var a; + if (((f = !0), r != null && (a = r.signal) !== null && a !== void 0 && a.aborted)) throw new se(); + i ? (t = await e(t, c, { signal: s })) : ((t = c), (i = !0)); + } + if (!f && !i) throw new ei(); + } finally { + o.abort(); + } + return t; + } + async function vw(e) { + e != null && Pe(e, 'options'), e?.signal != null && je(e.signal, 'options.signal'); + let t = []; + for await (let n of this) { + var r; + if (e != null && (r = e.signal) !== null && r !== void 0 && r.aborted) + throw new se(void 0, { cause: e.signal.reason }); + gw(t, n); + } + return t; + } + function Lw(e, t) { + let r = ir.call(this, e, t); + return async function* () { + for await (let i of r) yield* i; + }.call(this); + } + function Qf(e) { + if (((e = mw(e)), _w(e))) return 0; + if (e < 0) throw new uw('number', '>= 0', e); + return e; + } + function Iw(e, t = void 0) { + return ( + t != null && Pe(t, 'options'), + t?.signal != null && je(t.signal, 'options.signal'), + (e = Qf(e)), + async function* () { + var n; + if (t != null && (n = t.signal) !== null && n !== void 0 && n.aborted) throw new se(); + for await (let o of this) { + var i; + if (t != null && (i = t.signal) !== null && i !== void 0 && i.aborted) throw new se(); + e-- <= 0 && (yield o); + } + }.call(this) + ); + } + function kw(e, t = void 0) { + return ( + t != null && Pe(t, 'options'), + t?.signal != null && je(t.signal, 'options.signal'), + (e = Qf(e)), + async function* () { + var n; + if (t != null && (n = t.signal) !== null && n !== void 0 && n.aborted) throw new se(); + for await (let o of this) { + var i; + if (t != null && (i = t.signal) !== null && i !== void 0 && i.aborted) throw new se(); + if (e-- > 0) yield o; + else return; + } + }.call(this) + ); + } + ri.exports.streamReturningOperators = { + asIndexedPairs: Rw, + drop: Iw, + filter: ti, + flatMap: Lw, + map: ir, + take: kw, + compose: Ew, + }; + ri.exports.promiseReturningOperators = { every: Aw, forEach: Tw, reduce: Ow, toArray: vw, some: Xf, find: xw }; +}); +var ni = S((l_, eu) => { + 'use strict'; + var { ArrayPrototypePop: jw, Promise: Pw } = $(), + { isIterable: qw, isNodeStream: Nw, isWebStream: Dw } = ne(), + { pipelineImpl: $w } = er(), + { finished: Mw } = le(); + require('stream'); + function Cw(...e) { + return new Pw((t, r) => { + let n, + i, + o = e[e.length - 1]; + if (o && typeof o == 'object' && !Nw(o) && !qw(o) && !Dw(o)) { + let s = jw(e); + (n = s.signal), (i = s.end); + } + $w( + e, + (s, f) => { + s ? r(s) : t(f); + }, + { signal: n, end: i } + ); + }); + } + eu.exports = { finished: Mw, pipeline: Cw }; +}); +var au = S((f_, uu) => { + var { Buffer: Ww } = require('buffer'), + { ObjectDefineProperty: ae, ObjectKeys: nu, ReflectApply: iu } = $(), + { + promisify: { custom: ou }, + } = te(), + { streamReturningOperators: tu, promiseReturningOperators: ru } = Zf(), + { + codes: { ERR_ILLEGAL_CONSTRUCTOR: su }, + } = B(), + Bw = Zn(), + { pipeline: lu } = er(), + { destroyer: Fw } = Te(), + fu = le(), + ii = ni(), + oi = ne(), + N = (uu.exports = Wt().Stream); + N.isDisturbed = oi.isDisturbed; + N.isErrored = oi.isErrored; + N.isReadable = oi.isReadable; + N.Readable = tt(); + for (let e of nu(tu)) { + let r = function (...n) { + if (new.target) throw su(); + return N.Readable.from(iu(t, this, n)); + }; + si = r; + let t = tu[e]; + ae(r, 'name', { __proto__: null, value: t.name }), + ae(r, 'length', { __proto__: null, value: t.length }), + ae(N.Readable.prototype, e, { __proto__: null, value: r, enumerable: !1, configurable: !0, writable: !0 }); + } + var si; + for (let e of nu(ru)) { + let r = function (...i) { + if (new.target) throw su(); + return iu(t, this, i); + }; + si = r; + let t = ru[e]; + ae(r, 'name', { __proto__: null, value: t.name }), + ae(r, 'length', { __proto__: null, value: t.length }), + ae(N.Readable.prototype, e, { __proto__: null, value: r, enumerable: !1, configurable: !0, writable: !0 }); + } + var si; + N.Writable = qn(); + N.Duplex = oe(); + N.Transform = Bn(); + N.PassThrough = Un(); + N.pipeline = lu; + var { addAbortSignal: Uw } = et(); + N.addAbortSignal = Uw; + N.finished = fu; + N.destroy = Fw; + N.compose = Bw; + ae(N, 'promises', { + __proto__: null, + configurable: !0, + enumerable: !0, + get() { + return ii; + }, + }); + ae(lu, ou, { + __proto__: null, + enumerable: !0, + get() { + return ii.pipeline; + }, + }); + ae(fu, ou, { + __proto__: null, + enumerable: !0, + get() { + return ii.finished; + }, + }); + N.Stream = N; + N._isUint8Array = function (t) { + return t instanceof Uint8Array; + }; + N._uint8ArrayToBuffer = function (t) { + return Ww.from(t.buffer, t.byteOffset, t.byteLength); + }; +}); +var cu = S((u_, O) => { + 'use strict'; + var M = require('stream'); + if (M && process.env.READABLE_STREAM === 'disable') { + let e = M.promises; + (O.exports._uint8ArrayToBuffer = M._uint8ArrayToBuffer), + (O.exports._isUint8Array = M._isUint8Array), + (O.exports.isDisturbed = M.isDisturbed), + (O.exports.isErrored = M.isErrored), + (O.exports.isReadable = M.isReadable), + (O.exports.Readable = M.Readable), + (O.exports.Writable = M.Writable), + (O.exports.Duplex = M.Duplex), + (O.exports.Transform = M.Transform), + (O.exports.PassThrough = M.PassThrough), + (O.exports.addAbortSignal = M.addAbortSignal), + (O.exports.finished = M.finished), + (O.exports.destroy = M.destroy), + (O.exports.pipeline = M.pipeline), + (O.exports.compose = M.compose), + Object.defineProperty(M, 'promises', { + configurable: !0, + enumerable: !0, + get() { + return e; + }, + }), + (O.exports.Stream = M.Stream); + } else { + let e = au(), + t = ni(), + r = e.Readable.destroy; + (O.exports = e.Readable), + (O.exports._uint8ArrayToBuffer = e._uint8ArrayToBuffer), + (O.exports._isUint8Array = e._isUint8Array), + (O.exports.isDisturbed = e.isDisturbed), + (O.exports.isErrored = e.isErrored), + (O.exports.isReadable = e.isReadable), + (O.exports.Readable = e.Readable), + (O.exports.Writable = e.Writable), + (O.exports.Duplex = e.Duplex), + (O.exports.Transform = e.Transform), + (O.exports.PassThrough = e.PassThrough), + (O.exports.addAbortSignal = e.addAbortSignal), + (O.exports.finished = e.finished), + (O.exports.destroy = e.destroy), + (O.exports.destroy = r), + (O.exports.pipeline = e.pipeline), + (O.exports.compose = e.compose), + Object.defineProperty(e, 'promises', { + configurable: !0, + enumerable: !0, + get() { + return t; + }, + }), + (O.exports.Stream = e.Stream); + } + O.exports.default = O.exports; +}); +var pu = S((a_, hu) => { + 'use strict'; + var du = Symbol.for('pino.metadata'), + Vw = Es(), + { Duplex: zw } = cu(); + hu.exports = function (t, r = {}) { + let n = r.parse === 'lines', + i = typeof r.parseLine == 'function' ? r.parseLine : JSON.parse, + o = r.close || Gw, + s = Vw( + function (a) { + let c; + try { + c = i(a); + } catch (u) { + this.emit('unknown', a, u); + return; + } + if (c === null) { + this.emit('unknown', a, 'Null value ignored'); + return; + } + return ( + typeof c != 'object' && (c = { data: c, time: Date.now() }), + s[du] && ((s.lastTime = c.time), (s.lastLevel = c.level), (s.lastObj = c)), + n ? a : c + ); + }, + { autoDestroy: !0 } + ); + (s._destroy = function (a, c) { + let u = o(a, c); + u && typeof u.then == 'function' && u.then(c, c); + }), + r.metadata !== !1 && ((s[du] = !0), (s.lastTime = 0), (s.lastLevel = 0), (s.lastObj = null)); + let f = t(s); + if (f && typeof f.catch == 'function') + f.catch((a) => { + s.destroy(a); + }), + (f = null); + else if (r.enablePipelining && f) return zw.from({ writable: s, readable: f, objectMode: !0 }); + return s; + }; + function Gw(e, t) { + process.nextTick(t, e); + } +}); +var bu = S((c_, yu) => { + var Hw = new Function('modulePath', 'return import(modulePath)'); + function Kw(e) { + return typeof __non_webpack__require__ == 'function' ? __non_webpack__require__(e) : require(e); + } + yu.exports = { realImport: Hw, realRequire: Kw }; +}); +var wu = S((d_, gu) => { + 'use strict'; + var { realImport: Jw, realRequire: ft } = bu(); + gu.exports = Yw; + async function Yw(e) { + let t; + try { + let r = 'file://' + e; + r.endsWith('.ts') || r.endsWith('.cts') + ? (process[Symbol.for('ts-node.register.instance')] + ? ft('ts-node/register') + : process.env && process.env.TS_NODE_DEV && ft('ts-node-dev'), + (t = ft(decodeURIComponent(e)))) + : (t = await Jw(r)); + } catch (r) { + if (r.code === 'ENOTDIR' || r.code === 'ERR_MODULE_NOT_FOUND') t = ft(e); + else if (r.code === void 0) t = ft(decodeURIComponent(e)); + else throw r; + } + if ((typeof t == 'object' && (t = t.default), typeof t == 'object' && (t = t.default), typeof t != 'function')) + throw Error('exported worker is not a function'); + return t; + } +}); +var Xw = ws(), + Qw = pu(), + Zw = wu(); +module.exports = async function ({ targets: e, levels: t, dedupe: r }) { + return ( + (e = await Promise.all( + e.map(async (i) => { + let s = await (await Zw(i.target))(i.options); + return { level: i.level, stream: s }; + }) + )), + Qw(n, { + parse: 'lines', + metadata: !0, + close(i, o) { + let s = 0; + for (let a of e) s++, a.stream.on('close', f), a.stream.end(); + function f() { + --s === 0 && o(i); + } + }, + }) + ); + function n(i) { + let o = Xw.multistream(e, { levels: t, dedupe: r }); + i.on('data', function (s) { + let { lastTime: f, lastMsg: a, lastObj: c, lastLevel: u } = this; + (o.lastLevel = u), + (o.lastTime = f), + (o.lastMsg = a), + (o.lastObj = c), + o.write( + s + + ` +` + ); + }); + } +}; diff --git a/dist/thread-stream-worker.js b/dist/thread-stream-worker.js new file mode 100644 index 0000000000..d4e570926a --- /dev/null +++ b/dist/thread-stream-worker.js @@ -0,0 +1,122 @@ +'use strict'; +var I = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports); +var D = I((C, R) => { + var q = new Function('modulePath', 'return import(modulePath)'); + function N(e) { + return typeof __non_webpack__require__ == 'function' ? __non_webpack__require__(e) : require(e); + } + R.exports = { realImport: q, realRequire: N }; +}); +var T = I((S, w) => { + 'use strict'; + w.exports = { WRITE_INDEX: 4, READ_INDEX: 8 }; +}); +var y = I((v, M) => { + 'use strict'; + function U(e, t, r, p, i) { + let A = Date.now() + p, + n = Atomics.load(e, t); + if (n === r) { + i(null, 'ok'); + return; + } + let a = n, + l = (E) => { + Date.now() > A + ? i(null, 'timed-out') + : setTimeout(() => { + (a = n), + (n = Atomics.load(e, t)), + n === a ? l(E >= 1e3 ? 1e3 : E * 2) : n === r ? i(null, 'ok') : i(null, 'not-equal'); + }, E); + }; + l(1); + } + function g(e, t, r, p, i) { + let A = Date.now() + p, + n = Atomics.load(e, t); + if (n !== r) { + i(null, 'ok'); + return; + } + let a = (l) => { + Date.now() > A + ? i(null, 'timed-out') + : setTimeout(() => { + (n = Atomics.load(e, t)), n !== r ? i(null, 'ok') : a(l >= 1e3 ? 1e3 : l * 2); + }, l); + }; + a(1); + } + M.exports = { wait: U, waitDiff: g }; +}); +var { realImport: k, realRequire: f } = D(), + { workerData: X, parentPort: _ } = require('worker_threads'), + { WRITE_INDEX: d, READ_INDEX: s } = T(), + { waitDiff: O } = y(), + { dataBuf: W, filename: c, stateBuf: x } = X, + u, + o = new Int32Array(x), + h = Buffer.from(W); +async function j() { + let e; + try { + c.endsWith('.ts') || c.endsWith('.cts') + ? (process[Symbol.for('ts-node.register.instance')] + ? process.env.TS_NODE_DEV && f('ts-node-dev') + : f('ts-node/register'), + (e = f(decodeURIComponent(c.replace(process.platform === 'win32' ? 'file:///' : 'file://', ''))))) + : (e = await k(c)); + } catch (t) { + if ((t.code === 'ENOTDIR' || t.code === 'ERR_MODULE_NOT_FOUND') && c.startsWith('file://')) + e = f(decodeURIComponent(c.replace('file://', ''))); + else if (t.code === void 0) + e = f(decodeURIComponent(c.replace(process.platform === 'win32' ? 'file:///' : 'file://', ''))); + else throw t; + } + typeof e == 'object' && (e = e.default), + typeof e == 'object' && (e = e.default), + (u = await e(X.workerData)), + u.on('error', function (t) { + Atomics.store(o, d, -2), + Atomics.notify(o, d), + Atomics.store(o, s, -2), + Atomics.notify(o, s), + _.postMessage({ code: 'ERROR', err: t }); + }), + u.on('close', function () { + let t = Atomics.load(o, d); + Atomics.store(o, s, t), + Atomics.notify(o, s), + setImmediate(() => { + process.exit(0); + }); + }); +} +j().then(function () { + _.postMessage({ code: 'READY' }), process.nextTick(m); +}); +function m() { + let e = Atomics.load(o, s), + t = Atomics.load(o, d); + if (t === e) { + t === h.length ? O(o, s, t, 1 / 0, m) : O(o, d, t, 1 / 0, m); + return; + } + if (t === -1) { + u.end(); + return; + } + let r = h.toString('utf8', e, t); + u.write(r) + ? (Atomics.store(o, s, t), Atomics.notify(o, s), setImmediate(m)) + : u.once('drain', function () { + Atomics.store(o, s, t), Atomics.notify(o, s), m(); + }); +} +process.on('unhandledRejection', function (e) { + _.postMessage({ code: 'ERROR', err: e }), process.exit(1); +}); +process.on('uncaughtException', function (e) { + _.postMessage({ code: 'ERROR', err: e }), process.exit(1); +}); diff --git a/package.json b/package.json index 2e25af1def..2cda44db50 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@salesforce/core", "version": "5.3.17", "description": "Core libraries to interact with SFDX projects, orgs, and APIs.", - "main": "lib/exported", + "main": "dist/exported", "types": "lib/exported.d.ts", "license": "BSD-3-Clause", "engines": { @@ -74,6 +74,8 @@ "benchmark": "^2.1.4", "chai": "^4.3.10", "chai-string": "^1.5.0", + "esbuild": "^0.19.5", + "esbuild-plugin-pino": "^2.1.0", "eslint": "^8.52.0", "eslint-config-prettier": "^8.10.0", "eslint-config-salesforce": "^2.0.2", @@ -85,6 +87,7 @@ "husky": "^7.0.4", "lodash": "^4.17.21", "mocha": "^9.1.3", + "npm-dts": "^1.3.12", "nyc": "^15.1.0", "prettier": "^2.8.7", "pretty-quick": "^3.1.3", diff --git a/scripts/build.js b/scripts/build.js new file mode 100644 index 0000000000..85854eeea4 --- /dev/null +++ b/scripts/build.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2023, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ +const { build } = require('esbuild'); +const esbuildPluginPino = require('esbuild-plugin-pino'); +const { Generator } = require('npm-dts'); + +new Generator({ + entry: 'src/exported.ts', + output: 'dist/exported.d.ts', +}).generate(); + +const sharedConfig = { + entryPoints: ['src/exported.ts'], + bundle: true, + minify: true, + plugins: [esbuildPluginPino({ transports: ['pino-pretty'] })], +}; + +build({ + ...sharedConfig, + platform: 'node', // for CJS + outdir: 'dist', +}); +// build({ +// ...sharedConfig, +// outfile: 'dist/exported.esm.js', +// platform: 'neutral', // for ESM +// format: 'esm', +// }); + +// build({ +// entryPoints: ['src/exported.ts'], +// outdir: 'dist', +// bundle: true, +// platform: 'node', +// plugins: [esbuildPluginPino({ transports: ['pino-pretty'] })], +// }).catch(() => process.exit(1)); diff --git a/src/deviceOauthService.ts b/src/deviceOauthService.ts index e565c64620..1be7e485e4 100644 --- a/src/deviceOauthService.ts +++ b/src/deviceOauthService.ts @@ -11,7 +11,7 @@ import Transport from 'jsforce/lib/transport'; import { AsyncCreatable, Duration, parseJsonMap } from '@salesforce/kit'; import { HttpRequest, OAuth2Config } from 'jsforce'; import { ensureString, JsonMap, Nullable } from '@salesforce/ts-types'; -import * as FormData from 'form-data'; +import FormData from 'form-data'; import { Logger } from './logger/logger'; import { AuthInfo, DEFAULT_CONNECTED_APP_INFO, SFDX_HTTP_HEADERS } from './org'; import { SfError } from './sfError'; diff --git a/src/status/streamingClient.ts b/src/status/streamingClient.ts index 700a911555..2ae532339e 100644 --- a/src/status/streamingClient.ts +++ b/src/status/streamingClient.ts @@ -476,11 +476,11 @@ export namespace StreamingClient { new Faye.Client(url), setLogger: (logLine: (message: string) => void): void => { // @ts-ignore - Faye.logger = {}; - ['info', 'error', 'fatal', 'warn', 'debug'].forEach((element) => { - // @ts-ignore - set(Faye.logger, element, logLine); - }); + // Faye.logger = {}; + // ['info', 'error', 'fatal', 'warn', 'debug'].forEach((element) => { + // // @ts-ignore + // set(Faye.logger, element, logLine); + // }); }, }; } diff --git a/src/util/zipWriter.ts b/src/util/zipWriter.ts index a53bf89f1b..283e28fc6b 100644 --- a/src/util/zipWriter.ts +++ b/src/util/zipWriter.ts @@ -6,18 +6,20 @@ */ import { Readable, Writable } from 'stream'; -import * as JSZip from 'jszip'; +import JSZip from 'jszip'; import { Logger } from '../logger/logger'; import { SfError } from '../sfError'; import { StructuredWriter } from './structuredWriter'; export class ZipWriter extends Writable implements StructuredWriter { - private zip = JSZip(); + private zip: typeof JSZip; private zipBuffer?: Buffer; private logger: Logger; public constructor(private readonly rootDestination?: string) { super({ objectMode: true }); + // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call + this.zip = new JSZip(); const destination = rootDestination ? `for: ${rootDestination}` : 'in memory'; this.logger = Logger.childFromRoot(this.constructor.name); this.logger.debug(`generating zip ${destination}`); @@ -33,6 +35,7 @@ export class ZipWriter extends Writable implements StructuredWriter { public async addToStore(contents: string | Readable | Buffer, path: string): Promise { // Ensure only posix paths are added to zip files const posixPath = path.replace(/\\/g, '/'); + // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call this.zip.file(posixPath, contents); return Promise.resolve(); } @@ -41,6 +44,7 @@ export class ZipWriter extends Writable implements StructuredWriter { // compression-/speed+ (0)<---(3)---------->(9) compression+/speed- // 3 appears to be a decent balance of compression and speed. It felt like // higher values = diminishing returns on compression and made conversion slower + // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call this.zipBuffer = await this.zip.generateAsync({ type: 'nodebuffer', compression: 'DEFLATE', diff --git a/tsconfig.json b/tsconfig.json index 98e0fe92ed..265d86e325 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,6 +3,7 @@ "compilerOptions": { "outDir": "./lib", "resolveJsonModule": true, + "esModuleInterop": true, "rootDir": "./src", "plugins": [{ "transform": "./src/messageTransformer.ts" }] }, diff --git a/yarn.lock b/yarn.lock index 45ec55dfb7..f8caf3dae4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -203,6 +203,11 @@ "@babel/helper-validator-identifier" "^7.18.6" to-fast-properties "^2.0.0" +"@colors/colors@1.6.0": + version "1.6.0" + resolved "https://registry.yarnpkg.com/@colors/colors/-/colors-1.6.0.tgz#ec6cd237440700bc23ca23087f513c75508958b0" + integrity sha512-Ir+AOibqzrIsL6ajt3Rz3LskB7OiMVHqltZmspbW/TJuTVuyOMirVqAkjfY6JISiLHgyNqicAC8AyHHGzNd/dA== + "@commitlint/cli@^17.1.2": version "17.4.2" resolved "https://registry.yarnpkg.com/@commitlint/cli/-/cli-17.4.2.tgz#8600c83abb7e84191fd59528fc14f436496fb00b" @@ -371,6 +376,15 @@ dependencies: "@jridgewell/trace-mapping" "0.3.9" +"@dabh/diagnostics@^2.0.2": + version "2.0.3" + resolved "https://registry.yarnpkg.com/@dabh/diagnostics/-/diagnostics-2.0.3.tgz#7f7e97ee9a725dffc7808d93668cc984e1dc477a" + integrity sha512-hrlQOIi7hAfzsMqlGSFyVucrx38O+j6wiGOf//H2ecvIEqYN4ADBSS2iLMh5UFyDunCNniUIPk/q3riFv45xRA== + dependencies: + colorspace "1.1.x" + enabled "2.0.x" + kuler "^2.0.0" + "@es-joy/jsdoccomment@~0.38.0": version "0.38.0" resolved "https://registry.yarnpkg.com/@es-joy/jsdoccomment/-/jsdoccomment-0.38.0.tgz#2e74f8d824b4a4ec831eaabd4c3548fb11eae5cd" @@ -380,6 +394,116 @@ esquery "^1.5.0" jsdoc-type-pratt-parser "~4.0.0" +"@esbuild/android-arm64@0.19.5": + version "0.19.5" + resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.19.5.tgz#276c5f99604054d3dbb733577e09adae944baa90" + integrity sha512-5d1OkoJxnYQfmC+Zd8NBFjkhyCNYwM4n9ODrycTFY6Jk1IGiZ+tjVJDDSwDt77nK+tfpGP4T50iMtVi4dEGzhQ== + +"@esbuild/android-arm@0.19.5": + version "0.19.5" + resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.19.5.tgz#4a3cbf14758166abaae8ba9c01a80e68342a4eec" + integrity sha512-bhvbzWFF3CwMs5tbjf3ObfGqbl/17ict2/uwOSfr3wmxDE6VdS2GqY/FuzIPe0q0bdhj65zQsvqfArI9MY6+AA== + +"@esbuild/android-x64@0.19.5": + version "0.19.5" + resolved "https://registry.yarnpkg.com/@esbuild/android-x64/-/android-x64-0.19.5.tgz#21a3d11cd4613d2d3c5ccb9e746c254eb9265b0a" + integrity sha512-9t+28jHGL7uBdkBjL90QFxe7DVA+KGqWlHCF8ChTKyaKO//VLuoBricQCgwhOjA1/qOczsw843Fy4cbs4H3DVA== + +"@esbuild/darwin-arm64@0.19.5": + version "0.19.5" + resolved "https://registry.yarnpkg.com/@esbuild/darwin-arm64/-/darwin-arm64-0.19.5.tgz#714cb839f467d6a67b151ee8255886498e2b9bf6" + integrity sha512-mvXGcKqqIqyKoxq26qEDPHJuBYUA5KizJncKOAf9eJQez+L9O+KfvNFu6nl7SCZ/gFb2QPaRqqmG0doSWlgkqw== + +"@esbuild/darwin-x64@0.19.5": + version "0.19.5" + resolved "https://registry.yarnpkg.com/@esbuild/darwin-x64/-/darwin-x64-0.19.5.tgz#2c553e97a6d2b4ae76a884e35e6cbab85a990bbf" + integrity sha512-Ly8cn6fGLNet19s0X4unjcniX24I0RqjPv+kurpXabZYSXGM4Pwpmf85WHJN3lAgB8GSth7s5A0r856S+4DyiA== + +"@esbuild/freebsd-arm64@0.19.5": + version "0.19.5" + resolved "https://registry.yarnpkg.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.5.tgz#d554f556718adb31917a0da24277bf84b6ee87f3" + integrity sha512-GGDNnPWTmWE+DMchq1W8Sd0mUkL+APvJg3b11klSGUDvRXh70JqLAO56tubmq1s2cgpVCSKYywEiKBfju8JztQ== + +"@esbuild/freebsd-x64@0.19.5": + version "0.19.5" + resolved "https://registry.yarnpkg.com/@esbuild/freebsd-x64/-/freebsd-x64-0.19.5.tgz#288f7358a3bb15d99e73c65c9adaa3dabb497432" + integrity sha512-1CCwDHnSSoA0HNwdfoNY0jLfJpd7ygaLAp5EHFos3VWJCRX9DMwWODf96s9TSse39Br7oOTLryRVmBoFwXbuuQ== + +"@esbuild/linux-arm64@0.19.5": + version "0.19.5" + resolved "https://registry.yarnpkg.com/@esbuild/linux-arm64/-/linux-arm64-0.19.5.tgz#95933ae86325c93cb6b5e8333d22120ecfdc901b" + integrity sha512-o3vYippBmSrjjQUCEEiTZ2l+4yC0pVJD/Dl57WfPwwlvFkrxoSO7rmBZFii6kQB3Wrn/6GwJUPLU5t52eq2meA== + +"@esbuild/linux-arm@0.19.5": + version "0.19.5" + resolved "https://registry.yarnpkg.com/@esbuild/linux-arm/-/linux-arm-0.19.5.tgz#0acef93aa3e0579e46d33b666627bddb06636664" + integrity sha512-lrWXLY/vJBzCPC51QN0HM71uWgIEpGSjSZZADQhq7DKhPcI6NH1IdzjfHkDQws2oNpJKpR13kv7/pFHBbDQDwQ== + +"@esbuild/linux-ia32@0.19.5": + version "0.19.5" + resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.19.5.tgz#b6e5c9e80b42131cbd6b1ddaa48c92835f1ed67f" + integrity sha512-MkjHXS03AXAkNp1KKkhSKPOCYztRtK+KXDNkBa6P78F8Bw0ynknCSClO/ztGszILZtyO/lVKpa7MolbBZ6oJtQ== + +"@esbuild/linux-loong64@0.19.5": + version "0.19.5" + resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.19.5.tgz#e5f0cf95a180158b01ff5f417da796a1c09dfbea" + integrity sha512-42GwZMm5oYOD/JHqHska3Jg0r+XFb/fdZRX+WjADm3nLWLcIsN27YKtqxzQmGNJgu0AyXg4HtcSK9HuOk3v1Dw== + +"@esbuild/linux-mips64el@0.19.5": + version "0.19.5" + resolved "https://registry.yarnpkg.com/@esbuild/linux-mips64el/-/linux-mips64el-0.19.5.tgz#ae36fb86c7d5f641f3a0c8472e83dcb6ea36a408" + integrity sha512-kcjndCSMitUuPJobWCnwQ9lLjiLZUR3QLQmlgaBfMX23UEa7ZOrtufnRds+6WZtIS9HdTXqND4yH8NLoVVIkcg== + +"@esbuild/linux-ppc64@0.19.5": + version "0.19.5" + resolved "https://registry.yarnpkg.com/@esbuild/linux-ppc64/-/linux-ppc64-0.19.5.tgz#7960cb1666f0340ddd9eef7b26dcea3835d472d0" + integrity sha512-yJAxJfHVm0ZbsiljbtFFP1BQKLc8kUF6+17tjQ78QjqjAQDnhULWiTA6u0FCDmYT1oOKS9PzZ2z0aBI+Mcyj7Q== + +"@esbuild/linux-riscv64@0.19.5": + version "0.19.5" + resolved "https://registry.yarnpkg.com/@esbuild/linux-riscv64/-/linux-riscv64-0.19.5.tgz#32207df26af60a3a9feea1783fc21b9817bade19" + integrity sha512-5u8cIR/t3gaD6ad3wNt1MNRstAZO+aNyBxu2We8X31bA8XUNyamTVQwLDA1SLoPCUehNCymhBhK3Qim1433Zag== + +"@esbuild/linux-s390x@0.19.5": + version "0.19.5" + resolved "https://registry.yarnpkg.com/@esbuild/linux-s390x/-/linux-s390x-0.19.5.tgz#b38d5681db89a3723862dfa792812397b1510a7d" + integrity sha512-Z6JrMyEw/EmZBD/OFEFpb+gao9xJ59ATsoTNlj39jVBbXqoZm4Xntu6wVmGPB/OATi1uk/DB+yeDPv2E8PqZGw== + +"@esbuild/linux-x64@0.19.5": + version "0.19.5" + resolved "https://registry.yarnpkg.com/@esbuild/linux-x64/-/linux-x64-0.19.5.tgz#46feba2ad041a241379d150f415b472fe3885075" + integrity sha512-psagl+2RlK1z8zWZOmVdImisMtrUxvwereIdyJTmtmHahJTKb64pAcqoPlx6CewPdvGvUKe2Jw+0Z/0qhSbG1A== + +"@esbuild/netbsd-x64@0.19.5": + version "0.19.5" + resolved "https://registry.yarnpkg.com/@esbuild/netbsd-x64/-/netbsd-x64-0.19.5.tgz#3b5c1fb068f26bfc681d31f682adf1bea4ef0702" + integrity sha512-kL2l+xScnAy/E/3119OggX8SrWyBEcqAh8aOY1gr4gPvw76la2GlD4Ymf832UCVbmuWeTf2adkZDK+h0Z/fB4g== + +"@esbuild/openbsd-x64@0.19.5": + version "0.19.5" + resolved "https://registry.yarnpkg.com/@esbuild/openbsd-x64/-/openbsd-x64-0.19.5.tgz#ca6830316ca68056c5c88a875f103ad3235e00db" + integrity sha512-sPOfhtzFufQfTBgRnE1DIJjzsXukKSvZxloZbkJDG383q0awVAq600pc1nfqBcl0ice/WN9p4qLc39WhBShRTA== + +"@esbuild/sunos-x64@0.19.5": + version "0.19.5" + resolved "https://registry.yarnpkg.com/@esbuild/sunos-x64/-/sunos-x64-0.19.5.tgz#9efc4eb9539a7be7d5a05ada52ee43cda0d8e2dd" + integrity sha512-dGZkBXaafuKLpDSjKcB0ax0FL36YXCvJNnztjKV+6CO82tTYVDSH2lifitJ29jxRMoUhgkg9a+VA/B03WK5lcg== + +"@esbuild/win32-arm64@0.19.5": + version "0.19.5" + resolved "https://registry.yarnpkg.com/@esbuild/win32-arm64/-/win32-arm64-0.19.5.tgz#29f8184afa7a02a956ebda4ed638099f4b8ff198" + integrity sha512-dWVjD9y03ilhdRQ6Xig1NWNgfLtf2o/STKTS+eZuF90fI2BhbwD6WlaiCGKptlqXlURVB5AUOxUj09LuwKGDTg== + +"@esbuild/win32-ia32@0.19.5": + version "0.19.5" + resolved "https://registry.yarnpkg.com/@esbuild/win32-ia32/-/win32-ia32-0.19.5.tgz#f3de07afb292ecad651ae4bb8727789de2d95b05" + integrity sha512-4liggWIA4oDgUxqpZwrDhmEfAH4d0iljanDOK7AnVU89T6CzHon/ony8C5LeOdfgx60x5cnQJFZwEydVlYx4iw== + +"@esbuild/win32-x64@0.19.5": + version "0.19.5" + resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.19.5.tgz#faad84c41ba12e3a0acb52571df9bff37bee75f6" + integrity sha512-czTrygUsB/jlM8qEW5MD8bgYU2Xg14lo6kBDXW6HdxKjh8M5PzETGiSHaz9MtbXBYDloHNUAUW2tMiKW4KM9Mw== + "@eslint-community/eslint-utils@^4.2.0": version "4.3.0" resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.3.0.tgz#a556790523a351b4e47e9d385f47265eaaf9780a" @@ -820,6 +944,11 @@ resolved "https://registry.yarnpkg.com/@types/sinonjs__fake-timers/-/sinonjs__fake-timers-8.1.2.tgz#bf2e02a3dbd4aecaf95942ecd99b7402e03fad5e" integrity sha512-9GcLXF0/v3t80caGs5p2rRfkB+a8VBGLJZVih6CNFkx8IZ994wiKKLSRs9nuFwk1HevWs/1mnUmkApGrSGsShA== +"@types/triple-beam@^1.3.2": + version "1.3.4" + resolved "https://registry.yarnpkg.com/@types/triple-beam/-/triple-beam-1.3.4.tgz#a1d5f480245db86e2f4777000065d4fe7467a012" + integrity sha512-HlJjF3wxV4R2VQkFpKe0YqJLilYNgtRtsqqZtby7RkVsSs+i+vbyzjtUwpFEdUCKcrGzCiEJE7F/0mKjh0sunA== + "@typescript-eslint/eslint-plugin@^5.62.0": version "5.62.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.62.0.tgz#aeef0328d172b9e37d9bab6dbc13b87ed88977db" @@ -1052,6 +1181,16 @@ argparse@^2.0.1: resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== +args@5.0.3: + version "5.0.3" + resolved "https://registry.yarnpkg.com/args/-/args-5.0.3.tgz#943256db85021a85684be2f0882f25d796278702" + integrity sha512-h6k/zfFgusnv3i5TU08KQkVKuCPBtL/PWQbWkHUxvJrZ2nAyeaUupneemcrgn1xmqxPQsPIzwkUhOpoqPDRZuA== + dependencies: + camelcase "5.0.0" + chalk "2.4.2" + leven "2.1.0" + mri "1.1.4" + array-buffer-byte-length@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz#fabe8bc193fea865f317fe7807085ee0dee5aead" @@ -1154,6 +1293,11 @@ assertion-error@^1.1.0: resolved "https://registry.yarnpkg.com/assertion-error/-/assertion-error-1.1.0.tgz#e60b6b0e8f301bd97e5375215bda406c85118c0b" integrity sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw== +async@^3.2.3: + version "3.2.4" + resolved "https://registry.yarnpkg.com/async/-/async-3.2.4.tgz#2d22e00f8cddeb5fde5dd33522b56d1cf569a81c" + integrity sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ== + asynckit@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" @@ -1292,6 +1436,11 @@ camelcase-keys@^6.2.2: map-obj "^4.0.0" quick-lru "^4.0.1" +camelcase@5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.0.0.tgz#03295527d58bd3cd4aa75363f35b2e8d97be2f42" + integrity sha512-faqwZqnWxbxn+F1d399ygeamQNy3lPp/H9H6rNrqYh4FSVCtcY+3cub1MxA8o9mDd55mM8Aghuu/kuyYA6VTsA== + camelcase@^5.0.0, camelcase@^5.3.1: version "5.3.1" resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" @@ -1334,7 +1483,7 @@ chai@^4.3.10, chai@^4.3.7: pathval "^1.1.1" type-detect "^4.0.8" -chalk@^2.0.0: +chalk@2.4.2, chalk@^2.0.0: version "2.4.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== @@ -1448,7 +1597,7 @@ cliui@^8.0.1: strip-ansi "^6.0.1" wrap-ansi "^7.0.0" -color-convert@^1.9.0: +color-convert@^1.9.0, color-convert@^1.9.3: version "1.9.3" resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== @@ -1467,16 +1616,40 @@ color-name@1.1.3: resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== -color-name@~1.1.4: +color-name@^1.0.0, color-name@~1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== +color-string@^1.6.0: + version "1.9.1" + resolved "https://registry.yarnpkg.com/color-string/-/color-string-1.9.1.tgz#4467f9146f036f855b764dfb5bf8582bf342c7a4" + integrity sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg== + dependencies: + color-name "^1.0.0" + simple-swizzle "^0.2.2" + +color@^3.1.3: + version "3.2.1" + resolved "https://registry.yarnpkg.com/color/-/color-3.2.1.tgz#3544dc198caf4490c3ecc9a790b54fe9ff45e164" + integrity sha512-aBl7dZI9ENN6fUGC7mWpMTPNHmWUSNan9tuWN6ahh5ZLNk9baLJOnSMlrQkHcrfFgz2/RigjUVAjdx36VcemKA== + dependencies: + color-convert "^1.9.3" + color-string "^1.6.0" + colorette@^2.0.7: version "2.0.20" resolved "https://registry.yarnpkg.com/colorette/-/colorette-2.0.20.tgz#9eb793e6833067f7235902fcd3b09917a000a95a" integrity sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w== +colorspace@1.1.x: + version "1.1.4" + resolved "https://registry.yarnpkg.com/colorspace/-/colorspace-1.1.4.tgz#8d442d1186152f60453bf8070cd66eb364e59243" + integrity sha512-BgvKJiuVu1igBUF2kEjRCZXol6wiiGbY5ipL/oVPwm0BL9sIpMIzM8IK7vwuxIIzOXMV3Ey5w+vxhm0rR/TN8w== + dependencies: + color "^3.1.3" + text-hex "1.0.x" + combined-stream@^1.0.8: version "1.0.8" resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" @@ -1484,6 +1657,11 @@ combined-stream@^1.0.8: dependencies: delayed-stream "~1.0.0" +commander@^2.9.0: + version "2.20.3" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" + integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== + commander@^4.0.1: version "4.1.1" resolved "https://registry.yarnpkg.com/commander/-/commander-4.1.1.tgz#9fd602bd936294e9e9ef46a3f4d6964044b18068" @@ -1710,6 +1888,11 @@ delayed-stream@~1.0.0: resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== +detect-file@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/detect-file/-/detect-file-1.0.0.tgz#f0d66d03672a825cb1b73bdb3fe62310c8e552b7" + integrity sha512-DtCOLG98P007x7wiiOmfI0fi3eIKyWiLTGJ2MDnVi/E04lWGbf+JzrRHMm0rgIIZJGtHpKpbVgLWHrv8xXpc3Q== + diff@5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/diff/-/diff-5.0.0.tgz#7ed6ad76d859d030787ec35855f5b1daf31d852b" @@ -1783,6 +1966,11 @@ emoji-regex@^8.0.0: resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== +enabled@2.0.x: + version "2.0.0" + resolved "https://registry.yarnpkg.com/enabled/-/enabled-2.0.0.tgz#f9dd92ec2d6f4bbc0d5d1e64e21d61cd4665e7c2" + integrity sha512-AKrN98kuwOzMIdAizXGI86UFBoo26CL21UM763y1h/GMSJ4/OHU9k2YlsmBpyScFo/wbLzWQJBMCW4+IO3/+OQ== + end-of-stream@^1.1.0: version "1.4.4" resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0" @@ -1872,6 +2060,39 @@ es6-error@^4.0.1: resolved "https://registry.yarnpkg.com/es6-error/-/es6-error-4.1.1.tgz#9e3af407459deed47e9a91f9b885a84eb05c561d" integrity sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg== +esbuild-plugin-pino@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/esbuild-plugin-pino/-/esbuild-plugin-pino-2.1.0.tgz#1254f534acf1edcd11eeba2679290aceb33fef5e" + integrity sha512-Uv50QtnJR3x7kWFHrSonEGAlj54V9sJ6sgNUZYpHRXHeIjlGW8vhZy5ZmiWLvJy7peqMLelGnYtuMm2+uophSg== + +esbuild@^0.19.5: + version "0.19.5" + resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.19.5.tgz#53a0e19dfbf61ba6c827d51a80813cf071239a8c" + integrity sha512-bUxalY7b1g8vNhQKdB24QDmHeY4V4tw/s6Ak5z+jJX9laP5MoQseTOMemAr0gxssjNcH0MCViG8ONI2kksvfFQ== + optionalDependencies: + "@esbuild/android-arm" "0.19.5" + "@esbuild/android-arm64" "0.19.5" + "@esbuild/android-x64" "0.19.5" + "@esbuild/darwin-arm64" "0.19.5" + "@esbuild/darwin-x64" "0.19.5" + "@esbuild/freebsd-arm64" "0.19.5" + "@esbuild/freebsd-x64" "0.19.5" + "@esbuild/linux-arm" "0.19.5" + "@esbuild/linux-arm64" "0.19.5" + "@esbuild/linux-ia32" "0.19.5" + "@esbuild/linux-loong64" "0.19.5" + "@esbuild/linux-mips64el" "0.19.5" + "@esbuild/linux-ppc64" "0.19.5" + "@esbuild/linux-riscv64" "0.19.5" + "@esbuild/linux-s390x" "0.19.5" + "@esbuild/linux-x64" "0.19.5" + "@esbuild/netbsd-x64" "0.19.5" + "@esbuild/openbsd-x64" "0.19.5" + "@esbuild/sunos-x64" "0.19.5" + "@esbuild/win32-arm64" "0.19.5" + "@esbuild/win32-ia32" "0.19.5" + "@esbuild/win32-x64" "0.19.5" + escalade@^3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" @@ -2118,6 +2339,13 @@ execa@^5.0.0: signal-exit "^3.0.3" strip-final-newline "^2.0.0" +expand-tilde@^2.0.0, expand-tilde@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/expand-tilde/-/expand-tilde-2.0.2.tgz#97e801aa052df02454de46b02bf621642cdc8502" + integrity sha512-A5EmesHW6rfnZ9ysHQjPdJRni0SRar0tjtG5MNtm9n5TUvsYU8oozprtRD4AqHxcZWWlVuAmQo2nWKfN9oyjTw== + dependencies: + homedir-polyfill "^1.0.1" + external-editor@^3.0.3: version "3.1.0" resolved "https://registry.yarnpkg.com/external-editor/-/external-editor-3.1.0.tgz#cb03f740befae03ea4d283caed2741a83f335495" @@ -2194,6 +2422,11 @@ faye@^1.4.0: tough-cookie "*" tunnel-agent "*" +fecha@^4.2.0: + version "4.2.3" + resolved "https://registry.yarnpkg.com/fecha/-/fecha-4.2.3.tgz#4d9ccdbc61e8629b259fdca67e65891448d569fd" + integrity sha512-OP2IUU6HeYKJi3i0z4A19kHMQoLVs4Hc+DPqqxI2h/DPZHTm/vjsfC6P0b4jCMy14XizLBqvndQ+UilD7707Jw== + figures@^3.0.0: version "3.2.0" resolved "https://registry.yarnpkg.com/figures/-/figures-3.2.0.tgz#625c18bd293c604dc4a8ddb2febf0c88341746af" @@ -2224,6 +2457,14 @@ find-cache-dir@^3.2.0: make-dir "^3.0.2" pkg-dir "^4.1.0" +find-node-modules@2.1.3: + version "2.1.3" + resolved "https://registry.yarnpkg.com/find-node-modules/-/find-node-modules-2.1.3.tgz#3c976cff2ca29ee94b4f9eafc613987fc4c0ee44" + integrity sha512-UC2I2+nx1ZuOBclWVNdcnbDR5dlrOdVb7xNjmT/lHE+LsgztWks3dG7boJ37yTS/venXw84B/mAW9uHVoC5QRg== + dependencies: + findup-sync "^4.0.0" + merge "^2.1.1" + find-up@5.0.0, find-up@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" @@ -2240,6 +2481,16 @@ find-up@^4.0.0, find-up@^4.1.0: locate-path "^5.0.0" path-exists "^4.0.0" +findup-sync@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/findup-sync/-/findup-sync-4.0.0.tgz#956c9cdde804052b881b428512905c4a5f2cdef0" + integrity sha512-6jvvn/12IC4quLBL1KNokxC7wWTvYncaVUYSoxWw7YykPLuRrnv4qdHcSOywOI5RpkOVGeQRtWM8/q+G6W6qfQ== + dependencies: + detect-file "^1.0.0" + is-glob "^4.0.0" + micromatch "^4.0.2" + resolve-dir "^1.0.1" + flat-cache@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.0.4.tgz#61b0338302b2fe9f957dcc32fc2a87f1c3048b11" @@ -2258,6 +2509,11 @@ flatted@^3.1.0: resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.6.tgz#022e9218c637f9f3fc9c35ab9c9193f05add60b2" integrity sha512-0sQoMh9s0BYsm+12Huy/rkKxVu4R1+r96YX5cG44rHV0pQ6iC3Q+mkoMFaGWObMFYQxCVT+ssG1ksneA2MI9KQ== +fn.name@1.x.x: + version "1.1.0" + resolved "https://registry.yarnpkg.com/fn.name/-/fn.name-1.1.0.tgz#26cad8017967aea8731bc42961d04a3d5988accc" + integrity sha512-GRnmB5gPyJpAhTQdSZTSp9uaPSvl09KoYcMQtsB9rQoOmzs9dH6ffeccH+Z+cv6P68Hu5bC6JjRh4Ah/mHSNRw== + for-each@^0.3.3: version "0.3.3" resolved "https://registry.yarnpkg.com/for-each/-/for-each-0.3.3.tgz#69b447e88a0a5d32c3e7084f3f1710034b21376e" @@ -2452,6 +2708,26 @@ global-dirs@^0.1.1: dependencies: ini "^1.3.4" +global-modules@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/global-modules/-/global-modules-1.0.0.tgz#6d770f0eb523ac78164d72b5e71a8877265cc3ea" + integrity sha512-sKzpEkf11GpOFuw0Zzjzmt4B4UZwjOcG757PPvrfhxcLFbq0wpsgpOqxpxtxFiCG4DtG93M6XRVbF2oGdev7bg== + dependencies: + global-prefix "^1.0.1" + is-windows "^1.0.1" + resolve-dir "^1.0.0" + +global-prefix@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/global-prefix/-/global-prefix-1.0.2.tgz#dbf743c6c14992593c655568cb66ed32c0122ebe" + integrity sha512-5lsx1NUDHtSjfg0eHlmYvZKv8/nVqX4ckFbM+FrGcQ+04KWcWFo9P5MxPZYSzUvyzmdTbI7Eix8Q4IbELDqzKg== + dependencies: + expand-tilde "^2.0.2" + homedir-polyfill "^1.0.1" + ini "^1.3.4" + is-windows "^1.0.1" + which "^1.2.14" + globals@^11.1.0: version "11.12.0" resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" @@ -2585,6 +2861,13 @@ help-me@^4.0.1: glob "^8.0.0" readable-stream "^3.6.0" +homedir-polyfill@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz#743298cef4e5af3e194161fbadcc2151d3a058e8" + integrity sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA== + dependencies: + parse-passwd "^1.0.0" + hosted-git-info@^2.1.4: version "2.8.9" resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.9.tgz#dffc0bf9a21c02209090f2aa69429e1414daf3f9" @@ -2735,6 +3018,11 @@ is-arrayish@^0.2.1: resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== +is-arrayish@^0.3.1: + version "0.3.2" + resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.3.2.tgz#4574a2ae56f7ab206896fb431eaeed066fdf8f03" + integrity sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ== + is-bigint@^1.0.1: version "1.0.4" resolved "https://registry.yarnpkg.com/is-bigint/-/is-bigint-1.0.4.tgz#08147a1875bc2b32005d41ccd8291dffc6691df3" @@ -2904,7 +3192,7 @@ is-weakref@^1.0.2: dependencies: call-bind "^1.0.2" -is-windows@^1.0.2: +is-windows@^1.0.1, is-windows@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== @@ -3175,6 +3463,16 @@ kind-of@^6.0.3: resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== +kuler@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/kuler/-/kuler-2.0.0.tgz#e2c570a3800388fb44407e851531c1d670b061b3" + integrity sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A== + +leven@2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/leven/-/leven-2.1.0.tgz#c2e7a9f772094dee9d34202ae8acce4687875580" + integrity sha512-nvVPLpIHUxCUoRLrFqTgSxXJ614d8AgQoWl7zPe/2VadE8+1dpU3LBhowRuBAcuwruWtOdD8oYC9jDNJjXDPyA== + levn@^0.4.1: version "0.4.1" resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade" @@ -3312,6 +3610,18 @@ log-symbols@4.1.0: chalk "^4.1.0" is-unicode-supported "^0.1.0" +logform@^2.3.2, logform@^2.4.0: + version "2.6.0" + resolved "https://registry.yarnpkg.com/logform/-/logform-2.6.0.tgz#8c82a983f05d6eaeb2d75e3decae7a768b2bf9b5" + integrity sha512-1ulHeNPp6k/LD8H91o7VYFBng5i1BDE7HoKxVbZiGFidS1Rj65qcywLxX+pVfAPoQJEjRdvKcusKwOupHCVOVQ== + dependencies: + "@colors/colors" "1.6.0" + "@types/triple-beam" "^1.3.2" + fecha "^4.2.0" + ms "^2.1.1" + safe-stable-stringify "^2.3.1" + triple-beam "^1.3.0" + lolex@^2.4.2: version "2.7.5" resolved "https://registry.yarnpkg.com/lolex/-/lolex-2.7.5.tgz#113001d56bfc7e02d56e36291cc5c413d1aa0733" @@ -3404,7 +3714,12 @@ merge2@^1.3.0, merge2@^1.4.1: resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== -micromatch@^4.0.4: +merge@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/merge/-/merge-2.1.1.tgz#59ef4bf7e0b3e879186436e8481c06a6c162ca98" + integrity sha512-jz+Cfrg9GWOZbQAnDQ4hlVnQky+341Yk5ru8bZSe6sIDTCIg8n9i/u7hSQGSVOF3C7lH6mGtqjkiT9G4wFLL0w== + +micromatch@^4.0.2, micromatch@^4.0.4: version "4.0.5" resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.5.tgz#bc8999a7cbbf77cdc89f132f6e467051b49090c6" integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA== @@ -3469,6 +3784,11 @@ minimist@^1.2.0, minimist@^1.2.6: resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== +mkdirp@1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e" + integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== + mocha@^9.1.3: version "9.2.2" resolved "https://registry.yarnpkg.com/mocha/-/mocha-9.2.2.tgz#d70db46bdb93ca57402c809333e5a84977a88fb9" @@ -3499,6 +3819,11 @@ mocha@^9.1.3: yargs-parser "20.2.4" yargs-unparser "2.0.0" +mri@1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/mri/-/mri-1.1.4.tgz#7cb1dd1b9b40905f1fac053abe25b6720f44744a" + integrity sha512-6y7IjGPm8AzlvoUrwAaw1tLnUBudaS3752vcd8JtrpGGQn+rXIe63LFVHm/YMwtqAuh+LJPCFdlLYPWM1nYn6w== + mri@^1.1.5: version "1.2.0" resolved "https://registry.yarnpkg.com/mri/-/mri-1.2.0.tgz#6721480fec2a11a4889861115a48b6cbe7cc8f0b" @@ -3638,6 +3963,26 @@ normalize-path@^3.0.0, normalize-path@~3.0.0: resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== +npm-dts@^1.3.12: + version "1.3.12" + resolved "https://registry.yarnpkg.com/npm-dts/-/npm-dts-1.3.12.tgz#e422b1188fb616f41fe5c566c3d636c1aafb2ed8" + integrity sha512-3pFsz7Gf1u0cyQE2czXt8Y0hKe6kczHxlFbVrr74xWweNUit2tCDbOcL4n6KaWxyimGNJ4gzOa8KkShFA8hrdA== + dependencies: + args "5.0.3" + find-node-modules "2.1.3" + mkdirp "1.0.4" + npm-run "5.0.1" + rimraf "3.0.2" + tmp "0.2.1" + winston "3.7.2" + +npm-path@^2.0.2, npm-path@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/npm-path/-/npm-path-2.0.4.tgz#c641347a5ff9d6a09e4d9bce5580c4f505278e64" + integrity sha512-IFsj0R9C7ZdR5cP+ET342q77uSRdtWOlWpih5eC+lu29tIDbNEgDbzgVJ5UFvYHWhxDZ5TFkJafFioO0pPQjCw== + dependencies: + which "^1.2.10" + npm-run-path@^4.0.0, npm-run-path@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea" @@ -3645,6 +3990,25 @@ npm-run-path@^4.0.0, npm-run-path@^4.0.1: dependencies: path-key "^3.0.0" +npm-run@5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/npm-run/-/npm-run-5.0.1.tgz#1baea93389b50ae25a32382c8ca322398e50cd16" + integrity sha512-s7FyRpHUgaJfzkRgOnevX8rAWWsv1dofY1XS7hliWCF6LSQh+HtDfBvpigPS1krLvXw+Fi17CYMY8mUtblnyWw== + dependencies: + minimist "^1.2.0" + npm-path "^2.0.4" + npm-which "^3.0.1" + serializerr "^1.0.3" + +npm-which@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/npm-which/-/npm-which-3.0.1.tgz#9225f26ec3a285c209cae67c3b11a6b4ab7140aa" + integrity sha512-CM8vMpeFQ7MAPin0U3wzDhSGV0hMHNwHU0wjo402IVizPDrs45jSfSuoC+wThevY88LQti8VvaAnqYAeVy3I1A== + dependencies: + commander "^2.9.0" + npm-path "^2.0.2" + which "^1.2.10" + nyc@^15.1.0: version "15.1.0" resolved "https://registry.yarnpkg.com/nyc/-/nyc-15.1.0.tgz#1335dae12ddc87b6e249d5a1994ca4bdaea75f02" @@ -3738,6 +4102,13 @@ once@^1.3.0, once@^1.3.1, once@^1.4.0: dependencies: wrappy "1" +one-time@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/one-time/-/one-time-1.0.0.tgz#e06bc174aed214ed58edede573b433bbf827cb45" + integrity sha512-5DXOiRKwuSEcQ/l0kGCF6Q3jcADFv5tSmRaJck/OqkVFcOzutB134KRSfF0xDrL39MNnqxbHBbUUcjZIhTgb2g== + dependencies: + fn.name "1.x.x" + onetime@^5.1.0, onetime@^5.1.2: version "5.1.2" resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e" @@ -3850,6 +4221,11 @@ parse-json@^5.0.0: json-parse-even-better-errors "^2.3.0" lines-and-columns "^1.1.6" +parse-passwd@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/parse-passwd/-/parse-passwd-1.0.0.tgz#6d5b934a456993b23d37f40a382d6f1666a8e5c6" + integrity sha512-1Y1A//QUXEZK7YKz+rD9WydcE1+EuPr6ZBgKecAB8tmoW6UFv0NREVJe1p+jRxtThkcbbKkfwIbWJe/IeE6m2Q== + pascal-case@^3.1.2: version "3.1.2" resolved "https://registry.yarnpkg.com/pascal-case/-/pascal-case-3.1.2.tgz#b48e0ef2b98e205e7c1dae747d0b1508237660eb" @@ -4028,6 +4404,11 @@ proper-lockfile@^4.1.2: retry "^0.12.0" signal-exit "^3.0.2" +protochain@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/protochain/-/protochain-1.0.5.tgz#991c407e99de264aadf8f81504b5e7faf7bfa260" + integrity sha512-4hDwFSX50C4NE6f/6zg8EPr/WLPTkFPUtG0ulWZu6bwzV2hmb50fpdQLr0HiKBAUehapaFpItzWoCLjraLJhUA== + psl@^1.1.33: version "1.9.0" resolved "https://registry.yarnpkg.com/psl/-/psl-1.9.0.tgz#d0df2a137f00794565fcaf3b2c00cd09f8d5a5a7" @@ -4197,6 +4578,14 @@ requires-port@^1.0.0: resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" integrity sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ== +resolve-dir@^1.0.0, resolve-dir@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/resolve-dir/-/resolve-dir-1.0.1.tgz#79a40644c362be82f26effe739c9bb5382046f43" + integrity sha512-R7uiTjECzvOsWSfdM0QKFNBVFcK27aHOUwdvK53BcW8zqnGdYp0Fbj82cy54+2A4P2tFM22J5kRfe1R+lM/1yg== + dependencies: + expand-tilde "^2.0.0" + global-modules "^1.0.0" + resolve-from@5.0.0, resolve-from@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69" @@ -4241,7 +4630,7 @@ reusify@^1.0.4: resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== -rimraf@^3.0.0, rimraf@^3.0.2: +rimraf@3.0.2, rimraf@^3.0.0, rimraf@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== @@ -4366,6 +4755,13 @@ serialize-javascript@6.0.0: dependencies: randombytes "^2.1.0" +serializerr@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/serializerr/-/serializerr-1.0.3.tgz#12d4c5aa1c3ffb8f6d1dc5f395aa9455569c3f91" + integrity sha512-yXUlHj0fjbndhACj2XWtIH5eJv7b/uadyl7CJA8b9wL5mIKm+g0/sL7rDzEmjC+k5y8ggcaP8i049F4FxA0U9Q== + dependencies: + protochain "^1.0.5" + set-blocking@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" @@ -4420,6 +4816,13 @@ signal-exit@^3.0.2, signal-exit@^3.0.3: resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== +simple-swizzle@^0.2.2: + version "0.2.2" + resolved "https://registry.yarnpkg.com/simple-swizzle/-/simple-swizzle-0.2.2.tgz#a4da6b635ffcccca33f70d17cb92592de95e557a" + integrity sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg== + dependencies: + is-arrayish "^0.3.1" + sinon@10.0.0: version "10.0.0" resolved "https://registry.yarnpkg.com/sinon/-/sinon-10.0.0.tgz#52279f97e35646ff73d23207d0307977c9b81430" @@ -4545,6 +4948,11 @@ sprintf-js@~1.0.2: resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g== +stack-trace@0.0.x: + version "0.0.10" + resolved "https://registry.yarnpkg.com/stack-trace/-/stack-trace-0.0.10.tgz#547c70b347e8d32b4e108ea1a2a159e5fdde19c0" + integrity sha512-KGzahc7puUKkzyMt+IqAep+TVNbKP+k2Lmwhub39m1AsTSkaDutx56aDCo+HLDzf/D26BIHTJWNiTG1KAJiQCg== + string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" @@ -4669,6 +5077,11 @@ text-extensions@^1.0.0: resolved "https://registry.yarnpkg.com/text-extensions/-/text-extensions-1.9.0.tgz#1853e45fee39c945ce6f6c36b2d659b5aabc2a26" integrity sha512-wiBrwC1EhBelW12Zy26JeOUkQ5mRu+5o8rpsJk5+2t+Y5vE7e842qtZDQ2g1NpX/29HdyFeJ4nSIhI47ENSxlQ== +text-hex@1.0.x: + version "1.0.0" + resolved "https://registry.yarnpkg.com/text-hex/-/text-hex-1.0.0.tgz#69dc9c1b17446ee79a92bf5b884bb4b9127506f5" + integrity sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg== + text-table@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" @@ -4693,6 +5106,13 @@ through2@^4.0.0: resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" integrity sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg== +tmp@0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.2.1.tgz#8457fc3037dcf4719c251367a1af6500ee1ccf14" + integrity sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ== + dependencies: + rimraf "^3.0.0" + tmp@^0.0.33: version "0.0.33" resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9" @@ -4732,6 +5152,11 @@ trim-newlines@^3.0.0: resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-3.0.1.tgz#260a5d962d8b752425b32f3a7db0dcacd176c144" integrity sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw== +triple-beam@^1.3.0: + version "1.4.1" + resolved "https://registry.yarnpkg.com/triple-beam/-/triple-beam-1.4.1.tgz#6fde70271dc6e5d73ca0c3b24e2d92afb7441984" + integrity sha512-aZbgViZrg1QNcG+LULa7nhZpJTZSLm/mXnHXnbAbjmN5aSa0y7V+wvv6+4WaBtpISJzThKy+PIPxc1Nq1EJ9mg== + ts-node@^10.0.0, ts-node@^10.4.0, ts-node@^10.8.1: version "10.9.1" resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.9.1.tgz#e73de9102958af9e1f0b168a6ff320e25adcff4b" @@ -5056,6 +5481,38 @@ which@2.0.2, which@^2.0.1: dependencies: isexe "^2.0.0" +which@^1.2.10, which@^1.2.14: + version "1.3.1" + resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" + integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== + dependencies: + isexe "^2.0.0" + +winston-transport@^4.5.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/winston-transport/-/winston-transport-4.6.0.tgz#f1c1a665ad1b366df72199e27892721832a19e1b" + integrity sha512-wbBA9PbPAHxKiygo7ub7BYRiKxms0tpfU2ljtWzb3SjRjv5yl6Ozuy/TkXf00HTAt+Uylo3gSkNwzc4ME0wiIg== + dependencies: + logform "^2.3.2" + readable-stream "^3.6.0" + triple-beam "^1.3.0" + +winston@3.7.2: + version "3.7.2" + resolved "https://registry.yarnpkg.com/winston/-/winston-3.7.2.tgz#95b4eeddbec902b3db1424932ac634f887c400b1" + integrity sha512-QziIqtojHBoyzUOdQvQiar1DH0Xp9nF1A1y7NVy2DGEsz82SBDtOalS0ulTRGVT14xPX3WRWkCsdcJKqNflKng== + dependencies: + "@dabh/diagnostics" "^2.0.2" + async "^3.2.3" + is-stream "^2.0.0" + logform "^2.4.0" + one-time "^1.0.0" + readable-stream "^3.4.0" + safe-stable-stringify "^2.3.1" + stack-trace "0.0.x" + triple-beam "^1.3.0" + winston-transport "^4.5.0" + wireit@^0.14.0: version "0.14.0" resolved "https://registry.yarnpkg.com/wireit/-/wireit-0.14.0.tgz#8ecb922280d9b3a493bed520900ab458e0f38727"