Skip to content

Instantly share code, notes, and snippets.

@craigphicks
Created July 26, 2021 06:52
Show Gist options
  • Save craigphicks/ee2d39ffa4ae7e28bf59eac59d377c70 to your computer and use it in GitHub Desktop.
Save craigphicks/ee2d39ffa4ae7e28bf59eac59d377c70 to your computer and use it in GitHub Desktop.
comparison of index.js produced with module:CommonJs vs. module:es2020 under yamato_daiwa-es_extensions
(() => {
"use strict";
var e, t = {
5272: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e, t) {
for (const [a, n] of e.entries())
if (t(n)) return a;
return null
}
},
7684: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e, t) {
const a = [];
return e.forEach(((e, n) => {
t(e) && a.push(n)
})), a
}
},
9560: (e, t) => {
var a;
Object.defineProperty(t, "__esModule", {
value: !0
}),
function(e) {
e.get = "GET", e.post = "POST", e.create = "CREATE", e.put = "PUT", e.delete = "DELETE", e.options = "OPTIONS", e.head = "HEAD", e.connect = "CONNECT", e.trace = "TRACE", e.patch = "PATCH"
}(a || (a = {})), t.default = a
},
9208: (e, t) => {
var a;
Object.defineProperty(t, "__esModule", {
value: !0
}),
function(e) {
e[e.continue = 100] = "continue", e[e.switchingProtocols = 101] = "switchingProtocols", e[e.OK = 200] = "OK", e[e.created = 200] = "created", e[e.nonAuthoritativeInformation = 203] = "nonAuthoritativeInformation", e[e.noContent = 204] = "noContent", e[e.resetContent = 205] = "resetContent", e[e.partialContent = 206] = "partialContent", e[e.multipleChoices = 300] = "multipleChoices", e[e.movedPermanently = 301] = "movedPermanently", e[e.found = 302] = "found", e[e.seeOther = 303] = "seeOther", e[e.notModified = 304] = "notModified", e[e.useProxy = 305] = "useProxy", e[e.unused = 306] = "unused", e[e.temporaryRedirect = 307] = "temporaryRedirect", e[e.badRequest = 400] = "badRequest", e[e.unauthorized = 401] = "unauthorized", e[e.paymentRequired = 402] = "paymentRequired", e[e.forbidden = 403] = "forbidden", e[e.notFound = 404] = "notFound", e[e.methodNotAllowed = 405] = "methodNotAllowed", e[e.notAcceptable = 406] = "notAcceptable", e[e.proxyAuthenticationRequired = 407] = "proxyAuthenticationRequired", e[e.requestTimeout = 408] = "requestTimeout", e[e.conflict = 409] = "conflict", e[e.gone = 410] = "gone", e[e.lengthRequired = 411] = "lengthRequired", e[e.preconditionFailed = 412] = "preconditionFailed", e[e.requestEntityTooLarge = 413] = "requestEntityTooLarge", e[e.requestURL_TooLong = 414] = "requestURL_TooLong", e[e.unsupportedMediaType = 415] = "unsupportedMediaType", e[e.requestedRangeNotSatisfiable = 416] = "requestedRangeNotSatisfiable", e[e.expectationFailed = 417] = "expectationFailed", e[e.internalServerError = 500] = "internalServerError", e[e.notImplemented = 501] = "notImplemented", e[e.badGateway = 502] = "badGateway", e[e.serviceUnavailable = 503] = "serviceUnavailable", e[e.gatewayTimeout = 504] = "gatewayTimeout", e[e.HTTP_VersionNotSupported = 505] = "HTTP_VersionNotSupported"
}(a || (a = {})), t.default = a
},
3258: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = class {
constructor(e) {
this.period__seconds = e.period__seconds, this.onElapsed = e.onElapsed
}
}
},
730: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return e / 1e3
}
},
9304: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return 1e3 * e
}
},
2297: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e, t) {
return null === e ? t : e
}
},
3577: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e, t) {
return void 0 === e ? t : e
}
},
3267: (e, t, a) => {
Object.defineProperty(t, "__esModule", {
value: !0
});
const n = a(7762);
class l extends Error {
constructor(e) {
super(), this.name = l.NAME, this.message = e
}
static get DEFAULT_TITLE() {
return l.localization.defaultTitle
}
static setLocalization(e) {
l.localization = e
}
}
l.NAME = "AlgorithmMismatchError", l.localization = n.default, t.default = l
},
7762: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = {
defaultTitle: "Desired and real behaviour mismatch"
}
},
2611: (e, t, a) => {
Object.defineProperty(t, "__esModule", {
value: !0
});
const n = a(8346);
class l extends Error {
constructor(e) {
super(), this.name = l.NAME, this.message = "customMessage" in e ? e.customMessage : l.localization.genericDescriptionPartTemplate({
className: e.className
})
}
static get DEFAULT_TITLE() {
return l.localization.defaultTitle
}
static setLocalization(e) {
l.localization = e
}
}
l.NAME = "RedundantSubsequentClassInitializationError", l.localization = n.default, t.default = l
},
8346: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = {
defaultTitle: "Class redundant subsequent initialization",
genericDescriptionPartTemplate: e => `Class: '${e.className}' must be initialized only one time.`
}
},
2815: (e, t, a) => {
Object.defineProperty(t, "__esModule", {
value: !0
});
const n = a(555);
class l extends Error {
constructor(e) {
super(), this.name = l.NAME, this.message = "customMessage" in e ? e.customMessage : l.localization.genericDescriptionPartTemplate(e)
}
static get DEFAULT_TITLE() {
return l.localization.defaultTitle
}
static setLocalization(e) {
l.localization = e
}
}
l.NAME = "ClassRequiredInitializationHasNotBeenExecutedError", l.localization = n.default, t.default = l
},
555: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = {
defaultTitle: "Class required initialization has not been executed",
genericDescriptionPartTemplate: e => `Class: ${e.className} required the initialization but initializing method ${e.initializingMethodName} has not been called.`
}
},
2748: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
});
const a = {
defaultTitle: "Configuration file not found",
genericDescriptionPartTemplate: e => Array.isArray(e.configFilePathOrMultipleOfThem) ? `None of below ${e.targetTechnologyName} configuration files found.\n${e.configFilePathOrMultipleOfThem.join(", ")}` : `The ${e.targetTechnologyName} configuration file ${e.configFilePathOrMultipleOfThem} not found.`
};
t.default = a
},
417: (e, t, a) => {
Object.defineProperty(t, "__esModule", {
value: !0
});
const n = a(2748);
class l extends Error {
constructor(e) {
super(), this.name = l.NAME, this.message = "customMessage" in e ? e.customMessage : l.localization.genericDescriptionPartTemplate(e)
}
static get DEFAULT_TITLE() {
return l.localization.defaultTitle
}
static setLocalization(e) {
l.localization = e
}
}
l.NAME = "ConfigFileNotFoundError", l.localization = n.default, t.default = l
},
366: (e, t, a) => {
Object.defineProperty(t, "__esModule", {
value: !0
});
const n = a(296);
class l extends Error {
constructor(e) {
super(), this.name = l.NAME, this.message = e
}
static get DEFAULT_TITLE() {
return l.localization.defaultTitle
}
static setLocalization(e) {
l.localization = e
}
}
l.NAME = "CrossBrowserIssueError", l.localization = n.default, t.default = l
},
296: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = {
defaultTitle: "Cross-browser issue"
}
},
5832: (e, t, a) => {
Object.defineProperty(t, "__esModule", {
value: !0
});
const n = a(3920);
class l extends Error {
constructor(e) {
super(), this.name = l.NAME, this.message = "customMessage" in e ? e.customMessage : l.localization.genericDescriptionPartTemplate(e)
}
static get DEFAULT_TITLE() {
return l.localization.defaultTitle
}
static setLocalization(e) {
l.localization = e
}
}
l.NAME = "DOM_ElementRetrievingFailedError", l.localization = n.default, t.default = l
},
3920: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = {
defaultTitle: "DOM Element not found",
genericDescriptionPartTemplate: e => `The DOM element with selector: ${e.selector} not found.`
}
},
7968: (e, t, a) => {
Object.defineProperty(t, "__esModule", {
value: !0
});
const n = a(755);
class l extends Error {
constructor(e) {
super(), this.name = l.NAME, this.message = "customMessage" in e ? e.customMessage : l.localization.genericDescriptionPartTemplate(e)
}
static get DEFAULT_TITLE() {
return l.localization.defaultTitle
}
static setLocalization(e) {
l.localization = e
}
}
l.NAME = "DataRetrievingFailedError", l.localization = n.default, t.default = l
},
755: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = {
defaultTitle: "Retrieving of the data from data source failed",
genericDescriptionPartTemplate: e => `The error occurred during the retrieving of data ${e.mentionToData} from he externaldata source`
}
},
998: (e, t, a) => {
Object.defineProperty(t, "__esModule", {
value: !0
});
const n = a(5388);
class l extends Error {
constructor(e) {
super(), this.name = l.NAME, this.message = "customMessage" in e ? e.customMessage : l.localization.genericDescriptionPartTemplate(e)
}
static get DEFAULT_TITLE() {
return l.localization.defaultTitle
}
static setLocalization(e) {
l.localization = e
}
}
l.NAME = "DataSubmittingFailedError", l.localization = n.default, t.default = l
},
5388: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = {
defaultTitle: "Data submitting failure",
genericDescriptionPartTemplate: e => `The error occurred during submitting of data ${e.mentionToData}.`
}
},
7632: (e, t, a) => {
Object.defineProperty(t, "__esModule", {
value: !0
});
const n = a(9198);
class l extends Error {
constructor(e) {
super(), this.name = l.NAME, this.message = "customMessage" in e ? e.customMessage : l.localization.genericDescriptionPartTemplate(e)
}
static get DEFAULT_TITLE() {
return l.localization.defaultTitle
}
static setLocalization(e) {
l.localization = e
}
}
l.NAME = "FileReadingFailure", l.localization = n.default, t.default = l
},
9198: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = {
defaultTitle: "File reading failure",
genericDescriptionPartTemplate: e => `The error occurred during the reading of the file with path :${e.filePath}`
}
},
386: (e, t, a) => {
Object.defineProperty(t, "__esModule", {
value: !0
});
const n = a(5765);
class l extends Error {
constructor(e) {
super(), this.name = l.NAME, this.message = "customMessage" in e ? e.customMessage : l.localization.genericDescriptionPartTemplate(e)
}
static get DEFAULT_TITLE() {
return l.localization.defaultTitle
}
static setLocalization(e) {
l.localization = e
}
}
l.NAME = "FileWritingFailedError", l.localization = n.default, t.default = l
},
5765: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = {
defaultTitle: "ファイル書き込み失敗",
genericDescriptionPartTemplate: e => `ファイル「${e.filePath}」の書き込み中エラーが発生しました。`
}
},
3091: (e, t, a) => {
Object.defineProperty(t, "__esModule", {
value: !0
});
const n = a(7421);
class l extends Error {
constructor(e) {
super(), this.name = l.NAME, this.message = e
}
static get DEFAULT_TITLE() {
return l.localization.defaultTitle
}
static setLocalization(e) {
l.localization = e
}
}
l.NAME = "ImproperUsageError", l.localization = n.default, t.default = l
},
7421: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = {
defaultTitle: "Improper usage"
}
},
6128: (e, t, a) => {
Object.defineProperty(t, "__esModule", {
value: !0
});
const n = a(57);
class l extends Error {
constructor(e) {
super(), this.name = l.NAME, this.message = e
}
static get DEFAULT_TITLE() {
return l.localization.defaultTitle
}
static setLocalization(e) {
l.localization = e
}
}
l.NAME = "InterProcessInteractionFailedError", l.localization = n.default, t.default = l
},
57: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = {
defaultTitle: "Inter process interaction failure"
}
},
9199: (e, t, a) => {
Object.defineProperty(t, "__esModule", {
value: !0
});
const n = a(8297);
class l extends Error {
constructor(e) {
super(), this.name = l.NAME, this.message = "customMessage" in e ? e.customMessage : l.localization.genericDescriptionPartTemplate(e)
}
static get DEFAULT_TITLE() {
return l.localization.defaultTitle
}
static setLocalization(e) {
l.localization = e
}
}
l.NAME = "InvalidConfigError", l.localization = n.default, t.default = l
},
8297: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = {
defaultTitle: "Invalid config",
genericDescriptionPartTemplate: e => `The ${e.mentionToConfig} config is invalid.`
}
},
1317: (e, t, a) => {
Object.defineProperty(t, "__esModule", {
value: !0
});
const n = a(4693);
class l extends Error {
constructor(e) {
super(), this.name = l.NAME, this.message = "customMessage" in e ? e.customMessage : l.localization.genericDescriptionPartTemplate(e)
}
static get DEFAULT_TITLE() {
return l.localization.defaultTitle
}
static setLocalization(e) {
l.localization = e
}
}
l.NAME = "InvalidExternalDataError", l.localization = n.default, t.default = l
},
4693: (e, t, a) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.InvalidExternalDataErrorLocalization__English = void 0;
const n = a(7281);
t.InvalidExternalDataErrorLocalization__English = {
defaultTitle: "Invalid external data",
genericDescriptionPartTemplate: e => `The data: ${e.mentionToExpectedData} does not match wil expected${n.default(e.messageSpecificPart,{modifier:e=>`\n${e}`})}`
}, t.default = t.InvalidExternalDataErrorLocalization__English
},
6786: (e, t, a) => {
Object.defineProperty(t, "__esModule", {
value: !0
});
const n = a(5525);
class l extends Error {
constructor(e) {
super(), this.name = l.NAME, this.message = "customMessage" in e ? e.customMessage : l.localization.genericDescriptionPartTemplate(e)
}
static get DEFAULT_TITLE() {
return l.localization.defaultTitle
}
static setLocalization(e) {
l.localization = e
}
}
l.NAME = "InvalidParameterValueError", l.localization = n.default, t.default = l
},
5525: (e, t, a) => {
Object.defineProperty(t, "__esModule", {
value: !0
});
const n = a(7281),
l = {
defaultTitle: "Invalid parameter value",
genericDescriptionPartTemplate: e => `The value of parameter ${e.parameterName} is invalid.${n.default(e.messageSpecificPart,{modifier:e=>`\n${e}`})}`
};
t.default = l
},
8731: (e, t, a) => {
Object.defineProperty(t, "__esModule", {
value: !0
});
const n = a(1078);
class l extends Error {
constructor(e) {
super(), this.name = l.NAME, this.message = "customMessage" in e ? e.customMessage : l.localization.genericDescriptionPartTemplate(e)
}
static get DEFAULT_TITLE() {
return l.localization.defaultTitle
}
static setLocalization(e) {
l.localization = e
}
}
l.NAME = "ModuleDynamicLoadingFailure", l.localization = n.default, t.default = l
},
1078: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = {
defaultTitle: "Module dynamic loading failure",
genericDescriptionPartTemplate: e => `The dynamic loading of module '${e.modulePath}' failed.`
}
},
6748: (e, t, a) => {
Object.defineProperty(t, "__esModule", {
value: !0
});
const n = a(7939);
class l extends Error {
constructor(e) {
super(), this.name = l.NAME, this.message = e
}
static get DEFAULT_TITLE() {
return l.localization.defaultTitle
}
static setLocalization(e) {
l.localization = e
}
}
l.NAME = "UnexpectedEventError", l.localization = n.default, t.default = l
},
7939: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = {
defaultTitle: "Unexpected event occurred"
}
},
9669: (e, t, a) => {
Object.defineProperty(t, "__esModule", {
value: !0
});
const n = a(4230);
class l extends Error {
constructor(e) {
super(), this.name = l.NAME, this.message = e
}
static get DEFAULT_TITLE() {
return l.localization.defaultTitle
}
static setLocalization(e) {
l.localization = e
}
}
l.NAME = "UnsupportedScenarioError", l.localization = n.default, t.default = l
},
4230: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = {
defaultTitle: "Unsupported scenario"
}
},
252: (e, t, a) => {
Object.defineProperty(t, "__esModule", {
value: !0
});
const n = a(3734),
l = a(2655),
o = a(3577),
r = a(2211),
i = a(5274),
u = a(8198);
class d {
static setImplementation(e) {
return d.implementation = e, d
}
static setLocalization(e) {
return d.localization = e, d
}
static throwErrorAndLog(e) {
if (n.default(d.implementation)) return d.implementation.throwErrorAndLog(e);
if ("errorInstance" in e) throw e.errorInstance.message = `${e.title}\n${e.errorInstance.message}\n\n${d.localization.occurrenceLocation}: ${e.occurrenceLocation}${r.default(`\n\n${d.localization.wrappableError}:\n${i.default(e.wrappableError)}`,l.default(e.wrappableError))}${r.default(`\n\n${d.localization.appendedData}:\n${i.default(e.additionalData)}`,l.default(e.additionalData))}\n`, e.errorInstance;
const t = new Error(e.description);
throw t.name = e.errorType, t
}
static logError(e) {
n.default(d.implementation) ? d.implementation.logError(e) : console.error(`[ ${o.default(e.customBadgeText,d.localization.badgesDefaultTitles.error)} ] ${e.title}\n${e.description}\n\n${d.localization.errorType}: ${e.errorType}\n${d.localization.occurrenceLocation}: ${e.occurrenceLocation}${r.default(`\n\n${d.localization.caughtError}:\n${i.default(e.caughtError)}`+(e.caughtError instanceof Error?`\n${e.caughtError.stack}`:""),l.default(e.caughtError))}${r.default(`\n\n${d.localization.appendedData}:\n${i.default(e.additionalData)}`,l.default(e.additionalData))}`)
}
static logErrorLikeMessage(e) {
n.default(d.implementation) ? d.implementation.logErrorLikeMessage(e) : console.error(d.formatGenericLog(e))
}
static logWarning(e) {
n.default(d.implementation) ? d.implementation.logWarning(e) : console.warn(`[ ${o.default(e.customBadgeText,d.localization.badgesDefaultTitles.error)} ] ${e.title}\n${e.description}\n\n${r.default(`${d.localization.occurrenceLocation}: ${e.occurrenceLocation}`,l.default(e.occurrenceLocation))}\n\n${r.default(`${d.localization.appendedData}: ${i.default(e.additionalData)}`,l.default(e.additionalData))}`)
}
static logInfo(e) {
n.default(d.implementation) ? d.implementation.logInfo(e) : console.info(d.formatGenericLog(e))
}
static logSuccess(e) {
n.default(d.implementation) ? d.implementation.logSuccess(e) : console.info(d.formatGenericLog(e))
}
static highlightText(e) {
return n.default(d.implementation) ? d.implementation.highlightText(e) : e
}
static formatGenericLog(e) {
return `[ ${o.default(e.customBadgeText,d.localization.badgesDefaultTitles.error)} ] ${e.title}\n${e.description}\n\n${r.default(`${d.localization.appendedData}: ${i.default(e.additionalData)}`,l.default(e.additionalData))}`
}
}
d.implementation = null, d.localization = u.default, t.default = d
},
8198: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = {
badgesDefaultTitles: {
error: "Error",
warning: "Warning",
success: "Success",
info: "Info"
},
errorType: "Error type",
occurrenceLocation: "Occurrence location",
caughtError: "Caught error",
wrappableError: "Wrappable error",
appendedData: "Appended data"
}
},
3818: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e, t) {
for (const [a, n] of t) e.set(a, n);
return e
}
},
8537: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e, t) {
const a = new Map;
return e.forEach(((e, n) => {
a.set(...t(n, e))
})), a
}
},
5860: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e, t) {
const a = new Map;
return e.forEach(((e, n) => {
t(n, e) && a.set(n, e)
})), a
}
},
3424: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function({
currentPageNumber: e,
itemsCountPerPage: t
}) {
return e - 1 + t + 1
}
},
8064: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function({
currentPageNumber: e,
itemsCountPerPage: t,
totalItemsCount: a
}) {
const n = e * t;
return n > a ? a : n
}
},
413: (e, t, a) => {
Object.defineProperty(t, "__esModule", {
value: !0
});
const n = a(323),
l = a(874);
t.default = function(e) {
let t = e.toString();
const a = t.startsWith("-"),
o = t.split(".")[1];
if (t.length < 5) return t;
a && (t = t.substring(1)), l.default(o) || (t = t.replace(`.${o}`, ""));
const r = n.default(t),
i = n.default(r.substr(0, 4)),
u = n.default(r.substr(4, 4)),
d = n.default(r.substr(8, 4)),
s = n.default(r.substr(12, 4)),
c = n.default(r.substr(16, 4)),
f = n.default(r.substr(20));
return (a ? "-" : "") + (f.length > 0 ? `${f}` : "") + (c.length > 0 ? `${c}京` : "") + (s.length > 0 ? `${s}兆` : "") + (d.length > 0 ? `${d}億` : "") + (u.length > 0 ? `${u}万` : "") + `${i}` + (l.default(o) ? "" : `.${o}`)
}
},
1111: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return /^[1-9][0-9]*$/u.test(e)
}
},
5709: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return String(e).replace(/\B(?=(?:\d{3})+(?!\d))/gu, ",")
}
},
2724: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return String(e).replace(/\B(?=(?:\d{4})+(?!\d))/gu, ",")
}
},
6735: (e, t, a) => {
Object.defineProperty(t, "__esModule", {
value: !0
});
const n = a(3339);
t.default = function(e) {
return e[n.default({
minimalValue: 0,
maximalValue: e.length - 1
})]
}
},
3114: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function() {
return Math.random() >= .5
}
},
3339: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function({
minimalValue: e,
maximalValue: t
}) {
return Math.floor(Math.random() * (t - e + 1) + e)
}
},
5858: (e, t, a) => {
Object.defineProperty(t, "__esModule", {
value: !0
});
const n = a(3339),
l = a(3114);
t.default = function({
capital: e = !1,
lowercase: t = !1
} = {}) {
const a = "abcdefghijklmnopqrstuvwxyz",
o = a[n.default({
minimalValue: 0,
maximalValue: a.length - 1
})];
return e ? o.toUpperCase() : t || l.default() ? o : o.toUpperCase()
}
},
4113: (e, t, a) => {
Object.defineProperty(t, "__esModule", {
value: !0
});
const n = a(6735);
t.default = function(e) {
return n.default(Object.values(e))
}
},
3969: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function({
value: e,
probability__percents: t
}) {
return e ? Math.random() < t / 100 : Math.random() >= t / 100
}
},
2963: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e, t) {
return t.forEach((t => {
e.add(t)
})), e
}
},
9125: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return /^[0-9]+$/u.test(e)
}
},
6037: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return e.charAt(0).toUpperCase() + e.slice(1)
}
},
5365: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return e[e.length - 1]
}
},
2884: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e, t) {
let a = e.indexOf(t);
if (-1 === a) return [];
const n = [];
do {
n.push(a), a = e.indexOf(t, a + 1)
} while (-1 !== a);
return n
}
},
7281: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e, t = {}) {
return null == e || !0 !== t.condition ? "" : void 0 === t.modifier ? e : t.modifier(e)
}
},
2211: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e, t) {
return t ? e : ""
}
},
1776: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e, t) {
let a;
return a = Array.isArray(t) ? t : t.length > 0 ? t.split("") : [t], e.replace(new RegExp(`[${a.join("")}]`, "gu"), "")
}
},
3726: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return e.split("").filter((e => /[0-9]/u.test(e))).join("")
}
},
323: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return e.split("").reverse().join("")
}
},
5274: (e, t, a) => {
Object.defineProperty(t, "__esModule", {
value: !0
});
const n = a(7644),
l = a(5495);
t.default = function(e) {
if (n.default(e)) return e;
if (e instanceof Error) return String(e);
if (l.default(e)) try {
const t = JSON.stringify(e, null, 2);
return "{}" === t ? "{}" : "[]" === t ? "[]" : t
} catch {
return String(e)
}
return String(e)
}
},
3153: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e, t) {
if (!Array.isArray(e)) return !1;
for (const a of e)
if (!t(a)) return !1;
return !0
}
},
2564: (e, t, a) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.IsArrayOfLengthCheckingOperation = void 0;
const n = a(7585);
var l;
! function(e) {
e.isArrayOfLength = function(e, t) {
return !!Array.isArray(e) && (n.default(t.exactElementsCount) ? e.length === t.exactElementsCount : n.default(t.minimalElementsCount) && n.default(t.maximalElementsCount) ? e.length >= t.minimalElementsCount && e.length <= t.maximalElementsCount : n.default(t.minimalElementsCount) ? e.length >= t.minimalElementsCount : !!n.default(t.maximalElementsCount) && e.length <= t.maximalElementsCount)
}
}(l = t.IsArrayOfLengthCheckingOperation || (t.IsArrayOfLengthCheckingOperation = {})), t.default = l.isArrayOfLength
},
5378: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return Array.isArray(e) && 0 === e.length
}
},
3089: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return !!Array.isArray(e) && e.length > 0
}
},
5428: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return null != e
}
},
3734: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return null !== e
}
},
2655: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return void 0 !== e
}
},
7455: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return null === e
}
},
874: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return void 0 === e
}
},
2675: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return "number" == typeof e && /^-?\d+\.\d+$/u.test(e.toString())
}
},
5647: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return "number" == typeof e && Number.isInteger(e) && e > 0
}
},
2027: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return "number" == typeof e && /^-\d+\.\d+$/u.test(e.toString())
}
},
5604: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return "number" == typeof e && Number.isInteger(e) && e < 0
}
},
2059: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return "number" == typeof e && Number.isInteger(e) && e <= 0
}
},
7585: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return "number" == typeof e && Number.isInteger(e) && e >= 0
}
},
2743: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return "number" == typeof e
}
},
1713: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return "number" == typeof e && /^\d+\.\d+$/u.test(e.toString())
}
},
6049: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return "object" == typeof e && null !== e && 0 === Object.entries(e).length
}
},
6902: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return "object" == typeof e && null !== e && Object.entries(e).length > 0
}
},
5495: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return "object" == typeof e && null !== e
}
},
7332: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return "string" == typeof e && 0 === e.length
}
},
8338: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return "string" == typeof e && e.length > 0
}
},
7644: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return "string" == typeof e
}
},
6550: (e, t, a) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.IsStringOfLengthCheckingOperation = void 0;
const n = a(7585);
var l;
! function(e) {
e.isStringOfLength = function(e, t) {
return "string" == typeof e && (n.default(t.exactSymbolsCount) ? e.length === t.exactSymbolsCount : n.default(t.minimalSymbolsCount) && n.default(t.maximalSymbolsCount) ? e.length >= t.minimalSymbolsCount && e.length <= t.maximalSymbolsCount : n.default(t.minimalSymbolsCount) ? e.length >= t.minimalSymbolsCount : !!n.default(t.maximalSymbolsCount) && e.length <= t.maximalSymbolsCount)
}
}(l = t.IsStringOfLengthCheckingOperation || (t.IsStringOfLengthCheckingOperation = {})), t.default = l.isStringOfLength
},
9366: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return "boolean" == typeof e
}
},
2362: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e, t) {
for (const a of Object.values(t))
if (a === e) return !0;
return !1
}
},
9710: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return e instanceof Function
}
},
6417: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return e.length > 0 ? e : null
}
},
521: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return null === e ? void 0 : e
}
},
759: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return null === e ? 0 : e
}
},
2702: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return void 0 === e ? [] : e
}
},
1464: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return "string" == typeof e && e.length > 0 ? e : ""
}
},
4388: (e, t) => {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
return void 0 === e ? null : e
}
},
7450: (e, t, a) => {
t.o8 = void 0, a(413).default, a(1111).default, a(5709).default, a(2724).default, a(3424).default, a(8064).default, a(9125).default, a(6037).default, a(5365).default, a(2884).default, a(7281).default, a(2211).default, a(1776).default, a(3726).default, a(323).default, a(5274).default, a(7684).default, a(5272).default, a(2963).default, a(3818).default, a(8537).default, a(5860).default, a(2675).default, a(5647).default, a(2027).default, a(5604).default, a(2059).default, a(7585).default, a(2743).default, a(1713).default, a(7332).default, a(8338).default, a(7644).default;
a(6550).default, a(6049).default, a(6902).default, a(5495).default, a(3153).default;
a(2564).default, a(5378).default, a(3089).default, a(5428).default, a(3734).default, a(2655).default, a(7455).default;
const n = a(874);
t.o8 = n.default, a(9366).default, a(2362).default, a(9710).default, a(730).default, a(9304).default, a(3258).default, a(6417).default, a(521).default, a(759).default, a(2702).default, a(1464).default, a(4388).default, a(2297).default, a(3577).default, a(6735).default, a(3114).default, a(3339).default, a(5858).default, a(4113).default, a(3969).default, a(9560).default, a(9208).default, a(252).default, a(8198).default, a(3267).default, a(7762).default, a(2611).default, a(8346).default, a(2815).default, a(555).default, a(417).default, a(2748).default, a(366).default, a(296).default, a(7968).default, a(755).default, a(998).default, a(5388).default, a(5832).default, a(3920).default, a(7632).default, a(9198).default, a(386).default, a(5765).default, a(3091).default, a(7421).default, a(6128).default, a(57).default, a(9199).default, a(8297).default, a(1317).default, a(4693).default, a(6786).default, a(5525).default, a(8731).default, a(1078).default, a(6748).default, a(7939).default, a(9669).default, a(4230).default
}
},
a = {};
e = function e(n) {
var l = a[n];
if (void 0 !== l) return l.exports;
var o = a[n] = {
exports: {}
};
return t[n](o, o.exports, e), o.exports
}(7450), console.log((0, e.o8)("ALPHA"))
})();
(() => {
"use strict";
function e(e) {
return null !== e
}
function t(e) {
return void 0 !== e
}
function i(e, t) {
return void 0 === e ? t : e
}
function a(e, t) {
return t ? e : ""
}
function o(e) {
if ("string" == typeof e) return e;
var t;
if (e instanceof Error) return String(e);
if ("object" == typeof(t = e) && null !== t) try {
const t = JSON.stringify(e, null, 2);
return "{}" === t ? "{}" : "[]" === t ? "[]" : t
} catch {
return String(e)
}
return String(e)
}
class n {
static setImplementation(e) {
return n.implementation = e, n
}
static setLocalization(e) {
return n.localization = e, n
}
static throwErrorAndLog(i) {
if (e(n.implementation)) return n.implementation.throwErrorAndLog(i);
if ("errorInstance" in i) throw i.errorInstance.message = `${i.title}\n${i.errorInstance.message}\n\n${n.localization.occurrenceLocation}: ${i.occurrenceLocation}${a(`\n\n${n.localization.wrappableError}:\n${o(i.wrappableError)}`,t(i.wrappableError))}${a(`\n\n${n.localization.appendedData}:\n${o(i.additionalData)}`,t(i.additionalData))}\n`, i.errorInstance;
const r = new Error(i.description);
throw r.name = i.errorType, r
}
static logError(r) {
e(n.implementation) ? n.implementation.logError(r) : console.error(`[ ${i(r.customBadgeText,n.localization.badgesDefaultTitles.error)} ] ${r.title}\n${r.description}\n\n${n.localization.errorType}: ${r.errorType}\n${n.localization.occurrenceLocation}: ${r.occurrenceLocation}${a(`\n\n${n.localization.caughtError}:\n${o(r.caughtError)}`+(r.caughtError instanceof Error?`\n${r.caughtError.stack}`:""),t(r.caughtError))}${a(`\n\n${n.localization.appendedData}:\n${o(r.additionalData)}`,t(r.additionalData))}`)
}
static logErrorLikeMessage(t) {
e(n.implementation) ? n.implementation.logErrorLikeMessage(t) : console.error(n.formatGenericLog(t))
}
static logWarning(r) {
e(n.implementation) ? n.implementation.logWarning(r) : console.warn(`[ ${i(r.customBadgeText,n.localization.badgesDefaultTitles.error)} ] ${r.title}\n${r.description}\n\n${a(`${n.localization.occurrenceLocation}: ${r.occurrenceLocation}`,t(r.occurrenceLocation))}\n\n${a(`${n.localization.appendedData}: ${o(r.additionalData)}`,t(r.additionalData))}`)
}
static logInfo(t) {
e(n.implementation) ? n.implementation.logInfo(t) : console.info(n.formatGenericLog(t))
}
static logSuccess(t) {
e(n.implementation) ? n.implementation.logSuccess(t) : console.info(n.formatGenericLog(t))
}
static highlightText(t) {
return e(n.implementation) ? n.implementation.highlightText(t) : t
}
static formatGenericLog(e) {
return `[ ${i(e.customBadgeText,n.localization.badgesDefaultTitles.error)} ] ${e.title}\n${e.description}\n\n${a(`${n.localization.appendedData}: ${o(e.additionalData)}`,t(e.additionalData))}`
}
}
n.implementation = null, n.localization = {
badgesDefaultTitles: {
error: "Error",
warning: "Warning",
success: "Success",
info: "Info"
},
errorType: "Error type",
occurrenceLocation: "Occurrence location",
caughtError: "Caught error",
wrappableError: "Wrappable error",
appendedData: "Appended data"
};
const r = n;
class l extends Error {
constructor(e) {
super(), this.name = l.NAME, this.message = e
}
static get DEFAULT_TITLE() {
return l.localization.defaultTitle
}
static setLocalization(e) {
l.localization = e
}
}
l.NAME = "UnexpectedEventError", l.localization = {
defaultTitle: "Unexpected event occurred"
};
const s = l,
c = {
elementNotFoundErrorMessage: "Element satisfied to specified predicate not found. As it follows from the function name, non-existing array element considering as error."
};
var u;
! function(e) {
let t = c;
e.setLocalization = function(e) {
t = e
}, e.getArrayElementWhichMustExistByPredicate = function(e, i) {
const a = e.find(i);
return void 0 === a && r.throwErrorAndLog({
errorInstance: new s(t.elementNotFoundErrorMessage),
title: s.DEFAULT_TITLE,
occurrenceLocation: "getArrayElementWhichMustExistByPredicate(targetArray, predicate)"
}), a
}
}(u || (u = {})), u.getArrayElementWhichMustExistByPredicate;
const m = {
elementNotFoundErrorMessage: "The array is empty so it has not last element.. As it follows from the function name, the empty arrays are considering as error."
};
var d, g, p, E, T;
function f(e) {
return "number" == typeof e && Number.isInteger(e) && e >= 0
}! function(e) {
let t = m;
e.setLocalization = function(e) {
t = e
}, e.getLastElementOfNonEmptyArray = function(e) {
return 0 === e.length && r.throwErrorAndLog({
errorInstance: new s(t.elementNotFoundErrorMessage),
title: s.DEFAULT_TITLE,
occurrenceLocation: "getLastElementOfNonEmptyArray(targetArray)"
}), e[e.length - 1]
}
}(d || (d = {})), d.getLastElementOfNonEmptyArray,
function(e) {
e.isStringOfLength = function(e, t) {
return "string" == typeof e && (f(t.exactSymbolsCount) ? e.length === t.exactSymbolsCount : f(t.minimalSymbolsCount) && f(t.maximalSymbolsCount) ? e.length >= t.minimalSymbolsCount && e.length <= t.maximalSymbolsCount : f(t.minimalSymbolsCount) ? e.length >= t.minimalSymbolsCount : !!f(t.maximalSymbolsCount) && e.length <= t.maximalSymbolsCount)
}
}(g || (g = {})), g.isStringOfLength,
function(e) {
e.isArrayOfLength = function(e, t) {
return !!Array.isArray(e) && (f(t.exactElementsCount) ? e.length === t.exactElementsCount : f(t.minimalElementsCount) && f(t.maximalElementsCount) ? e.length >= t.minimalElementsCount && e.length <= t.maximalElementsCount : f(t.minimalElementsCount) ? e.length >= t.minimalElementsCount : !!f(t.maximalElementsCount) && e.length <= t.maximalElementsCount)
}
}(p || (p = {})), p.isArrayOfLength,
function(e) {
e.get = "GET", e.post = "POST", e.create = "CREATE", e.put = "PUT", e.delete = "DELETE", e.options = "OPTIONS", e.head = "HEAD", e.connect = "CONNECT", e.trace = "TRACE", e.patch = "PATCH"
}(E || (E = {})),
function(e) {
e[e.continue = 100] = "continue", e[e.switchingProtocols = 101] = "switchingProtocols", e[e.OK = 200] = "OK", e[e.created = 200] = "created", e[e.nonAuthoritativeInformation = 203] = "nonAuthoritativeInformation", e[e.noContent = 204] = "noContent", e[e.resetContent = 205] = "resetContent", e[e.partialContent = 206] = "partialContent", e[e.multipleChoices = 300] = "multipleChoices", e[e.movedPermanently = 301] = "movedPermanently", e[e.found = 302] = "found", e[e.seeOther = 303] = "seeOther", e[e.notModified = 304] = "notModified", e[e.useProxy = 305] = "useProxy", e[e.unused = 306] = "unused", e[e.temporaryRedirect = 307] = "temporaryRedirect", e[e.badRequest = 400] = "badRequest", e[e.unauthorized = 401] = "unauthorized", e[e.paymentRequired = 402] = "paymentRequired", e[e.forbidden = 403] = "forbidden", e[e.notFound = 404] = "notFound", e[e.methodNotAllowed = 405] = "methodNotAllowed", e[e.notAcceptable = 406] = "notAcceptable", e[e.proxyAuthenticationRequired = 407] = "proxyAuthenticationRequired", e[e.requestTimeout = 408] = "requestTimeout", e[e.conflict = 409] = "conflict", e[e.gone = 410] = "gone", e[e.lengthRequired = 411] = "lengthRequired", e[e.preconditionFailed = 412] = "preconditionFailed", e[e.requestEntityTooLarge = 413] = "requestEntityTooLarge", e[e.requestURL_TooLong = 414] = "requestURL_TooLong", e[e.unsupportedMediaType = 415] = "unsupportedMediaType", e[e.requestedRangeNotSatisfiable = 416] = "requestedRangeNotSatisfiable", e[e.expectationFailed = 417] = "expectationFailed", e[e.internalServerError = 500] = "internalServerError", e[e.notImplemented = 501] = "notImplemented", e[e.badGateway = 502] = "badGateway", e[e.serviceUnavailable = 503] = "serviceUnavailable", e[e.gatewayTimeout = 504] = "gatewayTimeout", e[e.HTTP_VersionNotSupported = 505] = "HTTP_VersionNotSupported"
}(T || (T = {}));
class h extends Error {
constructor(e) {
super(), this.name = h.NAME, this.message = e
}
static get DEFAULT_TITLE() {
return h.localization.defaultTitle
}
static setLocalization(e) {
h.localization = e
}
}
h.NAME = "AlgorithmMismatchError", h.localization = {
defaultTitle: "Desired and real behaviour mismatch"
};
class z extends Error {
constructor(e) {
super(), this.name = z.NAME, this.message = "customMessage" in e ? e.customMessage : z.localization.genericDescriptionPartTemplate(e)
}
static get DEFAULT_TITLE() {
return z.localization.defaultTitle
}
static setLocalization(e) {
z.localization = e
}
}
z.NAME = "RedundantSubsequentClassInitializationError", z.localization = {
defaultTitle: "Class redundant subsequent initialization",
genericDescriptionPartTemplate: e => `Class: '${e.className}' must be initialized only one time.`
};
class L extends Error {
constructor(e) {
super(), this.name = L.NAME, this.message = "customMessage" in e ? e.customMessage : L.localization.genericDescriptionPartTemplate(e)
}
static get DEFAULT_TITLE() {
return L.localization.defaultTitle
}
static setLocalization(e) {
L.localization = e
}
}
L.NAME = "ClassRequiredInitializationHasNotBeenExecutedError", L.localization = {
defaultTitle: "Class required initialization has not been executed",
genericDescriptionPartTemplate: e => `Class: ${e.className} required the initialization but initializing method ${e.initializingMethodName} has not been called.`
};
const A = {
defaultTitle: "Configuration file not found",
genericDescriptionPartTemplate: e => Array.isArray(e.configFilePathOrMultipleOfThem) ? `None of below ${e.targetTechnologyName} configuration files found.\n${e.configFilePathOrMultipleOfThem.join(", ")}` : `The ${e.targetTechnologyName} configuration file ${e.configFilePathOrMultipleOfThem} not found.`
};
class M extends Error {
constructor(e) {
super(), this.name = M.NAME, this.message = "customMessage" in e ? e.customMessage : M.localization.genericDescriptionPartTemplate(e)
}
static get DEFAULT_TITLE() {
return M.localization.defaultTitle
}
static setLocalization(e) {
M.localization = e
}
}
M.NAME = "ConfigFileNotFoundError", M.localization = A;
class D extends Error {
constructor(e) {
super(), this.name = D.NAME, this.message = e
}
static get DEFAULT_TITLE() {
return D.localization.defaultTitle
}
static setLocalization(e) {
D.localization = e
}
}
D.NAME = "CrossBrowserIssueError", D.localization = {
defaultTitle: "Cross-browser issue"
};
class y extends Error {
constructor(e) {
super(), this.name = y.NAME, this.message = "customMessage" in e ? e.customMessage : y.localization.genericDescriptionPartTemplate(e)
}
static get DEFAULT_TITLE() {
return y.localization.defaultTitle
}
static setLocalization(e) {
y.localization = e
}
}
y.NAME = "DataRetrievingFailedError", y.localization = {
defaultTitle: "Retrieving of the data from data source failed",
genericDescriptionPartTemplate: e => `The error occurred during the retrieving of data ${e.mentionToData} from he external data source`
};
class N extends Error {
constructor(e) {
super(), this.name = N.NAME, this.message = "customMessage" in e ? e.customMessage : N.localization.genericDescriptionPartTemplate(e)
}
static get DEFAULT_TITLE() {
return N.localization.defaultTitle
}
static setLocalization(e) {
N.localization = e
}
}
N.NAME = "DataSubmittingFailedError", N.localization = {
defaultTitle: "Data submitting failure",
genericDescriptionPartTemplate: e => `The error occurred during submitting of data ${e.mentionToData}.`
};
class $ extends Error {
constructor(e) {
super(), this.name = $.NAME, this.message = "customMessage" in e ? e.customMessage : $.localization.genericDescriptionPartTemplate(e)
}
static get DEFAULT_TITLE() {
return $.localization.defaultTitle
}
static setLocalization(e) {
$.localization = e
}
}
$.NAME = "DOM_ElementRetrievingFailedError", $.localization = {
defaultTitle: "DOM Element not found",
genericDescriptionPartTemplate: e => `The DOM element with selector: ${e.selector} not found.`
};
class x extends Error {
constructor(e) {
super(), this.name = x.NAME, this.message = "customMessage" in e ? e.customMessage : x.localization.genericDescriptionPartTemplate(e)
}
static get DEFAULT_TITLE() {
return x.localization.defaultTitle
}
static setLocalization(e) {
x.localization = e
}
}
x.NAME = "FileReadingFailure", x.localization = {
defaultTitle: "File reading failure",
genericDescriptionPartTemplate: e => `The error occurred during the reading of the file with path :${e.filePath}`
};
class I extends Error {
constructor(e) {
super(), this.name = I.NAME, this.message = "customMessage" in e ? e.customMessage : I.localization.genericDescriptionPartTemplate(e)
}
static get DEFAULT_TITLE() {
return I.localization.defaultTitle
}
static setLocalization(e) {
I.localization = e
}
}
I.NAME = "FileWritingFailedError", I.localization = {
defaultTitle: "ファイル書き込み失敗",
genericDescriptionPartTemplate: e => `ファイル「${e.filePath}」の書き込み中エラーが発生しました。`
};
class P extends Error {
constructor(e) {
super(), this.name = P.NAME, this.message = e
}
static get DEFAULT_TITLE() {
return P.localization.defaultTitle
}
static setLocalization(e) {
P.localization = e
}
}
P.NAME = "ImproperUsageError", P.localization = {
defaultTitle: "Improper usage"
};
class b extends Error {
constructor(e) {
super(), this.name = b.NAME, this.message = "customMessage" in e ? e.customMessage : b.localization.genericDescriptionPartTemplate(e)
}
static get DEFAULT_TITLE() {
return b.localization.defaultTitle
}
static setLocalization(e) {
b.localization = e
}
}
b.NAME = "IncompatiblePropertiesError", b.localization = {
defaultTitle: "Incompatible properties in object-type parameter",
genericDescriptionPartTemplate: e => `In parameter '${e.parameterName}, property '${e.conflictingPropertyName}' is incompatible with properties:${e.incompatiblePropertiesNames.reduce(((e,t)=>`${e}\n- ${t}`),"")}`
};
class C extends Error {
constructor(e) {
super(), this.name = C.NAME, this.message = e
}
static get DEFAULT_TITLE() {
return C.localization.defaultTitle
}
static setLocalization(e) {
C.localization = e
}
}
C.NAME = "InterProcessInteractionFailedError", C.localization = {
defaultTitle: "Inter process interaction failure"
};
class F extends Error {
constructor(e) {
super(), this.name = F.NAME, this.message = "customMessage" in e ? e.customMessage : F.localization.genericDescriptionPartTemplate(e)
}
static get DEFAULT_TITLE() {
return F.localization.defaultTitle
}
static setLocalization(e) {
F.localization = e
}
}
function v(e, t = {}) {
return null == e || !1 === t.condition ? "" : void 0 === t.modifier ? e : t.modifier(e)
}
F.NAME = "InvalidConfigError", F.localization = {
defaultTitle: "Invalid config",
genericDescriptionPartTemplate: e => `The ${e.mentionToConfig} config is invalid.`
};
const w = {
defaultTitle: "Invalid external data",
genericDescriptionPartTemplate: e => `The data: ${e.mentionToExpectedData} does not match with expected.${v(e.messageSpecificPart,{modifier:e=>`\n${e}`})}`
};
class S extends Error {
constructor(e) {
super(), this.name = S.NAME, this.message = "customMessage" in e ? e.customMessage : S.localization.genericDescriptionPartTemplate(e)
}
static get DEFAULT_TITLE() {
return S.localization.defaultTitle
}
static setLocalization(e) {
S.localization = e
}
}
S.NAME = "InvalidExternalDataError", S.localization = w;
const U = {
defaultTitle: "Invalid parameter value",
genericDescriptionPartTemplate: e => `The value of parameter ${e.parameterName} is invalid.${v(e.messageSpecificPart,{modifier:e=>`\n${e}`})}`
};
class O extends Error {
constructor(e) {
super(), this.name = O.NAME, this.message = "customMessage" in e ? e.customMessage : O.localization.genericDescriptionPartTemplate(e)
}
static get DEFAULT_TITLE() {
return O.localization.defaultTitle
}
static setLocalization(e) {
O.localization = e
}
}
O.NAME = "InvalidParameterValueError", O.localization = U;
class _ extends Error {
constructor(e) {
super(), this.name = _.NAME, this.message = "customMessage" in e ? e.customMessage : _.localization.genericDescriptionPartTemplate(e)
}
static get DEFAULT_TITLE() {
return _.localization.defaultTitle
}
static setLocalization(e) {
_.localization = e
}
}
_.NAME = "ModuleDynamicLoadingFailure", _.localization = {
defaultTitle: "Module dynamic loading failure",
genericDescriptionPartTemplate: e => `The dynamic loading of module '${e.modulePath}' failed.`
};
class R extends Error {
constructor(e) {
super(), this.name = R.NAME, this.message = e
}
static get DEFAULT_TITLE() {
return R.localization.defaultTitle
}
static setLocalization(e) {
R.localization = e
}
}
R.NAME = "UnsupportedScenarioError", R.localization = {
defaultTitle: "Unsupported scenario"
}, console.log(!1)
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment