@ptcwebops/ptcw-design 0.1.1 → 0.1.3

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.
Files changed (156) hide show
  1. package/dist/cjs/icon-asset_5.cjs.entry.js +207 -0
  2. package/dist/{ptcw-design/index-f7043a90.js → cjs/index-ac192914.js} +195 -1311
  3. package/dist/cjs/index.cjs.js +2 -0
  4. package/dist/cjs/interfaces-0ecd8027.js +15 -0
  5. package/dist/cjs/list-item.cjs.entry.js +27 -0
  6. package/dist/cjs/loader.cjs.js +21 -0
  7. package/dist/cjs/lottie-player.cjs.entry.js +13476 -0
  8. package/dist/cjs/my-component.cjs.entry.js +26 -0
  9. package/dist/cjs/ptc-avatar.cjs.entry.js +19 -0
  10. package/dist/cjs/ptc-card.cjs.entry.js +75 -0
  11. package/dist/cjs/ptc-date.cjs.entry.js +48 -0
  12. package/dist/cjs/ptc-footer.cjs.entry.js +19 -0
  13. package/dist/cjs/ptc-img.cjs.entry.js +155 -0
  14. package/dist/cjs/ptc-link.cjs.entry.js +53 -0
  15. package/dist/cjs/ptc-list.cjs.entry.js +32 -0
  16. package/dist/cjs/ptc-lottie.cjs.entry.js +23 -0
  17. package/dist/cjs/ptc-nav-item.cjs.entry.js +94 -0
  18. package/dist/cjs/ptc-nav.cjs.entry.js +19 -0
  19. package/dist/cjs/ptc-overlay.cjs.entry.js +19 -0
  20. package/dist/cjs/ptc-picture.cjs.entry.js +167 -0
  21. package/dist/cjs/ptc-spacer.cjs.entry.js +46 -0
  22. package/dist/cjs/ptc-span.cjs.entry.js +31 -0
  23. package/dist/cjs/ptc-title.cjs.entry.js +49 -0
  24. package/dist/cjs/ptcw-design.cjs.js +19 -0
  25. package/dist/collection/assets/svg-imgs/close.svg +11 -0
  26. package/dist/collection/collection-manifest.json +40 -0
  27. package/dist/collection/components/icon-asset/assets/brands.svg +1381 -0
  28. package/dist/collection/components/icon-asset/assets/footer-social.svg +0 -0
  29. package/dist/collection/components/icon-asset/assets/ptc-sprite.svg +144 -0
  30. package/dist/collection/components/icon-asset/assets/regular.svg +463 -0
  31. package/dist/collection/components/icon-asset/assets/solid.svg +3013 -0
  32. package/dist/collection/components/icon-asset/assets/svg-with-js.min.css +5 -0
  33. package/dist/collection/components/icon-asset/icon-asset.css +30 -0
  34. package/dist/collection/components/icon-asset/icon-asset.js +177 -0
  35. package/dist/collection/components/list-item/list-item.css +3 -0
  36. package/dist/collection/components/list-item/list-item.js +63 -0
  37. package/dist/collection/components/my-component/my-component.css +3 -0
  38. package/dist/collection/components/my-component/my-component.js +74 -0
  39. package/dist/collection/components/ptc-announcement/ptc-announcement.css +87 -0
  40. package/dist/collection/components/ptc-announcement/ptc-announcement.js +127 -0
  41. package/dist/collection/components/ptc-avatar/ptc-avatar.css +3 -0
  42. package/dist/collection/components/ptc-avatar/ptc-avatar.js +15 -0
  43. package/dist/collection/components/ptc-button/ptc-button.css +155 -0
  44. package/dist/collection/components/ptc-button/ptc-button.js +223 -0
  45. package/dist/collection/components/ptc-card/ptc-card.css +262 -0
  46. package/dist/collection/components/ptc-card/ptc-card.js +260 -0
  47. package/dist/collection/components/ptc-date/ptc-date.css +3 -0
  48. package/dist/collection/components/ptc-date/ptc-date.js +155 -0
  49. package/dist/collection/components/ptc-footer/ptc-footer.css +40 -0
  50. package/dist/collection/components/ptc-footer/ptc-footer.js +25 -0
  51. package/dist/collection/components/ptc-img/ptc-img.css +65 -0
  52. package/dist/collection/components/ptc-img/ptc-img.js +309 -0
  53. package/dist/collection/components/ptc-link/ptc-link.css +168 -0
  54. package/dist/collection/components/ptc-link/ptc-link.js +197 -0
  55. package/dist/collection/components/ptc-list/ptc-list.css +24 -0
  56. package/dist/collection/components/ptc-list/ptc-list.js +66 -0
  57. package/dist/collection/components/ptc-lottie/ptc-lottie.css +5 -0
  58. package/dist/collection/components/ptc-lottie/ptc-lottie.js +58 -0
  59. package/dist/collection/components/ptc-nav/ptc-nav.css +29 -0
  60. package/dist/collection/components/ptc-nav/ptc-nav.js +21 -0
  61. package/dist/collection/components/ptc-nav-item/ptc-nav-item.css +81 -0
  62. package/dist/collection/components/ptc-nav-item/ptc-nav-item.js +252 -0
  63. package/dist/collection/components/ptc-overlay/ptc-overlay.css +3 -0
  64. package/dist/collection/components/ptc-overlay/ptc-overlay.js +14 -0
  65. package/dist/collection/components/ptc-para/ptc-para.css +88 -0
  66. package/dist/collection/components/ptc-para/ptc-para.js +111 -0
  67. package/dist/collection/components/ptc-picture/ptc-picture.css +32 -0
  68. package/dist/collection/components/ptc-picture/ptc-picture.js +356 -0
  69. package/dist/collection/components/ptc-spacer/ptc-spacer.css +307 -0
  70. package/dist/collection/components/ptc-spacer/ptc-spacer.js +99 -0
  71. package/dist/collection/components/ptc-span/ptc-span.css +36 -0
  72. package/dist/collection/components/ptc-span/ptc-span.js +86 -0
  73. package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.css +77 -0
  74. package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.js +34 -0
  75. package/dist/collection/components/ptc-title/ptc-title.css +64 -0
  76. package/dist/collection/components/ptc-title/ptc-title.js +105 -0
  77. package/dist/collection/index.js +1 -0
  78. package/dist/collection/utils/interfaces.js +11 -0
  79. package/dist/collection/utils/utils.js +3 -0
  80. package/dist/custom-elements/index.d.ts +6 -6
  81. package/dist/custom-elements/index.js +14559 -0
  82. package/dist/esm/icon-asset_5.entry.js +199 -0
  83. package/dist/esm/index-7a3883ee.js +1687 -0
  84. package/dist/esm/index.js +1 -0
  85. package/dist/esm/interfaces-3cb94654.js +12 -0
  86. package/dist/{ptcw-design → esm}/list-item.entry.js +1 -1
  87. package/dist/esm/loader.js +17 -0
  88. package/dist/{ptcw-design → esm}/lottie-player.entry.js +31 -782
  89. package/dist/{ptcw-design → esm}/my-component.entry.js +1 -1
  90. package/dist/esm/polyfills/core-js.js +11 -0
  91. package/dist/esm/polyfills/css-shim.js +1 -0
  92. package/dist/esm/polyfills/dom.js +79 -0
  93. package/dist/esm/polyfills/es5-html-element.js +1 -0
  94. package/dist/esm/polyfills/index.js +34 -0
  95. package/dist/esm/polyfills/system.js +6 -0
  96. package/dist/esm/ptc-avatar.entry.js +15 -0
  97. package/dist/{ptcw-design → esm}/ptc-card.entry.js +3 -3
  98. package/dist/{ptcw-design → esm}/ptc-date.entry.js +1 -1
  99. package/dist/{ptcw-design → esm}/ptc-footer.entry.js +1 -1
  100. package/dist/{ptcw-design → esm}/ptc-img.entry.js +6 -25
  101. package/dist/{ptcw-design → esm}/ptc-link.entry.js +1 -1
  102. package/dist/{ptcw-design → esm}/ptc-list.entry.js +1 -1
  103. package/dist/{ptcw-design → esm}/ptc-lottie.entry.js +1 -1
  104. package/dist/{ptcw-design → esm}/ptc-nav-item.entry.js +1 -1
  105. package/dist/{ptcw-design → esm}/ptc-nav.entry.js +1 -1
  106. package/dist/{ptcw-design → esm}/ptc-overlay.entry.js +1 -1
  107. package/dist/esm/ptc-picture.entry.js +163 -0
  108. package/dist/{ptcw-design → esm}/ptc-spacer.entry.js +1 -1
  109. package/dist/{ptcw-design → esm}/ptc-span.entry.js +1 -1
  110. package/dist/{ptcw-design → esm}/ptc-title.entry.js +1 -1
  111. package/dist/esm/ptcw-design.js +17 -0
  112. package/dist/index.cjs.js +1 -0
  113. package/dist/index.js +1 -0
  114. package/dist/node_modules/@teamhive/lottie-player/dist/collection/components/lottie-player/lottie-player.css +187 -0
  115. package/dist/ptcw-design/index.esm.js +0 -1
  116. package/dist/ptcw-design/p-0c8df906.entry.js +1 -0
  117. package/dist/ptcw-design/p-18092cf1.entry.js +1 -0
  118. package/dist/ptcw-design/p-186beb2c.entry.js +1 -0
  119. package/dist/ptcw-design/p-240733ce.js +1 -0
  120. package/dist/ptcw-design/p-2d5f8cff.entry.js +1 -0
  121. package/dist/ptcw-design/p-50923c9a.js +1 -0
  122. package/dist/ptcw-design/p-51a3e9e6.entry.js +1 -0
  123. package/dist/ptcw-design/p-5f776886.entry.js +1 -0
  124. package/dist/ptcw-design/p-66ffa30c.entry.js +1 -0
  125. package/dist/ptcw-design/p-6b1a35e1.entry.js +1 -0
  126. package/dist/ptcw-design/p-73e2418e.entry.js +1 -0
  127. package/dist/ptcw-design/p-78a47bf1.entry.js +1 -0
  128. package/dist/ptcw-design/p-796b8287.entry.js +1 -0
  129. package/dist/ptcw-design/p-90402319.entry.js +1 -0
  130. package/dist/ptcw-design/p-919311d2.entry.js +1 -0
  131. package/dist/ptcw-design/p-ac449734.entry.js +1 -0
  132. package/dist/ptcw-design/p-bff9c1f2.entry.js +1 -0
  133. package/dist/ptcw-design/p-d6553853.entry.js +1 -0
  134. package/dist/ptcw-design/p-ef250898.entry.js +1 -0
  135. package/dist/ptcw-design/p-f694e46a.entry.js +1 -0
  136. package/dist/ptcw-design/p-f80152dc.entry.js +1 -0
  137. package/dist/ptcw-design/ptcw-design.css +2 -1030
  138. package/dist/ptcw-design/ptcw-design.esm.js +1 -122
  139. package/dist/types/components/ptc-avatar/ptc-avatar.d.ts +3 -0
  140. package/dist/types/components/ptc-para/ptc-para.d.ts +1 -1
  141. package/dist/types/components/ptc-picture/ptc-picture.d.ts +60 -1
  142. package/dist/types/components.d.ts +95 -33
  143. package/dist/types/utils/interfaces.d.ts +6 -1
  144. package/package.json +2 -2
  145. package/dist/ptcw-design/app-globals-0f993ce5.js +0 -3
  146. package/dist/ptcw-design/css-shim-003e9264.js +0 -4
  147. package/dist/ptcw-design/dom-1b195079.js +0 -73
  148. package/dist/ptcw-design/icon-asset.entry.js +0 -60
  149. package/dist/ptcw-design/ptc-announcement.entry.js +0 -31
  150. package/dist/ptcw-design/ptc-button.entry.js +0 -57
  151. package/dist/ptcw-design/ptc-image.entry.js +0 -54
  152. package/dist/ptcw-design/ptc-para.entry.js +0 -36
  153. package/dist/ptcw-design/ptc-picture.entry.js +0 -22
  154. package/dist/ptcw-design/ptc-svg-btn.entry.js +0 -27
  155. package/dist/ptcw-design/shadow-css-c1ad5fdc.js +0 -383
  156. package/dist/types/components/ptc-image/ptc-image.d.ts +0 -18
