@everymatrix/helper-filters 1.50.0 → 1.50.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/helper-filters.cjs.js +2 -2
- package/dist/cjs/helper-filters_2.cjs.entry.js +3 -3
- package/dist/cjs/{index-c0a2f0ff.js → index-d8d706b6.js} +30 -13
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/esm/helper-filters.js +3 -3
- package/dist/esm/helper-filters_2.entry.js +3 -3
- package/dist/esm/{index-0aa988c9.js → index-65288f86.js} +30 -13
- package/dist/esm/loader.js +2 -2
- package/dist/helper-filters/helper-filters.esm.js +1 -1
- package/dist/helper-filters/{p-5e354aa8.entry.js → p-372fbd31.entry.js} +482 -3
- package/dist/helper-filters/p-da436b95.js +2 -0
- package/dist/types/stencil-public-runtime.d.ts +6 -0
- package/package.json +1 -1
- package/dist/helper-filters/p-f48a0fde.js +0 -2
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-d8d706b6.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.
|
|
9
|
+
Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
var patchBrowser = () => {
|
|
12
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('helper-filters.cjs.js', document.baseURI).href));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-d8d706b6.js');
|
|
6
6
|
|
|
7
7
|
const DEFAULT_LANGUAGE = 'en';
|
|
8
8
|
const SUPPORTED_LANGUAGES = ['ro', 'en', 'hr'];
|
|
@@ -7056,7 +7056,7 @@ const PropertiesMixin = dedupingMixin(superClass => {
|
|
|
7056
7056
|
* Current Polymer version in Semver notation.
|
|
7057
7057
|
* @type {string} Semver notation of the current version of Polymer.
|
|
7058
7058
|
*/
|
|
7059
|
-
const version = '3.5.
|
|
7059
|
+
const version = '3.5.2';
|
|
7060
7060
|
|
|
7061
7061
|
const builtCSS = window.ShadyCSS && window.ShadyCSS['cssBuild'];
|
|
7062
7062
|
|
|
@@ -9961,7 +9961,7 @@ if (window.Vaadin.developmentMode === undefined) {
|
|
|
9961
9961
|
/* This file is autogenerated from src/vaadin-usage-statistics.tpl.html */
|
|
9962
9962
|
|
|
9963
9963
|
function maybeGatherAndSendStats() {
|
|
9964
|
-
|
|
9964
|
+
/*! vaadin-dev-mode:start
|
|
9965
9965
|
(function () {
|
|
9966
9966
|
'use strict';
|
|
9967
9967
|
|
|
@@ -24,7 +24,7 @@ const NAMESPACE = 'helper-filters';
|
|
|
24
24
|
const BUILD = /* helper-filters */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
@@ -378,17 +378,30 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
378
378
|
if (nonce != null) {
|
|
379
379
|
styleElm.setAttribute("nonce", nonce);
|
|
380
380
|
}
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
381
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
382
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
383
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
384
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
385
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
386
|
+
} else if ("host" in styleContainerNode) {
|
|
387
|
+
if (supportsConstructableStylesheets) {
|
|
388
|
+
const stylesheet = new CSSStyleSheet();
|
|
389
|
+
stylesheet.replaceSync(style);
|
|
390
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
391
|
+
} else {
|
|
392
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
393
|
+
if (existingStyleContainer) {
|
|
394
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
395
|
+
} else {
|
|
396
|
+
styleContainerNode.prepend(styleElm);
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
} else {
|
|
400
|
+
styleContainerNode.append(styleElm);
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
404
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
392
405
|
}
|
|
393
406
|
}
|
|
394
407
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
@@ -460,7 +473,11 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
460
473
|
if (memberName === "list") {
|
|
461
474
|
isProp = false;
|
|
462
475
|
} else if (oldValue == null || elm[memberName] != n) {
|
|
463
|
-
elm
|
|
476
|
+
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
477
|
+
elm[memberName] = n;
|
|
478
|
+
} else {
|
|
479
|
+
elm.setAttribute(memberName, n);
|
|
480
|
+
}
|
|
464
481
|
}
|
|
465
482
|
} else {
|
|
466
483
|
elm[memberName] = newValue;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-d8d706b6.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-65288f86.js';
|
|
2
|
+
export { s as setNonce } from './index-65288f86.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h as h$2 } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h as h$2 } from './index-65288f86.js';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_LANGUAGE = 'en';
|
|
4
4
|
const SUPPORTED_LANGUAGES = ['ro', 'en', 'hr'];
|
|
@@ -7052,7 +7052,7 @@ const PropertiesMixin = dedupingMixin(superClass => {
|
|
|
7052
7052
|
* Current Polymer version in Semver notation.
|
|
7053
7053
|
* @type {string} Semver notation of the current version of Polymer.
|
|
7054
7054
|
*/
|
|
7055
|
-
const version = '3.5.
|
|
7055
|
+
const version = '3.5.2';
|
|
7056
7056
|
|
|
7057
7057
|
const builtCSS = window.ShadyCSS && window.ShadyCSS['cssBuild'];
|
|
7058
7058
|
|
|
@@ -9957,7 +9957,7 @@ if (window.Vaadin.developmentMode === undefined) {
|
|
|
9957
9957
|
/* This file is autogenerated from src/vaadin-usage-statistics.tpl.html */
|
|
9958
9958
|
|
|
9959
9959
|
function maybeGatherAndSendStats() {
|
|
9960
|
-
|
|
9960
|
+
/*! vaadin-dev-mode:start
|
|
9961
9961
|
(function () {
|
|
9962
9962
|
'use strict';
|
|
9963
9963
|
|
|
@@ -2,7 +2,7 @@ const NAMESPACE = 'helper-filters';
|
|
|
2
2
|
const BUILD = /* helper-filters */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
@@ -356,17 +356,30 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
356
356
|
if (nonce != null) {
|
|
357
357
|
styleElm.setAttribute("nonce", nonce);
|
|
358
358
|
}
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
359
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
360
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
361
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
362
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
363
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
364
|
+
} else if ("host" in styleContainerNode) {
|
|
365
|
+
if (supportsConstructableStylesheets) {
|
|
366
|
+
const stylesheet = new CSSStyleSheet();
|
|
367
|
+
stylesheet.replaceSync(style);
|
|
368
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
369
|
+
} else {
|
|
370
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
371
|
+
if (existingStyleContainer) {
|
|
372
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
373
|
+
} else {
|
|
374
|
+
styleContainerNode.prepend(styleElm);
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
} else {
|
|
378
|
+
styleContainerNode.append(styleElm);
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
382
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
370
383
|
}
|
|
371
384
|
}
|
|
372
385
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
@@ -438,7 +451,11 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
438
451
|
if (memberName === "list") {
|
|
439
452
|
isProp = false;
|
|
440
453
|
} else if (oldValue == null || elm[memberName] != n) {
|
|
441
|
-
elm
|
|
454
|
+
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
455
|
+
elm[memberName] = n;
|
|
456
|
+
} else {
|
|
457
|
+
elm.setAttribute(memberName, n);
|
|
458
|
+
}
|
|
442
459
|
}
|
|
443
460
|
} else {
|
|
444
461
|
elm[memberName] = newValue;
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-65288f86.js';
|
|
2
|
+
export { s as setNonce } from './index-65288f86.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,b as e}from"./p-
|
|
1
|
+
import{p as t,b as e}from"./p-da436b95.js";export{s as setNonce}from"./p-da436b95.js";import{g as i}from"./p-e1255160.js";(()=>{const e=import.meta.url,i={};return""!==e&&(i.resourcesUrl=new URL(".",e).href),t(i)})().then((async t=>(await i(),e([["p-372fbd31",[[1,"helper-filters",{showFilterId:[516,"show-filter-id"],activateTicketSearch:[516,"activate-ticket-search"],gameId:[513,"game-id"],playerId:[513,"player-id"],session:[513],postMessage:[516,"post-message"],language:[513],quickFiltersActive:[516,"quick-filters-active"],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],showFilterModal:[32],showClearButton:[32],filterData:[32],filterDataReset:[32],limitStylingAppends:[32]},[[0,"modalCloseEvent","modalCloseEvent"]]],[1,"helper-modal",{titleModal:[513,"title-modal"],visible:[1540],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],limitStylingAppends:[32]}]]]],t))));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as t,c as e,h as o}from"./p-
|
|
1
|
+
import{r as t,c as e,h as o}from"./p-da436b95.js";const i=["ro","en","hr"],s={en:{filterOpen:"Filter",filterClear:"Clear",filterModalTicketTitle:"Ticket Results",filterModalDrawTitle:"Draws Results History",filterTicketPlaceholder:"Search for a ticket ID",filterDrawPlaceholder:"Search for a draw ID",filterDateRangePlaceholder:"Date Range",filterModalButton:"Search",filterFromCalendar:"From",filterToCalendar:"To",filterOrDate:"or search by date"},ro:{filterOpen:"Filtrare",filterClear:"Stergere",filterModalTicketTitle:"Rezultatele biletelor",filterModalDrawTitle:"Rezultatele draw-urilor",filterTicketPlaceholder:"Cauta ID bilet",filterDrawPlaceholder:"Cauta ID draw",filterDateRangePlaceholder:"Perioada",filterModalButton:"Cauta",filterOrDate:"sau cauta dupa data"},fr:{filterOpen:"Filter",filterClear:"Clear",filterModalTicketTitle:"Ticket Results",filterModalDrawTitle:"Draws Results History",filterTicketPlaceholder:"Search for a ticket ID",filterDrawPlaceholder:"Search for a draw ID",filterDateRangePlaceholder:"Date Range",filterModalButton:"Search",filterFromCalendar:"From",filterToCalendar:"To",filterOrDate:"or search by date"},ar:{filterOpen:"Filter",filterClear:"Clear",filterModalTicketTitle:"Ticket Results",filterModalDrawTitle:"Draws Results History",filterTicketPlaceholder:"Search for a ticket ID",filterDrawPlaceholder:"Search for a draw ID",filterDateRangePlaceholder:"Date Range",filterModalButton:"Search",filterFromCalendar:"From",filterToCalendar:"To",filterOrDate:"or search by date"},hr:{filterOpen:"Filter",filterClear:"Očisti",filterModalTicketTitle:"Rezultati listića",filterModalDrawTitle:"Povijest rezultata Izvlačenja",filterTicketPlaceholder:"Pretraga ID listića",filterDrawPlaceholder:"Pretraga ID izvlačenja",filterDateRangePlaceholder:"Raspon datuma",filterModalButton:"Traži",filterFromCalendar:"Od",filterToCalendar:"Do",filterOrDate:"ili tražite po datumu"}},r=(t,e)=>{const o=e;return s[void 0!==o&&i.includes(o)?o:"en"][t]};
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
@@ -676,7 +676,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
676
676
|
Code distributed by Google as part of the polymer project is also
|
|
677
677
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
678
678
|
*/
|
|
679
|
-
function(t){const e={};for(let o in t){const i=t[o];e[o]="function"==typeof i?{type:i}:i}return e}(o))}t.__ownProperties=e}return t.__ownProperties}class s extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){const t=this._properties;this.__observedAttributes=t?Object.keys(t).map((t=>this.prototype._addPropertyToAttributeMap(t))):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const t=o(this);t&&t.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const t=i(this);t&&this.createProperties(t)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const t=o(this);this.__properties=Object.assign({},t&&t._properties,i(this))}return this.__properties}static typeForProperty(t){const e=this._properties[t];return e&&e.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return s})),Fo=window.ShadyCSS&&window.ShadyCSS.cssBuild,Po=Vt((t=>{const e=Mo(To(t));function o(t,e,o,i){o.computed&&(o.readOnly=!0),o.computed&&(t._hasReadOnlyEffect(e)?console.warn(`Cannot redefine computed property '${e}'.`):t._createComputedProperty(e,o.computed,i)),o.readOnly&&!t._hasReadOnlyEffect(e)?t._createReadOnlyProperty(e,!o.computed):!1===o.readOnly&&t._hasReadOnlyEffect(e)&&console.warn(`Cannot make readOnly property '${e}' non-readOnly.`),o.reflectToAttribute&&!t._hasReflectEffect(e)?t._createReflectedProperty(e):!1===o.reflectToAttribute&&t._hasReflectEffect(e)&&console.warn(`Cannot make reflected property '${e}' non-reflected.`),o.notify&&!t._hasNotifyEffect(e)?t._createNotifyingProperty(e):!1===o.notify&&t._hasNotifyEffect(e)&&console.warn(`Cannot make notify property '${e}' non-notify.`),o.observer&&t._createPropertyObserver(e,o.observer,i[o.observer]),t._addPropertyToAttributeMap(e)}return class extends e{static get polymerElementVersion(){return"3.5.
|
|
679
|
+
function(t){const e={};for(let o in t){const i=t[o];e[o]="function"==typeof i?{type:i}:i}return e}(o))}t.__ownProperties=e}return t.__ownProperties}class s extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){const t=this._properties;this.__observedAttributes=t?Object.keys(t).map((t=>this.prototype._addPropertyToAttributeMap(t))):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const t=o(this);t&&t.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const t=i(this);t&&this.createProperties(t)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const t=o(this);this.__properties=Object.assign({},t&&t._properties,i(this))}return this.__properties}static typeForProperty(t){const e=this._properties[t];return e&&e.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return s})),Fo=window.ShadyCSS&&window.ShadyCSS.cssBuild,Po=Vt((t=>{const e=Mo(To(t));function o(t,e,o,i){o.computed&&(o.readOnly=!0),o.computed&&(t._hasReadOnlyEffect(e)?console.warn(`Cannot redefine computed property '${e}'.`):t._createComputedProperty(e,o.computed,i)),o.readOnly&&!t._hasReadOnlyEffect(e)?t._createReadOnlyProperty(e,!o.computed):!1===o.readOnly&&t._hasReadOnlyEffect(e)&&console.warn(`Cannot make readOnly property '${e}' non-readOnly.`),o.reflectToAttribute&&!t._hasReflectEffect(e)?t._createReflectedProperty(e):!1===o.reflectToAttribute&&t._hasReflectEffect(e)&&console.warn(`Cannot make reflected property '${e}' non-reflected.`),o.notify&&!t._hasNotifyEffect(e)?t._createNotifyingProperty(e):!1===o.notify&&t._hasNotifyEffect(e)&&console.warn(`Cannot make notify property '${e}' non-notify.`),o.observer&&t._createPropertyObserver(e,o.observer,i[o.observer]),t._addPropertyToAttributeMap(e)}return class extends e{static get polymerElementVersion(){return"3.5.2"}static _finalizeClass(){e._finalizeClass.call(this);const t=((o=this).hasOwnProperty(JSCompiler_renameProperty("__ownObservers",o))||(o.__ownObservers=o.hasOwnProperty(JSCompiler_renameProperty("observers",o))?o.observers:null),o.__ownObservers);var o;t&&this.createObservers(t,this._properties),this._prepareTemplate()}static _prepareTemplate(){let t=this.template;t&&("string"==typeof t?(console.error("template getter must return HTMLTemplateElement"),t=null):Bt||(t=t.cloneNode(!0))),this.prototype._template=t}static createProperties(t){for(let e in t)o(this.prototype,e,t[e],t)}static createObservers(t,e){const o=this.prototype;for(let i=0;i<t.length;i++)o._createMethodObserver(t[i],e)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let t=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;"function"==typeof t&&(t=t()),this._template=void 0!==t?t:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&function(t){let e=null;if(t&&(!It||Nt)&&(e=Xt.import(t,"template"),It&&!e))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${t}`);return e}(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(t){this._template=t}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const t=this.importMeta;if(t)this._importPath=Mt(t.url);else{const t=Xt.import(this.is);this._importPath=t&&t.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super()}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=Et,this.importPath=this.constructor.importPath;let t=function(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",t))){t.__propertyDefaults=null;let e=t._properties;for(let o in e){let i=e[o];"value"in i&&(t.__propertyDefaults=t.__propertyDefaults||{},t.__propertyDefaults[o]=i)}}return t.__propertyDefaults}(this.constructor);if(t)for(let e in t){let o=t[e];if(this._canApplyPropertyDefault(e)){let t="function"==typeof o.value?o.value.call(this):o.value;this._hasAccessor(e)?this._setPendingProperty(e,t,!0):this[e]=t}}}_canApplyPropertyDefault(t){return!this.hasOwnProperty(t)}static _processStyleText(t,e){return St(t,e)}static _finalizeTemplate(t){const e=this.prototype._template;if(e&&!e.__polymerFinalized){e.__polymerFinalized=!0;const o=this.importPath;(function(t,e,o,i){if(!Fo){const s=e.content.querySelectorAll("style"),r=ne(e),n=function(t){let e=oe(t);return e?ae(e):[]}(o),a=e.content.firstElementChild;for(let o=0;o<n.length;o++){let s=n[o];s.textContent=t._processStyleText(s.textContent,i),e.content.insertBefore(s,a)}let l=0;for(let e=0;e<r.length;e++){let o=r[e],n=s[l];n!==o?(o=o.cloneNode(!0),n.parentNode.insertBefore(o,n)):l++,o.textContent=t._processStyleText(o.textContent,i)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(e,o),$t&&Fo&&Pt){const o=e.content.querySelectorAll("style");if(o){let e="";Array.from(o).forEach((t=>{e+=t.textContent,t.parentNode.removeChild(t)})),t._styleSheet=new CSSStyleSheet,t._styleSheet.replaceSync(e)}}})(this,e,t,o?Tt(o):""),this.prototype._bindTemplate(e)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(t){const e=le(this);if(e.attachShadow)return t?(e.shadowRoot||(e.attachShadow({mode:"open",shadyUpgradeFragment:t}),e.shadowRoot.appendChild(t),this.constructor._styleSheet&&(e.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Rt&&window.ShadyDOM&&window.ShadyDOM.flushInitial(e.shadowRoot),e.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(t){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,t)}resolveUrl(t,e){return!e&&this.importPath&&(e=Tt(this.importPath)),Tt(t,e)}static _parseTemplateContent(t,o,i){return o.dynamicFns=o.dynamicFns||this._properties,e._parseTemplateContent.call(this,t,o,i)}static _addTemplatePropertyEffect(t,o,i){return!jt||o in this._properties||i.info.part.signature&&i.info.part.signature.static||i.info.part.hostProp||t.nestedTemplate||console.warn(`Property '${o}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,t,o,i)}}})),Eo=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});class Oo{constructor(t,e){Bo(t,e);const o=e.reduce(((e,o,i)=>e+Io(o)+t[i+1]),t[0]);this.value=o.toString()}toString(){return this.value}}function Io(t){if(t instanceof Oo)return t.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${t}`)}const No=function(t,...e){Bo(t,e);const o=document.createElement("template");let i=e.reduce(((e,o,i)=>e+function(t){if(t instanceof HTMLTemplateElement)return t.innerHTML;if(t instanceof Oo)return Io(t);throw new Error(`non-template value passed to Polymer's html function: ${t}`)}(o)+t[i+1]),t[0]);return Eo&&(i=Eo.createHTML(i)),o.innerHTML=i,o},Bo=(t,e)=>{if(!Array.isArray(t)||!Array.isArray(t.raw)||e.length!==t.length-1)throw new TypeError("Invalid call to the html template tag")},jo=Po(HTMLElement),Ro=[];function Wo(t,e,o=t.getAttribute("dir")){e?t.setAttribute("dir",e):null!=o&&t.removeAttribute("dir")}function Uo(){return document.documentElement.getAttribute("dir")}new MutationObserver((function(){const t=Uo();Ro.forEach((e=>{Wo(e,t)}))})).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Ho=t=>class extends t{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>""===t?null:t}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),this.hasAttribute("dir")&&!this.__restoreSubscription||(this.__subscribe(),Wo(this,Uo(),null))}attributeChangedCallback(t,e,o){if(super.attributeChangedCallback(t,e,o),"dir"!==t)return;const i=Uo(),s=o===i&&-1===Ro.indexOf(this),r=!o&&e&&-1===Ro.indexOf(this),n=o!==i&&e===i;s||r?(this.__subscribe(),Wo(this,i,o)):n&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=Ro.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,e,o){("dir"!==o||""!==e||t.hasAttribute("dir"))&&super._valueToNodeAttribute(t,e,o)}_attributeToProperty(t,e,o){"dir"!==t||e?super._attributeToProperty(t,e,o):this.dir=""}__subscribe(){Ro.includes(this)||Ro.push(this)}__unsubscribe(){Ro.includes(this)&&Ro.splice(Ro.indexOf(this),1)}}
|
|
680
680
|
/**
|
|
681
681
|
* @license
|
|
682
682
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
@@ -2001,7 +2001,486 @@ const Xo=p`
|
|
|
2001
2001
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2002
2002
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2003
2003
|
*/
|
|
2004
|
-
const Qo=Vt((t=>"function"==typeof t.prototype.addController?t:class extends t{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach((t=>{t.hostConnected&&t.hostConnected()}))}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach((t=>{t.hostDisconnected&&t.hostDisconnected()}))}addController(t){this.__controllers.add(t),void 0!==this.$&&this.isConnected&&t.hostConnected&&t.hostConnected()}removeController(t){this.__controllers.delete(t)}})),ti=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,ei=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function oi(t,e){if("function"!=typeof t)return;const o=ti.exec(t.toString());if(o)try{t=new Function(o[1])}catch(t){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",t)}return t(e)}window.Vaadin=window.Vaadin||{};function ii(){
|
|
2004
|
+
const Qo=Vt((t=>"function"==typeof t.prototype.addController?t:class extends t{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach((t=>{t.hostConnected&&t.hostConnected()}))}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach((t=>{t.hostDisconnected&&t.hostDisconnected()}))}addController(t){this.__controllers.add(t),void 0!==this.$&&this.isConnected&&t.hostConnected&&t.hostConnected()}removeController(t){this.__controllers.delete(t)}})),ti=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,ei=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function oi(t,e){if("function"!=typeof t)return;const o=ti.exec(t.toString());if(o)try{t=new Function(o[1])}catch(t){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",t)}return t(e)}window.Vaadin=window.Vaadin||{};function ii(){
|
|
2005
|
+
/*! vaadin-dev-mode:start
|
|
2006
|
+
(function () {
|
|
2007
|
+
'use strict';
|
|
2008
|
+
|
|
2009
|
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
|
2010
|
+
return typeof obj;
|
|
2011
|
+
} : function (obj) {
|
|
2012
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
2013
|
+
};
|
|
2014
|
+
|
|
2015
|
+
var classCallCheck = function (instance, Constructor) {
|
|
2016
|
+
if (!(instance instanceof Constructor)) {
|
|
2017
|
+
throw new TypeError("Cannot call a class as a function");
|
|
2018
|
+
}
|
|
2019
|
+
};
|
|
2020
|
+
|
|
2021
|
+
var createClass = function () {
|
|
2022
|
+
function defineProperties(target, props) {
|
|
2023
|
+
for (var i = 0; i < props.length; i++) {
|
|
2024
|
+
var descriptor = props[i];
|
|
2025
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
2026
|
+
descriptor.configurable = true;
|
|
2027
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
2028
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2031
|
+
|
|
2032
|
+
return function (Constructor, protoProps, staticProps) {
|
|
2033
|
+
if (protoProps) defineProperties(Constructor.prototype, protoProps);
|
|
2034
|
+
if (staticProps) defineProperties(Constructor, staticProps);
|
|
2035
|
+
return Constructor;
|
|
2036
|
+
};
|
|
2037
|
+
}();
|
|
2038
|
+
|
|
2039
|
+
var getPolymerVersion = function getPolymerVersion() {
|
|
2040
|
+
return window.Polymer && window.Polymer.version;
|
|
2041
|
+
};
|
|
2042
|
+
|
|
2043
|
+
var StatisticsGatherer = function () {
|
|
2044
|
+
function StatisticsGatherer(logger) {
|
|
2045
|
+
classCallCheck(this, StatisticsGatherer);
|
|
2046
|
+
|
|
2047
|
+
this.now = new Date().getTime();
|
|
2048
|
+
this.logger = logger;
|
|
2049
|
+
}
|
|
2050
|
+
|
|
2051
|
+
createClass(StatisticsGatherer, [{
|
|
2052
|
+
key: 'frameworkVersionDetectors',
|
|
2053
|
+
value: function frameworkVersionDetectors() {
|
|
2054
|
+
return {
|
|
2055
|
+
'Flow': function Flow() {
|
|
2056
|
+
if (window.Vaadin && window.Vaadin.Flow && window.Vaadin.Flow.clients) {
|
|
2057
|
+
var flowVersions = Object.keys(window.Vaadin.Flow.clients).map(function (key) {
|
|
2058
|
+
return window.Vaadin.Flow.clients[key];
|
|
2059
|
+
}).filter(function (client) {
|
|
2060
|
+
return client.getVersionInfo;
|
|
2061
|
+
}).map(function (client) {
|
|
2062
|
+
return client.getVersionInfo().flow;
|
|
2063
|
+
});
|
|
2064
|
+
if (flowVersions.length > 0) {
|
|
2065
|
+
return flowVersions[0];
|
|
2066
|
+
}
|
|
2067
|
+
}
|
|
2068
|
+
},
|
|
2069
|
+
'Vaadin Framework': function VaadinFramework() {
|
|
2070
|
+
if (window.vaadin && window.vaadin.clients) {
|
|
2071
|
+
var frameworkVersions = Object.values(window.vaadin.clients).filter(function (client) {
|
|
2072
|
+
return client.getVersionInfo;
|
|
2073
|
+
}).map(function (client) {
|
|
2074
|
+
return client.getVersionInfo().vaadinVersion;
|
|
2075
|
+
});
|
|
2076
|
+
if (frameworkVersions.length > 0) {
|
|
2077
|
+
return frameworkVersions[0];
|
|
2078
|
+
}
|
|
2079
|
+
}
|
|
2080
|
+
},
|
|
2081
|
+
'AngularJs': function AngularJs() {
|
|
2082
|
+
if (window.angular && window.angular.version && window.angular.version) {
|
|
2083
|
+
return window.angular.version.full;
|
|
2084
|
+
}
|
|
2085
|
+
},
|
|
2086
|
+
'Angular': function Angular() {
|
|
2087
|
+
if (window.ng) {
|
|
2088
|
+
var tags = document.querySelectorAll("[ng-version]");
|
|
2089
|
+
if (tags.length > 0) {
|
|
2090
|
+
return tags[0].getAttribute("ng-version");
|
|
2091
|
+
}
|
|
2092
|
+
return "Unknown";
|
|
2093
|
+
}
|
|
2094
|
+
},
|
|
2095
|
+
'Backbone.js': function BackboneJs() {
|
|
2096
|
+
if (window.Backbone) {
|
|
2097
|
+
return window.Backbone.VERSION;
|
|
2098
|
+
}
|
|
2099
|
+
},
|
|
2100
|
+
'React': function React() {
|
|
2101
|
+
var reactSelector = '[data-reactroot], [data-reactid]';
|
|
2102
|
+
if (!!document.querySelector(reactSelector)) {
|
|
2103
|
+
// React does not publish the version by default
|
|
2104
|
+
return "unknown";
|
|
2105
|
+
}
|
|
2106
|
+
},
|
|
2107
|
+
'Ember': function Ember() {
|
|
2108
|
+
if (window.Em && window.Em.VERSION) {
|
|
2109
|
+
return window.Em.VERSION;
|
|
2110
|
+
} else if (window.Ember && window.Ember.VERSION) {
|
|
2111
|
+
return window.Ember.VERSION;
|
|
2112
|
+
}
|
|
2113
|
+
},
|
|
2114
|
+
'jQuery': function (_jQuery) {
|
|
2115
|
+
function jQuery() {
|
|
2116
|
+
return _jQuery.apply(this, arguments);
|
|
2117
|
+
}
|
|
2118
|
+
|
|
2119
|
+
jQuery.toString = function () {
|
|
2120
|
+
return _jQuery.toString();
|
|
2121
|
+
};
|
|
2122
|
+
|
|
2123
|
+
return jQuery;
|
|
2124
|
+
}(function () {
|
|
2125
|
+
if (typeof jQuery === 'function' && jQuery.prototype.jquery !== undefined) {
|
|
2126
|
+
return jQuery.prototype.jquery;
|
|
2127
|
+
}
|
|
2128
|
+
}),
|
|
2129
|
+
'Polymer': function Polymer() {
|
|
2130
|
+
var version = getPolymerVersion();
|
|
2131
|
+
if (version) {
|
|
2132
|
+
return version;
|
|
2133
|
+
}
|
|
2134
|
+
},
|
|
2135
|
+
'LitElement': function LitElement() {
|
|
2136
|
+
var version = window.litElementVersions && window.litElementVersions[0];
|
|
2137
|
+
if (version) {
|
|
2138
|
+
return version;
|
|
2139
|
+
}
|
|
2140
|
+
},
|
|
2141
|
+
'LitHtml': function LitHtml() {
|
|
2142
|
+
var version = window.litHtmlVersions && window.litHtmlVersions[0];
|
|
2143
|
+
if (version) {
|
|
2144
|
+
return version;
|
|
2145
|
+
}
|
|
2146
|
+
},
|
|
2147
|
+
'Vue.js': function VueJs() {
|
|
2148
|
+
if (window.Vue) {
|
|
2149
|
+
return window.Vue.version;
|
|
2150
|
+
}
|
|
2151
|
+
}
|
|
2152
|
+
};
|
|
2153
|
+
}
|
|
2154
|
+
}, {
|
|
2155
|
+
key: 'getUsedVaadinElements',
|
|
2156
|
+
value: function getUsedVaadinElements(elements) {
|
|
2157
|
+
var version = getPolymerVersion();
|
|
2158
|
+
var elementClasses = void 0;
|
|
2159
|
+
// NOTE: In case you edit the code here, YOU MUST UPDATE any statistics reporting code in Flow.
|
|
2160
|
+
// Check all locations calling the method getEntries() in
|
|
2161
|
+
// https://github.com/vaadin/flow/blob/master/flow-server/src/main/java/com/vaadin/flow/internal/UsageStatistics.java#L106
|
|
2162
|
+
// Currently it is only used by BootstrapHandler.
|
|
2163
|
+
if (version && version.indexOf('2') === 0) {
|
|
2164
|
+
// Polymer 2: components classes are stored in window.Vaadin
|
|
2165
|
+
elementClasses = Object.keys(window.Vaadin).map(function (c) {
|
|
2166
|
+
return window.Vaadin[c];
|
|
2167
|
+
}).filter(function (c) {
|
|
2168
|
+
return c.is;
|
|
2169
|
+
});
|
|
2170
|
+
} else {
|
|
2171
|
+
// Polymer 3: components classes are stored in window.Vaadin.registrations
|
|
2172
|
+
elementClasses = window.Vaadin.registrations || [];
|
|
2173
|
+
}
|
|
2174
|
+
elementClasses.forEach(function (klass) {
|
|
2175
|
+
var version = klass.version ? klass.version : "0.0.0";
|
|
2176
|
+
elements[klass.is] = { version: version };
|
|
2177
|
+
});
|
|
2178
|
+
}
|
|
2179
|
+
}, {
|
|
2180
|
+
key: 'getUsedVaadinThemes',
|
|
2181
|
+
value: function getUsedVaadinThemes(themes) {
|
|
2182
|
+
['Lumo', 'Material'].forEach(function (themeName) {
|
|
2183
|
+
var theme;
|
|
2184
|
+
var version = getPolymerVersion();
|
|
2185
|
+
if (version && version.indexOf('2') === 0) {
|
|
2186
|
+
// Polymer 2: themes are stored in window.Vaadin
|
|
2187
|
+
theme = window.Vaadin[themeName];
|
|
2188
|
+
} else {
|
|
2189
|
+
// Polymer 3: themes are stored in custom element registry
|
|
2190
|
+
theme = customElements.get('vaadin-' + themeName.toLowerCase() + '-styles');
|
|
2191
|
+
}
|
|
2192
|
+
if (theme && theme.version) {
|
|
2193
|
+
themes[themeName] = { version: theme.version };
|
|
2194
|
+
}
|
|
2195
|
+
});
|
|
2196
|
+
}
|
|
2197
|
+
}, {
|
|
2198
|
+
key: 'getFrameworks',
|
|
2199
|
+
value: function getFrameworks(frameworks) {
|
|
2200
|
+
var detectors = this.frameworkVersionDetectors();
|
|
2201
|
+
Object.keys(detectors).forEach(function (framework) {
|
|
2202
|
+
var detector = detectors[framework];
|
|
2203
|
+
try {
|
|
2204
|
+
var version = detector();
|
|
2205
|
+
if (version) {
|
|
2206
|
+
frameworks[framework] = { version: version };
|
|
2207
|
+
}
|
|
2208
|
+
} catch (e) {}
|
|
2209
|
+
});
|
|
2210
|
+
}
|
|
2211
|
+
}, {
|
|
2212
|
+
key: 'gather',
|
|
2213
|
+
value: function gather(storage) {
|
|
2214
|
+
var storedStats = storage.read();
|
|
2215
|
+
var gatheredStats = {};
|
|
2216
|
+
var types = ["elements", "frameworks", "themes"];
|
|
2217
|
+
|
|
2218
|
+
types.forEach(function (type) {
|
|
2219
|
+
gatheredStats[type] = {};
|
|
2220
|
+
if (!storedStats[type]) {
|
|
2221
|
+
storedStats[type] = {};
|
|
2222
|
+
}
|
|
2223
|
+
});
|
|
2224
|
+
|
|
2225
|
+
var previousStats = JSON.stringify(storedStats);
|
|
2226
|
+
|
|
2227
|
+
this.getUsedVaadinElements(gatheredStats.elements);
|
|
2228
|
+
this.getFrameworks(gatheredStats.frameworks);
|
|
2229
|
+
this.getUsedVaadinThemes(gatheredStats.themes);
|
|
2230
|
+
|
|
2231
|
+
var now = this.now;
|
|
2232
|
+
types.forEach(function (type) {
|
|
2233
|
+
var keys = Object.keys(gatheredStats[type]);
|
|
2234
|
+
keys.forEach(function (key) {
|
|
2235
|
+
if (!storedStats[type][key] || _typeof(storedStats[type][key]) != _typeof({})) {
|
|
2236
|
+
storedStats[type][key] = { firstUsed: now };
|
|
2237
|
+
}
|
|
2238
|
+
// Discards any previously logged version number
|
|
2239
|
+
storedStats[type][key].version = gatheredStats[type][key].version;
|
|
2240
|
+
storedStats[type][key].lastUsed = now;
|
|
2241
|
+
});
|
|
2242
|
+
});
|
|
2243
|
+
|
|
2244
|
+
var newStats = JSON.stringify(storedStats);
|
|
2245
|
+
storage.write(newStats);
|
|
2246
|
+
if (newStats != previousStats && Object.keys(storedStats).length > 0) {
|
|
2247
|
+
this.logger.debug("New stats: " + newStats);
|
|
2248
|
+
}
|
|
2249
|
+
}
|
|
2250
|
+
}]);
|
|
2251
|
+
return StatisticsGatherer;
|
|
2252
|
+
}();
|
|
2253
|
+
|
|
2254
|
+
var StatisticsStorage = function () {
|
|
2255
|
+
function StatisticsStorage(key) {
|
|
2256
|
+
classCallCheck(this, StatisticsStorage);
|
|
2257
|
+
|
|
2258
|
+
this.key = key;
|
|
2259
|
+
}
|
|
2260
|
+
|
|
2261
|
+
createClass(StatisticsStorage, [{
|
|
2262
|
+
key: 'read',
|
|
2263
|
+
value: function read() {
|
|
2264
|
+
var localStorageStatsString = localStorage.getItem(this.key);
|
|
2265
|
+
try {
|
|
2266
|
+
return JSON.parse(localStorageStatsString ? localStorageStatsString : '{}');
|
|
2267
|
+
} catch (e) {
|
|
2268
|
+
return {};
|
|
2269
|
+
}
|
|
2270
|
+
}
|
|
2271
|
+
}, {
|
|
2272
|
+
key: 'write',
|
|
2273
|
+
value: function write(data) {
|
|
2274
|
+
localStorage.setItem(this.key, data);
|
|
2275
|
+
}
|
|
2276
|
+
}, {
|
|
2277
|
+
key: 'clear',
|
|
2278
|
+
value: function clear() {
|
|
2279
|
+
localStorage.removeItem(this.key);
|
|
2280
|
+
}
|
|
2281
|
+
}, {
|
|
2282
|
+
key: 'isEmpty',
|
|
2283
|
+
value: function isEmpty() {
|
|
2284
|
+
var storedStats = this.read();
|
|
2285
|
+
var empty = true;
|
|
2286
|
+
Object.keys(storedStats).forEach(function (key) {
|
|
2287
|
+
if (Object.keys(storedStats[key]).length > 0) {
|
|
2288
|
+
empty = false;
|
|
2289
|
+
}
|
|
2290
|
+
});
|
|
2291
|
+
|
|
2292
|
+
return empty;
|
|
2293
|
+
}
|
|
2294
|
+
}]);
|
|
2295
|
+
return StatisticsStorage;
|
|
2296
|
+
}();
|
|
2297
|
+
|
|
2298
|
+
var StatisticsSender = function () {
|
|
2299
|
+
function StatisticsSender(url, logger) {
|
|
2300
|
+
classCallCheck(this, StatisticsSender);
|
|
2301
|
+
|
|
2302
|
+
this.url = url;
|
|
2303
|
+
this.logger = logger;
|
|
2304
|
+
}
|
|
2305
|
+
|
|
2306
|
+
createClass(StatisticsSender, [{
|
|
2307
|
+
key: 'send',
|
|
2308
|
+
value: function send(data, errorHandler) {
|
|
2309
|
+
var logger = this.logger;
|
|
2310
|
+
|
|
2311
|
+
if (navigator.onLine === false) {
|
|
2312
|
+
logger.debug("Offline, can't send");
|
|
2313
|
+
errorHandler();
|
|
2314
|
+
return;
|
|
2315
|
+
}
|
|
2316
|
+
logger.debug("Sending data to " + this.url);
|
|
2317
|
+
|
|
2318
|
+
var req = new XMLHttpRequest();
|
|
2319
|
+
req.withCredentials = true;
|
|
2320
|
+
req.addEventListener("load", function () {
|
|
2321
|
+
// Stats sent, nothing more to do
|
|
2322
|
+
logger.debug("Response: " + req.responseText);
|
|
2323
|
+
});
|
|
2324
|
+
req.addEventListener("error", function () {
|
|
2325
|
+
logger.debug("Send failed");
|
|
2326
|
+
errorHandler();
|
|
2327
|
+
});
|
|
2328
|
+
req.addEventListener("abort", function () {
|
|
2329
|
+
logger.debug("Send aborted");
|
|
2330
|
+
errorHandler();
|
|
2331
|
+
});
|
|
2332
|
+
req.open("POST", this.url);
|
|
2333
|
+
req.setRequestHeader("Content-Type", "application/json");
|
|
2334
|
+
req.send(data);
|
|
2335
|
+
}
|
|
2336
|
+
}]);
|
|
2337
|
+
return StatisticsSender;
|
|
2338
|
+
}();
|
|
2339
|
+
|
|
2340
|
+
var StatisticsLogger = function () {
|
|
2341
|
+
function StatisticsLogger(id) {
|
|
2342
|
+
classCallCheck(this, StatisticsLogger);
|
|
2343
|
+
|
|
2344
|
+
this.id = id;
|
|
2345
|
+
}
|
|
2346
|
+
|
|
2347
|
+
createClass(StatisticsLogger, [{
|
|
2348
|
+
key: '_isDebug',
|
|
2349
|
+
value: function _isDebug() {
|
|
2350
|
+
return localStorage.getItem("vaadin." + this.id + ".debug");
|
|
2351
|
+
}
|
|
2352
|
+
}, {
|
|
2353
|
+
key: 'debug',
|
|
2354
|
+
value: function debug(msg) {
|
|
2355
|
+
if (this._isDebug()) {
|
|
2356
|
+
console.info(this.id + ": " + msg);
|
|
2357
|
+
}
|
|
2358
|
+
}
|
|
2359
|
+
}]);
|
|
2360
|
+
return StatisticsLogger;
|
|
2361
|
+
}();
|
|
2362
|
+
|
|
2363
|
+
var UsageStatistics = function () {
|
|
2364
|
+
function UsageStatistics() {
|
|
2365
|
+
classCallCheck(this, UsageStatistics);
|
|
2366
|
+
|
|
2367
|
+
this.now = new Date();
|
|
2368
|
+
this.timeNow = this.now.getTime();
|
|
2369
|
+
this.gatherDelay = 10; // Delay between loading this file and gathering stats
|
|
2370
|
+
this.initialDelay = 24 * 60 * 60;
|
|
2371
|
+
|
|
2372
|
+
this.logger = new StatisticsLogger("statistics");
|
|
2373
|
+
this.storage = new StatisticsStorage("vaadin.statistics.basket");
|
|
2374
|
+
this.gatherer = new StatisticsGatherer(this.logger);
|
|
2375
|
+
this.sender = new StatisticsSender("https://tools.vaadin.com/usage-stats/submit", this.logger);
|
|
2376
|
+
}
|
|
2377
|
+
|
|
2378
|
+
createClass(UsageStatistics, [{
|
|
2379
|
+
key: 'maybeGatherAndSend',
|
|
2380
|
+
value: function maybeGatherAndSend() {
|
|
2381
|
+
var _this = this;
|
|
2382
|
+
|
|
2383
|
+
if (localStorage.getItem(UsageStatistics.optOutKey)) {
|
|
2384
|
+
return;
|
|
2385
|
+
}
|
|
2386
|
+
this.gatherer.gather(this.storage);
|
|
2387
|
+
setTimeout(function () {
|
|
2388
|
+
_this.maybeSend();
|
|
2389
|
+
}, this.gatherDelay * 1000);
|
|
2390
|
+
}
|
|
2391
|
+
}, {
|
|
2392
|
+
key: 'lottery',
|
|
2393
|
+
value: function lottery() {
|
|
2394
|
+
return true;
|
|
2395
|
+
}
|
|
2396
|
+
}, {
|
|
2397
|
+
key: 'currentMonth',
|
|
2398
|
+
value: function currentMonth() {
|
|
2399
|
+
return this.now.getYear() * 12 + this.now.getMonth();
|
|
2400
|
+
}
|
|
2401
|
+
}, {
|
|
2402
|
+
key: 'maybeSend',
|
|
2403
|
+
value: function maybeSend() {
|
|
2404
|
+
var firstUse = Number(localStorage.getItem(UsageStatistics.firstUseKey));
|
|
2405
|
+
var monthProcessed = Number(localStorage.getItem(UsageStatistics.monthProcessedKey));
|
|
2406
|
+
|
|
2407
|
+
if (!firstUse) {
|
|
2408
|
+
// Use a grace period to avoid interfering with tests, incognito mode etc
|
|
2409
|
+
firstUse = this.timeNow;
|
|
2410
|
+
localStorage.setItem(UsageStatistics.firstUseKey, firstUse);
|
|
2411
|
+
}
|
|
2412
|
+
|
|
2413
|
+
if (this.timeNow < firstUse + this.initialDelay * 1000) {
|
|
2414
|
+
this.logger.debug("No statistics will be sent until the initial delay of " + this.initialDelay + "s has passed");
|
|
2415
|
+
return;
|
|
2416
|
+
}
|
|
2417
|
+
if (this.currentMonth() <= monthProcessed) {
|
|
2418
|
+
this.logger.debug("This month has already been processed");
|
|
2419
|
+
return;
|
|
2420
|
+
}
|
|
2421
|
+
localStorage.setItem(UsageStatistics.monthProcessedKey, this.currentMonth());
|
|
2422
|
+
// Use random sampling
|
|
2423
|
+
if (this.lottery()) {
|
|
2424
|
+
this.logger.debug("Congratulations, we have a winner!");
|
|
2425
|
+
} else {
|
|
2426
|
+
this.logger.debug("Sorry, no stats from you this time");
|
|
2427
|
+
return;
|
|
2428
|
+
}
|
|
2429
|
+
|
|
2430
|
+
this.send();
|
|
2431
|
+
}
|
|
2432
|
+
}, {
|
|
2433
|
+
key: 'send',
|
|
2434
|
+
value: function send() {
|
|
2435
|
+
// Ensure we have the latest data
|
|
2436
|
+
this.gatherer.gather(this.storage);
|
|
2437
|
+
|
|
2438
|
+
// Read, send and clean up
|
|
2439
|
+
var data = this.storage.read();
|
|
2440
|
+
data["firstUse"] = Number(localStorage.getItem(UsageStatistics.firstUseKey));
|
|
2441
|
+
data["usageStatisticsVersion"] = UsageStatistics.version;
|
|
2442
|
+
var info = 'This request contains usage statistics gathered from the application running in development mode. \n\nStatistics gathering is automatically disabled and excluded from production builds.\n\nFor details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.\n\n\n\n';
|
|
2443
|
+
var self = this;
|
|
2444
|
+
this.sender.send(info + JSON.stringify(data), function () {
|
|
2445
|
+
// Revert the 'month processed' flag
|
|
2446
|
+
localStorage.setItem(UsageStatistics.monthProcessedKey, self.currentMonth() - 1);
|
|
2447
|
+
});
|
|
2448
|
+
}
|
|
2449
|
+
}], [{
|
|
2450
|
+
key: 'version',
|
|
2451
|
+
get: function get$1() {
|
|
2452
|
+
return '2.1.2';
|
|
2453
|
+
}
|
|
2454
|
+
}, {
|
|
2455
|
+
key: 'firstUseKey',
|
|
2456
|
+
get: function get$1() {
|
|
2457
|
+
return 'vaadin.statistics.firstuse';
|
|
2458
|
+
}
|
|
2459
|
+
}, {
|
|
2460
|
+
key: 'monthProcessedKey',
|
|
2461
|
+
get: function get$1() {
|
|
2462
|
+
return 'vaadin.statistics.monthProcessed';
|
|
2463
|
+
}
|
|
2464
|
+
}, {
|
|
2465
|
+
key: 'optOutKey',
|
|
2466
|
+
get: function get$1() {
|
|
2467
|
+
return 'vaadin.statistics.optout';
|
|
2468
|
+
}
|
|
2469
|
+
}]);
|
|
2470
|
+
return UsageStatistics;
|
|
2471
|
+
}();
|
|
2472
|
+
|
|
2473
|
+
try {
|
|
2474
|
+
window.Vaadin = window.Vaadin || {};
|
|
2475
|
+
window.Vaadin.usageStatsChecker = window.Vaadin.usageStatsChecker || new UsageStatistics();
|
|
2476
|
+
window.Vaadin.usageStatsChecker.maybeGatherAndSend();
|
|
2477
|
+
} catch (e) {
|
|
2478
|
+
// Intentionally ignored as this is not a problem in the app being developed
|
|
2479
|
+
}
|
|
2480
|
+
|
|
2481
|
+
}());
|
|
2482
|
+
|
|
2483
|
+
vaadin-dev-mode:end **/}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{return!!localStorage.getItem("vaadin.developmentmode.force")||["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0&&(ei?!(ei&&Object.keys(ei).map((t=>ei[t])).filter((t=>t.productionMode)).length>0):!oi((function(){return!0})))}catch(t){return!1}}());
|
|
2005
2484
|
/**
|
|
2006
2485
|
* @license
|
|
2007
2486
|
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=!1,m=[],y=[],$=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&f.l?w(b):f.raf(b))},v=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},b=()=>{v(m),v(y),(d=m.length>0)&&f.raf(b)},w=e=>h().then(e),S=$(y,!0),g={},j=e=>"object"==(e=typeof e)||"function"===e;function k(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>O,map:()=>C,ok:()=>E,unwrap:()=>x,unwrapErr:()=>P});var E=e=>({isOk:!0,isErr:!1,value:e}),O=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>E(e))):E(n)}if(e.isErr)return O(e.value);throw"should never get here"}var M,x=e=>{if(e.isOk)return e.value;throw e.value},P=e=>{if(e.isErr)return e.value;throw e.value},A=(e,t,...n)=>{let l=null,o=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!j(l))&&(l+=""),s&&i?r[r.length-1].i+=l:r.push(s?R(null,l):l),i=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=R(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=o,u},R=(e,t)=>({l:0,m:e,i:t,$:null,h:null,u:null,p:null}),D={},H=(e,t,l)=>{const o=(e=>n(e).$hostElement$)(e);return{emit:e=>T(o,t,{bubbles:!!(4&l),composed:!!(2&l),cancelable:!!(1&l),detail:e})}},T=(e,t,n)=>{const l=f.ce(t,n);return e.dispatchEvent(l),l},N=new WeakMap,U=e=>"sc-"+e.v,F=(e,t,n,l,s,i)=>{if(n!==l){let r=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=W(n),s=W(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if("ref"===t)l&&l(e);else if(r||"o"!==t[0]||"n"!==t[1]){const o=j(l);if((r||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||("function"==typeof e.__lookupSetter__(t)?e[t]=o:e.setAttribute(t,o))}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&i||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(q);t=t.replace(G,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},L=/\s/,W=e=>e?e.split(L):[],q="Capture",G=RegExp(q+"$"),V=(e,t,n)=>{const l=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||g,s=t.u||g;for(const e of _(Object.keys(o)))e in s||F(l,e,o[e],void 0,n,t.l);for(const e of _(Object.keys(s)))F(l,e,o[e],s[e],n,t.l)};function _(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var z=!1,B=!1,I=(e,t,n)=>{const l=t.h[n];let o,s,i=0;if(null!==l.i)o=l.$=a.createTextNode(l.i);else if(o=l.$=a.createElement(l.m),V(null,l,B),o.getRootNode().querySelector("body"),l.h)for(i=0;i<l.h.length;++i)s=I(e,l,i),s&&o.appendChild(s);return o["s-hn"]=M,o},J=(e,t,n,l,o,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===M&&(r=r.shadowRoot);o<=s;++o)l[o]&&(i=I(null,n,o),i&&(l[o].$=i,Z(r,i,t)))},K=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;Y(t),e&&e.remove()}}},Q=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),X=(e,t,n=!1)=>{const l=t.$=e.$,o=e.h,s=t.h,i=t.i;null===i?(("slot"!==t.m||z)&&V(e,t,B),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,h=t[0],p=t[f],d=l.length-1,m=l[0],y=l[d];for(;r<=f&&c<=d;)if(null==h)h=t[++r];else if(null==p)p=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--d];else if(Q(h,m,o))X(h,m,o),h=t[++r],m=l[++c];else if(Q(p,y,o))X(p,y,o),p=t[--f],y=l[--d];else if(Q(h,y,o))X(h,y,o),Z(e,h.$,p.$.nextSibling),h=t[++r],y=l[--d];else if(Q(p,m,o))X(p,m,o),Z(e,p.$,h.$),p=t[--f],m=l[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(i=t[u],i.m!==m.m?s=I(t&&t[c],n,u):(X(i,m,o),t[u]=void 0,s=i.$),m=l[++c]):(s=I(t&&t[c],n,c),m=l[++c]),s&&Z(h.$.parentNode,s,h.$)}r>f?J(e,null==l[d+1]?null:l[d+1].$,n,l,c,d):c>d&&K(t,r,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),J(l,null,t,s,0,s.length-1)):!n&&null!==o&&K(o,0,o.length-1)):e.i!==i&&(l.data=i)},Y=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(Y)},Z=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),ee=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},te=(e,t)=>{if(e.l|=16,!(4&e.l))return ee(e,e.j),S((()=>ne(e,t)));e.l|=512},ne=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);return t&&(e.l|=256,e.k&&(e.k.map((([e,t])=>ue(n,e,t))),e.k=void 0)),le(void 0,(()=>se(e,n,t)))},le=(e,t)=>oe(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),oe=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,se=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=U(t),o=r.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,i=N.get(e=e.head||e);if(i||N.set(e,i=new Set),!i.has(l)){{s=a.createElement("style"),s.innerHTML=o;const l=null!=(n=f.C)?n:k(a);if(null!=l&&s.setAttribute("nonce",l),!(1&t.l))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(p){const t=new CSSStyleSheet;t.replaceSync(o),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=o+t.innerHTML:e.prepend(s)}else e.append(s);1&t.l&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.l&&(s.innerHTML+=c),i&&i.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&2&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);ie(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>re(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},ie=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.O,s=e.M||R(null,null),i=(e=>e&&e.m===D)(t)?t:A(null,null,t);if(M=l.tagName,o.P&&(i.u=i.u||{},o.P.map((([e,t])=>i.u[t]=l[e]))),n&&i.u)for(const e of Object.keys(i.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=l[e]);i.m=null,i.l|=4,e.M=i,i.$=s.$=l.shadowRoot||l,z=!!(1&o.l),X(s,i,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},re=e=>{const t=e.$hostElement$,n=e.j;ue(e.t,"componentDidRender"),64&e.l||(e.l|=64,ae(t),e.A(t),n||ce()),e.S&&(e.S(),e.S=void 0),512&e.l&&w((()=>te(e,!1))),e.l&=-517},ce=()=>{ae(a.documentElement),w((()=>T(u,"appload",{detail:{namespace:"helper-filters"}})))},ue=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ae=e=>e.classList.add("hydrated"),fe=(e,t,l)=>{var o,s;const i=e.prototype;if(t.R){const r=Object.entries(null!=(o=t.R)?o:{});if(r.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).D.get(t))(0,e)},set(l){((e,t,l,o)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${o.v}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=s.D.get(t),r=s.l,c=s.t;l=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(l,o.R[t][0]),8&r&&void 0!==i||l===i||Number.isNaN(i)&&Number.isNaN(l)||(s.D.set(t,l),c&&2==(18&r)&&te(s,!1))})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var r;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&s!==o){const n=l.t,i=null==(r=t.H)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.H)?s:{}),...r.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.P)||o.push([e,s])),s}))]))}}return e},he=(e,l={})=>{var o;const h=[],d=l.exclude||[],m=u.customElements,y=a.head,$=y.querySelector("meta[charset]"),v=a.createElement("style"),b=[];let w,S=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((l=>{const o={l:l[0],v:l[1],R:l[2],T:l[3]};4&o.l&&(g=!0),o.R=l[2],o.T=l[3],o.P=[];const c=o.v,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,O:n,D:new Map};l.N=new Promise((e=>l.A=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,o),1&o.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${o.v}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,pe(this,e,o.T)),w&&(clearTimeout(w),w=null),S?b.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.O,o=()=>{};if(1&t.l)pe(e,t,l.T),(null==t?void 0:t.t)||(null==t?void 0:t.N)&&t.N.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ee(t,t.j=n);break}}l.R&&Object.entries(l.R).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.U){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.U;if(!n)return;const l=i.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(i.set(n,e),e[t])),s)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.v}#${t.F}" was not found`);l.isProxied||(fe(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,o()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=U(n);if(!r.has(t)){const l=()=>{};((e,t,n)=>{let l=r.get(e);p&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,r.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.j,c=()=>te(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);e.L&&(e.L.map((e=>e())),e.L=void 0),(null==e?void 0:e.t)||(null==e?void 0:e.N)&&e.N.then((()=>{}))}})()))}componentOnReady(){return n(this).N}};o.U=e[0],d.includes(c)||m.get(c)||(h.push(c),m.define(c,fe(u,o,1)))}))})),h.length>0&&(g&&(v.textContent+=c),v.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(o=f.C)?o:k(a);null!=e&&v.setAttribute("nonce",e),y.insertBefore(v,$?$.nextSibling:y.firstChild)}S=!1,b.length?b.map((e=>e.connectedCallback())):f.jmp((()=>w=setTimeout(ce,30)))},pe=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=e,i=de(t,o),r=me(n);f.ael(s,l,i,r),(t.L=t.L||[]).push((()=>f.rel(s,l,i,r)))}))},de=(e,t)=>n=>{var l;try{256&e.l?null==(l=e.t)||l[t](n):(e.k=e.k||[]).push([t,n])}catch(e){s(e)}},me=e=>({passive:!!(1&e),capture:!!(2&e)}),ye=e=>f.C=e;export{he as b,H as c,A as h,h as p,l as r,ye as s}
|
|
@@ -1015,6 +1015,8 @@ export declare namespace JSXBase {
|
|
|
1015
1015
|
autoPlay?: boolean;
|
|
1016
1016
|
autoplay?: boolean | string;
|
|
1017
1017
|
controls?: boolean;
|
|
1018
|
+
controlslist?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
|
|
1019
|
+
controlsList?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
|
|
1018
1020
|
crossOrigin?: string;
|
|
1019
1021
|
crossorigin?: string;
|
|
1020
1022
|
loop?: boolean;
|
|
@@ -1564,6 +1566,10 @@ export declare namespace JSXBase {
|
|
|
1564
1566
|
onSubmitCapture?: (event: Event) => void;
|
|
1565
1567
|
onInvalid?: (event: Event) => void;
|
|
1566
1568
|
onInvalidCapture?: (event: Event) => void;
|
|
1569
|
+
onBeforeToggle?: (event: Event) => void;
|
|
1570
|
+
onBeforeToggleCapture?: (event: Event) => void;
|
|
1571
|
+
onToggle?: (event: Event) => void;
|
|
1572
|
+
onToggleCapture?: (event: Event) => void;
|
|
1567
1573
|
onLoad?: (event: Event) => void;
|
|
1568
1574
|
onLoadCapture?: (event: Event) => void;
|
|
1569
1575
|
onError?: (event: Event) => void;
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,m=[],y=[],$=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&f.l?w(b):f.raf(b))},v=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},b=()=>{v(m),v(y),(p=m.length>0)&&f.raf(b)},w=e=>h().then(e),S=$(y,!0),g={},j=e=>"object"==(e=typeof e)||"function"===e;function k(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>O,map:()=>C,ok:()=>E,unwrap:()=>x,unwrapErr:()=>P});var E=e=>({isOk:!0,isErr:!1,value:e}),O=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>E(e))):E(n)}if(e.isErr)return O(e.value);throw"should never get here"}var M,x=e=>{if(e.isOk)return e.value;throw e.value},P=e=>{if(e.isErr)return e.value;throw e.value},R=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!j(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?A(null,l):l),r=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=A(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=o,u},A=(e,t)=>({l:0,m:e,i:t,$:null,h:null,u:null,p:null}),T={},D=(e,t,l)=>{const o=(e=>n(e).$hostElement$)(e);return{emit:e=>H(o,t,{bubbles:!!(4&l),composed:!!(2&l),cancelable:!!(1&l),detail:e})}},H=(e,t,n)=>{const l=f.ce(t,n);return e.dispatchEvent(l),l},N=new WeakMap,U=e=>"sc-"+e.v,F=(e,t,n,l,s,r)=>{if(n!==l){let i=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=W(n),s=W(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const o=j(l);if((i||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(q);t=t.replace(G,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},L=/\s/,W=e=>e?e.split(L):[],q="Capture",G=RegExp(q+"$"),V=(e,t,n)=>{const l=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||g,s=t.u||g;for(const e of _(Object.keys(o)))e in s||F(l,e,o[e],void 0,n,t.l);for(const e of _(Object.keys(s)))F(l,e,o[e],s[e],n,t.l)};function _(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var z=!1,B=!1,I=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.$=a.createTextNode(l.i);else if(o=l.$=a.createElement(l.m),V(null,l,B),o.getRootNode().querySelector("body"),l.h)for(r=0;r<l.h.length;++r)s=I(e,l,r),s&&o.appendChild(s);return o["s-hn"]=M,o},J=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===M&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=I(null,n,o),r&&(l[o].$=r,Z(i,r,t)))},K=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;Y(t),e&&e.remove()}}},Q=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),X=(e,t,n=!1)=>{const l=t.$=e.$,o=e.h,s=t.h,r=t.i;null===r?(("slot"!==t.m||z)&&V(e,t,B),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],p=l.length-1,m=l[0],y=l[p];for(;i<=f&&c<=p;)if(null==h)h=t[++i];else if(null==d)d=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--p];else if(Q(h,m,o))X(h,m,o),h=t[++i],m=l[++c];else if(Q(d,y,o))X(d,y,o),d=t[--f],y=l[--p];else if(Q(h,y,o))X(h,y,o),Z(e,h.$,d.$.nextSibling),h=t[++i],y=l[--p];else if(Q(d,m,o))X(d,m,o),Z(e,d.$,h.$),d=t[--f],m=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(r=t[u],r.m!==m.m?s=I(t&&t[c],n,u):(X(r,m,o),t[u]=void 0,s=r.$),m=l[++c]):(s=I(t&&t[c],n,c),m=l[++c]),s&&Z(h.$.parentNode,s,h.$)}i>f?J(e,null==l[p+1]?null:l[p+1].$,n,l,c,p):c>p&&K(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),J(l,null,t,s,0,s.length-1)):!n&&null!==o&&K(o,0,o.length-1)):e.i!==r&&(l.data=r)},Y=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(Y)},Z=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),ee=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},te=(e,t)=>{if(e.l|=16,!(4&e.l))return ee(e,e.j),S((()=>ne(e,t)));e.l|=512},ne=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);return t&&(e.l|=256,e.k&&(e.k.map((([e,t])=>ue(n,e,t))),e.k=void 0)),le(void 0,(()=>se(e,n,t)))},le=(e,t)=>oe(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),oe=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,se=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=U(t),o=i.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,r=N.get(e=e.head||e);if(r||N.set(e,r=new Set),!r.has(l)){{s=a.createElement("style"),s.innerHTML=o;const l=null!=(n=f.C)?n:k(a);null!=l&&s.setAttribute("nonce",l),(!(1&t.l)||1&t.l&&"HEAD"!==e.nodeName)&&e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=c),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&2&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);re(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>ie(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},re=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.O,s=e.M||A(null,null),r=(e=>e&&e.m===T)(t)?t:R(null,null,t);if(M=l.tagName,o.P&&(r.u=r.u||{},o.P.map((([e,t])=>r.u[t]=l[e]))),n&&r.u)for(const e of Object.keys(r.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=l[e]);r.m=null,r.l|=4,e.M=r,r.$=s.$=l.shadowRoot||l,z=!!(1&o.l),X(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},ie=e=>{const t=e.$hostElement$,n=e.j;ue(e.t,"componentDidRender"),64&e.l||(e.l|=64,ae(t),e.R(t),n||ce()),e.S&&(e.S(),e.S=void 0),512&e.l&&w((()=>te(e,!1))),e.l&=-517},ce=()=>{ae(a.documentElement),w((()=>H(u,"appload",{detail:{namespace:"helper-filters"}})))},ue=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ae=e=>e.classList.add("hydrated"),fe=(e,t,l)=>{var o,s;const r=e.prototype;if(t.A){const i=Object.entries(null!=(o=t.A)?o:{});if(i.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(r,e,{get(){return((e,t)=>n(this).T.get(t))(0,e)},set(l){((e,t,l,o)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${o.v}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=s.T.get(t),i=s.l,c=s.t;l=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(l,o.A[t][0]),8&i&&void 0!==r||l===r||Number.isNaN(r)&&Number.isNaN(l)||(s.T.set(t,l),c&&2==(18&i)&&te(s,!1))})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;r.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var i;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),r=null==l?void 0:l.l;if(r&&!(8&r)&&128&r&&s!==o){const n=l.t,r=null==(i=t.D)?void 0:i[e];null==r||r.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.D)?s:{}),...i.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.P)||o.push([e,s])),s}))]))}}return e},he=(e,l={})=>{var o;const h=[],p=l.exclude||[],m=u.customElements,y=a.head,$=y.querySelector("meta[charset]"),v=a.createElement("style"),b=[];let w,S=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((l=>{const o={l:l[0],v:l[1],A:l[2],H:l[3]};4&o.l&&(g=!0),o.A=l[2],o.H=l[3],o.P=[];const c=o.v,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,O:n,T:new Map};l.N=new Promise((e=>l.R=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,o),1&o.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${o.v}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,de(this,e,o.H)),w&&(clearTimeout(w),w=null),S?b.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.O,o=()=>{};if(1&t.l)de(e,t,l.H),(null==t?void 0:t.t)||(null==t?void 0:t.N)&&t.N.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ee(t,t.j=n);break}}l.A&&Object.entries(l.A).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.U){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.U;if(!n)return;const l=r.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),s)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.v}#${t.F}" was not found`);l.isProxied||(fe(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,o()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=U(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);d&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,i.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.j,c=()=>te(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);e.L&&(e.L.map((e=>e())),e.L=void 0),(null==e?void 0:e.t)||(null==e?void 0:e.N)&&e.N.then((()=>{}))}})()))}componentOnReady(){return n(this).N}};o.U=e[0],p.includes(c)||m.get(c)||(h.push(c),m.define(c,fe(u,o,1)))}))})),h.length>0&&(g&&(v.textContent+=c),v.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(o=f.C)?o:k(a);null!=e&&v.setAttribute("nonce",e),y.insertBefore(v,$?$.nextSibling:y.firstChild)}S=!1,b.length?b.map((e=>e.connectedCallback())):f.jmp((()=>w=setTimeout(ce,30)))},de=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=e,r=pe(t,o),i=me(n);f.ael(s,l,r,i),(t.L=t.L||[]).push((()=>f.rel(s,l,r,i)))}))},pe=(e,t)=>n=>{var l;try{256&e.l?null==(l=e.t)||l[t](n):(e.k=e.k||[]).push([t,n])}catch(e){s(e)}},me=e=>({passive:!!(1&e),capture:!!(2&e)}),ye=e=>f.C=e;export{he as b,D as c,R as h,h as p,l as r,ye as s}
|