chore: update snapshots

This commit is contained in:
Lars den Bakker
2019-11-18 19:29:58 +01:00
parent 7a75f304ce
commit df996de83a
296 changed files with 5522 additions and 5623 deletions

View File

@@ -6,5 +6,6 @@ stats.html
/packages/import-maps-generate/test/assets/**/node_modules
/packages/**/test/**/snapshots
/packages/es-dev-server/test/fixtures/**/*
/packages/es-dev-server/demo/**/*
/packages/karma-esm/src/esm-debug.html
/packages/karma-esm/src/esm-context.html

View File

@@ -6,6 +6,7 @@ stats.html
packages/semantic-dom-diff/bundle/get-diffable-html.js
packages/**/test/**/snapshots
/packages/es-dev-server/test/fixtures/**/*
/packages/es-dev-server/demo/**/*
/packages/karma-esm/src/test-loader-browser-script.js
/packages/karma-esm/src/esm-debug.html
/packages/karma-esm/src/esm-context.html

View File

@@ -1,13 +0,0 @@
# `BDD`
#### `uses chai dom equals plugin snapshot`
```html
<div>
<h1>
Hey
</h1>
</div>
```

View File

@@ -0,0 +1,14 @@
# `Plugin - sinon-chai`
#### `can expect a spys callCount`
```html
<h1>
My Element
</h1>
<p>
hello world!
</p>
```

View File

@@ -8,12 +8,14 @@
<div>
A
</div>
```
```html
<div>
A
</div>
```
#### `matches a dom element snapshot`
@@ -22,12 +24,14 @@
<div>
B
</div>
```
```html
<div>
B
</div>
```
#### `matches a dom element snapshot, using .dom`
@@ -36,12 +40,14 @@
<div>
C
</div>
```
```html
<div>
C
</div>
```
## `error states`
@@ -52,12 +58,14 @@
<span>
A
</span>
```
```html
<span>
A
</span>
```
#### `matches shadow dom snapshot`
@@ -66,12 +74,14 @@
<span>
B
</span>
```
```html
<span>
B
</span>
```
## `failed snapshots`
@@ -80,28 +90,30 @@
```html
<div>
0.6523866720855873
0.2201823757011796
</div>
```
```html
<div>
0.1401241753470146
0.2201823757011796
</div>
```
#### `does not throw an error when a snapshot does not match using negate`
```html
<div>
0.2129255588205312
0.7065918062901237
</div>
```
```html
<div>
0.2129255588205312
0.7065918062901237
</div>
```

View File

@@ -8,10 +8,11 @@
<div>
A
</div>
```
```html
<div random-attribute="0.5954442939066347">
<div>
A
</div>
@@ -25,15 +26,13 @@
<div>
A
</div>
```
```html
<div>
A
</div>
<span>
B
</span>
```

View File

@@ -0,0 +1,14 @@
# `my-element`
#### `renders correctly`
```html
<h1>
My Element
</h1>
<p>
hello world!
</p>
```

View File

@@ -29,15 +29,15 @@
"utils"
],
"dependencies": {
"@babel/core": "^7.3.3",
"@babel/core": "^7.7.2",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@webcomponents/webcomponentsjs": "^2.2.10",
"arrify": "^2.0.1",
"browserslist": "^4.5.6",
"browserslist": "^4.7.2",
"chokidar": "^3.0.0",
"clean-css": "^4.2.1",
"clone": "^2.1.2",
"core-js-bundle": "^3.1.4",
"core-js-bundle": "^3.4.0",
"deepmerge": "^3.2.0",
"es-module-shims": "^0.4.5",
"html-minifier": "^4.0.0",
@@ -60,4 +60,4 @@
"chai": "^4.2.0",
"mocha": "^6.0.0"
}
}
}

View File

@@ -1 +1 @@
<html lang="en-GB"><head><title>My app</title><style>my-app{display:block}</style><link rel="preload" href="app.js" as="script" crossorigin="anonymous"></head><body><h1><span>Hello world!</span></h1><my-app></my-app><script>window.importShim=t=>import(t.startsWith(".")?new URL(t,document.baseURI):t);</script><script>!function(){var n,o,e=[];function i(){window.importShim("./app.js")}"noModule"in HTMLScriptElement.prototype&&!("importShim"in window)&&e.push((n="polyfills/dynamic-import.b745cfc9384367cc18b42bbef2bbdcd9.js",o=!1,new Promise(function(e,i){document.head.appendChild(Object.assign(document.createElement("script"),{src:n,onload:e,onerror:i},o?{type:"module"}:void 0))}))),e.length?Promise.all(e).then(i):i()}();</script></body></html>
<html lang="en-GB"><head><title>My app</title><style>my-app{display:block}</style><link rel="preload" href="app.js" as="script" crossorigin="anonymous"></head><body><h1><span>Hello world!</span></h1><my-app></my-app><script>window.importShim=t=>import(t.startsWith(".")?new URL(t,document.baseURI):t);</script><script>!function(){var n,o,e=[];function i(){window.importShim("./app.js")}"noModule"in HTMLScriptElement.prototype&&!("importShim"in window)&&e.push((n="polyfills/dynamic-import.b745cfc9384367cc18b42bbef2bbdcd9.js",o=!1,new Promise((function(e,i){document.head.appendChild(Object.assign(document.createElement("script"),{src:n,onload:e,onerror:i},o?{type:"module"}:void 0))})))),e.length?Promise.all(e).then(i):i()}();</script></body></html>

View File

@@ -1 +1 @@
<html lang="en-GB"><head><title>My app</title><style>my-app{display:block}</style></head><body><h1><span>Hello world!</span></h1><my-app></my-app><script src="polyfills/core-js.8e88fc5b880b02431d6fad7b3a34116d.js" nomodule=""></script><script src="./app.js" type="module"></script></body></html>
<html lang="en-GB"><head><title>My app</title><style>my-app{display:block}</style></head><body><h1><span>Hello world!</span></h1><my-app></my-app><script src="polyfills/core-js.77da473353460b142f5e09e540324336.js" nomodule=""></script><script src="./app.js" type="module"></script></body></html>

View File

@@ -1 +1 @@
<html lang="en-GB"><head><title>My app</title><style>my-app{display:block}</style><link rel="preload" href="app.js" as="script" crossorigin="anonymous"></head><body><h1><span>Hello world!</span></h1><my-app></my-app><script src="polyfills/core-js.8e88fc5b880b02431d6fad7b3a34116d.js" nomodule=""></script><script>!function(){function e(e,t){return new Promise(function(o,n){document.head.appendChild(Object.assign(document.createElement("script"),{src:e,onload:o,onerror:n},t?{type:"module"}:void 0))})}var t=[];function o(){"noModule"in HTMLScriptElement.prototype?window.importShim("./app.js"):System.import("./legacy/app.js")}"attachShadow"in Element.prototype&&"getRootNode"in Element.prototype||t.push(e("polyfills/webcomponents.88b4b5855ede008ecad6bbdd4a69e57d.js",!1)),!("noModule"in HTMLScriptElement.prototype)&&"getRootNode"in Element.prototype&&t.push(e("polyfills/custom-elements-es5-adapter.551c76d38426de62c33d8c61995c1d0f.js",!1)),t.length?Promise.all(t).then(o):o()}();</script></body></html>
<html lang="en-GB"><head><title>My app</title><style>my-app{display:block}</style><link rel="preload" href="app.js" as="script" crossorigin="anonymous"></head><body><h1><span>Hello world!</span></h1><my-app></my-app><script src="polyfills/core-js.77da473353460b142f5e09e540324336.js" nomodule=""></script><script>!function(){function e(e,t){return new Promise((function(o,n){document.head.appendChild(Object.assign(document.createElement("script"),{src:e,onload:o,onerror:n},t?{type:"module"}:void 0))}))}var t=[];function o(){"noModule"in HTMLScriptElement.prototype?window.importShim("./app.js"):System.import("./legacy/app.js")}"attachShadow"in Element.prototype&&"getRootNode"in Element.prototype||t.push(e("polyfills/webcomponents.cc3976af76b5e726e2a7e86686c930f1.js",!1)),!("noModule"in HTMLScriptElement.prototype)&&"getRootNode"in Element.prototype&&t.push(e("polyfills/custom-elements-es5-adapter.84b300ee818dce8b351c7cc7c100bcf7.js",!1)),t.length?Promise.all(t).then(o):o()}();</script></body></html>

View File

@@ -1 +1 @@
<html lang="en-GB"><head><title>My app</title><style>my-app{display:block}</style><link rel="preload" href="app.js" as="script" crossorigin="anonymous"></head><body><h1><span>Hello world!</span></h1><my-app></my-app><script>window.importShim=t=>import(t.startsWith(".")?new URL(t,document.baseURI):t);</script><script src="polyfills/custom-b.36a50cce88edee34c249d0276be6531d.js" nomodule=""></script><script src="polyfills/core-js.8e88fc5b880b02431d6fad7b3a34116d.js" nomodule=""></script><script>!function(){function e(e,o){return new Promise(function(t,n){document.head.appendChild(Object.assign(document.createElement("script"),{src:e,onload:t,onerror:n},o?{type:"module"}:void 0))})}var o=[];function t(){window.importShim("./app.js")}"foo"in window&&o.push(e("polyfills/custom-a.612310cce7c28a680112cc9eff6ef77c.js",!1)),"fetch"in window||o.push(e("polyfills/fetch.25d91ed49dc86803b0aa17858b018737.js",!1)),"noModule"in HTMLScriptElement.prototype&&!("importShim"in window)&&o.push(e("polyfills/dynamic-import.b745cfc9384367cc18b42bbef2bbdcd9.js",!1)),"attachShadow"in Element.prototype&&"getRootNode"in Element.prototype||o.push(e("polyfills/webcomponents.88b4b5855ede008ecad6bbdd4a69e57d.js",!1)),!("noModule"in HTMLScriptElement.prototype)&&"getRootNode"in Element.prototype&&o.push(e("polyfills/custom-elements-es5-adapter.551c76d38426de62c33d8c61995c1d0f.js",!1)),o.length?Promise.all(o).then(t):t()}();</script></body></html>
<html lang="en-GB"><head><title>My app</title><style>my-app{display:block}</style><link rel="preload" href="app.js" as="script" crossorigin="anonymous"></head><body><h1><span>Hello world!</span></h1><my-app></my-app><script>window.importShim=t=>import(t.startsWith(".")?new URL(t,document.baseURI):t);</script><script src="polyfills/custom-b.36a50cce88edee34c249d0276be6531d.js" nomodule=""></script><script src="polyfills/core-js.77da473353460b142f5e09e540324336.js" nomodule=""></script><script>!function(){function e(e,o){return new Promise((function(t,c){document.head.appendChild(Object.assign(document.createElement("script"),{src:e,onload:t,onerror:c},o?{type:"module"}:void 0))}))}var o=[];function t(){window.importShim("./app.js")}"foo"in window&&o.push(e("polyfills/custom-a.612310cce7c28a680112cc9eff6ef77c.js",!1)),"fetch"in window||o.push(e("polyfills/fetch.e0fa1d30ce1c9b23c0898a2e34c3fe3b.js",!1)),"noModule"in HTMLScriptElement.prototype&&!("importShim"in window)&&o.push(e("polyfills/dynamic-import.b745cfc9384367cc18b42bbef2bbdcd9.js",!1)),"attachShadow"in Element.prototype&&"getRootNode"in Element.prototype||o.push(e("polyfills/webcomponents.cc3976af76b5e726e2a7e86686c930f1.js",!1)),!("noModule"in HTMLScriptElement.prototype)&&"getRootNode"in Element.prototype&&o.push(e("polyfills/custom-elements-es5-adapter.84b300ee818dce8b351c7cc7c100bcf7.js",!1)),o.length?Promise.all(o).then(t):t()}();</script></body></html>

View File

@@ -1 +1 @@
<html lang="en-GB"><head><title>My app</title><style>my-app{display:block}</style><link rel="preload" href="app.js" as="script" crossorigin="anonymous"></head><body><h1><span>Hello world!</span></h1><my-app></my-app><script>!function(){function e(e,o){return new Promise(function(t,n){document.head.appendChild(Object.assign(document.createElement("script"),{src:e,onload:t,onerror:n},o?{type:"module"}:void 0))})}var o=[];function t(){window.importShim("./app.js")}"attachShadow"in Element.prototype&&"getRootNode"in Element.prototype||o.push(e("polyfills/webcomponents.88b4b5855ede008ecad6bbdd4a69e57d.js",!1)),!("noModule"in HTMLScriptElement.prototype)&&"getRootNode"in Element.prototype&&o.push(e("polyfills/custom-elements-es5-adapter.551c76d38426de62c33d8c61995c1d0f.js",!1)),o.length?Promise.all(o).then(t):t()}();</script></body></html>
<html lang="en-GB"><head><title>My app</title><style>my-app{display:block}</style><link rel="preload" href="app.js" as="script" crossorigin="anonymous"></head><body><h1><span>Hello world!</span></h1><my-app></my-app><script>!function(){function e(e,o){return new Promise((function(t,n){document.head.appendChild(Object.assign(document.createElement("script"),{src:e,onload:t,onerror:n},o?{type:"module"}:void 0))}))}var o=[];function t(){window.importShim("./app.js")}"attachShadow"in Element.prototype&&"getRootNode"in Element.prototype||o.push(e("polyfills/webcomponents.cc3976af76b5e726e2a7e86686c930f1.js",!1)),!("noModule"in HTMLScriptElement.prototype)&&"getRootNode"in Element.prototype&&o.push(e("polyfills/custom-elements-es5-adapter.84b300ee818dce8b351c7cc7c100bcf7.js",!1)),o.length?Promise.all(o).then(t):t()}();</script></body></html>

View File

@@ -1 +1 @@
<html lang="en-GB"><head><title>My app</title><style>my-app{display:block}</style><link rel="preload" href="app.js" as="script"><link rel="preload" href="shared.js" as="script"></head><body><h1><span>Hello world!</span></h1><my-app></my-app><script>["./app.js","./shared.js"].forEach(function(s){System.import(s)});</script></body></html>
<html lang="en-GB"><head><title>My app</title><style>my-app{display:block}</style><link rel="preload" href="app.js" as="script"><link rel="preload" href="shared.js" as="script"></head><body><h1><span>Hello world!</span></h1><my-app></my-app><script>["./app.js","./shared.js"].forEach((function(s){System.import(s)}));</script></body></html>

View File

@@ -0,0 +1,2 @@
- update karma-esm
- add polyfills flag

View File

@@ -0,0 +1,56 @@
<html>
<head>
<base href="/packages/es-dev-server/demo/compatibility/">
</head>
<body>
<img width="100" src="../logo.png">
<h1>Demo app</h1>
<p>
<a href="foo/">Foo</a>
</p>
<p>
<a href="bar/">Bar</a>
</p>
</body>
<script type="module" src="./module-features.js"></script>
<script type="module" src="./stage-4-features.js"></script>
<script type="module" src="./stage-3-features.js"></script>
<script type="module">
/* eslint-disable */
// object rest/spread
const foo = { a: 1 };
const bar = { ...foo };
console.log(bar);
// async function
async function asyncFunction() {
console.log('async function');
}
asyncFunction();
// exponentiation
console.log(2 ** 4);
// classes
class Foo {
constructor() {
console.log('foo class');
}
}
new Foo();
// template literal
console.log(`template ${'literal'}`);
</script>
</html>

View File

@@ -0,0 +1 @@
console.log('statically imported module');

View File

@@ -0,0 +1 @@
console.log('dynamically imported module');

View File

@@ -0,0 +1,5 @@
import './module-features-a.js';
import('./module-features-b.js');
console.log('import.meta.url', import.meta.url);

View File

@@ -0,0 +1,7 @@
module.exports = {
rootDir: '../../',
appIndex: 'packages/es-dev-server/demo/compatibility/index.html',
nodeResolve: true,
open: true,
watch: true,
};

View File

@@ -0,0 +1,5 @@
class ClassFields {
myField = 'foo';
}
console.log(new ClassFields().myField);

View File

@@ -0,0 +1,8 @@
console.log(
'dynamically importing stage 3 features, these should throw errors on browsers that dont support them but it should not crash babel parsing',
);
import('./stage-3-class-fields.js');
import('./stage-3-optional-chaining.js');
import('./stage-3-private-class-fields.js');
import('./stage-3-nullish-coalesc.js');

View File

@@ -0,0 +1,3 @@
const foo = null;
console.log(foo ?? 'nullish colaesced');

View File

@@ -0,0 +1,3 @@
const foo = {};
console.log('optional chaining', foo?.bar?.buz);

View File

@@ -0,0 +1,11 @@
class PrivateClassFields {
#foo = 'bar';
#bar() {
return this.#foo;
}
bar() {
return this.#bar();
}
}

View File

@@ -0,0 +1,24 @@
// object rest/spread
const foo = { a: 1 };
const bar = { ...foo };
console.log(bar);
// async function
async function asyncFunction() {
console.log('async function');
}
asyncFunction();
// exponentiation
console.log(2 ** 4);
// classes
class Foo {
constructor() {
console.log('foo class');
}
}
new Foo();
// template literal
console.log(`template ${'literal'}`);

View File

@@ -25,6 +25,9 @@
"generate-certificates": "node scripts/generate-certificates.js",
"prepublishOnly": "npm run build && ../../scripts/insert-header.js",
"start": "yarn build && node dist/cli.js --app-index demo/import-map/index.html --open --watch",
"start:compatibility": "yarn build && node dist/cli.js -c demo/compatibility/server.js",
"start:compatibility:min": "yarn build && node dist/cli.js -c demo/compatibility/server.js --compatibility min",
"start:compatibility:max": "yarn build && node dist/cli.js -c demo/compatibility/server.js --compatibility max",
"start:babel": "yarn build && node dist/cli.js --app-index demo/babel/index.html --open --watch --babel",
"start:base-path": "yarn build && node dist/cli.js --app-index demo/base-path/index.html --base-path /my-base-path --node-resolve --watch --open",
"start:base-path-compat": "yarn build && node dist/cli.js --app-index demo/base-path/index.html --base-path /my-base-path --node-resolve --compatibility all --watch --open",
@@ -62,13 +65,22 @@
"polyfill"
],
"dependencies": {
"@babel/core": "^7.3.3",
"@babel/core": "^7.7.2",
"@babel/plugin-proposal-dynamic-import": "^7.7.0",
"@babel/plugin-syntax-class-properties": "^7.2.0",
"@babel/plugin-syntax-import-meta": "^7.2.0",
"@babel/preset-env": "^7.0.0",
"@babel/plugin-syntax-nullish-coalescing-operator": "^7.2.0",
"@babel/plugin-syntax-numeric-separator": "^7.2.0",
"@babel/plugin-syntax-optional-chaining": "^7.2.0",
"@babel/preset-env": "^7.7.1",
"@open-wc/building-utils": "^2.10.2",
"@types/minimatch": "^3.0.3",
"babel-plugin-bare-import-rewrite": "^1.5.1",
"browserslist": "^4.7.2",
"browserslist-useragent": "^3.0.2",
"camelcase": "^5.3.1",
"caniuse-api": "^3.0.0",
"caniuse-lite": "^1.0.30001008",
"chokidar": "^3.0.0",
"command-line-args": "^5.0.2",
"command-line-usage": "^5.0.5",
@@ -88,22 +100,22 @@
"portfinder": "^1.0.21",
"resolve": "^1.11.1",
"strip-ansi": "^5.2.0",
"useragent": "^2.3.0",
"whatwg-url": "^7.0.0"
},
"devDependencies": {
"@babel/cli": "^7.2.3",
"@babel/plugin-proposal-class-properties": "^7.3.4",
"@babel/plugin-proposal-decorators": "^7.4.4",
"@babel/plugin-transform-modules-systemjs": "^7.5.0",
"@babel/preset-typescript": "^7.3.3",
"@babel/register": "^7.0.0",
"@babel/cli": "^7.7.0",
"@babel/plugin-proposal-class-properties": "^7.7.0",
"@babel/plugin-proposal-decorators": "^7.7.0",
"@babel/plugin-transform-modules-systemjs": "^7.7.0",
"@babel/preset-typescript": "^7.7.2",
"@babel/register": "^7.7.0",
"@types/koa": "^2.0.48",
"@types/koa-static": "^4.0.1",
"@types/lru-cache": "^5.1.0",
"@types/node-fetch": "^2.3.7",
"@types/request": "^2.48.1",
"abort-controller": "^3.0.0",
"babel-preset-typescript": "^7.0.0-alpha.19",
"chai": "^4.2.0",
"koa-proxies": "^0.8.1",
"lit-element": "^2.0.1",
@@ -116,4 +128,4 @@
"sinon": "^7.4.1",
"uuid": "^3.3.2"
}
}
}

View File

@@ -1,12 +0,0 @@
export default `
<script nomodule>
// appends a query param to each systemjs request to trigger es5 compilation
var originalResolve = System.constructor.prototype.resolve;
System.constructor.prototype.resolve = function () {
return Promise.resolve(originalResolve.apply(this, arguments))
.then(function (url) {
return url + '?legacy=true';
});
};
</script>
`;

View File

@@ -105,7 +105,6 @@ export function createConfig(config) {
babelExclude = [],
babelModernExclude = [],
basePath,
compatibility = compatibilityModes.NONE,
compress = true,
fileExtensions = [],
hostname,
@@ -122,6 +121,17 @@ export function createConfig(config) {
responseTransformers,
} = config;
let { compatibility = compatibilityModes.AUTO } = config;
if (compatibility === 'modern' || compatibility === 'all') {
/* eslint-disable-next-line no-console */
console.warn(
'[es-dev-server] Compatibility mode "modern" and "all" are deprecated, and combined into "auto".' +
'"auto" mode is turned on by default.',
);
compatibility = compatibilityModes.AUTO;
}
// middlewares used to be called customMiddlewares
// @ts-ignore
const middlewares = config.middlewares || config.customMiddlewares;

View File

@@ -1,10 +1,10 @@
export const compatibilityModes = {
NONE: 'none',
ESM: 'esm',
MODERN: 'modern',
ALL: 'all',
AUTO: 'auto',
MIN: 'min',
MAX: 'max',
};
export const messageChannelEndpoint = '/__es-dev-server-message-channel__';
export const virtualFilePrefix = '/__es-dev-server__/';
export const baseFileExtensions = ['.mjs', '.js'];
export const messageChannelEndpoint = `${virtualFilePrefix}message-channel`;

View File

@@ -3,7 +3,7 @@ import koaEtag from 'koa-etag';
import koaCompress from 'koa-compress';
import { createBasePathMiddleware } from './middleware/base-path.js';
import { createHistoryAPIFallbackMiddleware } from './middleware/history-api-fallback.js';
import { createCompileMiddleware } from './middleware/compile-middleware.js';
import { createCompatibilityMiddleware } from './middleware/compatibility-middleware.js';
import { createWatchServedFilesMiddleware } from './middleware/watch-served-files.js';
import { createTransformIndexHTMLMiddleware } from './middleware/transform-index-html.js';
import { createMessageChannelMiddleware } from './middleware/message-channel.js';
@@ -33,7 +33,6 @@ export function createMiddlewares(config, fileWatcher) {
appIndex,
appIndexDir,
babelExclude,
babelModernExclude,
basePath,
compatibilityMode,
compress,
@@ -67,9 +66,7 @@ export function createMiddlewares(config, fileWatcher) {
}
const setupBabel =
customBabelConfig ||
[compatibilityModes.ALL, compatibilityModes.MODERN].includes(compatibilityMode) ||
readUserBabelConfig;
customBabelConfig || compatibilityMode !== compatibilityModes.NONE || readUserBabelConfig;
const setupCompatibility = compatibilityMode && compatibilityMode !== compatibilityModes.NONE;
const setupTransformIndexHTML = nodeResolve || setupBabel || setupCompatibility;
const setupHistoryFallback = appIndex;
@@ -114,7 +111,7 @@ export function createMiddlewares(config, fileWatcher) {
// compile code using babel and/or resolve module imports
if (setupBabel || nodeResolve) {
middlewares.push(
createCompileMiddleware({
createCompatibilityMiddleware({
rootDir,
moduleDirectories,
readUserBabelConfig,
@@ -122,7 +119,6 @@ export function createMiddlewares(config, fileWatcher) {
extraFileExtensions,
customBabelConfig,
babelExclude,
babelModernExclude,
nodeResolve,
preserveSymlinks,
}),

View File

@@ -0,0 +1,102 @@
import stripAnsi from 'strip-ansi';
import { DEFAULT_EXTENSIONS } from '@babel/core';
import { getBodyAsString, getRequestFilePath, isPolyfill } from '../utils/utils.js';
import { sendMessageToActiveBrowsers } from '../utils/message-channel.js';
import { ResolveSyntaxError } from '../utils/resolve-module-imports.js';
import { createCompatibilityTransform } from '../utils/compatibility-transform.js';
import { getUserAgentCompat } from '../utils/user-agent-compat.js';
/**
* @typedef {object} CompatibilityMiddlewareConfig
* @property {string} rootDir
* @property {string[]} moduleDirectories
* @property {boolean} readUserBabelConfig
* @property {boolean} nodeResolve
* @property {string} compatibilityMode
* @property {object} [customBabelConfig]
* @property {string[]} extraFileExtensions
* @property {string[]} babelExclude
* @property {boolean} preserveSymlinks
*/
/**
* @param {string} errorMessage
*/
function logError(errorMessage) {
// strip babel ansi color codes because they're not colored correctly for the browser terminal
sendMessageToActiveBrowsers('error-message', JSON.stringify(stripAnsi(errorMessage)));
/* eslint-disable-next-line no-console */
console.error(`\n${errorMessage}`);
}
/**
* Sets up a middleware which runs all served js code through babel. Different babel configs
* are loaded based on the server's configuration.
*
* @param {CompatibilityMiddlewareConfig} cfg
*/
export function createCompatibilityMiddleware(cfg) {
const fileExtensions = [...DEFAULT_EXTENSIONS, ...cfg.extraFileExtensions];
const compatibilityTransform = createCompatibilityTransform(cfg);
/** @type {import('koa').Middleware} */
async function compatibilityMiddleware(ctx, next) {
const baseURL = ctx.url.split('?')[0].split('#')[0];
if (isPolyfill(ctx.url) || !fileExtensions.some(ext => baseURL.endsWith(ext))) {
return next();
}
await next();
// should be a 2xx response
if (ctx.status < 200 || ctx.status >= 300) {
return undefined;
}
const filePath = getRequestFilePath(ctx, cfg.rootDir);
// Ensure we respond with js content type
ctx.response.set('content-type', 'text/javascript');
try {
const code = await getBodyAsString(ctx);
const uaCompat = getUserAgentCompat(ctx);
const transformedCode = await compatibilityTransform({
uaCompat,
filePath,
code,
});
ctx.body = transformedCode;
ctx.status = 200;
return undefined;
} catch (error) {
// ResolveSyntaxError is thrown when resolveModuleImports runs into a syntax error from
// the lexer, but babel didn't see any errors. this means either a bug in the lexer, or
// some experimental syntax. log a message and return the module untransformed to the
// browser
if (error instanceof ResolveSyntaxError) {
logError(
`Could not resolve module imports in ${ctx.url}: Unable to parse the module, this can be due to experimental syntax or a bug in the parser.`,
);
return undefined;
}
let errorMessage = error.message;
// replace babel error messages file path with the request url for readability
if (errorMessage.startsWith(filePath)) {
errorMessage = errorMessage.replace(filePath, ctx.url);
}
errorMessage = `Error compiling: ${errorMessage}`;
// send compile error to browser for logging
ctx.body = errorMessage;
ctx.status = 500;
logError(errorMessage);
}
return undefined;
}
return compatibilityMiddleware;
}

View File

@@ -1,164 +0,0 @@
import minimatch from 'minimatch';
import stripAnsi from 'strip-ansi';
import { getBodyAsString, getRequestFilePath, isPolyfill } from '../utils/utils.js';
import { compatibilityModes, baseFileExtensions } from '../constants.js';
import { sendMessageToActiveBrowsers } from '../utils/message-channel.js';
import { resolveModuleImports, ResolveSyntaxError } from '../utils/resolve-module-imports.js';
import createBabelCompiler from '../utils/babel-compiler.js';
/**
* @typedef {object} CompileMiddlewareConfig
* @property {string} rootDir
* @property {string[]} moduleDirectories
* @property {boolean} readUserBabelConfig
* @property {boolean} nodeResolve
* @property {string} compatibilityMode
* @property {object} [customBabelConfig]
* @property {string[]} extraFileExtensions
* @property {string[]} babelModernExclude patterns to exclude from modern babel compilation
* @property {string[]} babelExclude patterns to exclude from all babel compilation
* @property {boolean} preserveSymlinks
*/
/**
* Returns whether we should compile this file with babel.
* @param {string} file
* @param {boolean} legacy
* @param {CompileMiddlewareConfig} cfg
*/
function shouldBabelCompile(file, legacy, cfg) {
if (cfg.babelExclude.some(pattern => minimatch(file, pattern))) {
return false;
}
return legacy || !cfg.babelModernExclude.some(pattern => minimatch(file, pattern));
}
/**
* Creates babel compilers based on the configuration
* @param {CompileMiddlewareConfig} cfg
*/
function createBabelCompilers(cfg) {
// create the default compiler, enable the modern config if all or modern compatibility mode is on
const compileModern = [compatibilityModes.MODERN, compatibilityModes.ALL].includes(
cfg.compatibilityMode,
);
const compileDefault = compileModern || cfg.customBabelConfig || cfg.readUserBabelConfig;
const compileLegacy = cfg.compatibilityMode === compatibilityModes.ALL;
const defaultCompiler = compileDefault
? createBabelCompiler({ ...cfg, modern: compileModern, legacy: false })
: null;
const legacy = compileLegacy
? createBabelCompiler({ readUserBabelConfig: false, modern: false, legacy: true })
: null;
return { defaultCompiler, legacy };
}
/**
* @param {string} errorMessage
*/
function logError(errorMessage) {
// strip babel ansi color codes because they're not colored correctly for the browser terminal
sendMessageToActiveBrowsers('error-message', JSON.stringify(stripAnsi(errorMessage)));
/* eslint-disable-next-line no-console */
console.error(`\n${errorMessage}`);
}
/**
* Sets up a middleware which runs all served js code through babel. Different babel configs
* are loaded based on the server's configuration.
*
* @param {CompileMiddlewareConfig} cfg
*/
export function createCompileMiddleware(cfg) {
const fileExtensions = [...baseFileExtensions, ...cfg.extraFileExtensions];
const babelCompilers = createBabelCompilers(cfg);
/** @type {import('koa').Middleware} */
async function compileMiddleware(ctx, next) {
const baseURL = ctx.url.split('?')[0].split('#')[0];
if (isPolyfill(ctx.url) || !fileExtensions.some(ext => baseURL.endsWith(ext))) {
return next();
}
await next();
// should be a 2xx response
if (ctx.status < 200 || ctx.status >= 300) {
return undefined;
}
const filePath = getRequestFilePath(ctx, cfg.rootDir);
// we use the legacy compiler if the request ends with a legacy paramter
const legacy = ctx.url.endsWith('?legacy=true');
if (legacy && !babelCompilers.legacy) {
logError(`Set compatibility mode to 'all' to compile for legacy browsers.`);
return undefined;
}
// Ensure we respond with js content type
ctx.response.set('content-type', 'text/javascript');
try {
const babelCompile = shouldBabelCompile(filePath, legacy, cfg);
let code = await getBodyAsString(ctx);
// do the default babel compilation, if configured
if (babelCompile && babelCompilers.defaultCompiler) {
code = await babelCompilers.defaultCompiler(filePath, code);
}
// resolve module imports, this isn't a babel plugin because if only node-resolve is configured,
// we don't need to run babel which makes it a lot faster
if (cfg.nodeResolve) {
code = await resolveModuleImports(cfg.rootDir, filePath, code, {
fileExtensions,
moduleDirectories: cfg.moduleDirectories,
preserveSymlinks: cfg.preserveSymlinks,
});
}
// if this is a legacy request, compile to systemjs and es5. this isn't done in the first
// babel pass, because we need valid es module syntax to resolve module imports first
if (babelCompile && legacy) {
code = await babelCompilers.legacy(filePath, code);
}
ctx.body = code;
ctx.status = 200;
return undefined;
} catch (error) {
// ResolveSyntaxError is thrown when resolveModuleImports runs into a syntax error from
// the lexer, but babel didn't see any errors. this means either a bug in the lexer, or
// some experimental syntax. log a message and return the module untransformed to the
// browser
if (error instanceof ResolveSyntaxError) {
logError(
`Could not resolve module imports in ${ctx.url}: Unable to parse the module, this can be due to experimental syntax or a bug in the parser.`,
);
return undefined;
}
let errorMessage = error.message;
// replace babel error messages file path with the request url for readability
if (errorMessage.startsWith(filePath)) {
errorMessage = errorMessage.replace(filePath, ctx.url);
}
errorMessage = `Error compiling: ${errorMessage}`;
// send compile error to browser for logging
ctx.body = errorMessage;
ctx.status = 500;
logError(errorMessage);
}
return undefined;
}
return compileMiddleware;
}

View File

@@ -1,8 +1,8 @@
/* eslint-disable no-restricted-syntax */
import LRUCache from 'lru-cache';
import fs from 'fs';
import { DEFAULT_EXTENSIONS } from '@babel/core';
import { promisify } from 'util';
import { baseFileExtensions } from '../constants.js';
import { getBodyAsString, getRequestFilePath, isGeneratedFile } from '../utils/utils.js';
const stat = promisify(fs.stat);
@@ -22,6 +22,14 @@ const stat = promisify(fs.stat);
* @property {number} lastModified
*/
/**
* Cache by user agent + file path, so that there can be unique transforms
* per browser.
*/
function createCacheKey(ctx) {
return `${ctx.get('user-agent')}${ctx.url}`;
}
/**
* @param {string} path
* @returns {Promise<number>}
@@ -39,10 +47,10 @@ async function getLastModified(path) {
* @param {ResponseCacheMiddlewareConfig} cfg
*/
export function createResponseCacheMiddleware(cfg) {
const fileExtensions = [...baseFileExtensions, ...cfg.extraFileExtensions];
const fileExtensions = [...DEFAULT_EXTENSIONS, ...cfg.extraFileExtensions];
/** @type {Map<String, String>} */
const urlForFilePaths = new Map();
const cacheKeysForFilePaths = new Map();
/** @type {import('lru-cache')<string, CacheEntry>} */
const cache = new LRUCache({
@@ -51,10 +59,10 @@ export function createResponseCacheMiddleware(cfg) {
// don't call dispose on overwriting
noDisposeOnSet: true,
// remove file path -> url mapping when we are no longer caching it
dispose(url) {
for (const [filePath, urlForFilePath] of urlForFilePaths.entries()) {
if (urlForFilePath === url) {
urlForFilePaths.delete(filePath);
dispose(cacheKey) {
for (const [filePath, cacheKeyForFilePath] of cacheKeysForFilePaths.entries()) {
if (cacheKeyForFilePath === cacheKey) {
cacheKeysForFilePaths.delete(filePath);
return;
}
}
@@ -63,15 +71,16 @@ export function createResponseCacheMiddleware(cfg) {
// remove file from cache on change
cfg.fileWatcher.addListener('change', e => {
const filePath = urlForFilePaths.get(e);
if (filePath) {
cache.del(filePath);
const cacheKey = cacheKeysForFilePaths.get(e);
if (cacheKey) {
cache.del(cacheKey);
}
});
/** @type {import('koa').Middleware} */
async function responseCacheMiddleware(ctx, next) {
const cached = cache.get(ctx.url);
const cacheKey = createCacheKey(ctx);
const cached = cache.get(cacheKey);
if (cached) {
// we watch files, and remove them on change, but there can be edge cases
// where these events do not come through properly (the file system is a 'live' system)
@@ -84,7 +93,7 @@ export function createResponseCacheMiddleware(cfg) {
}
// remove file from cache if it changed in the meantime, and serve regularly
cache.del(ctx.url);
cache.del(cacheKey);
}
await next();
@@ -104,8 +113,8 @@ export function createResponseCacheMiddleware(cfg) {
const body = await getBodyAsString(ctx);
const filePath = getRequestFilePath(ctx, cfg.rootDir);
urlForFilePaths.set(filePath, ctx.url);
cache.set(ctx.url, {
cacheKeysForFilePaths.set(filePath, ctx.url);
cache.set(cacheKey, {
body,
headers: ctx.response.headers,
filePath,

View File

@@ -8,6 +8,8 @@ import {
toBrowserPath,
isInlineModule,
} from '../utils/utils.js';
import { getUserAgentCompat } from '../utils/user-agent-compat.js';
import { compatibilityModes } from '../constants.js';
/**
* @typedef {object} TransformIndexHTMLMiddlewareConfig
@@ -40,6 +42,11 @@ export function createTransformIndexHTMLMiddleware(cfg) {
/** @type {import('koa').Middleware} */
async function transformIndexHTMLMiddleware(ctx, next) {
const uaCompat = getUserAgentCompat(ctx);
if (cfg.compatibilityMode === compatibilityModes.AUTO && uaCompat.modern) {
return next();
}
// serve polyfill from memory if url matches
const polyfill = polyfills.get(ctx.url);
if (polyfill) {
@@ -47,7 +54,7 @@ export function createTransformIndexHTMLMiddleware(cfg) {
// aggresively cache polyfills, they are hashed so content changes bust the cache
ctx.response.set('cache-control', 'public, max-age=31536000');
ctx.response.set('content-type', 'text/javascript');
return;
return undefined;
}
/**
@@ -74,14 +81,14 @@ export function createTransformIndexHTMLMiddleware(cfg) {
ctx.response.set('content-type', 'text/javascript');
ctx.response.set('cache-control', 'no-cache');
ctx.response.set('last-modified', indexHTML.lastModified);
return;
return undefined;
}
await next();
// check if we are serving an index.html
if (!(await isIndexHTMLResponse(ctx, cfg.appIndex))) {
return;
return undefined;
}
const lastModified = ctx.response.headers['last-modified'];
@@ -90,7 +97,7 @@ export function createTransformIndexHTMLMiddleware(cfg) {
const data = indexHTMLData.get(ctx.url);
if (data && data.lastModified === lastModified) {
ctx.body = data.indexHTML;
return;
return undefined;
}
// transforms index.html to make the code load correctly with the right polyfills and shims
@@ -99,6 +106,7 @@ export function createTransformIndexHTMLMiddleware(cfg) {
ctx.url,
indexHTMLString,
cfg.compatibilityMode,
uaCompat,
);
// add new index.html
@@ -115,6 +123,7 @@ export function createTransformIndexHTMLMiddleware(cfg) {
}
polyfills.set(`${root}${toBrowserPath(p.path)}`, p.content);
});
return undefined;
}
return transformIndexHTMLMiddleware;

View File

@@ -1,93 +0,0 @@
import { transformAsync } from '@babel/core';
import deepmerge from 'deepmerge';
import { findSupportedBrowsers } from '@open-wc/building-utils';
// string length at which babel starts deoptimizing
const BABEL_DEOPTIMIZED_LENGTH = 500000;
/**
* @typedef {object} CreateBabelCompilerConfig
* @property {boolean} readUserBabelConfig
* @property {boolean} modern
* @property {object} [customBabelConfig]
* @property {boolean} legacy
* @property {boolean} [systemJs]
*/
/** @param {boolean} readUserBabelConfig */
function createDefaultConfig(readUserBabelConfig) {
return {
caller: {
name: 'es-dev-server',
supportsStaticESM: true,
},
plugins: [
require.resolve('@babel/plugin-syntax-dynamic-import'),
require.resolve('@babel/plugin-syntax-import-meta'),
],
sourceType: 'module',
// only read the user's babelrc and config if explicitly enabled
babelrc: readUserBabelConfig,
configFile: readUserBabelConfig,
};
}
const modernConfig = {
presets: [
[
require.resolve('@babel/preset-env'),
{
targets: findSupportedBrowsers(),
useBuiltIns: false,
modules: false,
},
],
],
};
const legacyConfig = {
presets: [
[
require.resolve('@babel/preset-env'),
{
targets: ['ie 11'],
useBuiltIns: false,
modules: 'systemjs',
},
],
],
};
/**
* Creates a babel compiler backed by an in-memory last-read-out cache. Sets up configuration
* based on a number of presets.
*
* @param {CreateBabelCompilerConfig} cfg
*/
export default function createBabelCompiler(cfg) {
// create babel configuration based on a number of presets
const babelConfigs = [
// custom babel config if it's there
createDefaultConfig(cfg.readUserBabelConfig),
cfg.modern && modernConfig,
cfg.legacy && legacyConfig,
cfg.customBabelConfig,
].filter(Boolean);
const babelConfig = deepmerge.all(babelConfigs);
/**
* @param {string} filename
* @param {string} source
* @returns {Promise<string>}
*/
function compile(filename, source) {
// babel runs out of memory when processing source maps for large files
const sourceMaps = source.length > BABEL_DEOPTIMIZED_LENGTH ? false : 'inline';
return transformAsync(source, { filename, sourceMaps, ...babelConfig }).then(
result => result.code,
);
}
return compile;
}

View File

@@ -0,0 +1,118 @@
import { transformAsync } from '@babel/core';
import deepmerge from 'deepmerge';
// string length at which babel starts deoptimizing
const BABEL_DEOPTIMIZED_LENGTH = 500000;
/**
* @typedef {object} CreateBabelTransformConfig
* @property {string | string[]} [browserTarget]
* @property {boolean} [polyfillModules]
* @property {boolean} [readUserBabelConfig]
* @property {object} [customBabelConfig]
*/
/** @typedef {(filename: string, source: string) => Promise<string>} BabelTransform */
/**
* Creates a babel compiler backed by an in-memory last-read-out cache. Sets up configuration
* based on a number of presets.
*
* @returns {BabelTransform}
*/
export function createBabelTransform(babelConfig) {
return async function transform(filename, source) {
// babel runs out of memory when processing source maps for large files
const sourceMaps = source.length > BABEL_DEOPTIMIZED_LENGTH ? false : 'inline';
const result = await transformAsync(source, { filename, sourceMaps, ...babelConfig });
return result.code;
};
}
export const defaultConfig = {
caller: {
name: 'es-dev-server',
supportsStaticESM: true,
},
/**
* Enable syntax plugins for stage 3 features. This does **not** transform them,
* it only ensures that babel does not crash when you're using them.
*/
plugins: [
require.resolve('@babel/plugin-syntax-import-meta'),
require.resolve('@babel/plugin-syntax-class-properties'),
require.resolve('@babel/plugin-syntax-nullish-coalescing-operator'),
require.resolve('@babel/plugin-syntax-optional-chaining'),
require.resolve('@babel/plugin-syntax-numeric-separator'),
],
sourceType: 'module',
};
/**
* @param {CreateBabelTransformConfig} cfg
* @returns
*/
export function createCompatibilityBabelTransform(cfg) {
const config = deepmerge(
defaultConfig,
{
presets: [
[
require.resolve('@babel/preset-env'),
{
targets: Array.isArray(cfg.browserTarget) ? cfg.browserTarget : [cfg.browserTarget],
useBuiltIns: false,
shippedProposals: true,
modules: false,
},
],
],
// only read the user's babelrc and config if explicitly enabled
babelrc: cfg.readUserBabelConfig,
configFile: cfg.readUserBabelConfig,
},
cfg.customBabelConfig,
);
return createBabelTransform(config);
}
/** @param {CreateBabelTransformConfig} cfg */
export function createMinCompatibilityBabelTransform(cfg) {
return createCompatibilityBabelTransform({
...cfg,
browserTarget: [
'last 2 Chrome major versions',
'last 2 ChromeAndroid major versions',
'last 2 Firefox major versions',
'last 2 Edge major versions',
'last 2 Safari major versions',
'last 2 iOS major versions',
],
});
}
/** @param {CreateBabelTransformConfig} cfg */
export function createMaxCompatibilityBabelTransform(cfg) {
return createCompatibilityBabelTransform({
...cfg,
browserTarget: ['defaults', 'ie 10'],
});
}
/**
* config for only polyfilling modules, this should be run after the compatibility
* config where all js is already compiled to a compatible format. we therefore don't
* include any extra plugins or user configuration
*/
const polyfillModulesConfig = deepmerge(defaultConfig, {
plugins: [
require.resolve('@babel/plugin-proposal-dynamic-import'),
require.resolve('@babel/plugin-transform-modules-systemjs'),
],
babelrc: false,
configFile: false,
});
export const polyfillModulesTransform = createBabelTransform(polyfillModulesConfig);

View File

@@ -1,72 +0,0 @@
import LRUCache from 'lru-cache';
/**
* @typedef {object} CacheEntry
* @property {String} code
* @property {string} lastModified
*/
/**
* Creates a compiler backed by an in-memory last-read-out cache.
*
* @param {(filePath: string, source: string) => Promise<string>} compile
*/
export function createCachingCompiler(compile) {
/** @type {import('lru-cache')<string, CacheEntry>} */
const cache = new LRUCache({
length: (n, key) => n.lastModified.length + n.code.length + key.length,
max: 52428800,
});
/** @type {Map<string, Promise<string>>} */
const compileTasks = new Map();
/**
* Compiles code and stores the result
*
* @param {string} filePath the file being compiled
* @param {string} sourceCode the origin source code
* @param {string} lastModified last time the file was modified on the filesystem, used for caching
* @returns {Promise<string>}
*/
async function cachingCompile(filePath, sourceCode, lastModified) {
// check for currently running compile tasks to avoid race conditions, for example when
// multiple browser instances request the same module
const existingCompileTask = compileTasks.get(filePath);
if (existingCompileTask) {
return existingCompileTask;
}
const compileTask = compile(filePath, sourceCode);
compileTasks.set(filePath, compileTask);
try {
const compiledCode = await compileTask;
// cache result for later
cache.set(filePath, { code: compiledCode, lastModified });
return compiledCode;
} finally {
compileTasks.delete(filePath);
}
}
/**
* Returns cached babel compilation result if we have one for the given file, and if it didn't change
* in the meantime.
*
* @param {string} filePath
* @returns {string | undefined}
*/
function getFromCache(filePath, lastModified) {
const cacheEntry = cache.get(filePath);
if (cacheEntry && cacheEntry.lastModified === lastModified) {
return cacheEntry.code;
}
return undefined;
}
return {
compile: cachingCompile,
getFromCache,
};
}

View File

@@ -0,0 +1,127 @@
import minimatch from 'minimatch';
import { DEFAULT_EXTENSIONS } from '@babel/core';
import {
createCompatibilityBabelTransform,
createMinCompatibilityBabelTransform,
createMaxCompatibilityBabelTransform,
polyfillModulesTransform,
} from './babel-transform.js';
import { resolveModuleImports } from './resolve-module-imports.js';
import { compatibilityModes } from '../constants.js';
/** @typedef {import('./babel-transform.js').BabelTransform} BabelTransform */
/**
* @typedef {object} CompatibilityTransformConfig
* @property {string} rootDir
* @property {string[]} moduleDirectories
* @property {boolean} readUserBabelConfig
* @property {boolean} nodeResolve
* @property {string} compatibilityMode
* @property {object} [customBabelConfig]
* @property {string[]} extraFileExtensions
* @property {string[]} babelExclude
* @property {boolean} preserveSymlinks
*/
/**
* @typedef {object} FileData
* @property {import('./user-agent-compat.js').UserAgentCompat} uaCompat
* @property {string} filePath
* @property {string} code
*/
/**
* @param {CompatibilityTransformConfig} cfg
*/
export function createCompatibilityTransform(cfg) {
const fileExtensions = [...DEFAULT_EXTENSIONS, ...cfg.extraFileExtensions];
/** @type {Map<string, BabelTransform>} */
const babelTransforms = new Map();
const minCompatibilityTransform = createMinCompatibilityBabelTransform(cfg);
const maxCompatibilityTransform = createMaxCompatibilityBabelTransform(cfg);
/**
* Gets the babel compatibility transform for the given user agent. Caches
* babel previously created configs.
* @param {FileData} file
*/
function getAutoCompatibilityBabelTranform(file) {
const { browserTarget } = file.uaCompat;
const cachedTransform = babelTransforms.get(browserTarget);
if (cachedTransform) {
return cachedTransform;
}
const babelTransform = createCompatibilityBabelTransform({
browserTarget,
readUserBabelConfig: cfg.readUserBabelConfig,
customBabelConfig: cfg.customBabelConfig,
});
babelTransforms.set(browserTarget, babelTransform);
return babelTransform;
}
/**
* Gets the compatibility transform function based on the compatibility
* mode.
* @param {FileData} file
*/
function getCompatibilityBabelTranform(file) {
switch (cfg.compatibilityMode) {
case compatibilityModes.AUTO:
return file.uaCompat.browserTarget
? getAutoCompatibilityBabelTranform(file)
: // fall back to max if browser target couldn't be found
maxCompatibilityTransform;
case compatibilityModes.MIN:
return minCompatibilityTransform;
case compatibilityModes.MAX:
return maxCompatibilityTransform;
default:
throw new Error(`Unknown compatibility mode: ${cfg.compatibilityMode}`);
}
}
/**
* @param {FileData} file
*/
async function compatibilityTransform(file) {
let transformedCode = file.code;
const isExcluded = cfg.babelExclude.some(pattern => minimatch(file.filePath, pattern));
// Modern browsers don't need any transformation, so we avoid parsing with babel for performance.
const skipBabelTransform =
cfg.compatibilityMode === compatibilityModes.AUTO && file.uaCompat.modern;
/**
* Transform code to a compatible format based on the compatibility setting. We keep ESM syntax
* in this step, this will be transformed later if necessary.
*/
if (!isExcluded && !skipBabelTransform) {
const compatTransform = getCompatibilityBabelTranform(file);
transformedCode = await compatTransform(file.filePath, transformedCode);
}
/**
* Resolve module imports. This isn't a babel plugin because if only node-resolve is configured,
* we don't need to run babel which makes it a lot faster
*/
if (cfg.nodeResolve) {
transformedCode = await resolveModuleImports(cfg.rootDir, file.filePath, transformedCode, {
fileExtensions,
moduleDirectories: cfg.moduleDirectories,
preserveSymlinks: cfg.preserveSymlinks,
});
}
/**
* If this browser doesn't support es modules, compile it to systemjs using babel.
*/
if (!file.uaCompat.supportsEsm || cfg.compatibilityMode === compatibilityModes.MAX) {
transformedCode = await polyfillModulesTransform(file.filePath, transformedCode);
}
return transformedCode;
}
return compatibilityTransform;
}

View File

@@ -1,19 +1,16 @@
import { compatibilityModes } from '../constants.js';
/**
* @param {string} indexHTML
* @param {{ inlineImportMaps: string[], importMapPaths: string[] }} data
* @param {string} type
* @returns {string}
*/
export function addPolyfilledImportMap(indexHTML, data, type) {
export function addPolyfilledImportMaps(indexHTML, data) {
let transformedIndexHTML = indexHTML;
if (data.inlineImportMaps) {
data.inlineImportMaps.forEach(importMap => {
transformedIndexHTML = indexHTML.replace(
'<head>',
`<head>\n <script type="${type}">${importMap}</script>\n`,
`<head>\n <script type="systemjs-importmap">${importMap}</script>\n`,
);
});
}
@@ -22,34 +19,10 @@ export function addPolyfilledImportMap(indexHTML, data, type) {
data.importMapPaths.forEach(importMapPath => {
transformedIndexHTML = indexHTML.replace(
'<head>',
`<head>\n <script type="${type}" src="${importMapPath}"></script>\n`,
`<head>\n <script type="systemjs-importmap" src="${importMapPath}"></script>\n`,
);
});
}
return transformedIndexHTML;
}
/**
* @param {string} baseIndexHTML
* @param {string} compatibilityMode
* @param {{ inlineImportMaps: string[], importMapPaths: string[] }} data
*/
export function addPolyfilledImportMaps(baseIndexHTML, compatibilityMode, data) {
let indexHTML = baseIndexHTML;
// no need to polyfill anything without compatibility mode
if (compatibilityMode === compatibilityModes.NONE) {
return indexHTML;
}
// add importmap-shim for use with es-module-shims
indexHTML = addPolyfilledImportMap(indexHTML, data, 'importmap-shim');
// if we need to support legacy browsers, also add systemjs-importmap
if (compatibilityMode === compatibilityModes.ALL) {
indexHTML = addPolyfilledImportMap(indexHTML, data, 'systemjs-importmap');
}
return indexHTML;
}

View File

@@ -1,37 +1,9 @@
import { compatibilityModes } from '../constants.js';
/** @type {import('@open-wc/building-utils/index-html/create-index-html').PolyfillsConfig} */
export const esmPolyfills = {
esModuleShims: true,
};
/** @type {import('@open-wc/building-utils/index-html/create-index-html').PolyfillsConfig} */
export const modernPolyfills = {
...esmPolyfills,
webcomponents: true,
};
/** @type {import('@open-wc/building-utils/index-html/create-index-html').PolyfillsConfig} */
export const legacyPolyfills = {
...modernPolyfills,
export const polyfills = {
coreJs: true,
regeneratorRuntime: true,
fetch: true,
systemJsExtended: true,
webcomponents: true,
intersectionObserver: true,
};
/**
* @param {string} compatibilityMode
*/
export function getPolyfills(compatibilityMode) {
switch (compatibilityMode) {
case compatibilityModes.ESM:
return esmPolyfills;
case compatibilityModes.MODERN:
return modernPolyfills;
case compatibilityModes.ALL:
return legacyPolyfills;
default:
return {};
}
}

View File

@@ -2,21 +2,23 @@
import whatwgUrl from 'whatwg-url';
import nodeResolve from 'resolve';
import pathIsInside from 'path-is-inside';
import deepmerge from 'deepmerge';
// typescript can't resolve a .cjs file
// @ts-ignore
import { parse } from 'es-module-lexer';
import path from 'path';
import { toBrowserPath } from './utils.js';
import createBabelCompiler from './babel-compiler.js';
import { createBabelTransform, defaultConfig } from './babel-transform.js';
const CONCAT_NO_PACKAGE_ERROR =
'Dynamic import with a concatenated string should start with a valid full package name.';
const babelCompile = createBabelCompiler({
readUserBabelConfig: false,
modern: false,
legacy: false,
});
const babelTransform = createBabelTransform(
deepmerge(defaultConfig, {
babelrc: false,
configFile: false,
}),
);
export class ResolveSyntaxError extends Error {}
@@ -88,7 +90,7 @@ async function resolveConcatenatedImport(sourceFileDir, importPath, config) {
async function createSyntaxError(sourceFilename, source, originalError) {
// if es-module-lexer cannot parse the file, use babel to generate a user-friendly error message
await babelCompile(sourceFilename, source);
await babelTransform(sourceFilename, source);
// if babel did not have any error, throw a syntax error and log the original error
console.error(originalError);
throw new ResolveSyntaxError();

View File

@@ -1,8 +1,7 @@
import { extractResources, createIndexHTML } from '@open-wc/building-utils/index-html/index.js';
import { compatibilityModes } from '../constants.js';
import systemJsLegacyResolveScript from '../browser-scripts/system-js-legacy-resolve.js';
import { getPolyfills } from './polyfills.js';
import { polyfills } from './polyfills.js';
import { addPolyfilledImportMaps } from './import-maps.js';
import { compatibilityModes, virtualFilePrefix } from '../constants.js';
/**
* transforms index.html, extracting any modules and import maps and adds them back
@@ -11,8 +10,13 @@ import { addPolyfilledImportMaps } from './import-maps.js';
* @param {string} indexUrl
* @param {string} indexHTMLString
* @param {string} compatibilityMode
* @param {import('./user-agent-compat').UserAgentCompat} uaCompat
*/
export function getTransformedIndexHTML(indexUrl, indexHTMLString, compatibilityMode) {
export function getTransformedIndexHTML(indexUrl, indexHTMLString, compatibilityMode, uaCompat) {
const polyfillModules =
(compatibilityMode === compatibilityModes.AUTO && !uaCompat.supportsEsm) ||
compatibilityMode === compatibilityModes.MAX;
// extract input files from index.html
const resources = extractResources(indexHTMLString, { removeImportMaps: false });
/** @type {Map<string, string>} */
@@ -24,7 +28,9 @@ export function getTransformedIndexHTML(indexUrl, indexHTMLString, compatibility
const files = [
...resources.jsModules,
...[...inlineModules.keys()].map(e => `${e}?source=${encodeURIComponent(indexUrl)}`),
...[...inlineModules.keys()].map(
e => `${virtualFilePrefix}${e}?source=${encodeURIComponent(indexUrl)}`,
),
];
if (files.length === 0) {
@@ -38,27 +44,24 @@ export function getTransformedIndexHTML(indexUrl, indexHTMLString, compatibility
// create a new index.html with injected polyfills and loader script
const createResult = createIndexHTML(resources.indexHTML, {
entries: {
type: 'module',
type: polyfillModules ? 'system' : 'module',
files,
},
legacyEntries:
compatibilityMode !== compatibilityModes.ALL
? undefined
: {
type: 'system',
files,
},
polyfills: getPolyfills(compatibilityMode),
polyfills,
minify: false,
preload: false,
});
let { indexHTML } = createResult;
indexHTML = addPolyfilledImportMaps(indexHTML, compatibilityMode, resources);
// inject systemjs resolver which appends a query param to trigger es5 compilation
if (compatibilityMode === compatibilityModes.ALL) {
indexHTML = indexHTML.replace('</body>', `${systemJsLegacyResolveScript}</body>`);
if (polyfillModules) {
indexHTML = addPolyfilledImportMaps(indexHTML, resources);
} else {
// this is needed because @open-wc/building-utils uses importShim to import the main app
// but we don't use modules on browsers without dynamic imports, so we can just alias it
indexHTML = indexHTML.replace(
'<script>',
'<script>window.importShim = s => import(s);</script><script>',
);
}
return {

View File

@@ -0,0 +1,157 @@
/* eslint-disable no-console */
import { resolveUserAgent, matchesUA } from 'browserslist-useragent';
import * as browserslist from 'browserslist';
import * as caniuse from 'caniuse-api';
/**
* @typedef {object} UserAgentCompat
* @property {string} browserTarget the browser name and version, usable for targeted compilation
* @property {boolean} modern whether this is a modern browser: the latest 2 of the major browsers
* @property {boolean} supportsEsm whether this browsers supports es modules
*/
/**
* We compile to es modules when the browser supports module scripts, dynamic imports
* and import.meta.url. Unfortunately, caniuse doesn't report import.meta.url. Chrome 63
* is the only browser which suppors dynamic imports but not import.meta.url.
*/
const moduleFeatures = ['es6-module', 'es6-module-dynamic-import'];
// Cache resolved user agents because we're going to request them a lot
/** @type {Map<string, UserAgentCompat>} */
const cache = new Map();
// Some browsers are resolved to a name unknown to browserslist
const browserAliases = {
'UC Browser': 'UCAndroid',
};
/**
* The user agent parser does not always return a valid version for samsung,
* so we need to normalize it.
*/
function normalizeSamsungVersion(browser, version) {
try {
browserslist(`${browser} ${version}`);
// browserslist didn't throw, return the valid version
return version;
} catch (error) {
// we gave an invalid version to browserslist, so we try to
// find the nearest matching major version for samsung browser
const validVersions = [
...Object.keys(browserslist.versionAliases.samsung),
...browserslist.data.samsung.versions,
];
return validVersions.find(validVersion => validVersion[0] === version[0]);
}
}
/**
* The user agent parser returns patch versions, which browserslist doesn't
* know about. Mostly the major version is sufficient, except for safari.
* @param {*} resolvedUA
*/
function getBrowserVersion(resolvedUA) {
const version = resolvedUA.version.split('.');
switch (resolvedUA.family) {
case 'Safari':
case 'iOS':
return `${version[0]}.${version[1]}`;
case 'Samsung':
return normalizeSamsungVersion(resolvedUA.family, version);
default:
return version[0];
}
}
function getBrowserName(browserName) {
return browserAliases[browserName] || browserName;
}
/**
* Returns whether this browser supports es modules. We count this when the browser
* supports module syntax, scripts, dynamic imports. We can't feature detect
* import.meta.url but any browsers which supports dynamic import supports import.meta.url,
* except for chrome 63.
* @param {string} browserTarget
*/
function getSupportsEsm(browserTarget) {
if (browserTarget.toLowerCase() === 'chrome 63') {
return false;
}
return moduleFeatures.every(ft => caniuse.isSupported(ft, browserTarget));
}
/**
* Calculates the user agent's compatibility.
* @param {string} userAgent
*/
function calcUserAgentCompat(userAgent) {
let resolvedUA;
try {
resolvedUA = resolveUserAgent(userAgent);
const browserTarget = `${getBrowserName(resolvedUA.family)} ${getBrowserVersion(resolvedUA)}`;
const supportsEsm = getSupportsEsm(browserTarget);
const modern = matchesUA(userAgent, {
browsers: [
'last 2 Chrome major versions',
'unreleased Chrome versions',
'last 2 ChromeAndroid major versions',
'unreleased ChromeAndroid versions',
'last 2 Opera major versions',
'unreleased Opera versions',
'last 2 Firefox major versions',
'unreleased Firefox versions',
'last 2 FirefoxAndroid major versions',
'unreleased FirefoxAndroid versions',
// // safari versions progress more slowly
'last 1 Safari versions',
'last 1 iOS versions',
// unreleased safari throws an error?
// 'unreleased Safari versions',
],
allowHigherVersions: true,
});
return {
browserTarget,
modern,
supportsEsm,
};
} catch (error) {
console.error(error);
let message = '\n';
if (!resolvedUA) {
message = `Unable to resolve user agent: ${userAgent}.`;
} else {
message = `Resolved to invalid user agent: ${JSON.stringify(resolvedUA)}.`;
}
console.warn(
`${message} Using max compatibility mode. Try updating your dependencies, ` +
'or file an issue with a reproduction.\n',
);
return {
browserTarget: null,
modern: false,
supportsEsm: false,
};
}
}
/**
* @param {import('koa').Context} ctx
* @returns {UserAgentCompat}
*/
export function getUserAgentCompat(ctx) {
const userAgent = ctx.get('user-agent');
let compat = cache.get(userAgent);
if (!compat) {
compat = calcUserAgentCompat(userAgent);
cache.set(userAgent, compat);
}
return compat;
}

View File

@@ -2,6 +2,7 @@ import isStream from 'is-stream';
import getStream from 'get-stream';
import Stream from 'stream';
import path from 'path';
import { virtualFilePrefix } from '../constants.js';
/**
* koa-static stores the original served file path on ctx.body.path,
@@ -117,7 +118,7 @@ export function isPolyfill(url) {
* @param {string} url
*/
export function isInlineModule(url) {
return url.includes('/inline-module-') && url.includes('?source=');
return url.includes(`${virtualFilePrefix}inline-module-`) && url.includes('?source=');
}
/**
@@ -125,7 +126,7 @@ export function isInlineModule(url) {
* @param {string} url
*/
export function isGeneratedFile(url) {
return isPolyfill(url) || isInlineModule(url);
return url.startsWith(virtualFilePrefix) || isPolyfill(url) || isInlineModule(url);
}
/**

View File

@@ -0,0 +1,15 @@
import '../node_modules/my-module/index.js?foo=bar';
import '../node_modules/my-module/index.js#foo';
import '../node_modules/my-module/index.js?foo=bar#bar';
import './local-module.js?foo=bar';
import './local-module.js#foo';
import './local-module.js?foo=bar#bar';
import('../node_modules/my-module/index.js?foo=bar');
import('../node_modules/my-module/index.js#foo');
import('../node_modules/my-module/index.js?foo=bar#bar');
import('./local-module.js?foo=bar');
import('./local-module.js#foo');
import('./local-module.js?foo=bar#bar');

View File

@@ -1,107 +0,0 @@
<html><head>
<script type="systemjs-importmap">
{
"imports": {
"foo": "/node_modules/foo/foo.js",
"bar": "/node_modules/bar/bar.js"
}
}
</script>
<script type="importmap-shim">
{
"imports": {
"foo": "/node_modules/foo/foo.js",
"bar": "/node_modules/bar/bar.js"
}
}
</script>
<title>My app</title>
<script type="importmap">
{
"imports": {
"foo": "/node_modules/foo/foo.js",
"bar": "/node_modules/bar/bar.js"
}
}
</script>
</head>
<body>
<script src="polyfills/core-js.8e88fc5b880b02431d6fad7b3a34116d.js" nomodule=""></script><script src="polyfills/systemjs.dd4729ef25f652d7d05aed80a2ea00e7.js" nomodule=""></script><script src="polyfills/regenerator-runtime.45f8b90cc0fac37d446d8da4b68e27f5.js" nomodule=""></script><script>(function() {
function loadScript(src, module) {
return new Promise(function (resolve, reject) {
document.head.appendChild(Object.assign(
document.createElement('script'),
{ src: src, onload: resolve, onerror: reject },
module ? { type: 'module' } : undefined
));
});
}
var polyfills = [];
if (!('fetch' in window)) { polyfills.push(loadScript('polyfills/fetch.8c78815e37189a88a5ccc668ab31698f.js', false)) }
if (!('attachShadow' in Element.prototype) || !('getRootNode' in Element.prototype)) { polyfills.push(loadScript('polyfills/webcomponents.88b4b5855ede008ecad6bbdd4a69e57d.js', false)) }
if (!('noModule' in HTMLScriptElement.prototype) && 'getRootNode' in Element.prototype) { polyfills.push(loadScript('polyfills/custom-elements-es5-adapter.01496319407efe7ef743b10afbb93714.js', false)) }
if ('noModule' in HTMLScriptElement.prototype) { polyfills.push(loadScript('polyfills/es-module-shims.eb2529466e6458528ad13c7d46e47a52.js', true)) }
function loadEntries() {
'noModule' in HTMLScriptElement.prototype ? window.importShim('./app.js') : System.import('./app.js');
}
polyfills.length ? Promise.all(polyfills).then(loadEntries) : loadEntries();
})();</script>
<script nomodule>
// appends a query param to each systemjs request to trigger es5 compilation
var originalResolve = System.constructor.prototype.resolve;
System.constructor.prototype.resolve = function () {
return Promise.resolve(originalResolve.apply(this, arguments))
.then(function (url) {
return url + '?legacy=true';
});
};
</script>
<script>
// sets up a message channel with es-dev-server to receive events
// for reloading the browser on file change or logging errors
(function () {
if (!('EventSource' in window)) {
return;
}
var eventSource = new EventSource('/__es-dev-server-message-channel__');
var reloading = false;
eventSource.addEventListener('file-changed', function (e) {
reloading = true;
location.reload();
});
eventSource.addEventListener('error-message', function (e) {
if (reloading) {
return;
}
console.error(JSON.parse(e.data));
});
eventSource.addEventListener('error', function () {
if (reloading) {
return;
}
console.log('Disconnected from es-dev-server, no longer reloading on file changes.');
eventSource.close();
});
}());
</script>
</body>
</html>

View File

@@ -0,0 +1,22 @@
<html>
<head>
<title>My app</title>
<script type="importmap">
{
"imports": {
"foo": "/node_modules/foo/foo.js",
"bar": "/node_modules/bar/bar.js"
}
}
</script>
</head>
<body>
<script type="module" src="./app.js"></script>
</body>
</html>

View File

@@ -1,48 +0,0 @@
<html><head>
<script type="importmap-shim">
{
"imports": {
"foo": "/node_modules/foo/foo.js",
"bar": "/node_modules/bar/bar.js"
}
}
</script>
<title>My app</title>
<script type="importmap">
{
"imports": {
"foo": "/node_modules/foo/foo.js",
"bar": "/node_modules/bar/bar.js"
}
}
</script>
</head>
<body>
<script>(function() {
function loadScript(src, module) {
return new Promise(function (resolve, reject) {
document.head.appendChild(Object.assign(
document.createElement('script'),
{ src: src, onload: resolve, onerror: reject },
module ? { type: 'module' } : undefined
));
});
}
var polyfills = [];
if ('noModule' in HTMLScriptElement.prototype) { polyfills.push(loadScript('polyfills/es-module-shims.eb2529466e6458528ad13c7d46e47a52.js', true)) }
function loadEntries() {
window.importShim('./app.js');
}
polyfills.length ? Promise.all(polyfills).then(loadEntries) : loadEntries();
})();</script></body></html>

View File

@@ -0,0 +1,50 @@
<html><head>
<script type="systemjs-importmap">
{
"imports": {
"foo": "/node_modules/foo/foo.js",
"bar": "/node_modules/bar/bar.js"
}
}
</script>
<title>My app</title>
<script type="importmap">
{
"imports": {
"foo": "/node_modules/foo/foo.js",
"bar": "/node_modules/bar/bar.js"
}
}
</script>
</head>
<body>
<script src="polyfills/core-js.77da473353460b142f5e09e540324336.js" nomodule=""></script><script src="polyfills/systemjs.dd4729ef25f652d7d05aed80a2ea00e7.js"></script><script src="polyfills/regenerator-runtime.45f8b90cc0fac37d446d8da4b68e27f5.js" nomodule=""></script><script>(function() {
function loadScript(src, module) {
return new Promise(function (resolve, reject) {
document.head.appendChild(Object.assign(
document.createElement('script'),
{ src: src, onload: resolve, onerror: reject },
module ? { type: 'module' } : undefined
));
});
}
var polyfills = [];
if (!('fetch' in window)) { polyfills.push(loadScript('polyfills/fetch.8c78815e37189a88a5ccc668ab31698f.js', false)) }
if (!('attachShadow' in Element.prototype) || !('getRootNode' in Element.prototype)) { polyfills.push(loadScript('polyfills/webcomponents.cc3976af76b5e726e2a7e86686c930f1.js', false)) }
if (!('noModule' in HTMLScriptElement.prototype) && 'getRootNode' in Element.prototype) { polyfills.push(loadScript('polyfills/custom-elements-es5-adapter.0ec040d16c6fd1b9220084b0b925cbe0.js', false)) }
function loadEntries() {
System.import('./app.js');
}
polyfills.length ? Promise.all(polyfills).then(loadEntries) : loadEntries();
})();</script></body></html>

View File

@@ -0,0 +1,41 @@
<html><head>
<title>My app</title>
<script type="importmap">
{
"imports": {
"foo": "/node_modules/foo/foo.js",
"bar": "/node_modules/bar/bar.js"
}
}
</script>
</head>
<body>
<script src="polyfills/core-js.77da473353460b142f5e09e540324336.js" nomodule=""></script><script src="polyfills/regenerator-runtime.45f8b90cc0fac37d446d8da4b68e27f5.js" nomodule=""></script><script>(function() {
function loadScript(src, module) {
return new Promise(function (resolve, reject) {
document.head.appendChild(Object.assign(
document.createElement('script'),
{ src: src, onload: resolve, onerror: reject },
module ? { type: 'module' } : undefined
));
});
}
var polyfills = [];
if (!('fetch' in window)) { polyfills.push(loadScript('polyfills/fetch.8c78815e37189a88a5ccc668ab31698f.js', false)) }
if (!('attachShadow' in Element.prototype) || !('getRootNode' in Element.prototype)) { polyfills.push(loadScript('polyfills/webcomponents.cc3976af76b5e726e2a7e86686c930f1.js', false)) }
if (!('noModule' in HTMLScriptElement.prototype) && 'getRootNode' in Element.prototype) { polyfills.push(loadScript('polyfills/custom-elements-es5-adapter.0ec040d16c6fd1b9220084b0b925cbe0.js', false)) }
function loadEntries() {
import('./app.js');
}
polyfills.length ? Promise.all(polyfills).then(loadEntries) : loadEntries();
})();</script></body></html>

View File

@@ -1,86 +0,0 @@
<html><head>
<script type="importmap-shim">
{
"imports": {
"foo": "/node_modules/foo/foo.js",
"bar": "/node_modules/bar/bar.js"
}
}
</script>
<title>My app</title>
<script type="importmap">
{
"imports": {
"foo": "/node_modules/foo/foo.js",
"bar": "/node_modules/bar/bar.js"
}
}
</script>
</head>
<body>
<script>(function() {
function loadScript(src, module) {
return new Promise(function (resolve, reject) {
document.head.appendChild(Object.assign(
document.createElement('script'),
{ src: src, onload: resolve, onerror: reject },
module ? { type: 'module' } : undefined
));
});
}
var polyfills = [];
if (!('attachShadow' in Element.prototype) || !('getRootNode' in Element.prototype)) { polyfills.push(loadScript('polyfills/webcomponents.88b4b5855ede008ecad6bbdd4a69e57d.js', false)) }
if (!('noModule' in HTMLScriptElement.prototype) && 'getRootNode' in Element.prototype) { polyfills.push(loadScript('polyfills/custom-elements-es5-adapter.01496319407efe7ef743b10afbb93714.js', false)) }
if ('noModule' in HTMLScriptElement.prototype) { polyfills.push(loadScript('polyfills/es-module-shims.eb2529466e6458528ad13c7d46e47a52.js', true)) }
function loadEntries() {
window.importShim('./app.js');
}
polyfills.length ? Promise.all(polyfills).then(loadEntries) : loadEntries();
})();</script>
<script>
// sets up a message channel with es-dev-server to receive events
// for reloading the browser on file change or logging errors
(function () {
if (!('EventSource' in window)) {
return;
}
var eventSource = new EventSource('/__es-dev-server-message-channel__');
var reloading = false;
eventSource.addEventListener('file-changed', function (e) {
reloading = true;
location.reload();
});
eventSource.addEventListener('error-message', function (e) {
if (reloading) {
return;
}
console.error(JSON.parse(e.data));
});
eventSource.addEventListener('error', function () {
if (reloading) {
return;
}
console.log('Disconnected from es-dev-server, no longer reloading on file changes.');
eventSource.close();
});
}());
</script>
</body>
</html>

View File

@@ -1,84 +0,0 @@
<html><head>
<title>My app</title>
</head>
<body>
<script src="polyfills/core-js.8e88fc5b880b02431d6fad7b3a34116d.js" nomodule=""></script><script src="polyfills/systemjs.dd4729ef25f652d7d05aed80a2ea00e7.js" nomodule=""></script><script src="polyfills/regenerator-runtime.45f8b90cc0fac37d446d8da4b68e27f5.js" nomodule=""></script><script>(function() {
function loadScript(src, module) {
return new Promise(function (resolve, reject) {
document.head.appendChild(Object.assign(
document.createElement('script'),
{ src: src, onload: resolve, onerror: reject },
module ? { type: 'module' } : undefined
));
});
}
var polyfills = [];
if (!('fetch' in window)) { polyfills.push(loadScript('polyfills/fetch.8c78815e37189a88a5ccc668ab31698f.js', false)) }
if (!('attachShadow' in Element.prototype) || !('getRootNode' in Element.prototype)) { polyfills.push(loadScript('polyfills/webcomponents.88b4b5855ede008ecad6bbdd4a69e57d.js', false)) }
if (!('noModule' in HTMLScriptElement.prototype) && 'getRootNode' in Element.prototype) { polyfills.push(loadScript('polyfills/custom-elements-es5-adapter.01496319407efe7ef743b10afbb93714.js', false)) }
if ('noModule' in HTMLScriptElement.prototype) { polyfills.push(loadScript('polyfills/es-module-shims.eb2529466e6458528ad13c7d46e47a52.js', true)) }
function loadEntries() {
'noModule' in HTMLScriptElement.prototype ? ['./app.js','./inline-module-0.js?source=%2Findex.html','./inline-module-1.js?source=%2Findex.html'].forEach(function (entry) { window.importShim(entry); }) : ['./app.js','./inline-module-0.js?source=%2Findex.html','./inline-module-1.js?source=%2Findex.html'].forEach(function (entry) { System.import(entry); });
}
polyfills.length ? Promise.all(polyfills).then(loadEntries) : loadEntries();
})();</script>
<script nomodule>
// appends a query param to each systemjs request to trigger es5 compilation
var originalResolve = System.constructor.prototype.resolve;
System.constructor.prototype.resolve = function () {
return Promise.resolve(originalResolve.apply(this, arguments))
.then(function (url) {
return url + '?legacy=true';
});
};
</script>
<script>
// sets up a message channel with es-dev-server to receive events
// for reloading the browser on file change or logging errors
(function () {
if (!('EventSource' in window)) {
return;
}
var eventSource = new EventSource('/__es-dev-server-message-channel__');
var reloading = false;
eventSource.addEventListener('file-changed', function (e) {
reloading = true;
location.reload();
});
eventSource.addEventListener('error-message', function (e) {
if (reloading) {
return;
}
console.error(JSON.parse(e.data));
});
eventSource.addEventListener('error', function () {
if (reloading) {
return;
}
console.log('Disconnected from es-dev-server, no longer reloading on file changes.');
eventSource.close();
});
}());
</script>
</body>
</html>

View File

@@ -0,0 +1,39 @@
<html>
<head>
<title>My app</title>
</head>
<body>
<script type="module">
import { message } from 'my-module';
import './src/local-module.js';
console.log(`The message is: ${message}`);
// class is compiled by legacy build
class Foo {
}
// class is compiled by legacy build
const bar = 'buz';
async function* asyncGenerator() {
await Promise.resolve();
yield 0;
await Promise.resolve();
yield 1;
}
</script>
<script type="module">
console.log('hello world');
</script>
<script type="module" src="./app.js"></script>
</body>
</html>

View File

@@ -1,34 +0,0 @@
<html><head>
<title>My app</title>
</head>
<body>
<script>(function() {
function loadScript(src, module) {
return new Promise(function (resolve, reject) {
document.head.appendChild(Object.assign(
document.createElement('script'),
{ src: src, onload: resolve, onerror: reject },
module ? { type: 'module' } : undefined
));
});
}
var polyfills = [];
if ('noModule' in HTMLScriptElement.prototype) { polyfills.push(loadScript('polyfills/es-module-shims.eb2529466e6458528ad13c7d46e47a52.js', true)) }
function loadEntries() {
['./app.js','./inline-module-0.js?source=%2Findex.html','./inline-module-1.js?source=%2Findex.html'].forEach(function (entry) { window.importShim(entry); });
}
polyfills.length ? Promise.all(polyfills).then(loadEntries) : loadEntries();
})();</script></body></html>

View File

@@ -0,0 +1,36 @@
<html><head>
<title>My app</title>
</head>
<body>
<script src="polyfills/core-js.77da473353460b142f5e09e540324336.js" nomodule=""></script><script src="polyfills/systemjs.dd4729ef25f652d7d05aed80a2ea00e7.js"></script><script src="polyfills/regenerator-runtime.45f8b90cc0fac37d446d8da4b68e27f5.js" nomodule=""></script><script>(function() {
function loadScript(src, module) {
return new Promise(function (resolve, reject) {
document.head.appendChild(Object.assign(
document.createElement('script'),
{ src: src, onload: resolve, onerror: reject },
module ? { type: 'module' } : undefined
));
});
}
var polyfills = [];
if (!('fetch' in window)) { polyfills.push(loadScript('polyfills/fetch.8c78815e37189a88a5ccc668ab31698f.js', false)) }
if (!('attachShadow' in Element.prototype) || !('getRootNode' in Element.prototype)) { polyfills.push(loadScript('polyfills/webcomponents.cc3976af76b5e726e2a7e86686c930f1.js', false)) }
if (!('noModule' in HTMLScriptElement.prototype) && 'getRootNode' in Element.prototype) { polyfills.push(loadScript('polyfills/custom-elements-es5-adapter.0ec040d16c6fd1b9220084b0b925cbe0.js', false)) }
function loadEntries() {
['./app.js','/__es-dev-server__/inline-module-0.js?source=%2Findex.html','/__es-dev-server__/inline-module-1.js?source=%2Findex.html'].forEach(function (entry) { System.import(entry); });
}
polyfills.length ? Promise.all(polyfills).then(loadEntries) : loadEntries();
})();</script></body></html>

View File

@@ -0,0 +1,36 @@
<html><head>
<title>My app</title>
</head>
<body>
<script src="polyfills/core-js.77da473353460b142f5e09e540324336.js" nomodule=""></script><script src="polyfills/regenerator-runtime.45f8b90cc0fac37d446d8da4b68e27f5.js" nomodule=""></script><script>(function() {
function loadScript(src, module) {
return new Promise(function (resolve, reject) {
document.head.appendChild(Object.assign(
document.createElement('script'),
{ src: src, onload: resolve, onerror: reject },
module ? { type: 'module' } : undefined
));
});
}
var polyfills = [];
if (!('fetch' in window)) { polyfills.push(loadScript('polyfills/fetch.8c78815e37189a88a5ccc668ab31698f.js', false)) }
if (!('attachShadow' in Element.prototype) || !('getRootNode' in Element.prototype)) { polyfills.push(loadScript('polyfills/webcomponents.cc3976af76b5e726e2a7e86686c930f1.js', false)) }
if (!('noModule' in HTMLScriptElement.prototype) && 'getRootNode' in Element.prototype) { polyfills.push(loadScript('polyfills/custom-elements-es5-adapter.0ec040d16c6fd1b9220084b0b925cbe0.js', false)) }
function loadEntries() {
['./app.js','/__es-dev-server__/inline-module-0.js?source=%2Findex.html','/__es-dev-server__/inline-module-1.js?source=%2Findex.html'].forEach(function (entry) { import(entry); });
}
polyfills.length ? Promise.all(polyfills).then(loadEntries) : loadEntries();
})();</script></body></html>

View File

@@ -1,72 +0,0 @@
<html><head>
<title>My app</title>
</head>
<body>
<script>(function() {
function loadScript(src, module) {
return new Promise(function (resolve, reject) {
document.head.appendChild(Object.assign(
document.createElement('script'),
{ src: src, onload: resolve, onerror: reject },
module ? { type: 'module' } : undefined
));
});
}
var polyfills = [];
if (!('attachShadow' in Element.prototype) || !('getRootNode' in Element.prototype)) { polyfills.push(loadScript('polyfills/webcomponents.88b4b5855ede008ecad6bbdd4a69e57d.js', false)) }
if (!('noModule' in HTMLScriptElement.prototype) && 'getRootNode' in Element.prototype) { polyfills.push(loadScript('polyfills/custom-elements-es5-adapter.01496319407efe7ef743b10afbb93714.js', false)) }
if ('noModule' in HTMLScriptElement.prototype) { polyfills.push(loadScript('polyfills/es-module-shims.eb2529466e6458528ad13c7d46e47a52.js', true)) }
function loadEntries() {
['./app.js','./inline-module-0.js?source=%2Findex.html','./inline-module-1.js?source=%2Findex.html'].forEach(function (entry) { window.importShim(entry); });
}
polyfills.length ? Promise.all(polyfills).then(loadEntries) : loadEntries();
})();</script>
<script>
// sets up a message channel with es-dev-server to receive events
// for reloading the browser on file change or logging errors
(function () {
if (!('EventSource' in window)) {
return;
}
var eventSource = new EventSource('/__es-dev-server-message-channel__');
var reloading = false;
eventSource.addEventListener('file-changed', function (e) {
reloading = true;
location.reload();
});
eventSource.addEventListener('error-message', function (e) {
if (reloading) {
return;
}
console.error(JSON.parse(e.data));
});
eventSource.addEventListener('error', function () {
if (reloading) {
return;
}
console.log('Disconnected from es-dev-server, no longer reloading on file changes.');
eventSource.close();
});
}());
</script>
</body>
</html>

View File

@@ -12,40 +12,4 @@
<script src="./app.js" type="module"></script><script src="./inline-module-0.js?source=%2Findex.html" type="module"></script><script src="./inline-module-1.js?source=%2Findex.html" type="module"></script>
<script>
// sets up a message channel with es-dev-server to receive events
// for reloading the browser on file change or logging errors
(function () {
if (!('EventSource' in window)) {
return;
}
var eventSource = new EventSource('/__es-dev-server-message-channel__');
var reloading = false;
eventSource.addEventListener('file-changed', function (e) {
reloading = true;
location.reload();
});
eventSource.addEventListener('error-message', function (e) {
if (reloading) {
return;
}
console.error(JSON.parse(e.data));
});
eventSource.addEventListener('error', function () {
if (reloading) {
return;
}
console.log('Disconnected from es-dev-server, no longer reloading on file changes.');
eventSource.close();
});
}());
</script>
</body>
</html>
<script src="./app.js" type="module"></script><script src="/__es-dev-server__/inline-module-0.js?source=%2Findex.html" type="module"></script><script src="/__es-dev-server__/inline-module-1.js?source=%2Findex.html" type="module"></script></body></html>

View File

@@ -1,87 +0,0 @@
<html><head>
<title>My app</title>
</head>
<body>
<!-- relative path -->
<!-- upwards path -->
<!-- absolute path -->
<script src="polyfills/core-js.8e88fc5b880b02431d6fad7b3a34116d.js" nomodule=""></script><script src="polyfills/systemjs.dd4729ef25f652d7d05aed80a2ea00e7.js" nomodule=""></script><script src="polyfills/regenerator-runtime.45f8b90cc0fac37d446d8da4b68e27f5.js" nomodule=""></script><script>(function() {
function loadScript(src, module) {
return new Promise(function (resolve, reject) {
document.head.appendChild(Object.assign(
document.createElement('script'),
{ src: src, onload: resolve, onerror: reject },
module ? { type: 'module' } : undefined
));
});
}
var polyfills = [];
if (!('fetch' in window)) { polyfills.push(loadScript('polyfills/fetch.8c78815e37189a88a5ccc668ab31698f.js', false)) }
if (!('attachShadow' in Element.prototype) || !('getRootNode' in Element.prototype)) { polyfills.push(loadScript('polyfills/webcomponents.88b4b5855ede008ecad6bbdd4a69e57d.js', false)) }
if (!('noModule' in HTMLScriptElement.prototype) && 'getRootNode' in Element.prototype) { polyfills.push(loadScript('polyfills/custom-elements-es5-adapter.01496319407efe7ef743b10afbb93714.js', false)) }
if ('noModule' in HTMLScriptElement.prototype) { polyfills.push(loadScript('polyfills/es-module-shims.eb2529466e6458528ad13c7d46e47a52.js', true)) }
function loadEntries() {
'noModule' in HTMLScriptElement.prototype ? ['./app.js','../src/app.js','/src/app.js'].forEach(function (entry) { window.importShim(entry); }) : ['./app.js','../src/app.js','/src/app.js'].forEach(function (entry) { System.import(entry); });
}
polyfills.length ? Promise.all(polyfills).then(loadEntries) : loadEntries();
})();</script>
<script nomodule>
// appends a query param to each systemjs request to trigger es5 compilation
var originalResolve = System.constructor.prototype.resolve;
System.constructor.prototype.resolve = function () {
return Promise.resolve(originalResolve.apply(this, arguments))
.then(function (url) {
return url + '?legacy=true';
});
};
</script>
<script>
// sets up a message channel with es-dev-server to receive events
// for reloading the browser on file change or logging errors
(function () {
if (!('EventSource' in window)) {
return;
}
var eventSource = new EventSource('/__es-dev-server-message-channel__');
var reloading = false;
eventSource.addEventListener('file-changed', function (e) {
reloading = true;
location.reload();
});
eventSource.addEventListener('error-message', function (e) {
if (reloading) {
return;
}
console.error(JSON.parse(e.data));
});
eventSource.addEventListener('error', function () {
if (reloading) {
return;
}
console.log('Disconnected from es-dev-server, no longer reloading on file changes.');
eventSource.close();
});
}());
</script>
</body>
</html>

View File

@@ -0,0 +1,20 @@
<html>
<head>
<title>My app</title>
</head>
<body>
<!-- relative path -->
<script type="module" src="./app.js"></script>
<!-- upwards path -->
<script type="module" src="../src/app.js"></script>
<!-- absolute path -->
<script type="module" src="/src/app.js"></script>
</body>
</html>

View File

@@ -1,37 +0,0 @@
<html><head>
<title>My app</title>
</head>
<body>
<!-- relative path -->
<!-- upwards path -->
<!-- absolute path -->
<script>(function() {
function loadScript(src, module) {
return new Promise(function (resolve, reject) {
document.head.appendChild(Object.assign(
document.createElement('script'),
{ src: src, onload: resolve, onerror: reject },
module ? { type: 'module' } : undefined
));
});
}
var polyfills = [];
if ('noModule' in HTMLScriptElement.prototype) { polyfills.push(loadScript('polyfills/es-module-shims.eb2529466e6458528ad13c7d46e47a52.js', true)) }
function loadEntries() {
['./app.js','../src/app.js','/src/app.js'].forEach(function (entry) { window.importShim(entry); });
}
polyfills.length ? Promise.all(polyfills).then(loadEntries) : loadEntries();
})();</script></body></html>

View File

@@ -0,0 +1,39 @@
<html><head>
<title>My app</title>
</head>
<body>
<!-- relative path -->
<!-- upwards path -->
<!-- absolute path -->
<script src="polyfills/core-js.77da473353460b142f5e09e540324336.js" nomodule=""></script><script src="polyfills/systemjs.dd4729ef25f652d7d05aed80a2ea00e7.js"></script><script src="polyfills/regenerator-runtime.45f8b90cc0fac37d446d8da4b68e27f5.js" nomodule=""></script><script>(function() {
function loadScript(src, module) {
return new Promise(function (resolve, reject) {
document.head.appendChild(Object.assign(
document.createElement('script'),
{ src: src, onload: resolve, onerror: reject },
module ? { type: 'module' } : undefined
));
});
}
var polyfills = [];
if (!('fetch' in window)) { polyfills.push(loadScript('polyfills/fetch.8c78815e37189a88a5ccc668ab31698f.js', false)) }
if (!('attachShadow' in Element.prototype) || !('getRootNode' in Element.prototype)) { polyfills.push(loadScript('polyfills/webcomponents.cc3976af76b5e726e2a7e86686c930f1.js', false)) }
if (!('noModule' in HTMLScriptElement.prototype) && 'getRootNode' in Element.prototype) { polyfills.push(loadScript('polyfills/custom-elements-es5-adapter.0ec040d16c6fd1b9220084b0b925cbe0.js', false)) }
function loadEntries() {
['./app.js','../src/app.js','/src/app.js'].forEach(function (entry) { System.import(entry); });
}
polyfills.length ? Promise.all(polyfills).then(loadEntries) : loadEntries();
})();</script></body></html>

View File

@@ -0,0 +1,39 @@
<html><head>
<title>My app</title>
</head>
<body>
<!-- relative path -->
<!-- upwards path -->
<!-- absolute path -->
<script src="polyfills/core-js.77da473353460b142f5e09e540324336.js" nomodule=""></script><script src="polyfills/regenerator-runtime.45f8b90cc0fac37d446d8da4b68e27f5.js" nomodule=""></script><script>(function() {
function loadScript(src, module) {
return new Promise(function (resolve, reject) {
document.head.appendChild(Object.assign(
document.createElement('script'),
{ src: src, onload: resolve, onerror: reject },
module ? { type: 'module' } : undefined
));
});
}
var polyfills = [];
if (!('fetch' in window)) { polyfills.push(loadScript('polyfills/fetch.8c78815e37189a88a5ccc668ab31698f.js', false)) }
if (!('attachShadow' in Element.prototype) || !('getRootNode' in Element.prototype)) { polyfills.push(loadScript('polyfills/webcomponents.cc3976af76b5e726e2a7e86686c930f1.js', false)) }
if (!('noModule' in HTMLScriptElement.prototype) && 'getRootNode' in Element.prototype) { polyfills.push(loadScript('polyfills/custom-elements-es5-adapter.0ec040d16c6fd1b9220084b0b925cbe0.js', false)) }
function loadEntries() {
['./app.js','../src/app.js','/src/app.js'].forEach(function (entry) { import(entry); });
}
polyfills.length ? Promise.all(polyfills).then(loadEntries) : loadEntries();
})();</script></body></html>

View File

@@ -1,75 +0,0 @@
<html><head>
<title>My app</title>
</head>
<body>
<!-- relative path -->
<!-- upwards path -->
<!-- absolute path -->
<script>(function() {
function loadScript(src, module) {
return new Promise(function (resolve, reject) {
document.head.appendChild(Object.assign(
document.createElement('script'),
{ src: src, onload: resolve, onerror: reject },
module ? { type: 'module' } : undefined
));
});
}
var polyfills = [];
if (!('attachShadow' in Element.prototype) || !('getRootNode' in Element.prototype)) { polyfills.push(loadScript('polyfills/webcomponents.88b4b5855ede008ecad6bbdd4a69e57d.js', false)) }
if (!('noModule' in HTMLScriptElement.prototype) && 'getRootNode' in Element.prototype) { polyfills.push(loadScript('polyfills/custom-elements-es5-adapter.01496319407efe7ef743b10afbb93714.js', false)) }
if ('noModule' in HTMLScriptElement.prototype) { polyfills.push(loadScript('polyfills/es-module-shims.eb2529466e6458528ad13c7d46e47a52.js', true)) }
function loadEntries() {
['./app.js','../src/app.js','/src/app.js'].forEach(function (entry) { window.importShim(entry); });
}
polyfills.length ? Promise.all(polyfills).then(loadEntries) : loadEntries();
})();</script>
<script>
// sets up a message channel with es-dev-server to receive events
// for reloading the browser on file change or logging errors
(function () {
if (!('EventSource' in window)) {
return;
}
var eventSource = new EventSource('/__es-dev-server-message-channel__');
var reloading = false;
eventSource.addEventListener('file-changed', function (e) {
reloading = true;
location.reload();
});
eventSource.addEventListener('error-message', function (e) {
if (reloading) {
return;
}
console.error(JSON.parse(e.data));
});
eventSource.addEventListener('error', function () {
if (reloading) {
return;
}
console.log('Disconnected from es-dev-server, no longer reloading on file changes.');
eventSource.close();
});
}());
</script>
</body>
</html>

View File

@@ -1,4 +1,4 @@
// @ts-nocheck
/* eslint-disable */
console.log('my app');
import('./lazy-99ef5fe0.js');
import('./lazy-ad0cfec5.js');

View File

@@ -1 +1 @@
<html lang="en-GB"><head><title>My app</title><style>my-app{display:block}</style><link rel="preload" href="app.js" as="script" crossorigin="anonymous"></head><body><h1><span>Hello world!</span></h1><my-app></my-app><script>console.log("hello inline script");</script><script>window.importShim=t=>import(t.startsWith(".")?new URL(t,document.baseURI):t);</script><script src="polyfills/core-js.8e88fc5b880b02431d6fad7b3a34116d.js" nomodule=""></script><script src="polyfills/regenerator-runtime.61c01f337f4241bb46c77e10a7e01300.js" nomodule=""></script><script src="loader.083a8d99c4d8ba29572ed88d5a2098f8.js"></script></body></html>
<html lang="en-GB"><head><title>My app</title><style>my-app{display:block}</style><link rel="preload" href="app.js" as="script" crossorigin="anonymous"></head><body><h1><span>Hello world!</span></h1><my-app></my-app><script>window.importShim=t=>import(t.startsWith(".")?new URL(t,document.baseURI):t);</script><script src="polyfills/core-js.77da473353460b142f5e09e540324336.js" nomodule=""></script><script src="polyfills/regenerator-runtime.323cb013cc2a9c88ff67ee256cbf5942.js" nomodule=""></script><script>console.log("hello inline script");</script><script src="loader.79d1fccb92ddcc0708196704356f530d.js"></script></body></html>

View File

@@ -1 +0,0 @@
!function(){function e(e,o){return new Promise(function(t,n){document.head.appendChild(Object.assign(document.createElement("script"),{src:e,onload:t,onerror:n},o?{type:"module"}:void 0))})}var o=[];function t(){window.importShim("./app.js")}"noModule"in HTMLScriptElement.prototype&&!("importShim"in window)&&o.push(e("polyfills/dynamic-import.b745cfc9384367cc18b42bbef2bbdcd9.js",!1)),"attachShadow"in Element.prototype&&"getRootNode"in Element.prototype||o.push(e("polyfills/webcomponents.88b4b5855ede008ecad6bbdd4a69e57d.js",!1)),!("noModule"in HTMLScriptElement.prototype)&&"getRootNode"in Element.prototype&&o.push(e("polyfills/custom-elements-es5-adapter.551c76d38426de62c33d8c61995c1d0f.js",!1)),o.length?Promise.all(o).then(t):t()}();

View File

@@ -0,0 +1 @@
!function(){function e(e,o){return new Promise((function(t,n){document.head.appendChild(Object.assign(document.createElement("script"),{src:e,onload:t,onerror:n},o?{type:"module"}:void 0))}))}var o=[];function t(){window.importShim("./app.js")}"noModule"in HTMLScriptElement.prototype&&!("importShim"in window)&&o.push(e("polyfills/dynamic-import.b745cfc9384367cc18b42bbef2bbdcd9.js",!1)),"attachShadow"in Element.prototype&&"getRootNode"in Element.prototype||o.push(e("polyfills/webcomponents.cc3976af76b5e726e2a7e86686c930f1.js",!1)),!("noModule"in HTMLScriptElement.prototype)&&"getRootNode"in Element.prototype&&o.push(e("polyfills/custom-elements-es5-adapter.84b300ee818dce8b351c7cc7c100bcf7.js",!1)),o.length?Promise.all(o).then(t):t()}();

View File

@@ -1 +0,0 @@
!function(){"use strict";!function(){if(void 0===window.Reflect||void 0===window.customElements||window.customElements.polyfillWrapFlushCallback)return;const t=HTMLElement;window.HTMLElement=function(){return Reflect.construct(t,[],this.constructor)},HTMLElement.prototype=t.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,t)}()}();

View File

@@ -1 +0,0 @@
{"version":3,"sources":["0"],"names":["window","Reflect","customElements","polyfillWrapFlushCallback","a","HTMLElement","construct","this","constructor","prototype","Object","setPrototypeOf"],"mappings":"CASC,WACC,cAEA,WAAY,QAAG,IAASA,OAAOC,cAAS,IAASD,OAAOE,gBAAgBF,OAAOE,eAAeC,0BAA0B,OAAO,MAAMC,EAAEC,YAAYL,OAAOK,YAAY,WAAuB,OAAOJ,QAAQK,UAAUF,EAAE,GAAGG,KAAKC,cAAcH,YAAYI,UAAUL,EAAEK,UAAUJ,YAAYI,UAAUD,YAAYH,YAAYK,OAAOC,eAAeN,YAAYD,GAAhW,GAHF"}

View File

@@ -0,0 +1,10 @@
/**
@license @nocompile
Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
!function(){"use strict";!function(){if(void 0===window.Reflect||void 0===window.customElements||window.customElements.polyfillWrapFlushCallback)return;const t=HTMLElement;window.HTMLElement={HTMLElement:function(){return Reflect.construct(t,[],this.constructor)}}.HTMLElement,HTMLElement.prototype=t.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,t)}()}();

View File

@@ -0,0 +1 @@
{"version":3,"sources":["0"],"names":["window","Reflect","customElements","polyfillWrapFlushCallback","a","HTMLElement","construct","this","constructor","prototype","Object","setPrototypeOf"],"mappings":";;;;;;;;;CASC,WACC,cAEA,WAAY,QAAG,IAASA,OAAOC,cAAS,IAASD,OAAOE,gBAAgBF,OAAOE,eAAeC,0BAA0B,OAAO,MAAMC,EAAEC,YAAYL,OAAOK,YAAY,CAACA,YAAY,WAAuB,OAAOJ,QAAQK,UAAUF,EAAE,GAAGG,KAAKC,eAAeH,YAAYA,YAAYI,UAAUL,EAAEK,UAAUJ,YAAYI,UAAUD,YAAYH,YAAYK,OAAOC,eAAeN,YAAYD,GAA1X,GAHF"}

View File

@@ -1 +1 @@
{"version":3,"sources":["0"],"names":["window","importShim","url","Promise","resolve","reject","vector","Math","random","toString","slice","script","document","createElement","destructor","onerror","onload","remove","URL","revokeObjectURL","src","defer","type","Error","absURL","a","setAttribute","cloneNode","href","toAbsoluteURL","blob","Blob","createObjectURL","head","appendChild"],"mappings":"AAqDEA,OAAOC,WAnCP,SAAoBC,GAClB,OAAO,IAAIC,QAAQ,CAACC,EAASC,KAC3B,MAAMC,EACJ,iBACAC,KAAKC,SACFC,SAAS,IACTC,MAAM,GACLC,EAASC,SAASC,cAAc,UAChCC,EAAa,YACVd,OAAOM,GACdK,EAAOI,QAAU,KACjBJ,EAAOK,OAAS,KAChBL,EAAOM,SACPC,IAAIC,gBAAgBR,EAAOS,KAC3BT,EAAOS,IAAM,IAEfT,EAAOU,MAAQ,QACfV,EAAOW,KAAO,SACdX,EAAOI,QAAU,KACfV,EAAO,IAAIkB,2BAA2BrB,MACtCY,KAEFH,EAAOK,OAAS,KACdZ,EAAQJ,OAAOM,IACfQ,KAEF,MAAMU,EAhCV,SAAuBtB,GACrB,MAAMuB,EAAIb,SAASC,cAAc,KAEjC,OADAY,EAAEC,aAAa,OAAQxB,GAChBuB,EAAEE,WAAU,GAAOC,KA6BTC,CAAc3B,GAEvB4B,EAAO,IAAIC,KAAK,wBADgBP,cAAmBlB,UACzB,CAAEgB,KAAM,oBACxCX,EAAOS,IAAMF,IAAIc,gBAAgBF,GAEjClB,SAASqB,KAAKC,YAAYvB"}
{"version":3,"sources":["0"],"names":["window","importShim","url","Promise","resolve","reject","vector","Math","random","toString","slice","script","document","createElement","destructor","onerror","onload","remove","URL","revokeObjectURL","src","defer","type","Error","absURL","a","setAttribute","cloneNode","href","toAbsoluteURL","blob","Blob","createObjectURL","head","appendChild"],"mappings":"AAqDEA,OAAOC,WAnCP,SAAoBC,GAClB,OAAO,IAAIC,QAAQ,CAACC,EAASC,KAC3B,MAAMC,EACJ,iBACAC,KAAKC,SACFC,SAAS,IACTC,MAAM,GACLC,EAASC,SAASC,cAAc,UAChCC,EAAa,YACVd,OAAOM,GACdK,EAAOI,QAAU,KACjBJ,EAAOK,OAAS,KAChBL,EAAOM,SACPC,IAAIC,gBAAgBR,EAAOS,KAC3BT,EAAOS,IAAM,IAEfT,EAAOU,MAAQ,QACfV,EAAOW,KAAO,SACdX,EAAOI,QAAU,KACfV,EAAO,IAAIkB,MAAM,qBAAqBrB,MACtCY,KAEFH,EAAOK,OAAS,KACdZ,EAAQJ,OAAOM,IACfQ,KAEF,MAAMU,EAhCV,SAAuBtB,GACrB,MAAMuB,EAAIb,SAASC,cAAc,KAEjC,OADAY,EAAEC,aAAa,OAAQxB,GAChBuB,EAAEE,WAAU,GAAOC,KA6BTC,CAAc3B,GAEvB4B,EAAO,IAAIC,KAAK,CADP,uBAAuBP,cAAmBlB,UACzB,CAAEgB,KAAM,oBACxCX,EAAOS,IAAMF,IAAIc,gBAAgBF,GAEjClB,SAASqB,KAAKC,YAAYvB"}

View File

@@ -1,287 +0,0 @@
/**
@license @nocompile
Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
(function(){/*
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
'use strict';var r,t="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,ca="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};function da(){da=function(){};t.Symbol||(t.Symbol=ea)}var ea=function(){var a=0;return function(b){return"jscomp_symbol_"+(b||"")+a++}}();
function fa(){da();var a=t.Symbol.iterator;a||(a=t.Symbol.iterator=t.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&ca(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ha(this)}});fa=function(){}}function ha(a){var b=0;return ia(function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}})}function ia(a){fa();a={next:a};a[t.Symbol.iterator]=function(){return this};return a}function ja(a){fa();var b=a[Symbol.iterator];return b?b.call(a):ha(a)}
function ka(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c}var la;if("function"==typeof Object.setPrototypeOf)la=Object.setPrototypeOf;else{var ma;a:{var na={Ga:!0},oa={};try{oa.__proto__=na;ma=oa.Ga;break a}catch(a){}ma=!1}la=ma?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var pa=la;function qa(){this.f=!1;this.b=null;this.aa=void 0;this.a=1;this.F=0;this.c=null}
function ra(a){if(a.f)throw new TypeError("Generator is already running");a.f=!0}qa.prototype.u=function(a){this.aa=a};function sa(a,b){a.c={Ja:b,Na:!0};a.a=a.F}qa.prototype.return=function(a){this.c={return:a};this.a=this.F};function ta(a,b){a.a=3;return{value:b}}function ua(a){this.a=new qa;this.b=a}function va(a,b){ra(a.a);var c=a.a.b;if(c)return wa(a,"return"in c?c["return"]:function(a){return{value:a,done:!0}},b,a.a.return);a.a.return(b);return xa(a)}
function wa(a,b,c,d){try{var e=b.call(a.a.b,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.a.f=!1,e;var f=e.value}catch(g){return a.a.b=null,sa(a.a,g),xa(a)}a.a.b=null;d.call(a.a,f);return xa(a)}function xa(a){for(;a.a.a;)try{var b=a.b(a.a);if(b)return a.a.f=!1,{value:b.value,done:!1}}catch(c){a.a.aa=void 0,sa(a.a,c)}a.a.f=!1;if(a.a.c){b=a.a.c;a.a.c=null;if(b.Na)throw b.Ja;return{value:b.return,done:!0}}return{value:void 0,done:!0}}
function ya(a){this.next=function(b){ra(a.a);a.a.b?b=wa(a,a.a.b.next,b,a.a.u):(a.a.u(b),b=xa(a));return b};this.throw=function(b){ra(a.a);a.a.b?b=wa(a,a.a.b["throw"],b,a.a.u):(sa(a.a,b),b=xa(a));return b};this.return=function(b){return va(a,b)};fa();this[Symbol.iterator]=function(){return this}}function Ba(a,b){b=new ya(new ua(b));pa&&pa(b,a.prototype);return b}
(function(){if(!function(){var a=document.createEvent("Event");a.initEvent("foo",!0,!0);a.preventDefault();return a.defaultPrevented}()){var a=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(a.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}var b=/Trident/.test(navigator.userAgent);if(!window.Event||b&&"function"!==typeof window.Event){var c=window.Event;window.Event=function(a,b){b=b||{};var c=document.createEvent("Event");
c.initEvent(a,!!b.bubbles,!!b.cancelable);return c};if(c){for(var d in c)window.Event[d]=c[d];window.Event.prototype=c.prototype}}if(!window.CustomEvent||b&&"function"!==typeof window.CustomEvent)window.CustomEvent=function(a,b){b=b||{};var c=document.createEvent("CustomEvent");c.initCustomEvent(a,!!b.bubbles,!!b.cancelable,b.detail);return c},window.CustomEvent.prototype=window.Event.prototype;if(!window.MouseEvent||b&&"function"!==typeof window.MouseEvent){b=window.MouseEvent;window.MouseEvent=
function(a,b){b=b||{};var c=document.createEvent("MouseEvent");c.initMouseEvent(a,!!b.bubbles,!!b.cancelable,b.view||window,b.detail,b.screenX,b.screenY,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,b.relatedTarget);return c};if(b)for(d in b)window.MouseEvent[d]=b[d];window.MouseEvent.prototype=b.prototype}Array.from||(Array.from=function(a){return[].slice.call(a)});Object.assign||(Object.assign=function(a,b){for(var c=[].slice.call(arguments,1),d=0,e;d<c.length;d++)if(e=c[d])for(var f=
a,n=e,q=Object.getOwnPropertyNames(n),I=0;I<q.length;I++)e=q[I],f[e]=n[e];return a})})();(function(){function a(){}function b(a,b){if(!a.childNodes.length)return[];switch(a.nodeType){case Node.DOCUMENT_NODE:return Q.call(a,b);case Node.DOCUMENT_FRAGMENT_NODE:return Eb.call(a,b);default:return x.call(a,b)}}var c="undefined"===typeof HTMLTemplateElement,d=!(document.createDocumentFragment().cloneNode()instanceof DocumentFragment),e=!1;/Trident/.test(navigator.userAgent)&&function(){function a(a,b){if(a instanceof DocumentFragment)for(var d;d=a.firstChild;)c.call(this,d,b);else c.call(this,
a,b);return a}e=!0;var b=Node.prototype.cloneNode;Node.prototype.cloneNode=function(a){a=b.call(this,a);this instanceof DocumentFragment&&(a.__proto__=DocumentFragment.prototype);return a};DocumentFragment.prototype.querySelectorAll=HTMLElement.prototype.querySelectorAll;DocumentFragment.prototype.querySelector=HTMLElement.prototype.querySelector;Object.defineProperties(DocumentFragment.prototype,{nodeType:{get:function(){return Node.DOCUMENT_FRAGMENT_NODE},configurable:!0},localName:{get:function(){},
configurable:!0},nodeName:{get:function(){return"#document-fragment"},configurable:!0}});var c=Node.prototype.insertBefore;Node.prototype.insertBefore=a;var d=Node.prototype.appendChild;Node.prototype.appendChild=function(b){b instanceof DocumentFragment?a.call(this,b,null):d.call(this,b);return b};var f=Node.prototype.removeChild,g=Node.prototype.replaceChild;Node.prototype.replaceChild=function(b,c){b instanceof DocumentFragment?(a.call(this,b,c),f.call(this,c)):g.call(this,b,c);return c};Document.prototype.createDocumentFragment=
function(){var a=this.createElement("df");a.__proto__=DocumentFragment.prototype;return a};var h=Document.prototype.importNode;Document.prototype.importNode=function(a,b){b=h.call(this,a,b||!1);a instanceof DocumentFragment&&(b.__proto__=DocumentFragment.prototype);return b}}();var f=Node.prototype.cloneNode,g=Document.prototype.createElement,h=Document.prototype.importNode,k=Node.prototype.removeChild,l=Node.prototype.appendChild,n=Node.prototype.replaceChild,q=DOMParser.prototype.parseFromString,
I=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML")||{get:function(){return this.innerHTML},set:function(a){this.innerHTML=a}},v=Object.getOwnPropertyDescriptor(window.Node.prototype,"childNodes")||{get:function(){return this.childNodes}},x=Element.prototype.querySelectorAll,Q=Document.prototype.querySelectorAll,Eb=DocumentFragment.prototype.querySelectorAll,Fb=function(){if(!c){var a=document.createElement("template"),b=document.createElement("template");b.content.appendChild(document.createElement("div"));
a.content.appendChild(b);a=a.cloneNode(!0);return 0===a.content.childNodes.length||0===a.content.firstChild.content.childNodes.length||d}}();if(c){var T=document.implementation.createHTMLDocument("template"),Ja=!0,p=document.createElement("style");p.textContent="template{display:none;}";var za=document.head;za.insertBefore(p,za.firstElementChild);a.prototype=Object.create(HTMLElement.prototype);var aa=!document.createElement("div").hasOwnProperty("innerHTML");a.S=function(b){if(!b.content&&b.namespaceURI===
document.documentElement.namespaceURI){b.content=T.createDocumentFragment();for(var c;c=b.firstChild;)l.call(b.content,c);if(aa)b.__proto__=a.prototype;else if(b.cloneNode=function(b){return a.b(this,b)},Ja)try{m(b),y(b)}catch(vh){Ja=!1}a.a(b.content)}};var X={option:["select"],thead:["table"],col:["colgroup","table"],tr:["tbody","table"],th:["tr","tbody","table"],td:["tr","tbody","table"]},m=function(b){Object.defineProperty(b,"innerHTML",{get:function(){return ba(this)},set:function(b){var c=X[(/<([a-z][^/\0>\x20\t\r\n\f]+)/i.exec(b)||
["",""])[1].toLowerCase()];if(c)for(var d=0;d<c.length;d++)b="<"+c[d]+">"+b+"</"+c[d]+">";T.body.innerHTML=b;for(a.a(T);this.content.firstChild;)k.call(this.content,this.content.firstChild);b=T.body;if(c)for(d=0;d<c.length;d++)b=b.lastChild;for(;b.firstChild;)l.call(this.content,b.firstChild)},configurable:!0})},y=function(a){Object.defineProperty(a,"outerHTML",{get:function(){return"<template>"+this.innerHTML+"</template>"},set:function(a){if(this.parentNode){T.body.innerHTML=a;for(a=this.ownerDocument.createDocumentFragment();T.body.firstChild;)l.call(a,
T.body.firstChild);n.call(this.parentNode,a,this)}else throw Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");},configurable:!0})};m(a.prototype);y(a.prototype);a.a=function(c){c=b(c,"template");for(var d=0,e=c.length,f;d<e&&(f=c[d]);d++)a.S(f)};document.addEventListener("DOMContentLoaded",function(){a.a(document)});Document.prototype.createElement=function(){var b=g.apply(this,arguments);"template"===b.localName&&a.S(b);return b};DOMParser.prototype.parseFromString=
function(){var b=q.apply(this,arguments);a.a(b);return b};Object.defineProperty(HTMLElement.prototype,"innerHTML",{get:function(){return ba(this)},set:function(b){I.set.call(this,b);a.a(this)},configurable:!0,enumerable:!0});var Y=/[&\u00A0"]/g,Gb=/[&\u00A0<>]/g,Ka=function(a){switch(a){case "&":return"&amp;";case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";case "\u00a0":return"&nbsp;"}};p=function(a){for(var b={},c=0;c<a.length;c++)b[a[c]]=!0;return b};var Aa=p("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),
La=p("style script xmp iframe noembed noframes plaintext noscript".split(" ")),ba=function(a,b){"template"===a.localName&&(a=a.content);for(var c="",d=b?b(a):v.get.call(a),e=0,f=d.length,g;e<f&&(g=d[e]);e++){a:{var h=g;var k=a;var l=b;switch(h.nodeType){case Node.ELEMENT_NODE:for(var n=h.localName,m="<"+n,q=h.attributes,x=0;k=q[x];x++)m+=" "+k.name+'="'+k.value.replace(Y,Ka)+'"';m+=">";h=Aa[n]?m:m+ba(h,l)+"</"+n+">";break a;case Node.TEXT_NODE:h=h.data;h=k&&La[k.localName]?h:h.replace(Gb,Ka);break a;
case Node.COMMENT_NODE:h="\x3c!--"+h.data+"--\x3e";break a;default:throw window.console.error(h),Error("not implemented");}}c+=h}return c}}if(c||Fb){a.b=function(a,b){var c=f.call(a,!1);this.S&&this.S(c);b&&(l.call(c.content,f.call(a.content,!0)),Ma(c.content,a.content));return c};var Ma=function(c,d){if(d.querySelectorAll&&(d=b(d,"template"),0!==d.length)){c=b(c,"template");for(var e=0,f=c.length,g,h;e<f;e++)h=d[e],g=c[e],a&&a.S&&a.S(h),n.call(g.parentNode,sf.call(h,!0),g)}},sf=Node.prototype.cloneNode=
function(b){if(!e&&d&&this instanceof DocumentFragment)if(b)var c=tf.call(this.ownerDocument,this,!0);else return this.ownerDocument.createDocumentFragment();else this.nodeType===Node.ELEMENT_NODE&&"template"===this.localName&&this.namespaceURI==document.documentElement.namespaceURI?c=a.b(this,b):c=f.call(this,b);b&&Ma(c,this);return c},tf=Document.prototype.importNode=function(c,d){d=d||!1;if("template"===c.localName)return a.b(c,d);var e=h.call(this,c,d);if(d){Ma(e,c);c=b(e,'script:not([type]),script[type="application/javascript"],script[type="text/javascript"]');
for(var f,k=0;k<c.length;k++){f=c[k];d=g.call(document,"script");d.textContent=f.textContent;for(var l=f.attributes,m=0,q;m<l.length;m++)q=l[m],d.setAttribute(q.name,q.value);n.call(f.parentNode,d,f)}}return e}}c&&(window.HTMLTemplateElement=a)})();var Ca=setTimeout;function Da(){}function Ea(a,b){return function(){a.apply(b,arguments)}}function u(a){if(!(this instanceof u))throw new TypeError("Promises must be constructed via new");if("function"!==typeof a)throw new TypeError("not a function");this.I=0;this.oa=!1;this.w=void 0;this.U=[];Fa(a,this)}
function Ga(a,b){for(;3===a.I;)a=a.w;0===a.I?a.U.push(b):(a.oa=!0,Ha(function(){var c=1===a.I?b.Pa:b.Qa;if(null===c)(1===a.I?Ia:Na)(b.ma,a.w);else{try{var d=c(a.w)}catch(e){Na(b.ma,e);return}Ia(b.ma,d)}}))}function Ia(a,b){try{if(b===a)throw new TypeError("A promise cannot be resolved with itself.");if(b&&("object"===typeof b||"function"===typeof b)){var c=b.then;if(b instanceof u){a.I=3;a.w=b;Oa(a);return}if("function"===typeof c){Fa(Ea(c,b),a);return}}a.I=1;a.w=b;Oa(a)}catch(d){Na(a,d)}}
function Na(a,b){a.I=2;a.w=b;Oa(a)}function Oa(a){2===a.I&&0===a.U.length&&Ha(function(){a.oa||"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",a.w)});for(var b=0,c=a.U.length;b<c;b++)Ga(a,a.U[b]);a.U=null}function Pa(a,b,c){this.Pa="function"===typeof a?a:null;this.Qa="function"===typeof b?b:null;this.ma=c}function Fa(a,b){var c=!1;try{a(function(a){c||(c=!0,Ia(b,a))},function(a){c||(c=!0,Na(b,a))})}catch(d){c||(c=!0,Na(b,d))}}
u.prototype["catch"]=function(a){return this.then(null,a)};u.prototype.then=function(a,b){var c=new this.constructor(Da);Ga(this,new Pa(a,b,c));return c};u.prototype["finally"]=function(a){var b=this.constructor;return this.then(function(c){return b.resolve(a()).then(function(){return c})},function(c){return b.resolve(a()).then(function(){return b.reject(c)})})};
function Qa(a){return new u(function(b,c){function d(a,g){try{if(g&&("object"===typeof g||"function"===typeof g)){var h=g.then;if("function"===typeof h){h.call(g,function(b){d(a,b)},c);return}}e[a]=g;0===--f&&b(e)}catch(n){c(n)}}if(!a||"undefined"===typeof a.length)throw new TypeError("Promise.all accepts an array");var e=Array.prototype.slice.call(a);if(0===e.length)return b([]);for(var f=e.length,g=0;g<e.length;g++)d(g,e[g])})}
function Ra(a){return a&&"object"===typeof a&&a.constructor===u?a:new u(function(b){b(a)})}function Sa(a){return new u(function(b,c){c(a)})}function Ta(a){return new u(function(b,c){for(var d=0,e=a.length;d<e;d++)a[d].then(b,c)})}var Ha="function"===typeof setImmediate&&function(a){setImmediate(a)}||function(a){Ca(a,0)};/*
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
if(!window.Promise){window.Promise=u;u.prototype.then=u.prototype.then;u.all=Qa;u.race=Ta;u.resolve=Ra;u.reject=Sa;var Ua=document.createTextNode(""),Va=[];(new MutationObserver(function(){for(var a=Va.length,b=0;b<a;b++)Va[b]();Va.splice(0,a)})).observe(Ua,{characterData:!0});Ha=function(a){Va.push(a);Ua.textContent=0<Ua.textContent.length?"":"a"}};/*
Copyright (C) 2015 by WebReflection
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
(function(a,b){if(!(b in a)){var c=typeof global===typeof c?window:global,d=0,e=""+Math.random(),f="__\u0001symbol@@"+e,g=a.getOwnPropertyNames,h=a.getOwnPropertyDescriptor,k=a.create,l=a.keys,n=a.freeze||a,q=a.defineProperty,I=a.defineProperties,v=h(a,"getOwnPropertyNames"),x=a.prototype,Q=x.hasOwnProperty,Eb=x.propertyIsEnumerable,Fb=x.toString,T=function(a,b,c){Q.call(a,f)||q(a,f,{enumerable:!1,configurable:!1,writable:!1,value:{}});a[f]["@@"+b]=c},Ja=function(a,b){var c=k(a);g(b).forEach(function(a){X.call(b,
a)&&Aa(c,a,b[a])});return c},p=function(){},za=function(a){return a!=f&&!Q.call(Y,a)},aa=function(a){return a!=f&&Q.call(Y,a)},X=function(a){var b=""+a;return aa(b)?Q.call(this,b)&&this[f]["@@"+b]:Eb.call(this,a)},m=function(b){q(x,b,{enumerable:!1,configurable:!0,get:p,set:function(a){ba(this,b,{enumerable:!1,configurable:!0,writable:!0,value:a});T(this,b,!0)}});return n(Y[b]=q(a(b),"constructor",Gb))},y=function(a){if(this&&this!==c)throw new TypeError("Symbol is not a constructor");return m("__\u0001symbol:".concat(a||
"",e,++d))},Y=k(null),Gb={value:y},Ka=function(a){return Y[a]},Aa=function(a,b,c){var d=""+b;if(aa(d)){b=ba;if(c.enumerable){var e=k(c);e.enumerable=!1}else e=c;b(a,d,e);T(a,d,!!c.enumerable)}else q(a,b,c);return a},La=function(a){return g(a).filter(aa).map(Ka)};v.value=Aa;q(a,"defineProperty",v);v.value=La;q(a,b,v);v.value=function(a){return g(a).filter(za)};q(a,"getOwnPropertyNames",v);v.value=function(a,b){var c=La(b);c.length?l(b).concat(c).forEach(function(c){X.call(b,c)&&Aa(a,c,b[c])}):I(a,
b);return a};q(a,"defineProperties",v);v.value=X;q(x,"propertyIsEnumerable",v);v.value=y;q(c,"Symbol",v);v.value=function(a){a="__\u0001symbol:".concat("__\u0001symbol:",a,e);return a in x?Y[a]:m(a)};q(y,"for",v);v.value=function(a){if(za(a))throw new TypeError(a+" is not a symbol");return Q.call(Y,a)?a.slice(20,-e.length):void 0};q(y,"keyFor",v);v.value=function(a,b){var c=h(a,b);c&&aa(b)&&(c.enumerable=X.call(a,b));return c};q(a,"getOwnPropertyDescriptor",v);v.value=function(a,b){return 1===arguments.length?
k(a):Ja(a,b)};q(a,"create",v);v.value=function(){var a=Fb.call(this);return"[object String]"===a&&aa(this)?"[object Symbol]":a};q(x,"toString",v);try{var ba=k(q({},"__\u0001symbol:",{get:function(){return q(this,"__\u0001symbol:",{value:!1})["__\u0001symbol:"]}}))["__\u0001symbol:"]||q}catch(Ma){ba=function(a,b,c){var d=h(x,b);delete x[b];q(a,b,c);q(x,b,d)}}}})(Object,"getOwnPropertySymbols");
(function(a){var b=a.defineProperty,c=a.prototype,d=c.toString,e;"iterator match replace search split hasInstance isConcatSpreadable unscopables species toPrimitive toStringTag".split(" ").forEach(function(f){if(!(f in Symbol))switch(b(Symbol,f,{value:Symbol(f)}),f){case "toStringTag":e=a.getOwnPropertyDescriptor(c,"toString"),e.value=function(){var a=d.call(this),b=this[Symbol.toStringTag];return"undefined"===typeof b?a:"[object "+b+"]"},b(c,"toString",e)}})})(Object,Symbol);
(function(a,b,c){function d(){return this}b[a]||(b[a]=function(){var b=0,c=this,g={next:function(){var a=c.length<=b;return a?{done:a}:{done:a,value:c[b++]}}};g[a]=d;return g});c[a]||(c[a]=function(){var b=String.fromCodePoint,c=this,g=0,h=c.length,k={next:function(){var a=h<=g,d=a?"":b(c.codePointAt(g));g+=d.length;return a?{done:a}:{done:a,value:d}}};k[a]=d;return k})})(Symbol.iterator,Array.prototype,String.prototype);/*
Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var Wa=Object.prototype.toString;Object.prototype.toString=function(){return void 0===this?"[object Undefined]":null===this?"[object Null]":Wa.call(this)};Object.keys=function(a){return Object.getOwnPropertyNames(a).filter(function(b){return(b=Object.getOwnPropertyDescriptor(a,b))&&b.enumerable})};var Xa=window.Symbol.iterator;
String.prototype[Xa]&&String.prototype.codePointAt||(String.prototype[Xa]=function Ya(){var b,c=this;return Ba(Ya,function(d){1==d.a&&(b=0);if(3!=d.a)return b<c.length?d=ta(d,c[b]):(d.a=0,d=void 0),d;b++;d.a=2})});Set.prototype[Xa]||(Set.prototype[Xa]=function Za(){var b,c=this,d;return Ba(Za,function(e){1==e.a&&(b=[],c.forEach(function(c){b.push(c)}),d=0);if(3!=e.a)return d<b.length?e=ta(e,b[d]):(e.a=0,e=void 0),e;d++;e.a=2})});
Map.prototype[Xa]||(Map.prototype[Xa]=function $a(){var b,c=this,d;return Ba($a,function(e){1==e.a&&(b=[],c.forEach(function(c,d){b.push([d,c])}),d=0);if(3!=e.a)return d<b.length?e=ta(e,b[d]):(e.a=0,e=void 0),e;d++;e.a=2})});/*
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
window.WebComponents=window.WebComponents||{flags:{}};var ab=document.querySelector('script[src*="webcomponents-bundle"]'),bb=/wc-(.+)/,w={};if(!w.noOpts){location.search.slice(1).split("&").forEach(function(a){a=a.split("=");var b;a[0]&&(b=a[0].match(bb))&&(w[b[1]]=a[1]||!0)});if(ab)for(var cb=0,db=void 0;db=ab.attributes[cb];cb++)"src"!==db.name&&(w[db.name]=db.value||!0);if(w.log&&w.log.split){var eb=w.log.split(",");w.log={};eb.forEach(function(a){w.log[a]=!0})}else w.log={}}
window.WebComponents.flags=w;var fb=w.shadydom;fb&&(window.ShadyDOM=window.ShadyDOM||{},window.ShadyDOM.force=fb);var gb=w.register||w.ce;gb&&window.customElements&&(window.customElements.forcePolyfill=gb);/*
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
function hb(){}hb.prototype.toJSON=function(){return{}};function z(a){a.__shady||(a.__shady=new hb);return a.__shady}function A(a){return a&&a.__shady};var B=window.ShadyDOM||{};B.La=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var ib=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");B.D=!!(ib&&ib.configurable&&ib.get);B.ka=B.force||!B.La;B.M=B.noPatch||!1;B.ta=B.preferPerformance;var jb=navigator.userAgent.match("Trident");B.ya=jb;function kb(a){return(a=A(a))&&void 0!==a.firstChild}function C(a){return"ShadyRoot"===a.Da}function lb(a){return(a=(a=A(a))&&a.root)&&mb(a)}
var nb=Element.prototype,ob=nb.matches||nb.matchesSelector||nb.mozMatchesSelector||nb.msMatchesSelector||nb.oMatchesSelector||nb.webkitMatchesSelector,pb=document.createTextNode(""),qb=0,rb=[];(new MutationObserver(function(){for(;rb.length;)try{rb.shift()()}catch(a){throw pb.textContent=qb++,a;}})).observe(pb,{characterData:!0});function sb(a){rb.push(a);pb.textContent=qb++}var tb=!!document.contains;function ub(a,b){for(;b;){if(b==a)return!0;b=b.__shady_parentNode}return!1}
function vb(a){for(var b=a.length-1;0<=b;b--){var c=a[b],d=c.getAttribute("id")||c.getAttribute("name");d&&"length"!==d&&isNaN(d)&&(a[d]=c)}a.item=function(b){return a[b]};a.namedItem=function(b){if("length"!==b&&isNaN(b)&&a[b])return a[b];for(var c=ja(a),d=c.next();!d.done;d=c.next())if(d=d.value,(d.getAttribute("id")||d.getAttribute("name"))==b)return d;return null};return a}function wb(a){var b=[];for(a=a.__shady_native_firstChild;a;a=a.__shady_native_nextSibling)b.push(a);return b}
function xb(a){var b=[];for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling)b.push(a);return b}function D(a,b,c,d){c=void 0===c?"":c;for(var e in b){var f=b[e];if(!(d&&0<=d.indexOf(e))){f.configurable=!0;var g=c+e;if(f.value)a[g]=f.value;else try{Object.defineProperty(a,g,f)}catch(h){}}}}function E(a){var b={};Object.getOwnPropertyNames(a).forEach(function(c){b[c]=Object.getOwnPropertyDescriptor(a,c)});return b};var yb=[],zb;function Ab(a){zb||(zb=!0,sb(Bb));yb.push(a)}function Bb(){zb=!1;for(var a=!!yb.length;yb.length;)yb.shift()();return a}Bb.list=yb;function Cb(){this.a=!1;this.addedNodes=[];this.removedNodes=[];this.$=new Set}function Db(a){a.a||(a.a=!0,sb(function(){a.flush()}))}Cb.prototype.flush=function(){if(this.a){this.a=!1;var a=this.takeRecords();a.length&&this.$.forEach(function(b){b(a)})}};Cb.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var a=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];this.addedNodes=[];this.removedNodes=[];return a}return[]};
function Hb(a,b){var c=z(a);c.V||(c.V=new Cb);c.V.$.add(b);var d=c.V;return{Ca:b,P:d,Ea:a,takeRecords:function(){return d.takeRecords()}}}function Ib(a){var b=a&&a.P;b&&(b.$.delete(a.Ca),b.$.size||(z(a.Ea).V=null))}
function Jb(a,b){var c=b.getRootNode();return a.map(function(a){var b=c===a.target.getRootNode();if(b&&a.addedNodes){if(b=Array.from(a.addedNodes).filter(function(a){return c===a.getRootNode()}),b.length)return a=Object.create(a),Object.defineProperty(a,"addedNodes",{value:b,configurable:!0}),a}else if(b)return a}).filter(function(a){return a})};var Kb=/[&\u00A0"]/g,Lb=/[&\u00A0<>]/g;function Mb(a){switch(a){case "&":return"&amp;";case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";case "\u00a0":return"&nbsp;"}}function Nb(a){for(var b={},c=0;c<a.length;c++)b[a[c]]=!0;return b}var Ob=Nb("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),Pb=Nb("style script xmp iframe noembed noframes plaintext noscript".split(" "));
function Qb(a,b){"template"===a.localName&&(a=a.content);for(var c="",d=b?b(a):a.childNodes,e=0,f=d.length,g=void 0;e<f&&(g=d[e]);e++){a:{var h=g;var k=a,l=b;switch(h.nodeType){case Node.ELEMENT_NODE:k=h.localName;for(var n="<"+k,q=h.attributes,I=0,v;v=q[I];I++)n+=" "+v.name+'="'+v.value.replace(Kb,Mb)+'"';n+=">";h=Ob[k]?n:n+Qb(h,l)+"</"+k+">";break a;case Node.TEXT_NODE:h=h.data;h=k&&Pb[k.localName]?h:h.replace(Lb,Mb);break a;case Node.COMMENT_NODE:h="\x3c!--"+h.data+"--\x3e";break a;default:throw window.console.error(h),
Error("not implemented");}}c+=h}return c};var Rb=B.D,Sb={querySelector:function(a){return this.__shady_native_querySelector(a)},querySelectorAll:function(a){return this.__shady_native_querySelectorAll(a)}},Tb={};function Ub(a){Tb[a]=function(b){return b["__shady_native_"+a]}}function Vb(a,b){D(a,b,"__shady_native_");for(var c in b)Ub(c)}function F(a,b){b=void 0===b?[]:b;for(var c=0;c<b.length;c++){var d=b[c],e=Object.getOwnPropertyDescriptor(a,d);e&&(Object.defineProperty(a,"__shady_native_"+d,e),e.value?Sb[d]||(Sb[d]=e.value):Ub(d))}}
var G=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),H=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),Wb=document.implementation.createHTMLDocument("inert");function Xb(a){for(var b;b=a.__shady_native_firstChild;)a.__shady_native_removeChild(b)}var Yb=["firstElementChild","lastElementChild","children","childElementCount"],Zb=["querySelector","querySelectorAll"];
function $b(){var a=["dispatchEvent","addEventListener","removeEventListener"];window.EventTarget?F(window.EventTarget.prototype,a):(F(Node.prototype,a),F(Window.prototype,a));Rb?F(Node.prototype,"parentNode firstChild lastChild previousSibling nextSibling childNodes parentElement textContent".split(" ")):Vb(Node.prototype,{parentNode:{get:function(){G.currentNode=this;return G.parentNode()}},firstChild:{get:function(){G.currentNode=this;return G.firstChild()}},lastChild:{get:function(){G.currentNode=
this;return G.lastChild()}},previousSibling:{get:function(){G.currentNode=this;return G.previousSibling()}},nextSibling:{get:function(){G.currentNode=this;return G.nextSibling()}},childNodes:{get:function(){var a=[];G.currentNode=this;for(var c=G.firstChild();c;)a.push(c),c=G.nextSibling();return a}},parentElement:{get:function(){H.currentNode=this;return H.parentNode()}},textContent:{get:function(){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(var a=document.createTreeWalker(this,
NodeFilter.SHOW_TEXT,null,!1),c="",d;d=a.nextNode();)c+=d.nodeValue;return c;default:return this.nodeValue}},set:function(a){if("undefined"===typeof a||null===a)a="";switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:Xb(this);(0<a.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_native_insertBefore(document.createTextNode(a),void 0);break;default:this.nodeValue=a}}}});F(Node.prototype,"appendChild insertBefore removeChild replaceChild cloneNode contains".split(" "));
F(HTMLElement.prototype,["parentElement","contains"]);a={firstElementChild:{get:function(){H.currentNode=this;return H.firstChild()}},lastElementChild:{get:function(){H.currentNode=this;return H.lastChild()}},children:{get:function(){var a=[];H.currentNode=this;for(var c=H.firstChild();c;)a.push(c),c=H.nextSibling();return vb(a)}},childElementCount:{get:function(){return this.children?this.children.length:0}}};Rb?(F(Element.prototype,Yb),F(Element.prototype,["previousElementSibling","nextElementSibling",
"innerHTML","className"]),F(HTMLElement.prototype,["children","innerHTML","className"])):(Vb(Element.prototype,a),Vb(Element.prototype,{previousElementSibling:{get:function(){H.currentNode=this;return H.previousSibling()}},nextElementSibling:{get:function(){H.currentNode=this;return H.nextSibling()}},innerHTML:{get:function(){return Qb(this,wb)},set:function(a){var b="template"===this.localName?this.content:this;Xb(b);var d=this.localName||"div";d=this.namespaceURI&&this.namespaceURI!==Wb.namespaceURI?
Wb.createElementNS(this.namespaceURI,d):Wb.createElement(d);d.innerHTML=a;for(a="template"===this.localName?d.content:d;d=a.__shady_native_firstChild;)b.__shady_native_insertBefore(d,void 0)}},className:{get:function(){return this.getAttribute("class")||""},set:function(a){this.setAttribute("class",a)}}}));F(Element.prototype,"setAttribute getAttribute hasAttribute removeAttribute focus blur".split(" "));F(Element.prototype,Zb);F(HTMLElement.prototype,["focus","blur"]);window.HTMLTemplateElement&&
F(window.HTMLTemplateElement.prototype,["innerHTML"]);Rb?F(DocumentFragment.prototype,Yb):Vb(DocumentFragment.prototype,a);F(DocumentFragment.prototype,Zb);Rb?(F(Document.prototype,Yb),F(Document.prototype,["activeElement"])):Vb(Document.prototype,a);F(Document.prototype,["importNode","getElementById"]);F(Document.prototype,Zb)};var ac=E({get childNodes(){return this.__shady_childNodes},get firstChild(){return this.__shady_firstChild},get lastChild(){return this.__shady_lastChild},get childElementCount(){return this.__shady_childElementCount},get children(){return this.__shady_children},get firstElementChild(){return this.__shady_firstElementChild},get lastElementChild(){return this.__shady_lastElementChild},get shadowRoot(){return this.__shady_shadowRoot}}),bc=E({get textContent(){return this.__shady_textContent},set textContent(a){this.__shady_textContent=
a},get innerHTML(){return this.__shady_innerHTML},set innerHTML(a){return this.__shady_innerHTML=a}}),cc=E({get parentElement(){return this.__shady_parentElement},get parentNode(){return this.__shady_parentNode},get nextSibling(){return this.__shady_nextSibling},get previousSibling(){return this.__shady_previousSibling},get nextElementSibling(){return this.__shady_nextElementSibling},get previousElementSibling(){return this.__shady_previousElementSibling},get className(){return this.__shady_className},
set className(a){return this.__shady_className=a}}),dc;for(dc in ac)ac[dc].enumerable=!1;for(var ec in bc)bc[ec].enumerable=!1;for(var fc in cc)cc[fc].enumerable=!1;var gc=B.D||B.M,hc=gc?function(){}:function(a){var b=z(a);b.Aa||(b.Aa=!0,D(a,cc))},ic=gc?function(){}:function(a){var b=z(a);b.za||(b.za=!0,D(a,ac),window.customElements&&!B.M||D(a,bc))};var jc="__eventWrappers"+Date.now(),kc=function(){var a=Object.getOwnPropertyDescriptor(Event.prototype,"composed");return a?function(b){return a.get.call(b)}:null}(),lc=function(){function a(){}var b=!1,c={get capture(){b=!0}};window.addEventListener("test",a,c);window.removeEventListener("test",a,c);return b}();function mc(a){if(a&&"object"===typeof a){var b=!!a.capture;var c=!!a.once;var d=!!a.passive;var e=a.O}else b=!!a,d=c=!1;return{ua:e,capture:b,once:c,passive:d,sa:lc?a:b}}
var nc={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,
drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},oc={DOMAttrModified:!0,DOMAttributeNameChanged:!0,DOMCharacterDataModified:!0,DOMElementNameChanged:!0,DOMNodeInserted:!0,DOMNodeInsertedIntoDocument:!0,DOMNodeRemoved:!0,DOMNodeRemovedFromDocument:!0,DOMSubtreeModified:!0};function pc(a){return a instanceof Node?a.__shady_getRootNode():a}
function qc(a,b){var c=[],d=a;for(a=pc(a);d;)c.push(d),d.__shady_assignedSlot?d=d.__shady_assignedSlot:d.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&d.host&&(b||d!==a)?d=d.host:d=d.__shady_parentNode;c[c.length-1]===document&&c.push(window);return c}function rc(a){a.__composedPath||(a.__composedPath=qc(a.target,!0));return a.__composedPath}function sc(a,b){if(!C)return a;a=qc(a,!0);for(var c=0,d,e=void 0,f,g=void 0;c<b.length;c++)if(d=b[c],f=pc(d),f!==e&&(g=a.indexOf(f),e=f),!C(f)||-1<g)return d}
function tc(a){function b(b,d){b=new a(b,d);b.__composed=d&&!!d.composed;return b}b.__proto__=a;b.prototype=a.prototype;return b}var uc={focus:!0,blur:!0};function vc(a){return a.__target!==a.target||a.__relatedTarget!==a.relatedTarget}function wc(a,b,c){if(c=b.__handlers&&b.__handlers[a.type]&&b.__handlers[a.type][c])for(var d=0,e;(e=c[d])&&(!vc(a)||a.target!==a.relatedTarget)&&(e.call(b,a),!a.__immediatePropagationStopped);d++);}
function xc(a){var b=a.composedPath();Object.defineProperty(a,"currentTarget",{get:function(){return d},configurable:!0});for(var c=b.length-1;0<=c;c--){var d=b[c];wc(a,d,"capture");if(a.ga)return}Object.defineProperty(a,"eventPhase",{get:function(){return Event.AT_TARGET}});var e;for(c=0;c<b.length;c++){d=b[c];var f=A(d);f=f&&f.root;if(0===c||f&&f===e)if(wc(a,d,"bubble"),d!==window&&(e=d.__shady_getRootNode()),a.ga)break}}
function yc(a,b,c,d,e,f){for(var g=0;g<a.length;g++){var h=a[g],k=h.type,l=h.capture,n=h.once,q=h.passive;if(b===h.node&&c===k&&d===l&&e===n&&f===q)return g}return-1}
function zc(a,b,c){var d=mc(c),e=d.capture,f=d.once,g=d.passive,h=d.ua;d=d.sa;if(b){var k=typeof b;if("function"===k||"object"===k)if("object"!==k||b.handleEvent&&"function"===typeof b.handleEvent){if(oc[a])return this.__shady_native_addEventListener(a,b,d);var l=h||this;if(h=b[jc]){if(-1<yc(h,l,a,e,f,g))return}else b[jc]=[];h=function(d){f&&this.__shady_removeEventListener(a,b,c);d.__target||Ac(d);if(l!==this){var e=Object.getOwnPropertyDescriptor(d,"currentTarget");Object.defineProperty(d,"currentTarget",
{get:function(){return l},configurable:!0})}d.__previousCurrentTarget=d.currentTarget;if(!C(l)&&"slot"!==l.localName||-1!=d.composedPath().indexOf(l))if(d.composed||-1<d.composedPath().indexOf(l))if(vc(d)&&d.target===d.relatedTarget)d.eventPhase===Event.BUBBLING_PHASE&&d.stopImmediatePropagation();else if(d.eventPhase===Event.CAPTURING_PHASE||d.bubbles||d.target===l||l instanceof Window){var g="function"===k?b.call(l,d):b.handleEvent&&b.handleEvent(d);l!==this&&(e?(Object.defineProperty(d,"currentTarget",
e),e=null):delete d.currentTarget);return g}};b[jc].push({node:l,type:a,capture:e,once:f,passive:g,ab:h});uc[a]?(this.__handlers=this.__handlers||{},this.__handlers[a]=this.__handlers[a]||{capture:[],bubble:[]},this.__handlers[a][e?"capture":"bubble"].push(h)):this.__shady_native_addEventListener(a,h,d)}}}
function Bc(a,b,c){if(b){var d=mc(c);c=d.capture;var e=d.once,f=d.passive,g=d.ua;d=d.sa;if(oc[a])return this.__shady_native_removeEventListener(a,b,d);var h=g||this;g=void 0;var k=null;try{k=b[jc]}catch(l){}k&&(e=yc(k,h,a,c,e,f),-1<e&&(g=k.splice(e,1)[0].ab,k.length||(b[jc]=void 0)));this.__shady_native_removeEventListener(a,g||b,d);g&&uc[a]&&this.__handlers&&this.__handlers[a]&&(a=this.__handlers[a][c?"capture":"bubble"],b=a.indexOf(g),-1<b&&a.splice(b,1))}}
function Cc(){for(var a in uc)window.__shady_native_addEventListener(a,function(a){a.__target||(Ac(a),xc(a))},!0)}
var Dc=E({get composed(){void 0===this.__composed&&(kc?this.__composed="focusin"===this.type||"focusout"===this.type||kc(this):!1!==this.isTrusted&&(this.__composed=nc[this.type]));return this.__composed||!1},composedPath:function(){this.__composedPath||(this.__composedPath=qc(this.__target,this.composed));return this.__composedPath},get target(){return sc(this.currentTarget||this.__previousCurrentTarget,this.composedPath())},get relatedTarget(){if(!this.__relatedTarget)return null;this.__relatedTargetComposedPath||
(this.__relatedTargetComposedPath=qc(this.__relatedTarget,!0));return sc(this.currentTarget||this.__previousCurrentTarget,this.__relatedTargetComposedPath)},stopPropagation:function(){Event.prototype.stopPropagation.call(this);this.ga=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this);this.ga=this.__immediatePropagationStopped=!0}});
function Ac(a){a.__target=a.target;a.__relatedTarget=a.relatedTarget;if(B.D){var b=Object.getPrototypeOf(a);if(!Object.hasOwnProperty(b,"__shady_patchedProto")){var c=Object.create(b);c.__shady_sourceProto=b;D(c,Dc);b.__shady_patchedProto=c}a.__proto__=b.__shady_patchedProto}else D(a,Dc)}var Ec=tc(Event),Fc=tc(CustomEvent),Gc=tc(MouseEvent);
function Hc(){if(!kc&&Object.getOwnPropertyDescriptor(Event.prototype,"isTrusted")){var a=function(){var a=new MouseEvent("click",{bubbles:!0,cancelable:!0,composed:!0});this.__shady_dispatchEvent(a)};Element.prototype.click?Element.prototype.click=a:HTMLElement.prototype.click&&(HTMLElement.prototype.click=a)}}var Ic=Object.getOwnPropertyNames(Document.prototype).filter(function(a){return"on"===a.substring(0,2)});function Jc(a,b){return{index:a,W:[],Z:b}}
function Kc(a,b,c,d){var e=0,f=0,g=0,h=0,k=Math.min(b-e,d-f);if(0==e&&0==f)a:{for(g=0;g<k;g++)if(a[g]!==c[g])break a;g=k}if(b==a.length&&d==c.length){h=a.length;for(var l=c.length,n=0;n<k-g&&Lc(a[--h],c[--l]);)n++;h=n}e+=g;f+=g;b-=h;d-=h;if(0==b-e&&0==d-f)return[];if(e==b){for(b=Jc(e,0);f<d;)b.W.push(c[f++]);return[b]}if(f==d)return[Jc(e,b-e)];k=e;g=f;d=d-g+1;h=b-k+1;b=Array(d);for(l=0;l<d;l++)b[l]=Array(h),b[l][0]=l;for(l=0;l<h;l++)b[0][l]=l;for(l=1;l<d;l++)for(n=1;n<h;n++)if(a[k+n-1]===c[g+l-1])b[l][n]=
b[l-1][n-1];else{var q=b[l-1][n]+1,I=b[l][n-1]+1;b[l][n]=q<I?q:I}k=b.length-1;g=b[0].length-1;d=b[k][g];for(a=[];0<k||0<g;)0==k?(a.push(2),g--):0==g?(a.push(3),k--):(h=b[k-1][g-1],l=b[k-1][g],n=b[k][g-1],q=l<n?l<h?l:h:n<h?n:h,q==h?(h==d?a.push(0):(a.push(1),d=h),k--,g--):q==l?(a.push(3),k--,d=l):(a.push(2),g--,d=n));a.reverse();b=void 0;k=[];for(g=0;g<a.length;g++)switch(a[g]){case 0:b&&(k.push(b),b=void 0);e++;f++;break;case 1:b||(b=Jc(e,0));b.Z++;e++;b.W.push(c[f]);f++;break;case 2:b||(b=Jc(e,0));
b.Z++;e++;break;case 3:b||(b=Jc(e,0)),b.W.push(c[f]),f++}b&&k.push(b);return k}function Lc(a,b){return a===b};function Mc(a,b,c,d){hc(a);d=d||null;var e=z(a),f=d?z(d):null;e.previousSibling=d?f.previousSibling:b.__shady_lastChild;if(f=A(e.previousSibling))f.nextSibling=a;if(f=A(e.nextSibling=d))f.previousSibling=a;e.parentNode=b;d?d===c.firstChild&&(c.firstChild=a):(c.lastChild=a,c.firstChild||(c.firstChild=a));c.childNodes=null}
function Nc(a,b,c){ic(b);var d=z(b);void 0!==d.firstChild&&(d.childNodes=null);if(a.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(a=a.__shady_native_firstChild;a;a=a.__shady_native_nextSibling)Mc(a,b,d,c);else Mc(a,b,d,c)}
function Oc(a,b){var c=z(a);b=z(b);a===b.firstChild&&(b.firstChild=c.nextSibling);a===b.lastChild&&(b.lastChild=c.previousSibling);a=c.previousSibling;var d=c.nextSibling;a&&(z(a).nextSibling=d);d&&(z(d).previousSibling=a);c.parentNode=c.previousSibling=c.nextSibling=void 0;void 0!==b.childNodes&&(b.childNodes=null)}
function Pc(a,b){var c=z(a);if(b||void 0===c.firstChild){c.childNodes=null;var d=c.firstChild=a.__shady_native_firstChild;c.lastChild=a.__shady_native_lastChild;ic(a);c=d;for(d=void 0;c;c=c.__shady_native_nextSibling){var e=z(c);e.parentNode=b||a;e.nextSibling=c.__shady_native_nextSibling;e.previousSibling=d||null;d=c;hc(c)}}};var Qc=null;function Rc(){Qc||(Qc=window.ShadyCSS&&window.ShadyCSS.ScopingShim);return Qc||null}function Sc(a,b){var c=Rc();c&&c.unscopeNode(a,b)}function Tc(a,b){var c=Rc();if(!c)return!0;if(a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){c=!0;for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling)c=c&&Tc(a,b);return c}return a.nodeType!==Node.ELEMENT_NODE?!0:c.currentScopeForNode(a)===b}function Uc(a){if(a.nodeType!==Node.ELEMENT_NODE)return"";var b=Rc();return b?b.currentScopeForNode(a):""}
function Vc(a,b){if(a)for(a.nodeType===Node.ELEMENT_NODE&&b(a),a=a.__shady_firstChild;a;a=a.__shady_nextSibling)a.nodeType===Node.ELEMENT_NODE&&Vc(a,b)};var Wc=window.document,Xc=B.ta,Yc=Object.getOwnPropertyDescriptor(Node.prototype,"isConnected"),Zc=Yc&&Yc.get;function $c(a){for(var b;b=a.__shady_firstChild;)a.__shady_removeChild(b)}function ad(a){var b=A(a);if(b&&void 0!==b.ca)for(b=a.__shady_firstChild;b;b=b.__shady_nextSibling)ad(b);if(a=A(a))a.ca=void 0}function bd(a){var b=a;a&&"slot"===a.localName&&(b=(b=(b=A(a))&&b.T)&&b.length?b[0]:bd(a.__shady_nextSibling));return b}
function cd(a,b,c){if(a=(a=A(a))&&a.V)b&&a.addedNodes.push(b),c&&a.removedNodes.push(c),Db(a)}
var gd=E({get parentNode(){var a=A(this);a=a&&a.parentNode;return void 0!==a?a:this.__shady_native_parentNode},get firstChild(){var a=A(this);a=a&&a.firstChild;return void 0!==a?a:this.__shady_native_firstChild},get lastChild(){var a=A(this);a=a&&a.lastChild;return void 0!==a?a:this.__shady_native_lastChild},get nextSibling(){var a=A(this);a=a&&a.nextSibling;return void 0!==a?a:this.__shady_native_nextSibling},get previousSibling(){var a=A(this);a=a&&a.previousSibling;return void 0!==a?a:this.__shady_native_previousSibling},
get childNodes(){if(kb(this)){var a=A(this);if(!a.childNodes){a.childNodes=[];for(var b=this.__shady_firstChild;b;b=b.__shady_nextSibling)a.childNodes.push(b)}var c=a.childNodes}else c=this.__shady_native_childNodes;c.item=function(a){return c[a]};return c},get parentElement(){var a=A(this);(a=a&&a.parentNode)&&a.nodeType!==Node.ELEMENT_NODE&&(a=null);return void 0!==a?a:this.__shady_native_parentElement},get isConnected(){if(Zc&&Zc.call(this))return!0;if(this.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!1;
var a=this.ownerDocument;if(tb){if(a.__shady_native_contains(this))return!0}else if(a.documentElement&&a.documentElement.__shady_native_contains(this))return!0;for(a=this;a&&!(a instanceof Document);)a=a.__shady_parentNode||(C(a)?a.host:void 0);return!!(a&&a instanceof Document)},get textContent(){if(kb(this)){for(var a=[],b=this.__shady_firstChild;b;b=b.__shady_nextSibling)b.nodeType!==Node.COMMENT_NODE&&a.push(b.__shady_textContent);return a.join("")}return this.__shady_native_textContent},set textContent(a){if("undefined"===
typeof a||null===a)a="";switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:if(!kb(this)&&B.D){var b=this.__shady_firstChild;(b!=this.__shady_lastChild||b&&b.nodeType!=Node.TEXT_NODE)&&$c(this);this.__shady_native_textContent=a}else $c(this),(0<a.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_insertBefore(document.createTextNode(a));break;default:this.nodeValue=a}},insertBefore:function(a,b){if(this.ownerDocument!==Wc&&a.ownerDocument!==Wc)return this.__shady_native_insertBefore(a,
b),a;if(a===this)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");if(b){var c=A(b);c=c&&c.parentNode;if(void 0!==c&&c!==this||void 0===c&&b.__shady_native_parentNode!==this)throw Error("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.");}if(b===a)return a;var d=[],e=(c=dd(this))?c.host.localName:Uc(this),f=a.__shady_parentNode;if(f){var g=Uc(a);var h=!!c||!dd(a)||Xc&&void 0!==
this.__noInsertionPoint;f.__shady_removeChild(a,h)}f=!0;var k=(!Xc||void 0===a.__noInsertionPoint&&void 0===this.__noInsertionPoint)&&!Tc(a,e),l=c&&!a.__noInsertionPoint&&(!Xc||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE);if(l||k)k&&(g=g||Uc(a)),Vc(a,function(a){l&&"slot"===a.localName&&d.push(a);if(k){var b=g;Rc()&&(b&&Sc(a,b),(b=Rc())&&b.scopeNode(a,e))}});d.length&&(ed(c),c.c.push.apply(c.c,d instanceof Array?d:ka(ja(d))),J(c));kb(this)&&(Nc(a,this,b),c=A(this),lb(this)?(J(c.root),f=!1):c.root&&(f=
!1));f?(c=C(this)?this.host:this,b?(b=bd(b),c.__shady_native_insertBefore(a,b)):c.__shady_native_appendChild(a)):a.ownerDocument!==this.ownerDocument&&this.ownerDocument.adoptNode(a);cd(this,a);return a},appendChild:function(a){if(this!=a||!C(a))return this.__shady_insertBefore(a)},removeChild:function(a,b){b=void 0===b?!1:b;if(this.ownerDocument!==Wc)return this.__shady_native_removeChild(a);if(a.__shady_parentNode!==this)throw Error("The node to be removed is not a child of this node: "+a);var c=
dd(a),d=c&&fd(c,a),e=A(this);if(kb(this)&&(Oc(a,this),lb(this))){J(e.root);var f=!0}if(Rc()&&!b&&c&&a.nodeType!==Node.TEXT_NODE){var g=Uc(a);Vc(a,function(a){Sc(a,g)})}ad(a);c&&((b=this&&"slot"===this.localName)&&(f=!0),(d||b)&&J(c));f||(f=C(this)?this.host:this,(!e.root&&"slot"!==a.localName||f===a.__shady_native_parentNode)&&f.__shady_native_removeChild(a));cd(this,null,a);return a},replaceChild:function(a,b){this.__shady_insertBefore(a,b);this.__shady_removeChild(b);return a},cloneNode:function(a){if("template"==
this.localName)return this.__shady_native_cloneNode(a);var b=this.__shady_native_cloneNode(!1);if(a&&b.nodeType!==Node.ATTRIBUTE_NODE){a=this.__shady_firstChild;for(var c;a;a=a.__shady_nextSibling)c=a.__shady_cloneNode(!0),b.__shady_appendChild(c)}return b},getRootNode:function(a){if(this&&this.nodeType){var b=z(this),c=b.ca;void 0===c&&(C(this)?(c=this,b.ca=c):(c=(c=this.__shady_parentNode)?c.__shady_getRootNode(a):this,document.documentElement.__shady_native_contains(this)&&(b.ca=c)));return c}},
contains:function(a){return ub(this,a)}});function hd(a,b,c){var d=[];id(a,b,c,d);return d}function id(a,b,c,d){for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling){var e;if(e=a.nodeType===Node.ELEMENT_NODE){e=a;var f=b,g=c,h=d,k=f(e);k&&h.push(e);g&&g(k)?e=k:(id(e,f,g,h),e=void 0)}if(e)break}}
var jd=E({get firstElementChild(){var a=A(this);if(a&&void 0!==a.firstChild){for(a=this.__shady_firstChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_nextSibling;return a}return this.__shady_native_firstElementChild},get lastElementChild(){var a=A(this);if(a&&void 0!==a.lastChild){for(a=this.__shady_lastChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_previousSibling;return a}return this.__shady_native_lastElementChild},get children(){return kb(this)?vb(Array.prototype.filter.call(xb(this),
function(a){return a.nodeType===Node.ELEMENT_NODE})):this.__shady_native_children},get childElementCount(){var a=this.__shady_children;return a?a.length:0}}),kd=E({querySelector:function(a){return hd(this,function(b){return ob.call(b,a)},function(a){return!!a})[0]||null},querySelectorAll:function(a,b){if(b){b=Array.prototype.slice.call(this.__shady_native_querySelectorAll(a));var c=this.__shady_getRootNode();return b.filter(function(a){return a.__shady_getRootNode()==c})}return hd(this,function(b){return ob.call(b,
a)})}}),ld=B.ta&&!B.M?Object.assign({},jd):jd;Object.assign(jd,kd);var md=E({getElementById:function(a){return""===a?null:hd(this,function(b){return b.id==a},function(a){return!!a})[0]||null}});var nd=E({get activeElement(){var a=B.D?document.__shady_native_activeElement:document.activeElement;if(!a||!a.nodeType)return null;var b=!!C(this);if(!(this===document||b&&this.host!==a&&this.host.__shady_native_contains(a)))return null;for(b=dd(a);b&&b!==this;)a=b.host,b=dd(a);return this===document?b?null:a:b===this?a:null}});var od=document.implementation.createHTMLDocument("inert"),pd=E({get innerHTML(){return kb(this)?Qb("template"===this.localName?this.content:this,xb):this.__shady_native_innerHTML},set innerHTML(a){if("template"===this.localName)this.__shady_native_innerHTML=a;else{$c(this);var b=this.localName||"div";b=this.namespaceURI&&this.namespaceURI!==od.namespaceURI?od.createElementNS(this.namespaceURI,b):od.createElement(b);for(B.D?b.__shady_native_innerHTML=a:b.innerHTML=a;a=b.__shady_firstChild;)this.__shady_insertBefore(a)}}});var qd=E({addEventListener:function(a,b,c){"object"!==typeof c&&(c={capture:!!c});c.O=c.O||this;this.host.__shady_addEventListener(a,b,c)},removeEventListener:function(a,b,c){"object"!==typeof c&&(c={capture:!!c});c.O=c.O||this;this.host.__shady_removeEventListener(a,b,c)}});function rd(a,b){D(a,qd,b);D(a,nd,b);D(a,pd,b);D(a,jd,b);B.M&&!b?(D(a,gd,b),D(a,md,b)):B.D||(D(a,cc),D(a,ac),D(a,bc))};var sd={},td=B.deferConnectionCallbacks&&"loading"===document.readyState,ud;function vd(a){var b=[];do b.unshift(a);while(a=a.__shady_parentNode);return b}function wd(a,b,c){if(a!==sd)throw new TypeError("Illegal constructor");this.a=null;xd(this,b,c)}
function xd(a,b,c){a.Da="ShadyRoot";a.host=b;a.mode=c&&c.mode;Pc(a.host);b=z(a.host);b.root=a;b.Ta="closed"!==a.mode?a:null;b=z(a);b.firstChild=b.lastChild=b.parentNode=b.nextSibling=b.previousSibling=null;if(B.preferPerformance)for(;b=a.host.__shady_native_firstChild;)a.host.__shady_native_removeChild(b);else J(a)}function J(a){a.R||(a.R=!0,Ab(function(){return yd(a)}))}
function yd(a){var b;if(b=a.R){for(var c;a;)a:{a.R&&(c=a),b=a;a=b.host.__shady_getRootNode();if(C(a)&&(b=A(b.host))&&0<b.Y)break a;a=void 0}b=c}(c=b)&&c._renderSelf()}
wd.prototype._renderSelf=function(){var a=td;td=!0;this.R=!1;if(this.a){zd(this);for(var b=0,c;b<this.a.length;b++){c=this.a[b];var d=A(c),e=d.assignedNodes;d.assignedNodes=[];d.T=[];if(d.qa=e)for(d=0;d<e.length;d++){var f=A(e[d]);f.ha=f.assignedSlot;f.assignedSlot===c&&(f.assignedSlot=null)}}for(b=this.host.__shady_firstChild;b;b=b.__shady_nextSibling)Ad(this,b);for(b=0;b<this.a.length;b++){c=this.a[b];e=A(c);if(!e.assignedNodes.length)for(d=c.__shady_firstChild;d;d=d.__shady_nextSibling)Ad(this,
d,c);(d=(d=A(c.__shady_parentNode))&&d.root)&&(mb(d)||d.R)&&d._renderSelf();Bd(this,e.T,e.assignedNodes);if(d=e.qa){for(f=0;f<d.length;f++)A(d[f]).ha=null;e.qa=null;d.length>e.assignedNodes.length&&(e.ja=!0)}e.ja&&(e.ja=!1,Cd(this,c))}c=this.a;b=[];for(e=0;e<c.length;e++)d=c[e].__shady_parentNode,(f=A(d))&&f.root||!(0>b.indexOf(d))||b.push(d);for(c=0;c<b.length;c++){f=b[c];e=f===this?this.host:f;d=[];for(f=f.__shady_firstChild;f;f=f.__shady_nextSibling)if("slot"==f.localName)for(var g=A(f).T,h=0;h<
g.length;h++)d.push(g[h]);else d.push(f);f=wb(e);g=Kc(d,d.length,f,f.length);for(var k=h=0,l=void 0;h<g.length&&(l=g[h]);h++){for(var n=0,q=void 0;n<l.W.length&&(q=l.W[n]);n++)q.__shady_native_parentNode===e&&e.__shady_native_removeChild(q),f.splice(l.index+k,1);k-=l.Z}k=0;for(l=void 0;k<g.length&&(l=g[k]);k++)for(h=f[l.index],n=l.index;n<l.index+l.Z;n++)q=d[n],e.__shady_native_insertBefore(q,h),f.splice(n,0,q)}}if(!B.preferPerformance&&!this.pa)for(b=this.host.__shady_firstChild;b;b=b.__shady_nextSibling)c=
A(b),b.__shady_native_parentNode!==this.host||"slot"!==b.localName&&c.assignedSlot||this.host.__shady_native_removeChild(b);this.pa=!0;td=a;ud&&ud()};function Ad(a,b,c){var d=z(b),e=d.ha;d.ha=null;c||(c=(a=a.b[b.__shady_slot||"__catchall"])&&a[0]);c?(z(c).assignedNodes.push(b),d.assignedSlot=c):d.assignedSlot=void 0;e!==d.assignedSlot&&d.assignedSlot&&(z(d.assignedSlot).ja=!0)}
function Bd(a,b,c){for(var d=0,e=void 0;d<c.length&&(e=c[d]);d++)if("slot"==e.localName){var f=A(e).assignedNodes;f&&f.length&&Bd(a,b,f)}else b.push(c[d])}function Cd(a,b){b.__shady_native_dispatchEvent(new Event("slotchange"));b=A(b);b.assignedSlot&&Cd(a,b.assignedSlot)}function ed(a){a.c=a.c||[];a.a=a.a||[];a.b=a.b||{}}
function zd(a){if(a.c&&a.c.length){for(var b=a.c,c,d=0;d<b.length;d++){var e=b[d];Pc(e);var f=e.__shady_parentNode;Pc(f);f=A(f);f.Y=(f.Y||0)+1;f=Dd(e);a.b[f]?(c=c||{},c[f]=!0,a.b[f].push(e)):a.b[f]=[e];a.a.push(e)}if(c)for(var g in c)a.b[g]=Ed(a.b[g]);a.c=[]}}function Dd(a){var b=a.name||a.getAttribute("name")||"__catchall";return a.Ba=b}
function Ed(a){return a.sort(function(a,c){a=vd(a);for(var b=vd(c),e=0;e<a.length;e++){c=a[e];var f=b[e];if(c!==f)return a=xb(c.__shady_parentNode),a.indexOf(c)-a.indexOf(f)}})}
function fd(a,b){if(a.a){zd(a);var c=a.b,d;for(d in c)for(var e=c[d],f=0;f<e.length;f++){var g=e[f];if(ub(b,g)){e.splice(f,1);var h=a.a.indexOf(g);0<=h&&(a.a.splice(h,1),(h=A(g.__shady_parentNode))&&h.Y&&h.Y--);f--;g=A(g);if(h=g.T)for(var k=0;k<h.length;k++){var l=h[k],n=l.__shady_native_parentNode;n&&n.__shady_native_removeChild(l)}g.T=[];g.assignedNodes=[];h=!0}}return h}}function mb(a){zd(a);return!(!a.a||!a.a.length)}
(function(a){a.__proto__=DocumentFragment.prototype;rd(a,"__shady_");rd(a);Object.defineProperties(a,{nodeType:{value:Node.DOCUMENT_FRAGMENT_NODE,configurable:!0},nodeName:{value:"#document-fragment",configurable:!0},nodeValue:{value:null,configurable:!0}});["localName","namespaceURI","prefix"].forEach(function(b){Object.defineProperty(a,b,{value:void 0,configurable:!0})});["ownerDocument","baseURI","isConnected"].forEach(function(b){Object.defineProperty(a,b,{get:function(){return this.host[b]},
configurable:!0})})})(wd.prototype);
if(window.customElements&&B.ka&&!B.preferPerformance){var Fd=new Map;ud=function(){var a=[];Fd.forEach(function(b,c){a.push([c,b])});Fd.clear();for(var b=0;b<a.length;b++){var c=a[b][0];a[b][1]?c.__shadydom_connectedCallback():c.__shadydom_disconnectedCallback()}};td&&document.addEventListener("readystatechange",function(){td=!1;ud()},{once:!0});var Gd=function(a,b,c){var d=0,e="__isConnected"+d++;if(b||c)a.prototype.connectedCallback=a.prototype.__shadydom_connectedCallback=function(){td?Fd.set(this,
!0):this[e]||(this[e]=!0,b&&b.call(this))},a.prototype.disconnectedCallback=a.prototype.__shadydom_disconnectedCallback=function(){td?this.isConnected||Fd.set(this,!1):this[e]&&(this[e]=!1,c&&c.call(this))};return a},Hd=window.customElements.define,define=function(a,b){var c=b.prototype.connectedCallback,d=b.prototype.disconnectedCallback;Hd.call(window.customElements,a,Gd(b,c,d));b.prototype.connectedCallback=c;b.prototype.disconnectedCallback=d};window.customElements.define=define;Object.defineProperty(window.CustomElementRegistry.prototype,
"define",{value:define,configurable:!0})}function dd(a){a=a.__shady_getRootNode();if(C(a))return a};function Id(a){this.node=a}r=Id.prototype;r.addEventListener=function(a,b,c){return this.node.__shady_addEventListener(a,b,c)};r.removeEventListener=function(a,b,c){return this.node.__shady_removeEventListener(a,b,c)};r.appendChild=function(a){return this.node.__shady_appendChild(a)};r.insertBefore=function(a,b){return this.node.__shady_insertBefore(a,b)};r.removeChild=function(a){return this.node.__shady_removeChild(a)};r.replaceChild=function(a,b){return this.node.__shady_replaceChild(a,b)};
r.cloneNode=function(a){return this.node.__shady_cloneNode(a)};r.getRootNode=function(a){return this.node.__shady_getRootNode(a)};r.contains=function(a){return this.node.__shady_contains(a)};r.dispatchEvent=function(a){return this.node.__shady_dispatchEvent(a)};r.setAttribute=function(a,b){this.node.__shady_setAttribute(a,b)};r.getAttribute=function(a){return this.node.__shady_native_getAttribute(a)};r.hasAttribute=function(a){return this.node.__shady_native_hasAttribute(a)};r.removeAttribute=function(a){this.node.__shady_removeAttribute(a)};
r.attachShadow=function(a){return this.node.__shady_attachShadow(a)};r.focus=function(){this.node.__shady_native_focus()};r.blur=function(){this.node.__shady_blur()};r.importNode=function(a,b){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_importNode(a,b)};r.getElementById=function(a){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_getElementById(a)};r.querySelector=function(a){return this.node.__shady_querySelector(a)};
r.querySelectorAll=function(a,b){return this.node.__shady_querySelectorAll(a,b)};r.assignedNodes=function(a){if("slot"===this.node.localName)return this.node.__shady_assignedNodes(a)};
t.Object.defineProperties(Id.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){if(C(this.node)||this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_activeElement}},_activeElement:{configurable:!0,enumerable:!0,get:function(){return this.activeElement}},host:{configurable:!0,enumerable:!0,get:function(){if(C(this.node))return this.node.host}},parentNode:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_parentNode}},firstChild:{configurable:!0,
enumerable:!0,get:function(){return this.node.__shady_firstChild}},lastChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_lastChild}},nextSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_nextSibling}},previousSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_previousSibling}},childNodes:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_childNodes}},parentElement:{configurable:!0,enumerable:!0,
get:function(){return this.node.__shady_parentElement}},firstElementChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_firstElementChild}},lastElementChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_lastElementChild}},nextElementSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_nextElementSibling}},previousElementSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_previousElementSibling}},
children:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_children}},childElementCount:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_childElementCount}},shadowRoot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_shadowRoot}},assignedSlot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_assignedSlot}},isConnected:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_isConnected}},innerHTML:{configurable:!0,
enumerable:!0,get:function(){return this.node.__shady_innerHTML},set:function(a){this.node.__shady_innerHTML=a}},textContent:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_textContent},set:function(a){this.node.__shady_textContent=a}},slot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_slot},set:function(a){this.node.__shady_slot=a}},className:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_className},set:function(a){return this.node.__shady_className=
a}}});Ic.forEach(function(a){Object.defineProperty(Id.prototype,a,{get:function(){return this.node["__shady_"+a]},set:function(b){this.node["__shady_"+a]=b},configurable:!0})});var Jd=new WeakMap;function Kd(a){if(C(a)||a instanceof Id)return a;var b=Jd.get(a);b||(b=new Id(a),Jd.set(a,b));return b};var Ld=E({dispatchEvent:function(a){Bb();return this.__shady_native_dispatchEvent(a)},addEventListener:zc,removeEventListener:Bc});var Md=E({get assignedSlot(){var a=this.__shady_parentNode;(a=a&&a.__shady_shadowRoot)&&yd(a);return(a=A(this))&&a.assignedSlot||null}});var Nd=window.document;function Od(a,b){if("slot"===b)a=a.__shady_parentNode,lb(a)&&J(A(a).root);else if("slot"===a.localName&&"name"===b&&(b=dd(a))){if(b.a){zd(b);var c=a.Ba,d=Dd(a);if(d!==c){c=b.b[c];var e=c.indexOf(a);0<=e&&c.splice(e,1);c=b.b[d]||(b.b[d]=[]);c.push(a);1<c.length&&(b.b[d]=Ed(c))}}J(b)}}
var Pd=E({get previousElementSibling(){var a=A(this);if(a&&void 0!==a.previousSibling){for(a=this.__shady_previousSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_previousSibling;return a}return this.__shady_native_previousElementSibling},get nextElementSibling(){var a=A(this);if(a&&void 0!==a.nextSibling){for(a=this.__shady_nextSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_nextSibling;return a}return this.__shady_native_nextElementSibling},get slot(){return this.getAttribute("slot")},
set slot(a){this.__shady_setAttribute("slot",a)},get shadowRoot(){var a=A(this);return a&&a.Ta||null},get className(){return this.getAttribute("class")||""},set className(a){this.__shady_setAttribute("class",a)},setAttribute:function(a,b){if(this.ownerDocument!==Nd)this.__shady_native_setAttribute(a,b);else{var c;(c=Rc())&&"class"===a?(c.setElementClass(this,b),c=!0):c=!1;c||(this.__shady_native_setAttribute(a,b),Od(this,a))}},removeAttribute:function(a){this.__shady_native_removeAttribute(a);Od(this,
a)},attachShadow:function(a){if(!this)throw Error("Must provide a host.");if(!a)throw Error("Not enough arguments.");if(a.shadyUpgradeFragment&&!B.ya){var b=a.shadyUpgradeFragment;b.__proto__=ShadowRoot.prototype;xd(b,this,a);Pc(b,b);a=b.__noInsertionPoint?null:b.querySelectorAll("slot");b.__noInsertionPoint=void 0;if(a&&a.length){var c=b;ed(c);c.c.push.apply(c.c,a instanceof Array?a:ka(ja(a)));J(b)}b.host.__shady_native_appendChild(b)}else b=new wd(sd,this,a);return b}});var Qd=E({blur:function(){var a=A(this);(a=(a=a&&a.root)&&a.activeElement)?a.__shady_blur():this.__shady_native_blur()}});Ic.forEach(function(a){Qd[a]={set:function(b){var c=z(this),d=a.substring(2);c.N||(c.N={});c.N[a]&&this.removeEventListener(d,c.N[a]);this.__shady_addEventListener(d,b);c.N[a]=b},get:function(){var b=A(this);return b&&b.N&&b.N[a]},configurable:!0}});var Rd=E({assignedNodes:function(a){if("slot"===this.localName){var b=this.__shady_getRootNode();b&&C(b)&&yd(b);return(b=A(this))?(a&&a.flatten?b.T:b.assignedNodes)||[]:[]}},addEventListener:function(a,b,c){if("slot"!==this.localName||"slotchange"===a)zc.call(this,a,b,c);else{"object"!==typeof c&&(c={capture:!!c});var d=this.__shady_parentNode;if(!d)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");c.O=this;d.__shady_addEventListener(a,b,c)}},removeEventListener:function(a,
b,c){if("slot"!==this.localName||"slotchange"===a)Bc.call(this,a,b,c);else{"object"!==typeof c&&(c={capture:!!c});var d=this.__shady_parentNode;if(!d)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");c.O=this;d.__shady_removeEventListener(a,b,c)}}});var Sd=window.document,Td=E({importNode:function(a,b){if(a.ownerDocument!==Sd||"template"===a.localName)return this.__shady_native_importNode(a,b);var c=this.__shady_native_importNode(a,!1);if(b)for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling)b=this.__shady_importNode(a,!0),c.__shady_appendChild(b);return c}});var Ud=E({addEventListener:zc.bind(window),removeEventListener:Bc.bind(window)});var Vd={};Object.getOwnPropertyDescriptor(HTMLElement.prototype,"parentElement")&&(Vd.parentElement=gd.parentElement);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"contains")&&(Vd.contains=gd.contains);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"children")&&(Vd.children=jd.children);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML")&&(Vd.innerHTML=pd.innerHTML);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"className")&&(Vd.className=Pd.className);
var Wd={EventTarget:[Ld],Node:[gd,window.EventTarget?null:Ld],Text:[Md],Element:[Pd,jd,Md,!B.D||"innerHTML"in Element.prototype?pd:null,window.HTMLSlotElement?null:Rd],HTMLElement:[Qd,Vd],HTMLSlotElement:[Rd],DocumentFragment:[ld,md],Document:[Td,ld,md,nd],Window:[Ud]},Xd=B.D?null:["innerHTML","textContent"];function Yd(a){var b=a?null:Xd,c={},d;for(d in Wd)c.ea=window[d]&&window[d].prototype,Wd[d].forEach(function(c){return function(d){return c.ea&&d&&D(c.ea,d,a,b)}}(c)),c={ea:c.ea}};if(B.ka){var ShadyDOM={inUse:B.ka,patch:function(a){ic(a);hc(a);return a},isShadyRoot:C,enqueue:Ab,flush:Bb,flushInitial:function(a){!a.pa&&a.R&&yd(a)},settings:B,filterMutations:Jb,observeChildren:Hb,unobserveChildren:Ib,deferConnectionCallbacks:B.deferConnectionCallbacks,preferPerformance:B.preferPerformance,handlesDynamicScoping:!0,wrap:B.M?Kd:function(a){return a},Wrapper:Id,composedPath:rc,noPatch:B.M,nativeMethods:Sb,nativeTree:Tb};window.ShadyDOM=ShadyDOM;$b();Yd("__shady_");Object.defineProperty(document,
"_activeElement",nd.activeElement);D(Window.prototype,Ud,"__shady_");B.M||(Yd(),Hc());Cc();window.Event=Ec;window.CustomEvent=Fc;window.MouseEvent=Gc;window.ShadowRoot=wd};var Zd=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function $d(a){var b=Zd.has(a);a=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(a);return!b&&a}function K(a){var b=a.isConnected;if(void 0!==b)return b;for(;a&&!(a.__CE_isImportDocument||a instanceof Document);)a=a.parentNode||(window.ShadowRoot&&a instanceof ShadowRoot?a.host:void 0);return!(!a||!(a.__CE_isImportDocument||a instanceof Document))}
function ae(a,b){for(;b&&b!==a&&!b.nextSibling;)b=b.parentNode;return b&&b!==a?b.nextSibling:null}
function be(a,b,c){c=void 0===c?new Set:c;for(var d=a;d;){if(d.nodeType===Node.ELEMENT_NODE){var e=d;b(e);var f=e.localName;if("link"===f&&"import"===e.getAttribute("rel")){d=e.import;if(d instanceof Node&&!c.has(d))for(c.add(d),d=d.firstChild;d;d=d.nextSibling)be(d,b,c);d=ae(a,e);continue}else if("template"===f){d=ae(a,e);continue}if(e=e.__CE_shadowRoot)for(e=e.firstChild;e;e=e.nextSibling)be(e,b,c)}d=d.firstChild?d.firstChild:ae(a,d)}}function L(a,b,c){a[b]=c};function ce(){this.a=new Map;this.u=new Map;this.c=[];this.f=[];this.b=!1}function de(a,b,c){a.a.set(b,c);a.u.set(c.constructorFunction,c)}function ee(a,b){a.b=!0;a.c.push(b)}function fe(a,b){a.b=!0;a.f.push(b)}function ge(a,b){a.b&&be(b,function(b){return he(a,b)})}function he(a,b){if(a.b&&!b.__CE_patched){b.__CE_patched=!0;for(var c=0;c<a.c.length;c++)a.c[c](b);for(c=0;c<a.f.length;c++)a.f[c](b)}}
function M(a,b){var c=[];be(b,function(a){return c.push(a)});for(b=0;b<c.length;b++){var d=c[b];1===d.__CE_state?a.connectedCallback(d):ie(a,d)}}function N(a,b){var c=[];be(b,function(a){return c.push(a)});for(b=0;b<c.length;b++){var d=c[b];1===d.__CE_state&&a.disconnectedCallback(d)}}
function O(a,b,c){c=void 0===c?{}:c;var d=c.$a||new Set,e=c.fa||function(b){return ie(a,b)},f=[];be(b,function(b){if("link"===b.localName&&"import"===b.getAttribute("rel")){var c=b.import;c instanceof Node&&(c.__CE_isImportDocument=!0,c.__CE_hasRegistry=!0);c&&"complete"===c.readyState?c.__CE_documentLoadHandled=!0:b.addEventListener("load",function(){var c=b.import;if(!c.__CE_documentLoadHandled){c.__CE_documentLoadHandled=!0;var f=new Set(d);f.delete(c);O(a,c,{$a:f,fa:e})}})}else f.push(b)},d);
if(a.b)for(b=0;b<f.length;b++)he(a,f[b]);for(b=0;b<f.length;b++)e(f[b])}
function ie(a,b){if(void 0===b.__CE_state){var c=b.ownerDocument;if(c.defaultView||c.__CE_isImportDocument&&c.__CE_hasRegistry)if(c=a.a.get(b.localName)){c.constructionStack.push(b);var d=c.constructorFunction;try{try{if(new d!==b)throw Error("The custom element constructor did not produce the element being upgraded.");}finally{c.constructionStack.pop()}}catch(g){throw b.__CE_state=2,g;}b.__CE_state=1;b.__CE_definition=c;if(c.attributeChangedCallback)for(c=c.observedAttributes,d=0;d<c.length;d++){var e=
c[d],f=b.getAttribute(e);null!==f&&a.attributeChangedCallback(b,e,null,f,null)}K(b)&&a.connectedCallback(b)}}}ce.prototype.connectedCallback=function(a){var b=a.__CE_definition;b.connectedCallback&&b.connectedCallback.call(a)};ce.prototype.disconnectedCallback=function(a){var b=a.__CE_definition;b.disconnectedCallback&&b.disconnectedCallback.call(a)};
ce.prototype.attributeChangedCallback=function(a,b,c,d,e){var f=a.__CE_definition;f.attributeChangedCallback&&-1<f.observedAttributes.indexOf(b)&&f.attributeChangedCallback.call(a,b,c,d,e)};function je(a){var b=document;this.b=a;this.a=b;this.P=void 0;O(this.b,this.a);"loading"===this.a.readyState&&(this.P=new MutationObserver(this.c.bind(this)),this.P.observe(this.a,{childList:!0,subtree:!0}))}function ke(a){a.P&&a.P.disconnect()}je.prototype.c=function(a){var b=this.a.readyState;"interactive"!==b&&"complete"!==b||ke(this);for(b=0;b<a.length;b++)for(var c=a[b].addedNodes,d=0;d<c.length;d++)O(this.b,c[d])};function le(){var a=this;this.a=this.w=void 0;this.b=new Promise(function(b){a.a=b;a.w&&b(a.w)})}le.prototype.resolve=function(a){if(this.w)throw Error("Already resolved.");this.w=a;this.a&&this.a(a)};function P(a){this.c=!1;this.a=a;this.F=new Map;this.f=function(a){return a()};this.b=!1;this.u=[];this.aa=new je(a)}r=P.prototype;
r.wa=function(a,b){var c=this;if(!(b instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!$d(a))throw new SyntaxError("The element name '"+a+"' is not valid.");if(this.a.a.get(a))throw Error("A custom element with name '"+a+"' has already been defined.");if(this.c)throw Error("A custom element is already being defined.");this.c=!0;try{var d=function(a){var b=e[a];if(void 0!==b&&!(b instanceof Function))throw Error("The '"+a+"' callback must be a function.");
return b},e=b.prototype;if(!(e instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var f=d("connectedCallback");var g=d("disconnectedCallback");var h=d("adoptedCallback");var k=d("attributeChangedCallback");var l=b.observedAttributes||[]}catch(n){return}finally{this.c=!1}b={localName:a,constructorFunction:b,connectedCallback:f,disconnectedCallback:g,adoptedCallback:h,attributeChangedCallback:k,observedAttributes:l,constructionStack:[]};de(this.a,
a,b);this.u.push(b);this.b||(this.b=!0,this.f(function(){return me(c)}))};r.fa=function(a){O(this.a,a)};
function me(a){if(!1!==a.b){a.b=!1;for(var b=a.u,c=[],d=new Map,e=0;e<b.length;e++)d.set(b[e].localName,[]);O(a.a,document,{fa:function(b){if(void 0===b.__CE_state){var e=b.localName,f=d.get(e);f?f.push(b):a.a.a.get(e)&&c.push(b)}}});for(e=0;e<c.length;e++)ie(a.a,c[e]);for(;0<b.length;){var f=b.shift();e=f.localName;f=d.get(f.localName);for(var g=0;g<f.length;g++)ie(a.a,f[g]);(e=a.F.get(e))&&e.resolve(void 0)}}}r.get=function(a){if(a=this.a.a.get(a))return a.constructorFunction};
r.xa=function(a){if(!$d(a))return Promise.reject(new SyntaxError("'"+a+"' is not a valid custom element name."));var b=this.F.get(a);if(b)return b.b;b=new le;this.F.set(a,b);this.a.a.get(a)&&!this.u.some(function(b){return b.localName===a})&&b.resolve(void 0);return b.b};r.Ra=function(a){ke(this.aa);var b=this.f;this.f=function(c){return a(function(){return b(c)})}};window.CustomElementRegistry=P;P.prototype.define=P.prototype.wa;P.prototype.upgrade=P.prototype.fa;P.prototype.get=P.prototype.get;
P.prototype.whenDefined=P.prototype.xa;P.prototype.polyfillWrapFlushCallback=P.prototype.Ra;var ne=window.Document.prototype.createElement,oe=window.Document.prototype.createElementNS,pe=window.Document.prototype.importNode,qe=window.Document.prototype.prepend,re=window.Document.prototype.append,se=window.DocumentFragment.prototype.prepend,te=window.DocumentFragment.prototype.append,ue=window.Node.prototype.cloneNode,ve=window.Node.prototype.appendChild,we=window.Node.prototype.insertBefore,xe=window.Node.prototype.removeChild,ye=window.Node.prototype.replaceChild,ze=Object.getOwnPropertyDescriptor(window.Node.prototype,
"textContent"),Ae=window.Element.prototype.attachShadow,Be=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),Ce=window.Element.prototype.getAttribute,De=window.Element.prototype.setAttribute,Ee=window.Element.prototype.removeAttribute,Fe=window.Element.prototype.getAttributeNS,Ge=window.Element.prototype.setAttributeNS,He=window.Element.prototype.removeAttributeNS,Ie=window.Element.prototype.insertAdjacentElement,Je=window.Element.prototype.insertAdjacentHTML,Ke=window.Element.prototype.prepend,
Le=window.Element.prototype.append,Me=window.Element.prototype.before,Ne=window.Element.prototype.after,Oe=window.Element.prototype.replaceWith,Pe=window.Element.prototype.remove,Qe=window.HTMLElement,Re=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),Se=window.HTMLElement.prototype.insertAdjacentElement,Te=window.HTMLElement.prototype.insertAdjacentHTML;var Ue=new function(){};function Ve(){var a=We;window.HTMLElement=function(){function b(){var b=this.constructor,d=a.u.get(b);if(!d)throw Error("The custom element being constructed was not registered with `customElements`.");var e=d.constructionStack;if(0===e.length)return e=ne.call(document,d.localName),Object.setPrototypeOf(e,b.prototype),e.__CE_state=1,e.__CE_definition=d,he(a,e),e;d=e.length-1;var f=e[d];if(f===Ue)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");
e[d]=Ue;Object.setPrototypeOf(f,b.prototype);he(a,f);return f}b.prototype=Qe.prototype;Object.defineProperty(b.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:b});return b}()};function Xe(a,b,c){function d(b){return function(c){for(var d=[],e=0;e<arguments.length;++e)d[e]=arguments[e];e=[];for(var f=[],l=0;l<d.length;l++){var n=d[l];n instanceof Element&&K(n)&&f.push(n);if(n instanceof DocumentFragment)for(n=n.firstChild;n;n=n.nextSibling)e.push(n);else e.push(n)}b.apply(this,d);for(d=0;d<f.length;d++)N(a,f[d]);if(K(this))for(d=0;d<e.length;d++)f=e[d],f instanceof Element&&M(a,f)}}void 0!==c.da&&(b.prepend=d(c.da));void 0!==c.append&&(b.append=d(c.append))};function Ye(){var a=We;L(Document.prototype,"createElement",function(b){if(this.__CE_hasRegistry){var c=a.a.get(b);if(c)return new c.constructorFunction}b=ne.call(this,b);he(a,b);return b});L(Document.prototype,"importNode",function(b,c){b=pe.call(this,b,!!c);this.__CE_hasRegistry?O(a,b):ge(a,b);return b});L(Document.prototype,"createElementNS",function(b,c){if(this.__CE_hasRegistry&&(null===b||"http://www.w3.org/1999/xhtml"===b)){var d=a.a.get(c);if(d)return new d.constructorFunction}b=oe.call(this,
b,c);he(a,b);return b});Xe(a,Document.prototype,{da:qe,append:re})};function Ze(){function a(a,d){Object.defineProperty(a,"textContent",{enumerable:d.enumerable,configurable:!0,get:d.get,set:function(a){if(this.nodeType===Node.TEXT_NODE)d.set.call(this,a);else{var c=void 0;if(this.firstChild){var e=this.childNodes,h=e.length;if(0<h&&K(this)){c=Array(h);for(var k=0;k<h;k++)c[k]=e[k]}}d.set.call(this,a);if(c)for(a=0;a<c.length;a++)N(b,c[a])}}})}var b=We;L(Node.prototype,"insertBefore",function(a,d){if(a instanceof DocumentFragment){var c=Array.prototype.slice.apply(a.childNodes);
a=we.call(this,a,d);if(K(this))for(d=0;d<c.length;d++)M(b,c[d]);return a}c=K(a);d=we.call(this,a,d);c&&N(b,a);K(this)&&M(b,a);return d});L(Node.prototype,"appendChild",function(a){if(a instanceof DocumentFragment){var c=Array.prototype.slice.apply(a.childNodes);a=ve.call(this,a);if(K(this))for(var e=0;e<c.length;e++)M(b,c[e]);return a}c=K(a);e=ve.call(this,a);c&&N(b,a);K(this)&&M(b,a);return e});L(Node.prototype,"cloneNode",function(a){a=ue.call(this,!!a);this.ownerDocument.__CE_hasRegistry?O(b,a):
ge(b,a);return a});L(Node.prototype,"removeChild",function(a){var c=K(a),e=xe.call(this,a);c&&N(b,a);return e});L(Node.prototype,"replaceChild",function(a,d){if(a instanceof DocumentFragment){var c=Array.prototype.slice.apply(a.childNodes);a=ye.call(this,a,d);if(K(this))for(N(b,d),d=0;d<c.length;d++)M(b,c[d]);return a}c=K(a);var f=ye.call(this,a,d),g=K(this);g&&N(b,d);c&&N(b,a);g&&M(b,a);return f});ze&&ze.get?a(Node.prototype,ze):ee(b,function(b){a(b,{enumerable:!0,configurable:!0,get:function(){for(var a=
[],b=0;b<this.childNodes.length;b++){var c=this.childNodes[b];c.nodeType!==Node.COMMENT_NODE&&a.push(c.textContent)}return a.join("")},set:function(a){for(;this.firstChild;)xe.call(this,this.firstChild);null!=a&&""!==a&&ve.call(this,document.createTextNode(a))}})})};function $e(a){function b(b){return function(c){for(var d=[],e=0;e<arguments.length;++e)d[e]=arguments[e];e=[];for(var h=[],k=0;k<d.length;k++){var l=d[k];l instanceof Element&&K(l)&&h.push(l);if(l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)e.push(l);else e.push(l)}b.apply(this,d);for(d=0;d<h.length;d++)N(a,h[d]);if(K(this))for(d=0;d<e.length;d++)h=e[d],h instanceof Element&&M(a,h)}}var c=Element.prototype;void 0!==Me&&(c.before=b(Me));void 0!==Me&&(c.after=b(Ne));void 0!==Oe&&
L(c,"replaceWith",function(b){for(var c=[],d=0;d<arguments.length;++d)c[d]=arguments[d];d=[];for(var g=[],h=0;h<c.length;h++){var k=c[h];k instanceof Element&&K(k)&&g.push(k);if(k instanceof DocumentFragment)for(k=k.firstChild;k;k=k.nextSibling)d.push(k);else d.push(k)}h=K(this);Oe.apply(this,c);for(c=0;c<g.length;c++)N(a,g[c]);if(h)for(N(a,this),c=0;c<d.length;c++)g=d[c],g instanceof Element&&M(a,g)});void 0!==Pe&&L(c,"remove",function(){var b=K(this);Pe.call(this);b&&N(a,this)})};function af(){function a(a,b){Object.defineProperty(a,"innerHTML",{enumerable:b.enumerable,configurable:!0,get:b.get,set:function(a){var c=this,e=void 0;K(this)&&(e=[],be(this,function(a){a!==c&&e.push(a)}));b.set.call(this,a);if(e)for(var f=0;f<e.length;f++){var g=e[f];1===g.__CE_state&&d.disconnectedCallback(g)}this.ownerDocument.__CE_hasRegistry?O(d,this):ge(d,this);return a}})}function b(a,b){L(a,"insertAdjacentElement",function(a,c){var e=K(c);a=b.call(this,a,c);e&&N(d,c);K(a)&&M(d,c);return a})}
function c(a,b){function c(a,b){for(var c=[];a!==b;a=a.nextSibling)c.push(a);for(b=0;b<c.length;b++)O(d,c[b])}L(a,"insertAdjacentHTML",function(a,d){a=a.toLowerCase();if("beforebegin"===a){var e=this.previousSibling;b.call(this,a,d);c(e||this.parentNode.firstChild,this)}else if("afterbegin"===a)e=this.firstChild,b.call(this,a,d),c(this.firstChild,e);else if("beforeend"===a)e=this.lastChild,b.call(this,a,d),c(e||this.firstChild,null);else if("afterend"===a)e=this.nextSibling,b.call(this,a,d),c(this.nextSibling,
e);else throw new SyntaxError("The value provided ("+String(a)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");})}var d=We;Ae&&L(Element.prototype,"attachShadow",function(a){a=Ae.call(this,a);var b=d;if(b.b&&!a.__CE_patched){a.__CE_patched=!0;for(var c=0;c<b.c.length;c++)b.c[c](a)}return this.__CE_shadowRoot=a});Be&&Be.get?a(Element.prototype,Be):Re&&Re.get?a(HTMLElement.prototype,Re):fe(d,function(b){a(b,{enumerable:!0,configurable:!0,get:function(){return ue.call(this,
!0).innerHTML},set:function(a){var b="template"===this.localName,c=b?this.content:this,d=oe.call(document,this.namespaceURI,this.localName);for(d.innerHTML=a;0<c.childNodes.length;)xe.call(c,c.childNodes[0]);for(a=b?d.content:d;0<a.childNodes.length;)ve.call(c,a.childNodes[0])}})});L(Element.prototype,"setAttribute",function(a,b){if(1!==this.__CE_state)return De.call(this,a,b);var c=Ce.call(this,a);De.call(this,a,b);b=Ce.call(this,a);d.attributeChangedCallback(this,a,c,b,null)});L(Element.prototype,
"setAttributeNS",function(a,b,c){if(1!==this.__CE_state)return Ge.call(this,a,b,c);var e=Fe.call(this,a,b);Ge.call(this,a,b,c);c=Fe.call(this,a,b);d.attributeChangedCallback(this,b,e,c,a)});L(Element.prototype,"removeAttribute",function(a){if(1!==this.__CE_state)return Ee.call(this,a);var b=Ce.call(this,a);Ee.call(this,a);null!==b&&d.attributeChangedCallback(this,a,b,null,null)});L(Element.prototype,"removeAttributeNS",function(a,b){if(1!==this.__CE_state)return He.call(this,a,b);var c=Fe.call(this,
a,b);He.call(this,a,b);var e=Fe.call(this,a,b);c!==e&&d.attributeChangedCallback(this,b,c,e,a)});Se?b(HTMLElement.prototype,Se):Ie?b(Element.prototype,Ie):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");Te?c(HTMLElement.prototype,Te):Je?c(Element.prototype,Je):console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched.");Xe(d,Element.prototype,{da:Ke,append:Le});$e(d)};var bf=window.customElements;if(!bf||bf.forcePolyfill||"function"!=typeof bf.define||"function"!=typeof bf.get){var We=new ce;Ve();Ye();Xe(We,DocumentFragment.prototype,{da:se,append:te});Ze();af();document.__CE_hasRegistry=!0;var customElements=new P(We);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:customElements})};function cf(){this.end=this.start=0;this.rules=this.parent=this.previous=null;this.cssText=this.parsedCssText="";this.atRule=!1;this.type=0;this.parsedSelector=this.selector=this.keyframesName=""}
function df(a){a=a.replace(ef,"").replace(ff,"");var b=gf,c=a,d=new cf;d.start=0;d.end=c.length;for(var e=d,f=0,g=c.length;f<g;f++)if("{"===c[f]){e.rules||(e.rules=[]);var h=e,k=h.rules[h.rules.length-1]||null;e=new cf;e.start=f+1;e.parent=h;e.previous=k;h.rules.push(e)}else"}"===c[f]&&(e.end=f+1,e=e.parent||d);return b(d,a)}
function gf(a,b){var c=b.substring(a.start,a.end-1);a.parsedCssText=a.cssText=c.trim();a.parent&&(c=b.substring(a.previous?a.previous.end:a.parent.start,a.start-1),c=hf(c),c=c.replace(jf," "),c=c.substring(c.lastIndexOf(";")+1),c=a.parsedSelector=a.selector=c.trim(),a.atRule=0===c.indexOf("@"),a.atRule?0===c.indexOf("@media")?a.type=kf:c.match(lf)&&(a.type=mf,a.keyframesName=a.selector.split(jf).pop()):a.type=0===c.indexOf("--")?nf:of);if(c=a.rules)for(var d=0,e=c.length,f=void 0;d<e&&(f=c[d]);d++)gf(f,
b);return a}function hf(a){return a.replace(/\\([0-9a-f]{1,6})\s/gi,function(a,c){a=c;for(c=6-a.length;c--;)a="0"+a;return"\\"+a})}
function pf(a,b,c){c=void 0===c?"":c;var d="";if(a.cssText||a.rules){var e=a.rules,f;if(f=e)f=e[0],f=!(f&&f.selector&&0===f.selector.indexOf("--"));if(f){f=0;for(var g=e.length,h=void 0;f<g&&(h=e[f]);f++)d=pf(h,b,d)}else b?b=a.cssText:(b=a.cssText,b=b.replace(qf,"").replace(rf,""),b=b.replace(uf,"").replace(vf,"")),(d=b.trim())&&(d=" "+d+"\n")}d&&(a.selector&&(c+=a.selector+" {\n"),c+=d,a.selector&&(c+="}\n\n"));return c}
var of=1,mf=7,kf=4,nf=1E3,ef=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,ff=/@import[^;]*;/gim,qf=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,rf=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,uf=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,vf=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,lf=/^@[^\s]*keyframes/,jf=/\s+/g;var R=!(window.ShadyDOM&&window.ShadyDOM.inUse),wf;function xf(a){wf=a&&a.shimcssproperties?!1:R||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))}var yf;window.ShadyCSS&&void 0!==window.ShadyCSS.cssBuild&&(yf=window.ShadyCSS.cssBuild);var zf=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);
window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?wf=window.ShadyCSS.nativeCss:window.ShadyCSS?(xf(window.ShadyCSS),window.ShadyCSS=void 0):xf(window.WebComponents&&window.WebComponents.flags);var S=wf,Af=yf;var Bf=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Cf=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Df=/(--[\w-]+)\s*([:,;)]|$)/gi,Ef=/(animation\s*:)|(animation-name\s*:)/,Ff=/@media\s(.*)/,Gf=/\{[^}]*\}/g;var Hf=new Set;function If(a,b){if(!a)return"";"string"===typeof a&&(a=df(a));b&&Jf(a,b);return pf(a,S)}function Kf(a){!a.__cssRules&&a.textContent&&(a.__cssRules=df(a.textContent));return a.__cssRules||null}function Lf(a){return!!a.parent&&a.parent.type===mf}function Jf(a,b,c,d){if(a){var e=!1,f=a.type;if(d&&f===kf){var g=a.selector.match(Ff);g&&(window.matchMedia(g[1]).matches||(e=!0))}f===of?b(a):c&&f===mf?c(a):f===nf&&(e=!0);if((a=a.rules)&&!e)for(e=0,f=a.length,g=void 0;e<f&&(g=a[e]);e++)Jf(g,b,c,d)}}
function Mf(a,b,c,d){var e=document.createElement("style");b&&e.setAttribute("scope",b);e.textContent=a;Nf(e,c,d);return e}var Of=null;function Pf(a){a=document.createComment(" Shady DOM styles for "+a+" ");var b=document.head;b.insertBefore(a,(Of?Of.nextSibling:null)||b.firstChild);return Of=a}function Nf(a,b,c){b=b||document.head;b.insertBefore(a,c&&c.nextSibling||b.firstChild);Of?a.compareDocumentPosition(Of)===Node.DOCUMENT_POSITION_PRECEDING&&(Of=a):Of=a}
function Qf(a,b){for(var c=0,d=a.length;b<d;b++)if("("===a[b])c++;else if(")"===a[b]&&0===--c)return b;return-1}function Rf(a,b){var c=a.indexOf("var(");if(-1===c)return b(a,"","","");var d=Qf(a,c+3),e=a.substring(c+4,d);c=a.substring(0,c);a=Rf(a.substring(d+1),b);d=e.indexOf(",");return-1===d?b(c,e.trim(),"",a):b(c,e.substring(0,d).trim(),e.substring(d+1).trim(),a)}function Sf(a,b){R?a.setAttribute("class",b):window.ShadyDOM.nativeMethods.setAttribute.call(a,"class",b)}
var Tf=window.ShadyDOM&&window.ShadyDOM.wrap||function(a){return a};function Uf(a){var b=a.localName,c="";b?-1<b.indexOf("-")||(c=b,b=a.getAttribute&&a.getAttribute("is")||""):(b=a.is,c=a.extends);return{is:b,X:c}}function Vf(a){for(var b=[],c="",d=0;0<=d&&d<a.length;d++)if("("===a[d]){var e=Qf(a,d);c+=a.slice(d,e+1);d=e}else","===a[d]?(b.push(c),c=""):c+=a[d];c&&b.push(c);return b}
function Wf(a){if(void 0!==Af)return Af;if(void 0===a.__cssBuild){var b=a.getAttribute("css-build");if(b)a.__cssBuild=b;else{a:{b="template"===a.localName?a.content.firstChild:a.firstChild;if(b instanceof Comment&&(b=b.textContent.trim().split(":"),"css-build"===b[0])){b=b[1];break a}b=""}if(""!==b){var c="template"===a.localName?a.content.firstChild:a.firstChild;c.parentNode.removeChild(c)}a.__cssBuild=b}}return a.__cssBuild||""}
function Xf(a){a=void 0===a?"":a;return""!==a&&S?R?"shadow"===a:"shady"===a:!1};function Yf(){}function Zf(a,b){$f(U,a,function(a){ag(a,b||"")})}function $f(a,b,c){b.nodeType===Node.ELEMENT_NODE&&c(b);var d;"template"===b.localName?d=(b.content||b._content||b).childNodes:d=b.children||b.childNodes;if(d)for(b=0;b<d.length;b++)$f(a,d[b],c)}
function ag(a,b,c){if(b)if(a.classList)c?(a.classList.remove("style-scope"),a.classList.remove(b)):(a.classList.add("style-scope"),a.classList.add(b));else if(a.getAttribute){var d=a.getAttribute("class");c?d&&(b=d.replace("style-scope","").replace(b,""),Sf(a,b)):Sf(a,(d?d+" ":"")+"style-scope "+b)}}function bg(a,b,c){$f(U,a,function(a){ag(a,b,!0);ag(a,c)})}function cg(a,b){$f(U,a,function(a){ag(a,b||"",!0)})}
function dg(a,b,c,d,e){var f=U;e=void 0===e?"":e;""===e&&(R||"shady"===(void 0===d?"":d)?e=If(b,c):(a=Uf(a),e=eg(f,b,a.is,a.X,c)+"\n\n"));return e.trim()}function eg(a,b,c,d,e){var f=fg(c,d);c=c?"."+c:"";return If(b,function(b){b.c||(b.selector=b.C=gg(a,b,a.b,c,f),b.c=!0);e&&e(b,c,f)})}function fg(a,b){return b?"[is="+a+"]":a}
function gg(a,b,c,d,e){var f=Vf(b.selector);if(!Lf(b)){b=0;for(var g=f.length,h=void 0;b<g&&(h=f[b]);b++)f[b]=c.call(a,h,d,e)}return f.filter(function(a){return!!a}).join(",")}function hg(a){return a.replace(ig,function(a,c,d){-1<d.indexOf("+")?d=d.replace(/\+/g,"___"):-1<d.indexOf("___")&&(d=d.replace(/___/g,"+"));return":"+c+"("+d+")"})}
function jg(a){for(var b=[],c;c=a.match(kg);){var d=c.index,e=Qf(a,d);if(-1===e)throw Error(c.input+" selector missing ')'");c=a.slice(d,e+1);a=a.replace(c,"\ue000");b.push(c)}return{na:a,matches:b}}function lg(a,b){var c=a.split("\ue000");return b.reduce(function(a,b,f){return a+b+c[f+1]},c[0])}
Yf.prototype.b=function(a,b,c){var d=!1;a=a.trim();var e=ig.test(a);e&&(a=a.replace(ig,function(a,b,c){return":"+b+"("+c.replace(/\s/g,"")+")"}),a=hg(a));var f=kg.test(a);if(f){var g=jg(a);a=g.na;g=g.matches}a=a.replace(mg,":host $1");a=a.replace(ng,function(a,e,f){d||(a=og(f,e,b,c),d=d||a.stop,e=a.Ha,f=a.value);return e+f});f&&(a=lg(a,g));e&&(a=hg(a));return a=a.replace(pg,function(a,b,c,d){return'[dir="'+c+'"] '+b+d+", "+b+'[dir="'+c+'"]'+d})};
function og(a,b,c,d){var e=a.indexOf("::slotted");0<=a.indexOf(":host")?a=qg(a,d):0!==e&&(a=c?rg(a,c):a);c=!1;0<=e&&(b="",c=!0);if(c){var f=!0;c&&(a=a.replace(sg,function(a,b){return" > "+b}))}return{value:a,Ha:b,stop:f}}function rg(a,b){a=a.split(/(\[.+?\])/);for(var c=[],d=0;d<a.length;d++)if(1===d%2)c.push(a[d]);else{var e=a[d];if(""!==e||d!==a.length-1)e=e.split(":"),e[0]+=b,c.push(e.join(":"))}return c.join("")}
function qg(a,b){var c=a.match(tg);return(c=c&&c[2].trim()||"")?c[0].match(ug)?a.replace(tg,function(a,c,f){return b+f}):c.split(ug)[0]===b?c:"should_not_match":a.replace(":host",b)}function vg(a){":root"===a.selector&&(a.selector="html")}Yf.prototype.c=function(a){return a.match(":host")?"":a.match("::slotted")?this.b(a,":not(.style-scope)"):rg(a.trim(),":not(.style-scope)")};t.Object.defineProperties(Yf.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});
var ig=/:(nth[-\w]+)\(([^)]+)\)/,ng=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,ug=/[[.:#*]/,mg=/^(::slotted)/,tg=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,sg=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,pg=/(.*):dir\((?:(ltr|rtl))\)(.*)/,kg=/:(?:matches|any|-(?:webkit|moz)-any)/,U=new Yf;function wg(a,b,c,d,e){this.L=a||null;this.b=b||null;this.la=c||[];this.G=null;this.cssBuild=e||"";this.X=d||"";this.a=this.H=this.K=null}function V(a){return a?a.__styleInfo:null}function xg(a,b){return a.__styleInfo=b}wg.prototype.c=function(){return this.L};wg.prototype._getStyleRules=wg.prototype.c;function yg(a){var b=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return b&&b.call(this,a)}var zg=navigator.userAgent.match("Trident");function Ag(){}function Bg(a){var b={},c=[],d=0;Jf(a,function(a){Cg(a);a.index=d++;a=a.A.cssText;for(var c;c=Df.exec(a);){var e=c[1];":"!==c[2]&&(b[e]=!0)}},function(a){c.push(a)});a.b=c;a=[];for(var e in b)a.push(e);return a}
function Cg(a){if(!a.A){var b={},c={};Dg(a,c)&&(b.J=c,a.rules=null);b.cssText=a.parsedCssText.replace(Gf,"").replace(Bf,"");a.A=b}}function Dg(a,b){var c=a.A;if(c){if(c.J)return Object.assign(b,c.J),!0}else{c=a.parsedCssText;for(var d;a=Bf.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}}
function Eg(a,b,c){b&&(b=0<=b.indexOf(";")?Fg(a,b,c):Rf(b,function(b,e,f,g){if(!e)return b+g;(e=Eg(a,c[e],c))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=Eg(a,c[f]||f,c)||f;return b+(e||"")+g}));return b&&b.trim()||""}
function Fg(a,b,c){b=b.split(";");for(var d=0,e,f;d<b.length;d++)if(e=b[d]){Cf.lastIndex=0;if(f=Cf.exec(e))e=Eg(a,c[f[1]],c);else if(f=e.indexOf(":"),-1!==f){var g=e.substring(f);g=g.trim();g=Eg(a,g,c)||g;e=e.substring(0,f)+g}b[d]=e&&e.lastIndexOf(";")===e.length-1?e.slice(0,-1):e||""}return b.join(";")}
function Gg(a,b){var c={},d=[];Jf(a,function(a){a.A||Cg(a);var e=a.C||a.parsedSelector;b&&a.A.J&&e&&yg.call(b,e)&&(Dg(a,c),a=a.index,e=parseInt(a/32,10),d[e]=(d[e]||0)|1<<a%32)},null,!0);return{J:c,key:d}}
function Hg(a,b,c,d){b.A||Cg(b);if(b.A.J){var e=Uf(a);a=e.is;e=e.X;e=a?fg(a,e):"html";var f=b.parsedSelector,g=":host > *"===f||"html"===f,h=0===f.indexOf(":host")&&!g;"shady"===c&&(g=f===e+" > *."+e||-1!==f.indexOf("html"),h=!g&&0===f.indexOf(e));if(g||h)c=e,h&&(b.C||(b.C=gg(U,b,U.b,a?"."+a:"",e)),c=b.C||e),d({na:c,Oa:h,bb:g})}}function Ig(a,b,c){var d={},e={};Jf(b,function(b){Hg(a,b,c,function(c){yg.call(a._element||a,c.na)&&(c.Oa?Dg(b,d):Dg(b,e))})},null,!0);return{Ua:e,Ma:d}}
function Jg(a,b,c,d){var e=Uf(b),f=fg(e.is,e.X),g=new RegExp("(?:^|[^.#[:])"+(b.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])"),h=V(b);e=h.L;h=h.cssBuild;var k=Kg(e,d);return dg(b,e,function(b){var e="";b.A||Cg(b);b.A.cssText&&(e=Fg(a,b.A.cssText,c));b.cssText=e;if(!R&&!Lf(b)&&b.cssText){var h=e=b.cssText;null==b.ra&&(b.ra=Ef.test(e));if(b.ra)if(null==b.ba){b.ba=[];for(var l in k)h=k[l],h=h(e),e!==h&&(e=h,b.ba.push(l))}else{for(l=0;l<b.ba.length;++l)h=k[b.ba[l]],e=h(e);h=e}b.cssText=h;b.C=
b.C||b.selector;e="."+d;l=Vf(b.C);h=0;for(var v=l.length,x=void 0;h<v&&(x=l[h]);h++)l[h]=x.match(g)?x.replace(f,e):e+" "+x;b.selector=l.join(",")}},h)}function Kg(a,b){a=a.b;var c={};if(!R&&a)for(var d=0,e=a[d];d<a.length;e=a[++d]){var f=e,g=b;f.f=new RegExp("\\b"+f.keyframesName+"(?!\\B|-)","g");f.a=f.keyframesName+"-"+g;f.C=f.C||f.selector;f.selector=f.C.replace(f.keyframesName,f.a);c[e.keyframesName]=Lg(e)}return c}function Lg(a){return function(b){return b.replace(a.f,a.a)}}
function Mg(a,b){var c=Ng,d=Kf(a);a.textContent=If(d,function(a){var d=a.cssText=a.parsedCssText;a.A&&a.A.cssText&&(d=d.replace(qf,"").replace(rf,""),a.cssText=Fg(c,d,b))})}t.Object.defineProperties(Ag.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var Ng=new Ag;var Og={},Pg=window.customElements;if(Pg&&!R&&!zf){var Qg=Pg.define;Pg.define=function(a,b,c){Og[a]||(Og[a]=Pf(a));Qg.call(Pg,a,b,c)}};function Rg(){this.cache={}}Rg.prototype.store=function(a,b,c,d){var e=this.cache[a]||[];e.push({J:b,styleElement:c,H:d});100<e.length&&e.shift();this.cache[a]=e};function Sg(){}var Tg=new RegExp(U.a+"\\s*([^\\s]*)");function Ug(a){return(a=(a.classList&&a.classList.value?a.classList.value:a.getAttribute("class")||"").match(Tg))?a[1]:""}function Vg(a){var b=Tf(a).getRootNode();return b===a||b===a.ownerDocument?"":(a=b.host)?Uf(a).is:""}
function Wg(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.target!==document.documentElement&&c.target!==document.head)for(var d=0;d<c.addedNodes.length;d++){var e=c.addedNodes[d];if(e.nodeType===Node.ELEMENT_NODE){var f=e.getRootNode(),g=Ug(e);if(g&&f===e.ownerDocument&&("style"!==e.localName&&"template"!==e.localName||""===Wf(e)))cg(e,g);else if(f instanceof ShadowRoot)for(f=Vg(e),f!==g&&bg(e,g,f),e=window.ShadyDOM.nativeMethods.querySelectorAll.call(e,":not(."+U.a+")"),g=0;g<e.length;g++){f=e[g];
var h=Vg(f);h&&ag(f,h)}}}}}
if(!(R||window.ShadyDOM&&window.ShadyDOM.handlesDynamicScoping)){var Xg=new MutationObserver(Wg),Yg=function(a){Xg.observe(a,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)Yg(document);else{var Zg=function(){Yg(document.body)};window.HTMLImports?window.HTMLImports.whenReady(Zg):requestAnimationFrame(function(){if("loading"===document.readyState){var a=function(){Zg();document.removeEventListener("readystatechange",a)};document.addEventListener("readystatechange",
a)}else Zg()})}Sg=function(){Wg(Xg.takeRecords())}}var $g=Sg;var ah={};var bh=Promise.resolve();function ch(a){if(a=ah[a])a._applyShimCurrentVersion=a._applyShimCurrentVersion||0,a._applyShimValidatingVersion=a._applyShimValidatingVersion||0,a._applyShimNextVersion=(a._applyShimNextVersion||0)+1}function dh(a){return a._applyShimCurrentVersion===a._applyShimNextVersion}function eh(a){a._applyShimValidatingVersion=a._applyShimNextVersion;a._validating||(a._validating=!0,bh.then(function(){a._applyShimCurrentVersion=a._applyShimNextVersion;a._validating=!1}))};var fh={},gh=new Rg;function W(){this.F={};this.c=document.documentElement;var a=new cf;a.rules=[];this.f=xg(this.c,new wg(a));this.u=!1;this.b=this.a=null}r=W.prototype;r.flush=function(){$g()};r.Ka=function(a){return Kf(a)};r.Ya=function(a){return If(a)};r.prepareTemplate=function(a,b,c){this.prepareTemplateDom(a,b);this.prepareTemplateStyles(a,b,c)};
r.prepareTemplateStyles=function(a,b,c){if(!a._prepared&&!zf){R||Og[b]||(Og[b]=Pf(b));a._prepared=!0;a.name=b;a.extends=c;ah[b]=a;var d=Wf(a),e=Xf(d);c={is:b,extends:c};for(var f=[],g=a.content.querySelectorAll("style"),h=0;h<g.length;h++){var k=g[h];if(k.hasAttribute("shady-unscoped")){if(!R){var l=k.textContent;Hf.has(l)||(Hf.add(l),l=k.cloneNode(!0),document.head.appendChild(l));k.parentNode.removeChild(k)}}else f.push(k.textContent),k.parentNode.removeChild(k)}f=f.join("").trim()+(fh[b]||"");
hh(this);if(!e){if(g=!d)g=Cf.test(f)||Bf.test(f),Cf.lastIndex=0,Bf.lastIndex=0;h=df(f);g&&S&&this.a&&this.a.transformRules(h,b);a._styleAst=h}g=[];S||(g=Bg(a._styleAst));if(!g.length||S)h=R?a.content:null,b=Og[b]||null,d=dg(c,a._styleAst,null,d,e?f:""),d=d.length?Mf(d,c.is,h,b):null,a._style=d;a.a=g}};r.Sa=function(a,b){fh[b]=a.join(" ")};r.prepareTemplateDom=function(a,b){if(!zf){var c=Wf(a);R||"shady"===c||a._domPrepared||(a._domPrepared=!0,Zf(a.content,b))}};
function ih(a){var b=Uf(a),c=b.is;b=b.X;var d=Og[c]||null,e=ah[c];if(e){c=e._styleAst;var f=e.a;e=Wf(e);b=new wg(c,d,f,b,e);xg(a,b);return b}}function jh(a){!a.b&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(a.b=window.ShadyCSS.CustomStyleInterface,a.b.transformCallback=function(b){a.va(b)},a.b.validateCallback=function(){requestAnimationFrame(function(){(a.b.enqueued||a.u)&&a.flushCustomStyles()})})}
function hh(a){!a.a&&window.ShadyCSS&&window.ShadyCSS.ApplyShim&&(a.a=window.ShadyCSS.ApplyShim,a.a.invalidCallback=ch);jh(a)}
r.flushCustomStyles=function(){if(!zf&&(hh(this),this.b)){var a=this.b.processStyles();if(this.b.enqueued&&!Xf(this.f.cssBuild)){if(S){if(!this.f.cssBuild)for(var b=0;b<a.length;b++){var c=this.b.getStyleForCustomStyle(a[b]);if(c&&S&&this.a){var d=Kf(c);hh(this);this.a.transformRules(d);c.textContent=If(d)}}}else{kh(this,this.c,this.f);for(b=0;b<a.length;b++)(c=this.b.getStyleForCustomStyle(a[b]))&&Mg(c,this.f.K);this.u&&this.styleDocument()}this.b.enqueued=!1}}};
r.styleElement=function(a,b){if(zf){if(b){V(a)||xg(a,new wg(null));var c=V(a);c.G=c.G||{};Object.assign(c.G,b);lh(this,a,c)}}else if(c=V(a)||ih(a))if(a!==this.c&&(this.u=!0),b&&(c.G=c.G||{},Object.assign(c.G,b)),S)lh(this,a,c);else if(this.flush(),kh(this,a,c),c.la&&c.la.length){b=Uf(a).is;var d;a:{if(d=gh.cache[b])for(var e=d.length-1;0<=e;e--){var f=d[e];b:{var g=c.la;for(var h=0;h<g.length;h++){var k=g[h];if(f.J[k]!==c.K[k]){g=!1;break b}}g=!0}if(g){d=f;break a}}d=void 0}g=d?d.styleElement:null;
e=c.H;(f=d&&d.H)||(f=this.F[b]=(this.F[b]||0)+1,f=b+"-"+f);c.H=f;f=c.H;h=Ng;h=g?g.textContent||"":Jg(h,a,c.K,f);k=V(a);var l=k.a;l&&!R&&l!==g&&(l._useCount--,0>=l._useCount&&l.parentNode&&l.parentNode.removeChild(l));R?k.a?(k.a.textContent=h,g=k.a):h&&(g=Mf(h,f,a.shadowRoot,k.b)):g?g.parentNode||(zg&&-1<h.indexOf("@media")&&(g.textContent=h),Nf(g,null,k.b)):h&&(g=Mf(h,f,null,k.b));g&&(g._useCount=g._useCount||0,k.a!=g&&g._useCount++,k.a=g);f=g;R||(g=c.H,k=h=a.getAttribute("class")||"",e&&(k=h.replace(new RegExp("\\s*x-scope\\s*"+
e+"\\s*","g")," ")),k+=(k?" ":"")+"x-scope "+g,h!==k&&Sf(a,k));d||gh.store(b,c.K,f,c.H)}};
function lh(a,b,c){var d=Uf(b).is;if(c.G){var e=c.G,f;for(f in e)null===f?b.style.removeProperty(f):b.style.setProperty(f,e[f])}e=ah[d];if(!(!e&&b!==a.c||e&&""!==Wf(e))&&e&&e._style&&!dh(e)){if(dh(e)||e._applyShimValidatingVersion!==e._applyShimNextVersion)hh(a),a.a&&a.a.transformRules(e._styleAst,d),e._style.textContent=dg(b,c.L),eh(e);R&&(a=b.shadowRoot)&&(a=a.querySelector("style"))&&(a.textContent=dg(b,c.L));c.L=e._styleAst}}
function mh(a,b){return(b=Tf(b).getRootNode().host)?V(b)||ih(b)?b:mh(a,b):a.c}function kh(a,b,c){var d=mh(a,b),e=V(d),f=e.K;d===a.c||f||(kh(a,d,e),f=e.K);a=Object.create(f||null);d=Ig(b,c.L,c.cssBuild);b=Gg(e.L,b).J;Object.assign(a,d.Ma,b,d.Ua);b=c.G;for(var g in b)if((e=b[g])||0===e)a[g]=e;g=Ng;b=Object.getOwnPropertyNames(a);for(e=0;e<b.length;e++)d=b[e],a[d]=Eg(g,a[d],a);c.K=a}r.styleDocument=function(a){this.styleSubtree(this.c,a)};
r.styleSubtree=function(a,b){var c=Tf(a),d=c.shadowRoot;(d||a===this.c)&&this.styleElement(a,b);if(a=d&&(d.children||d.childNodes))for(c=0;c<a.length;c++)this.styleSubtree(a[c]);else if(c=c.children||c.childNodes)for(a=0;a<c.length;a++)this.styleSubtree(c[a])};
r.va=function(a){var b=this,c=Wf(a);c!==this.f.cssBuild&&(this.f.cssBuild=c);if(!Xf(c)){var d=Kf(a);Jf(d,function(a){if(R)vg(a);else{var d=U;a.selector=a.parsedSelector;vg(a);a.selector=a.C=gg(d,a,d.c,void 0,void 0)}S&&""===c&&(hh(b),b.a&&b.a.transformRule(a))});S?a.textContent=If(d):this.f.L.rules.push(d)}};r.getComputedStyleValue=function(a,b){var c;S||(c=(V(a)||V(mh(this,a))).K[b]);return(c=c||window.getComputedStyle(a).getPropertyValue(b))?c.trim():""};
r.Xa=function(a,b){var c=Tf(a).getRootNode();b=b?b.split(/\s/):[];c=c.host&&c.host.localName;if(!c){var d=a.getAttribute("class");if(d){d=d.split(/\s/);for(var e=0;e<d.length;e++)if(d[e]===U.a){c=d[e+1];break}}}c&&b.push(U.a,c);S||(c=V(a))&&c.H&&b.push(Ng.a,c.H);Sf(a,b.join(" "))};r.Fa=function(a){return V(a)};r.Wa=function(a,b){ag(a,b)};r.Za=function(a,b){ag(a,b,!0)};r.Va=function(a){return Vg(a)};r.Ia=function(a){return Ug(a)};W.prototype.flush=W.prototype.flush;W.prototype.prepareTemplate=W.prototype.prepareTemplate;
W.prototype.styleElement=W.prototype.styleElement;W.prototype.styleDocument=W.prototype.styleDocument;W.prototype.styleSubtree=W.prototype.styleSubtree;W.prototype.getComputedStyleValue=W.prototype.getComputedStyleValue;W.prototype.setElementClass=W.prototype.Xa;W.prototype._styleInfoForNode=W.prototype.Fa;W.prototype.transformCustomStyleForDocument=W.prototype.va;W.prototype.getStyleAst=W.prototype.Ka;W.prototype.styleAstToString=W.prototype.Ya;W.prototype.flushCustomStyles=W.prototype.flushCustomStyles;
W.prototype.scopeNode=W.prototype.Wa;W.prototype.unscopeNode=W.prototype.Za;W.prototype.scopeForNode=W.prototype.Va;W.prototype.currentScopeForNode=W.prototype.Ia;W.prototype.prepareAdoptedCssText=W.prototype.Sa;Object.defineProperties(W.prototype,{nativeShadow:{get:function(){return R}},nativeCss:{get:function(){return S}}});var Z=new W,nh,oh;window.ShadyCSS&&(nh=window.ShadyCSS.ApplyShim,oh=window.ShadyCSS.CustomStyleInterface);
window.ShadyCSS={ScopingShim:Z,prepareTemplate:function(a,b,c){Z.flushCustomStyles();Z.prepareTemplate(a,b,c)},prepareTemplateDom:function(a,b){Z.prepareTemplateDom(a,b)},prepareTemplateStyles:function(a,b,c){Z.flushCustomStyles();Z.prepareTemplateStyles(a,b,c)},styleSubtree:function(a,b){Z.flushCustomStyles();Z.styleSubtree(a,b)},styleElement:function(a){Z.flushCustomStyles();Z.styleElement(a)},styleDocument:function(a){Z.flushCustomStyles();Z.styleDocument(a)},flushCustomStyles:function(){Z.flushCustomStyles()},
getComputedStyleValue:function(a,b){return Z.getComputedStyleValue(a,b)},nativeCss:S,nativeShadow:R,cssBuild:Af,disableRuntime:zf};nh&&(window.ShadyCSS.ApplyShim=nh);oh&&(window.ShadyCSS.CustomStyleInterface=oh);(function(a){function b(a){""==a&&(f.call(this),this.i=!0);return a.toLowerCase()}function c(a){var b=a.charCodeAt(0);return 32<b&&127>b&&-1==[34,35,60,62,63,96].indexOf(b)?a:encodeURIComponent(a)}function d(a){var b=a.charCodeAt(0);return 32<b&&127>b&&-1==[34,35,60,62,96].indexOf(b)?a:encodeURIComponent(a)}function e(a,e,g){function h(a){X.push(a)}var k=e||"scheme start",x=0,p="",v=!1,Q=!1,X=[];a:for(;(void 0!=a[x-1]||0==x)&&!this.i;){var m=a[x];switch(k){case "scheme start":if(m&&q.test(m))p+=m.toLowerCase(),
k="scheme";else if(e){h("Invalid scheme.");break a}else{p="";k="no scheme";continue}break;case "scheme":if(m&&I.test(m))p+=m.toLowerCase();else if(":"==m){this.h=p;p="";if(e)break a;void 0!==l[this.h]&&(this.B=!0);k="file"==this.h?"relative":this.B&&g&&g.h==this.h?"relative or authority":this.B?"authority first slash":"scheme data"}else if(e){void 0!=m&&h("Code point not allowed in scheme: "+m);break a}else{p="";x=0;k="no scheme";continue}break;case "scheme data":"?"==m?(this.o="?",k="query"):"#"==
m?(this.v="#",k="fragment"):void 0!=m&&"\t"!=m&&"\n"!=m&&"\r"!=m&&(this.ia+=c(m));break;case "no scheme":if(g&&void 0!==l[g.h]){k="relative";continue}else h("Missing scheme."),f.call(this),this.i=!0;break;case "relative or authority":if("/"==m&&"/"==a[x+1])k="authority ignore slashes";else{h("Expected /, got: "+m);k="relative";continue}break;case "relative":this.B=!0;"file"!=this.h&&(this.h=g.h);if(void 0==m){this.j=g.j;this.m=g.m;this.l=g.l.slice();this.o=g.o;this.s=g.s;this.g=g.g;break a}else if("/"==
m||"\\"==m)"\\"==m&&h("\\ is an invalid code point."),k="relative slash";else if("?"==m)this.j=g.j,this.m=g.m,this.l=g.l.slice(),this.o="?",this.s=g.s,this.g=g.g,k="query";else if("#"==m)this.j=g.j,this.m=g.m,this.l=g.l.slice(),this.o=g.o,this.v="#",this.s=g.s,this.g=g.g,k="fragment";else{k=a[x+1];var y=a[x+2];if("file"!=this.h||!q.test(m)||":"!=k&&"|"!=k||void 0!=y&&"/"!=y&&"\\"!=y&&"?"!=y&&"#"!=y)this.j=g.j,this.m=g.m,this.s=g.s,this.g=g.g,this.l=g.l.slice(),this.l.pop();k="relative path";continue}break;
case "relative slash":if("/"==m||"\\"==m)"\\"==m&&h("\\ is an invalid code point."),k="file"==this.h?"file host":"authority ignore slashes";else{"file"!=this.h&&(this.j=g.j,this.m=g.m,this.s=g.s,this.g=g.g);k="relative path";continue}break;case "authority first slash":if("/"==m)k="authority second slash";else{h("Expected '/', got: "+m);k="authority ignore slashes";continue}break;case "authority second slash":k="authority ignore slashes";if("/"!=m){h("Expected '/', got: "+m);continue}break;case "authority ignore slashes":if("/"!=
m&&"\\"!=m){k="authority";continue}else h("Expected authority, got: "+m);break;case "authority":if("@"==m){v&&(h("@ already seen."),p+="%40");v=!0;for(m=0;m<p.length;m++)y=p[m],"\t"==y||"\n"==y||"\r"==y?h("Invalid whitespace in authority."):":"==y&&null===this.g?this.g="":(y=c(y),null!==this.g?this.g+=y:this.s+=y);p=""}else if(void 0==m||"/"==m||"\\"==m||"?"==m||"#"==m){x-=p.length;p="";k="host";continue}else p+=m;break;case "file host":if(void 0==m||"/"==m||"\\"==m||"?"==m||"#"==m){2!=p.length||
!q.test(p[0])||":"!=p[1]&&"|"!=p[1]?(0!=p.length&&(this.j=b.call(this,p),p=""),k="relative path start"):k="relative path";continue}else"\t"==m||"\n"==m||"\r"==m?h("Invalid whitespace in file host."):p+=m;break;case "host":case "hostname":if(":"!=m||Q)if(void 0==m||"/"==m||"\\"==m||"?"==m||"#"==m){this.j=b.call(this,p);p="";k="relative path start";if(e)break a;continue}else"\t"!=m&&"\n"!=m&&"\r"!=m?("["==m?Q=!0:"]"==m&&(Q=!1),p+=m):h("Invalid code point in host/hostname: "+m);else if(this.j=b.call(this,
p),p="",k="port","hostname"==e)break a;break;case "port":if(/[0-9]/.test(m))p+=m;else if(void 0==m||"/"==m||"\\"==m||"?"==m||"#"==m||e){""!=p&&(p=parseInt(p,10),p!=l[this.h]&&(this.m=p+""),p="");if(e)break a;k="relative path start";continue}else"\t"==m||"\n"==m||"\r"==m?h("Invalid code point in port: "+m):(f.call(this),this.i=!0);break;case "relative path start":"\\"==m&&h("'\\' not allowed in path.");k="relative path";if("/"!=m&&"\\"!=m)continue;break;case "relative path":if(void 0!=m&&"/"!=m&&"\\"!=
m&&(e||"?"!=m&&"#"!=m))"\t"!=m&&"\n"!=m&&"\r"!=m&&(p+=c(m));else{"\\"==m&&h("\\ not allowed in relative path.");if(y=n[p.toLowerCase()])p=y;".."==p?(this.l.pop(),"/"!=m&&"\\"!=m&&this.l.push("")):"."==p&&"/"!=m&&"\\"!=m?this.l.push(""):"."!=p&&("file"==this.h&&0==this.l.length&&2==p.length&&q.test(p[0])&&"|"==p[1]&&(p=p[0]+":"),this.l.push(p));p="";"?"==m?(this.o="?",k="query"):"#"==m&&(this.v="#",k="fragment")}break;case "query":e||"#"!=m?void 0!=m&&"\t"!=m&&"\n"!=m&&"\r"!=m&&(this.o+=d(m)):(this.v=
"#",k="fragment");break;case "fragment":void 0!=m&&"\t"!=m&&"\n"!=m&&"\r"!=m&&(this.v+=m)}x++}}function f(){this.s=this.ia=this.h="";this.g=null;this.m=this.j="";this.l=[];this.v=this.o="";this.B=this.i=!1}function g(a,b){void 0===b||b instanceof g||(b=new g(String(b)));this.a=a;f.call(this);a=this.a.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,"");e.call(this,a,null,b)}var h=!1;try{var k=new URL("b","http://a");k.pathname="c%20d";h="http://a/c%20d"===k.href}catch(x){}if(!h){var l=Object.create(null);l.ftp=
21;l.file=0;l.gopher=70;l.http=80;l.https=443;l.ws=80;l.wss=443;var n=Object.create(null);n["%2e"]=".";n[".%2e"]="..";n["%2e."]="..";n["%2e%2e"]="..";var q=/[a-zA-Z]/,I=/[a-zA-Z0-9\+\-\.]/;g.prototype={toString:function(){return this.href},get href(){if(this.i)return this.a;var a="";if(""!=this.s||null!=this.g)a=this.s+(null!=this.g?":"+this.g:"")+"@";return this.protocol+(this.B?"//"+a+this.host:"")+this.pathname+this.o+this.v},set href(a){f.call(this);e.call(this,a)},get protocol(){return this.h+
":"},set protocol(a){this.i||e.call(this,a+":","scheme start")},get host(){return this.i?"":this.m?this.j+":"+this.m:this.j},set host(a){!this.i&&this.B&&e.call(this,a,"host")},get hostname(){return this.j},set hostname(a){!this.i&&this.B&&e.call(this,a,"hostname")},get port(){return this.m},set port(a){!this.i&&this.B&&e.call(this,a,"port")},get pathname(){return this.i?"":this.B?"/"+this.l.join("/"):this.ia},set pathname(a){!this.i&&this.B&&(this.l=[],e.call(this,a,"relative path start"))},get search(){return this.i||
!this.o||"?"==this.o?"":this.o},set search(a){!this.i&&this.B&&(this.o="?","?"==a[0]&&(a=a.slice(1)),e.call(this,a,"query"))},get hash(){return this.i||!this.v||"#"==this.v?"":this.v},set hash(a){this.i||(a?(this.v="#","#"==a[0]&&(a=a.slice(1)),e.call(this,a,"fragment")):this.v="")},get origin(){var a;if(this.i||!this.h)return"";switch(this.h){case "data":case "file":case "javascript":case "mailto":return"null"}return(a=this.host)?this.h+"://"+a:""}};var v=a.URL;v&&(g.createObjectURL=function(a){return v.createObjectURL.apply(v,
arguments)},g.revokeObjectURL=function(a){v.revokeObjectURL(a)});a.URL=g}})(window);Object.getOwnPropertyDescriptor(Node.prototype,"baseURI")||Object.defineProperty(Node.prototype,"baseURI",{get:function(){var a=(this.ownerDocument||this).querySelector("base[href]");return a&&a.href||window.location.href},configurable:!0,enumerable:!0});var ph=document.createElement("style");ph.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var qh=document.querySelector("head");qh.insertBefore(ph,qh.firstChild);var rh=window.customElements,sh=!1,th=null;rh.polyfillWrapFlushCallback&&rh.polyfillWrapFlushCallback(function(a){th=a;sh&&a()});function uh(){window.HTMLTemplateElement.bootstrap&&window.HTMLTemplateElement.bootstrap(window.document);th&&th();sh=!0;window.WebComponents.ready=!0;document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))}
"complete"!==document.readyState?(window.addEventListener("load",uh),window.addEventListener("DOMContentLoaded",function(){window.removeEventListener("load",uh);uh()})):uh();}).call(this);
//# sourceMappingURL=webcomponents-bundle.js.map

View File

@@ -0,0 +1,295 @@
/**
@license @nocompile
Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
(function(){/*
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
'use strict';var w;function ba(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}function ca(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:ba(a)}}function da(a){if(!(a instanceof Array)){a=ca(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}
var ea="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,ha="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};function ia(){ia=function(){};ea.Symbol||(ea.Symbol=la)}function ma(a,b){this.a=a;ha(this,"description",{configurable:!0,writable:!0,value:b})}ma.prototype.toString=function(){return this.a};
var la=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new ma("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();function na(){ia();var a=ea.Symbol.iterator;a||(a=ea.Symbol.iterator=ea.Symbol("Symbol.iterator"));"function"!=typeof Array.prototype[a]&&ha(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ra(ba(this))}});na=function(){}}
function ra(a){na();a={next:a};a[ea.Symbol.iterator]=function(){return this};return a}var sa;if("function"==typeof Object.setPrototypeOf)sa=Object.setPrototypeOf;else{var ua;a:{var va={Ga:!0},wa={};try{wa.__proto__=va;ua=wa.Ga;break a}catch(a){}ua=!1}sa=ua?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var xa=sa;function ya(){this.f=!1;this.b=null;this.U=void 0;this.a=1;this.D=0;this.c=null}
function za(a){if(a.f)throw new TypeError("Generator is already running");a.f=!0}ya.prototype.u=function(a){this.U=a};function Aa(a,b){a.c={Ja:b,Na:!0};a.a=a.D}ya.prototype.return=function(a){this.c={return:a};this.a=this.D};function Ba(a,b){a.a=3;return{value:b}}function Ca(a){this.a=new ya;this.b=a}function Da(a,b){za(a.a);var c=a.a.b;if(c)return Ea(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.a.return);a.a.return(b);return Fa(a)}
function Ea(a,b,c,d){try{var e=b.call(a.a.b,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.a.f=!1,e;var f=e.value}catch(g){return a.a.b=null,Aa(a.a,g),Fa(a)}a.a.b=null;d.call(a.a,f);return Fa(a)}function Fa(a){for(;a.a.a;)try{var b=a.b(a.a);if(b)return a.a.f=!1,{value:b.value,done:!1}}catch(c){a.a.U=void 0,Aa(a.a,c)}a.a.f=!1;if(a.a.c){b=a.a.c;a.a.c=null;if(b.Na)throw b.Ja;return{value:b.return,done:!0}}return{value:void 0,done:!0}}
function Ga(a){this.next=function(b){za(a.a);a.a.b?b=Ea(a,a.a.b.next,b,a.a.u):(a.a.u(b),b=Fa(a));return b};this.throw=function(b){za(a.a);a.a.b?b=Ea(a,a.a.b["throw"],b,a.a.u):(Aa(a.a,b),b=Fa(a));return b};this.return=function(b){return Da(a,b)};na();this[Symbol.iterator]=function(){return this}}function Ha(a,b){b=new Ga(new Ca(b));xa&&xa(b,a.prototype);return b}Array.from||(Array.from=function(a){return[].slice.call(a)});
Object.assign||(Object.assign=function(a){for(var b=[].slice.call(arguments,1),c=0,d;c<b.length;c++)if(d=b[c])for(var e=a,f=d,g=Object.getOwnPropertyNames(f),h=0;h<g.length;h++)d=g[h],e[d]=f[d];return a});(function(){if(!function(){var f=document.createEvent("Event");f.initEvent("foo",!0,!0);f.preventDefault();return f.defaultPrevented}()){var a=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(a.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}var b=/Trident/.test(navigator.userAgent);if(!window.Event||b&&"function"!==typeof window.Event){var c=window.Event;window.Event=function(f,g){g=g||{};var h=document.createEvent("Event");
h.initEvent(f,!!g.bubbles,!!g.cancelable);return h};if(c){for(var d in c)window.Event[d]=c[d];window.Event.prototype=c.prototype}}if(!window.CustomEvent||b&&"function"!==typeof window.CustomEvent)window.CustomEvent=function(f,g){g=g||{};var h=document.createEvent("CustomEvent");h.initCustomEvent(f,!!g.bubbles,!!g.cancelable,g.detail);return h},window.CustomEvent.prototype=window.Event.prototype;if(!window.MouseEvent||b&&"function"!==typeof window.MouseEvent){b=window.MouseEvent;window.MouseEvent=
function(f,g){g=g||{};var h=document.createEvent("MouseEvent");h.initMouseEvent(f,!!g.bubbles,!!g.cancelable,g.view||window,g.detail,g.screenX,g.screenY,g.clientX,g.clientY,g.ctrlKey,g.altKey,g.shiftKey,g.metaKey,g.button,g.relatedTarget);return h};if(b)for(var e in b)window.MouseEvent[e]=b[e];window.MouseEvent.prototype=b.prototype}})();(function(){function a(){}function b(p,t){if(!p.childNodes.length)return[];switch(p.nodeType){case Node.DOCUMENT_NODE:return F.call(p,t);case Node.DOCUMENT_FRAGMENT_NODE:return C.call(p,t);default:return r.call(p,t)}}var c="undefined"===typeof HTMLTemplateElement,d=!(document.createDocumentFragment().cloneNode()instanceof DocumentFragment),e=!1;/Trident/.test(navigator.userAgent)&&function(){function p(y,R){if(y instanceof DocumentFragment)for(var $a;$a=y.firstChild;)D.call(this,$a,R);else D.call(this,
y,R);return y}e=!0;var t=Node.prototype.cloneNode;Node.prototype.cloneNode=function(y){y=t.call(this,y);this instanceof DocumentFragment&&(y.__proto__=DocumentFragment.prototype);return y};DocumentFragment.prototype.querySelectorAll=HTMLElement.prototype.querySelectorAll;DocumentFragment.prototype.querySelector=HTMLElement.prototype.querySelector;Object.defineProperties(DocumentFragment.prototype,{nodeType:{get:function(){return Node.DOCUMENT_FRAGMENT_NODE},configurable:!0},localName:{get:function(){},
configurable:!0},nodeName:{get:function(){return"#document-fragment"},configurable:!0}});var D=Node.prototype.insertBefore;Node.prototype.insertBefore=p;var K=Node.prototype.appendChild;Node.prototype.appendChild=function(y){y instanceof DocumentFragment?p.call(this,y,null):K.call(this,y);return y};var aa=Node.prototype.removeChild,ja=Node.prototype.replaceChild;Node.prototype.replaceChild=function(y,R){y instanceof DocumentFragment?(p.call(this,y,R),aa.call(this,R)):ja.call(this,y,R);return R};Document.prototype.createDocumentFragment=
function(){var y=this.createElement("df");y.__proto__=DocumentFragment.prototype;return y};var oa=Document.prototype.importNode;Document.prototype.importNode=function(y,R){R=oa.call(this,y,R||!1);y instanceof DocumentFragment&&(R.__proto__=DocumentFragment.prototype);return R}}();var f=Node.prototype.cloneNode,g=Document.prototype.createElement,h=Document.prototype.importNode,k=Node.prototype.removeChild,l=Node.prototype.appendChild,m=Node.prototype.replaceChild,q=DOMParser.prototype.parseFromString,
H=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML")||{get:function(){return this.innerHTML},set:function(p){this.innerHTML=p}},E=Object.getOwnPropertyDescriptor(window.Node.prototype,"childNodes")||{get:function(){return this.childNodes}},r=Element.prototype.querySelectorAll,F=Document.prototype.querySelectorAll,C=DocumentFragment.prototype.querySelectorAll,N=function(){if(!c){var p=document.createElement("template"),t=document.createElement("template");t.content.appendChild(document.createElement("div"));
p.content.appendChild(t);p=p.cloneNode(!0);return 0===p.content.childNodes.length||0===p.content.firstChild.content.childNodes.length||d}}();if(c){var x=document.implementation.createHTMLDocument("template"),X=!0,v=document.createElement("style");v.textContent="template{display:none;}";var pa=document.head;pa.insertBefore(v,pa.firstElementChild);a.prototype=Object.create(HTMLElement.prototype);var fa=!document.createElement("div").hasOwnProperty("innerHTML");a.S=function(p){if(!p.content&&p.namespaceURI===
document.documentElement.namespaceURI){p.content=x.createDocumentFragment();for(var t;t=p.firstChild;)l.call(p.content,t);if(fa)p.__proto__=a.prototype;else if(p.cloneNode=function(D){return a.b(this,D)},X)try{n(p),I(p)}catch(D){X=!1}a.a(p.content)}};var qa={option:["select"],thead:["table"],col:["colgroup","table"],tr:["tbody","table"],th:["tr","tbody","table"],td:["tr","tbody","table"]},n=function(p){Object.defineProperty(p,"innerHTML",{get:function(){return ta(this)},set:function(t){var D=qa[(/<([a-z][^/\0>\x20\t\r\n\f]+)/i.exec(t)||
["",""])[1].toLowerCase()];if(D)for(var K=0;K<D.length;K++)t="<"+D[K]+">"+t+"</"+D[K]+">";x.body.innerHTML=t;for(a.a(x);this.content.firstChild;)k.call(this.content,this.content.firstChild);t=x.body;if(D)for(K=0;K<D.length;K++)t=t.lastChild;for(;t.firstChild;)l.call(this.content,t.firstChild)},configurable:!0})},I=function(p){Object.defineProperty(p,"outerHTML",{get:function(){return"<template>"+this.innerHTML+"</template>"},set:function(t){if(this.parentNode){x.body.innerHTML=t;for(t=this.ownerDocument.createDocumentFragment();x.body.firstChild;)l.call(t,
x.body.firstChild);m.call(this.parentNode,t,this)}else throw Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");},configurable:!0})};n(a.prototype);I(a.prototype);a.a=function(p){p=b(p,"template");for(var t=0,D=p.length,K;t<D&&(K=p[t]);t++)a.S(K)};document.addEventListener("DOMContentLoaded",function(){a.a(document)});Document.prototype.createElement=function(){var p=g.apply(this,arguments);"template"===p.localName&&a.S(p);return p};DOMParser.prototype.parseFromString=
function(){var p=q.apply(this,arguments);a.a(p);return p};Object.defineProperty(HTMLElement.prototype,"innerHTML",{get:function(){return ta(this)},set:function(p){H.set.call(this,p);a.a(this)},configurable:!0,enumerable:!0});var ka=/[&\u00A0"]/g,Tb=/[&\u00A0<>]/g,ab=function(p){switch(p){case "&":return"&amp;";case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";case "\u00a0":return"&nbsp;"}};v=function(p){for(var t={},D=0;D<p.length;D++)t[p[D]]=!0;return t};var Pa=v("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),
bb=v("style script xmp iframe noembed noframes plaintext noscript".split(" ")),ta=function(p,t){"template"===p.localName&&(p=p.content);for(var D="",K=t?t(p):E.get.call(p),aa=0,ja=K.length,oa;aa<ja&&(oa=K[aa]);aa++){a:{var y=oa;var R=p;var $a=t;switch(y.nodeType){case Node.ELEMENT_NODE:for(var Ub=y.localName,cb="<"+Ub,Uf=y.attributes,qd=0;R=Uf[qd];qd++)cb+=" "+R.name+'="'+R.value.replace(ka,ab)+'"';cb+=">";y=Pa[Ub]?cb:cb+ta(y,$a)+"</"+Ub+">";break a;case Node.TEXT_NODE:y=y.data;y=R&&bb[R.localName]?
y:y.replace(Tb,ab);break a;case Node.COMMENT_NODE:y="\x3c!--"+y.data+"--\x3e";break a;default:throw window.console.error(y),Error("not implemented");}}D+=y}return D}}if(c||N){a.b=function(p,t){var D=f.call(p,!1);this.S&&this.S(D);t&&(l.call(D.content,f.call(p.content,!0)),u(D.content,p.content));return D};var u=function(p,t){if(t.querySelectorAll&&(t=b(t,"template"),0!==t.length)){p=b(p,"template");for(var D=0,K=p.length,aa,ja;D<K;D++)ja=t[D],aa=p[D],a&&a.S&&a.S(ja),m.call(aa.parentNode,G.call(ja,
!0),aa)}},G=Node.prototype.cloneNode=function(p){if(!e&&d&&this instanceof DocumentFragment)if(p)var t=J.call(this.ownerDocument,this,!0);else return this.ownerDocument.createDocumentFragment();else this.nodeType===Node.ELEMENT_NODE&&"template"===this.localName&&this.namespaceURI==document.documentElement.namespaceURI?t=a.b(this,p):t=f.call(this,p);p&&u(t,this);return t},J=Document.prototype.importNode=function(p,t){t=t||!1;if("template"===p.localName)return a.b(p,t);var D=h.call(this,p,t);if(t){u(D,
p);p=b(D,'script:not([type]),script[type="application/javascript"],script[type="text/javascript"]');for(var K,aa=0;aa<p.length;aa++){K=p[aa];t=g.call(document,"script");t.textContent=K.textContent;for(var ja=K.attributes,oa=0,y;oa<ja.length;oa++)y=ja[oa],t.setAttribute(y.name,y.value);m.call(K.parentNode,t,K)}}return D}}c&&(window.HTMLTemplateElement=a)})();var Ia=setTimeout;function Ja(){}function Ka(a,b){return function(){a.apply(b,arguments)}}function z(a){if(!(this instanceof z))throw new TypeError("Promises must be constructed via new");if("function"!==typeof a)throw new TypeError("not a function");this.J=0;this.oa=!1;this.w=void 0;this.V=[];La(a,this)}
function Ma(a,b){for(;3===a.J;)a=a.w;0===a.J?a.V.push(b):(a.oa=!0,Na(function(){var c=1===a.J?b.Pa:b.Qa;if(null===c)(1===a.J?Oa:Qa)(b.ma,a.w);else{try{var d=c(a.w)}catch(e){Qa(b.ma,e);return}Oa(b.ma,d)}}))}function Oa(a,b){try{if(b===a)throw new TypeError("A promise cannot be resolved with itself.");if(b&&("object"===typeof b||"function"===typeof b)){var c=b.then;if(b instanceof z){a.J=3;a.w=b;Ra(a);return}if("function"===typeof c){La(Ka(c,b),a);return}}a.J=1;a.w=b;Ra(a)}catch(d){Qa(a,d)}}
function Qa(a,b){a.J=2;a.w=b;Ra(a)}function Ra(a){2===a.J&&0===a.V.length&&Na(function(){a.oa||"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",a.w)});for(var b=0,c=a.V.length;b<c;b++)Ma(a,a.V[b]);a.V=null}function Sa(a,b,c){this.Pa="function"===typeof a?a:null;this.Qa="function"===typeof b?b:null;this.ma=c}function La(a,b){var c=!1;try{a(function(d){c||(c=!0,Oa(b,d))},function(d){c||(c=!0,Qa(b,d))})}catch(d){c||(c=!0,Qa(b,d))}}
z.prototype["catch"]=function(a){return this.then(null,a)};z.prototype.then=function(a,b){var c=new this.constructor(Ja);Ma(this,new Sa(a,b,c));return c};z.prototype["finally"]=function(a){var b=this.constructor;return this.then(function(c){return b.resolve(a()).then(function(){return c})},function(c){return b.resolve(a()).then(function(){return b.reject(c)})})};
function Ta(a){return new z(function(b,c){function d(h,k){try{if(k&&("object"===typeof k||"function"===typeof k)){var l=k.then;if("function"===typeof l){l.call(k,function(m){d(h,m)},c);return}}e[h]=k;0===--f&&b(e)}catch(m){c(m)}}if(!a||"undefined"===typeof a.length)throw new TypeError("Promise.all accepts an array");var e=Array.prototype.slice.call(a);if(0===e.length)return b([]);for(var f=e.length,g=0;g<e.length;g++)d(g,e[g])})}
function Ua(a){return a&&"object"===typeof a&&a.constructor===z?a:new z(function(b){b(a)})}function Va(a){return new z(function(b,c){c(a)})}function Wa(a){return new z(function(b,c){for(var d=0,e=a.length;d<e;d++)a[d].then(b,c)})}var Na="function"===typeof setImmediate&&function(a){setImmediate(a)}||function(a){Ia(a,0)};/*
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
if(!window.Promise){window.Promise=z;z.prototype.then=z.prototype.then;z.all=Ta;z.race=Wa;z.resolve=Ua;z.reject=Va;var Xa=document.createTextNode(""),Ya=[];(new MutationObserver(function(){for(var a=Ya.length,b=0;b<a;b++)Ya[b]();Ya.splice(0,a)})).observe(Xa,{characterData:!0});Na=function(a){Ya.push(a);Xa.textContent=0<Xa.textContent.length?"":"a"}};/*
Copyright (C) 2015 by WebReflection
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
(function(a,b){if(!(b in a)){var c=typeof global===typeof c?window:global,d=0,e=""+Math.random(),f="__\u0001symbol@@"+e,g=a.getOwnPropertyNames,h=a.getOwnPropertyDescriptor,k=a.create,l=a.keys,m=a.freeze||a,q=a.defineProperty,H=a.defineProperties,E=h(a,"getOwnPropertyNames"),r=a.prototype,F=r.hasOwnProperty,C=r.propertyIsEnumerable,N=r.toString,x=function(u,G,J){F.call(u,f)||q(u,f,{enumerable:!1,configurable:!1,writable:!1,value:{}});u[f]["@@"+G]=J},X=function(u,G){var J=k(u);g(G).forEach(function(p){qa.call(G,
p)&&Pa(J,p,G[p])});return J},v=function(){},pa=function(u){return u!=f&&!F.call(ka,u)},fa=function(u){return u!=f&&F.call(ka,u)},qa=function(u){var G=""+u;return fa(G)?F.call(this,G)&&this[f]["@@"+G]:C.call(this,u)},n=function(u){q(r,u,{enumerable:!1,configurable:!0,get:v,set:function(G){ta(this,u,{enumerable:!1,configurable:!0,writable:!0,value:G});x(this,u,!0)}});return m(ka[u]=q(a(u),"constructor",Tb))},I=function(u){if(this&&this!==c)throw new TypeError("Symbol is not a constructor");return n("__\u0001symbol:".concat(u||
"",e,++d))},ka=k(null),Tb={value:I},ab=function(u){return ka[u]},Pa=function(u,G,J){var p=""+G;if(fa(p)){G=ta;if(J.enumerable){var t=k(J);t.enumerable=!1}else t=J;G(u,p,t);x(u,p,!!J.enumerable)}else q(u,G,J);return u},bb=function(u){return g(u).filter(fa).map(ab)};E.value=Pa;q(a,"defineProperty",E);E.value=bb;q(a,b,E);E.value=function(u){return g(u).filter(pa)};q(a,"getOwnPropertyNames",E);E.value=function(u,G){var J=bb(G);J.length?l(G).concat(J).forEach(function(p){qa.call(G,p)&&Pa(u,p,G[p])}):H(u,
G);return u};q(a,"defineProperties",E);E.value=qa;q(r,"propertyIsEnumerable",E);E.value=I;q(c,"Symbol",E);E.value=function(u){u="__\u0001symbol:".concat("__\u0001symbol:",u,e);return u in r?ka[u]:n(u)};q(I,"for",E);E.value=function(u){if(pa(u))throw new TypeError(u+" is not a symbol");return F.call(ka,u)?u.slice(20,-e.length):void 0};q(I,"keyFor",E);E.value=function(u,G){var J=h(u,G);J&&fa(G)&&(J.enumerable=qa.call(u,G));return J};q(a,"getOwnPropertyDescriptor",E);E.value=function(u,G){return 1===
arguments.length?k(u):X(u,G)};q(a,"create",E);E.value=function(){var u=N.call(this);return"[object String]"===u&&fa(this)?"[object Symbol]":u};q(r,"toString",E);try{var ta=k(q({},"__\u0001symbol:",{get:function(){return q(this,"__\u0001symbol:",{value:!1})["__\u0001symbol:"]}}))["__\u0001symbol:"]||q}catch(u){ta=function(G,J,p){var t=h(r,J);delete r[J];q(G,J,p);q(r,J,t)}}}})(Object,"getOwnPropertySymbols");
(function(a){var b=a.defineProperty,c=a.prototype,d=c.toString,e;"iterator match replace search split hasInstance isConcatSpreadable unscopables species toPrimitive toStringTag".split(" ").forEach(function(f){if(!(f in Symbol))switch(b(Symbol,f,{value:Symbol(f)}),f){case "toStringTag":e=a.getOwnPropertyDescriptor(c,"toString"),e.value=function(){var g=d.call(this),h=this[Symbol.toStringTag];return"undefined"===typeof h?g:"[object "+h+"]"},b(c,"toString",e)}})})(Object,Symbol);
(function(a,b,c){function d(){return this}b[a]||(b[a]=function(){var e=0,f=this,g={next:function(){var h=f.length<=e;return h?{done:h}:{done:h,value:f[e++]}}};g[a]=d;return g});c[a]||(c[a]=function(){var e=String.fromCodePoint,f=this,g=0,h=f.length,k={next:function(){var l=h<=g,m=l?"":e(f.codePointAt(g));g+=m.length;return l?{done:l}:{done:l,value:m}}};k[a]=d;return k})})(Symbol.iterator,Array.prototype,String.prototype);/*
Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var Za=Object.prototype.toString;Object.prototype.toString=function(){return void 0===this?"[object Undefined]":null===this?"[object Null]":Za.call(this)};Object.keys=function(a){return Object.getOwnPropertyNames(a).filter(function(b){return(b=Object.getOwnPropertyDescriptor(a,b))&&b.enumerable})};var db=window.Symbol.iterator;
String.prototype[db]&&String.prototype.codePointAt||(String.prototype[db]=function eb(){var b,c=this;return Ha(eb,function(d){1==d.a&&(b=0);if(3!=d.a)return b<c.length?d=Ba(d,c[b]):(d.a=0,d=void 0),d;b++;d.a=2})});Set.prototype[db]||(Set.prototype[db]=function fb(){var b,c=this,d;return Ha(fb,function(e){1==e.a&&(b=[],c.forEach(function(f){b.push(f)}),d=0);if(3!=e.a)return d<b.length?e=Ba(e,b[d]):(e.a=0,e=void 0),e;d++;e.a=2})});
Map.prototype[db]||(Map.prototype[db]=function gb(){var b,c=this,d;return Ha(gb,function(e){1==e.a&&(b=[],c.forEach(function(f,g){b.push([g,f])}),d=0);if(3!=e.a)return d<b.length?e=Ba(e,b[d]):(e.a=0,e=void 0),e;d++;e.a=2})});/*
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
window.WebComponents=window.WebComponents||{flags:{}};var hb=document.querySelector('script[src*="webcomponents-bundle"]'),ib=/wc-(.+)/,jb={};if(!jb.noOpts){location.search.slice(1).split("&").forEach(function(a){a=a.split("=");var b;a[0]&&(b=a[0].match(ib))&&(jb[b[1]]=a[1]||!0)});if(hb)for(var kb=0,lb=void 0;lb=hb.attributes[kb];kb++)"src"!==lb.name&&(jb[lb.name]=lb.value||!0);if(jb.log&&jb.log.split){var mb=jb.log.split(",");jb.log={};mb.forEach(function(a){jb.log[a]=!0})}else jb.log={}}
window.WebComponents.flags=jb;var nb=jb.shadydom;nb&&(window.ShadyDOM=window.ShadyDOM||{},window.ShadyDOM.force=nb);var ob=jb.register||jb.ce;ob&&window.customElements&&(window.customElements.forcePolyfill=ob);/*
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
function pb(){}pb.prototype.toJSON=function(){return{}};function A(a){a.__shady||(a.__shady=new pb);return a.__shady}function B(a){return a&&a.__shady};var L=window.ShadyDOM||{};L.La=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var qb=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");L.F=!!(qb&&qb.configurable&&qb.get);L.ja=L.force||!L.La;L.M=L.noPatch||!1;L.va=L.preferPerformance;L.ya=navigator.userAgent.match("Trident");function rb(a){return(a=B(a))&&void 0!==a.firstChild}function M(a){return"ShadyRoot"===a.Da}function sb(a){return(a=(a=B(a))&&a.root)&&tb(a)}
var ub=Element.prototype,vb=ub.matches||ub.matchesSelector||ub.mozMatchesSelector||ub.msMatchesSelector||ub.oMatchesSelector||ub.webkitMatchesSelector,wb=document.createTextNode(""),xb=0,yb=[];(new MutationObserver(function(){for(;yb.length;)try{yb.shift()()}catch(a){throw wb.textContent=xb++,a;}})).observe(wb,{characterData:!0});function zb(a){yb.push(a);wb.textContent=xb++}var Ab=!!document.contains;function Bb(a,b){for(;b;){if(b==a)return!0;b=b.__shady_parentNode}return!1}
function Cb(a){for(var b=a.length-1;0<=b;b--){var c=a[b],d=c.getAttribute("id")||c.getAttribute("name");d&&"length"!==d&&isNaN(d)&&(a[d]=c)}a.item=function(e){return a[e]};a.namedItem=function(e){if("length"!==e&&isNaN(e)&&a[e])return a[e];for(var f=ca(a),g=f.next();!g.done;g=f.next())if(g=g.value,(g.getAttribute("id")||g.getAttribute("name"))==e)return g;return null};return a}function Db(a){var b=[];for(a=a.__shady_native_firstChild;a;a=a.__shady_native_nextSibling)b.push(a);return b}
function Eb(a){var b=[];for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling)b.push(a);return b}function O(a,b,c,d){c=void 0===c?"":c;for(var e in b){var f=b[e];if(!(d&&0<=d.indexOf(e))){f.configurable=!0;var g=c+e;if(f.value)a[g]=f.value;else try{Object.defineProperty(a,g,f)}catch(h){}}}}function P(a){var b={};Object.getOwnPropertyNames(a).forEach(function(c){b[c]=Object.getOwnPropertyDescriptor(a,c)});return b};var Fb=[],Gb;function Hb(a){Gb||(Gb=!0,zb(Ib));Fb.push(a)}function Ib(){Gb=!1;for(var a=!!Fb.length;Fb.length;)Fb.shift()();return a}Ib.list=Fb;function Jb(){this.a=!1;this.addedNodes=[];this.removedNodes=[];this.ca=new Set}function Kb(a){a.a||(a.a=!0,zb(function(){a.flush()}))}Jb.prototype.flush=function(){if(this.a){this.a=!1;var a=this.takeRecords();a.length&&this.ca.forEach(function(b){b(a)})}};Jb.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var a=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];this.addedNodes=[];this.removedNodes=[];return a}return[]};
function Lb(a,b){var c=A(a);c.W||(c.W=new Jb);c.W.ca.add(b);var d=c.W;return{Ca:b,P:d,Ea:a,takeRecords:function(){return d.takeRecords()}}}function Mb(a){var b=a&&a.P;b&&(b.ca.delete(a.Ca),b.ca.size||(A(a.Ea).W=null))}
function Nb(a,b){var c=b.getRootNode();return a.map(function(d){var e=c===d.target.getRootNode();if(e&&d.addedNodes){if(e=Array.from(d.addedNodes).filter(function(f){return c===f.getRootNode()}),e.length)return d=Object.create(d),Object.defineProperty(d,"addedNodes",{value:e,configurable:!0}),d}else if(e)return d}).filter(function(d){return d})};var Ob=/[&\u00A0"]/g,Pb=/[&\u00A0<>]/g;function Qb(a){switch(a){case "&":return"&amp;";case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";case "\u00a0":return"&nbsp;"}}function Rb(a){for(var b={},c=0;c<a.length;c++)b[a[c]]=!0;return b}var Sb=Rb("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),Vb=Rb("style script xmp iframe noembed noframes plaintext noscript".split(" "));
function Wb(a,b){"template"===a.localName&&(a=a.content);for(var c="",d=b?b(a):a.childNodes,e=0,f=d.length,g=void 0;e<f&&(g=d[e]);e++){a:{var h=g;var k=a,l=b;switch(h.nodeType){case Node.ELEMENT_NODE:k=h.localName;for(var m="<"+k,q=h.attributes,H=0,E;E=q[H];H++)m+=" "+E.name+'="'+E.value.replace(Ob,Qb)+'"';m+=">";h=Sb[k]?m:m+Wb(h,l)+"</"+k+">";break a;case Node.TEXT_NODE:h=h.data;h=k&&Vb[k.localName]?h:h.replace(Pb,Qb);break a;case Node.COMMENT_NODE:h="\x3c!--"+h.data+"--\x3e";break a;default:throw window.console.error(h),
Error("not implemented");}}c+=h}return c};var Xb=L.F,Yb={querySelector:function(a){return this.__shady_native_querySelector(a)},querySelectorAll:function(a){return this.__shady_native_querySelectorAll(a)}},Zb={};function $b(a){Zb[a]=function(b){return b["__shady_native_"+a]}}function ac(a,b){O(a,b,"__shady_native_");for(var c in b)$b(c)}function Q(a,b){b=void 0===b?[]:b;for(var c=0;c<b.length;c++){var d=b[c],e=Object.getOwnPropertyDescriptor(a,d);e&&(Object.defineProperty(a,"__shady_native_"+d,e),e.value?Yb[d]||(Yb[d]=e.value):$b(d))}}
var bc=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),cc=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),dc=document.implementation.createHTMLDocument("inert");function ec(a){for(var b;b=a.__shady_native_firstChild;)a.__shady_native_removeChild(b)}var fc=["firstElementChild","lastElementChild","children","childElementCount"],gc=["querySelector","querySelectorAll"];
function hc(){var a=["dispatchEvent","addEventListener","removeEventListener"];window.EventTarget?Q(window.EventTarget.prototype,a):(Q(Node.prototype,a),Q(Window.prototype,a));Xb?Q(Node.prototype,"parentNode firstChild lastChild previousSibling nextSibling childNodes parentElement textContent".split(" ")):ac(Node.prototype,{parentNode:{get:function(){bc.currentNode=this;return bc.parentNode()}},firstChild:{get:function(){bc.currentNode=this;return bc.firstChild()}},lastChild:{get:function(){bc.currentNode=
this;return bc.lastChild()}},previousSibling:{get:function(){bc.currentNode=this;return bc.previousSibling()}},nextSibling:{get:function(){bc.currentNode=this;return bc.nextSibling()}},childNodes:{get:function(){var b=[];bc.currentNode=this;for(var c=bc.firstChild();c;)b.push(c),c=bc.nextSibling();return b}},parentElement:{get:function(){cc.currentNode=this;return cc.parentNode()}},textContent:{get:function(){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(var b=
document.createTreeWalker(this,NodeFilter.SHOW_TEXT,null,!1),c="",d;d=b.nextNode();)c+=d.nodeValue;return c;default:return this.nodeValue}},set:function(b){if("undefined"===typeof b||null===b)b="";switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:ec(this);(0<b.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_native_insertBefore(document.createTextNode(b),void 0);break;default:this.nodeValue=b}}}});Q(Node.prototype,"appendChild insertBefore removeChild replaceChild cloneNode contains".split(" "));
Q(HTMLElement.prototype,["parentElement","contains"]);a={firstElementChild:{get:function(){cc.currentNode=this;return cc.firstChild()}},lastElementChild:{get:function(){cc.currentNode=this;return cc.lastChild()}},children:{get:function(){var b=[];cc.currentNode=this;for(var c=cc.firstChild();c;)b.push(c),c=cc.nextSibling();return Cb(b)}},childElementCount:{get:function(){return this.children?this.children.length:0}}};Xb?(Q(Element.prototype,fc),Q(Element.prototype,["previousElementSibling","nextElementSibling",
"innerHTML","className"]),Q(HTMLElement.prototype,["children","innerHTML","className"])):(ac(Element.prototype,a),ac(Element.prototype,{previousElementSibling:{get:function(){cc.currentNode=this;return cc.previousSibling()}},nextElementSibling:{get:function(){cc.currentNode=this;return cc.nextSibling()}},innerHTML:{get:function(){return Wb(this,Db)},set:function(b){var c="template"===this.localName?this.content:this;ec(c);var d=this.localName||"div";d=this.namespaceURI&&this.namespaceURI!==dc.namespaceURI?
dc.createElementNS(this.namespaceURI,d):dc.createElement(d);d.innerHTML=b;for(b="template"===this.localName?d.content:d;d=b.__shady_native_firstChild;)c.__shady_native_insertBefore(d,void 0)}},className:{get:function(){return this.getAttribute("class")||""},set:function(b){this.setAttribute("class",b)}}}));Q(Element.prototype,"setAttribute getAttribute hasAttribute removeAttribute focus blur".split(" "));Q(Element.prototype,gc);Q(HTMLElement.prototype,["focus","blur"]);window.HTMLTemplateElement&&
Q(window.HTMLTemplateElement.prototype,["innerHTML"]);Xb?Q(DocumentFragment.prototype,fc):ac(DocumentFragment.prototype,a);Q(DocumentFragment.prototype,gc);Xb?(Q(Document.prototype,fc),Q(Document.prototype,["activeElement"])):ac(Document.prototype,a);Q(Document.prototype,["importNode","getElementById"]);Q(Document.prototype,gc)};var ic=P({get childNodes(){return this.__shady_childNodes},get firstChild(){return this.__shady_firstChild},get lastChild(){return this.__shady_lastChild},get childElementCount(){return this.__shady_childElementCount},get children(){return this.__shady_children},get firstElementChild(){return this.__shady_firstElementChild},get lastElementChild(){return this.__shady_lastElementChild},get shadowRoot(){return this.__shady_shadowRoot}}),jc=P({get textContent(){return this.__shady_textContent},set textContent(a){this.__shady_textContent=
a},get innerHTML(){return this.__shady_innerHTML},set innerHTML(a){return this.__shady_innerHTML=a}}),kc=P({get parentElement(){return this.__shady_parentElement},get parentNode(){return this.__shady_parentNode},get nextSibling(){return this.__shady_nextSibling},get previousSibling(){return this.__shady_previousSibling},get nextElementSibling(){return this.__shady_nextElementSibling},get previousElementSibling(){return this.__shady_previousElementSibling},get className(){return this.__shady_className},
set className(a){return this.__shady_className=a}});function lc(a){for(var b in a){var c=a[b];c&&(c.enumerable=!1)}}lc(ic);lc(jc);lc(kc);var mc=L.F||L.M,nc=mc?function(){}:function(a){var b=A(a);b.Aa||(b.Aa=!0,O(a,kc))},oc=mc?function(){}:function(a){var b=A(a);b.za||(b.za=!0,O(a,ic),window.customElements&&!L.M||O(a,jc))};var pc="__eventWrappers"+Date.now(),qc=function(){var a=Object.getOwnPropertyDescriptor(Event.prototype,"composed");return a?function(b){return a.get.call(b)}:null}(),rc=function(){function a(){}var b=!1,c={get capture(){b=!0;return!1}};window.addEventListener("test",a,c);window.removeEventListener("test",a,c);return b}();function sc(a){if(a&&"object"===typeof a){var b=!!a.capture;var c=!!a.once;var d=!!a.passive;var e=a.O}else b=!!a,d=c=!1;return{wa:e,capture:b,once:c,passive:d,ta:rc?a:b}}
var tc={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,
drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},uc={DOMAttrModified:!0,DOMAttributeNameChanged:!0,DOMCharacterDataModified:!0,DOMElementNameChanged:!0,DOMNodeInserted:!0,DOMNodeInsertedIntoDocument:!0,DOMNodeRemoved:!0,DOMNodeRemovedFromDocument:!0,DOMSubtreeModified:!0};function vc(a){return a instanceof Node?a.__shady_getRootNode():a}
function wc(a,b){var c=[],d=a;for(a=vc(a);d;)c.push(d),d.__shady_assignedSlot?d=d.__shady_assignedSlot:d.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&d.host&&(b||d!==a)?d=d.host:d=d.__shady_parentNode;c[c.length-1]===document&&c.push(window);return c}function xc(a){a.__composedPath||(a.__composedPath=wc(a.target,!0));return a.__composedPath}function yc(a,b){if(!M)return a;a=wc(a,!0);for(var c=0,d,e=void 0,f,g=void 0;c<b.length;c++)if(d=b[c],f=vc(d),f!==e&&(g=a.indexOf(f),e=f),!M(f)||-1<g)return d}
function zc(a){function b(c,d){c=new a(c,d);c.__composed=d&&!!d.composed;return c}b.__proto__=a;b.prototype=a.prototype;return b}var Ac={focus:!0,blur:!0};function Bc(a){return a.__target!==a.target||a.__relatedTarget!==a.relatedTarget}function Cc(a,b,c){if(c=b.__handlers&&b.__handlers[a.type]&&b.__handlers[a.type][c])for(var d=0,e;(e=c[d])&&(!Bc(a)||a.target!==a.relatedTarget)&&(e.call(b,a),!a.__immediatePropagationStopped);d++);}
function Dc(a){var b=a.composedPath();Object.defineProperty(a,"currentTarget",{get:function(){return d},configurable:!0});for(var c=b.length-1;0<=c;c--){var d=b[c];Cc(a,d,"capture");if(a.fa)return}Object.defineProperty(a,"eventPhase",{get:function(){return Event.AT_TARGET}});var e;for(c=0;c<b.length;c++){d=b[c];var f=B(d);f=f&&f.root;if(0===c||f&&f===e)if(Cc(a,d,"bubble"),d!==window&&(e=d.__shady_getRootNode()),a.fa)break}}
function Ec(a,b,c,d,e,f){for(var g=0;g<a.length;g++){var h=a[g],k=h.type,l=h.capture,m=h.once,q=h.passive;if(b===h.node&&c===k&&d===l&&e===m&&f===q)return g}return-1}function Fc(a){Ib();return this.__shady_native_dispatchEvent(a)}
function Gc(a,b,c){var d=sc(c),e=d.capture,f=d.once,g=d.passive,h=d.wa;d=d.ta;if(b){var k=typeof b;if("function"===k||"object"===k)if("object"!==k||b.handleEvent&&"function"===typeof b.handleEvent){if(uc[a])return this.__shady_native_addEventListener(a,b,d);var l=h||this;if(h=b[pc]){if(-1<Ec(h,l,a,e,f,g))return}else b[pc]=[];h=function(m){f&&this.__shady_removeEventListener(a,b,c);m.__target||Hc(m);if(l!==this){var q=Object.getOwnPropertyDescriptor(m,"currentTarget");Object.defineProperty(m,"currentTarget",
{get:function(){return l},configurable:!0})}m.__previousCurrentTarget=m.currentTarget;if(!M(l)&&"slot"!==l.localName||-1!=m.composedPath().indexOf(l))if(m.composed||-1<m.composedPath().indexOf(l))if(Bc(m)&&m.target===m.relatedTarget)m.eventPhase===Event.BUBBLING_PHASE&&m.stopImmediatePropagation();else if(m.eventPhase===Event.CAPTURING_PHASE||m.bubbles||m.target===l||l instanceof Window){var H="function"===k?b.call(l,m):b.handleEvent&&b.handleEvent(m);l!==this&&(q?(Object.defineProperty(m,"currentTarget",
q),q=null):delete m.currentTarget);return H}};b[pc].push({node:l,type:a,capture:e,once:f,passive:g,ab:h});Ac[a]?(this.__handlers=this.__handlers||{},this.__handlers[a]=this.__handlers[a]||{capture:[],bubble:[]},this.__handlers[a][e?"capture":"bubble"].push(h)):this.__shady_native_addEventListener(a,h,d)}}}
function Ic(a,b,c){if(b){var d=sc(c);c=d.capture;var e=d.once,f=d.passive,g=d.wa;d=d.ta;if(uc[a])return this.__shady_native_removeEventListener(a,b,d);var h=g||this;g=void 0;var k=null;try{k=b[pc]}catch(l){}k&&(e=Ec(k,h,a,c,e,f),-1<e&&(g=k.splice(e,1)[0].ab,k.length||(b[pc]=void 0)));this.__shady_native_removeEventListener(a,g||b,d);g&&Ac[a]&&this.__handlers&&this.__handlers[a]&&(a=this.__handlers[a][c?"capture":"bubble"],b=a.indexOf(g),-1<b&&a.splice(b,1))}}
function Jc(){for(var a in Ac)window.__shady_native_addEventListener(a,function(b){b.__target||(Hc(b),Dc(b))},!0)}
var Kc=P({get composed(){void 0===this.__composed&&(qc?this.__composed="focusin"===this.type||"focusout"===this.type||qc(this):!1!==this.isTrusted&&(this.__composed=tc[this.type]));return this.__composed||!1},composedPath:function(){this.__composedPath||(this.__composedPath=wc(this.__target,this.composed));return this.__composedPath},get target(){return yc(this.currentTarget||this.__previousCurrentTarget,this.composedPath())},get relatedTarget(){if(!this.__relatedTarget)return null;this.__relatedTargetComposedPath||
(this.__relatedTargetComposedPath=wc(this.__relatedTarget,!0));return yc(this.currentTarget||this.__previousCurrentTarget,this.__relatedTargetComposedPath)},stopPropagation:function(){Event.prototype.stopPropagation.call(this);this.fa=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this);this.fa=this.__immediatePropagationStopped=!0}});
function Hc(a){a.__target=a.target;a.__relatedTarget=a.relatedTarget;if(L.F){var b=Object.getPrototypeOf(a);if(!Object.hasOwnProperty(b,"__shady_patchedProto")){var c=Object.create(b);c.__shady_sourceProto=b;O(c,Kc);b.__shady_patchedProto=c}a.__proto__=b.__shady_patchedProto}else O(a,Kc)}var Lc=zc(Event),Mc=zc(CustomEvent),Nc=zc(MouseEvent);
function Oc(){if(!qc&&Object.getOwnPropertyDescriptor(Event.prototype,"isTrusted")){var a=function(){var b=new MouseEvent("click",{bubbles:!0,cancelable:!0,composed:!0});this.__shady_dispatchEvent(b)};Element.prototype.click?Element.prototype.click=a:HTMLElement.prototype.click&&(HTMLElement.prototype.click=a)}}var Pc=Object.getOwnPropertyNames(Document.prototype).filter(function(a){return"on"===a.substring(0,2)});function Qc(a,b){return{index:a,X:[],ba:b}}
function Rc(a,b,c,d){var e=0,f=0,g=0,h=0,k=Math.min(b-e,d-f);if(0==e&&0==f)a:{for(g=0;g<k;g++)if(a[g]!==c[g])break a;g=k}if(b==a.length&&d==c.length){h=a.length;for(var l=c.length,m=0;m<k-g&&Sc(a[--h],c[--l]);)m++;h=m}e+=g;f+=g;b-=h;d-=h;if(0==b-e&&0==d-f)return[];if(e==b){for(b=Qc(e,0);f<d;)b.X.push(c[f++]);return[b]}if(f==d)return[Qc(e,b-e)];k=e;g=f;d=d-g+1;h=b-k+1;b=Array(d);for(l=0;l<d;l++)b[l]=Array(h),b[l][0]=l;for(l=0;l<h;l++)b[0][l]=l;for(l=1;l<d;l++)for(m=1;m<h;m++)if(a[k+m-1]===c[g+l-1])b[l][m]=
b[l-1][m-1];else{var q=b[l-1][m]+1,H=b[l][m-1]+1;b[l][m]=q<H?q:H}k=b.length-1;g=b[0].length-1;d=b[k][g];for(a=[];0<k||0<g;)0==k?(a.push(2),g--):0==g?(a.push(3),k--):(h=b[k-1][g-1],l=b[k-1][g],m=b[k][g-1],q=l<m?l<h?l:h:m<h?m:h,q==h?(h==d?a.push(0):(a.push(1),d=h),k--,g--):q==l?(a.push(3),k--,d=l):(a.push(2),g--,d=m));a.reverse();b=void 0;k=[];for(g=0;g<a.length;g++)switch(a[g]){case 0:b&&(k.push(b),b=void 0);e++;f++;break;case 1:b||(b=Qc(e,0));b.ba++;e++;b.X.push(c[f]);f++;break;case 2:b||(b=Qc(e,
0));b.ba++;e++;break;case 3:b||(b=Qc(e,0)),b.X.push(c[f]),f++}b&&k.push(b);return k}function Sc(a,b){return a===b};function Tc(a,b,c,d){nc(a);d=d||null;var e=A(a),f=d?A(d):null;e.previousSibling=d?f.previousSibling:b.__shady_lastChild;if(f=B(e.previousSibling))f.nextSibling=a;if(f=B(e.nextSibling=d))f.previousSibling=a;e.parentNode=b;d?d===c.firstChild&&(c.firstChild=a):(c.lastChild=a,c.firstChild||(c.firstChild=a));c.childNodes=null}
function Uc(a,b,c){oc(b);var d=A(b);void 0!==d.firstChild&&(d.childNodes=null);if(a.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(a=a.__shady_native_firstChild;a;a=a.__shady_native_nextSibling)Tc(a,b,d,c);else Tc(a,b,d,c)}
function Vc(a,b){var c=A(a);b=A(b);a===b.firstChild&&(b.firstChild=c.nextSibling);a===b.lastChild&&(b.lastChild=c.previousSibling);a=c.previousSibling;var d=c.nextSibling;a&&(A(a).nextSibling=d);d&&(A(d).previousSibling=a);c.parentNode=c.previousSibling=c.nextSibling=void 0;void 0!==b.childNodes&&(b.childNodes=null)}
function Wc(a,b){var c=A(a);if(b||void 0===c.firstChild){c.childNodes=null;var d=c.firstChild=a.__shady_native_firstChild;c.lastChild=a.__shady_native_lastChild;oc(a);c=d;for(d=void 0;c;c=c.__shady_native_nextSibling){var e=A(c);e.parentNode=b||a;e.nextSibling=c.__shady_native_nextSibling;e.previousSibling=d||null;d=c;nc(c)}}};var Xc=null;function Yc(){Xc||(Xc=window.ShadyCSS&&window.ShadyCSS.ScopingShim);return Xc||null}function Zc(a,b,c){var d=Yc();return d&&"class"===b?(d.setElementClass(a,c),!0):!1}function $c(a,b){var c=Yc();c&&c.unscopeNode(a,b)}function ad(a,b){var c=Yc();if(!c)return!0;if(a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){c=!0;for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling)c=c&&ad(a,b);return c}return a.nodeType!==Node.ELEMENT_NODE?!0:c.currentScopeForNode(a)===b}
function bd(a){if(a.nodeType!==Node.ELEMENT_NODE)return"";var b=Yc();return b?b.currentScopeForNode(a):""}function cd(a,b){if(a)for(a.nodeType===Node.ELEMENT_NODE&&b(a),a=a.__shady_firstChild;a;a=a.__shady_nextSibling)a.nodeType===Node.ELEMENT_NODE&&cd(a,b)};var dd=window.document,ed=L.va,fd=Object.getOwnPropertyDescriptor(Node.prototype,"isConnected"),gd=fd&&fd.get;function hd(a){for(var b;b=a.__shady_firstChild;)a.__shady_removeChild(b)}function id(a){var b=B(a);if(b&&void 0!==b.ea)for(b=a.__shady_firstChild;b;b=b.__shady_nextSibling)id(b);if(a=B(a))a.ea=void 0}function jd(a){var b=a;a&&"slot"===a.localName&&(b=(b=(b=B(a))&&b.T)&&b.length?b[0]:jd(a.__shady_nextSibling));return b}
function kd(a,b,c){if(a=(a=B(a))&&a.W)b&&(b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?a.addedNodes.push.apply(a.addedNodes,da(b.childNodes)):a.addedNodes.push(b)),c&&a.removedNodes.push(c),Kb(a)}
var pd=P({get parentNode(){var a=B(this);a=a&&a.parentNode;return void 0!==a?a:this.__shady_native_parentNode},get firstChild(){var a=B(this);a=a&&a.firstChild;return void 0!==a?a:this.__shady_native_firstChild},get lastChild(){var a=B(this);a=a&&a.lastChild;return void 0!==a?a:this.__shady_native_lastChild},get nextSibling(){var a=B(this);a=a&&a.nextSibling;return void 0!==a?a:this.__shady_native_nextSibling},get previousSibling(){var a=B(this);a=a&&a.previousSibling;return void 0!==a?a:this.__shady_native_previousSibling},
get childNodes(){if(rb(this)){var a=B(this);if(!a.childNodes){a.childNodes=[];for(var b=this.__shady_firstChild;b;b=b.__shady_nextSibling)a.childNodes.push(b)}var c=a.childNodes}else c=this.__shady_native_childNodes;c.item=function(d){return c[d]};return c},get parentElement(){var a=B(this);(a=a&&a.parentNode)&&a.nodeType!==Node.ELEMENT_NODE&&(a=null);return void 0!==a?a:this.__shady_native_parentElement},get isConnected(){if(gd&&gd.call(this))return!0;if(this.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!1;
var a=this.ownerDocument;if(Ab){if(a.__shady_native_contains(this))return!0}else if(a.documentElement&&a.documentElement.__shady_native_contains(this))return!0;for(a=this;a&&!(a instanceof Document);)a=a.__shady_parentNode||(M(a)?a.host:void 0);return!!(a&&a instanceof Document)},get textContent(){if(rb(this)){for(var a=[],b=this.__shady_firstChild;b;b=b.__shady_nextSibling)b.nodeType!==Node.COMMENT_NODE&&a.push(b.__shady_textContent);return a.join("")}return this.__shady_native_textContent},set textContent(a){if("undefined"===
typeof a||null===a)a="";switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:if(!rb(this)&&L.F){var b=this.__shady_firstChild;(b!=this.__shady_lastChild||b&&b.nodeType!=Node.TEXT_NODE)&&hd(this);this.__shady_native_textContent=a}else hd(this),(0<a.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_insertBefore(document.createTextNode(a));break;default:this.nodeValue=a}},insertBefore:function(a,b){if(this.ownerDocument!==dd&&a.ownerDocument!==dd)return this.__shady_native_insertBefore(a,
b),a;if(a===this)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");if(b){var c=B(b);c=c&&c.parentNode;if(void 0!==c&&c!==this||void 0===c&&b.__shady_native_parentNode!==this)throw Error("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.");}if(b===a)return a;kd(this,a);var d=[],e=(c=ld(this))?c.host.localName:bd(this),f=a.__shady_parentNode;if(f){var g=bd(a);var h=!!c||!ld(a)||
ed&&void 0!==this.__noInsertionPoint;f.__shady_removeChild(a,h)}f=!0;var k=(!ed||void 0===a.__noInsertionPoint&&void 0===this.__noInsertionPoint)&&!ad(a,e),l=c&&!a.__noInsertionPoint&&(!ed||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE);if(l||k)k&&(g=g||bd(a)),cd(a,function(m){l&&"slot"===m.localName&&d.push(m);if(k){var q=g;Yc()&&(q&&$c(m,q),(q=Yc())&&q.scopeNode(m,e))}});d.length&&(md(c),c.c.push.apply(c.c,da(d)),nd(c));rb(this)&&(Uc(a,this,b),c=B(this),sb(this)?(nd(c.root),f=!1):c.root&&(f=!1));f?(c=
M(this)?this.host:this,b?(b=jd(b),c.__shady_native_insertBefore(a,b)):c.__shady_native_appendChild(a)):a.ownerDocument!==this.ownerDocument&&this.ownerDocument.adoptNode(a);return a},appendChild:function(a){if(this!=a||!M(a))return this.__shady_insertBefore(a)},removeChild:function(a,b){b=void 0===b?!1:b;if(this.ownerDocument!==dd)return this.__shady_native_removeChild(a);if(a.__shady_parentNode!==this)throw Error("The node to be removed is not a child of this node: "+a);kd(this,null,a);var c=ld(a),
d=c&&od(c,a),e=B(this);if(rb(this)&&(Vc(a,this),sb(this))){nd(e.root);var f=!0}if(Yc()&&!b&&c&&a.nodeType!==Node.TEXT_NODE){var g=bd(a);cd(a,function(h){$c(h,g)})}id(a);c&&((b=this&&"slot"===this.localName)&&(f=!0),(d||b)&&nd(c));f||(f=M(this)?this.host:this,(!e.root&&"slot"!==a.localName||f===a.__shady_native_parentNode)&&f.__shady_native_removeChild(a));return a},replaceChild:function(a,b){this.__shady_insertBefore(a,b);this.__shady_removeChild(b);return a},cloneNode:function(a){if("template"==
this.localName)return this.__shady_native_cloneNode(a);var b=this.__shady_native_cloneNode(!1);if(a&&b.nodeType!==Node.ATTRIBUTE_NODE){a=this.__shady_firstChild;for(var c;a;a=a.__shady_nextSibling)c=a.__shady_cloneNode(!0),b.__shady_appendChild(c)}return b},getRootNode:function(a){if(this&&this.nodeType){var b=A(this),c=b.ea;void 0===c&&(M(this)?(c=this,b.ea=c):(c=(c=this.__shady_parentNode)?c.__shady_getRootNode(a):this,document.documentElement.__shady_native_contains(this)&&(b.ea=c)));return c}},
contains:function(a){return Bb(this,a)}});function rd(a,b,c){var d=[];sd(a,b,c,d);return d}function sd(a,b,c,d){for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling){var e;if(e=a.nodeType===Node.ELEMENT_NODE){e=a;var f=b,g=c,h=d,k=f(e);k&&h.push(e);g&&g(k)?e=k:(sd(e,f,g,h),e=void 0)}if(e)break}}
var td=P({get firstElementChild(){var a=B(this);if(a&&void 0!==a.firstChild){for(a=this.__shady_firstChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_nextSibling;return a}return this.__shady_native_firstElementChild},get lastElementChild(){var a=B(this);if(a&&void 0!==a.lastChild){for(a=this.__shady_lastChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_previousSibling;return a}return this.__shady_native_lastElementChild},get children(){return rb(this)?Cb(Array.prototype.filter.call(Eb(this),
function(a){return a.nodeType===Node.ELEMENT_NODE})):this.__shady_native_children},get childElementCount(){var a=this.__shady_children;return a?a.length:0}}),ud=P({querySelector:function(a){return rd(this,function(b){return vb.call(b,a)},function(b){return!!b})[0]||null},querySelectorAll:function(a,b){if(b){b=Array.prototype.slice.call(this.__shady_native_querySelectorAll(a));var c=this.__shady_getRootNode();return Cb(b.filter(function(d){return d.__shady_getRootNode()==c}))}return Cb(rd(this,function(d){return vb.call(d,
a)}))}}),vd=L.va&&!L.M?Object.assign({},td):td;Object.assign(td,ud);var wd=P({getElementById:function(a){return""===a?null:rd(this,function(b){return b.id==a},function(b){return!!b})[0]||null}});var xd=P({get activeElement(){var a=L.F?document.__shady_native_activeElement:document.activeElement;if(!a||!a.nodeType)return null;var b=!!M(this);if(!(this===document||b&&this.host!==a&&this.host.__shady_native_contains(a)))return null;for(b=ld(a);b&&b!==this;)a=b.host,b=ld(a);return this===document?b?null:a:b===this?a:null}});var yd=document.implementation.createHTMLDocument("inert"),zd=P({get innerHTML(){return rb(this)?Wb("template"===this.localName?this.content:this,Eb):this.__shady_native_innerHTML},set innerHTML(a){if("template"===this.localName)this.__shady_native_innerHTML=a;else{hd(this);var b=this.localName||"div";b=this.namespaceURI&&this.namespaceURI!==yd.namespaceURI?yd.createElementNS(this.namespaceURI,b):yd.createElement(b);for(L.F?b.__shady_native_innerHTML=a:b.innerHTML=a;a=b.__shady_firstChild;)this.__shady_insertBefore(a)}}});var Ad=P({addEventListener:function(a,b,c){"object"!==typeof c&&(c={capture:!!c});c.O=c.O||this;this.host.__shady_addEventListener(a,b,c)},removeEventListener:function(a,b,c){"object"!==typeof c&&(c={capture:!!c});c.O=c.O||this;this.host.__shady_removeEventListener(a,b,c)}});function Bd(a,b){O(a,Ad,b);O(a,xd,b);O(a,zd,b);O(a,td,b);L.M&&!b?(O(a,pd,b),O(a,wd,b)):L.F||(O(a,kc),O(a,ic),O(a,jc))};var Cd={},Dd=L.deferConnectionCallbacks&&"loading"===document.readyState,Ed;function Fd(a){var b=[];do b.unshift(a);while(a=a.__shady_parentNode);return b}function Gd(a,b,c){if(a!==Cd)throw new TypeError("Illegal constructor");this.a=null;Hd(this,b,c)}
function Hd(a,b,c){a.Da="ShadyRoot";a.host=b;a.mode=c&&c.mode;Wc(a.host);b=A(a.host);b.root=a;b.Ta="closed"!==a.mode?a:null;b=A(a);b.firstChild=b.lastChild=b.parentNode=b.nextSibling=b.previousSibling=null;if(L.preferPerformance)for(;b=a.host.__shady_native_firstChild;)a.host.__shady_native_removeChild(b);else nd(a)}function nd(a){a.R||(a.R=!0,Hb(function(){return Id(a)}))}
function Id(a){var b;if(b=a.R){for(var c;a;)a:{a.R&&(c=a),b=a;a=b.host.__shady_getRootNode();if(M(a)&&(b=B(b.host))&&0<b.aa)break a;a=void 0}b=c}(c=b)&&c._renderSelf()}
Gd.prototype._renderSelf=function(){var a=Dd;Dd=!0;this.R=!1;if(this.a){Jd(this);for(var b=0,c;b<this.a.length;b++){c=this.a[b];var d=B(c),e=d.assignedNodes;d.assignedNodes=[];d.T=[];if(d.qa=e)for(d=0;d<e.length;d++){var f=B(e[d]);f.ga=f.assignedSlot;f.assignedSlot===c&&(f.assignedSlot=null)}}for(b=this.host.__shady_firstChild;b;b=b.__shady_nextSibling)Kd(this,b);for(b=0;b<this.a.length;b++){c=this.a[b];e=B(c);if(!e.assignedNodes.length)for(d=c.__shady_firstChild;d;d=d.__shady_nextSibling)Kd(this,
d,c);(d=(d=B(c.__shady_parentNode))&&d.root)&&(tb(d)||d.R)&&d._renderSelf();Ld(this,e.T,e.assignedNodes);if(d=e.qa){for(f=0;f<d.length;f++)B(d[f]).ga=null;e.qa=null;d.length>e.assignedNodes.length&&(e.ia=!0)}e.ia&&(e.ia=!1,Md(this,c))}c=this.a;b=[];for(e=0;e<c.length;e++)d=c[e].__shady_parentNode,(f=B(d))&&f.root||!(0>b.indexOf(d))||b.push(d);for(c=0;c<b.length;c++){f=b[c];e=f===this?this.host:f;d=[];for(f=f.__shady_firstChild;f;f=f.__shady_nextSibling)if("slot"==f.localName)for(var g=B(f).T,h=0;h<
g.length;h++)d.push(g[h]);else d.push(f);f=Db(e);g=Rc(d,d.length,f,f.length);for(var k=h=0,l=void 0;h<g.length&&(l=g[h]);h++){for(var m=0,q=void 0;m<l.X.length&&(q=l.X[m]);m++)q.__shady_native_parentNode===e&&e.__shady_native_removeChild(q),f.splice(l.index+k,1);k-=l.ba}k=0;for(l=void 0;k<g.length&&(l=g[k]);k++)for(h=f[l.index],m=l.index;m<l.index+l.ba;m++)q=d[m],e.__shady_native_insertBefore(q,h),f.splice(m,0,q)}}if(!L.preferPerformance&&!this.pa)for(b=this.host.__shady_firstChild;b;b=b.__shady_nextSibling)c=
B(b),b.__shady_native_parentNode!==this.host||"slot"!==b.localName&&c.assignedSlot||this.host.__shady_native_removeChild(b);this.pa=!0;Dd=a;Ed&&Ed()};function Kd(a,b,c){var d=A(b),e=d.ga;d.ga=null;c||(c=(a=a.b[b.__shady_slot||"__catchall"])&&a[0]);c?(A(c).assignedNodes.push(b),d.assignedSlot=c):d.assignedSlot=void 0;e!==d.assignedSlot&&d.assignedSlot&&(A(d.assignedSlot).ia=!0)}
function Ld(a,b,c){for(var d=0,e=void 0;d<c.length&&(e=c[d]);d++)if("slot"==e.localName){var f=B(e).assignedNodes;f&&f.length&&Ld(a,b,f)}else b.push(c[d])}function Md(a,b){b.__shady_native_dispatchEvent(new Event("slotchange"));b=B(b);b.assignedSlot&&Md(a,b.assignedSlot)}function md(a){a.c=a.c||[];a.a=a.a||[];a.b=a.b||{}}
function Jd(a){if(a.c&&a.c.length){for(var b=a.c,c,d=0;d<b.length;d++){var e=b[d];Wc(e);var f=e.__shady_parentNode;Wc(f);f=B(f);f.aa=(f.aa||0)+1;f=Nd(e);a.b[f]?(c=c||{},c[f]=!0,a.b[f].push(e)):a.b[f]=[e];a.a.push(e)}if(c)for(var g in c)a.b[g]=Od(a.b[g]);a.c=[]}}function Nd(a){var b=a.name||a.getAttribute("name")||"__catchall";return a.Ba=b}
function Od(a){return a.sort(function(b,c){b=Fd(b);for(var d=Fd(c),e=0;e<b.length;e++){c=b[e];var f=d[e];if(c!==f)return b=Eb(c.__shady_parentNode),b.indexOf(c)-b.indexOf(f)}})}
function od(a,b){if(a.a){Jd(a);var c=a.b,d;for(d in c)for(var e=c[d],f=0;f<e.length;f++){var g=e[f];if(Bb(b,g)){e.splice(f,1);var h=a.a.indexOf(g);0<=h&&(a.a.splice(h,1),(h=B(g.__shady_parentNode))&&h.aa&&h.aa--);f--;g=B(g);if(h=g.T)for(var k=0;k<h.length;k++){var l=h[k],m=l.__shady_native_parentNode;m&&m.__shady_native_removeChild(l)}g.T=[];g.assignedNodes=[];h=!0}}return h}}function tb(a){Jd(a);return!(!a.a||!a.a.length)}
(function(a){a.__proto__=DocumentFragment.prototype;Bd(a,"__shady_");Bd(a);Object.defineProperties(a,{nodeType:{value:Node.DOCUMENT_FRAGMENT_NODE,configurable:!0},nodeName:{value:"#document-fragment",configurable:!0},nodeValue:{value:null,configurable:!0}});["localName","namespaceURI","prefix"].forEach(function(b){Object.defineProperty(a,b,{value:void 0,configurable:!0})});["ownerDocument","baseURI","isConnected"].forEach(function(b){Object.defineProperty(a,b,{get:function(){return this.host[b]},
configurable:!0})})})(Gd.prototype);
if(window.customElements&&L.ja&&!L.preferPerformance){var Pd=new Map;Ed=function(){var a=[];Pd.forEach(function(d,e){a.push([e,d])});Pd.clear();for(var b=0;b<a.length;b++){var c=a[b][0];a[b][1]?c.__shadydom_connectedCallback():c.__shadydom_disconnectedCallback()}};Dd&&document.addEventListener("readystatechange",function(){Dd=!1;Ed()},{once:!0});var Qd=function(a,b,c){var d=0,e="__isConnected"+d++;if(b||c)a.prototype.connectedCallback=a.prototype.__shadydom_connectedCallback=function(){Dd?Pd.set(this,
!0):this[e]||(this[e]=!0,b&&b.call(this))},a.prototype.disconnectedCallback=a.prototype.__shadydom_disconnectedCallback=function(){Dd?this.isConnected||Pd.set(this,!1):this[e]&&(this[e]=!1,c&&c.call(this))};return a},Rd=window.customElements.define,define=function(a,b){var c=b.prototype.connectedCallback,d=b.prototype.disconnectedCallback;Rd.call(window.customElements,a,Qd(b,c,d));b.prototype.connectedCallback=c;b.prototype.disconnectedCallback=d};window.customElements.define=define;Object.defineProperty(window.CustomElementRegistry.prototype,
"define",{value:define,configurable:!0})}function ld(a){a=a.__shady_getRootNode();if(M(a))return a};function Sd(a){this.node=a}w=Sd.prototype;w.addEventListener=function(a,b,c){return this.node.__shady_addEventListener(a,b,c)};w.removeEventListener=function(a,b,c){return this.node.__shady_removeEventListener(a,b,c)};w.appendChild=function(a){return this.node.__shady_appendChild(a)};w.insertBefore=function(a,b){return this.node.__shady_insertBefore(a,b)};w.removeChild=function(a){return this.node.__shady_removeChild(a)};w.replaceChild=function(a,b){return this.node.__shady_replaceChild(a,b)};
w.cloneNode=function(a){return this.node.__shady_cloneNode(a)};w.getRootNode=function(a){return this.node.__shady_getRootNode(a)};w.contains=function(a){return this.node.__shady_contains(a)};w.dispatchEvent=function(a){return this.node.__shady_dispatchEvent(a)};w.setAttribute=function(a,b){this.node.__shady_setAttribute(a,b)};w.getAttribute=function(a){return this.node.__shady_native_getAttribute(a)};w.hasAttribute=function(a){return this.node.__shady_native_hasAttribute(a)};w.removeAttribute=function(a){this.node.__shady_removeAttribute(a)};
w.attachShadow=function(a){return this.node.__shady_attachShadow(a)};w.focus=function(){this.node.__shady_native_focus()};w.blur=function(){this.node.__shady_blur()};w.importNode=function(a,b){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_importNode(a,b)};w.getElementById=function(a){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_getElementById(a)};w.querySelector=function(a){return this.node.__shady_querySelector(a)};
w.querySelectorAll=function(a,b){return this.node.__shady_querySelectorAll(a,b)};w.assignedNodes=function(a){if("slot"===this.node.localName)return this.node.__shady_assignedNodes(a)};
ea.Object.defineProperties(Sd.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){if(M(this.node)||this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_activeElement}},_activeElement:{configurable:!0,enumerable:!0,get:function(){return this.activeElement}},host:{configurable:!0,enumerable:!0,get:function(){if(M(this.node))return this.node.host}},parentNode:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_parentNode}},firstChild:{configurable:!0,
enumerable:!0,get:function(){return this.node.__shady_firstChild}},lastChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_lastChild}},nextSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_nextSibling}},previousSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_previousSibling}},childNodes:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_childNodes}},parentElement:{configurable:!0,enumerable:!0,
get:function(){return this.node.__shady_parentElement}},firstElementChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_firstElementChild}},lastElementChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_lastElementChild}},nextElementSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_nextElementSibling}},previousElementSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_previousElementSibling}},
children:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_children}},childElementCount:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_childElementCount}},shadowRoot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_shadowRoot}},assignedSlot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_assignedSlot}},isConnected:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_isConnected}},innerHTML:{configurable:!0,
enumerable:!0,get:function(){return this.node.__shady_innerHTML},set:function(a){this.node.__shady_innerHTML=a}},textContent:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_textContent},set:function(a){this.node.__shady_textContent=a}},slot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_slot},set:function(a){this.node.__shady_slot=a}},className:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_className},set:function(a){return this.node.__shady_className=
a}}});Pc.forEach(function(a){Object.defineProperty(Sd.prototype,a,{get:function(){return this.node["__shady_"+a]},set:function(b){this.node["__shady_"+a]=b},configurable:!0})});var Td=new WeakMap;function Ud(a){if(M(a)||a instanceof Sd)return a;var b=Td.get(a);b||(b=new Sd(a),Td.set(a,b));return b};var Vd=P({dispatchEvent:Fc,addEventListener:Gc,removeEventListener:Ic});var Wd=P({get assignedSlot(){var a=this.__shady_parentNode;(a=a&&a.__shady_shadowRoot)&&Id(a);return(a=B(this))&&a.assignedSlot||null}});var Xd=window.document;function Yd(a,b){if("slot"===b)a=a.__shady_parentNode,sb(a)&&nd(B(a).root);else if("slot"===a.localName&&"name"===b&&(b=ld(a))){if(b.a){Jd(b);var c=a.Ba,d=Nd(a);if(d!==c){c=b.b[c];var e=c.indexOf(a);0<=e&&c.splice(e,1);c=b.b[d]||(b.b[d]=[]);c.push(a);1<c.length&&(b.b[d]=Od(c))}}nd(b)}}
var Zd=P({get previousElementSibling(){var a=B(this);if(a&&void 0!==a.previousSibling){for(a=this.__shady_previousSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_previousSibling;return a}return this.__shady_native_previousElementSibling},get nextElementSibling(){var a=B(this);if(a&&void 0!==a.nextSibling){for(a=this.__shady_nextSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_nextSibling;return a}return this.__shady_native_nextElementSibling},get slot(){return this.getAttribute("slot")},
set slot(a){this.__shady_setAttribute("slot",a)},get shadowRoot(){var a=B(this);return a&&a.Ta||null},get className(){return this.getAttribute("class")||""},set className(a){this.__shady_setAttribute("class",a)},setAttribute:function(a,b){this.ownerDocument!==Xd?this.__shady_native_setAttribute(a,b):Zc(this,a,b)||(this.__shady_native_setAttribute(a,b),Yd(this,a))},removeAttribute:function(a){this.ownerDocument!==Xd?this.__shady_native_removeAttribute(a):Zc(this,a,"")?""===this.getAttribute(a)&&this.__shady_native_removeAttribute(a):
(this.__shady_native_removeAttribute(a),Yd(this,a))},attachShadow:function(a){if(!this)throw Error("Must provide a host.");if(!a)throw Error("Not enough arguments.");if(a.shadyUpgradeFragment&&!L.ya){var b=a.shadyUpgradeFragment;b.__proto__=ShadowRoot.prototype;Hd(b,this,a);Wc(b,b);a=b.__noInsertionPoint?null:b.querySelectorAll("slot");b.__noInsertionPoint=void 0;if(a&&a.length){var c=b;md(c);c.c.push.apply(c.c,da(a));nd(b)}b.host.__shady_native_appendChild(b)}else b=new Gd(Cd,this,a);return b}});var $d=P({blur:function(){var a=B(this);(a=(a=a&&a.root)&&a.activeElement)?a.__shady_blur():this.__shady_native_blur()}});Pc.forEach(function(a){$d[a]={set:function(b){var c=A(this),d=a.substring(2);c.N||(c.N={});c.N[a]&&this.removeEventListener(d,c.N[a]);this.__shady_addEventListener(d,b);c.N[a]=b},get:function(){var b=B(this);return b&&b.N&&b.N[a]},configurable:!0}});var ae=P({assignedNodes:function(a){if("slot"===this.localName){var b=this.__shady_getRootNode();b&&M(b)&&Id(b);return(b=B(this))?(a&&a.flatten?b.T:b.assignedNodes)||[]:[]}},addEventListener:function(a,b,c){if("slot"!==this.localName||"slotchange"===a)Gc.call(this,a,b,c);else{"object"!==typeof c&&(c={capture:!!c});var d=this.__shady_parentNode;if(!d)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");c.O=this;d.__shady_addEventListener(a,b,c)}},removeEventListener:function(a,
b,c){if("slot"!==this.localName||"slotchange"===a)Ic.call(this,a,b,c);else{"object"!==typeof c&&(c={capture:!!c});var d=this.__shady_parentNode;if(!d)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");c.O=this;d.__shady_removeEventListener(a,b,c)}}});var be=window.document,ce=P({importNode:function(a,b){if(a.ownerDocument!==be||"template"===a.localName)return this.__shady_native_importNode(a,b);var c=this.__shady_native_importNode(a,!1);if(b)for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling)b=this.__shady_importNode(a,!0),c.__shady_appendChild(b);return c}});var de=P({dispatchEvent:Fc,addEventListener:Gc.bind(window),removeEventListener:Ic.bind(window)});var ee={};Object.getOwnPropertyDescriptor(HTMLElement.prototype,"parentElement")&&(ee.parentElement=pd.parentElement);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"contains")&&(ee.contains=pd.contains);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"children")&&(ee.children=td.children);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML")&&(ee.innerHTML=zd.innerHTML);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"className")&&(ee.className=Zd.className);
var fe={EventTarget:[Vd],Node:[pd,window.EventTarget?null:Vd],Text:[Wd],Element:[Zd,td,Wd,!L.F||"innerHTML"in Element.prototype?zd:null,window.HTMLSlotElement?null:ae],HTMLElement:[$d,ee],HTMLSlotElement:[ae],DocumentFragment:[vd,wd],Document:[ce,vd,wd,xd],Window:[de]},ge=L.F?null:["innerHTML","textContent"];function he(a){var b=a?null:ge,c={},d;for(d in fe)c.Z=window[d]&&window[d].prototype,fe[d].forEach(function(e){return function(f){return e.Z&&f&&O(e.Z,f,a,b)}}(c)),c={Z:c.Z}};if(L.ja){var ShadyDOM={inUse:L.ja,patch:function(a){oc(a);nc(a);return a},isShadyRoot:M,enqueue:Hb,flush:Ib,flushInitial:function(a){!a.pa&&a.R&&Id(a)},settings:L,filterMutations:Nb,observeChildren:Lb,unobserveChildren:Mb,deferConnectionCallbacks:L.deferConnectionCallbacks,preferPerformance:L.preferPerformance,handlesDynamicScoping:!0,wrap:L.M?Ud:function(a){return a},Wrapper:Sd,composedPath:xc,noPatch:L.M,nativeMethods:Yb,nativeTree:Zb};window.ShadyDOM=ShadyDOM;hc();he("__shady_");Object.defineProperty(document,
"_activeElement",xd.activeElement);O(Window.prototype,de,"__shady_");L.M||(he(),Oc());Jc();window.Event=Lc;window.CustomEvent=Mc;window.MouseEvent=Nc;window.ShadowRoot=Gd};var ie=window.Document.prototype.createElement,je=window.Document.prototype.createElementNS,ke=window.Document.prototype.importNode,le=window.Document.prototype.prepend,me=window.Document.prototype.append,ne=window.DocumentFragment.prototype.prepend,oe=window.DocumentFragment.prototype.append,pe=window.Node.prototype.cloneNode,qe=window.Node.prototype.appendChild,re=window.Node.prototype.insertBefore,se=window.Node.prototype.removeChild,te=window.Node.prototype.replaceChild,ue=Object.getOwnPropertyDescriptor(window.Node.prototype,
"textContent"),ve=window.Element.prototype.attachShadow,we=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),xe=window.Element.prototype.getAttribute,ye=window.Element.prototype.setAttribute,ze=window.Element.prototype.removeAttribute,Ae=window.Element.prototype.getAttributeNS,Be=window.Element.prototype.setAttributeNS,Ce=window.Element.prototype.removeAttributeNS,De=window.Element.prototype.insertAdjacentElement,Ee=window.Element.prototype.insertAdjacentHTML,Fe=window.Element.prototype.prepend,
Ge=window.Element.prototype.append,He=window.Element.prototype.before,Ie=window.Element.prototype.after,Je=window.Element.prototype.replaceWith,Ke=window.Element.prototype.remove,Le=window.HTMLElement,Me=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),Ne=window.HTMLElement.prototype.insertAdjacentElement,Oe=window.HTMLElement.prototype.insertAdjacentHTML;var Pe=new Set;"annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ").forEach(function(a){return Pe.add(a)});function Qe(a){var b=Pe.has(a);a=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(a);return!b&&a}var Re=document.contains?document.contains.bind(document):document.documentElement.contains.bind(document.documentElement);
function S(a){var b=a.isConnected;if(void 0!==b)return b;if(Re(a))return!0;for(;a&&!(a.__CE_isImportDocument||a instanceof Document);)a=a.parentNode||(window.ShadowRoot&&a instanceof ShadowRoot?a.host:void 0);return!(!a||!(a.__CE_isImportDocument||a instanceof Document))}function Se(a){var b=a.children;if(b)return Array.prototype.slice.call(b);b=[];for(a=a.firstChild;a;a=a.nextSibling)a.nodeType===Node.ELEMENT_NODE&&b.push(a);return b}
function Te(a,b){for(;b&&b!==a&&!b.nextSibling;)b=b.parentNode;return b&&b!==a?b.nextSibling:null}
function Ue(a,b,c){for(var d=a;d;){if(d.nodeType===Node.ELEMENT_NODE){var e=d;b(e);var f=e.localName;if("link"===f&&"import"===e.getAttribute("rel")){d=e.import;void 0===c&&(c=new Set);if(d instanceof Node&&!c.has(d))for(c.add(d),d=d.firstChild;d;d=d.nextSibling)Ue(d,b,c);d=Te(a,e);continue}else if("template"===f){d=Te(a,e);continue}if(e=e.__CE_shadowRoot)for(e=e.firstChild;e;e=e.nextSibling)Ue(e,b,c)}d=d.firstChild?d.firstChild:Te(a,d)}}function T(a,b,c){a[b]=c};function Ve(a){var b=document;this.b=a;this.a=b;this.P=void 0;We(this.b,this.a);"loading"===this.a.readyState&&(this.P=new MutationObserver(this.c.bind(this)),this.P.observe(this.a,{childList:!0,subtree:!0}))}function Xe(a){a.P&&a.P.disconnect()}Ve.prototype.c=function(a){var b=this.a.readyState;"interactive"!==b&&"complete"!==b||Xe(this);for(b=0;b<a.length;b++)for(var c=a[b].addedNodes,d=0;d<c.length;d++)We(this.b,c[d])};function Ye(){var a=this;this.a=this.w=void 0;this.b=new Promise(function(b){a.a=b;a.w&&b(a.w)})}Ye.prototype.resolve=function(a){if(this.w)throw Error("Already resolved.");this.w=a;this.a&&this.a(a)};function U(a){this.f=new Map;this.u=new Map;this.sa=new Map;this.U=!1;this.b=a;this.ka=new Map;this.c=function(b){return b()};this.a=!1;this.D=[];this.ua=a.f?new Ve(a):void 0}w=U.prototype;w.Ra=function(a,b){var c=this;if(!(b instanceof Function))throw new TypeError("Custom element constructor getters must be functions.");Ze(this,a);this.f.set(a,b);this.D.push(a);this.a||(this.a=!0,this.c(function(){return $e(c)}))};
w.define=function(a,b){var c=this;if(!(b instanceof Function))throw new TypeError("Custom element constructors must be functions.");Ze(this,a);af(this,a,b);this.D.push(a);this.a||(this.a=!0,this.c(function(){return $e(c)}))};function Ze(a,b){if(!Qe(b))throw new SyntaxError("The element name '"+b+"' is not valid.");if(bf(a,b))throw Error("A custom element with name '"+b+"' has already been defined.");if(a.U)throw Error("A custom element is already being defined.");}
function af(a,b,c){a.U=!0;var d;try{var e=function(m){var q=f[m];if(void 0!==q&&!(q instanceof Function))throw Error("The '"+m+"' callback must be a function.");return q},f=c.prototype;if(!(f instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var g=e("connectedCallback");var h=e("disconnectedCallback");var k=e("adoptedCallback");var l=(d=e("attributeChangedCallback"))&&c.observedAttributes||[]}catch(m){throw m;}finally{a.U=!1}c={localName:b,constructorFunction:c,
connectedCallback:g,disconnectedCallback:h,adoptedCallback:k,attributeChangedCallback:d,observedAttributes:l,constructionStack:[]};a.u.set(b,c);a.sa.set(c.constructorFunction,c);return c}w.upgrade=function(a){We(this.b,a)};
function $e(a){if(!1!==a.a){a.a=!1;for(var b=[],c=a.D,d=new Map,e=0;e<c.length;e++)d.set(c[e],[]);We(a.b,document,{upgrade:function(k){if(void 0===k.__CE_state){var l=k.localName,m=d.get(l);m?m.push(k):a.u.has(l)&&b.push(k)}}});for(e=0;e<b.length;e++)cf(a.b,b[e]);for(e=0;e<c.length;e++){for(var f=c[e],g=d.get(f),h=0;h<g.length;h++)cf(a.b,g[h]);(f=a.ka.get(f))&&f.resolve(void 0)}c.length=0}}w.get=function(a){if(a=bf(this,a))return a.constructorFunction};
w.whenDefined=function(a){if(!Qe(a))return Promise.reject(new SyntaxError("'"+a+"' is not a valid custom element name."));var b=this.ka.get(a);if(b)return b.b;b=new Ye;this.ka.set(a,b);var c=this.u.has(a)||this.f.has(a);a=-1===this.D.indexOf(a);c&&a&&b.resolve(void 0);return b.b};w.polyfillWrapFlushCallback=function(a){this.ua&&Xe(this.ua);var b=this.c;this.c=function(c){return a(function(){return b(c)})}};
function bf(a,b){var c=a.u.get(b);if(c)return c;if(c=a.f.get(b)){a.f.delete(b);try{return af(a,b,c())}catch(d){df(d)}}}window.CustomElementRegistry=U;U.prototype.define=U.prototype.define;U.prototype.upgrade=U.prototype.upgrade;U.prototype.get=U.prototype.get;U.prototype.whenDefined=U.prototype.whenDefined;U.prototype.polyfillDefineLazy=U.prototype.Ra;U.prototype.polyfillWrapFlushCallback=U.prototype.polyfillWrapFlushCallback;function ef(){var a=ff&&ff.noDocumentConstructionObserver,b=ff&&ff.shadyDomFastWalk;this.b=[];this.c=[];this.a=!1;this.shadyDomFastWalk=b;this.f=!a}function gf(a,b,c,d){var e=window.ShadyDOM;if(a.shadyDomFastWalk&&e&&e.inUse){if(b.nodeType===Node.ELEMENT_NODE&&c(b),b.querySelectorAll)for(a=e.nativeMethods.querySelectorAll.call(b,"*"),b=0;b<a.length;b++)c(a[b])}else Ue(b,c,d)}function hf(a,b){a.a=!0;a.b.push(b)}function jf(a,b){a.a=!0;a.c.push(b)}
function kf(a,b){a.a&&gf(a,b,function(c){return lf(a,c)})}function lf(a,b){if(a.a&&!b.__CE_patched){b.__CE_patched=!0;for(var c=0;c<a.b.length;c++)a.b[c](b);for(c=0;c<a.c.length;c++)a.c[c](b)}}function mf(a,b){var c=[];gf(a,b,function(e){return c.push(e)});for(b=0;b<c.length;b++){var d=c[b];1===d.__CE_state?a.connectedCallback(d):cf(a,d)}}function nf(a,b){var c=[];gf(a,b,function(e){return c.push(e)});for(b=0;b<c.length;b++){var d=c[b];1===d.__CE_state&&a.disconnectedCallback(d)}}
function We(a,b,c){c=void 0===c?{}:c;var d=c.$a,e=c.upgrade||function(g){return cf(a,g)},f=[];gf(a,b,function(g){a.a&&lf(a,g);if("link"===g.localName&&"import"===g.getAttribute("rel")){var h=g.import;h instanceof Node&&(h.__CE_isImportDocument=!0,h.__CE_registry=document.__CE_registry);h&&"complete"===h.readyState?h.__CE_documentLoadHandled=!0:g.addEventListener("load",function(){var k=g.import;if(!k.__CE_documentLoadHandled){k.__CE_documentLoadHandled=!0;var l=new Set;d&&(d.forEach(function(m){return l.add(m)}),
l.delete(k));We(a,k,{$a:l,upgrade:e})}})}else f.push(g)},d);for(b=0;b<f.length;b++)e(f[b])}
function cf(a,b){try{var c=b.ownerDocument,d=c.__CE_registry;var e=d&&(c.defaultView||c.__CE_isImportDocument)?bf(d,b.localName):void 0;if(e&&void 0===b.__CE_state){e.constructionStack.push(b);try{try{if(new e.constructorFunction!==b)throw Error("The custom element constructor did not produce the element being upgraded.");}finally{e.constructionStack.pop()}}catch(k){throw b.__CE_state=2,k;}b.__CE_state=1;b.__CE_definition=e;if(e.attributeChangedCallback&&b.hasAttributes()){var f=e.observedAttributes;
for(e=0;e<f.length;e++){var g=f[e],h=b.getAttribute(g);null!==h&&a.attributeChangedCallback(b,g,null,h,null)}}S(b)&&a.connectedCallback(b)}}catch(k){df(k)}}ef.prototype.connectedCallback=function(a){var b=a.__CE_definition;if(b.connectedCallback)try{b.connectedCallback.call(a)}catch(c){df(c)}};ef.prototype.disconnectedCallback=function(a){var b=a.__CE_definition;if(b.disconnectedCallback)try{b.disconnectedCallback.call(a)}catch(c){df(c)}};
ef.prototype.attributeChangedCallback=function(a,b,c,d,e){var f=a.__CE_definition;if(f.attributeChangedCallback&&-1<f.observedAttributes.indexOf(b))try{f.attributeChangedCallback.call(a,b,c,d,e)}catch(g){df(g)}};
function of(a,b,c,d){var e=b.__CE_registry;if(e&&(null===d||"http://www.w3.org/1999/xhtml"===d)&&(e=bf(e,c)))try{var f=new e.constructorFunction;if(void 0===f.__CE_state||void 0===f.__CE_definition)throw Error("Failed to construct '"+c+"': The returned value was not constructed with the HTMLElement constructor.");if("http://www.w3.org/1999/xhtml"!==f.namespaceURI)throw Error("Failed to construct '"+c+"': The constructed element's namespace must be the HTML namespace.");if(f.hasAttributes())throw Error("Failed to construct '"+
c+"': The constructed element must not have any attributes.");if(null!==f.firstChild)throw Error("Failed to construct '"+c+"': The constructed element must not have any children.");if(null!==f.parentNode)throw Error("Failed to construct '"+c+"': The constructed element must not have a parent node.");if(f.ownerDocument!==b)throw Error("Failed to construct '"+c+"': The constructed element's owner document is incorrect.");if(f.localName!==c)throw Error("Failed to construct '"+c+"': The constructed element's local name is incorrect.");
return f}catch(g){return df(g),b=null===d?ie.call(b,c):je.call(b,d,c),Object.setPrototypeOf(b,HTMLUnknownElement.prototype),b.__CE_state=2,b.__CE_definition=void 0,lf(a,b),b}b=null===d?ie.call(b,c):je.call(b,d,c);lf(a,b);return b}
function df(a){var b=a.message,c=a.sourceURL||a.fileName||"",d=a.line||a.lineNumber||0,e=a.column||a.columnNumber||0,f=void 0;void 0===ErrorEvent.prototype.initErrorEvent?f=new ErrorEvent("error",{cancelable:!0,message:b,filename:c,lineno:d,colno:e,error:a}):(f=document.createEvent("ErrorEvent"),f.initErrorEvent("error",!1,!0,b,c,d),f.preventDefault=function(){Object.defineProperty(this,"defaultPrevented",{configurable:!0,get:function(){return!0}})});void 0===f.error&&Object.defineProperty(f,"error",
{configurable:!0,enumerable:!0,get:function(){return a}});window.dispatchEvent(f);f.defaultPrevented||console.error(a)};var pf=new function(){};function qf(a){window.HTMLElement=function(){function b(){var c=this.constructor;var d=document.__CE_registry.sa.get(c);if(!d)throw Error("Failed to construct a custom element: The constructor was not registered with `customElements`.");var e=d.constructionStack;if(0===e.length)return e=ie.call(document,d.localName),Object.setPrototypeOf(e,c.prototype),e.__CE_state=1,e.__CE_definition=d,lf(a,e),e;var f=e.length-1,g=e[f];if(g===pf)throw Error("Failed to construct '"+d.localName+"': This element was already constructed.");
e[f]=pf;Object.setPrototypeOf(g,c.prototype);lf(a,g);return g}b.prototype=Le.prototype;Object.defineProperty(b.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:b});return b}()};function rf(a,b,c){function d(e){return function(f){for(var g=[],h=0;h<arguments.length;++h)g[h]=arguments[h];h=[];for(var k=[],l=0;l<g.length;l++){var m=g[l];m instanceof Element&&S(m)&&k.push(m);if(m instanceof DocumentFragment)for(m=m.firstChild;m;m=m.nextSibling)h.push(m);else h.push(m)}e.apply(this,g);for(g=0;g<k.length;g++)nf(a,k[g]);if(S(this))for(g=0;g<h.length;g++)k=h[g],k instanceof Element&&mf(a,k)}}void 0!==c.prepend&&T(b,"prepend",d(c.prepend));void 0!==c.append&&T(b,"append",d(c.append))}
;function sf(a){T(Document.prototype,"createElement",function(b){return of(a,this,b,null)});T(Document.prototype,"importNode",function(b,c){b=ke.call(this,b,!!c);this.__CE_registry?We(a,b):kf(a,b);return b});T(Document.prototype,"createElementNS",function(b,c){return of(a,this,c,b)});rf(a,Document.prototype,{prepend:le,append:me})};function tf(a){function b(c,d){Object.defineProperty(c,"textContent",{enumerable:d.enumerable,configurable:!0,get:d.get,set:function(e){if(this.nodeType===Node.TEXT_NODE)d.set.call(this,e);else{var f=void 0;if(this.firstChild){var g=this.childNodes,h=g.length;if(0<h&&S(this)){f=Array(h);for(var k=0;k<h;k++)f[k]=g[k]}}d.set.call(this,e);if(f)for(e=0;e<f.length;e++)nf(a,f[e])}}})}T(Node.prototype,"insertBefore",function(c,d){if(c instanceof DocumentFragment){var e=Se(c);c=re.call(this,c,d);if(S(this))for(d=
0;d<e.length;d++)mf(a,e[d]);return c}e=c instanceof Element&&S(c);d=re.call(this,c,d);e&&nf(a,c);S(this)&&mf(a,c);return d});T(Node.prototype,"appendChild",function(c){if(c instanceof DocumentFragment){var d=Se(c);c=qe.call(this,c);if(S(this))for(var e=0;e<d.length;e++)mf(a,d[e]);return c}d=c instanceof Element&&S(c);e=qe.call(this,c);d&&nf(a,c);S(this)&&mf(a,c);return e});T(Node.prototype,"cloneNode",function(c){c=pe.call(this,!!c);this.ownerDocument.__CE_registry?We(a,c):kf(a,c);return c});T(Node.prototype,
"removeChild",function(c){var d=c instanceof Element&&S(c),e=se.call(this,c);d&&nf(a,c);return e});T(Node.prototype,"replaceChild",function(c,d){if(c instanceof DocumentFragment){var e=Se(c);c=te.call(this,c,d);if(S(this))for(nf(a,d),d=0;d<e.length;d++)mf(a,e[d]);return c}e=c instanceof Element&&S(c);var f=te.call(this,c,d),g=S(this);g&&nf(a,d);e&&nf(a,c);g&&mf(a,c);return f});ue&&ue.get?b(Node.prototype,ue):hf(a,function(c){b(c,{enumerable:!0,configurable:!0,get:function(){for(var d=[],e=this.firstChild;e;e=
e.nextSibling)e.nodeType!==Node.COMMENT_NODE&&d.push(e.textContent);return d.join("")},set:function(d){for(;this.firstChild;)se.call(this,this.firstChild);null!=d&&""!==d&&qe.call(this,document.createTextNode(d))}})})};function uf(a){function b(d){return function(e){for(var f=[],g=0;g<arguments.length;++g)f[g]=arguments[g];g=[];for(var h=[],k=0;k<f.length;k++){var l=f[k];l instanceof Element&&S(l)&&h.push(l);if(l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)g.push(l);else g.push(l)}d.apply(this,f);for(f=0;f<h.length;f++)nf(a,h[f]);if(S(this))for(f=0;f<g.length;f++)h=g[f],h instanceof Element&&mf(a,h)}}var c=Element.prototype;void 0!==He&&T(c,"before",b(He));void 0!==Ie&&T(c,"after",b(Ie));void 0!==
Je&&T(c,"replaceWith",function(d){for(var e=[],f=0;f<arguments.length;++f)e[f]=arguments[f];f=[];for(var g=[],h=0;h<e.length;h++){var k=e[h];k instanceof Element&&S(k)&&g.push(k);if(k instanceof DocumentFragment)for(k=k.firstChild;k;k=k.nextSibling)f.push(k);else f.push(k)}h=S(this);Je.apply(this,e);for(e=0;e<g.length;e++)nf(a,g[e]);if(h)for(nf(a,this),e=0;e<f.length;e++)g=f[e],g instanceof Element&&mf(a,g)});void 0!==Ke&&T(c,"remove",function(){var d=S(this);Ke.call(this);d&&nf(a,this)})};function vf(a){function b(e,f){Object.defineProperty(e,"innerHTML",{enumerable:f.enumerable,configurable:!0,get:f.get,set:function(g){var h=this,k=void 0;S(this)&&(k=[],gf(a,this,function(q){q!==h&&k.push(q)}));f.set.call(this,g);if(k)for(var l=0;l<k.length;l++){var m=k[l];1===m.__CE_state&&a.disconnectedCallback(m)}this.ownerDocument.__CE_registry?We(a,this):kf(a,this);return g}})}function c(e,f){T(e,"insertAdjacentElement",function(g,h){var k=S(h);g=f.call(this,g,h);k&&nf(a,h);S(g)&&mf(a,h);return g})}
function d(e,f){function g(h,k){for(var l=[];h!==k;h=h.nextSibling)l.push(h);for(k=0;k<l.length;k++)We(a,l[k])}T(e,"insertAdjacentHTML",function(h,k){h=h.toLowerCase();if("beforebegin"===h){var l=this.previousSibling;f.call(this,h,k);g(l||this.parentNode.firstChild,this)}else if("afterbegin"===h)l=this.firstChild,f.call(this,h,k),g(this.firstChild,l);else if("beforeend"===h)l=this.lastChild,f.call(this,h,k),g(l||this.firstChild,null);else if("afterend"===h)l=this.nextSibling,f.call(this,h,k),g(this.nextSibling,
l);else throw new SyntaxError("The value provided ("+String(h)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");})}ve&&T(Element.prototype,"attachShadow",function(e){e=ve.call(this,e);if(a.a&&!e.__CE_patched){e.__CE_patched=!0;for(var f=0;f<a.b.length;f++)a.b[f](e)}return this.__CE_shadowRoot=e});we&&we.get?b(Element.prototype,we):Me&&Me.get?b(HTMLElement.prototype,Me):jf(a,function(e){b(e,{enumerable:!0,configurable:!0,get:function(){return pe.call(this,!0).innerHTML},
set:function(f){var g="template"===this.localName,h=g?this.content:this,k=je.call(document,this.namespaceURI,this.localName);for(k.innerHTML=f;0<h.childNodes.length;)se.call(h,h.childNodes[0]);for(f=g?k.content:k;0<f.childNodes.length;)qe.call(h,f.childNodes[0])}})});T(Element.prototype,"setAttribute",function(e,f){if(1!==this.__CE_state)return ye.call(this,e,f);var g=xe.call(this,e);ye.call(this,e,f);f=xe.call(this,e);a.attributeChangedCallback(this,e,g,f,null)});T(Element.prototype,"setAttributeNS",
function(e,f,g){if(1!==this.__CE_state)return Be.call(this,e,f,g);var h=Ae.call(this,e,f);Be.call(this,e,f,g);g=Ae.call(this,e,f);a.attributeChangedCallback(this,f,h,g,e)});T(Element.prototype,"removeAttribute",function(e){if(1!==this.__CE_state)return ze.call(this,e);var f=xe.call(this,e);ze.call(this,e);null!==f&&a.attributeChangedCallback(this,e,f,null,null)});T(Element.prototype,"removeAttributeNS",function(e,f){if(1!==this.__CE_state)return Ce.call(this,e,f);var g=Ae.call(this,e,f);Ce.call(this,
e,f);var h=Ae.call(this,e,f);g!==h&&a.attributeChangedCallback(this,f,g,h,e)});Ne?c(HTMLElement.prototype,Ne):De?c(Element.prototype,De):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");Oe?d(HTMLElement.prototype,Oe):Ee?d(Element.prototype,Ee):console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched.");rf(a,Element.prototype,{prepend:Fe,append:Ge});uf(a)};var ff=window.customElements;function wf(){var a=new ef;qf(a);sf(a);rf(a,DocumentFragment.prototype,{prepend:ne,append:oe});tf(a);vf(a);a=new U(a);document.__CE_registry=a;Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:a})}ff&&!ff.forcePolyfill&&"function"==typeof ff.define&&"function"==typeof ff.get||wf();window.__CE_installPolyfill=wf;function xf(){this.end=this.start=0;this.rules=this.parent=this.previous=null;this.cssText=this.parsedCssText="";this.atRule=!1;this.type=0;this.parsedSelector=this.selector=this.keyframesName=""}
function yf(a){var b=a=a.replace(zf,"").replace(Af,""),c=new xf;c.start=0;c.end=b.length;for(var d=c,e=0,f=b.length;e<f;e++)if("{"===b[e]){d.rules||(d.rules=[]);var g=d,h=g.rules[g.rules.length-1]||null;d=new xf;d.start=e+1;d.parent=g;d.previous=h;g.rules.push(d)}else"}"===b[e]&&(d.end=e+1,d=d.parent||c);return Bf(c,a)}
function Bf(a,b){var c=b.substring(a.start,a.end-1);a.parsedCssText=a.cssText=c.trim();a.parent&&(c=b.substring(a.previous?a.previous.end:a.parent.start,a.start-1),c=Cf(c),c=c.replace(Df," "),c=c.substring(c.lastIndexOf(";")+1),c=a.parsedSelector=a.selector=c.trim(),a.atRule=0===c.indexOf("@"),a.atRule?0===c.indexOf("@media")?a.type=Ef:c.match(Ff)&&(a.type=Gf,a.keyframesName=a.selector.split(Df).pop()):a.type=0===c.indexOf("--")?Hf:If);if(c=a.rules)for(var d=0,e=c.length,f=void 0;d<e&&(f=c[d]);d++)Bf(f,
b);return a}function Cf(a){return a.replace(/\\([0-9a-f]{1,6})\s/gi,function(b,c){b=c;for(c=6-b.length;c--;)b="0"+b;return"\\"+b})}
function Jf(a,b,c){c=void 0===c?"":c;var d="";if(a.cssText||a.rules){var e=a.rules,f;if(f=e)f=e[0],f=!(f&&f.selector&&0===f.selector.indexOf("--"));if(f){f=0;for(var g=e.length,h=void 0;f<g&&(h=e[f]);f++)d=Jf(h,b,d)}else b?b=a.cssText:(b=a.cssText,b=b.replace(Kf,"").replace(Lf,""),b=b.replace(Mf,"").replace(Nf,"")),(d=b.trim())&&(d=" "+d+"\n")}d&&(a.selector&&(c+=a.selector+" {\n"),c+=d,a.selector&&(c+="}\n\n"));return c}
var If=1,Gf=7,Ef=4,Hf=1E3,zf=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,Af=/@import[^;]*;/gim,Kf=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,Lf=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,Mf=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,Nf=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,Ff=/^@[^\s]*keyframes/,Df=/\s+/g;var V=!(window.ShadyDOM&&window.ShadyDOM.inUse),Of;function Pf(a){Of=a&&a.shimcssproperties?!1:V||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))}var Qf;window.ShadyCSS&&void 0!==window.ShadyCSS.cssBuild&&(Qf=window.ShadyCSS.cssBuild);var Rf=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);
window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?Of=window.ShadyCSS.nativeCss:window.ShadyCSS?(Pf(window.ShadyCSS),window.ShadyCSS=void 0):Pf(window.WebComponents&&window.WebComponents.flags);var W=Of;var Sf=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Tf=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Vf=/(--[\w-]+)\s*([:,;)]|$)/gi,Wf=/(animation\s*:)|(animation-name\s*:)/,Xf=/@media\s(.*)/,Yf=/\{[^}]*\}/g;var Zf=new Set;function $f(a,b){if(!a)return"";"string"===typeof a&&(a=yf(a));b&&ag(a,b);return Jf(a,W)}function bg(a){!a.__cssRules&&a.textContent&&(a.__cssRules=yf(a.textContent));return a.__cssRules||null}function cg(a){return!!a.parent&&a.parent.type===Gf}function ag(a,b,c,d){if(a){var e=!1,f=a.type;if(d&&f===Ef){var g=a.selector.match(Xf);g&&(window.matchMedia(g[1]).matches||(e=!0))}f===If?b(a):c&&f===Gf?c(a):f===Hf&&(e=!0);if((a=a.rules)&&!e)for(e=0,f=a.length,g=void 0;e<f&&(g=a[e]);e++)ag(g,b,c,d)}}
function dg(a,b,c,d){var e=document.createElement("style");b&&e.setAttribute("scope",b);e.textContent=a;eg(e,c,d);return e}var fg=null;function gg(a){a=document.createComment(" Shady DOM styles for "+a+" ");var b=document.head;b.insertBefore(a,(fg?fg.nextSibling:null)||b.firstChild);return fg=a}function eg(a,b,c){b=b||document.head;b.insertBefore(a,c&&c.nextSibling||b.firstChild);fg?a.compareDocumentPosition(fg)===Node.DOCUMENT_POSITION_PRECEDING&&(fg=a):fg=a}
function hg(a,b){for(var c=0,d=a.length;b<d;b++)if("("===a[b])c++;else if(")"===a[b]&&0===--c)return b;return-1}function ig(a,b){var c=a.indexOf("var(");if(-1===c)return b(a,"","","");var d=hg(a,c+3),e=a.substring(c+4,d);c=a.substring(0,c);a=ig(a.substring(d+1),b);d=e.indexOf(",");return-1===d?b(c,e.trim(),"",a):b(c,e.substring(0,d).trim(),e.substring(d+1).trim(),a)}function jg(a,b){V?a.setAttribute("class",b):window.ShadyDOM.nativeMethods.setAttribute.call(a,"class",b)}
var kg=window.ShadyDOM&&window.ShadyDOM.wrap||function(a){return a};function lg(a){var b=a.localName,c="";b?-1<b.indexOf("-")||(c=b,b=a.getAttribute&&a.getAttribute("is")||""):(b=a.is,c=a.extends);return{is:b,Y:c}}function mg(a){for(var b=[],c="",d=0;0<=d&&d<a.length;d++)if("("===a[d]){var e=hg(a,d);c+=a.slice(d,e+1);d=e}else","===a[d]?(b.push(c),c=""):c+=a[d];c&&b.push(c);return b}
function ng(a){if(void 0!==Qf)return Qf;if(void 0===a.__cssBuild){var b=a.getAttribute("css-build");if(b)a.__cssBuild=b;else{a:{b="template"===a.localName?a.content.firstChild:a.firstChild;if(b instanceof Comment&&(b=b.textContent.trim().split(":"),"css-build"===b[0])){b=b[1];break a}b=""}if(""!==b){var c="template"===a.localName?a.content.firstChild:a.firstChild;c.parentNode.removeChild(c)}a.__cssBuild=b}}return a.__cssBuild||""}
function og(a){a=void 0===a?"":a;return""!==a&&W?V?"shadow"===a:"shady"===a:!1};function pg(){}function qg(a,b){rg(sg,a,function(c){tg(c,b||"")})}function rg(a,b,c){b.nodeType===Node.ELEMENT_NODE&&c(b);var d;"template"===b.localName?d=(b.content||b._content||b).childNodes:d=b.children||b.childNodes;if(d)for(b=0;b<d.length;b++)rg(a,d[b],c)}
function tg(a,b,c){if(b)if(a.classList)c?(a.classList.remove("style-scope"),a.classList.remove(b)):(a.classList.add("style-scope"),a.classList.add(b));else if(a.getAttribute){var d=a.getAttribute("class");c?d&&(b=d.replace("style-scope","").replace(b,""),jg(a,b)):jg(a,(d?d+" ":"")+"style-scope "+b)}}function ug(a,b,c){rg(sg,a,function(d){tg(d,b,!0);tg(d,c)})}function vg(a,b){rg(sg,a,function(c){tg(c,b||"",!0)})}
function wg(a,b,c,d,e){var f=sg;e=void 0===e?"":e;""===e&&(V||"shady"===(void 0===d?"":d)?e=$f(b,c):(a=lg(a),e=xg(f,b,a.is,a.Y,c)+"\n\n"));return e.trim()}function xg(a,b,c,d,e){var f=yg(c,d);c=c?"."+c:"";return $f(b,function(g){g.c||(g.selector=g.B=zg(a,g,a.b,c,f),g.c=!0);e&&e(g,c,f)})}function yg(a,b){return b?"[is="+a+"]":a}
function zg(a,b,c,d,e){var f=mg(b.selector);if(!cg(b)){b=0;for(var g=f.length,h=void 0;b<g&&(h=f[b]);b++)f[b]=c.call(a,h,d,e)}return f.filter(function(k){return!!k}).join(",")}function Ag(a){return a.replace(Bg,function(b,c,d){-1<d.indexOf("+")?d=d.replace(/\+/g,"___"):-1<d.indexOf("___")&&(d=d.replace(/___/g,"+"));return":"+c+"("+d+")"})}
function Cg(a){for(var b=[],c;c=a.match(Dg);){var d=c.index,e=hg(a,d);if(-1===e)throw Error(c.input+" selector missing ')'");c=a.slice(d,e+1);a=a.replace(c,"\ue000");b.push(c)}return{na:a,matches:b}}function Eg(a,b){var c=a.split("\ue000");return b.reduce(function(d,e,f){return d+e+c[f+1]},c[0])}
pg.prototype.b=function(a,b,c){var d=!1;a=a.trim();var e=Bg.test(a);e&&(a=a.replace(Bg,function(h,k,l){return":"+k+"("+l.replace(/\s/g,"")+")"}),a=Ag(a));var f=Dg.test(a);if(f){var g=Cg(a);a=g.na;g=g.matches}a=a.replace(Fg,":host $1");a=a.replace(Gg,function(h,k,l){d||(h=Hg(l,k,b,c),d=d||h.stop,k=h.Ha,l=h.value);return k+l});f&&(a=Eg(a,g));e&&(a=Ag(a));return a=a.replace(Ig,function(h,k,l,m){return'[dir="'+l+'"] '+k+m+", "+k+'[dir="'+l+'"]'+m})};
function Hg(a,b,c,d){var e=a.indexOf("::slotted");0<=a.indexOf(":host")?a=Jg(a,d):0!==e&&(a=c?Kg(a,c):a);c=!1;0<=e&&(b="",c=!0);if(c){var f=!0;c&&(a=a.replace(Lg,function(g,h){return" > "+h}))}return{value:a,Ha:b,stop:f}}function Kg(a,b){a=a.split(/(\[.+?\])/);for(var c=[],d=0;d<a.length;d++)if(1===d%2)c.push(a[d]);else{var e=a[d];if(""!==e||d!==a.length-1)e=e.split(":"),e[0]+=b,c.push(e.join(":"))}return c.join("")}
function Jg(a,b){var c=a.match(Mg);return(c=c&&c[2].trim()||"")?c[0].match(Ng)?a.replace(Mg,function(d,e,f){return b+f}):c.split(Ng)[0]===b?c:"should_not_match":a.replace(":host",b)}function Og(a){":root"===a.selector&&(a.selector="html")}pg.prototype.c=function(a){return a.match(":host")?"":a.match("::slotted")?this.b(a,":not(.style-scope)"):Kg(a.trim(),":not(.style-scope)")};ea.Object.defineProperties(pg.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});
var Bg=/:(nth[-\w]+)\(([^)]+)\)/,Gg=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,Ng=/[[.:#*]/,Fg=/^(::slotted)/,Mg=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Lg=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Ig=/(.*):dir\((?:(ltr|rtl))\)(.*)/,Dg=/:(?:matches|any|-(?:webkit|moz)-any)/,sg=new pg;function Pg(a,b,c,d,e){this.I=a||null;this.b=b||null;this.la=c||[];this.G=null;this.cssBuild=e||"";this.Y=d||"";this.a=this.H=this.L=null}function Qg(a){return a?a.__styleInfo:null}function Rg(a,b){return a.__styleInfo=b}Pg.prototype.c=function(){return this.I};Pg.prototype._getStyleRules=Pg.prototype.c;function Sg(a){var b=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return b&&b.call(this,a)}var Tg=/:host\s*>\s*/,Ug=navigator.userAgent.match("Trident");function Vg(){}function Wg(a){var b={},c=[],d=0;ag(a,function(f){Xg(f);f.index=d++;f=f.A.cssText;for(var g;g=Vf.exec(f);){var h=g[1];":"!==g[2]&&(b[h]=!0)}},function(f){c.push(f)});a.b=c;a=[];for(var e in b)a.push(e);return a}
function Xg(a){if(!a.A){var b={},c={};Yg(a,c)&&(b.K=c,a.rules=null);b.cssText=a.parsedCssText.replace(Yf,"").replace(Sf,"");a.A=b}}function Yg(a,b){var c=a.A;if(c){if(c.K)return Object.assign(b,c.K),!0}else{c=a.parsedCssText;for(var d;a=Sf.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}}
function Zg(a,b,c){b&&(b=0<=b.indexOf(";")?$g(a,b,c):ig(b,function(d,e,f,g){if(!e)return d+g;(e=Zg(a,c[e],c))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=Zg(a,c[f]||f,c)||f;return d+(e||"")+g}));return b&&b.trim()||""}
function $g(a,b,c){b=b.split(";");for(var d=0,e,f;d<b.length;d++)if(e=b[d]){Tf.lastIndex=0;if(f=Tf.exec(e))e=Zg(a,c[f[1]],c);else if(f=e.indexOf(":"),-1!==f){var g=e.substring(f);g=g.trim();g=Zg(a,g,c)||g;e=e.substring(0,f)+g}b[d]=e&&e.lastIndexOf(";")===e.length-1?e.slice(0,-1):e||""}return b.join(";")}
function ah(a,b){var c={},d=[];ag(a,function(e){e.A||Xg(e);var f=e.B||e.parsedSelector;b&&e.A.K&&f&&Sg.call(b,f)&&(Yg(e,c),e=e.index,f=parseInt(e/32,10),d[f]=(d[f]||0)|1<<e%32)},null,!0);return{K:c,key:d}}
function bh(a,b,c,d){b.A||Xg(b);if(b.A.K){var e=lg(a);a=e.is;e=e.Y;e=a?yg(a,e):"html";var f=b.parsedSelector;var g=!!f.match(Tg)||"html"===e&&-1<f.indexOf("html");var h=0===f.indexOf(":host")&&!g;"shady"===c&&(g=f===e+" > *."+e||-1!==f.indexOf("html"),h=!g&&0===f.indexOf(e));if(g||h)c=e,h&&(b.B||(b.B=zg(sg,b,sg.b,a?"."+a:"",e)),c=b.B||e),g&&"html"===e&&(c=b.B||b.u),d({na:c,Oa:h,bb:g})}}
function ch(a,b,c){var d={},e={};ag(b,function(f){bh(a,f,c,function(g){Sg.call(a._element||a,g.na)&&(g.Oa?Yg(f,d):Yg(f,e))})},null,!0);return{Ua:e,Ma:d}}
function dh(a,b,c,d){var e=lg(b),f=yg(e.is,e.Y),g=new RegExp("(?:^|[^.#[:])"+(b.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])"),h=Qg(b);e=h.I;h=h.cssBuild;var k=eh(e,d);return wg(b,e,function(l){var m="";l.A||Xg(l);l.A.cssText&&(m=$g(a,l.A.cssText,c));l.cssText=m;if(!V&&!cg(l)&&l.cssText){var q=m=l.cssText;null==l.ra&&(l.ra=Wf.test(m));if(l.ra)if(null==l.da){l.da=[];for(var H in k)q=k[H],q=q(m),m!==q&&(m=q,l.da.push(H))}else{for(H=0;H<l.da.length;++H)q=k[l.da[H]],m=q(m);q=m}l.cssText=q;l.B=
l.B||l.selector;m="."+d;H=mg(l.B);q=0;for(var E=H.length,r=void 0;q<E&&(r=H[q]);q++)H[q]=r.match(g)?r.replace(f,m):m+" "+r;l.selector=H.join(",")}},h)}function eh(a,b){a=a.b;var c={};if(!V&&a)for(var d=0,e=a[d];d<a.length;e=a[++d]){var f=e,g=b;f.f=new RegExp("\\b"+f.keyframesName+"(?!\\B|-)","g");f.a=f.keyframesName+"-"+g;f.B=f.B||f.selector;f.selector=f.B.replace(f.keyframesName,f.a);c[e.keyframesName]=fh(e)}return c}function fh(a){return function(b){return b.replace(a.f,a.a)}}
function gh(a,b){var c=hh,d=bg(a);a.textContent=$f(d,function(e){var f=e.cssText=e.parsedCssText;e.A&&e.A.cssText&&(f=f.replace(Kf,"").replace(Lf,""),e.cssText=$g(c,f,b))})}ea.Object.defineProperties(Vg.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var hh=new Vg;var ih={},jh=window.customElements;if(jh&&!V&&!Rf){var kh=jh.define;jh.define=function(a,b,c){ih[a]||(ih[a]=gg(a));kh.call(jh,a,b,c)}};function lh(){this.cache={}}lh.prototype.store=function(a,b,c,d){var e=this.cache[a]||[];e.push({K:b,styleElement:c,H:d});100<e.length&&e.shift();this.cache[a]=e};function mh(){}var nh=new RegExp(sg.a+"\\s*([^\\s]*)");function oh(a){return(a=(a.classList&&a.classList.value?a.classList.value:a.getAttribute("class")||"").match(nh))?a[1]:""}function ph(a){var b=kg(a).getRootNode();return b===a||b===a.ownerDocument?"":(a=b.host)?lg(a).is:""}
function qh(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.target!==document.documentElement&&c.target!==document.head)for(var d=0;d<c.addedNodes.length;d++){var e=c.addedNodes[d];if(e.nodeType===Node.ELEMENT_NODE){var f=e.getRootNode(),g=oh(e);if(g&&f===e.ownerDocument&&("style"!==e.localName&&"template"!==e.localName||""===ng(e)))vg(e,g);else if(f instanceof ShadowRoot)for(f=ph(e),f!==g&&ug(e,g,f),e=window.ShadyDOM.nativeMethods.querySelectorAll.call(e,":not(."+sg.a+")"),g=0;g<e.length;g++){f=e[g];
var h=ph(f);h&&tg(f,h)}}}}}
if(!(V||window.ShadyDOM&&window.ShadyDOM.handlesDynamicScoping)){var rh=new MutationObserver(qh),sh=function(a){rh.observe(a,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)sh(document);else{var th=function(){sh(document.body)};window.HTMLImports?window.HTMLImports.whenReady(th):requestAnimationFrame(function(){if("loading"===document.readyState){var a=function(){th();document.removeEventListener("readystatechange",a)};document.addEventListener("readystatechange",
a)}else th()})}mh=function(){qh(rh.takeRecords())}};var uh={};var vh=Promise.resolve();function wh(a){if(a=uh[a])a._applyShimCurrentVersion=a._applyShimCurrentVersion||0,a._applyShimValidatingVersion=a._applyShimValidatingVersion||0,a._applyShimNextVersion=(a._applyShimNextVersion||0)+1}function xh(a){return a._applyShimCurrentVersion===a._applyShimNextVersion}function yh(a){a._applyShimValidatingVersion=a._applyShimNextVersion;a._validating||(a._validating=!0,vh.then(function(){a._applyShimCurrentVersion=a._applyShimNextVersion;a._validating=!1}))};var zh={},Ah=new lh;function Y(){this.D={};this.c=document.documentElement;var a=new xf;a.rules=[];this.f=Rg(this.c,new Pg(a));this.u=!1;this.a=this.b=null}w=Y.prototype;w.flush=function(){mh()};w.Ka=function(a){return bg(a)};w.Ya=function(a){return $f(a)};w.prepareTemplate=function(a,b,c){this.prepareTemplateDom(a,b);this.prepareTemplateStyles(a,b,c)};
w.prepareTemplateStyles=function(a,b,c){if(!a._prepared&&!Rf){V||ih[b]||(ih[b]=gg(b));a._prepared=!0;a.name=b;a.extends=c;uh[b]=a;var d=ng(a),e=og(d);c={is:b,extends:c};for(var f=[],g=a.content.querySelectorAll("style"),h=0;h<g.length;h++){var k=g[h];if(k.hasAttribute("shady-unscoped")){if(!V){var l=k.textContent;Zf.has(l)||(Zf.add(l),l=k.cloneNode(!0),document.head.appendChild(l));k.parentNode.removeChild(k)}}else f.push(k.textContent),k.parentNode.removeChild(k)}f=f.join("").trim()+(zh[b]||"");
Bh(this);if(!e){if(g=!d)g=Tf.test(f)||Sf.test(f),Tf.lastIndex=0,Sf.lastIndex=0;h=yf(f);g&&W&&this.b&&this.b.transformRules(h,b);a._styleAst=h}g=[];W||(g=Wg(a._styleAst));if(!g.length||W)h=V?a.content:null,b=ih[b]||null,d=wg(c,a._styleAst,null,d,e?f:""),d=d.length?dg(d,c.is,h,b):null,a._style=d;a.a=g}};w.Sa=function(a,b){zh[b]=a.join(" ")};w.prepareTemplateDom=function(a,b){if(!Rf){var c=ng(a);V||"shady"===c||a._domPrepared||(a._domPrepared=!0,qg(a.content,b))}};
function Ch(a){var b=lg(a),c=b.is;b=b.Y;var d=ih[c]||null,e=uh[c];if(e){c=e._styleAst;var f=e.a;e=ng(e);b=new Pg(c,d,f,b,e);Rg(a,b);return b}}function Dh(a){!a.a&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(a.a=window.ShadyCSS.CustomStyleInterface,a.a.transformCallback=function(b){a.xa(b)},a.a.validateCallback=function(){requestAnimationFrame(function(){(a.a.enqueued||a.u)&&a.flushCustomStyles()})})}
function Bh(a){!a.b&&window.ShadyCSS&&window.ShadyCSS.ApplyShim&&(a.b=window.ShadyCSS.ApplyShim,a.b.invalidCallback=wh);Dh(a)}
w.flushCustomStyles=function(){if(!Rf&&(Bh(this),this.a)){var a=this.a.processStyles();if(this.a.enqueued&&!og(this.f.cssBuild)){if(W){if(!this.f.cssBuild)for(var b=0;b<a.length;b++){var c=this.a.getStyleForCustomStyle(a[b]);if(c&&W&&this.b){var d=bg(c);Bh(this);this.b.transformRules(d);c.textContent=$f(d)}}}else{Eh(this,a);Fh(this,this.c,this.f);for(b=0;b<a.length;b++)(c=this.a.getStyleForCustomStyle(a[b]))&&gh(c,this.f.L);this.u&&this.styleDocument()}this.a.enqueued=!1}}};
function Eh(a,b){b=b.map(function(c){return a.a.getStyleForCustomStyle(c)}).filter(function(c){return!!c});b.sort(function(c,d){c=d.compareDocumentPosition(c);return c&Node.DOCUMENT_POSITION_FOLLOWING?1:c&Node.DOCUMENT_POSITION_PRECEDING?-1:0});a.f.I.rules=b.map(function(c){return bg(c)})}
w.styleElement=function(a,b){if(Rf){if(b){Qg(a)||Rg(a,new Pg(null));var c=Qg(a);c.G=c.G||{};Object.assign(c.G,b);Gh(this,a,c)}}else if(c=Qg(a)||Ch(a))if(a!==this.c&&(this.u=!0),b&&(c.G=c.G||{},Object.assign(c.G,b)),W)Gh(this,a,c);else if(this.flush(),Fh(this,a,c),c.la&&c.la.length){b=lg(a).is;var d;a:{if(d=Ah.cache[b])for(var e=d.length-1;0<=e;e--){var f=d[e];b:{var g=c.la;for(var h=0;h<g.length;h++){var k=g[h];if(f.K[k]!==c.L[k]){g=!1;break b}}g=!0}if(g){d=f;break a}}d=void 0}g=d?d.styleElement:
null;e=c.H;(f=d&&d.H)||(f=this.D[b]=(this.D[b]||0)+1,f=b+"-"+f);c.H=f;f=c.H;h=hh;h=g?g.textContent||"":dh(h,a,c.L,f);k=Qg(a);var l=k.a;l&&!V&&l!==g&&(l._useCount--,0>=l._useCount&&l.parentNode&&l.parentNode.removeChild(l));V?k.a?(k.a.textContent=h,g=k.a):h&&(g=dg(h,f,a.shadowRoot,k.b)):g?g.parentNode||(Ug&&-1<h.indexOf("@media")&&(g.textContent=h),eg(g,null,k.b)):h&&(g=dg(h,f,null,k.b));g&&(g._useCount=g._useCount||0,k.a!=g&&g._useCount++,k.a=g);f=g;V||(g=c.H,k=h=a.getAttribute("class")||"",e&&(k=
h.replace(new RegExp("\\s*x-scope\\s*"+e+"\\s*","g")," ")),k+=(k?" ":"")+"x-scope "+g,h!==k&&jg(a,k));d||Ah.store(b,c.L,f,c.H)}};
function Gh(a,b,c){var d=lg(b).is;if(c.G){var e=c.G,f;for(f in e)null===f?b.style.removeProperty(f):b.style.setProperty(f,e[f])}e=uh[d];if(!(!e&&b!==a.c||e&&""!==ng(e))&&e&&e._style&&!xh(e)){if(xh(e)||e._applyShimValidatingVersion!==e._applyShimNextVersion)Bh(a),a.b&&a.b.transformRules(e._styleAst,d),e._style.textContent=wg(b,c.I),yh(e);V&&(a=b.shadowRoot)&&(a=a.querySelector("style"))&&(a.textContent=wg(b,c.I));c.I=e._styleAst}}
function Hh(a,b){return(b=kg(b).getRootNode().host)?Qg(b)||Ch(b)?b:Hh(a,b):a.c}function Fh(a,b,c){var d=Hh(a,b),e=Qg(d),f=e.L;d===a.c||f||(Fh(a,d,e),f=e.L);a=Object.create(f||null);d=ch(b,c.I,c.cssBuild);b=ah(e.I,b).K;Object.assign(a,d.Ma,b,d.Ua);b=c.G;for(var g in b)if((e=b[g])||0===e)a[g]=e;g=hh;b=Object.getOwnPropertyNames(a);for(e=0;e<b.length;e++)d=b[e],a[d]=Zg(g,a[d],a);c.L=a}w.styleDocument=function(a){this.styleSubtree(this.c,a)};
w.styleSubtree=function(a,b){var c=kg(a),d=c.shadowRoot,e=a===this.c;(d||e)&&this.styleElement(a,b);if(a=e?c:d)for(a=Array.from(a.querySelectorAll("*")).filter(function(f){return kg(f).shadowRoot}),b=0;b<a.length;b++)this.styleSubtree(a[b])};
w.xa=function(a){var b=this,c=ng(a);c!==this.f.cssBuild&&(this.f.cssBuild=c);if(!og(c)){var d=bg(a);ag(d,function(e){if(V)Og(e);else{var f=sg;e.selector=e.parsedSelector;Og(e);e.selector=e.B=zg(f,e,f.c,void 0,void 0)}W&&""===c&&(Bh(b),b.b&&b.b.transformRule(e))});W?a.textContent=$f(d):this.f.I.rules.push(d)}};w.getComputedStyleValue=function(a,b){var c;W||(c=(Qg(a)||Qg(Hh(this,a))).L[b]);return(c=c||window.getComputedStyle(a).getPropertyValue(b))?c.trim():""};
w.Xa=function(a,b){var c=kg(a).getRootNode(),d;b?d=("string"===typeof b?b:String(b)).split(/\s/):d=[];b=c.host&&c.host.localName;if(!b&&(c=a.getAttribute("class"))){c=c.split(/\s/);for(var e=0;e<c.length;e++)if(c[e]===sg.a){b=c[e+1];break}}b&&d.push(sg.a,b);W||(b=Qg(a))&&b.H&&d.push(hh.a,b.H);jg(a,d.join(" "))};w.Fa=function(a){return Qg(a)};w.Wa=function(a,b){tg(a,b)};w.Za=function(a,b){tg(a,b,!0)};w.Va=function(a){return ph(a)};w.Ia=function(a){return oh(a)};Y.prototype.flush=Y.prototype.flush;
Y.prototype.prepareTemplate=Y.prototype.prepareTemplate;Y.prototype.styleElement=Y.prototype.styleElement;Y.prototype.styleDocument=Y.prototype.styleDocument;Y.prototype.styleSubtree=Y.prototype.styleSubtree;Y.prototype.getComputedStyleValue=Y.prototype.getComputedStyleValue;Y.prototype.setElementClass=Y.prototype.Xa;Y.prototype._styleInfoForNode=Y.prototype.Fa;Y.prototype.transformCustomStyleForDocument=Y.prototype.xa;Y.prototype.getStyleAst=Y.prototype.Ka;Y.prototype.styleAstToString=Y.prototype.Ya;
Y.prototype.flushCustomStyles=Y.prototype.flushCustomStyles;Y.prototype.scopeNode=Y.prototype.Wa;Y.prototype.unscopeNode=Y.prototype.Za;Y.prototype.scopeForNode=Y.prototype.Va;Y.prototype.currentScopeForNode=Y.prototype.Ia;Y.prototype.prepareAdoptedCssText=Y.prototype.Sa;Object.defineProperties(Y.prototype,{nativeShadow:{get:function(){return V}},nativeCss:{get:function(){return W}}});var Z=new Y,Ih,Jh;window.ShadyCSS&&(Ih=window.ShadyCSS.ApplyShim,Jh=window.ShadyCSS.CustomStyleInterface);
window.ShadyCSS={ScopingShim:Z,prepareTemplate:function(a,b,c){Z.flushCustomStyles();Z.prepareTemplate(a,b,c)},prepareTemplateDom:function(a,b){Z.prepareTemplateDom(a,b)},prepareTemplateStyles:function(a,b,c){Z.flushCustomStyles();Z.prepareTemplateStyles(a,b,c)},styleSubtree:function(a,b){Z.flushCustomStyles();Z.styleSubtree(a,b)},styleElement:function(a){Z.flushCustomStyles();Z.styleElement(a)},styleDocument:function(a){Z.flushCustomStyles();Z.styleDocument(a)},flushCustomStyles:function(){Z.flushCustomStyles()},
getComputedStyleValue:function(a,b){return Z.getComputedStyleValue(a,b)},nativeCss:W,nativeShadow:V,cssBuild:Qf,disableRuntime:Rf};Ih&&(window.ShadyCSS.ApplyShim=Ih);Jh&&(window.ShadyCSS.CustomStyleInterface=Jh);(function(a){function b(r){""==r&&(f.call(this),this.i=!0);return r.toLowerCase()}function c(r){var F=r.charCodeAt(0);return 32<F&&127>F&&-1==[34,35,60,62,63,96].indexOf(F)?r:encodeURIComponent(r)}function d(r){var F=r.charCodeAt(0);return 32<F&&127>F&&-1==[34,35,60,62,96].indexOf(F)?r:encodeURIComponent(r)}function e(r,F,C){function N(ka){qa.push(ka)}var x=F||"scheme start",X=0,v="",pa=!1,fa=!1,qa=[];a:for(;(void 0!=r[X-1]||0==X)&&!this.i;){var n=r[X];switch(x){case "scheme start":if(n&&q.test(n))v+=
n.toLowerCase(),x="scheme";else if(F){N("Invalid scheme.");break a}else{v="";x="no scheme";continue}break;case "scheme":if(n&&H.test(n))v+=n.toLowerCase();else if(":"==n){this.h=v;v="";if(F)break a;void 0!==l[this.h]&&(this.C=!0);x="file"==this.h?"relative":this.C&&C&&C.h==this.h?"relative or authority":this.C?"authority first slash":"scheme data"}else if(F){void 0!=n&&N("Code point not allowed in scheme: "+n);break a}else{v="";X=0;x="no scheme";continue}break;case "scheme data":"?"==n?(this.o="?",
x="query"):"#"==n?(this.v="#",x="fragment"):void 0!=n&&"\t"!=n&&"\n"!=n&&"\r"!=n&&(this.ha+=c(n));break;case "no scheme":if(C&&void 0!==l[C.h]){x="relative";continue}else N("Missing scheme."),f.call(this),this.i=!0;break;case "relative or authority":if("/"==n&&"/"==r[X+1])x="authority ignore slashes";else{N("Expected /, got: "+n);x="relative";continue}break;case "relative":this.C=!0;"file"!=this.h&&(this.h=C.h);if(void 0==n){this.j=C.j;this.m=C.m;this.l=C.l.slice();this.o=C.o;this.s=C.s;this.g=C.g;
break a}else if("/"==n||"\\"==n)"\\"==n&&N("\\ is an invalid code point."),x="relative slash";else if("?"==n)this.j=C.j,this.m=C.m,this.l=C.l.slice(),this.o="?",this.s=C.s,this.g=C.g,x="query";else if("#"==n)this.j=C.j,this.m=C.m,this.l=C.l.slice(),this.o=C.o,this.v="#",this.s=C.s,this.g=C.g,x="fragment";else{x=r[X+1];var I=r[X+2];if("file"!=this.h||!q.test(n)||":"!=x&&"|"!=x||void 0!=I&&"/"!=I&&"\\"!=I&&"?"!=I&&"#"!=I)this.j=C.j,this.m=C.m,this.s=C.s,this.g=C.g,this.l=C.l.slice(),this.l.pop();x=
"relative path";continue}break;case "relative slash":if("/"==n||"\\"==n)"\\"==n&&N("\\ is an invalid code point."),x="file"==this.h?"file host":"authority ignore slashes";else{"file"!=this.h&&(this.j=C.j,this.m=C.m,this.s=C.s,this.g=C.g);x="relative path";continue}break;case "authority first slash":if("/"==n)x="authority second slash";else{N("Expected '/', got: "+n);x="authority ignore slashes";continue}break;case "authority second slash":x="authority ignore slashes";if("/"!=n){N("Expected '/', got: "+
n);continue}break;case "authority ignore slashes":if("/"!=n&&"\\"!=n){x="authority";continue}else N("Expected authority, got: "+n);break;case "authority":if("@"==n){pa&&(N("@ already seen."),v+="%40");pa=!0;for(n=0;n<v.length;n++)I=v[n],"\t"==I||"\n"==I||"\r"==I?N("Invalid whitespace in authority."):":"==I&&null===this.g?this.g="":(I=c(I),null!==this.g?this.g+=I:this.s+=I);v=""}else if(void 0==n||"/"==n||"\\"==n||"?"==n||"#"==n){X-=v.length;v="";x="host";continue}else v+=n;break;case "file host":if(void 0==
n||"/"==n||"\\"==n||"?"==n||"#"==n){2!=v.length||!q.test(v[0])||":"!=v[1]&&"|"!=v[1]?(0!=v.length&&(this.j=b.call(this,v),v=""),x="relative path start"):x="relative path";continue}else"\t"==n||"\n"==n||"\r"==n?N("Invalid whitespace in file host."):v+=n;break;case "host":case "hostname":if(":"!=n||fa)if(void 0==n||"/"==n||"\\"==n||"?"==n||"#"==n){this.j=b.call(this,v);v="";x="relative path start";if(F)break a;continue}else"\t"!=n&&"\n"!=n&&"\r"!=n?("["==n?fa=!0:"]"==n&&(fa=!1),v+=n):N("Invalid code point in host/hostname: "+
n);else if(this.j=b.call(this,v),v="",x="port","hostname"==F)break a;break;case "port":if(/[0-9]/.test(n))v+=n;else if(void 0==n||"/"==n||"\\"==n||"?"==n||"#"==n||F){""!=v&&(v=parseInt(v,10),v!=l[this.h]&&(this.m=v+""),v="");if(F)break a;x="relative path start";continue}else"\t"==n||"\n"==n||"\r"==n?N("Invalid code point in port: "+n):(f.call(this),this.i=!0);break;case "relative path start":"\\"==n&&N("'\\' not allowed in path.");x="relative path";if("/"!=n&&"\\"!=n)continue;break;case "relative path":if(void 0!=
n&&"/"!=n&&"\\"!=n&&(F||"?"!=n&&"#"!=n))"\t"!=n&&"\n"!=n&&"\r"!=n&&(v+=c(n));else{"\\"==n&&N("\\ not allowed in relative path.");if(I=m[v.toLowerCase()])v=I;".."==v?(this.l.pop(),"/"!=n&&"\\"!=n&&this.l.push("")):"."==v&&"/"!=n&&"\\"!=n?this.l.push(""):"."!=v&&("file"==this.h&&0==this.l.length&&2==v.length&&q.test(v[0])&&"|"==v[1]&&(v=v[0]+":"),this.l.push(v));v="";"?"==n?(this.o="?",x="query"):"#"==n&&(this.v="#",x="fragment")}break;case "query":F||"#"!=n?void 0!=n&&"\t"!=n&&"\n"!=n&&"\r"!=n&&(this.o+=
d(n)):(this.v="#",x="fragment");break;case "fragment":void 0!=n&&"\t"!=n&&"\n"!=n&&"\r"!=n&&(this.v+=n)}X++}}function f(){this.s=this.ha=this.h="";this.g=null;this.m=this.j="";this.l=[];this.v=this.o="";this.C=this.i=!1}function g(r,F){void 0===F||F instanceof g||(F=new g(String(F)));this.a=r;f.call(this);e.call(this,this.a.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,""),null,F)}var h=!1;try{var k=new URL("b","http://a");k.pathname="c%20d";h="http://a/c%20d"===k.href}catch(r){}if(!h){var l=Object.create(null);
l.ftp=21;l.file=0;l.gopher=70;l.http=80;l.https=443;l.ws=80;l.wss=443;var m=Object.create(null);m["%2e"]=".";m[".%2e"]="..";m["%2e."]="..";m["%2e%2e"]="..";var q=/[a-zA-Z]/,H=/[a-zA-Z0-9\+\-\.]/;g.prototype={toString:function(){return this.href},get href(){if(this.i)return this.a;var r="";if(""!=this.s||null!=this.g)r=this.s+(null!=this.g?":"+this.g:"")+"@";return this.protocol+(this.C?"//"+r+this.host:"")+this.pathname+this.o+this.v},set href(r){f.call(this);e.call(this,r)},get protocol(){return this.h+
":"},set protocol(r){this.i||e.call(this,r+":","scheme start")},get host(){return this.i?"":this.m?this.j+":"+this.m:this.j},set host(r){!this.i&&this.C&&e.call(this,r,"host")},get hostname(){return this.j},set hostname(r){!this.i&&this.C&&e.call(this,r,"hostname")},get port(){return this.m},set port(r){!this.i&&this.C&&e.call(this,r,"port")},get pathname(){return this.i?"":this.C?"/"+this.l.join("/"):this.ha},set pathname(r){!this.i&&this.C&&(this.l=[],e.call(this,r,"relative path start"))},get search(){return this.i||
!this.o||"?"==this.o?"":this.o},set search(r){!this.i&&this.C&&(this.o="?","?"==r[0]&&(r=r.slice(1)),e.call(this,r,"query"))},get hash(){return this.i||!this.v||"#"==this.v?"":this.v},set hash(r){this.i||(r?(this.v="#","#"==r[0]&&(r=r.slice(1)),e.call(this,r,"fragment")):this.v="")},get origin(){var r;if(this.i||!this.h)return"";switch(this.h){case "data":case "file":case "javascript":case "mailto":return"null"}return(r=this.host)?this.h+"://"+r:""}};var E=a.URL;E&&(g.createObjectURL=function(r){return E.createObjectURL.apply(E,
arguments)},g.revokeObjectURL=function(r){E.revokeObjectURL(r)});a.URL=g}})(window);Object.getOwnPropertyDescriptor(Node.prototype,"baseURI")||Object.defineProperty(Node.prototype,"baseURI",{get:function(){var a=(this.ownerDocument||this).querySelector("base[href]");return a&&a.href||window.location.href},configurable:!0,enumerable:!0});var Kh=document.createElement("style");Kh.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var Lh=document.querySelector("head");Lh.insertBefore(Kh,Lh.firstChild);var Mh=window.customElements,Nh=!1,Oh=null;Mh.polyfillWrapFlushCallback&&Mh.polyfillWrapFlushCallback(function(a){Oh=a;Nh&&a()});function Ph(){window.HTMLTemplateElement.bootstrap&&window.HTMLTemplateElement.bootstrap(window.document);Oh&&Oh();Nh=!0;window.WebComponents.ready=!0;document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))}
"complete"!==document.readyState?(window.addEventListener("load",Ph),window.addEventListener("DOMContentLoaded",function(){window.removeEventListener("load",Ph);Ph()})):Ph();}).call(this);
//# sourceMappingURL=webcomponents-bundle.js.map

View File

@@ -10,4 +10,4 @@ console.log('Loaded: /bar-fork/bar.js');
console.log('my app');
import('./index-bcce6317.js');
import('./index-2778b37a.js');

View File

@@ -1 +1 @@
<html lang="en-GB"><head><title>My app</title><style>my-app{display:block}</style></head><body><h1><span>Hello world!</span></h1><my-app></my-app><script>console.log("hello inline script");</script><script src="./app.js" type="module"></script></body></html>
<html lang="en-GB"><head><title>My app</title><style>my-app{display:block}</style></head><body><h1><span>Hello world!</span></h1><my-app></my-app><script src="./app.js" type="module"></script><script>console.log("hello inline script");</script></body></html>

View File

@@ -1 +1 @@
<html lang="en-GB"><head><title>My app</title></head><body><script>console.log("hello inline script");</script><script src="./inline-entry.0.js" type="module"></script></body></html>
<html lang="en-GB"><head><title>My app</title></head><body><script src="./inline-entry.0.js" type="module"></script><script>console.log("hello inline script");</script></body></html>

View File

@@ -8,4 +8,4 @@ console.log('Loaded: /bar-fork/bar.js');
console.log('my app');
import('./index-bcce6317.js');
import('./index-2778b37a.js');

View File

@@ -1,4 +1,4 @@
// @ts-nocheck
/* eslint-disable */
console.log('my app');
import('./lazy-99ef5fe0.js');
import('./lazy-ad0cfec5.js');

View File

@@ -1 +1 @@
<html lang="en-GB"><head><title>My app</title><style>my-app{display:block}</style></head><body><h1><span>Hello world!</span></h1><my-app></my-app><script>console.log("hello inline script");</script><script src="./app.js" type="module"></script></body></html>
<html lang="en-GB"><head><title>My app</title><style>my-app{display:block}</style></head><body><h1><span>Hello world!</span></h1><my-app></my-app><script src="./app.js" type="module"></script><script>console.log("hello inline script");</script></body></html>

View File

@@ -1,4 +1,4 @@
// @ts-nocheck
/* eslint-disable */
console.log('my app');
import('./lazy-99ef5fe0.js');
import('./lazy-ad0cfec5.js');

View File

@@ -1 +1 @@
<html lang="en-GB"><head><title>My app</title><style>my-app{display:block}</style><link rel="preload" href="app.js" as="script" crossorigin="anonymous"></head><body><h1><span>Hello world!</span></h1><my-app></my-app><script>console.log("hello inline script");</script><script>window.importShim=t=>import(t.startsWith(".")?new URL(t,document.baseURI):t);</script><script src="polyfills/core-js.8e88fc5b880b02431d6fad7b3a34116d.js" nomodule=""></script><script src="polyfills/regenerator-runtime.61c01f337f4241bb46c77e10a7e01300.js" nomodule=""></script><script>!function(){function e(e,o){return new Promise(function(t,n){document.head.appendChild(Object.assign(document.createElement("script"),{src:e,onload:t,onerror:n},o?{type:"module"}:void 0))})}var o=[];function t(){"noModule"in HTMLScriptElement.prototype?window.importShim("./app.js"):System.import("./legacy/app.js")}"noModule"in HTMLScriptElement.prototype&&!("importShim"in window)&&o.push(e("polyfills/dynamic-import.b745cfc9384367cc18b42bbef2bbdcd9.js",!1)),"attachShadow"in Element.prototype&&"getRootNode"in Element.prototype||o.push(e("polyfills/webcomponents.88b4b5855ede008ecad6bbdd4a69e57d.js",!1)),!("noModule"in HTMLScriptElement.prototype)&&"getRootNode"in Element.prototype&&o.push(e("polyfills/custom-elements-es5-adapter.551c76d38426de62c33d8c61995c1d0f.js",!1)),o.length?Promise.all(o).then(t):t()}();</script></body></html>
<html lang="en-GB"><head><title>My app</title><style>my-app{display:block}</style><link rel="preload" href="app.js" as="script" crossorigin="anonymous"></head><body><h1><span>Hello world!</span></h1><my-app></my-app><script>window.importShim=t=>import(t.startsWith(".")?new URL(t,document.baseURI):t);</script><script src="polyfills/core-js.77da473353460b142f5e09e540324336.js" nomodule=""></script><script src="polyfills/regenerator-runtime.323cb013cc2a9c88ff67ee256cbf5942.js" nomodule=""></script><script>console.log("hello inline script");</script><script>!function(){function e(e,o){return new Promise((function(t,n){document.head.appendChild(Object.assign(document.createElement("script"),{src:e,onload:t,onerror:n},o?{type:"module"}:void 0))}))}var o=[];function t(){"noModule"in HTMLScriptElement.prototype?window.importShim("./app.js"):System.import("./legacy/app.js")}"noModule"in HTMLScriptElement.prototype&&!("importShim"in window)&&o.push(e("polyfills/dynamic-import.b745cfc9384367cc18b42bbef2bbdcd9.js",!1)),"attachShadow"in Element.prototype&&"getRootNode"in Element.prototype||o.push(e("polyfills/webcomponents.cc3976af76b5e726e2a7e86686c930f1.js",!1)),!("noModule"in HTMLScriptElement.prototype)&&"getRootNode"in Element.prototype&&o.push(e("polyfills/custom-elements-es5-adapter.84b300ee818dce8b351c7cc7c100bcf7.js",!1)),o.length?Promise.all(o).then(t):t()}();</script></body></html>

View File

@@ -6,7 +6,7 @@ System.register([], function (exports, module) {
// @ts-nocheck
/* eslint-disable */
console.log('my app');
module.import('./lazy-ab69e3de.js');
module.import('./lazy-9a97a738.js');
}
};

Some files were not shown because too many files have changed in this diff Show More