@@ -1,122 +1 @@
1
- import { B as BUILD, c as consoleDevInfo, p as plt, w as win, H, d as doc, N as NAMESPACE, a as promiseResolve, b as bootstrapLazy } from './index-f7043a90.js';
2
- import { g as globalScripts } from './app-globals-0f993ce5.js';
3
-
4
- /*
5
- Stencil Client Patch Browser v2.6.0 | MIT Licensed | https://stenciljs.com
6
- */
7
- const getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\s|-/g, '_')}`;
8
- const patchBrowser = () => {
9
- // NOTE!! This fn cannot use async/await!
10
- if (BUILD.isDev && !BUILD.isTesting) {
11
- consoleDevInfo('Running in development mode.');
12
- }
13
- if (BUILD.cssVarShim) {
14
- // shim css vars
15
- plt.$cssShim$ = win.__cssshim;
16
- }
17
- if (BUILD.cloneNodeFix) {
18
- // opted-in to polyfill cloneNode() for slot polyfilled components
19
- patchCloneNodeFix(H.prototype);
20
- }
21
- if (BUILD.profile && !performance.mark) {
22
- // not all browsers support performance.mark/measure (Safari 10)
23
- performance.mark = performance.measure = () => {
24
- /*noop*/
25
- };
26
- performance.getEntriesByName = () => [];
27
- }
28
- // @ts-ignore
29
- const scriptElm = BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim
30
- ? Array.from(doc.querySelectorAll('script')).find(s => new RegExp(`\/${NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) || s.getAttribute('data-stencil-namespace') === NAMESPACE)
31
- : null;
32
- const importMeta = import.meta.url;
33
- const opts = BUILD.scriptDataOpts ? scriptElm['data-opts'] || {} : {};
34
- if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {
35
- // Safari < v11 support: This IF is true if it's Safari below v11.
36
- // This fn cannot use async/await since Safari didn't support it until v11,
37
- // however, Safari 10 did support modules. Safari 10 also didn't support "nomodule",
38
- // so both the ESM file and nomodule file would get downloaded. Only Safari
39
- // has 'onbeforeload' in the script, and "history.scrollRestoration" was added
40
- // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.
41
- // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.
42
- return {
43
- then() {
44
- /* promise noop */
45
- },
46
- };
47
- }
48
- if (!BUILD.safari10 && importMeta !== '') {
49
- opts.resourcesUrl = new URL('.', importMeta).href;
50
- }
51
- else if (BUILD.dynamicImportShim || BUILD.safari10) {
52
- opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;
53
- if (BUILD.dynamicImportShim) {
54
- patchDynamicImport(opts.resourcesUrl, scriptElm);
55
- }
56
- if (BUILD.dynamicImportShim && !win.customElements) {
57
- // module support, but no custom elements support (Old Edge)
58
- // @ts-ignore
59
- return import(/* webpackChunkName: "polyfills-dom" */ './dom-1b195079.js').then(() => opts);
60
- }
61
- }
62
- return promiseResolve(opts);
63
- };
64
- const patchDynamicImport = (base, orgScriptElm) => {
65
- const importFunctionName = getDynamicImportFunction(NAMESPACE);
66
- try {
67
- // test if this browser supports dynamic imports
68
- // There is a caching issue in V8, that breaks using import() in Function
69
- // By generating a random string, we can workaround it
70
- // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info
71
- win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);
72
- }
73
- catch (e) {
74
- // this shim is specifically for browsers that do support "esm" imports
75
- // however, they do NOT support "dynamic" imports
76
- // basically this code is for old Edge, v18 and below
77
- const moduleMap = new Map();
78
- win[importFunctionName] = (src) => {
79
- const url = new URL(src, base).href;
80
- let mod = moduleMap.get(url);
81
- if (!mod) {
82
- const script = doc.createElement('script');
83
- script.type = 'module';
84
- script.crossOrigin = orgScriptElm.crossOrigin;
85
- script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], { type: 'application/javascript' }));
86
- mod = new Promise(resolve => {
87
- script.onload = () => {
88
- resolve(win[importFunctionName].m);
89
- script.remove();
90
- };
91
- });
92
- moduleMap.set(url, mod);
93
- doc.head.appendChild(script);
94
- }
95
- return mod;
96
- };
97
- }
98
- };
99
- const patchCloneNodeFix = (HTMLElementPrototype) => {
100
- const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;
101
- HTMLElementPrototype.cloneNode = function (deep) {
102
- if (this.nodeName === 'TEMPLATE') {
103
- return nativeCloneNodeFn.call(this, deep);
104
- }
105
- const clonedNode = nativeCloneNodeFn.call(this, false);
106
- const srcChildNodes = this.childNodes;
107
- if (deep) {
108
- for (let i = 0; i < srcChildNodes.length; i++) {
109
- // Node.ATTRIBUTE_NODE === 2, and checking because IE11
110
- if (srcChildNodes[i].nodeType !== 2) {
111
- clonedNode.appendChild(srcChildNodes[i].cloneNode(true));
112
- }
113
- }
114
- }
115
- return clonedNode;
116
- };
117
- };
118
-
119
- patchBrowser().then(options => {
120
- globalScripts();
121
- return bootstrapLazy([["ptc-announcement",[[1,"ptc-announcement",{"btnText":[513,"btn-text"],"visible":[1540],"btnLink":[513,"btn-link"],"tempContainer":[4,"temp-container"]}]]],["ptc-card",[[1,"ptc-card",{"cardType":[1,"card-type"],"cardHref":[1,"card-href"],"target":[1],"rel":[1],"hasImage":[4,"has-image"],"hasVideo":[4,"has-video"],"hasLottie":[4,"has-lottie"],"heading":[1],"cardDate":[1,"card-date"],"styles":[1]}]]],["ptc-link",[[1,"ptc-link",{"disabled":[516],"external":[516],"href":[1],"target":[1],"linkTitle":[1,"link-title"],"theme":[1],"uppercase":[4],"fontSize":[1,"font-size"]}]]],["ptc-lottie",[[1,"ptc-lottie",{"jsonSrc":[1025,"json-src"],"speed":[1026]}]]],["list-item",[[4,"list-item",{"listType":[1,"list-type"],"linkHref":[1,"link-href"]}]]],["my-component",[[1,"my-component",{"first":[1],"middle":[1],"last":[1]}]]],["ptc-footer",[[1,"ptc-footer"]]],["ptc-image",[[1,"ptc-image",{"src":[1],"alt":[1],"oldSrc":[32]}]]],["ptc-img",[[0,"ptc-img",{"sizeXs":[1025,"size-xs"],"sizeSm":[1025,"size-sm"],"sizeMd":[1025,"size-md"],"sizeLg":[1025,"size-lg"],"imgUrl":[1,"img-url"],"imageType":[1,"image-type"],"borderRadius":[1,"border-radius"],"loadMode":[1,"load-mode"]},[[9,"resize","WindowResize"]]]]],["ptc-list",[[0,"ptc-list",{"listType":[1,"list-type"],"listItems":[16]}]]],["ptc-nav",[[1,"ptc-nav"]]],["ptc-nav-item",[[1,"ptc-nav-item",{"url":[1025],"label":[1025],"ariaExpanded":[1028,"aria-expanded"],"depth":[1538],"hasChildren":[1028,"has-children"],"parentExpanded":[1540,"parent-expanded"],"navType":[1,"nav-type"]},[[0,"handleClick","handleClick"],[9,"resize","handleResize"]]]]],["ptc-overlay",[[4,"ptc-overlay"]]],["ptc-para",[[1,"ptc-para",{"fontSize":[1,"font-size"],"fontWeight":[1,"font-weight"],"paraStyle":[1,"para-style"],"paraMargin":[1,"para-margin"]}]]],["ptc-picture",[[4,"ptc-picture",{"lazy":[1]}]]],["ptc-spacer",[[1,"ptc-spacer",{"breakpoint":[1],"size":[1],"direction":[1]}]]],["ptc-span",[[1,"ptc-span",{"spanStyle":[1,"span-style"],"display":[1],"styles":[1]}]]],["ptc-title",[[1,"ptc-title",{"type":[1],"textAlign":[1,"text-align"],"upperline":[1]}]]],["lottie-player",[[1,"lottie-player",{"mode":[1],"autoplay":[4],"background":[513],"controls":[4],"count":[2],"direction":[2],"hover":[4],"loop":[516],"renderer":[1],"speed":[2],"src":[1],"currentState":[1,"current-state"],"seeker":[8],"intermission":[2],"play":[64],"pause":[64],"stop":[64],"seek":[64],"getLottie":[64],"setSpeed":[64],"setDirection":[64],"setLooping":[64],"togglePlay":[64],"toggleLooping":[64]}]]],["ptc-button",[[1,"ptc-button",{"disabled":[516],"type":[1],"color":[1],"iconAnimation":[1,"icon-animation"],"iconPosition":[1,"icon-position"],"linkHref":[1,"link-href"],"target":[1],"rel":[1]}]]],["ptc-date",[[1,"ptc-date",{"year":[2],"month":[2],"day":[2],"country":[1],"dateString":[1,"date-string"],"dateStyles":[1,"date-styles"]}]]],["ptc-svg-btn",[[1,"ptc-svg-btn",{"svgName":[1,"svg-name"]}]]],["icon-asset",[[0,"icon-asset",{"name":[1],"size":[1],"type":[1],"spin":[1],"pulse":[1],"color":[1]}]]]], options);
122
- });
1
+ import{p as e,b as t}from"./p-50923c9a.js";(()=>{const t=import.meta.url,i={};return""!==t&&(i.resourcesUrl=new URL(".",t).href),e(i)})().then((e=>t([["p-bff9c1f2",[[1,"ptc-card",{cardType:[1,"card-type"],cardHref:[1,"card-href"],target:[1],rel:[1],hasImage:[4,"has-image"],hasVideo:[4,"has-video"],hasLottie:[4,"has-lottie"],heading:[1],cardDate:[1,"card-date"],styles:[1]}]]],["p-5f776886",[[1,"ptc-link",{disabled:[516],external:[516],href:[1],target:[1],linkTitle:[1,"link-title"],theme:[1],uppercase:[4],fontSize:[1,"font-size"]}]]],["p-ef250898",[[1,"ptc-lottie",{jsonSrc:[1025,"json-src"],speed:[1026]}]]],["p-90402319",[[4,"list-item",{listType:[1,"list-type"],linkHref:[1,"link-href"]}]]],["p-f80152dc",[[1,"my-component",{first:[1],middle:[1],last:[1]}]]],["p-73e2418e",[[1,"ptc-avatar"]]],["p-66ffa30c",[[1,"ptc-footer"]]],["p-f694e46a",[[0,"ptc-img",{sizeXs:[1025,"size-xs"],sizeSm:[1025,"size-sm"],sizeMd:[1025,"size-md"],sizeLg:[1025,"size-lg"],imgUrl:[1,"img-url"],imageType:[1,"image-type"],borderRadius:[1,"border-radius"],loadMode:[1,"load-mode"]},[[9,"resize","WindowResize"]]]]],["p-919311d2",[[0,"ptc-list",{listType:[1,"list-type"],listItems:[16]}]]],["p-2d5f8cff",[[1,"ptc-nav"]]],["p-186beb2c",[[1,"ptc-nav-item",{url:[1025],label:[1025],ariaExpanded:[1028,"aria-expanded"],depth:[1538],hasChildren:[1028,"has-children"],parentExpanded:[1540,"parent-expanded"],navType:[1,"nav-type"]},[[0,"handleClick","handleClick"],[9,"resize","handleResize"]]]]],["p-ac449734",[[4,"ptc-overlay"]]],["p-78a47bf1",[[1,"ptc-picture",{src:[1],alt:[1],sizeXs:[1025,"size-xs"],sizeSm:[1025,"size-sm"],sizeMd:[1025,"size-md"],sizeLg:[1025,"size-lg"],borderRadius:[1,"border-radius"],height:[1],width:[1],objectFit:[1,"object-fit"],oldSrc:[32]},[[9,"resize","WindowResize"]]]]],["p-d6553853",[[1,"ptc-spacer",{breakpoint:[1],size:[1],direction:[1]}]]],["p-6b1a35e1",[[1,"ptc-span",{spanStyle:[1,"span-style"],display:[1],styles:[1]}]]],["p-0c8df906",[[1,"ptc-title",{type:[1],textAlign:[1,"text-align"],upperline:[1]}]]],["p-51a3e9e6",[[1,"lottie-player",{mode:[1],autoplay:[4],background:[513],controls:[4],count:[2],direction:[2],hover:[4],loop:[516],renderer:[1],speed:[2],src:[1],currentState:[1,"current-state"],seeker:[8],intermission:[2],play:[64],pause:[64],stop:[64],seek:[64],getLottie:[64],setSpeed:[64],setDirection:[64],setLooping:[64],togglePlay:[64],toggleLooping:[64]}]]],["p-796b8287",[[1,"ptc-date",{year:[2],month:[2],day:[2],country:[1],dateString:[1,"date-string"],dateStyles:[1,"date-styles"]}]]],["p-18092cf1",[[1,"ptc-announcement",{btnText:[513,"btn-text"],visible:[1540],btnLink:[513,"btn-link"],tempContainer:[4,"temp-container"]}],[1,"ptc-para",{fontSize:[1,"font-size"],fontWeight:[1,"font-weight"],paraStyle:[1,"para-style"],paraMargin:[1,"para-margin"]}],[1,"ptc-button",{disabled:[516],type:[1],color:[1],iconAnimation:[1,"icon-animation"],iconPosition:[1,"icon-position"],linkHref:[1,"link-href"],target:[1],rel:[1]}],[1,"ptc-svg-btn",{svgName:[1,"svg-name"]}],[0,"icon-asset",{name:[1],size:[1],type:[1],spin:[1],pulse:[1],color:[1]}]]]],e)));
@@ -0,0 +1,3 @@
1
+ export declare class PtcAvatar {
2
+ render(): any;
3
+ }
@@ -14,7 +14,7 @@ export declare class PtcPara {
14
14
  /**
15
15
  * Paragraph Margin
16
16
  */
17
- paraMargin?: 'margin-flush';
17
+ paraMargin?: 'margin-flush' | 'margin-top-3' | 'margin-top-4' | 'margin-top-5' | 'margin-top-6' | 'margin-bottom-3' | 'margin-bottom-4' | 'margin-bottom-5' | 'margin-bottom-6';
18
18
  render(): any;
19
19
  private getCssClassMap;
20
20
  }
