@genesislcap/foundation-shell 15.50.3 → 15.51.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/418.bad8dc896536b7d02b19.js +2 -0
- package/dist/418.c3106011c64fc8892efa51e8b3762ca7.js.map +1 -0
- package/dist/InjectManifest.79a0aeca7183379764c4996aa19ea09e.js.map +1 -1
- package/dist/index.html +1 -1
- package/dist/main.9c41a2a2cab633e442eeccf446f03a50.js.map +1 -0
- package/dist/main.e874c72e25edb4360502.js +20 -0
- package/dist/sw.js +1 -1
- package/package.json +12 -12
- package/dist/main.4d76df52da6da702711e.js +0 -20
- package/dist/main.4ea1bc38a3837ffdf419b0ee62854c8e.js.map +0 -1
package/dist/index.html
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
visibility: visible;
|
|
20
20
|
}
|
|
21
21
|
</style>
|
|
22
|
-
<base href="/"><script defer src="/npm.microsoft.4c8d41dd0aa1785e09d5.js"></script><script defer src="/main.
|
|
22
|
+
<base href="/"><script defer src="/npm.microsoft.4c8d41dd0aa1785e09d5.js"></script><script defer src="/418.bad8dc896536b7d02b19.js"></script><script defer src="/main.e874c72e25edb4360502.js"></script><script defer src="/swRegistration.1971ab73664d652c1d59.js"></script><link rel="manifest" href="/manifest.a631028cd4532aac9bb58674c9048651.json" crossorigin="use-credentials" /><link rel="mask-icon" href="/icon_512x512.5c035540edea453294160c87b69d6efc.svg" /></head>
|
|
23
23
|
<body>
|
|
24
24
|
<foundation-shell></foundation-shell>
|
|
25
25
|
</body>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.xxxxxxxxxxxxxxxxxxxx.js","mappings":"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","sources":["webpack://@genesislcap/foundation-shell/webpack/runtime/chunk loaded","webpack://@genesislcap/foundation-shell/./src/main/main.css","webpack://@genesislcap/foundation-shell/./src/main/main.template.ts","webpack://@genesislcap/foundation-shell/../foundation-logger/dist/esm/global-reporters.js","webpack://@genesislcap/foundation-shell/../foundation-logger/dist/esm/log-timestamps.js","webpack://@genesislcap/foundation-shell/../foundation-logger/dist/esm/timestamp-browser-reporter.js","webpack://@genesislcap/foundation-shell/../foundation-logger/dist/esm/logger.js","webpack://@genesislcap/foundation-shell/./src/utils/logger.ts","webpack://@genesislcap/foundation-shell/./src/main/main.css?09c4","webpack://@genesislcap/foundation-shell/./src/main/main.styles.ts","webpack://@genesislcap/foundation-shell/./src/main/main.ts","webpack://@genesislcap/foundation-shell/webpack/bootstrap","webpack://@genesislcap/foundation-shell/webpack/runtime/compat get default export","webpack://@genesislcap/foundation-shell/webpack/runtime/define property getters","webpack://@genesislcap/foundation-shell/webpack/runtime/global","webpack://@genesislcap/foundation-shell/webpack/runtime/hasOwnProperty shorthand","webpack://@genesislcap/foundation-shell/webpack/runtime/jsonp chunk loading","webpack://@genesislcap/foundation-shell/webpack/runtime/nonce","webpack://@genesislcap/foundation-shell/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `/* index.ejs styling */\n\nhtml,\nbody {\n width: 100%;\n height: 100%;\n padding: 0;\n margin: 0;\n}\n\nbody {\n background-color: #636e8d;\n}\n\n:not(:defined) {\n visibility: hidden;\n}\n\n:defined {\n visibility: visible;\n}\n`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/main/main.css\"],\"names\":[],\"mappings\":\"AAAA,sBAAsB;;AAEtB;;EAEE,WAAW;EACX,YAAY;EACZ,UAAU;EACV,SAAS;AACX;;AAEA;EACE,yBAAyB;AAC3B;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB\",\"sourcesContent\":[\"/* index.ejs styling */\\n\\nhtml,\\nbody {\\n width: 100%;\\n height: 100%;\\n padding: 0;\\n margin: 0;\\n}\\n\\nbody {\\n background-color: #636e8d;\\n}\\n\\n:not(:defined) {\\n visibility: hidden;\\n}\\n\\n:defined {\\n visibility: visible;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","import { html } from '@genesislcap/web-core';\n/**\n * @public\n */\nexport const DynamicTemplate = html `\n <div id=\"app-shell\" class=\"dynamic-template\">${(x) => x.selectTemplate()}</div>\n`;\n/**\n * @public\n */\nexport const LoadingTemplate = html `\n ...\n`;\n/**\n * @public\n */\nexport const MainTemplate = html `\n <h1>Genesis App Shell / Registry</h1>\n <slot></slot>\n`;\n","/**\n * Shared across every copy of this module (including Module Federation remotes that\n * bundled their own `@genesislcap/foundation-logger`). Storing on `globalThis` via\n * `Symbol.for` ensures that reporters registered in one copy receive logs from loggers\n * created in any other copy. The version suffix changes whenever the stored shapes do, so a\n * copy built against another shape keeps its own registry instead of misreading this one.\n */\nconst GLOBAL_REPORTERS_KEY = Symbol.for('@genesislcap/foundation-logger:global-reporters:v2');\nconst GLOBAL_LOGGERS_KEY = Symbol.for('@genesislcap/foundation-logger:global-loggers:v2');\nconst MIN_PRUNE_SIZE = 1024;\nfunction createLoggerRef(logger) {\n return typeof WeakRef !== 'undefined' ? new WeakRef(logger) : { deref: () => logger };\n}\nlet pruneAtSize = MIN_PRUNE_SIZE;\nfunction getGlobalReporters() {\n let reporters = Reflect.get(globalThis, GLOBAL_REPORTERS_KEY);\n if (!(reporters instanceof Map)) {\n reporters = new Map();\n Reflect.set(globalThis, GLOBAL_REPORTERS_KEY, reporters);\n }\n return reporters;\n}\nfunction getGlobalLoggerRefs() {\n let refs = Reflect.get(globalThis, GLOBAL_LOGGERS_KEY);\n if (!(refs instanceof Set)) {\n refs = new Set();\n Reflect.set(globalThis, GLOBAL_LOGGERS_KEY, refs);\n }\n return refs;\n}\nfunction isRegistration(value) {\n var _a;\n const registration = value;\n return typeof (registration === null || registration === void 0 ? void 0 : registration.count) === 'number' && typeof ((_a = registration.guarded) === null || _a === void 0 ? void 0 : _a.log) === 'function';\n}\nfunction guardReporter(reporter) {\n return {\n log: (logObj, ctx) => {\n try {\n reporter.log(logObj, ctx);\n }\n catch (error) {\n // The unwrapped console, so a consola that has wrapped `console` can't loop back here.\n const { __error, error: consoleError } = console;\n (__error || consoleError)('A global log reporter threw', error);\n }\n },\n };\n}\nfunction attachReporter(logger, reporter, { guarded }) {\n const { reporters } = logger.options;\n if (!reporters.includes(reporter) && !reporters.includes(guarded)) {\n logger.addReporter(guarded);\n }\n}\nfunction forEachLiveLogger(refs, callback) {\n for (const ref of refs) {\n const logger = ref.deref();\n if (logger) {\n callback(logger);\n }\n else {\n refs.delete(ref);\n }\n }\n}\nfunction pruneDeadLoggerRefs(refs) {\n if (refs.size < pruneAtSize) {\n return;\n }\n forEachLiveLogger(refs, () => { });\n pruneAtSize = Math.max(MIN_PRUNE_SIZE, refs.size * 2);\n}\n/**\n * Registers a logger instance with the global registry so it receives any currently\n * active and future global log reporters.\n *\n * @param logger - The logger instance to register.\n * @internal\n */\nexport function registerLogger(logger) {\n const refs = getGlobalLoggerRefs();\n refs.add(createLoggerRef(logger));\n pruneDeadLoggerRefs(refs);\n for (const [reporter, registration] of getGlobalReporters()) {\n if (isRegistration(registration)) {\n attachReporter(logger, reporter, registration);\n }\n }\n}\n/**\n * Registers a reporter that receives every log from every foundation logger, including loggers\n * created before this call. Returns an unsubscribe function.\n *\n * @remarks\n * An error thrown by the reporter is written to the console instead of propagating out of the\n * log call. Loggers that were created with the reporter keep it after unsubscribing.\n *\n * @example Register an error monitor.\n * ```ts\n * import { addGlobalLogReporter } from '@genesislcap/foundation-logger';\n *\n * const unsubscribe = addGlobalLogReporter({\n * log: ({ type, tag, args }) => {\n * if (type !== 'error') return;\n * const error = args.find((a) => a instanceof Error);\n * error ? Sentry.captureException(error, { tags: { logger: tag } })\n * : Sentry.captureMessage(`${tag}: ${String(args[0])}`, { level: 'error' });\n * },\n * });\n * ```\n *\n * @param reporter - The Consola reporter to register globally.\n * @returns An unsubscribe function that removes the reporter from all loggers.\n * @public\n */\nexport function addGlobalLogReporter(reporter) {\n if (!reporter || typeof reporter.log !== 'function') {\n return () => { };\n }\n const reporters = getGlobalReporters();\n const refs = getGlobalLoggerRefs();\n const existing = reporters.get(reporter);\n const registration = isRegistration(existing)\n ? existing\n : { count: 0, guarded: guardReporter(reporter) };\n registration.count += 1;\n if (registration.count === 1) {\n reporters.set(reporter, registration);\n forEachLiveLogger(refs, (logger) => attachReporter(logger, reporter, registration));\n }\n let active = true;\n return () => {\n if (!active) {\n return;\n }\n active = false;\n registration.count -= 1;\n if (registration.count > 0) {\n return;\n }\n reporters.delete(reporter);\n forEachLiveLogger(refs, (logger) => logger.removeReporter(registration.guarded));\n };\n}\n","/**\n * Shared across every copy of this module (including Module Federation remotes that\n * bundled their own `@genesislcap/foundation-logger`). A plain module-level `let` would\n * leave each copy with its own flag, so the host's `setLogTimestamps` would not reach them.\n */\nconst LOG_TIMESTAMPS_FLAG = Symbol.for('@genesislcap/foundation-logger:timestamps');\n/**\n * Enables or disables the in-message timestamp prefix for all `createLogger` instances.\n *\n * @remarks\n * This is a live flag: existing loggers pick it up on the next message. Per-logger\n * `timestamps: true | false` and `formatOptions.date: true` still override it.\n *\n * The value is stored on `globalThis` via `Symbol.for` so one call covers every runtime\n * copy of this package (for example host + federated remotes that did not share the module).\n *\n * @example Enable timestamps for every Foundation logger from app bootstrap.\n * ```ts\n * import { setLogTimestamps } from '@genesislcap/foundation-logger';\n * setLogTimestamps(true);\n * ```\n *\n * @param enabled - Whether to prefix console messages with a local timestamp.\n * @public\n */\nexport function setLogTimestamps(enabled) {\n Reflect.set(globalThis, LOG_TIMESTAMPS_FLAG, enabled);\n}\n/**\n * Returns whether the global timestamp prefix is currently enabled.\n *\n * @returns `true` when {@link setLogTimestamps} was last called with `true`.\n * @public\n */\nexport function areLogTimestampsEnabled() {\n return Reflect.get(globalThis, LOG_TIMESTAMPS_FLAG) === true;\n}\n","import { areLogTimestampsEnabled } from './log-timestamps';\nconst TIME_UNIT_DIGITS = 2;\nconst MILLISECOND_DIGITS = 3;\n/**\n * Formats a log timestamp as local time with milliseconds.\n *\n * @example\n * ```ts\n * formatLogTimestamp(new Date('2026-01-15T11:52:03.412')); // \"11:52:03.412\" in local time\n * ```\n *\n * @param date - The date to format, typically Consola's `logObj.date`.\n * @returns A `HH:mm:ss.SSS` timestamp string.\n * @public\n */\nexport function formatLogTimestamp(date) {\n const hours = String(date.getHours()).padStart(TIME_UNIT_DIGITS, '0');\n const minutes = String(date.getMinutes()).padStart(TIME_UNIT_DIGITS, '0');\n const seconds = String(date.getSeconds()).padStart(TIME_UNIT_DIGITS, '0');\n const milliseconds = String(date.getMilliseconds()).padStart(MILLISECOND_DIGITS, '0');\n return `${hours}:${minutes}:${seconds}.${milliseconds}`;\n}\nfunction getConsoleLogFn(level) {\n const consolaConsole = console;\n if (level < 1) {\n return consolaConsole.__error || consolaConsole.error;\n }\n if (level === 1) {\n return consolaConsole.__warn || consolaConsole.warn;\n }\n return consolaConsole.__log || consolaConsole.log;\n}\nfunction shouldIncludeTimestamp(ctx) {\n var _a, _b, _c;\n const timestamps = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.options) === null || _a === void 0 ? void 0 : _a.timestamps;\n if (typeof timestamps === 'boolean') {\n return timestamps;\n }\n if (((_c = (_b = ctx === null || ctx === void 0 ? void 0 : ctx.options) === null || _b === void 0 ? void 0 : _b.formatOptions) === null || _c === void 0 ? void 0 : _c.date) === true) {\n return true;\n }\n return areLogTimestampsEnabled();\n}\n/**\n * Consola reporter based on the built-in browser reporter, with a local timestamp prefix.\n *\n * @remarks\n * Prefixes each message with {@link formatLogTimestamp} using Consola's `logObj.date`.\n * In browsers the original badge styling is preserved; in non-browser environments a\n * plain `[tag:type]` label is used so `%c` CSS specifiers are not printed literally.\n *\n * Off by default. Enable for every logger with `setLogTimestamps(true)`, for one logger\n * with `timestamps: true` or `formatOptions.date: true`, or replace the reporter via\n * `createLogger(name, { reporters })`.\n *\n * @public\n */\nexport class TimestampBrowserReporter {\n constructor() {\n this.defaultColor = '#7f8c8d';\n this.levelColorMap = {\n 0: '#c0392b',\n 1: '#f39c12',\n 3: '#00BCD4',\n };\n this.typeColorMap = {\n success: '#2ecc71',\n };\n }\n /**\n * Writes a log object to the console, prefixed with `logObj.date` when enabled.\n *\n * @param logObj - The Consola log object. See Consola's `LogObject`.\n * @param ctx - Reporter context, including Consola options.\n */\n log(logObj, ctx) {\n const consoleLogFn = getConsoleLogFn(logObj.level);\n const type = logObj.type === 'log' ? '' : logObj.type;\n const tag = logObj.tag || '';\n const timestamp = shouldIncludeTimestamp(ctx) ? formatLogTimestamp(logObj.date) : '';\n const useBrowserStyles = typeof window !== 'undefined' && !!(tag || type);\n if (useBrowserStyles) {\n this.logWithBrowserStyles(consoleLogFn, logObj, tag, type, timestamp);\n return;\n }\n this.logPlain(consoleLogFn, logObj, tag, type, timestamp);\n }\n logWithBrowserStyles(consoleLogFn, logObj, tag, type, timestamp) {\n const color = this.typeColorMap[logObj.type] || this.levelColorMap[logObj.level] || this.defaultColor;\n const style = `\n background: ${color};\n border-radius: 0.5em;\n color: white;\n font-weight: bold;\n padding: 2px 0.5em;\n `;\n const badge = `%c${[tag, type].filter(Boolean).join(':')}`;\n const prefix = timestamp ? `${timestamp} ${badge}` : badge;\n if (typeof logObj.args[0] === 'string') {\n consoleLogFn(`${prefix}%c ${logObj.args[0]}`, style, '', ...logObj.args.slice(1));\n return;\n }\n consoleLogFn(prefix, style, ...logObj.args);\n }\n logPlain(consoleLogFn, logObj, tag, type, timestamp) {\n const label = [tag, type].filter(Boolean).join(':');\n const prefix = [timestamp, label ? `[${label}]` : ''].filter(Boolean).join(' ');\n if (typeof logObj.args[0] === 'string') {\n consoleLogFn(prefix ? `${prefix} ${logObj.args[0]}` : logObj.args[0], ...logObj.args.slice(1));\n return;\n }\n if (prefix) {\n consoleLogFn(prefix, ...logObj.args);\n return;\n }\n consoleLogFn(...logObj.args);\n }\n}\n","import { createConsola as createConsolaBrowser } from 'consola/browser';\nimport { LogLevels, createConsola as createConsolaCore, } from 'consola/core';\nimport { registerLogger } from './global-reporters';\nimport { TimestampBrowserReporter } from './timestamp-browser-reporter';\n/**\n * Used to set the logging level.\n *\n * @example Explicitly set the level of an imported package beyond the current runtime level.\n * ```ts\n * import { LogLevel } from '@genesislcap/foundation-logger';\n * import { logger as myPackageLogger } from 'my-package';\n * myPackageLogger.level = LogLevel.Error;\n * ```\n *\n * @public\n */\nexport { LogLevels } from 'consola/core';\n/**\n * The default logger options.\n *\n * @remarks\n * `formatOptions.date` is `false` so Consola's built-in `date: true` default does not turn\n * the prefix on. Enable timestamps with {@link setLogTimestamps} or per-logger options.\n *\n * These defaults are always merged into `createLogger` options. Callers that pass options\n * without a `level` therefore get `debug`, not Consola's bare `info` default.\n *\n * @public\n */\nexport const defaultLoggerOptions = {\n level: LogLevels.debug,\n formatOptions: {\n date: false,\n },\n};\nconst browserReporter = new TimestampBrowserReporter();\nfunction resolveLoggerOptions(options, isBrowser) {\n const resolved = Object.assign(Object.assign(Object.assign({}, defaultLoggerOptions), options), { formatOptions: Object.assign(Object.assign({}, defaultLoggerOptions.formatOptions), options.formatOptions) });\n /**\n * Consola ships no reporter outside the browser, so `reporters` is left unset there to keep\n * non-browser output silent. Setting it would start emitting logs from Node-side consumers\n * and test runs that have never produced any.\n */\n if (isBrowser && !resolved.reporters) {\n resolved.reporters = [browserReporter];\n }\n return resolved;\n}\nfunction attachDeprecated(logger) {\n logger.deprecated = (symbol, instruction = 'Consult docs for better alternative.', removalVersionTarget) => {\n logger.warn(`Deprecated symbol used '${symbol}'. ${instruction}`, `${removalVersionTarget ? `Will be removed in version ${removalVersionTarget}.` : ''}`);\n };\n}\nfunction configureLogger(logger) {\n attachDeprecated(logger);\n const createChild = logger.create.bind(logger);\n // consola's withTag, withScope and withDefaults all build their child through `this.create`.\n logger.create = (options) => configureLogger(createChild(options));\n registerLogger(logger);\n return logger;\n}\n/**\n * Creates a logger with the given name and options.\n *\n * @remarks\n * Timestamp prefixes are opt-in. Call {@link setLogTimestamps} once at app bootstrap to enable\n * them for every logger (including instances already created), or pass `timestamps: true` /\n * `formatOptions.date: true` on a single logger. All Consola options are forwarded, not only\n * `level`.\n *\n * A default reporter is only installed in the browser. Outside the browser, pass `reporters`\n * explicitly to produce output.\n *\n * @example Create a logger in my-package/utils.\n * ```ts\n * import { createLogger } from '@genesislcap/foundation-logger';\n * export const logger = createLogger('my-package');\n * ```\n *\n * @example Using the logger within my-package.\n * ```ts\n * import { logger } from '../utils';\n * logger.debug(`Data retrieved from ${resourceName}`);\n * logger.info(this.toggled ? 'On' : 'Off');\n * logger.warn('Not available in this browser.');\n * ```\n *\n * @example Explicitly set the level of an imported package.\n * ```ts\n * import { logger as commsLogger } from '@genesislcap/foundation-comms';\n * import { LogLevel } from '@genesislcap/foundation-logger';\n * commsLogger.level = LogLevel.Warn;\n * ```\n *\n * @param name - The name to give the logger.\n * @param options - The options to use when creating the logger.\n * @returns The resulting logger.\n * @public\n */\nexport function createLogger(name, options = {}) {\n const isBrowser = typeof window !== 'undefined';\n const createConsola = isBrowser ? createConsolaBrowser : createConsolaCore;\n const logger = createConsola(resolveLoggerOptions(options, isBrowser)).withTag(name);\n const typedLogger = logger;\n return configureLogger(typedLogger);\n}\n","import { createLogger } from '@genesislcap/foundation-logger';\n/**\n * Logger for the foundation-shell package\n * @public\n */\nexport const logger = createLogger('foundation-shell');\n","\n import API from \"!../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].use[1]!../../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[5].use[2]!./main.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].use[1]!../../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[5].use[2]!./main.css\";\n export default content && content.locals ? content.locals : undefined;\n","import { css } from '@genesislcap/web-core';\nimport './main.css';\n/**\n * @public\n */\nexport const MainStyles = css `\n :host {\n contain: content;\n }\n\n :host,\n #app-shell {\n display: block;\n width: 100%;\n height: 100%;\n }\n`;\n","import { __decorate } from \"tslib\";\nimport { customElement, FASTElement, observable } from '@genesislcap/web-core';\nimport { logger } from '../utils';\nimport { MainStyles as styles } from './main.styles';\nimport { DynamicTemplate as template, LoadingTemplate, MainTemplate } from './main.template';\nconst name = 'foundation-shell';\n/**\n * @public\n */\nlet MainApplication = class MainApplication extends FASTElement {\n constructor() {\n super(...arguments);\n this.ready = false;\n }\n connectedCallback() {\n super.connectedCallback();\n logger.debug(`${name} is now connected to the DOM`);\n this.ready = true;\n }\n selectTemplate() {\n return this.ready ? MainTemplate : LoadingTemplate;\n }\n};\n__decorate([\n observable\n], MainApplication.prototype, \"ready\", void 0);\nMainApplication = __decorate([\n customElement({\n name,\n template,\n styles,\n })\n], MainApplication);\nexport { MainApplication };\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\tif (cachedModule.error !== undefined) throw cachedModule.error;\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\tvar threw = true;\n\ttry {\n\t\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\t\tthrew = false;\n\t} finally {\n\t\tif(threw) delete __webpack_module_cache__[moduleId];\n\t}\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t792: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunk_genesislcap_foundation_shell\"] = self[\"webpackChunk_genesislcap_foundation_shell\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","__webpack_require__.nc = undefined;","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [544,418], () => (__webpack_require__(132)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","___CSS_LOADER_EXPORT___","_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default","_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default","push","module","id","version","sources","names","mappings","sourcesContent","sourceRoot","__WEBPACK_DEFAULT_EXPORT__","DynamicTemplate","template","q","x","selectTemplate","LoadingTemplate","MainTemplate","GLOBAL_REPORTERS_KEY","Symbol","for","GLOBAL_LOGGERS_KEY","pruneAtSize","getGlobalReporters","reporters","Reflect","get","globalThis","Map","set","getGlobalLoggerRefs","refs","Set","isRegistration","value","_a","registration","count","guarded","log","attachReporter","logger","reporter","options","includes","addReporter","forEachLiveLogger","callback","ref","deref","delete","registerLogger","add","WeakRef","createLoggerRef","size","Math","max","pruneDeadLoggerRefs","LOG_TIMESTAMPS_FLAG","shouldIncludeTimestamp","ctx","_b","_c","timestamps","formatOptions","date","defaultLoggerOptions","level","core","cm","debug","browserReporter","constructor","this","defaultColor","levelColorMap","typeColorMap","success","logObj","consoleLogFn","consolaConsole","console","__error","error","__warn","warn","__log","getConsoleLogFn","type","tag","timestamp","String","getHours","padStart","getMinutes","getSeconds","getMilliseconds","window","logPlain","logWithBrowserStyles","style","badge","filter","Boolean","join","prefix","args","slice","label","configureLogger","deprecated","symbol","instruction","removalVersionTarget","attachDeprecated","createChild","create","bind","name","isBrowser","browser","si","resolved","Object","assign","resolveLoggerOptions","withTag","createLogger","styleTagTransform","styleTagTransform_default","setAttributes","setAttributesWithoutAttributes_default","insert","insertBySelector_default","domAPI","styleDomAPI_default","insertStyleElement","insertStyleElement_default","injectStylesIntoStyleTag_default","main","A","locals","MainStyles","css","main_name","MainApplication","fast_element","L","super","arguments","ready","connectedCallback","tslib_es6","Cg","observable","sH","prototype","E","styles","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","threw","__webpack_modules__","m","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","length","fulfilled","j","keys","every","key","splice","r","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","g","Function","e","obj","prop","hasOwnProperty","call","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","chunkLoadingGlobal","self","forEach","nc","__webpack_exports__"],"sourceRoot":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
(()=>{"use strict";var e,n={860(e,n,t){t.d(n,{A:()=>l});var o=t(536),r=t.n(o),i=t(248),s=t.n(i)()(r());s.push([e.id,"/* index.ejs styling */\n\nhtml,\nbody {\n width: 100%;\n height: 100%;\n padding: 0;\n margin: 0;\n}\n\nbody {\n background-color: #636e8d;\n}\n\n:not(:defined) {\n visibility: hidden;\n}\n\n:defined {\n visibility: visible;\n}\n","",{version:3,sources:["webpack://./src/main/main.css"],names:[],mappings:"AAAA,sBAAsB;;AAEtB;;EAEE,WAAW;EACX,YAAY;EACZ,UAAU;EACV,SAAS;AACX;;AAEA;EACE,yBAAyB;AAC3B;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB",sourcesContent:["/* index.ejs styling */\n\nhtml,\nbody {\n width: 100%;\n height: 100%;\n padding: 0;\n margin: 0;\n}\n\nbody {\n background-color: #636e8d;\n}\n\n:not(:defined) {\n visibility: hidden;\n}\n\n:defined {\n visibility: visible;\n}\n"],sourceRoot:""}]);const l=s},132(e,n,t){var o=t(329);const r=o.q`
|
|
2
|
+
<div id="app-shell" class="dynamic-template">${e=>e.selectTemplate()}</div>
|
|
3
|
+
`,i=o.q`
|
|
4
|
+
...
|
|
5
|
+
`,s=o.q`
|
|
6
|
+
<h1>Genesis App Shell / Registry</h1>
|
|
7
|
+
<slot></slot>
|
|
8
|
+
`;var l=t(823),a=t(528),d=t(453),c=t(33),f=t(82);const u=Symbol.for("@genesislcap/foundation-logger:global-reporters:v2"),g=Symbol.for("@genesislcap/foundation-logger:global-loggers:v2");let p=1024;function h(){let e=Reflect.get(globalThis,u);return e instanceof Map||(e=new Map,Reflect.set(globalThis,u,e)),e}function b(){let e=Reflect.get(globalThis,g);return e instanceof Set||(e=new Set,Reflect.set(globalThis,g,e)),e}function v(e){var n;const t=e;return"number"==typeof(null==t?void 0:t.count)&&"function"==typeof(null===(n=t.guarded)||void 0===n?void 0:n.log)}function A(e,n,{guarded:t}){const{reporters:o}=e.options;o.includes(n)||o.includes(t)||e.addReporter(t)}function y(e,n){for(const t of e){const o=t.deref();o?n(o):e.delete(t)}}function m(e){const n=b();n.add(function(e){return"undefined"!=typeof WeakRef?new WeakRef(e):{deref:()=>e}}(e)),function(e){e.size<p||(y(e,()=>{}),p=Math.max(1024,2*e.size))}(n);for(const[n,t]of h())v(t)&&A(e,n,t)}const w=Symbol.for("@genesislcap/foundation-logger:timestamps");function C(e){var n,t,o;const r=null===(n=null==e?void 0:e.options)||void 0===n?void 0:n.timestamps;return"boolean"==typeof r?r:!0===(null===(o=null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.formatOptions)||void 0===o?void 0:o.date)||!0===Reflect.get(globalThis,w)}const O={level:f.cm.debug,formatOptions:{date:!1}},S=new class{constructor(){this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}log(e,n){const t=function(e){const n=console;return e<1?n.__error||n.error:1===e?n.__warn||n.warn:n.__log||n.log}(e.level),o="log"===e.type?"":e.type,r=e.tag||"",i=C(n)?(s=e.date,`${String(s.getHours()).padStart(2,"0")}:${String(s.getMinutes()).padStart(2,"0")}:${String(s.getSeconds()).padStart(2,"0")}.${String(s.getMilliseconds()).padStart(3,"0")}`):"";var s;"undefined"==typeof window||!r&&!o?this.logPlain(t,e,r,o,i):this.logWithBrowserStyles(t,e,r,o,i)}logWithBrowserStyles(e,n,t,o,r){const i=`\n background: ${this.typeColorMap[n.type]||this.levelColorMap[n.level]||this.defaultColor};\n border-radius: 0.5em;\n color: white;\n font-weight: bold;\n padding: 2px 0.5em;\n `,s=`%c${[t,o].filter(Boolean).join(":")}`,l=r?`${r} ${s}`:s;"string"!=typeof n.args[0]?e(l,i,...n.args):e(`${l}%c ${n.args[0]}`,i,"",...n.args.slice(1))}logPlain(e,n,t,o,r){const i=[t,o].filter(Boolean).join(":"),s=[r,i?`[${i}]`:""].filter(Boolean).join(" ");"string"!=typeof n.args[0]?s?e(s,...n.args):e(...n.args):e(s?`${s} ${n.args[0]}`:n.args[0],...n.args.slice(1))}};function E(e){!function(e){e.deprecated=(n,t="Consult docs for better alternative.",o)=>{e.warn(`Deprecated symbol used '${n}'. ${t}`,o?`Will be removed in version ${o}.`:"")}}(e);const n=e.create.bind(e);return e.create=e=>E(n(e)),m(e),e}const B=function(e,n={}){const t="undefined"!=typeof window,o=(t?c.si:f.si)(function(e,n){const t=Object.assign(Object.assign(Object.assign({},O),e),{formatOptions:Object.assign(Object.assign({},O.formatOptions),e.formatOptions)});return n&&!t.reporters&&(t.reporters=[S]),t}(n,t)).withTag(e);return E(o)}("foundation-shell");var $=t(782),j=t(478),k=t.n(j),_=t(135),T=t.n(_),M=t(301),R=t.n(M),x=t(222),W=t.n(x),P=t(626),q=t.n(P),D=t(279),z=t.n(D),H=t(860),U={};U.styleTagTransform=z(),U.setAttributes=W(),U.insert=R().bind(null,"head"),U.domAPI=T(),U.insertStyleElement=q();k()(H.A,U);H.A&&H.A.locals&&H.A.locals;const X=$.A`
|
|
9
|
+
:host {
|
|
10
|
+
contain: content;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:host,
|
|
14
|
+
#app-shell {
|
|
15
|
+
display: block;
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: 100%;
|
|
18
|
+
}
|
|
19
|
+
`,Y="foundation-shell";let F=class extends a.L{constructor(){super(...arguments),this.ready=!1}connectedCallback(){super.connectedCallback(),B.debug(`${Y} is now connected to the DOM`),this.ready=!0}selectTemplate(){return this.ready?s:i}};(0,l.Cg)([d.sH],F.prototype,"ready",void 0),F=(0,l.Cg)([(0,a.E)({name:Y,template:r,styles:X})],F)}},t={};function o(e){var r=t[e];if(void 0!==r){if(void 0!==r.error)throw r.error;return r.exports}var i=t[e]={id:e,exports:{}},s=!0;try{n[e](i,i.exports,o),s=!1}finally{s&&delete t[e]}return i.exports}o.m=n,e=[],o.O=(n,t,r,i)=>{if(!t){var s=1/0;for(c=0;c<e.length;c++){for(var[t,r,i]=e[c],l=!0,a=0;a<t.length;a++)(!1&i||s>=i)&&Object.keys(o.O).every(e=>o.O[e](t[a]))?t.splice(a--,1):(l=!1,i<s&&(s=i));if(l){e.splice(c--,1);var d=r();void 0!==d&&(n=d)}}return n}i=i||0;for(var c=e.length;c>0&&e[c-1][2]>i;c--)e[c]=e[c-1];e[c]=[t,r,i]},o.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return o.d(n,{a:n}),n},o.d=(e,n)=>{for(var t in n)o.o(n,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={792:0};o.O.j=n=>0===e[n];var n=(n,t)=>{var r,i,[s,l,a]=t,d=0;if(s.some(n=>0!==e[n])){for(r in l)o.o(l,r)&&(o.m[r]=l[r]);if(a)var c=a(o)}for(n&&n(t);d<s.length;d++)i=s[d],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return o.O(c)},t=self.webpackChunk_genesislcap_foundation_shell=self.webpackChunk_genesislcap_foundation_shell||[];t.forEach(n.bind(null,0)),t.push=n.bind(null,t.push.bind(t))})(),o.nc=void 0;var r=o.O(void 0,[544,418],()=>o(132));r=o.O(r)})();
|
|
20
|
+
//# sourceMappingURL=main.9c41a2a2cab633e442eeccf446f03a50.js.map
|
package/dist/sw.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(()=>{"use strict";var e={535(){try{self["workbox:cacheable-response:6.6.0"]&&_()}catch(e){}},136(){try{self["workbox:core:6.6.0"]&&_()}catch(e){}},626(){try{self["workbox:expiration:6.6.0"]&&_()}catch(e){}},447(){try{self["workbox:precaching:6.6.0"]&&_()}catch(e){}},227(){try{self["workbox:routing:6.6.0"]&&_()}catch(e){}},390(){try{self["workbox:strategies:6.6.0"]&&_()}catch(e){}}},t={};function s(n){var a=t[n];if(void 0!==a){if(void 0!==a.error)throw a.error;return a.exports}var r=t[n]={exports:{}},i=!0;try{e[n](r,r.exports,s),i=!1}finally{i&&delete t[n]}return r.exports}function n(e,t,s,n){return new(s||(s=Promise))(function(a,r){function i(e){try{c(n.next(e))}catch(e){r(e)}}function o(e){try{c(n.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(i,o)}c((n=n.apply(e,t||[])).next())})}Object.create;Object.create;s(136);const a=(e,...t)=>{let s=e;return t.length>0&&(s+=` :: ${JSON.stringify(t)}`),s};class r extends Error{constructor(e,t){super(a(e,t)),this.name=e,this.details=t}}s(535);class i{constructor(e={}){this._statuses=e.statuses,this._headers=e.headers}isResponseCacheable(e){let t=!0;return this._statuses&&(t=this._statuses.includes(e.status)),this._headers&&t&&(t=Object.keys(this._headers).some(t=>e.headers.get(t)===this._headers[t])),t}}class o{constructor(e){this.cacheWillUpdate=async({response:e})=>this._cacheableResponse.isResponseCacheable(e)?e:null,this._cacheableResponse=new i(e)}}const c=new Set;const h={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!=typeof registration?registration.scope:""},l=e=>[h.prefix,e,h.suffix].filter(e=>e&&e.length>0).join("-"),u=e=>e||l(h.precache),d=e=>e||l(h.runtime);function f(e,t){const s=new URL(e);for(const e of t)s.searchParams.delete(e);return s.href}let p;function g(e){e.then(()=>{})}class w{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}function m(e){return new Promise(t=>setTimeout(t,e))}function y(e,t){const s=t();return e.waitUntil(s),s}async function v(e,t){let s=null;if(e.url){s=new URL(e.url).origin}if(s!==self.location.origin)throw new r("cross-origin-copy-response",{origin:s});const n=e.clone(),a={headers:new Headers(n.headers),status:n.status,statusText:n.statusText},i=t?t(a):a,o=function(){if(void 0===p){const e=new Response("");if("body"in e)try{new Response(e.body),p=!0}catch(e){p=!1}p=!1}return p}()?n.body:await n.blob();return new Response(o,i)}let b,R;const x=new WeakMap,C=new WeakMap,E=new WeakMap,q=new WeakMap,L=new WeakMap;let k={get(e,t,s){if(e instanceof IDBTransaction){if("done"===t)return C.get(e);if("objectStoreNames"===t)return e.objectStoreNames||E.get(e);if("store"===t)return s.objectStoreNames[1]?void 0:s.objectStore(s.objectStoreNames[0])}return D(e[t])},set:(e,t,s)=>(e[t]=s,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function U(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(R||(R=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(N(this),t),D(x.get(this))}:function(...t){return D(e.apply(N(this),t))}:function(t,...s){const n=e.call(N(this),t,...s);return E.set(n,t.sort?t.sort():[t]),D(n)}}function T(e){return"function"==typeof e?U(e):(e instanceof IDBTransaction&&function(e){if(C.has(e))return;const t=new Promise((t,s)=>{const n=()=>{e.removeEventListener("complete",a),e.removeEventListener("error",r),e.removeEventListener("abort",r)},a=()=>{t(),n()},r=()=>{s(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",a),e.addEventListener("error",r),e.addEventListener("abort",r)});C.set(e,t)}(e),t=e,(b||(b=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some(e=>t instanceof e)?new Proxy(e,k):e);var t}function D(e){if(e instanceof IDBRequest)return function(e){const t=new Promise((t,s)=>{const n=()=>{e.removeEventListener("success",a),e.removeEventListener("error",r)},a=()=>{t(D(e.result)),n()},r=()=>{s(e.error),n()};e.addEventListener("success",a),e.addEventListener("error",r)});return t.then(t=>{t instanceof IDBCursor&&x.set(t,e)}).catch(()=>{}),L.set(t,e),t}(e);if(q.has(e))return q.get(e);const t=T(e);return t!==e&&(q.set(e,t),L.set(t,e)),t}const N=e=>L.get(e);const P=["get","getKey","getAll","getAllKeys","count"],M=["put","add","delete","clear"],I=new Map;function S(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(I.get(t))return I.get(t);const s=t.replace(/FromIndex$/,""),n=t!==s,a=M.includes(s);if(!(s in(n?IDBIndex:IDBObjectStore).prototype)||!a&&!P.includes(s))return;const r=async function(e,...t){const r=this.transaction(e,a?"readwrite":"readonly");let i=r.store;return n&&(i=i.index(t.shift())),(await Promise.all([i[s](...t),a&&r.done]))[0]};return I.set(t,r),r}k=(e=>({...e,get:(t,s,n)=>S(t,s)||e.get(t,s,n),has:(t,s)=>!!S(t,s)||e.has(t,s)}))(k);s(626);const K="cache-entries",O=e=>{const t=new URL(e,location.href);return t.hash="",t.href};class W{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(K,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&function(e,{blocked:t}={}){const s=indexedDB.deleteDatabase(e);t&&s.addEventListener("blocked",e=>t(e.oldVersion,e)),D(s).then(()=>{})}(this._cacheName)}async setTimestamp(e,t){const s={url:e=O(e),timestamp:t,cacheName:this._cacheName,id:this._getId(e)},n=(await this.getDb()).transaction(K,"readwrite",{durability:"relaxed"});await n.store.put(s),await n.done}async getTimestamp(e){const t=await this.getDb(),s=await t.get(K,this._getId(e));return null==s?void 0:s.timestamp}async expireEntries(e,t){const s=await this.getDb();let n=await s.transaction(K).store.index("timestamp").openCursor(null,"prev");const a=[];let r=0;for(;n;){const s=n.value;s.cacheName===this._cacheName&&(e&&s.timestamp<e||t&&r>=t?a.push(n.value):r++),n=await n.continue()}const i=[];for(const e of a)await s.delete(K,e.id),i.push(e.url);return i}_getId(e){return this._cacheName+"|"+O(e)}async getDb(){return this._db||(this._db=await function(e,t,{blocked:s,upgrade:n,blocking:a,terminated:r}={}){const i=indexedDB.open(e,t),o=D(i);return n&&i.addEventListener("upgradeneeded",e=>{n(D(i.result),e.oldVersion,e.newVersion,D(i.transaction),e)}),s&&i.addEventListener("blocked",e=>s(e.oldVersion,e.newVersion,e)),o.then(e=>{r&&e.addEventListener("close",()=>r()),a&&e.addEventListener("versionchange",e=>a(e.oldVersion,e.newVersion,e))}).catch(()=>{}),o}("workbox-expiration",1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class A{constructor(e,t={}){this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new W(e)}async expireEntries(){if(this._isRunning)return void(this._rerunRequested=!0);this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-1e3*this._maxAgeSeconds:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),s=await self.caches.open(this._cacheName);for(const e of t)await s.delete(e,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,g(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){const t=await this._timestampModel.getTimestamp(e),s=Date.now()-1e3*this._maxAgeSeconds;return void 0===t||t<s}return!1}async delete(){this._rerunRequested=!1,await this._timestampModel.expireEntries(1/0)}}s(447);function j(e){if(!e)throw new r("add-to-cache-list-unexpected-type",{entry:e});if("string"==typeof e){const t=new URL(e,location.href);return{cacheKey:t.href,url:t.href}}const{revision:t,url:s}=e;if(!s)throw new r("add-to-cache-list-unexpected-type",{entry:e});if(!t){const e=new URL(s,location.href);return{cacheKey:e.href,url:e.href}}const n=new URL(s,location.href),a=new URL(s,location.href);return n.searchParams.set("__WB_REVISION__",t),{cacheKey:n.href,url:a.href}}class B{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)},this.cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:s})=>{if("install"===e.type&&t&&t.originalRequest&&t.originalRequest instanceof Request){const e=t.originalRequest.url;s?this.notUpdatedURLs.push(e):this.updatedURLs.push(e)}return s}}}class H{constructor({precacheController:e}){this.cacheKeyWillBeUsed=async({request:e,params:t})=>{const s=(null==t?void 0:t.cacheKey)||this._precacheController.getCacheKeyForURL(e.url);return s?new Request(s,{headers:e.headers}):e},this._precacheController=e}}s(390);function F(e){return"string"==typeof e?new Request(e):e}class V{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new w,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const e of this._plugins)this._pluginStateMap.set(e,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let s=F(e);if("navigate"===s.mode&&t instanceof FetchEvent&&t.preloadResponse){const e=await t.preloadResponse;if(e)return e}const n=this.hasCallback("fetchDidFail")?s.clone():null;try{for(const e of this.iterateCallbacks("requestWillFetch"))s=await e({request:s.clone(),event:t})}catch(e){if(e instanceof Error)throw new r("plugin-error-request-will-fetch",{thrownErrorMessage:e.message})}const a=s.clone();try{let e;e=await fetch(s,"navigate"===s.mode?void 0:this._strategy.fetchOptions);for(const s of this.iterateCallbacks("fetchDidSucceed"))e=await s({event:t,request:a,response:e});return e}catch(e){throw n&&await this.runCallbacks("fetchDidFail",{error:e,event:t,originalRequest:n.clone(),request:a.clone()}),e}}async fetchAndCachePut(e){const t=await this.fetch(e),s=t.clone();return this.waitUntil(this.cachePut(e,s)),t}async cacheMatch(e){const t=F(e);let s;const{cacheName:n,matchOptions:a}=this._strategy,r=await this.getCacheKey(t,"read"),i=Object.assign(Object.assign({},a),{cacheName:n});s=await caches.match(r,i);for(const e of this.iterateCallbacks("cachedResponseWillBeUsed"))s=await e({cacheName:n,matchOptions:a,cachedResponse:s,request:r,event:this.event})||void 0;return s}async cachePut(e,t){const s=F(e);await m(0);const n=await this.getCacheKey(s,"write");if(!t)throw new r("cache-put-with-no-response",{url:(a=n.url,new URL(String(a),location.href).href.replace(new RegExp(`^${location.origin}`),""))});var a;const i=await this._ensureResponseSafeToCache(t);if(!i)return!1;const{cacheName:o,matchOptions:h}=this._strategy,l=await self.caches.open(o),u=this.hasCallback("cacheDidUpdate"),d=u?await async function(e,t,s,n){const a=f(t.url,s);if(t.url===a)return e.match(t,n);const r=Object.assign(Object.assign({},n),{ignoreSearch:!0}),i=await e.keys(t,r);for(const t of i)if(a===f(t.url,s))return e.match(t,n)}(l,n.clone(),["__WB_REVISION__"],h):null;try{await l.put(n,u?i.clone():i)}catch(e){if(e instanceof Error)throw"QuotaExceededError"===e.name&&await async function(){for(const e of c)await e()}(),e}for(const e of this.iterateCallbacks("cacheDidUpdate"))await e({cacheName:o,oldResponse:d,newResponse:i.clone(),request:n,event:this.event});return!0}async getCacheKey(e,t){const s=`${e.url} | ${t}`;if(!this._cacheKeys[s]){let n=e;for(const e of this.iterateCallbacks("cacheKeyWillBeUsed"))n=F(await e({mode:t,request:n,event:this.event,params:this.params}));this._cacheKeys[s]=n}return this._cacheKeys[s]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const s of this.iterateCallbacks(e))await s(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if("function"==typeof t[e]){const s=this._pluginStateMap.get(t),n=n=>{const a=Object.assign(Object.assign({},n),{state:s});return t[e](a)};yield n}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,s=!1;for(const e of this.iterateCallbacks("cacheWillUpdate"))if(t=await e({request:this.request,response:t,event:this.event})||void 0,s=!0,!t)break;return s||t&&200!==t.status&&(t=void 0),t}}class ${constructor(e={}){this.cacheName=d(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,s="string"==typeof e.request?new Request(e.request):e.request,n="params"in e?e.params:void 0,a=new V(this,{event:t,request:s,params:n}),r=this._getResponse(a,s,t);return[r,this._awaitComplete(r,a,s,t)]}async _getResponse(e,t,s){let n;await e.runCallbacks("handlerWillStart",{event:s,request:t});try{if(n=await this._handle(t,e),!n||"error"===n.type)throw new r("no-response",{url:t.url})}catch(a){if(a instanceof Error)for(const r of e.iterateCallbacks("handlerDidError"))if(n=await r({error:a,event:s,request:t}),n)break;if(!n)throw a}for(const a of e.iterateCallbacks("handlerWillRespond"))n=await a({event:s,request:t,response:n});return n}async _awaitComplete(e,t,s,n){let a,r;try{a=await e}catch(r){}try{await t.runCallbacks("handlerDidRespond",{event:n,request:s,response:a}),await t.doneWaiting()}catch(e){e instanceof Error&&(r=e)}if(await t.runCallbacks("handlerDidComplete",{event:n,request:s,response:a,error:r}),t.destroy(),r)throw r}}class Q extends ${constructor(e={}){e.cacheName=u(e.cacheName),super(e),this._fallbackToNetwork=!1!==e.fallbackToNetwork,this.plugins.push(Q.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){const s=await t.cacheMatch(e);return s||(t.event&&"install"===t.event.type?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,t){let s;const n=t.params||{};if(!this._fallbackToNetwork)throw new r("missing-precache-entry",{cacheName:this.cacheName,url:e.url});{0;const a=n.integrity,r=e.integrity,i=!r||r===a;if(s=await t.fetch(new Request(e,{integrity:"no-cors"!==e.mode?r||a:void 0})),a&&i&&"no-cors"!==e.mode){this._useDefaultCacheabilityPluginIfNeeded();await t.cachePut(e,s.clone());0}}return s}async _handleInstall(e,t){this._useDefaultCacheabilityPluginIfNeeded();const s=await t.fetch(e);if(!await t.cachePut(e,s.clone()))throw new r("bad-precaching-response",{url:e.url,status:s.status});return s}_useDefaultCacheabilityPluginIfNeeded(){let e=null,t=0;for(const[s,n]of this.plugins.entries())n!==Q.copyRedirectedCacheableResponsesPlugin&&(n===Q.defaultPrecacheCacheabilityPlugin&&(e=s),n.cacheWillUpdate&&t++);0===t?this.plugins.push(Q.defaultPrecacheCacheabilityPlugin):t>1&&null!==e&&this.plugins.splice(e,1)}}Q.defaultPrecacheCacheabilityPlugin={cacheWillUpdate:async({response:e})=>!e||e.status>=400?null:e},Q.copyRedirectedCacheableResponsesPlugin={cacheWillUpdate:async({response:e})=>e.redirected?await v(e):e};class Y{constructor({cacheName:e,plugins:t=[],fallbackToNetwork:s=!0}={}){this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new Q({cacheName:u(e),plugins:[...t,new H({precacheController:this})],fallbackToNetwork:s}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this._strategy}precache(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}addToCacheList(e){const t=[];for(const s of e){"string"==typeof s?t.push(s):s&&void 0===s.revision&&t.push(s.url);const{cacheKey:e,url:n}=j(s),a="string"!=typeof s&&s.revision?"reload":"default";if(this._urlsToCacheKeys.has(n)&&this._urlsToCacheKeys.get(n)!==e)throw new r("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(n),secondEntry:e});if("string"!=typeof s&&s.integrity){if(this._cacheKeysToIntegrities.has(e)&&this._cacheKeysToIntegrities.get(e)!==s.integrity)throw new r("add-to-cache-list-conflicting-integrities",{url:n});this._cacheKeysToIntegrities.set(e,s.integrity)}if(this._urlsToCacheKeys.set(n,e),this._urlsToCacheModes.set(n,a),t.length>0){const e=`Workbox is precaching URLs without revision info: ${t.join(", ")}\nThis is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(e)}}}install(e){return y(e,async()=>{const t=new B;this.strategy.plugins.push(t);for(const[t,s]of this._urlsToCacheKeys){const n=this._cacheKeysToIntegrities.get(s),a=this._urlsToCacheModes.get(t),r=new Request(t,{integrity:n,cache:a,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:s},request:r,event:e}))}const{updatedURLs:s,notUpdatedURLs:n}=t;return{updatedURLs:s,notUpdatedURLs:n}})}activate(e){return y(e,async()=>{const e=await self.caches.open(this.strategy.cacheName),t=await e.keys(),s=new Set(this._urlsToCacheKeys.values()),n=[];for(const a of t)s.has(a.url)||(await e.delete(a),n.push(a.url));return{deletedURLs:n}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,s=this.getCacheKeyForURL(t);if(s){return(await self.caches.open(this.strategy.cacheName)).match(s)}}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new r("non-precached-url",{url:e});return s=>(s.request=new Request(e),s.params=Object.assign({cacheKey:t},s.params),this.strategy.handle(s))}}let G;const J=()=>(G||(G=new Y),G);s(227);const Z=e=>e&&"object"==typeof e?e:{handle:e};class z{constructor(e,t,s="GET"){this.handler=Z(t),this.match=e,this.method=s}setCatchHandler(e){this.catchHandler=Z(e)}}class X extends z{constructor(e,t,s){super(({url:t})=>{const s=e.exec(t.href);if(s&&(t.origin===location.origin||0===s.index))return s.slice(1)},t,s)}}class ee{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,s=this.handleRequest({request:t,event:e});s&&e.respondWith(s)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&"CACHE_URLS"===e.data.type){const{payload:t}=e.data;0;const s=Promise.all(t.urlsToCache.map(t=>{"string"==typeof t&&(t=[t]);const s=new Request(...t);return this.handleRequest({request:s,event:e})}));e.waitUntil(s),e.ports&&e.ports[0]&&s.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const s=new URL(e.url,location.href);if(!s.protocol.startsWith("http"))return void 0;const n=s.origin===location.origin,{params:a,route:r}=this.findMatchingRoute({event:t,request:e,sameOrigin:n,url:s});let i=r&&r.handler;const o=e.method;if(!i&&this._defaultHandlerMap.has(o)&&(i=this._defaultHandlerMap.get(o)),!i)return void 0;let c;try{c=i.handle({url:s,request:e,event:t,params:a})}catch(e){c=Promise.reject(e)}const h=r&&r.catchHandler;return c instanceof Promise&&(this._catchHandler||h)&&(c=c.catch(async n=>{if(h){0;try{return await h.handle({url:s,request:e,event:t,params:a})}catch(e){e instanceof Error&&(n=e)}}if(this._catchHandler)return this._catchHandler.handle({url:s,request:e,event:t});throw n})),c}findMatchingRoute({url:e,sameOrigin:t,request:s,event:n}){const a=this._routes.get(s.method)||[];for(const r of a){let a;const i=r.match({url:e,sameOrigin:t,request:s,event:n});if(i)return a=i,(Array.isArray(a)&&0===a.length||i.constructor===Object&&0===Object.keys(i).length||"boolean"==typeof i)&&(a=void 0),{route:r,params:a}}return{}}setDefaultHandler(e,t="GET"){this._defaultHandlerMap.set(t,Z(e))}setCatchHandler(e){this._catchHandler=Z(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new r("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(!(t>-1))throw new r("unregister-route-route-not-registered");this._routes.get(e.method).splice(t,1)}}let te;const se=()=>(te||(te=new ee,te.addFetchListener(),te.addCacheListener()),te);function ne(e,t,s){let n;if("string"==typeof e){const a=new URL(e,location.href);0;n=new z(({url:e})=>e.href===a.href,t,s)}else if(e instanceof RegExp)n=new X(e,t,s);else if("function"==typeof e)n=new z(e,t,s);else{if(!(e instanceof z))throw new r("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});n=e}return se().registerRoute(n),n}class ae extends z{constructor(e,t){super(({request:s})=>{const n=e.getURLsToCacheKeys();for(const a of function*(e,{ignoreURLParametersMatching:t=[/^utm_/,/^fbclid$/],directoryIndex:s="index.html",cleanURLs:n=!0,urlManipulation:a}={}){const r=new URL(e,location.href);r.hash="",yield r.href;const i=function(e,t=[]){for(const s of[...e.searchParams.keys()])t.some(e=>e.test(s))&&e.searchParams.delete(s);return e}(r,t);if(yield i.href,s&&i.pathname.endsWith("/")){const e=new URL(i.href);e.pathname+=s,yield e.href}if(n){const e=new URL(i.href);e.pathname+=".html",yield e.href}if(a){const e=a({url:r});for(const t of e)yield t.href}}(s.url,t)){const t=n.get(a);if(t){return{cacheKey:t,integrity:e.getIntegrityForCacheKey(t)}}}},e.strategy)}}const re={cacheWillUpdate:async({response:e})=>200===e.status||0===e.status?e:null};var ie,oe;console.log("Hello from sw.js v0.0.1"),self.addEventListener("activate",()=>self.clients.claim()),function(e){J().precache(e)}([{'revision':'5c035540edea453294160c87b69d6efc','url':'/assets/icon.svg'},{'revision':'f6c355a52feba073e894db3d5b561ddc','url':'/dts/app/app.d.ts'},{'revision':'078b6a5c77374f3e6010259f49de61c3','url':'/dts/app/behaviors.d.ts'},{'revision':'75ba0437a002fa52f35a11c6e031fb83','url':'/dts/app/config.d.ts'},{'revision':'15fd8d96dc0bb0147a927cd655991d61','url':'/dts/app/index.d.ts'},{'revision':'75b251d8772324af462b31c734091efe','url':'/dts/app/types.d.ts'},{'revision':'465b8a967c17935b86d36a5a12fe7b71','url':'/dts/app/utils.d.ts'},{'revision':'d8c2f99b493635c8c25ff0a01b297da5','url':'/dts/index.d.ts'},{'revision':'2057a4ce7f492309ceb05c78e1abf2f8','url':'/dts/index.docs.d.ts'},{'revision':'5d05b2cca398071e8b7bd80f8a37ff80','url':'/dts/main/index.d.ts'},{'revision':'127ad4e70d39a7beb238977a6ad7790c','url':'/dts/main/main.d.ts'},{'revision':'5ce23c1e29e802698be958444fcac33a','url':'/dts/main/main.styles.d.ts'},{'revision':'5a9c7f1e56b35773b19ea8fc6fd779d1','url':'/dts/main/main.template.d.ts'},{'revision':'a4a585ff72bb0a204cfe49b476bd9b80','url':'/dts/pbc/index.d.ts'},{'revision':'36878d18600216555e06ab792adc10eb','url':'/dts/pbc/pbc.d.ts'},{'revision':'ddd7a8ed096a3139c726dc3a1c606f78','url':'/dts/pbc/vite/exports.d.ts'},{'revision':'d6e2176ecbaafe1bc42b9f15136946d0','url':'/dts/pbc/vite/index.d.ts'},{'revision':'e372dabcf39748888ec80c9849ba7265','url':'/dts/pbc/vite/utils.d.ts'},{'revision':'ddd7a8ed096a3139c726dc3a1c606f78','url':'/dts/pbc/webpack/exports.d.ts'},{'revision':'d6e2176ecbaafe1bc42b9f15136946d0','url':'/dts/pbc/webpack/index.d.ts'},{'revision':'7708c6a06e46698dfdfaef9ecdccb9a0','url':'/dts/pbc/webpack/utils.d.ts'},{'revision':'1d6bffdf6619ff38e64181ac26bf4297','url':'/dts/serviceWorker/registration.d.ts'},{'revision':'0ab8d9f2503966e9295ae54cc6f64a4a','url':'/dts/serviceWorker/serviceWorker.d.ts'},{'revision':'65230a59ca53b222394cb29719af898c','url':'/dts/utils/index.d.ts'},{'revision':'dc36fe29c255f4306be90d0f53681e24','url':'/dts/utils/logger.d.ts'},{'revision':'d4f850463f4df51860be6f46b599e7ce','url':'/favicon.ico'},{'revision':'569a7640ce6da5a7fe40b83ef148d021','url':'/index.html'},{'revision':null,'url':'/main.4d76df52da6da702711e.js'},{'revision':null,'url':'/npm.microsoft.4c8d41dd0aa1785e09d5.js'},{'revision':null,'url':'/swRegistration.1971ab73664d652c1d59.js'}]||[]),function(e){const t=J();ne(new ae(t,e))}(ie),ne(({request:e})=>"navigate"===e.mode,new class extends ${constructor(e={}){super(e),this.plugins.some(e=>"cacheWillUpdate"in e)||this.plugins.unshift(re),this._networkTimeoutSeconds=e.networkTimeoutSeconds||0}async _handle(e,t){const s=[];const n=[];let a;if(this._networkTimeoutSeconds){const{id:r,promise:i}=this._getTimeoutPromise({request:e,logs:s,handler:t});a=r,n.push(i)}const i=this._getNetworkPromise({timeoutId:a,request:e,logs:s,handler:t});n.push(i);const o=await t.waitUntil((async()=>await t.waitUntil(Promise.race(n))||await i)());if(!o)throw new r("no-response",{url:e.url});return o}_getTimeoutPromise({request:e,logs:t,handler:s}){let n;return{promise:new Promise(t=>{n=setTimeout(async()=>{t(await s.cacheMatch(e))},1e3*this._networkTimeoutSeconds)}),id:n}}async _getNetworkPromise({timeoutId:e,request:t,logs:s,handler:n}){let a,r;try{r=await n.fetchAndCachePut(t)}catch(e){e instanceof Error&&(a=e)}return e&&clearTimeout(e),!a&&r||(r=await n.cacheMatch(t)),r}}({cacheName:"pages",plugins:[new o({statuses:[200]})]})),ne(({request:e})=>"style"===e.destination||"script"===e.destination||"worker"===e.destination,new class extends ${constructor(e={}){super(e),this.plugins.some(e=>"cacheWillUpdate"in e)||this.plugins.unshift(re)}async _handle(e,t){const s=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(s);let n,a=await t.cacheMatch(e);if(a)0;else{0;try{a=await s}catch(e){e instanceof Error&&(n=e)}}if(!a)throw new r("no-response",{url:e.url,error:n});return a}}({cacheName:"assets",plugins:[new o({statuses:[200]})]})),ne(({request:e})=>"image"===e.destination,new class extends ${async _handle(e,t){let s,n=await t.cacheMatch(e);if(n)0;else{0;try{n=await t.fetchAndCachePut(e)}catch(e){e instanceof Error&&(s=e)}0}if(!n)throw new r("no-response",{url:e.url,error:s});return n}}({cacheName:"images",plugins:[new o({statuses:[200]}),new class{constructor(e={}){this.cachedResponseWillBeUsed=async({event:e,request:t,cacheName:s,cachedResponse:n})=>{if(!n)return null;const a=this._isResponseDateFresh(n),r=this._getCacheExpiration(s);g(r.expireEntries());const i=r.updateTimestamp(t.url);if(e)try{e.waitUntil(i)}catch(e){0}return a?n:null},this.cacheDidUpdate=async({cacheName:e,request:t})=>{const s=this._getCacheExpiration(e);await s.updateTimestamp(t.url),await s.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&function(e){c.add(e)}(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===d())throw new r("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new A(e,this._config),this._cacheExpirations.set(e,t)),t}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(null===t)return!0;return t>=Date.now()-1e3*this._maxAgeSeconds}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),s=new Date(t).getTime();return isNaN(s)?null:s}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}({maxEntries:50,maxAgeSeconds:2592e3})]})),function(e){e.skipWaiting="skipWaiting"}(oe||(oe={})),self.addEventListener("message",e=>{if(e.data&&e.data.type===oe.skipWaiting)self.skipWaiting()});const ce={applicationServerKey:(e=>{const t=(e+"=".repeat((4-e.length%4)%4)).replace(/-/g,"+").replace(/_/g,"/"),s=self.atob(t),n=new Uint8Array(s.length);for(let e=0;e<s.length;e+=1)n[e]=s.charCodeAt(e);return n})("BHjc7KuOaU4j6MNOs_Mm90By-mPPUqn8Y94I0yv-aYP03ip2nfq8ti_n1mH01QxW9mWtjY8d2-VdcblQYl1Zq-M"),userVisibleOnly:!0};self.addEventListener("activate",()=>n(void 0,void 0,void 0,function*(){try{const e=yield self.registration.pushManager.subscribe(ce),t=yield(e=>n(void 0,void 0,void 0,function*(){return(yield fetch("http://localhost:6050/push/save",{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}))(e);console.log(t)}catch(e){console.error("SW activate error",e)}})),self.addEventListener("push",e=>{console.log("SW received a push message",e);const{data:t}=e;if(!t)return void console.error("no data in message");const s=t.text()||"Push Message Title";e.waitUntil(self.registration.showNotification(s,{tag:"genesis-global-notification-tag",body:t.text()}))}),self.addEventListener("notificationclose",({notification:e})=>{const t=e.data;console.log("SW notification close",t)}),self.addEventListener("notificationclick",({action:e,notification:t})=>{const s=t.data;console.log("SW notification click",s,e),"close"!==e||t.close()})})();
|
|
1
|
+
(()=>{"use strict";var e={535(){try{self["workbox:cacheable-response:6.6.0"]&&_()}catch(e){}},136(){try{self["workbox:core:6.6.0"]&&_()}catch(e){}},626(){try{self["workbox:expiration:6.6.0"]&&_()}catch(e){}},447(){try{self["workbox:precaching:6.6.0"]&&_()}catch(e){}},227(){try{self["workbox:routing:6.6.0"]&&_()}catch(e){}},390(){try{self["workbox:strategies:6.6.0"]&&_()}catch(e){}}},t={};function s(n){var a=t[n];if(void 0!==a){if(void 0!==a.error)throw a.error;return a.exports}var r=t[n]={exports:{}},i=!0;try{e[n](r,r.exports,s),i=!1}finally{i&&delete t[n]}return r.exports}function n(e,t,s,n){return new(s||(s=Promise))(function(a,r){function i(e){try{c(n.next(e))}catch(e){r(e)}}function o(e){try{c(n.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(i,o)}c((n=n.apply(e,t||[])).next())})}Object.create;Object.create;s(136);const a=(e,...t)=>{let s=e;return t.length>0&&(s+=` :: ${JSON.stringify(t)}`),s};class r extends Error{constructor(e,t){super(a(e,t)),this.name=e,this.details=t}}s(535);class i{constructor(e={}){this._statuses=e.statuses,this._headers=e.headers}isResponseCacheable(e){let t=!0;return this._statuses&&(t=this._statuses.includes(e.status)),this._headers&&t&&(t=Object.keys(this._headers).some(t=>e.headers.get(t)===this._headers[t])),t}}class o{constructor(e){this.cacheWillUpdate=async({response:e})=>this._cacheableResponse.isResponseCacheable(e)?e:null,this._cacheableResponse=new i(e)}}const c=new Set;const h={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!=typeof registration?registration.scope:""},l=e=>[h.prefix,e,h.suffix].filter(e=>e&&e.length>0).join("-"),u=e=>e||l(h.precache),d=e=>e||l(h.runtime);function f(e,t){const s=new URL(e);for(const e of t)s.searchParams.delete(e);return s.href}let p;function g(e){e.then(()=>{})}class w{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}function m(e){return new Promise(t=>setTimeout(t,e))}function y(e,t){const s=t();return e.waitUntil(s),s}async function v(e,t){let s=null;if(e.url){s=new URL(e.url).origin}if(s!==self.location.origin)throw new r("cross-origin-copy-response",{origin:s});const n=e.clone(),a={headers:new Headers(n.headers),status:n.status,statusText:n.statusText},i=t?t(a):a,o=function(){if(void 0===p){const e=new Response("");if("body"in e)try{new Response(e.body),p=!0}catch(e){p=!1}p=!1}return p}()?n.body:await n.blob();return new Response(o,i)}let b,R;const x=new WeakMap,C=new WeakMap,E=new WeakMap,q=new WeakMap,L=new WeakMap;let k={get(e,t,s){if(e instanceof IDBTransaction){if("done"===t)return C.get(e);if("objectStoreNames"===t)return e.objectStoreNames||E.get(e);if("store"===t)return s.objectStoreNames[1]?void 0:s.objectStore(s.objectStoreNames[0])}return D(e[t])},set:(e,t,s)=>(e[t]=s,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function U(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(R||(R=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(N(this),t),D(x.get(this))}:function(...t){return D(e.apply(N(this),t))}:function(t,...s){const n=e.call(N(this),t,...s);return E.set(n,t.sort?t.sort():[t]),D(n)}}function T(e){return"function"==typeof e?U(e):(e instanceof IDBTransaction&&function(e){if(C.has(e))return;const t=new Promise((t,s)=>{const n=()=>{e.removeEventListener("complete",a),e.removeEventListener("error",r),e.removeEventListener("abort",r)},a=()=>{t(),n()},r=()=>{s(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",a),e.addEventListener("error",r),e.addEventListener("abort",r)});C.set(e,t)}(e),t=e,(b||(b=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some(e=>t instanceof e)?new Proxy(e,k):e);var t}function D(e){if(e instanceof IDBRequest)return function(e){const t=new Promise((t,s)=>{const n=()=>{e.removeEventListener("success",a),e.removeEventListener("error",r)},a=()=>{t(D(e.result)),n()},r=()=>{s(e.error),n()};e.addEventListener("success",a),e.addEventListener("error",r)});return t.then(t=>{t instanceof IDBCursor&&x.set(t,e)}).catch(()=>{}),L.set(t,e),t}(e);if(q.has(e))return q.get(e);const t=T(e);return t!==e&&(q.set(e,t),L.set(t,e)),t}const N=e=>L.get(e);const P=["get","getKey","getAll","getAllKeys","count"],M=["put","add","delete","clear"],I=new Map;function S(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(I.get(t))return I.get(t);const s=t.replace(/FromIndex$/,""),n=t!==s,a=M.includes(s);if(!(s in(n?IDBIndex:IDBObjectStore).prototype)||!a&&!P.includes(s))return;const r=async function(e,...t){const r=this.transaction(e,a?"readwrite":"readonly");let i=r.store;return n&&(i=i.index(t.shift())),(await Promise.all([i[s](...t),a&&r.done]))[0]};return I.set(t,r),r}k=(e=>({...e,get:(t,s,n)=>S(t,s)||e.get(t,s,n),has:(t,s)=>!!S(t,s)||e.has(t,s)}))(k);s(626);const K="cache-entries",O=e=>{const t=new URL(e,location.href);return t.hash="",t.href};class W{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(K,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&function(e,{blocked:t}={}){const s=indexedDB.deleteDatabase(e);t&&s.addEventListener("blocked",e=>t(e.oldVersion,e)),D(s).then(()=>{})}(this._cacheName)}async setTimestamp(e,t){const s={url:e=O(e),timestamp:t,cacheName:this._cacheName,id:this._getId(e)},n=(await this.getDb()).transaction(K,"readwrite",{durability:"relaxed"});await n.store.put(s),await n.done}async getTimestamp(e){const t=await this.getDb(),s=await t.get(K,this._getId(e));return null==s?void 0:s.timestamp}async expireEntries(e,t){const s=await this.getDb();let n=await s.transaction(K).store.index("timestamp").openCursor(null,"prev");const a=[];let r=0;for(;n;){const s=n.value;s.cacheName===this._cacheName&&(e&&s.timestamp<e||t&&r>=t?a.push(n.value):r++),n=await n.continue()}const i=[];for(const e of a)await s.delete(K,e.id),i.push(e.url);return i}_getId(e){return this._cacheName+"|"+O(e)}async getDb(){return this._db||(this._db=await function(e,t,{blocked:s,upgrade:n,blocking:a,terminated:r}={}){const i=indexedDB.open(e,t),o=D(i);return n&&i.addEventListener("upgradeneeded",e=>{n(D(i.result),e.oldVersion,e.newVersion,D(i.transaction),e)}),s&&i.addEventListener("blocked",e=>s(e.oldVersion,e.newVersion,e)),o.then(e=>{r&&e.addEventListener("close",()=>r()),a&&e.addEventListener("versionchange",e=>a(e.oldVersion,e.newVersion,e))}).catch(()=>{}),o}("workbox-expiration",1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class A{constructor(e,t={}){this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new W(e)}async expireEntries(){if(this._isRunning)return void(this._rerunRequested=!0);this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-1e3*this._maxAgeSeconds:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),s=await self.caches.open(this._cacheName);for(const e of t)await s.delete(e,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,g(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){const t=await this._timestampModel.getTimestamp(e),s=Date.now()-1e3*this._maxAgeSeconds;return void 0===t||t<s}return!1}async delete(){this._rerunRequested=!1,await this._timestampModel.expireEntries(1/0)}}s(447);function j(e){if(!e)throw new r("add-to-cache-list-unexpected-type",{entry:e});if("string"==typeof e){const t=new URL(e,location.href);return{cacheKey:t.href,url:t.href}}const{revision:t,url:s}=e;if(!s)throw new r("add-to-cache-list-unexpected-type",{entry:e});if(!t){const e=new URL(s,location.href);return{cacheKey:e.href,url:e.href}}const n=new URL(s,location.href),a=new URL(s,location.href);return n.searchParams.set("__WB_REVISION__",t),{cacheKey:n.href,url:a.href}}class B{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)},this.cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:s})=>{if("install"===e.type&&t&&t.originalRequest&&t.originalRequest instanceof Request){const e=t.originalRequest.url;s?this.notUpdatedURLs.push(e):this.updatedURLs.push(e)}return s}}}class H{constructor({precacheController:e}){this.cacheKeyWillBeUsed=async({request:e,params:t})=>{const s=(null==t?void 0:t.cacheKey)||this._precacheController.getCacheKeyForURL(e.url);return s?new Request(s,{headers:e.headers}):e},this._precacheController=e}}s(390);function F(e){return"string"==typeof e?new Request(e):e}class V{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new w,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const e of this._plugins)this._pluginStateMap.set(e,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let s=F(e);if("navigate"===s.mode&&t instanceof FetchEvent&&t.preloadResponse){const e=await t.preloadResponse;if(e)return e}const n=this.hasCallback("fetchDidFail")?s.clone():null;try{for(const e of this.iterateCallbacks("requestWillFetch"))s=await e({request:s.clone(),event:t})}catch(e){if(e instanceof Error)throw new r("plugin-error-request-will-fetch",{thrownErrorMessage:e.message})}const a=s.clone();try{let e;e=await fetch(s,"navigate"===s.mode?void 0:this._strategy.fetchOptions);for(const s of this.iterateCallbacks("fetchDidSucceed"))e=await s({event:t,request:a,response:e});return e}catch(e){throw n&&await this.runCallbacks("fetchDidFail",{error:e,event:t,originalRequest:n.clone(),request:a.clone()}),e}}async fetchAndCachePut(e){const t=await this.fetch(e),s=t.clone();return this.waitUntil(this.cachePut(e,s)),t}async cacheMatch(e){const t=F(e);let s;const{cacheName:n,matchOptions:a}=this._strategy,r=await this.getCacheKey(t,"read"),i=Object.assign(Object.assign({},a),{cacheName:n});s=await caches.match(r,i);for(const e of this.iterateCallbacks("cachedResponseWillBeUsed"))s=await e({cacheName:n,matchOptions:a,cachedResponse:s,request:r,event:this.event})||void 0;return s}async cachePut(e,t){const s=F(e);await m(0);const n=await this.getCacheKey(s,"write");if(!t)throw new r("cache-put-with-no-response",{url:(a=n.url,new URL(String(a),location.href).href.replace(new RegExp(`^${location.origin}`),""))});var a;const i=await this._ensureResponseSafeToCache(t);if(!i)return!1;const{cacheName:o,matchOptions:h}=this._strategy,l=await self.caches.open(o),u=this.hasCallback("cacheDidUpdate"),d=u?await async function(e,t,s,n){const a=f(t.url,s);if(t.url===a)return e.match(t,n);const r=Object.assign(Object.assign({},n),{ignoreSearch:!0}),i=await e.keys(t,r);for(const t of i)if(a===f(t.url,s))return e.match(t,n)}(l,n.clone(),["__WB_REVISION__"],h):null;try{await l.put(n,u?i.clone():i)}catch(e){if(e instanceof Error)throw"QuotaExceededError"===e.name&&await async function(){for(const e of c)await e()}(),e}for(const e of this.iterateCallbacks("cacheDidUpdate"))await e({cacheName:o,oldResponse:d,newResponse:i.clone(),request:n,event:this.event});return!0}async getCacheKey(e,t){const s=`${e.url} | ${t}`;if(!this._cacheKeys[s]){let n=e;for(const e of this.iterateCallbacks("cacheKeyWillBeUsed"))n=F(await e({mode:t,request:n,event:this.event,params:this.params}));this._cacheKeys[s]=n}return this._cacheKeys[s]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const s of this.iterateCallbacks(e))await s(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if("function"==typeof t[e]){const s=this._pluginStateMap.get(t),n=n=>{const a=Object.assign(Object.assign({},n),{state:s});return t[e](a)};yield n}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,s=!1;for(const e of this.iterateCallbacks("cacheWillUpdate"))if(t=await e({request:this.request,response:t,event:this.event})||void 0,s=!0,!t)break;return s||t&&200!==t.status&&(t=void 0),t}}class ${constructor(e={}){this.cacheName=d(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,s="string"==typeof e.request?new Request(e.request):e.request,n="params"in e?e.params:void 0,a=new V(this,{event:t,request:s,params:n}),r=this._getResponse(a,s,t);return[r,this._awaitComplete(r,a,s,t)]}async _getResponse(e,t,s){let n;await e.runCallbacks("handlerWillStart",{event:s,request:t});try{if(n=await this._handle(t,e),!n||"error"===n.type)throw new r("no-response",{url:t.url})}catch(a){if(a instanceof Error)for(const r of e.iterateCallbacks("handlerDidError"))if(n=await r({error:a,event:s,request:t}),n)break;if(!n)throw a}for(const a of e.iterateCallbacks("handlerWillRespond"))n=await a({event:s,request:t,response:n});return n}async _awaitComplete(e,t,s,n){let a,r;try{a=await e}catch(r){}try{await t.runCallbacks("handlerDidRespond",{event:n,request:s,response:a}),await t.doneWaiting()}catch(e){e instanceof Error&&(r=e)}if(await t.runCallbacks("handlerDidComplete",{event:n,request:s,response:a,error:r}),t.destroy(),r)throw r}}class Q extends ${constructor(e={}){e.cacheName=u(e.cacheName),super(e),this._fallbackToNetwork=!1!==e.fallbackToNetwork,this.plugins.push(Q.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){const s=await t.cacheMatch(e);return s||(t.event&&"install"===t.event.type?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,t){let s;const n=t.params||{};if(!this._fallbackToNetwork)throw new r("missing-precache-entry",{cacheName:this.cacheName,url:e.url});{0;const a=n.integrity,r=e.integrity,i=!r||r===a;if(s=await t.fetch(new Request(e,{integrity:"no-cors"!==e.mode?r||a:void 0})),a&&i&&"no-cors"!==e.mode){this._useDefaultCacheabilityPluginIfNeeded();await t.cachePut(e,s.clone());0}}return s}async _handleInstall(e,t){this._useDefaultCacheabilityPluginIfNeeded();const s=await t.fetch(e);if(!await t.cachePut(e,s.clone()))throw new r("bad-precaching-response",{url:e.url,status:s.status});return s}_useDefaultCacheabilityPluginIfNeeded(){let e=null,t=0;for(const[s,n]of this.plugins.entries())n!==Q.copyRedirectedCacheableResponsesPlugin&&(n===Q.defaultPrecacheCacheabilityPlugin&&(e=s),n.cacheWillUpdate&&t++);0===t?this.plugins.push(Q.defaultPrecacheCacheabilityPlugin):t>1&&null!==e&&this.plugins.splice(e,1)}}Q.defaultPrecacheCacheabilityPlugin={cacheWillUpdate:async({response:e})=>!e||e.status>=400?null:e},Q.copyRedirectedCacheableResponsesPlugin={cacheWillUpdate:async({response:e})=>e.redirected?await v(e):e};class Y{constructor({cacheName:e,plugins:t=[],fallbackToNetwork:s=!0}={}){this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new Q({cacheName:u(e),plugins:[...t,new H({precacheController:this})],fallbackToNetwork:s}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this._strategy}precache(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}addToCacheList(e){const t=[];for(const s of e){"string"==typeof s?t.push(s):s&&void 0===s.revision&&t.push(s.url);const{cacheKey:e,url:n}=j(s),a="string"!=typeof s&&s.revision?"reload":"default";if(this._urlsToCacheKeys.has(n)&&this._urlsToCacheKeys.get(n)!==e)throw new r("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(n),secondEntry:e});if("string"!=typeof s&&s.integrity){if(this._cacheKeysToIntegrities.has(e)&&this._cacheKeysToIntegrities.get(e)!==s.integrity)throw new r("add-to-cache-list-conflicting-integrities",{url:n});this._cacheKeysToIntegrities.set(e,s.integrity)}if(this._urlsToCacheKeys.set(n,e),this._urlsToCacheModes.set(n,a),t.length>0){const e=`Workbox is precaching URLs without revision info: ${t.join(", ")}\nThis is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(e)}}}install(e){return y(e,async()=>{const t=new B;this.strategy.plugins.push(t);for(const[t,s]of this._urlsToCacheKeys){const n=this._cacheKeysToIntegrities.get(s),a=this._urlsToCacheModes.get(t),r=new Request(t,{integrity:n,cache:a,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:s},request:r,event:e}))}const{updatedURLs:s,notUpdatedURLs:n}=t;return{updatedURLs:s,notUpdatedURLs:n}})}activate(e){return y(e,async()=>{const e=await self.caches.open(this.strategy.cacheName),t=await e.keys(),s=new Set(this._urlsToCacheKeys.values()),n=[];for(const a of t)s.has(a.url)||(await e.delete(a),n.push(a.url));return{deletedURLs:n}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,s=this.getCacheKeyForURL(t);if(s){return(await self.caches.open(this.strategy.cacheName)).match(s)}}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new r("non-precached-url",{url:e});return s=>(s.request=new Request(e),s.params=Object.assign({cacheKey:t},s.params),this.strategy.handle(s))}}let G;const J=()=>(G||(G=new Y),G);s(227);const Z=e=>e&&"object"==typeof e?e:{handle:e};class z{constructor(e,t,s="GET"){this.handler=Z(t),this.match=e,this.method=s}setCatchHandler(e){this.catchHandler=Z(e)}}class X extends z{constructor(e,t,s){super(({url:t})=>{const s=e.exec(t.href);if(s&&(t.origin===location.origin||0===s.index))return s.slice(1)},t,s)}}class ee{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,s=this.handleRequest({request:t,event:e});s&&e.respondWith(s)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&"CACHE_URLS"===e.data.type){const{payload:t}=e.data;0;const s=Promise.all(t.urlsToCache.map(t=>{"string"==typeof t&&(t=[t]);const s=new Request(...t);return this.handleRequest({request:s,event:e})}));e.waitUntil(s),e.ports&&e.ports[0]&&s.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const s=new URL(e.url,location.href);if(!s.protocol.startsWith("http"))return void 0;const n=s.origin===location.origin,{params:a,route:r}=this.findMatchingRoute({event:t,request:e,sameOrigin:n,url:s});let i=r&&r.handler;const o=e.method;if(!i&&this._defaultHandlerMap.has(o)&&(i=this._defaultHandlerMap.get(o)),!i)return void 0;let c;try{c=i.handle({url:s,request:e,event:t,params:a})}catch(e){c=Promise.reject(e)}const h=r&&r.catchHandler;return c instanceof Promise&&(this._catchHandler||h)&&(c=c.catch(async n=>{if(h){0;try{return await h.handle({url:s,request:e,event:t,params:a})}catch(e){e instanceof Error&&(n=e)}}if(this._catchHandler)return this._catchHandler.handle({url:s,request:e,event:t});throw n})),c}findMatchingRoute({url:e,sameOrigin:t,request:s,event:n}){const a=this._routes.get(s.method)||[];for(const r of a){let a;const i=r.match({url:e,sameOrigin:t,request:s,event:n});if(i)return a=i,(Array.isArray(a)&&0===a.length||i.constructor===Object&&0===Object.keys(i).length||"boolean"==typeof i)&&(a=void 0),{route:r,params:a}}return{}}setDefaultHandler(e,t="GET"){this._defaultHandlerMap.set(t,Z(e))}setCatchHandler(e){this._catchHandler=Z(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new r("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(!(t>-1))throw new r("unregister-route-route-not-registered");this._routes.get(e.method).splice(t,1)}}let te;const se=()=>(te||(te=new ee,te.addFetchListener(),te.addCacheListener()),te);function ne(e,t,s){let n;if("string"==typeof e){const a=new URL(e,location.href);0;n=new z(({url:e})=>e.href===a.href,t,s)}else if(e instanceof RegExp)n=new X(e,t,s);else if("function"==typeof e)n=new z(e,t,s);else{if(!(e instanceof z))throw new r("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});n=e}return se().registerRoute(n),n}class ae extends z{constructor(e,t){super(({request:s})=>{const n=e.getURLsToCacheKeys();for(const a of function*(e,{ignoreURLParametersMatching:t=[/^utm_/,/^fbclid$/],directoryIndex:s="index.html",cleanURLs:n=!0,urlManipulation:a}={}){const r=new URL(e,location.href);r.hash="",yield r.href;const i=function(e,t=[]){for(const s of[...e.searchParams.keys()])t.some(e=>e.test(s))&&e.searchParams.delete(s);return e}(r,t);if(yield i.href,s&&i.pathname.endsWith("/")){const e=new URL(i.href);e.pathname+=s,yield e.href}if(n){const e=new URL(i.href);e.pathname+=".html",yield e.href}if(a){const e=a({url:r});for(const t of e)yield t.href}}(s.url,t)){const t=n.get(a);if(t){return{cacheKey:t,integrity:e.getIntegrityForCacheKey(t)}}}},e.strategy)}}const re={cacheWillUpdate:async({response:e})=>200===e.status||0===e.status?e:null};var ie,oe;console.log("Hello from sw.js v0.0.1"),self.addEventListener("activate",()=>self.clients.claim()),function(e){J().precache(e)}([{'revision':null,'url':'/418.bad8dc896536b7d02b19.js'},{'revision':'5c035540edea453294160c87b69d6efc','url':'/assets/icon.svg'},{'revision':'f6c355a52feba073e894db3d5b561ddc','url':'/dts/app/app.d.ts'},{'revision':'078b6a5c77374f3e6010259f49de61c3','url':'/dts/app/behaviors.d.ts'},{'revision':'75ba0437a002fa52f35a11c6e031fb83','url':'/dts/app/config.d.ts'},{'revision':'15fd8d96dc0bb0147a927cd655991d61','url':'/dts/app/index.d.ts'},{'revision':'75b251d8772324af462b31c734091efe','url':'/dts/app/types.d.ts'},{'revision':'465b8a967c17935b86d36a5a12fe7b71','url':'/dts/app/utils.d.ts'},{'revision':'d8c2f99b493635c8c25ff0a01b297da5','url':'/dts/index.d.ts'},{'revision':'2057a4ce7f492309ceb05c78e1abf2f8','url':'/dts/index.docs.d.ts'},{'revision':'5d05b2cca398071e8b7bd80f8a37ff80','url':'/dts/main/index.d.ts'},{'revision':'127ad4e70d39a7beb238977a6ad7790c','url':'/dts/main/main.d.ts'},{'revision':'5ce23c1e29e802698be958444fcac33a','url':'/dts/main/main.styles.d.ts'},{'revision':'5a9c7f1e56b35773b19ea8fc6fd779d1','url':'/dts/main/main.template.d.ts'},{'revision':'a4a585ff72bb0a204cfe49b476bd9b80','url':'/dts/pbc/index.d.ts'},{'revision':'36878d18600216555e06ab792adc10eb','url':'/dts/pbc/pbc.d.ts'},{'revision':'ddd7a8ed096a3139c726dc3a1c606f78','url':'/dts/pbc/vite/exports.d.ts'},{'revision':'d6e2176ecbaafe1bc42b9f15136946d0','url':'/dts/pbc/vite/index.d.ts'},{'revision':'e372dabcf39748888ec80c9849ba7265','url':'/dts/pbc/vite/utils.d.ts'},{'revision':'ddd7a8ed096a3139c726dc3a1c606f78','url':'/dts/pbc/webpack/exports.d.ts'},{'revision':'d6e2176ecbaafe1bc42b9f15136946d0','url':'/dts/pbc/webpack/index.d.ts'},{'revision':'7708c6a06e46698dfdfaef9ecdccb9a0','url':'/dts/pbc/webpack/utils.d.ts'},{'revision':'1d6bffdf6619ff38e64181ac26bf4297','url':'/dts/serviceWorker/registration.d.ts'},{'revision':'0ab8d9f2503966e9295ae54cc6f64a4a','url':'/dts/serviceWorker/serviceWorker.d.ts'},{'revision':'65230a59ca53b222394cb29719af898c','url':'/dts/utils/index.d.ts'},{'revision':'dc36fe29c255f4306be90d0f53681e24','url':'/dts/utils/logger.d.ts'},{'revision':'d4f850463f4df51860be6f46b599e7ce','url':'/favicon.ico'},{'revision':'5c35ce5ab9d05aa96be44e76098cd8b3','url':'/index.html'},{'revision':null,'url':'/main.e874c72e25edb4360502.js'},{'revision':null,'url':'/npm.microsoft.4c8d41dd0aa1785e09d5.js'},{'revision':null,'url':'/swRegistration.1971ab73664d652c1d59.js'}]||[]),function(e){const t=J();ne(new ae(t,e))}(ie),ne(({request:e})=>"navigate"===e.mode,new class extends ${constructor(e={}){super(e),this.plugins.some(e=>"cacheWillUpdate"in e)||this.plugins.unshift(re),this._networkTimeoutSeconds=e.networkTimeoutSeconds||0}async _handle(e,t){const s=[];const n=[];let a;if(this._networkTimeoutSeconds){const{id:r,promise:i}=this._getTimeoutPromise({request:e,logs:s,handler:t});a=r,n.push(i)}const i=this._getNetworkPromise({timeoutId:a,request:e,logs:s,handler:t});n.push(i);const o=await t.waitUntil((async()=>await t.waitUntil(Promise.race(n))||await i)());if(!o)throw new r("no-response",{url:e.url});return o}_getTimeoutPromise({request:e,logs:t,handler:s}){let n;return{promise:new Promise(t=>{n=setTimeout(async()=>{t(await s.cacheMatch(e))},1e3*this._networkTimeoutSeconds)}),id:n}}async _getNetworkPromise({timeoutId:e,request:t,logs:s,handler:n}){let a,r;try{r=await n.fetchAndCachePut(t)}catch(e){e instanceof Error&&(a=e)}return e&&clearTimeout(e),!a&&r||(r=await n.cacheMatch(t)),r}}({cacheName:"pages",plugins:[new o({statuses:[200]})]})),ne(({request:e})=>"style"===e.destination||"script"===e.destination||"worker"===e.destination,new class extends ${constructor(e={}){super(e),this.plugins.some(e=>"cacheWillUpdate"in e)||this.plugins.unshift(re)}async _handle(e,t){const s=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(s);let n,a=await t.cacheMatch(e);if(a)0;else{0;try{a=await s}catch(e){e instanceof Error&&(n=e)}}if(!a)throw new r("no-response",{url:e.url,error:n});return a}}({cacheName:"assets",plugins:[new o({statuses:[200]})]})),ne(({request:e})=>"image"===e.destination,new class extends ${async _handle(e,t){let s,n=await t.cacheMatch(e);if(n)0;else{0;try{n=await t.fetchAndCachePut(e)}catch(e){e instanceof Error&&(s=e)}0}if(!n)throw new r("no-response",{url:e.url,error:s});return n}}({cacheName:"images",plugins:[new o({statuses:[200]}),new class{constructor(e={}){this.cachedResponseWillBeUsed=async({event:e,request:t,cacheName:s,cachedResponse:n})=>{if(!n)return null;const a=this._isResponseDateFresh(n),r=this._getCacheExpiration(s);g(r.expireEntries());const i=r.updateTimestamp(t.url);if(e)try{e.waitUntil(i)}catch(e){0}return a?n:null},this.cacheDidUpdate=async({cacheName:e,request:t})=>{const s=this._getCacheExpiration(e);await s.updateTimestamp(t.url),await s.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&function(e){c.add(e)}(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===d())throw new r("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new A(e,this._config),this._cacheExpirations.set(e,t)),t}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(null===t)return!0;return t>=Date.now()-1e3*this._maxAgeSeconds}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),s=new Date(t).getTime();return isNaN(s)?null:s}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}({maxEntries:50,maxAgeSeconds:2592e3})]})),function(e){e.skipWaiting="skipWaiting"}(oe||(oe={})),self.addEventListener("message",e=>{if(e.data&&e.data.type===oe.skipWaiting)self.skipWaiting()});const ce={applicationServerKey:(e=>{const t=(e+"=".repeat((4-e.length%4)%4)).replace(/-/g,"+").replace(/_/g,"/"),s=self.atob(t),n=new Uint8Array(s.length);for(let e=0;e<s.length;e+=1)n[e]=s.charCodeAt(e);return n})("BHjc7KuOaU4j6MNOs_Mm90By-mPPUqn8Y94I0yv-aYP03ip2nfq8ti_n1mH01QxW9mWtjY8d2-VdcblQYl1Zq-M"),userVisibleOnly:!0};self.addEventListener("activate",()=>n(void 0,void 0,void 0,function*(){try{const e=yield self.registration.pushManager.subscribe(ce),t=yield(e=>n(void 0,void 0,void 0,function*(){return(yield fetch("http://localhost:6050/push/save",{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}))(e);console.log(t)}catch(e){console.error("SW activate error",e)}})),self.addEventListener("push",e=>{console.log("SW received a push message",e);const{data:t}=e;if(!t)return void console.error("no data in message");const s=t.text()||"Push Message Title";e.waitUntil(self.registration.showNotification(s,{tag:"genesis-global-notification-tag",body:t.text()}))}),self.addEventListener("notificationclose",({notification:e})=>{const t=e.data;console.log("SW notification close",t)}),self.addEventListener("notificationclick",({action:e,notification:t})=>{const s=t.data;console.log("SW notification click",s,e),"close"!==e||t.close()})})();
|
|
2
2
|
//# sourceMappingURL=InjectManifest.79a0aeca7183379764c4996aa19ea09e.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-shell",
|
|
3
3
|
"description": "Genesis Foundation Shell",
|
|
4
|
-
"version": "15.
|
|
4
|
+
"version": "15.51.1",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/dts/index.d.ts",
|
|
@@ -68,19 +68,19 @@
|
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@genesislcap/foundation-testing": "15.
|
|
72
|
-
"@genesislcap/genx": "15.
|
|
73
|
-
"@genesislcap/ts-builder": "15.
|
|
74
|
-
"@genesislcap/uvu-playwright-builder": "15.
|
|
75
|
-
"@genesislcap/vite-builder": "15.
|
|
76
|
-
"@genesislcap/webpack-builder": "15.
|
|
71
|
+
"@genesislcap/foundation-testing": "15.51.1",
|
|
72
|
+
"@genesislcap/genx": "15.51.1",
|
|
73
|
+
"@genesislcap/ts-builder": "15.51.1",
|
|
74
|
+
"@genesislcap/uvu-playwright-builder": "15.51.1",
|
|
75
|
+
"@genesislcap/vite-builder": "15.51.1",
|
|
76
|
+
"@genesislcap/webpack-builder": "15.51.1"
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"@genesislcap/foundation-logger": "15.
|
|
80
|
-
"@genesislcap/foundation-store": "15.
|
|
81
|
-
"@genesislcap/foundation-ui": "15.
|
|
82
|
-
"@genesislcap/foundation-utils": "15.
|
|
83
|
-
"@genesislcap/web-core": "15.
|
|
79
|
+
"@genesislcap/foundation-logger": "15.51.1",
|
|
80
|
+
"@genesislcap/foundation-store": "15.51.1",
|
|
81
|
+
"@genesislcap/foundation-ui": "15.51.1",
|
|
82
|
+
"@genesislcap/foundation-utils": "15.51.1",
|
|
83
|
+
"@genesislcap/web-core": "15.51.1",
|
|
84
84
|
"workbox-cacheable-response": "^6.5.4",
|
|
85
85
|
"workbox-core": "^6.5.4",
|
|
86
86
|
"workbox-expiration": "^6.5.4",
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
(()=>{"use strict";var t,e={860(t,e,o){o.d(e,{A:()=>a});var r=o(536),n=o.n(r),s=o(248),i=o.n(s)()(n());i.push([t.id,"/* index.ejs styling */\n\nhtml,\nbody {\n width: 100%;\n height: 100%;\n padding: 0;\n margin: 0;\n}\n\nbody {\n background-color: #636e8d;\n}\n\n:not(:defined) {\n visibility: hidden;\n}\n\n:defined {\n visibility: visible;\n}\n","",{version:3,sources:["webpack://./src/main/main.css"],names:[],mappings:"AAAA,sBAAsB;;AAEtB;;EAEE,WAAW;EACX,YAAY;EACZ,UAAU;EACV,SAAS;AACX;;AAEA;EACE,yBAAyB;AAC3B;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB",sourcesContent:["/* index.ejs styling */\n\nhtml,\nbody {\n width: 100%;\n height: 100%;\n padding: 0;\n margin: 0;\n}\n\nbody {\n background-color: #636e8d;\n}\n\n:not(:defined) {\n visibility: hidden;\n}\n\n:defined {\n visibility: visible;\n}\n"],sourceRoot:""}]);const a=i},248(t){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",r=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),r&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),r&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,r,n,s){"string"==typeof t&&(t=[[null,t,void 0]]);var i={};if(r)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(i[l]=!0)}for(var c=0;c<t.length;c++){var p=[].concat(t[c]);r&&i[p[0]]||(void 0!==s&&(void 0===p[5]||(p[1]="@layer".concat(p[5].length>0?" ".concat(p[5]):""," {").concat(p[1],"}")),p[5]=s),o&&(p[2]?(p[1]="@media ".concat(p[2]," {").concat(p[1],"}"),p[2]=o):p[2]=o),n&&(p[4]?(p[1]="@supports (".concat(p[4],") {").concat(p[1],"}"),p[4]=n):p[4]="".concat(n)),e.push(p))}},e}},536(t){t.exports=function(t){var e=t[1],o=t[3];if(!o)return e;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),s="/*# ".concat(n," */");return[e].concat([s]).join("\n")}return[e].join("\n")}},478(t){var e=[];function o(t){for(var o=-1,r=0;r<e.length;r++)if(e[r].identifier===t){o=r;break}return o}function r(t,r){for(var s={},i=[],a=0;a<t.length;a++){var l=t[a],c=r.base?l[0]+r.base:l[0],p=s[c]||0,u="".concat(c," ").concat(p);s[c]=p+1;var d=o(u),f={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)e[d].references++,e[d].updater(f);else{var h=n(f,r);r.byIndex=a,e.splice(a,0,{identifier:u,updater:h,references:1})}i.push(u)}return i}function n(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,n){var s=r(t=t||[],n=n||{});return function(t){t=t||[];for(var i=0;i<s.length;i++){var a=o(s[i]);e[a].references--}for(var l=r(t,n),c=0;c<s.length;c++){var p=o(s[c]);0===e[p].references&&(e[p].updater(),e.splice(p,1))}s=l}}},301(t){var e={};t.exports=function(t,o){var r=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(o)}},626(t){t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},222(t,e,o){t.exports=function(t){var e=o.nc;e&&t.setAttribute("nonce",e)}},135(t){t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(o){!function(t,e,o){var r="";o.supports&&(r+="@supports (".concat(o.supports,") {")),o.media&&(r+="@media ".concat(o.media," {"));var n=void 0!==o.layer;n&&(r+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),r+=o.css,n&&(r+="}"),o.media&&(r+="}"),o.supports&&(r+="}");var s=o.sourceMap;s&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,o)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},279(t){t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},307(t,e,o){var r=o(329);const n=r.q`
|
|
2
|
-
<div id="app-shell" class="dynamic-template">${t=>t.selectTemplate()}</div>
|
|
3
|
-
`,s=r.q`
|
|
4
|
-
...
|
|
5
|
-
`,i=r.q`
|
|
6
|
-
<h1>Genesis App Shell / Registry</h1>
|
|
7
|
-
<slot></slot>
|
|
8
|
-
`;function a(t,e,o,r){var n,s=arguments.length,i=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(i=(s<3?n(i):s>3?n(e,o,i):n(e,o))||i);return s>3&&i&&Object.defineProperty(e,o,i),i}Object.create;Object.create;var l=o(528),c=o(453);const p={silent:Number.NEGATIVE_INFINITY,fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,ready:3,start:3,box:3,debug:4,trace:5,verbose:Number.POSITIVE_INFINITY},u={silent:{level:-1},fatal:{level:p.fatal},error:{level:p.error},warn:{level:p.warn},log:{level:p.log},info:{level:p.info},success:{level:p.success},fail:{level:p.fail},ready:{level:p.info},start:{level:p.info},box:{level:p.info},debug:{level:p.debug},trace:{level:p.trace},verbose:{level:p.verbose}};function d(t){if(null===t||"object"!=typeof t)return!1;const e=Object.getPrototypeOf(t);return(null===e||e===Object.prototype||null===Object.getPrototypeOf(e))&&(!(Symbol.iterator in t)&&(!(Symbol.toStringTag in t)||"[object Module]"===Object.prototype.toString.call(t)))}function f(t,e,o=".",r){if(!d(e))return f(t,{},o,r);const n=Object.assign({},e);for(const e in t){if("__proto__"===e||"constructor"===e)continue;const s=t[e];null!=s&&(r&&r(n,e,s,o)||(Array.isArray(s)&&Array.isArray(n[e])?n[e]=[...s,...n[e]]:d(s)&&d(n[e])?n[e]=f(s,n[e],(o?`${o}.`:"")+e.toString(),r):n[e]=s))}return n}const h=(...t)=>t.reduce((t,e)=>f(t,e,"",g),{});var g;function v(t){return e=t,"[object Object]"===Object.prototype.toString.call(e)&&(!(!t.message&&!t.args)&&!t.stack);var e}let y=!1;const m=[];class b{options;_lastLog;_mockFn;constructor(t={}){const e=t.types||u;this.options=h({...t,defaults:{...t.defaults},level:_(t.level,e),reporters:[...t.reporters||[]]},{types:u,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(const t in e){const o={type:t,...this.options.defaults,...e[t]};this[t]=this._wrapLogFn(o),this[t].raw=this._wrapLogFn(o,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}get level(){return this.options.level}set level(t){this.options.level=_(t,this.options.types,this.options.level)}prompt(t,e){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(t,e)}create(t){const e=new b({...this.options,...t});return this._mockFn&&e.mockTypes(this._mockFn),e}withDefaults(t){return this.create({...this.options,defaults:{...this.options.defaults,...t}})}withTag(t){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+t:t})}addReporter(t){return this.options.reporters.push(t),this}removeReporter(t){if(t){const e=this.options.reporters.indexOf(t);if(-1!==e)return this.options.reporters.splice(e,1)}else this.options.reporters.splice(0);return this}setReporters(t){return this.options.reporters=Array.isArray(t)?t:[t],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(const t in this.options.types)console["__"+t]||(console["__"+t]=console[t]),console[t]=this[t].raw}restoreConsole(){for(const t in this.options.types)console["__"+t]&&(console[t]=console["__"+t],delete console["__"+t])}wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}_wrapStream(t,e){t&&(t.__write||(t.__write=t.write),t.write=t=>{this[e].raw(String(t).trim())})}restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}_restoreStream(t){t&&t.__write&&(t.write=t.__write,delete t.__write)}pauseLogs(){y=!0}resumeLogs(){y=!1;const t=m.splice(0);for(const e of t)e[0]._logFn(e[1],e[2])}mockTypes(t){const e=t||this.options.mockFn;if(this._mockFn=e,"function"==typeof e)for(const t in this.options.types)this[t]=e(t,this.options.types[t])||this[t],this[t].raw=this[t]}_wrapLogFn(t,e){return(...o)=>{if(!y)return this._logFn(t,o,e);m.push([this,t,o,e])}}_logFn(t,e,o){if((t.level||0)>this.level)return!1;const r={date:new Date,args:[],...t,level:_(t.level,this.options.types)};!o&&1===e.length&&v(e[0])?Object.assign(r,e[0]):r.args=[...e],r.message&&(r.args.unshift(r.message),delete r.message),r.additional&&(Array.isArray(r.additional)||(r.additional=r.additional.split("\n")),r.args.push("\n"+r.additional.join("\n")),delete r.additional),r.type="string"==typeof r.type?r.type.toLowerCase():"log",r.tag="string"==typeof r.tag?r.tag:"";const n=(t=!1)=>{const e=(this._lastLog.count||0)-this.options.throttleMin;if(this._lastLog.object&&e>0){const t=[...this._lastLog.object.args];e>1&&t.push(`(repeated ${e} times)`),this._log({...this._lastLog.object,args:t}),this._lastLog.count=1}t&&(this._lastLog.object=r,this._log(r))};clearTimeout(this._lastLog.timeout);const s=this._lastLog.time&&r.date?r.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=r.date,s<this.options.throttle)try{const t=JSON.stringify([r.type,r.tag,r.args]),e=this._lastLog.serialized===t;if(this._lastLog.serialized=t,e&&(this._lastLog.count=(this._lastLog.count||0)+1,this._lastLog.count>this.options.throttleMin))return void(this._lastLog.timeout=setTimeout(n,this.options.throttle))}catch{}n(!0)}_log(t){for(const e of this.options.reporters)e.log(t,{options:this.options})}}function _(t,e={},o=3){return void 0===t?o:"number"==typeof t?t:e[t]&&void 0!==e[t].level?e[t].level:o}function w(t={}){return new b(t)}b.prototype.add=b.prototype.addReporter,b.prototype.remove=b.prototype.removeReporter,b.prototype.clear=b.prototype.removeReporter,b.prototype.withScope=b.prototype.withTag,b.prototype.mock=b.prototype.mockTypes,b.prototype.pause=b.prototype.pauseLogs,b.prototype.resume=b.prototype.resumeLogs;class A{options;defaultColor;levelColorMap;typeColorMap;constructor(t){this.options={...t},this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}_getLogFn(t){return t<1?console.__error||console.error:1===t?console.__warn||console.warn:console.__log||console.log}log(t){const e=this._getLogFn(t.level),o="log"===t.type?"":t.type,r=t.tag||"",n=`\n background: ${this.typeColorMap[t.type]||this.levelColorMap[t.level]||this.defaultColor};\n border-radius: 0.5em;\n color: white;\n font-weight: bold;\n padding: 2px 0.5em;\n `,s=`%c${[r,o].filter(Boolean).join(":")}`;"string"==typeof t.args[0]?e(`${s}%c ${t.args[0]}`,n,"",...t.args.slice(1)):e(s,n,...t.args)}}function C(t={}){return w({reporters:t.reporters||[new A({})],prompt:(t,e={})=>"confirm"===e.type?Promise.resolve(confirm(t)):Promise.resolve(prompt(t)),...t})}C();const j=Symbol.for("@genesislcap/foundation-logger:timestamps");function O(t){var e,o,r;const n=null===(e=null==t?void 0:t.options)||void 0===e?void 0:e.timestamps;return"boolean"==typeof n?n:!0===(null===(r=null===(o=null==t?void 0:t.options)||void 0===o?void 0:o.formatOptions)||void 0===r?void 0:r.date)||!0===Reflect.get(globalThis,j)}const S={level:p.debug,formatOptions:{date:!1}},L=new class{constructor(){this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}log(t,e){const o=function(t){const e=console;return t<1?e.__error||e.error:1===t?e.__warn||e.warn:e.__log||e.log}(t.level),r="log"===t.type?"":t.type,n=t.tag||"",s=O(e)?(i=t.date,`${String(i.getHours()).padStart(2,"0")}:${String(i.getMinutes()).padStart(2,"0")}:${String(i.getSeconds()).padStart(2,"0")}.${String(i.getMilliseconds()).padStart(3,"0")}`):"";var i;"undefined"==typeof window||!n&&!r?this.logPlain(o,t,n,r,s):this.logWithBrowserStyles(o,t,n,r,s)}logWithBrowserStyles(t,e,o,r,n){const s=`\n background: ${this.typeColorMap[e.type]||this.levelColorMap[e.level]||this.defaultColor};\n border-radius: 0.5em;\n color: white;\n font-weight: bold;\n padding: 2px 0.5em;\n `,i=`%c${[o,r].filter(Boolean).join(":")}`,a=n?`${n} ${i}`:i;"string"!=typeof e.args[0]?t(a,s,...e.args):t(`${a}%c ${e.args[0]}`,s,"",...e.args.slice(1))}logPlain(t,e,o,r,n){const s=[o,r].filter(Boolean).join(":"),i=[n,s?`[${s}]`:""].filter(Boolean).join(" ");"string"!=typeof e.args[0]?i?t(i,...e.args):t(...e.args):t(i?`${i} ${e.args[0]}`:e.args[0],...e.args.slice(1))}};const T=function(t,e={}){const o="undefined"!=typeof window,r=(o?C:w)(function(t,e){const o=Object.assign(Object.assign(Object.assign({},S),t),{formatOptions:Object.assign(Object.assign({},S.formatOptions),t.formatOptions)});return e&&!o.reporters&&(o.reporters=[L]),o}(e,o)).withTag(t),n=r;return n.deprecated=(t,e="Consult docs for better alternative.",o)=>{n.warn(`Deprecated symbol used '${t}'. ${e}`,""+(o?`Will be removed in version ${o}.`:""))},n}("foundation-shell");var k=o(782),E=o(478),M=o.n(E),$=o(135),x=o.n($),B=o(301),F=o.n(B),I=o(222),R=o.n(I),N=o(626),P=o.n(N),D=o(279),U=o.n(D),W=o(860),q={};q.styleTagTransform=U(),q.setAttributes=R(),q.insert=F().bind(null,"head"),q.domAPI=x(),q.insertStyleElement=P();M()(W.A,q);W.A&&W.A.locals&&W.A.locals;const H=k.A`
|
|
9
|
-
:host {
|
|
10
|
-
contain: content;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
:host,
|
|
14
|
-
#app-shell {
|
|
15
|
-
display: block;
|
|
16
|
-
width: 100%;
|
|
17
|
-
height: 100%;
|
|
18
|
-
}
|
|
19
|
-
`,Y="foundation-shell";let J=class extends l.L{constructor(){super(...arguments),this.ready=!1}connectedCallback(){super.connectedCallback(),T.debug(`${Y} is now connected to the DOM`),this.ready=!0}selectTemplate(){return this.ready?i:s}};a([c.sH],J.prototype,"ready",void 0),J=a([(0,l.E)({name:Y,template:n,styles:H})],J)}},o={};function r(t){var n=o[t];if(void 0!==n){if(void 0!==n.error)throw n.error;return n.exports}var s=o[t]={id:t,exports:{}},i=!0;try{e[t](s,s.exports,r),i=!1}finally{i&&delete o[t]}return s.exports}r.m=e,t=[],r.O=(e,o,n,s)=>{if(!o){var i=1/0;for(p=0;p<t.length;p++){for(var[o,n,s]=t[p],a=!0,l=0;l<o.length;l++)(!1&s||i>=s)&&Object.keys(r.O).every(t=>r.O[t](o[l]))?o.splice(l--,1):(a=!1,s<i&&(i=s));if(a){t.splice(p--,1);var c=n();void 0!==c&&(e=c)}}return e}s=s||0;for(var p=t.length;p>0&&t[p-1][2]>s;p--)t[p]=t[p-1];t[p]=[o,n,s]},r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={792:0};r.O.j=e=>0===t[e];var e=(e,o)=>{var n,s,[i,a,l]=o,c=0;if(i.some(e=>0!==t[e])){for(n in a)r.o(a,n)&&(r.m[n]=a[n]);if(l)var p=l(r)}for(e&&e(o);c<i.length;c++)s=i[c],r.o(t,s)&&t[s]&&t[s][0](),t[s]=0;return r.O(p)},o=self.webpackChunk_genesislcap_foundation_shell=self.webpackChunk_genesislcap_foundation_shell||[];o.forEach(e.bind(null,0)),o.push=e.bind(null,o.push.bind(o))})(),r.nc=void 0;var n=r.O(void 0,[544],()=>r(307));n=r.O(n)})();
|
|
20
|
-
//# sourceMappingURL=main.4ea1bc38a3837ffdf419b0ee62854c8e.js.map
|