@@ -1,5 +1,64 @@
1
1
  export declare class PtcPicture {
2
- lazy: 'lazy' | 'eager';
2
+ el: HTMLElement;
3
+ /**
4
+ * Image Render Src
5
+ */
6
+ src: string;
7
+ /**
8
+ * Image alt
9
+ */
10
+ alt: string;
11
+ /**
12
+ * Image size for smallest screen
13
+ * <=767px
14
+ */
15
+ sizeXs: string;
16
+ /**
17
+ * Image size for small screen
18
+ * >=768px and <=991px
19
+ */
20
+ sizeSm: string;
21
+ /**
22
+ * Image size for medium screen
23
+ * >=992px and <=1199px
24
+ */
25
+ sizeMd: string;
26
+ /**
27
+ * Image solution for large screen
28
+ * >=1200px
29
+ */
30
+ sizeLg: string;
31
+ /**
32
+ * Image Src
33
+ **/
34
+ oldSrc: string;
35
+ /**
36
+ * Image border shape
37
+ */
38
+ borderRadius: 'radius-sm' | 'radius-md' | 'radius-lg' | '';
39
+ /**
40
+ * Set height
41
+ * Width will be auto by default
42
+ */
43
+ height: string;
44
+ /**
45
+ * Set Width
46
+ * height will be 100% by default
47
+ */
48
+ width: string;
49
+ /**
50
+ * Object Fit
51
+ * Default: cover
52
+ */
53
+ objectFit: 'cover' | 'fill' | 'contain' | 'scale-down' | 'none' | 'initial' | 'inherit';
54
+ WindowResize(): void;
55
+ io: IntersectionObserver;
56
+ componentDidLoad(): void;
57
+ componentWillUpdate(): void;
58
+ addIntersectionObserver(): void;
59
+ setResponsiveBg(): string;
3
60
  render(): any;
61
+ private getCurrentBreakPoints;
62
+ private getFallbackBreakpoint;
4
63
  private getCssClassMap;
5
64
  }
@@ -68,6 +68,8 @@ export namespace Components {
68
68
  */
69
69
  "visible": boolean;
70
70
  }
71
+ interface PtcAvatar {
72
+ }
71
73
  interface PtcButton {
72
74
  /**
73
75
  * Button theme color
@@ -172,16 +174,6 @@ export namespace Components {
172
174
  }
173
175
  interface PtcFooter {
174
176
  }
175
- interface PtcImage {
176
- /**
177
- * Image alt
178
- */
179
- "alt": string;
180
- /**
181
- * Image Render Src
182
- */
183
- "src": string;
184
- }
185
177
  interface PtcImg {
186
178
  /**
187
179
  * Image border shape
@@ -310,14 +302,53 @@ export namespace Components {
310
302
  /**
311
303
  * Paragraph Margin
312
304
  */
313
- "paraMargin"?: 'margin-flush';
305
+ "paraMargin"?: 'margin-flush' | 'margin-top-3' | 'margin-top-4' | 'margin-top-5' | 'margin-top-6' | 'margin-bottom-3' | 'margin-bottom-4' | 'margin-bottom-5' | 'margin-bottom-6';
314
306
  /**
315
307
  * Paragraph Style
316
308
  */
317
309
  "paraStyle": 'default' | 'intro' | 'small' | 'announcement';
318
310
  }
319
311
  interface PtcPicture {
320
- "lazy": 'lazy' | 'eager';
312
+ /**
313
+ * Image alt
314
+ */
315
+ "alt": string;
316
+ /**
317
+ * Image border shape
318
+ */
319
+ "borderRadius": 'radius-sm' | 'radius-md' | 'radius-lg' | '';
320
+ /**
321
+ * Set height Width will be auto by default
322
+ */
323
+ "height": string;
324
+ /**
325
+ * Object Fit Default: cover
326
+ */
327
+ "objectFit": 'cover' | 'fill' | 'contain' | 'scale-down' | 'none' | 'initial' | 'inherit';
328
+ /**
329
+ * Image solution for large screen >=1200px
330
+ */
331
+ "sizeLg": string;
332
+ /**
333
+ * Image size for medium screen >=992px and <=1199px
334
+ */
335
+ "sizeMd": string;
336
+ /**
337
+ * Image size for small screen >=768px and <=991px
338
+ */
339
+ "sizeSm": string;
340
+ /**
341
+ * Image size for smallest screen <=767px
342
+ */
343
+ "sizeXs": string;
344
+ /**
345
+ * Image Render Src
346
+ */
347
+ "src": string;
348
+ /**
349
+ * Set Width height will be 100% by default
350
+ */
351
+ "width": string;
321
352
  }
322
353
  interface PtcSpacer {
323
354
  /**
@@ -387,6 +418,12 @@ declare global {
387
418
  prototype: HTMLPtcAnnouncementElement;
388
419
  new (): HTMLPtcAnnouncementElement;
389
420
  };
421
+ interface HTMLPtcAvatarElement extends Components.PtcAvatar, HTMLStencilElement {
422
+ }
423
+ var HTMLPtcAvatarElement: {
424
+ prototype: HTMLPtcAvatarElement;
425
+ new (): HTMLPtcAvatarElement;
426
+ };
390
427
  interface HTMLPtcButtonElement extends Components.PtcButton, HTMLStencilElement {
391
428
  }
392
429
  var HTMLPtcButtonElement: {
@@ -411,12 +448,6 @@ declare global {
411
448
  prototype: HTMLPtcFooterElement;
412
449
  new (): HTMLPtcFooterElement;
413
450
  };
414
- interface HTMLPtcImageElement extends Components.PtcImage, HTMLStencilElement {
415
- }
416
- var HTMLPtcImageElement: {
417
- prototype: HTMLPtcImageElement;
418
- new (): HTMLPtcImageElement;
419
- };
420
451
  interface HTMLPtcImgElement extends Components.PtcImg, HTMLStencilElement {
421
452
  }
422
453
  var HTMLPtcImgElement: {
@@ -500,11 +531,11 @@ declare global {
500
531
  "list-item": HTMLListItemElement;
501
532
  "my-component": HTMLMyComponentElement;
502
533
  "ptc-announcement": HTMLPtcAnnouncementElement;
534
+ "ptc-avatar": HTMLPtcAvatarElement;
503
535
  "ptc-button": HTMLPtcButtonElement;
504
536
  "ptc-card": HTMLPtcCardElement;
505
537
  "ptc-date": HTMLPtcDateElement;
506
538
  "ptc-footer": HTMLPtcFooterElement;
507
- "ptc-image": HTMLPtcImageElement;
508
539
  "ptc-img": HTMLPtcImgElement;
509
540
  "ptc-link": HTMLPtcLinkElement;
510
541
  "ptc-list": HTMLPtcListElement;
@@ -587,6 +618,8 @@ declare namespace LocalJSX {
587
618
  */
588
619
  "visible"?: boolean;
589
620
  }
621
+ interface PtcAvatar {
622
+ }
590
623
  interface PtcButton {
591
624
  /**
592
625
  * Button theme color
@@ -695,16 +728,6 @@ declare namespace LocalJSX {
695
728
  }
696
729
  interface PtcFooter {
697
730
  }
698
- interface PtcImage {
699
- /**
700
- * Image alt
701
- */
702
- "alt"?: string;
703
- /**
704
- * Image Render Src
705
- */
706
- "src"?: string;
707
- }
708
731
  interface PtcImg {
709
732
  /**
710
733
  * Image border shape
@@ -837,14 +860,53 @@ declare namespace LocalJSX {
837
860
  /**
838
861
  * Paragraph Margin
839
862
  */
840
- "paraMargin"?: 'margin-flush';
863
+ "paraMargin"?: 'margin-flush' | 'margin-top-3' | 'margin-top-4' | 'margin-top-5' | 'margin-top-6' | 'margin-bottom-3' | 'margin-bottom-4' | 'margin-bottom-5' | 'margin-bottom-6';
841
864
  /**
842
865
  * Paragraph Style
843
866
  */
844
867
  "paraStyle"?: 'default' | 'intro' | 'small' | 'announcement';
845
868
  }
846
869
  interface PtcPicture {
847
- "lazy"?: 'lazy' | 'eager';
870
+ /**
871
+ * Image alt
872
+ */
873
+ "alt"?: string;
874
+ /**
875
+ * Image border shape
876
+ */
877
+ "borderRadius"?: 'radius-sm' | 'radius-md' | 'radius-lg' | '';
878
+ /**
879
+ * Set height Width will be auto by default
880
+ */
881
+ "height"?: string;
882
+ /**
883
+ * Object Fit Default: cover
884
+ */
885
+ "objectFit"?: 'cover' | 'fill' | 'contain' | 'scale-down' | 'none' | 'initial' | 'inherit';
886
+ /**
887
+ * Image solution for large screen >=1200px
888
+ */
889
+ "sizeLg"?: string;
890
+ /**
891
+ * Image size for medium screen >=992px and <=1199px
892
+ */
893
+ "sizeMd"?: string;
894
+ /**
895
+ * Image size for small screen >=768px and <=991px
896
+ */
897
+ "sizeSm"?: string;
898
+ /**
899
+ * Image size for smallest screen <=767px
900
+ */
901
+ "sizeXs"?: string;
902
+ /**
903
+ * Image Render Src
904
+ */
905
+ "src"?: string;
906
+ /**
907
+ * Set Width height will be 100% by default
908
+ */
909
+ "width"?: string;
848
910
  }
849
911
  interface PtcSpacer {
850
912
  /**
@@ -893,11 +955,11 @@ declare namespace LocalJSX {
893
955
  "list-item": ListItem;
894
956
  "my-component": MyComponent;
895
957
  "ptc-announcement": PtcAnnouncement;
958
+ "ptc-avatar": PtcAvatar;
896
959
  "ptc-button": PtcButton;
897
960
  "ptc-card": PtcCard;
898
961
  "ptc-date": PtcDate;
899
962
  "ptc-footer": PtcFooter;
900
- "ptc-image": PtcImage;
901
963
  "ptc-img": PtcImg;
902
964
  "ptc-link": PtcLink;
903
965
  "ptc-list": PtcList;
@@ -921,11 +983,11 @@ declare module "@stencil/core" {
921
983
  "list-item": LocalJSX.ListItem & JSXBase.HTMLAttributes<HTMLListItemElement>;
922
984
  "my-component": LocalJSX.MyComponent & JSXBase.HTMLAttributes<HTMLMyComponentElement>;
923
985
  "ptc-announcement": LocalJSX.PtcAnnouncement & JSXBase.HTMLAttributes<HTMLPtcAnnouncementElement>;
986
+ "ptc-avatar": LocalJSX.PtcAvatar & JSXBase.HTMLAttributes<HTMLPtcAvatarElement>;
924
987
  "ptc-button": LocalJSX.PtcButton & JSXBase.HTMLAttributes<HTMLPtcButtonElement>;
925
988
  "ptc-card": LocalJSX.PtcCard & JSXBase.HTMLAttributes<HTMLPtcCardElement>;
926
989
  "ptc-date": LocalJSX.PtcDate & JSXBase.HTMLAttributes<HTMLPtcDateElement>;
927
990
  "ptc-footer": LocalJSX.PtcFooter & JSXBase.HTMLAttributes<HTMLPtcFooterElement>;
928
- "ptc-image": LocalJSX.PtcImage & JSXBase.HTMLAttributes<HTMLPtcImageElement>;
929
991
  "ptc-img": LocalJSX.PtcImg & JSXBase.HTMLAttributes<HTMLPtcImgElement>;
930
992
  "ptc-link": LocalJSX.PtcLink & JSXBase.HTMLAttributes<HTMLPtcLinkElement>;
931
993
  "ptc-list": LocalJSX.PtcList & JSXBase.HTMLAttributes<HTMLPtcListElement>;
@@ -6,4 +6,9 @@ declare let ResponsiveBgVariables: {
6
6
  selector: string;
7
7
  interval: number;
8
8
  };
9
- export { CssClassMap, ResponsiveBgVariables };
9
+ declare let ResponsivePictureVariables: {
10
+ envs: string[];
11
+ selector: string;
12
+ interval: number;
13
+ };
14
+ export { CssClassMap, ResponsiveBgVariables, ResponsivePictureVariables };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ptcwebops/ptcw-design",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/custom-elements/index.js",
@@ -20,7 +20,7 @@
20
20
  "test": "stencil test --spec --e2e",
21
21
  "test.watch": "stencil test --spec --e2e --watchAll",
22
22
  "generate": "stencil generate",
23
- "perpare": "stencil build --dev"
23
+ "prepare": "stencil build --docs"
24
24
  },
25
25
  "dependencies": {
26
26
  "@daveberning/griddle": "^0.3.0",
@@ -1,3 +0,0 @@
1
- const globalScripts = () => {};
2
-
3
- export { globalScripts as g };
@@ -1,4 +0,0 @@
1
- /*
2
- Stencil Client Patch Esm v2.6.0 | MIT Licensed | https://stenciljs.com
3
- */
4
- var __assign=undefined&&undefined.__assign||function(){return (__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)},StyleNode=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector="";};function parse(e){return parseCss(lex(e=clean(e)),e)}function clean(e){return e.replace(RX.comments,"").replace(RX.port,"")}function lex(e){var t=new StyleNode;t.start=0,t.end=e.length;for(var r=t,n=0,s=e.length;n<s;n++)if(e[n]===OPEN_BRACE){r.rules||(r.rules=[]);var o=r,a=o.rules[o.rules.length-1]||null;(r=new StyleNode).start=n+1,r.parent=o,r.previous=a,o.rules.push(r);}else e[n]===CLOSE_BRACE&&(r.end=n+1,r=r.parent||t);return t}function parseCss(e,t){var r=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=r.trim(),e.parent){var n=e.previous?e.previous.end:e.parent.start;r=(r=(r=_expandUnicodeEscapes(r=t.substring(n,e.start-1))).replace(RX.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var s=e.parsedSelector=e.selector=r.trim();e.atRule=0===s.indexOf(AT_START),e.atRule?0===s.indexOf(MEDIA_START)?e.type=types.MEDIA_RULE:s.match(RX.keyframesRule)&&(e.type=types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(RX.multipleSpaces).pop()):0===s.indexOf(VAR_START)?e.type=types.MIXIN_RULE:e.type=types.STYLE_RULE;}var o=e.rules;if(o)for(var a=0,i=o.length,l=void 0;a<i&&(l=o[a]);a++)parseCss(l,t);return e}function _expandUnicodeEscapes(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return "\\"+e}))}var types={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE="{",CLOSE_BRACE="}",RX={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START="--",MEDIA_START="@media",AT_START="@";function findRegex(e,t,r){e.lastIndex=0;var n=t.substring(r).match(e);if(n){var s=r+n.index;return {start:s,end:s+n[0].length}}return null}var VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;function resolveVar(e,t,r){return e[t]?e[t]:r?executeTemplate(r,e):""}function findVarEndIndex(e,t){for(var r=0,n=t;n<e.length;n++){var s=e[n];if("("===s)r++;else if(")"===s&&--r<=0)return n+1}return n}function parseVar(e,t){var r=findRegex(VAR_USAGE_START,e,t);if(!r)return null;var n=findVarEndIndex(e,r.start),s=e.substring(r.end,n-1).split(","),o=s[0],a=s.slice(1);return {start:r.start,end:n,propName:o.trim(),fallback:a.length>0?a.join(",").trim():void 0}}function compileVar(e,t,r){var n=parseVar(e,r);if(!n)return t.push(e.substring(r,e.length)),e.length;var s=n.propName,o=null!=n.fallback?compileTemplate(n.fallback):void 0;return t.push(e.substring(r,n.start),(function(e){return resolveVar(e,s,o)})),n.end}function executeTemplate(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];r+="string"==typeof s?s:s(t);}return r}function findEndValue(e,t){for(var r=!1,n=!1,s=t;s<e.length;s++){var o=e[s];if(r)n&&'"'===o&&(r=!1),n||"'"!==o||(r=!1);else if('"'===o)r=!0,n=!0;else if("'"===o)r=!0,n=!1;else {if(";"===o)return s+1;if("}"===o)return s}}return s}function removeCustomAssigns(e){for(var t="",r=0;;){var n=findRegex(VAR_ASSIGN_START,e,r),s=n?n.start:e.length;if(t+=e.substring(r,s),!n)break;r=findEndValue(e,s);}return t}function compileTemplate(e){var t=0;e=removeCustomAssigns(e=e.replace(COMMENTS,"")).replace(TRAILING_LINES,"");for(var r=[];t<e.length;)t=compileVar(e,r,t);return r}function resolveValues(e){var t={};e.forEach((function(e){e.declarations.forEach((function(e){t[e.prop]=e.value;}));}));for(var r={},n=Object.entries(t),s=function(e){var t=!1;if(n.forEach((function(e){var n=e[0],s=executeTemplate(e[1],r);s!==r[n]&&(r[n]=s,t=!0);})),!t)return "break"},o=0;o<10;o++){if("break"===s())break}return r}function getSelectors(e,t){if(void 0===t&&(t=0),!e.rules)return [];var r=[];return e.rules.filter((function(e){return e.type===types.STYLE_RULE})).forEach((function(e){var n=getDeclarations(e.cssText);n.length>0&&e.parsedSelector.split(",").forEach((function(e){e=e.trim(),r.push({selector:e,declarations:n,specificity:computeSpecificity(),nu:t});})),t++;})),r}function computeSpecificity(e){return 1}var IMPORTANT="!important",FIND_DECLARATIONS=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function getDeclarations(e){for(var t,r=[];t=FIND_DECLARATIONS.exec(e.trim());){var n=normalizeValue(t[2]),s=n.value,o=n.important;r.push({prop:t[1].trim(),value:compileTemplate(s),important:o});}return r}function normalizeValue(e){var t=(e=e.replace(/\s+/gim," ").trim()).endsWith(IMPORTANT);return t&&(e=e.substr(0,e.length-IMPORTANT.length).trim()),{value:e,important:t}}function getActiveSelectors(e,t,r){var n=[],s=getScopesForElement(t,e);return r.forEach((function(e){return n.push(e)})),s.forEach((function(e){return n.push(e)})),sortSelectors(getSelectorsForScopes(n).filter((function(t){return matches(e,t.selector)})))}function getScopesForElement(e,t){for(var r=[];t;){var n=e.get(t);n&&r.push(n),t=t.parentElement;}return r}function getSelectorsForScopes(e){var t=[];return e.forEach((function(e){t.push.apply(t,e.selectors);})),t}function sortSelectors(e){return e.sort((function(e,t){return e.specificity===t.specificity?e.nu-t.nu:e.specificity-t.specificity})),e}function matches(e,t){return ":root"===t||"html"===t||e.matches(t)}function parseCSS(e){var t=parse(e),r=compileTemplate(e);return {original:e,template:r,selectors:getSelectors(t),usesCssVars:r.length>1}}function addGlobalStyle(e,t){if(e.some((function(e){return e.styleEl===t})))return !1;var r=parseCSS(t.textContent);return r.styleEl=t,e.push(r),!0}function updateGlobalScopes(e){var t=resolveValues(getSelectorsForScopes(e));e.forEach((function(e){e.usesCssVars&&(e.styleEl.textContent=executeTemplate(e.template,t));}));}function reScope(e,t){var r=e.template.map((function(r){return "string"==typeof r?replaceScope(r,e.scopeId,t):r})),n=e.selectors.map((function(r){return __assign(__assign({},r),{selector:replaceScope(r.selector,e.scopeId,t)})}));return __assign(__assign({},e),{template:r,selectors:n,scopeId:t})}function replaceScope(e,t,r){return e=replaceAll(e,"\\."+t,"."+r)}function replaceAll(e,t,r){return e.replace(new RegExp(t,"g"),r)}function loadDocument(e,t){return loadDocumentStyles(e,t),loadDocumentLinks(e,t).then((function(){updateGlobalScopes(t);}))}function startWatcher(e,t){"undefined"!=typeof MutationObserver&&new MutationObserver((function(){loadDocumentStyles(e,t)&&updateGlobalScopes(t);})).observe(document.head,{childList:!0});}function loadDocumentLinks(e,t){for(var r=[],n=e.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'),s=0;s<n.length;s++)r.push(addGlobalLink(e,t,n[s]));return Promise.all(r)}function loadDocumentStyles(e,t){return Array.from(e.querySelectorAll("style:not([data-styles]):not([data-no-shim])")).map((function(e){return addGlobalStyle(t,e)})).some(Boolean)}function addGlobalLink(e,t,r){var n=r.href;return fetch(n).then((function(e){return e.text()})).then((function(s){if(hasCssVariables(s)&&r.parentNode){hasRelativeUrls(s)&&(s=fixRelativeUrls(s,n));var o=e.createElement("style");o.setAttribute("data-styles",""),o.textContent=s,addGlobalStyle(t,o),r.parentNode.insertBefore(o,r),r.remove();}})).catch((function(e){console.error(e);}))}var CSS_VARIABLE_REGEXP=/[\s;{]--[-a-zA-Z0-9]+\s*:/m;function hasCssVariables(e){return e.indexOf("var(")>-1||CSS_VARIABLE_REGEXP.test(e)}var CSS_URL_REGEXP=/url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function hasRelativeUrls(e){return CSS_URL_REGEXP.lastIndex=0,CSS_URL_REGEXP.test(e)}function fixRelativeUrls(e,t){var r=t.replace(/[^/]*$/,"");return e.replace(CSS_URL_REGEXP,(function(e,t){var n=r+t;return e.replace(t,n)}))}var CustomStyle=function(){function e(e,t){this.win=e,this.doc=t,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map,this.didInit=!1;}return e.prototype.i=function(){var e=this;return this.didInit||!this.win.requestAnimationFrame?Promise.resolve():(this.didInit=!0,new Promise((function(t){e.win.requestAnimationFrame((function(){startWatcher(e.doc,e.globalScopes),loadDocument(e.doc,e.globalScopes).then((function(){return t()}));}));})))},e.prototype.addLink=function(e){var t=this;return addGlobalLink(this.doc,this.globalScopes,e).then((function(){t.updateGlobal();}))},e.prototype.addGlobalStyle=function(e){addGlobalStyle(this.globalScopes,e)&&this.updateGlobal();},e.prototype.createHostStyle=function(e,t,r,n){if(this.hostScopeMap.has(e))throw new Error("host style already created");var s=this.registerHostTemplate(r,t,n),o=this.doc.createElement("style");return o.setAttribute("data-no-shim",""),s.usesCssVars?n?(o["s-sc"]=t=s.scopeId+"-"+this.count,o.textContent="/*needs update*/",this.hostStyleMap.set(e,o),this.hostScopeMap.set(e,reScope(s,t)),this.count++):(s.styleEl=o,s.usesCssVars||(o.textContent=executeTemplate(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(e,s)):o.textContent=r,o},e.prototype.removeHost=function(e){var t=this.hostStyleMap.get(e);t&&t.remove(),this.hostStyleMap.delete(e),this.hostScopeMap.delete(e);},e.prototype.updateHost=function(e){var t=this.hostScopeMap.get(e);if(t&&t.usesCssVars&&t.isScoped){var r=this.hostStyleMap.get(e);if(r){var n=resolveValues(getActiveSelectors(e,this.hostScopeMap,this.globalScopes));r.textContent=executeTemplate(t.template,n);}}},e.prototype.updateGlobal=function(){updateGlobalScopes(this.globalScopes);},e.prototype.registerHostTemplate=function(e,t,r){var n=this.scopesMap.get(t);return n||((n=parseCSS(e)).scopeId=t,n.isScoped=r,this.scopesMap.set(t,n)),n},e}();!function(e){!e||e.__cssshim||e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")||(e.__cssshim=new CustomStyle(e,e.document));}("undefined"!=typeof window&&window);
@@ -1,73 +0,0 @@
1
- /*
2
- Stencil Client Patch Browser v2.6.0 | MIT Licensed | https://stenciljs.com
3
- */
4
- (function(){
5
- var aa=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function g(a){var b=aa.has(a);a=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(a);return !b&&a}function l(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))}
6
- function n(a,b){for(;b&&b!==a&&!b.nextSibling;)b=b.parentNode;return b&&b!==a?b.nextSibling:null}
7
- function p(a,b,d){d=void 0===d?new Set:d;for(var c=a;c;){if(c.nodeType===Node.ELEMENT_NODE){var e=c;b(e);var f=e.localName;if("link"===f&&"import"===e.getAttribute("rel")){c=e.import;if(c instanceof Node&&!d.has(c))for(d.add(c),c=c.firstChild;c;c=c.nextSibling)p(c,b,d);c=n(a,e);continue}else if("template"===f){c=n(a,e);continue}if(e=e.__CE_shadowRoot)for(e=e.firstChild;e;e=e.nextSibling)p(e,b,d);}c=c.firstChild?c.firstChild:n(a,c);}}function r(a,b,d){a[b]=d;}function u(){this.a=new Map;this.g=new Map;this.c=[];this.f=[];this.b=!1;}function ba(a,b,d){a.a.set(b,d);a.g.set(d.constructorFunction,d);}function ca(a,b){a.b=!0;a.c.push(b);}function da(a,b){a.b=!0;a.f.push(b);}function v(a,b){a.b&&p(b,function(b){return w(a,b)});}function w(a,b){if(a.b&&!b.__CE_patched){b.__CE_patched=!0;for(var d=0;d<a.c.length;d++)a.c[d](b);for(d=0;d<a.f.length;d++)a.f[d](b);}}
8
- function x(a,b){var d=[];p(b,function(b){return d.push(b)});for(b=0;b<d.length;b++){var c=d[b];1===c.__CE_state?a.connectedCallback(c):y(a,c);}}function z(a,b){var d=[];p(b,function(b){return d.push(b)});for(b=0;b<d.length;b++){var c=d[b];1===c.__CE_state&&a.disconnectedCallback(c);}}
9
- function A(a,b,d){d=void 0===d?{}:d;var c=d.u||new Set,e=d.i||function(b){return y(a,b)},f=[];p(b,function(b){if("link"===b.localName&&"import"===b.getAttribute("rel")){var d=b.import;d instanceof Node&&(d.__CE_isImportDocument=!0,d.__CE_hasRegistry=!0);d&&"complete"===d.readyState?d.__CE_documentLoadHandled=!0:b.addEventListener("load",function(){var d=b.import;if(!d.__CE_documentLoadHandled){d.__CE_documentLoadHandled=!0;var f=new Set(c);f.delete(d);A(a,d,{u:f,i:e});}});}else f.push(b);},c);if(a.b)for(b=
10
- 0;b<f.length;b++)w(a,f[b]);for(b=0;b<f.length;b++)e(f[b]);}
11
- function y(a,b){if(void 0===b.__CE_state){var d=b.ownerDocument;if(d.defaultView||d.__CE_isImportDocument&&d.__CE_hasRegistry)if(d=a.a.get(b.localName)){d.constructionStack.push(b);var c=d.constructorFunction;try{try{if(new c!==b)throw Error("The custom element constructor did not produce the element being upgraded.");}finally{d.constructionStack.pop();}}catch(t){throw b.__CE_state=2,t;}b.__CE_state=1;b.__CE_definition=d;if(d.attributeChangedCallback)for(d=d.observedAttributes,c=0;c<d.length;c++){var e=
12
- d[c],f=b.getAttribute(e);null!==f&&a.attributeChangedCallback(b,e,null,f,null);}l(b)&&a.connectedCallback(b);}}}u.prototype.connectedCallback=function(a){var b=a.__CE_definition;b.connectedCallback&&b.connectedCallback.call(a);};u.prototype.disconnectedCallback=function(a){var b=a.__CE_definition;b.disconnectedCallback&&b.disconnectedCallback.call(a);};
13
- u.prototype.attributeChangedCallback=function(a,b,d,c,e){var f=a.__CE_definition;f.attributeChangedCallback&&-1<f.observedAttributes.indexOf(b)&&f.attributeChangedCallback.call(a,b,d,c,e);};function B(a){var b=document;this.c=a;this.a=b;this.b=void 0;A(this.c,this.a);"loading"===this.a.readyState&&(this.b=new MutationObserver(this.f.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}));}function C(a){a.b&&a.b.disconnect();}B.prototype.f=function(a){var b=this.a.readyState;"interactive"!==b&&"complete"!==b||C(this);for(b=0;b<a.length;b++)for(var d=a[b].addedNodes,c=0;c<d.length;c++)A(this.c,d[c]);};function ea(){var a=this;this.b=this.a=void 0;this.c=new Promise(function(b){a.b=b;a.a&&b(a.a);});}function D(a){if(a.a)throw Error("Already resolved.");a.a=void 0;a.b&&a.b(void 0);}function E(a){this.c=!1;this.a=a;this.j=new Map;this.f=function(b){return b()};this.b=!1;this.g=[];this.o=new B(a);}
14
- E.prototype.l=function(a,b){var d=this;if(!(b instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!g(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 c=function(b){var a=e[b];if(void 0!==a&&!(a instanceof Function))throw Error("The '"+b+"' callback must be a function.");
15
- return a},e=b.prototype;if(!(e instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var f=c("connectedCallback");var t=c("disconnectedCallback");var k=c("adoptedCallback");var h=c("attributeChangedCallback");var m=b.observedAttributes||[];}catch(q){return}finally{this.c=!1;}b={localName:a,constructorFunction:b,connectedCallback:f,disconnectedCallback:t,adoptedCallback:k,attributeChangedCallback:h,observedAttributes:m,constructionStack:[]};ba(this.a,
16
- a,b);this.g.push(b);this.b||(this.b=!0,this.f(function(){return fa(d)}));};E.prototype.i=function(a){A(this.a,a);};
17
- function fa(a){if(!1!==a.b){a.b=!1;for(var b=a.g,d=[],c=new Map,e=0;e<b.length;e++)c.set(b[e].localName,[]);A(a.a,document,{i:function(b){if(void 0===b.__CE_state){var e=b.localName,f=c.get(e);f?f.push(b):a.a.a.get(e)&&d.push(b);}}});for(e=0;e<d.length;e++)y(a.a,d[e]);for(;0<b.length;){var f=b.shift();e=f.localName;f=c.get(f.localName);for(var t=0;t<f.length;t++)y(a.a,f[t]);(e=a.j.get(e))&&D(e);}}}E.prototype.get=function(a){if(a=this.a.a.get(a))return a.constructorFunction};
18
- E.prototype.m=function(a){if(!g(a))return Promise.reject(new SyntaxError("'"+a+"' is not a valid custom element name."));var b=this.j.get(a);if(b)return b.c;b=new ea;this.j.set(a,b);this.a.a.get(a)&&!this.g.some(function(b){return b.localName===a})&&D(b);return b.c};E.prototype.s=function(a){C(this.o);var b=this.f;this.f=function(d){return a(function(){return b(d)})};};window.CustomElementRegistry=E;E.prototype.define=E.prototype.l;E.prototype.upgrade=E.prototype.i;E.prototype.get=E.prototype.get;
19
- E.prototype.whenDefined=E.prototype.m;E.prototype.polyfillWrapFlushCallback=E.prototype.s;var F=window.Document.prototype.createElement,G=window.Document.prototype.createElementNS,ha=window.Document.prototype.importNode,ia=window.Document.prototype.prepend,ja=window.Document.prototype.append,ka=window.DocumentFragment.prototype.prepend,la=window.DocumentFragment.prototype.append,H=window.Node.prototype.cloneNode,I=window.Node.prototype.appendChild,J=window.Node.prototype.insertBefore,K=window.Node.prototype.removeChild,L=window.Node.prototype.replaceChild,M=Object.getOwnPropertyDescriptor(window.Node.prototype,
20
- "textContent"),N=window.Element.prototype.attachShadow,O=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),P=window.Element.prototype.getAttribute,Q=window.Element.prototype.setAttribute,R=window.Element.prototype.removeAttribute,S=window.Element.prototype.getAttributeNS,T=window.Element.prototype.setAttributeNS,U=window.Element.prototype.removeAttributeNS,ma=window.Element.prototype.insertAdjacentElement,na=window.Element.prototype.insertAdjacentHTML,oa=window.Element.prototype.prepend,
21
- pa=window.Element.prototype.append,V=window.Element.prototype.before,qa=window.Element.prototype.after,ra=window.Element.prototype.replaceWith,sa=window.Element.prototype.remove,ta=window.HTMLElement,W=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),ua=window.HTMLElement.prototype.insertAdjacentElement,va=window.HTMLElement.prototype.insertAdjacentHTML;var wa=new function(){};function xa(){var a=X;window.HTMLElement=function(){function b(){var b=this.constructor,c=a.g.get(b);if(!c)throw Error("The custom element being constructed was not registered with `customElements`.");var e=c.constructionStack;if(0===e.length)return e=F.call(document,c.localName),Object.setPrototypeOf(e,b.prototype),e.__CE_state=1,e.__CE_definition=c,w(a,e),e;c=e.length-1;var f=e[c];if(f===wa)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");
22
- e[c]=wa;Object.setPrototypeOf(f,b.prototype);w(a,f);return f}b.prototype=ta.prototype;Object.defineProperty(b.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:b});return b}();}function Y(a,b,d){function c(b){return function(d){for(var e=[],c=0;c<arguments.length;++c)e[c]=arguments[c];c=[];for(var f=[],m=0;m<e.length;m++){var q=e[m];q instanceof Element&&l(q)&&f.push(q);if(q instanceof DocumentFragment)for(q=q.firstChild;q;q=q.nextSibling)c.push(q);else c.push(q);}b.apply(this,e);for(e=0;e<f.length;e++)z(a,f[e]);if(l(this))for(e=0;e<c.length;e++)f=c[e],f instanceof Element&&x(a,f);}}void 0!==d.h&&(b.prepend=c(d.h));void 0!==d.append&&(b.append=c(d.append));}function ya(){var a=X;r(Document.prototype,"createElement",function(b){if(this.__CE_hasRegistry){var d=a.a.get(b);if(d)return new d.constructorFunction}b=F.call(this,b);w(a,b);return b});r(Document.prototype,"importNode",function(b,d){b=ha.call(this,b,!!d);this.__CE_hasRegistry?A(a,b):v(a,b);return b});r(Document.prototype,"createElementNS",function(b,d){if(this.__CE_hasRegistry&&(null===b||"http://www.w3.org/1999/xhtml"===b)){var c=a.a.get(d);if(c)return new c.constructorFunction}b=G.call(this,b,
23
- d);w(a,b);return b});Y(a,Document.prototype,{h:ia,append:ja});}function za(){function a(a,c){Object.defineProperty(a,"textContent",{enumerable:c.enumerable,configurable:!0,get:c.get,set:function(a){if(this.nodeType===Node.TEXT_NODE)c.set.call(this,a);else {var d=void 0;if(this.firstChild){var e=this.childNodes,k=e.length;if(0<k&&l(this)){d=Array(k);for(var h=0;h<k;h++)d[h]=e[h];}}c.set.call(this,a);if(d)for(a=0;a<d.length;a++)z(b,d[a]);}}});}var b=X;r(Node.prototype,"insertBefore",function(a,c){if(a instanceof DocumentFragment){var e=Array.prototype.slice.apply(a.childNodes);
24
- a=J.call(this,a,c);if(l(this))for(c=0;c<e.length;c++)x(b,e[c]);return a}e=l(a);c=J.call(this,a,c);e&&z(b,a);l(this)&&x(b,a);return c});r(Node.prototype,"appendChild",function(a){if(a instanceof DocumentFragment){var c=Array.prototype.slice.apply(a.childNodes);a=I.call(this,a);if(l(this))for(var e=0;e<c.length;e++)x(b,c[e]);return a}c=l(a);e=I.call(this,a);c&&z(b,a);l(this)&&x(b,a);return e});r(Node.prototype,"cloneNode",function(a){a=H.call(this,!!a);this.ownerDocument.__CE_hasRegistry?A(b,a):v(b,
25
- a);return a});r(Node.prototype,"removeChild",function(a){var c=l(a),e=K.call(this,a);c&&z(b,a);return e});r(Node.prototype,"replaceChild",function(a,c){if(a instanceof DocumentFragment){var e=Array.prototype.slice.apply(a.childNodes);a=L.call(this,a,c);if(l(this))for(z(b,c),c=0;c<e.length;c++)x(b,e[c]);return a}e=l(a);var f=L.call(this,a,c),d=l(this);d&&z(b,c);e&&z(b,a);d&&x(b,a);return f});M&&M.get?a(Node.prototype,M):ca(b,function(b){a(b,{enumerable:!0,configurable:!0,get:function(){for(var a=[],
26
- b=0;b<this.childNodes.length;b++){var f=this.childNodes[b];f.nodeType!==Node.COMMENT_NODE&&a.push(f.textContent);}return a.join("")},set:function(a){for(;this.firstChild;)K.call(this,this.firstChild);null!=a&&""!==a&&I.call(this,document.createTextNode(a));}});});}function Aa(a){function b(b){return function(e){for(var c=[],d=0;d<arguments.length;++d)c[d]=arguments[d];d=[];for(var k=[],h=0;h<c.length;h++){var m=c[h];m instanceof Element&&l(m)&&k.push(m);if(m instanceof DocumentFragment)for(m=m.firstChild;m;m=m.nextSibling)d.push(m);else d.push(m);}b.apply(this,c);for(c=0;c<k.length;c++)z(a,k[c]);if(l(this))for(c=0;c<d.length;c++)k=d[c],k instanceof Element&&x(a,k);}}var d=Element.prototype;void 0!==V&&(d.before=b(V));void 0!==V&&(d.after=b(qa));void 0!==ra&&
27
- r(d,"replaceWith",function(b){for(var e=[],c=0;c<arguments.length;++c)e[c]=arguments[c];c=[];for(var d=[],k=0;k<e.length;k++){var h=e[k];h instanceof Element&&l(h)&&d.push(h);if(h instanceof DocumentFragment)for(h=h.firstChild;h;h=h.nextSibling)c.push(h);else c.push(h);}k=l(this);ra.apply(this,e);for(e=0;e<d.length;e++)z(a,d[e]);if(k)for(z(a,this),e=0;e<c.length;e++)d=c[e],d instanceof Element&&x(a,d);});void 0!==sa&&r(d,"remove",function(){var b=l(this);sa.call(this);b&&z(a,this);});}function Ba(){function a(a,b){Object.defineProperty(a,"innerHTML",{enumerable:b.enumerable,configurable:!0,get:b.get,set:function(a){var e=this,d=void 0;l(this)&&(d=[],p(this,function(a){a!==e&&d.push(a);}));b.set.call(this,a);if(d)for(var f=0;f<d.length;f++){var t=d[f];1===t.__CE_state&&c.disconnectedCallback(t);}this.ownerDocument.__CE_hasRegistry?A(c,this):v(c,this);return a}});}function b(a,b){r(a,"insertAdjacentElement",function(a,e){var d=l(e);a=b.call(this,a,e);d&&z(c,e);l(a)&&x(c,e);return a});}
28
- function d(a,b){function e(a,b){for(var e=[];a!==b;a=a.nextSibling)e.push(a);for(b=0;b<e.length;b++)A(c,e[b]);}r(a,"insertAdjacentHTML",function(a,c){a=a.toLowerCase();if("beforebegin"===a){var d=this.previousSibling;b.call(this,a,c);e(d||this.parentNode.firstChild,this);}else if("afterbegin"===a)d=this.firstChild,b.call(this,a,c),e(this.firstChild,d);else if("beforeend"===a)d=this.lastChild,b.call(this,a,c),e(d||this.firstChild,null);else if("afterend"===a)d=this.nextSibling,b.call(this,a,c),e(this.nextSibling,
29
- d);else throw new SyntaxError("The value provided ("+String(a)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");});}var c=X;N&&r(Element.prototype,"attachShadow",function(a){a=N.call(this,a);var b=c;if(b.b&&!a.__CE_patched){a.__CE_patched=!0;for(var e=0;e<b.c.length;e++)b.c[e](a);}return this.__CE_shadowRoot=a});O&&O.get?a(Element.prototype,O):W&&W.get?a(HTMLElement.prototype,W):da(c,function(b){a(b,{enumerable:!0,configurable:!0,get:function(){return H.call(this,!0).innerHTML},
30
- set:function(a){var b="template"===this.localName,c=b?this.content:this,e=G.call(document,this.namespaceURI,this.localName);for(e.innerHTML=a;0<c.childNodes.length;)K.call(c,c.childNodes[0]);for(a=b?e.content:e;0<a.childNodes.length;)I.call(c,a.childNodes[0]);}});});r(Element.prototype,"setAttribute",function(a,b){if(1!==this.__CE_state)return Q.call(this,a,b);var e=P.call(this,a);Q.call(this,a,b);b=P.call(this,a);c.attributeChangedCallback(this,a,e,b,null);});r(Element.prototype,"setAttributeNS",function(a,
31
- b,d){if(1!==this.__CE_state)return T.call(this,a,b,d);var e=S.call(this,a,b);T.call(this,a,b,d);d=S.call(this,a,b);c.attributeChangedCallback(this,b,e,d,a);});r(Element.prototype,"removeAttribute",function(a){if(1!==this.__CE_state)return R.call(this,a);var b=P.call(this,a);R.call(this,a);null!==b&&c.attributeChangedCallback(this,a,b,null,null);});r(Element.prototype,"removeAttributeNS",function(a,b){if(1!==this.__CE_state)return U.call(this,a,b);var d=S.call(this,a,b);U.call(this,a,b);var e=S.call(this,
32
- a,b);d!==e&&c.attributeChangedCallback(this,b,d,e,a);});ua?b(HTMLElement.prototype,ua):ma?b(Element.prototype,ma):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");va?d(HTMLElement.prototype,va):na?d(Element.prototype,na):console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched.");Y(c,Element.prototype,{h:oa,append:pa});Aa(c);}var Z=window.customElements;if(!Z||Z.forcePolyfill||"function"!=typeof Z.define||"function"!=typeof Z.get){var X=new u;xa();ya();Y(X,DocumentFragment.prototype,{h:ka,append:la});za();Ba();document.__CE_hasRegistry=!0;var customElements=new E(X);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:customElements});}}).call(self);
33
-
34
- // Polyfill document.baseURI
35
- "string"!==typeof document.baseURI&&Object.defineProperty(Document.prototype,"baseURI",{enumerable:!0,configurable:!0,get:function(){var a=document.querySelector("base");return a&&a.href?a.href:document.URL}});
36
-
37
- // Polyfill CustomEvent
38
- "function"!==typeof window.CustomEvent&&(window.CustomEvent=function(c,a){a=a||{bubbles:!1,cancelable:!1,detail:void 0};var b=document.createEvent("CustomEvent");b.initCustomEvent(c,a.bubbles,a.cancelable,a.detail);return b},window.CustomEvent.prototype=window.Event.prototype);
39
-
40
- // Event.composedPath
41
- (function(b,c,d){b.composedPath||(b.composedPath=function(){if(this.path)return this.path;var a=this.target;for(this.path=[];null!==a.parentNode;)this.path.push(a),a=a.parentNode;this.path.push(c,d);return this.path});})(Event.prototype,document,window);
42
-
43
- /*!
44
- Element.closest and Element.matches
45
- https://github.com/jonathantneal/closest
46
- Creative Commons Zero v1.0 Universal
47
- */
48
- (function(a){"function"!==typeof a.matches&&(a.matches=a.msMatchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||function(a){a=(this.document||this.ownerDocument).querySelectorAll(a);for(var b=0;a[b]&&a[b]!==this;)++b;return !!a[b]});"function"!==typeof a.closest&&(a.closest=function(a){for(var b=this;b&&1===b.nodeType;){if(b.matches(a))return b;b=b.parentNode;}return null});})(window.Element.prototype);
49
-
50
- /*!
51
- Element.getRootNode()
52
- */
53
- (function(c){function d(a){a=b(a);return a&&11===a.nodeType?d(a.host):a}function b(a){return a&&a.parentNode?b(a.parentNode):a}"function"!==typeof c.getRootNode&&(c.getRootNode=function(a){return a&&a.composed?d(this):b(this)});})(Element.prototype);
54
-
55
- /*!
56
- Element.isConnected()
57
- */
58
- (function(a){"isConnected"in a||Object.defineProperty(a,"isConnected",{configurable:!0,enumerable:!0,get:function(){var a=this.getRootNode({composed:!0});return a&&9===a.nodeType}});})(Element.prototype);
59
-
60
- /*!
61
- Element.remove()
62
- */
63
- (function(b){b.forEach(function(a){a.hasOwnProperty("remove")||Object.defineProperty(a,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this);}});});})([Element.prototype,CharacterData.prototype,DocumentType.prototype]);
64
-
65
- /*!
66
- Element.classList
67
- */
68
- !function(e){'classList'in e||Object.defineProperty(e,"classList",{get:function(){var e=this,t=(e.getAttribute("class")||"").replace(/^\s+|\s$/g,"").split(/\s+/g);function n(){t.length>0?e.setAttribute("class",t.join(" ")):e.removeAttribute("class");}return ""===t[0]&&t.splice(0,1),t.toggle=function(e,i){void 0!==i?i?t.add(e):t.remove(e):-1!==t.indexOf(e)?t.splice(t.indexOf(e),1):t.push(e),n();},t.add=function(){for(var e=[].slice.call(arguments),i=0,s=e.length;i<s;i++)-1===t.indexOf(e[i])&&t.push(e[i]);n();},t.remove=function(){for(var e=[].slice.call(arguments),i=0,s=e.length;i<s;i++)-1!==t.indexOf(e[i])&&t.splice(t.indexOf(e[i]),1);n();},t.item=function(e){return t[e]},t.contains=function(e){return -1!==t.indexOf(e)},t.replace=function(e,i){-1!==t.indexOf(e)&&t.splice(t.indexOf(e),1,i),n();},t.value=e.getAttribute("class")||"",t}});}(Element.prototype);
69
-
70
- /*!
71
- DOMTokenList
72
- */
73
- (function(b){try{document.body.classList.add();}catch(e){var c=b.add,d=b.remove;b.add=function(){for(var a=0;a<arguments.length;a++)c.call(this,arguments[a]);};b.remove=function(){for(var a=0;a<arguments.length;a++)d.call(this,arguments[a]);};}})(DOMTokenList.prototype);