@haiilo/catalyst 0.2.3 → 0.3.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.
Files changed (138) hide show
  1. package/dist/catalyst/catalyst.css +1 -1959
  2. package/dist/catalyst/catalyst.esm.js +1 -131
  3. package/dist/catalyst/catalyst.esm.js.map +1 -1
  4. package/dist/catalyst/index.esm.js +1 -2
  5. package/dist/catalyst/index.esm.js.map +1 -1
  6. package/dist/catalyst/p-31b500c7.entry.js +10 -0
  7. package/dist/catalyst/p-31b500c7.entry.js.map +1 -0
  8. package/dist/catalyst/p-ed826597.js +2 -0
  9. package/dist/catalyst/p-ed826597.js.map +1 -0
  10. package/dist/catalyst/p-ef0a8ae9.js +2 -0
  11. package/dist/catalyst/p-ef0a8ae9.js.map +1 -0
  12. package/dist/catalyst/p-f151cb13.js +2 -0
  13. package/dist/catalyst/p-f151cb13.js.map +1 -0
  14. package/dist/cjs/app-globals-7f2b1f8e.js +173 -0
  15. package/dist/cjs/app-globals-7f2b1f8e.js.map +1 -0
  16. package/dist/cjs/cat-alert_8.cjs.entry.js +4450 -0
  17. package/dist/cjs/cat-alert_8.cjs.entry.js.map +1 -0
  18. package/dist/cjs/cat-icon-registry-850c538c.js +47 -0
  19. package/dist/cjs/cat-icon-registry-850c538c.js.map +1 -0
  20. package/dist/cjs/catalyst.cjs.js +24 -0
  21. package/dist/cjs/catalyst.cjs.js.map +1 -0
  22. package/dist/cjs/index-c0881ae0.js +1348 -0
  23. package/dist/cjs/index-c0881ae0.js.map +1 -0
  24. package/dist/cjs/index.cjs.js +11 -0
  25. package/dist/cjs/index.cjs.js.map +1 -0
  26. package/dist/cjs/loader.cjs.js +26 -0
  27. package/dist/cjs/loader.cjs.js.map +1 -0
  28. package/dist/collection/collection-manifest.json +20 -0
  29. package/dist/collection/components/cat-alert/cat-alert.css +57 -0
  30. package/dist/collection/components/cat-alert/cat-alert.js +50 -0
  31. package/dist/collection/components/cat-alert/cat-alert.js.map +1 -0
  32. package/dist/collection/components/cat-badge/cat-badge.css +154 -0
  33. package/dist/collection/components/cat-badge/cat-badge.js +142 -0
  34. package/dist/collection/components/cat-badge/cat-badge.js.map +1 -0
  35. package/dist/collection/components/cat-button/cat-button.css +323 -0
  36. package/dist/collection/components/cat-button/cat-button.js +591 -0
  37. package/dist/collection/components/cat-button/cat-button.js.map +1 -0
  38. package/dist/collection/components/cat-icon/cat-icon-registry.js +42 -0
  39. package/dist/collection/components/cat-icon/cat-icon-registry.js.map +1 -0
  40. package/dist/collection/components/cat-icon/cat-icon.css +50 -0
  41. package/dist/collection/components/cat-icon/cat-icon.js +90 -0
  42. package/dist/collection/components/cat-icon/cat-icon.js.map +1 -0
  43. package/dist/collection/components/cat-menu/cat-menu.css +33 -0
  44. package/dist/collection/components/cat-menu/cat-menu.js +186 -0
  45. package/dist/collection/components/cat-menu/cat-menu.js.map +1 -0
  46. package/dist/collection/components/cat-scrollable/cat-scrollable.css +69 -0
  47. package/dist/collection/components/cat-scrollable/cat-scrollable.js +309 -0
  48. package/dist/collection/components/cat-scrollable/cat-scrollable.js.map +1 -0
  49. package/dist/collection/components/cat-skeleton/cat-skeleton.css +177 -0
  50. package/dist/collection/components/cat-skeleton/cat-skeleton.js +131 -0
  51. package/dist/collection/components/cat-skeleton/cat-skeleton.js.map +1 -0
  52. package/dist/collection/components/cat-spinner/cat-spinner.css +63 -0
  53. package/dist/collection/components/cat-spinner/cat-spinner.js +65 -0
  54. package/dist/collection/components/cat-spinner/cat-spinner.js.map +1 -0
  55. package/dist/collection/index.cdn.js +21 -0
  56. package/dist/collection/index.js +2 -0
  57. package/dist/collection/index.js.map +1 -0
  58. package/dist/collection/init.js +9 -0
  59. package/dist/collection/init.js.map +1 -0
  60. package/dist/collection/utils/breakpoints.js +12 -0
  61. package/dist/collection/utils/breakpoints.js.map +1 -0
  62. package/dist/collection/utils/media-matcher.js +55 -0
  63. package/dist/collection/utils/media-matcher.js.map +1 -0
  64. package/dist/collection/utils/platform.js +50 -0
  65. package/dist/collection/utils/platform.js.map +1 -0
  66. package/dist/collection/utils/utils.js +4 -0
  67. package/dist/collection/utils/utils.js.map +1 -0
  68. package/dist/{catalyst/cat-alert.entry.js → components/cat-alert.js} +28 -8
  69. package/dist/components/cat-alert.js.map +1 -0
  70. package/dist/{catalyst/cat-badge.entry.js → components/cat-badge.js} +32 -8
  71. package/dist/components/cat-badge.js.map +1 -0
  72. package/dist/{catalyst/cat-button.entry.js → components/cat-button.js} +60 -41
  73. package/dist/components/cat-button.js.map +1 -0
  74. package/dist/components/cat-icon-registry.js +45 -0
  75. package/dist/components/cat-icon-registry.js.map +1 -0
  76. package/dist/components/cat-icon.js +8 -0
  77. package/dist/components/cat-icon.js.map +1 -0
  78. package/dist/{catalyst/cat-icon.entry.js → components/cat-icon2.js} +28 -9
  79. package/dist/components/cat-icon2.js.map +1 -0
  80. package/dist/{catalyst/cat-menu.entry.js → components/cat-menu.js} +34 -642
  81. package/dist/components/cat-menu.js.map +1 -0
  82. package/dist/components/cat-scrollable.js +1363 -0
  83. package/dist/components/cat-scrollable.js.map +1 -0
  84. package/dist/{catalyst/cat-skeleton.entry.js → components/cat-skeleton.js} +31 -8
  85. package/dist/components/cat-skeleton.js.map +1 -0
  86. package/dist/components/cat-spinner.js +8 -0
  87. package/dist/components/cat-spinner.js.map +1 -0
  88. package/dist/{catalyst/cat-spinner.entry.js → components/cat-spinner2.js} +26 -8
  89. package/dist/components/cat-spinner2.js.map +1 -0
  90. package/dist/components/index.js +173 -0
  91. package/dist/components/index.js.map +1 -0
  92. package/dist/esm/app-globals-8af9b2cf.js +171 -0
  93. package/dist/esm/app-globals-8af9b2cf.js.map +1 -0
  94. package/dist/esm/cat-alert_8.entry.js +4439 -0
  95. package/dist/esm/cat-alert_8.entry.js.map +1 -0
  96. package/dist/{catalyst → esm}/cat-icon-registry-59da2e37.js +0 -0
  97. package/dist/{catalyst → esm}/cat-icon-registry-59da2e37.js.map +0 -0
  98. package/dist/esm/catalyst.js +22 -0
  99. package/dist/esm/catalyst.js.map +1 -0
  100. package/dist/esm/index-0ff35bca.js +1320 -0
  101. package/dist/esm/index-0ff35bca.js.map +1 -0
  102. package/dist/esm/index.js +3 -0
  103. package/dist/esm/index.js.map +1 -0
  104. package/dist/esm/loader.js +22 -0
  105. package/dist/esm/loader.js.map +1 -0
  106. package/dist/esm/polyfills/core-js.js +11 -0
  107. package/dist/esm/polyfills/css-shim.js +1 -0
  108. package/dist/esm/polyfills/dom.js +79 -0
  109. package/dist/esm/polyfills/es5-html-element.js +1 -0
  110. package/dist/esm/polyfills/index.js +34 -0
  111. package/dist/esm/polyfills/system.js +6 -0
  112. package/dist/index.cjs.js +1 -0
  113. package/dist/index.js +1 -0
  114. package/dist/types/index.d.ts +1 -0
  115. package/package.json +10 -17
  116. package/dist/catalyst/app-globals-54573336.js +0 -718
  117. package/dist/catalyst/app-globals-54573336.js.map +0 -1
  118. package/dist/catalyst/cat-alert.entry.js.map +0 -1
  119. package/dist/catalyst/cat-badge.entry.js.map +0 -1
  120. package/dist/catalyst/cat-button.entry.js.map +0 -1
  121. package/dist/catalyst/cat-icon.entry.js.map +0 -1
  122. package/dist/catalyst/cat-input.entry.js +0 -55
  123. package/dist/catalyst/cat-input.entry.js.map +0 -1
  124. package/dist/catalyst/cat-menu.entry.js.map +0 -1
  125. package/dist/catalyst/cat-scrollable.entry.js +0 -4523
  126. package/dist/catalyst/cat-scrollable.entry.js.map +0 -1
  127. package/dist/catalyst/cat-skeleton.entry.js.map +0 -1
  128. package/dist/catalyst/cat-spinner.entry.js.map +0 -1
  129. package/dist/catalyst/css-shim-e6dd2538.js +0 -6
  130. package/dist/catalyst/css-shim-e6dd2538.js.map +0 -1
  131. package/dist/catalyst/dom-7fc649b0.js +0 -75
  132. package/dist/catalyst/dom-7fc649b0.js.map +0 -1
  133. package/dist/catalyst/index-2df805aa.js +0 -3059
  134. package/dist/catalyst/index-2df805aa.js.map +0 -1
  135. package/dist/catalyst/shadow-css-4d56fa31.js +0 -390
  136. package/dist/catalyst/shadow-css-4d56fa31.js.map +0 -1
  137. package/dist/components/cat-input.d.ts +0 -11
  138. package/dist/types/components/cat-input/cat-input.d.ts +0 -70
@@ -1,132 +1,2 @@
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-2df805aa.js';
2
- import { g as globalScripts } from './app-globals-54573336.js';
3
- import './cat-icon-registry-59da2e37.js';
4
-
5
- /*
6
- Stencil Client Patch Browser v2.15.0 | MIT Licensed | https://stenciljs.com
7
- */
8
- const getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\s|-/g, '_')}`;
9
- const patchBrowser = () => {
10
- // NOTE!! This fn cannot use async/await!
11
- if (BUILD.isDev && !BUILD.isTesting) {
12
- consoleDevInfo('Running in development mode.');
13
- }
14
- if (BUILD.cssVarShim) {
15
- // shim css vars
16
- plt.$cssShim$ = win.__cssshim;
17
- }
18
- if (BUILD.cloneNodeFix) {
19
- // opted-in to polyfill cloneNode() for slot polyfilled components
20
- patchCloneNodeFix(H.prototype);
21
- }
22
- if (BUILD.profile && !performance.mark) {
23
- // not all browsers support performance.mark/measure (Safari 10)
24
- // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,
25
- // simply stub the implementations out.
26
- // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)
27
- // @ts-ignore
28
- performance.mark = performance.measure = () => {
29
- /*noop*/
30
- };
31
- performance.getEntriesByName = () => [];
32
- }
33
- // @ts-ignore
34
- const scriptElm = BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim
35
- ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\/${NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) ||
36
- s.getAttribute('data-stencil-namespace') === NAMESPACE)
37
- : null;
38
- const importMeta = import.meta.url;
39
- const opts = BUILD.scriptDataOpts ? scriptElm['data-opts'] || {} : {};
40
- if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {
41
- // Safari < v11 support: This IF is true if it's Safari below v11.
42
- // This fn cannot use async/await since Safari didn't support it until v11,
43
- // however, Safari 10 did support modules. Safari 10 also didn't support "nomodule",
44
- // so both the ESM file and nomodule file would get downloaded. Only Safari
45
- // has 'onbeforeload' in the script, and "history.scrollRestoration" was added
46
- // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.
47
- // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.
48
- return {
49
- then() {
50
- /* promise noop */
51
- },
52
- };
53
- }
54
- if (!BUILD.safari10 && importMeta !== '') {
55
- opts.resourcesUrl = new URL('.', importMeta).href;
56
- }
57
- else if (BUILD.dynamicImportShim || BUILD.safari10) {
58
- opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;
59
- if (BUILD.dynamicImportShim) {
60
- patchDynamicImport(opts.resourcesUrl, scriptElm);
61
- }
62
- if (BUILD.dynamicImportShim && !win.customElements) {
63
- // module support, but no custom elements support (Old Edge)
64
- // @ts-ignore
65
- return import(/* webpackChunkName: "polyfills-dom" */ './dom-7fc649b0.js').then(() => opts);
66
- }
67
- }
68
- return promiseResolve(opts);
69
- };
70
- const patchDynamicImport = (base, orgScriptElm) => {
71
- const importFunctionName = getDynamicImportFunction(NAMESPACE);
72
- try {
73
- // test if this browser supports dynamic imports
74
- // There is a caching issue in V8, that breaks using import() in Function
75
- // By generating a random string, we can workaround it
76
- // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info
77
- win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);
78
- }
79
- catch (e) {
80
- // this shim is specifically for browsers that do support "esm" imports
81
- // however, they do NOT support "dynamic" imports
82
- // basically this code is for old Edge, v18 and below
83
- const moduleMap = new Map();
84
- win[importFunctionName] = (src) => {
85
- const url = new URL(src, base).href;
86
- let mod = moduleMap.get(url);
87
- if (!mod) {
88
- const script = doc.createElement('script');
89
- script.type = 'module';
90
- script.crossOrigin = orgScriptElm.crossOrigin;
91
- script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {
92
- type: 'application/javascript',
93
- }));
94
- mod = new Promise((resolve) => {
95
- script.onload = () => {
96
- resolve(win[importFunctionName].m);
97
- script.remove();
98
- };
99
- });
100
- moduleMap.set(url, mod);
101
- doc.head.appendChild(script);
102
- }
103
- return mod;
104
- };
105
- }
106
- };
107
- const patchCloneNodeFix = (HTMLElementPrototype) => {
108
- const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;
109
- HTMLElementPrototype.cloneNode = function (deep) {
110
- if (this.nodeName === 'TEMPLATE') {
111
- return nativeCloneNodeFn.call(this, deep);
112
- }
113
- const clonedNode = nativeCloneNodeFn.call(this, false);
114
- const srcChildNodes = this.childNodes;
115
- if (deep) {
116
- for (let i = 0; i < srcChildNodes.length; i++) {
117
- // Node.ATTRIBUTE_NODE === 2, and checking because IE11
118
- if (srcChildNodes[i].nodeType !== 2) {
119
- clonedNode.appendChild(srcChildNodes[i].cloneNode(true));
120
- }
121
- }
122
- }
123
- return clonedNode;
124
- };
125
- };
126
-
127
- patchBrowser().then(options => {
128
- globalScripts();
129
- return bootstrapLazy([["cat-button",[[1,"cat-button",{"variant":[1],"color":[1],"size":[1],"name":[1],"value":[1],"disabled":[4],"loading":[4],"submit":[4],"ellipsed":[4],"round":[4],"url":[1],"urlTarget":[1,"url-target"],"icon":[1],"iconOnly":[8,"icon-only"],"iconSuffix":[4,"icon-suffix"],"buttonId":[1,"button-id"],"a11yLabel":[1,"a11y-label"],"_iconOnly":[32],"setFocus":[64]},[[0,"click","haltDisabledEvents"]]]]],["cat-alert",[[1,"cat-alert",{"color":[1]}]]],["cat-badge",[[1,"cat-badge",{"variant":[1],"color":[1],"size":[1],"round":[4],"pulse":[4]}]]],["cat-menu",[[1,"cat-menu",{"placement":[1]},[[0,"catClick","clickHandler"]]]]],["cat-scrollable",[[1,"cat-scrollable",{"shadowX":[4,"shadow-x"],"shadowY":[4,"shadow-y"],"overflowX":[4,"overflow-x"],"overflowY":[4,"overflow-y"],"overscroll":[4],"scrolledInit":[4,"scrolled-init"],"scrolledBuffer":[2,"scrolled-buffer"]}]]],["cat-skeleton",[[1,"cat-skeleton",{"effect":[1],"variant":[1],"size":[1],"lines":[2]}]]],["cat-icon",[[1,"cat-icon",{"icon":[1],"size":[1],"a11yLabel":[1,"a11y-label"]}]]],["cat-spinner",[[1,"cat-spinner",{"size":[1],"a11yLabel":[1,"a11y-label"]}]]]], options);
130
- });
131
-
1
+ import{p as e,b as l}from"./p-ed826597.js";import{g as o}from"./p-f151cb13.js";import"./p-ef0a8ae9.js";const a=()=>{const l=import.meta.url;const o={};if(l!==""){o.resourcesUrl=new URL(".",l).href}return e(o)};a().then((e=>{o();return l([["p-31b500c7",[[1,"cat-button",{variant:[1],color:[1],size:[1],name:[1],value:[1],disabled:[4],loading:[4],submit:[4],ellipsed:[4],round:[4],url:[1],urlTarget:[1,"url-target"],icon:[1],iconOnly:[8,"icon-only"],iconSuffix:[4,"icon-suffix"],buttonId:[1,"button-id"],a11yLabel:[1,"a11y-label"],_iconOnly:[32],setFocus:[64]},[[0,"click","haltDisabledEvents"]]],[1,"cat-alert",{color:[1]}],[1,"cat-badge",{variant:[1],color:[1],size:[1],round:[4],pulse:[4]}],[1,"cat-menu",{placement:[1]},[[0,"catClick","clickHandler"]]],[1,"cat-scrollable",{shadowX:[4,"shadow-x"],shadowY:[4,"shadow-y"],overflowX:[4,"overflow-x"],overflowY:[4,"overflow-y"],overscroll:[4],scrolledInit:[4,"scrolled-init"],scrolledBuffer:[2,"scrolled-buffer"]}],[1,"cat-skeleton",{effect:[1],variant:[1],size:[1],lines:[2]}],[1,"cat-icon",{icon:[1],size:[1],a11yLabel:[1,"a11y-label"]}],[1,"cat-spinner",{size:[1],a11yLabel:[1,"a11y-label"]}]]]],e)}));
132
2
  //# sourceMappingURL=catalyst.esm.js.map
@@ -1 +1 @@
1
- {"file":"catalyst.esm.js","mappings":"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","names":[],"sources":["./node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v2.15.0 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, plt, win, doc, promiseResolve, H } from '@stencil/core';\nconst getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\\s|-/g, '_')}`;\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cssVarShim) {\n // shim css vars\n plt.$cssShim$ = win.__cssshim;\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? scriptElm['data-opts'] || {} : {};\n if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {\n // Safari < v11 support: This IF is true if it's Safari below v11.\n // This fn cannot use async/await since Safari didn't support it until v11,\n // however, Safari 10 did support modules. Safari 10 also didn't support \"nomodule\",\n // so both the ESM file and nomodule file would get downloaded. Only Safari\n // has 'onbeforeload' in the script, and \"history.scrollRestoration\" was added\n // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.\n // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.\n return {\n then() {\n /* promise noop */\n },\n };\n }\n if (!BUILD.safari10 && importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n else if (BUILD.dynamicImportShim || BUILD.safari10) {\n opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;\n if (BUILD.dynamicImportShim) {\n patchDynamicImport(opts.resourcesUrl, scriptElm);\n }\n if (BUILD.dynamicImportShim && !win.customElements) {\n // module support, but no custom elements support (Old Edge)\n // @ts-ignore\n return import(/* webpackChunkName: \"polyfills-dom\" */ './dom.js').then(() => opts);\n }\n }\n return promiseResolve(opts);\n};\nconst patchDynamicImport = (base, orgScriptElm) => {\n const importFunctionName = getDynamicImportFunction(NAMESPACE);\n try {\n // test if this browser supports dynamic imports\n // There is a caching issue in V8, that breaks using import() in Function\n // By generating a random string, we can workaround it\n // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info\n win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);\n }\n catch (e) {\n // this shim is specifically for browsers that do support \"esm\" imports\n // however, they do NOT support \"dynamic\" imports\n // basically this code is for old Edge, v18 and below\n const moduleMap = new Map();\n win[importFunctionName] = (src) => {\n const url = new URL(src, base).href;\n let mod = moduleMap.get(url);\n if (!mod) {\n const script = doc.createElement('script');\n script.type = 'module';\n script.crossOrigin = orgScriptElm.crossOrigin;\n script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {\n type: 'application/javascript',\n }));\n mod = new Promise((resolve) => {\n script.onload = () => {\n resolve(win[importFunctionName].m);\n script.remove();\n };\n });\n moduleMap.set(url, mod);\n doc.head.appendChild(script);\n }\n return mod;\n };\n }\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","import { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"version":3}
1
+ {"version":3,"sources":["node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"names":["patchBrowser","importMeta","import","meta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","globalScripts","bootstrapLazy","variant","color","size","name","value","disabled","loading","submit","ellipsed","round","urlTarget","icon","iconOnly","iconSuffix","buttonId","a11yLabel","_iconOnly","setFocus","pulse","placement","shadowX","shadowY","overflowX","overflowY","overscroll","scrolledInit","scrolledBuffer","effect","lines"],"mappings":"uGAMA,MAAMA,EAAe,KA6BjB,MAAMC,EAAaC,OAAOC,KAAKC,IAC/B,MAAMC,EAA6D,GAenE,GAAuBJ,IAAe,GAAI,CACtCI,EAAKC,aAAe,IAAIC,IAAI,IAAKN,GAAYO,KAajD,OAAOC,EAAeJ,IC9D1BL,IAAeU,MAAKC,IAClBC,IACA,OAAOC,EAAc,CAAA,CAAA,aAAA,CAAA,CAAA,EAAA,aAA8B,CAAAC,QAAS,CAAA,GAAAC,MAAA,CAAA,GAAAC,KAAA,CAAA,GAAAC,KAAA,CAAA,GAAAC,MAAA,CAAA,GAAAC,SAAA,CAAA,GAAAC,QAAA,CAAA,GAAAC,OAAA,CAAA,GAAAC,SAAA,CAAA,GAAAC,MAAA,CAAA,GAAAnB,IAAA,CAAA,GAAAoB,UAAA,CAAA,EAAA,cAAAC,KAAA,CAAA,GAAAC,SAAA,CAAA,EAAA,aAAAC,WAAA,CAAA,EAAA,eAAAC,SAAA,CAAA,EAAA,aAAAC,UAAA,CAAA,EAAA,cAAAC,UAAA,CAAA,IAAAC,SAAA,CAAA,KAAA,CAAA,CAAA,EAAA,QAAA,wBAAA,CAAA,EAAA,YAAA,CAAAhB,MAAA,CAAA,KAAA,CAAA,EAAA,YAAA,CAAAD,QAAA,CAAA,GAAAC,MAAA,CAAA,GAAAC,KAAA,CAAA,GAAAO,MAAA,CAAA,GAAAS,MAAA,CAAA,KAAA,CAAA,EAAA,WAAA,CAAAC,UAAA,CAAA,IAAA,CAAA,CAAA,EAAA,WAAA,kBAAA,CAAA,EAAA,iBAAA,CAAAC,QAAA,CAAA,EAAA,YAAAC,QAAA,CAAA,EAAA,YAAAC,UAAA,CAAA,EAAA,cAAAC,UAAA,CAAA,EAAA,cAAAC,WAAA,CAAA,GAAAC,aAAA,CAAA,EAAA,iBAAAC,eAAA,CAAA,EAAA,qBAAA,CAAA,EAAA,eAAA,CAAAC,OAAA,CAAA,GAAA3B,QAAA,CAAA,GAAAE,KAAA,CAAA,GAAA0B,MAAA,CAAA,KAAA,CAAA,EAAA,WAAA,CAAAjB,KAAA,CAAA,GAAAT,KAAA,CAAA,GAAAa,UAAA,CAAA,EAAA,gBAAA,CAAA,EAAA,cAAA,CAAAb,KAAA,CAAA,GAAAa,UAAA,CAAA,EAAA,mBAAAlB","sourcesContent":["/*\n Stencil Client Patch Browser v2.15.0 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, plt, win, doc, promiseResolve, H } from '@stencil/core';\nconst getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\\s|-/g, '_')}`;\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cssVarShim) {\n // shim css vars\n plt.$cssShim$ = win.__cssshim;\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? scriptElm['data-opts'] || {} : {};\n if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {\n // Safari < v11 support: This IF is true if it's Safari below v11.\n // This fn cannot use async/await since Safari didn't support it until v11,\n // however, Safari 10 did support modules. Safari 10 also didn't support \"nomodule\",\n // so both the ESM file and nomodule file would get downloaded. Only Safari\n // has 'onbeforeload' in the script, and \"history.scrollRestoration\" was added\n // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.\n // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.\n return {\n then() {\n /* promise noop */\n },\n };\n }\n if (!BUILD.safari10 && importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n else if (BUILD.dynamicImportShim || BUILD.safari10) {\n opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;\n if (BUILD.dynamicImportShim) {\n patchDynamicImport(opts.resourcesUrl, scriptElm);\n }\n if (BUILD.dynamicImportShim && !win.customElements) {\n // module support, but no custom elements support (Old Edge)\n // @ts-ignore\n return import(/* webpackChunkName: \"polyfills-dom\" */ './dom.js').then(() => opts);\n }\n }\n return promiseResolve(opts);\n};\nconst patchDynamicImport = (base, orgScriptElm) => {\n const importFunctionName = getDynamicImportFunction(NAMESPACE);\n try {\n // test if this browser supports dynamic imports\n // There is a caching issue in V8, that breaks using import() in Function\n // By generating a random string, we can workaround it\n // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info\n win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);\n }\n catch (e) {\n // this shim is specifically for browsers that do support \"esm\" imports\n // however, they do NOT support \"dynamic\" imports\n // basically this code is for old Edge, v18 and below\n const moduleMap = new Map();\n win[importFunctionName] = (src) => {\n const url = new URL(src, base).href;\n let mod = moduleMap.get(url);\n if (!mod) {\n const script = doc.createElement('script');\n script.type = 'module';\n script.crossOrigin = orgScriptElm.crossOrigin;\n script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {\n type: 'application/javascript',\n }));\n mod = new Promise((resolve) => {\n script.onload = () => {\n resolve(win[importFunctionName].m);\n script.remove();\n };\n });\n moduleMap.set(url, mod);\n doc.head.appendChild(script);\n }\n return mod;\n };\n }\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","import { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"]}
@@ -1,3 +1,2 @@
1
-
2
-
1
+ export{C as CatIconRegistry}from"./p-ef0a8ae9.js";
3
2
  //# sourceMappingURL=index.esm.js.map
@@ -1 +1 @@
1
- {"file":"index.esm.js","mappings":"","names":[],"sources":[],"sourcesContent":[],"version":3}
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ import{r as t,h as e,c as n,H as i,g as r}from"./p-ed826597.js";import{C as o}from"./p-ef0a8ae9.js";const s=":host{display:block;margin-bottom:1rem}:host([hidden]){display:none}.cat-alert{font:inherit;color:rgb(var(--text));background-color:rgba(var(--bg), 0.1);box-shadow:inset 0 0 0 1px rgba(var(--border), 0.2);border-radius:0.25rem;padding:0.75rem 1rem;width:100%}::slotted(:last-child){margin-bottom:0 !important}.cat-alert-primary{--bg:var(--cat-primary-bg, 32, 127, 138);--text:var(--cat-primary-text, 32, 127, 138);--border:var(--cat-primary-text, 32, 127, 138)}.cat-alert-secondary{--bg:105, 118, 135;--text:0, 0, 0;--border:105, 118, 135}.cat-alert-success{--bg:0, 132, 88;--text:0, 132, 88;--border:0, 132, 88}.cat-alert-warning{--bg:255, 206, 128;--text:159, 97, 0;--border:159, 97, 0}.cat-alert-danger{--bg:217, 52, 13;--text:217, 52, 13;--border:217, 52, 13}";const a=class{constructor(e){t(this,e);this.color="primary"}render(){return e("div",{part:"alert",class:{"cat-alert":true,[`cat-alert-${this.color}`]:Boolean(this.color)}},e("slot",null))}};a.style=s;const c=":host{display:inline-flex;max-width:100%;vertical-align:baseline}:host([hidden]){display:none}.cat-badge{font:inherit;flex:1 1 auto;display:inline-flex;align-items:center;justify-content:center;border-radius:0.125rem;text-decoration:none;width:100%;box-sizing:border-box;line-height:1;white-space:nowrap}.cat-badge slot{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.cat-badge-round{border-radius:10rem}.cat-badge-filled{background-color:rgb(var(--bg));color:rgb(var(--fill));font-weight:600;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:greyscale}.cat-badge-outlined{background-color:white;box-shadow:inset 0 0 0 1px rgba(var(--border), 0.2);color:rgb(var(--text))}.cat-badge-primary{--bg:var(--cat-primary-bg, 32, 127, 138);--fill:var(--cat-primary-fill, 255, 255, 255);--text:var(--cat-primary-text, 32, 127, 138);--border:var(--cat-primary-text, 32, 127, 138)}.cat-badge-secondary{--bg:105, 118, 135;--fill:255, 255, 255;--text:0, 0, 0;--border:105, 118, 135}.cat-badge-success{--bg:0, 132, 88;--fill:255, 255, 255;--text:0, 132, 88;--border:0, 132, 88}.cat-badge-warning{--bg:255, 206, 128;--fill:0, 0, 0;--text:159, 97, 0;--border:159, 97, 0}.cat-badge-danger{--bg:217, 52, 13;--fill:255, 255, 255;--text:217, 52, 13;--border:217, 52, 13}.cat-badge-xs{height:0.75rem;min-width:0.75rem;font-size:0.75rem;padding:0 0.1875rem}.cat-badge-s{height:1rem;min-width:1rem;font-size:0.75rem;padding:0 0.25rem}.cat-badge-m{height:1.25rem;min-width:1.25rem;font-size:0.75rem;padding:0 0.3125rem}.cat-badge-l{height:1.5rem;min-width:1.5rem;font-size:0.875rem;padding:0 0.375rem}.cat-badge-xl{height:1.75rem;min-width:1.75rem;font-size:0.9375rem;padding:0 0.4375rem}.cat-badge-pulse.cat-badge-filled{animation:1.5s ease 0s infinite normal none running pulse}.cat-badge-pulse.cat-badge-outlined{animation:1.5s ease 0s infinite normal none running pulse-outlined}@keyframes pulse{0%{box-shadow:0 0 0 0 rgb(var(--bg))}70%{box-shadow:transparent 0 0 0 0.5rem}100%{box-shadow:transparent 0 0 0 0}}@keyframes pulse-outlined{0%{box-shadow:0 0 0 0 rgb(var(--bg)), inset 0 0 0 1px rgba(var(--border), 0.2)}70%{box-shadow:transparent 0 0 0 0.5rem, inset 0 0 0 1px rgba(var(--border), 0.2)}100%{box-shadow:transparent 0 0 0 0, inset 0 0 0 1px rgba(var(--border), 0.2)}}";const l=class{constructor(e){t(this,e);this.variant="filled";this.color="primary";this.size="m";this.round=false;this.pulse=false}render(){return e("span",{part:"badge",class:{"cat-badge":true,"cat-badge-round":this.round,"cat-badge-pulse":this.pulse,[`cat-badge-${this.variant}`]:Boolean(this.variant),[`cat-badge-${this.color}`]:Boolean(this.color),[`cat-badge-${this.size}`]:Boolean(this.size)}},e("slot",null))}};l.style=c;var u=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function f(t,e,n){return n={path:e,exports:{},require:function(t,e){return h()}},t(n,n.exports),n.exports}function h(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var d=f((function(t){(function(e,n){if(t.exports){t.exports=n()}else{e.log=n()}})(u,(function(){var t=function(){};var e="undefined";var n=typeof window!==e&&typeof window.navigator!==e&&/Trident\/|MSIE /.test(window.navigator.userAgent);var i=["trace","debug","info","warn","error"];function r(t,e){var n=t[e];if(typeof n.bind==="function"){return n.bind(t)}else{try{return Function.prototype.bind.call(n,t)}catch(e){return function(){return Function.prototype.apply.apply(n,[t,arguments])}}}}function o(){if(console.log){if(console.log.apply){console.log.apply(console,arguments)}else{Function.prototype.apply.apply(console.log,[console,arguments])}}if(console.trace)console.trace()}function s(i){if(i==="debug"){i="log"}if(typeof console===e){return false}else if(i==="trace"&&n){return o}else if(console[i]!==undefined){return r(console,i)}else if(console.log!==undefined){return r(console,"log")}else{return t}}function a(e,n){for(var r=0;r<i.length;r++){var o=i[r];this[o]=r<e?t:this.methodFactory(o,e,n)}this.log=this.debug}function c(t,n,i){return function(){if(typeof console!==e){a.call(this,n,i);this[t].apply(this,arguments)}}}function l(t,e,n){return s(t)||c.apply(this,arguments)}function u(t,n,r){var o=this;var s;n=n==null?"WARN":n;var c="loglevel";if(typeof t==="string"){c+=":"+t}else if(typeof t==="symbol"){c=undefined}function u(t){var n=(i[t]||"silent").toUpperCase();if(typeof window===e||!c)return;try{window.localStorage[c]=n;return}catch(t){}try{window.document.cookie=encodeURIComponent(c)+"="+n+";"}catch(t){}}function f(){var t;if(typeof window===e||!c)return;try{t=window.localStorage[c]}catch(t){}if(typeof t===e){try{var n=window.document.cookie;var i=n.indexOf(encodeURIComponent(c)+"=");if(i!==-1){t=/^([^;]+)/.exec(n.slice(i))[1]}}catch(t){}}if(o.levels[t]===undefined){t=undefined}return t}function h(){if(typeof window===e||!c)return;try{window.localStorage.removeItem(c);return}catch(t){}try{window.document.cookie=encodeURIComponent(c)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(t){}}o.name=t;o.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5};o.methodFactory=r||l;o.getLevel=function(){return s};o.setLevel=function(n,i){if(typeof n==="string"&&o.levels[n.toUpperCase()]!==undefined){n=o.levels[n.toUpperCase()]}if(typeof n==="number"&&n>=0&&n<=o.levels.SILENT){s=n;if(i!==false){u(n)}a.call(o,n,t);if(typeof console===e&&n<o.levels.SILENT){return"No console available for logging"}}else{throw"log.setLevel() called with invalid level: "+n}};o.setDefaultLevel=function(t){n=t;if(!f()){o.setLevel(t,false)}};o.resetLevel=function(){o.setLevel(n,false);h()};o.enableAll=function(t){o.setLevel(o.levels.TRACE,t)};o.disableAll=function(t){o.setLevel(o.levels.SILENT,t)};var d=f();if(d==null){d=n}o.setLevel(d,false)}var f=new u;var h={};f.getLogger=function t(e){if(typeof e!=="symbol"&&typeof e!=="string"||e===""){throw new TypeError("You must supply a name when creating a logger.")}var n=h[e];if(!n){n=h[e]=new u(e,f.getLevel(),f.methodFactory)}return n};var d=typeof window!==e?window.log:undefined;f.noConflict=function(){if(typeof window!==e&&window.log===f){window.log=d}return f};f.getLoggers=function t(){return h};f["default"]=f;return f}))}));const b=["xs","s","m","l","xl"];const v={xs:"(max-width: 539.98px)",s:"(max-width: 767.98px)",m:"(max-width: 991.98px)",l:"(max-width: 1199.98px)",xl:"(max-width: 1399.98px)"};function m(t){return typeof t==="string"&&b.includes(t)}let p;try{p=typeof Intl!=="undefined"&&Intl.v8BreakIterator}catch(t){p=false}class g{constructor(){this.EDGE=/(edge)/i.test(navigator.userAgent);this.TRIDENT=/(msie|trident)/i.test(navigator.userAgent);this.BLINK=!!(window.chrome||p)&&typeof CSS!=="undefined"&&!this.EDGE&&!this.TRIDENT;this.WEBKIT=/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;this.IOS=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);this.FIREFOX=/(firefox|minefield)/i.test(navigator.userAgent);this.ANDROID=/android/i.test(navigator.userAgent)&&!this.TRIDENT;this.SAFARI=/safari/i.test(navigator.userAgent)&&this.WEBKIT}}const w=new Set;let y;class x{constructor(){this._platform=new g;this._matchMedia=window.matchMedia.bind(window)}matchMedia(t){if(this._platform.WEBKIT||this._platform.BLINK){k(t)}return this._matchMedia(t)}}function k(t){if(w.has(t)){return}try{if(!y){y=document.createElement("style");y.setAttribute("type","text/css");document.head.appendChild(y)}if(y.sheet){y.sheet.insertRule(`@media ${t} {body{ }}`,0);w.add(t)}}catch(t){d.error(t)}}const S=":host{display:inline-block;max-width:100%;vertical-align:middle;-webkit-user-select:none;-ms-user-select:none;user-select:none;}.cat-button{font:inherit;display:flex;align-items:center;justify-content:center;border:none;border-radius:0.25rem;text-decoration:none;width:100%;box-sizing:border-box;cursor:pointer;transition:color 0.13s linear, border-color 0.13s linear, background-color 0.13s linear, box-shadow 0.13s linear}.cat-button:focus-visible{outline:2px solid #0071ff;outline-offset:1px}.cat-button-ellipsed .cat-button-content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.cat-button-disabled{cursor:not-allowed;opacity:0.65;filter:grayscale(100%)}.cat-button-round{border-radius:10rem}.cat-button-loading{cursor:default}.cat-button-loading cat-spinner{position:absolute}.cat-button-loading>*:not(cat-spinner){visibility:hidden}.cat-button-filled{background-color:rgb(var(--bg));color:rgb(var(--fill));font-weight:600;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:greyscale}.cat-button-outlined{background-color:white;box-shadow:inset 0 0 0 1px rgba(var(--base), 0.2);color:rgb(var(--text))}.cat-button-outlined:hover:not(.cat-button-disabled):not(.cat-button-loading){background-color:rgba(var(--base), 0.05)}.cat-button-outlined:active:not(.cat-button-disabled):not(.cat-button-loading){background-color:rgba(var(--base), 0.1)}.cat-button-text{background-color:transparent;color:rgb(var(--text));text-decoration:none}.cat-button-text:hover:not(.cat-button-disabled):not(.cat-button-loading){text-decoration:underline}.cat-button-primary{--bg:var(--cat-primary-bg, 32, 127, 138);--fill:var(--cat-primary-fill, 255, 255, 255);--text:var(--cat-primary-text, 32, 127, 138);--base:var(--cat-primary-text, 32, 127, 138)}.cat-button-primary:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-primary-bg-hover, 28, 112, 122);--fill:var(--cat-primary-fill-hover, 255, 255, 255);--text:var(--cat-primary-text-hover, 28, 112, 122)}.cat-button-primary:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-primary-bg-active, 25, 101, 110);--fill:var(--cat-primary-fill-active, 255, 255, 255);--text:var(--cat-primary-text-active, 25, 101, 110)}.cat-button-secondary{--bg:105, 118, 135;--fill:255, 255, 255;--text:0, 0, 0;--base:105, 118, 135}.cat-button-secondary:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:105, 118, 135;--fill:255, 255, 255;--text:0, 0, 0}.cat-button-secondary:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:105, 118, 135;--fill:255, 255, 255;--text:0, 0, 0}.cat-button-success{--bg:0, 132, 88;--fill:255, 255, 255;--text:0, 132, 88;--base:0, 132, 88}.cat-button-success:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:0, 117, 78;--fill:255, 255, 255;--text:0, 117, 78}.cat-button-success:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:0, 105, 70;--fill:255, 255, 255;--text:0, 105, 70}.cat-button-warning{--bg:255, 206, 128;--fill:0, 0, 0;--text:159, 97, 0;--base:159, 97, 0}.cat-button-warning:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:255, 214, 148;--fill:0, 0, 0;--text:159, 97, 0}.cat-button-warning:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:255, 222, 168;--fill:0, 0, 0;--text:159, 97, 0}.cat-button-danger{--bg:217, 52, 13;--fill:255, 255, 255;--text:217, 52, 13;--base:217, 52, 13}.cat-button-danger:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:194, 46, 11;--fill:255, 255, 255;--text:194, 46, 11}.cat-button-danger:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:174, 42, 10;--fill:255, 255, 255;--text:174, 42, 10}.cat-button-xs{min-width:1.5rem;padding:0.25rem 0.25rem;font-size:0.875rem;line-height:1rem}.cat-button-xs .cat-button-prefix{margin-right:0.25rem}.cat-button-xs .cat-button-suffix{margin-left:0.25rem}.cat-button-xs.cat-button-icon{width:1.5rem;padding-left:0;padding-right:0}:host-context(nav) .cat-button-xs{padding-left:1rem;padding-right:1rem}.cat-button-s{min-width:2rem;padding:0.375rem 0.5rem;font-size:0.9375rem;line-height:1.25rem}.cat-button-s .cat-button-prefix{margin-right:0.25rem}.cat-button-s .cat-button-suffix{margin-left:0.25rem}.cat-button-s cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-s.cat-button-icon{width:2rem;padding-left:0;padding-right:0}:host-context(nav) .cat-button-s{padding-left:1rem;padding-right:1rem}.cat-button-m{min-width:2.5rem;padding:0.625rem 0.75rem;font-size:0.9375rem;line-height:1.25rem}.cat-button-m .cat-button-prefix{margin-right:0.25rem}.cat-button-m .cat-button-suffix{margin-left:0.25rem}.cat-button-m cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-m.cat-button-icon{width:2.5rem;padding-left:0;padding-right:0}:host-context(nav) .cat-button-m{padding-left:1rem;padding-right:1rem}.cat-button-l{min-width:3rem;padding:0.875rem 1rem;font-size:0.9375rem;line-height:1.25rem}.cat-button-l .cat-button-prefix{margin-right:0.25rem}.cat-button-l .cat-button-suffix{margin-left:0.25rem}.cat-button-l cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-l.cat-button-icon{width:3rem;padding-left:0;padding-right:0}:host-context(nav) .cat-button-l{padding-left:1rem;padding-right:1rem}.cat-button-xl{min-width:3.5rem;padding:1rem 1.25rem;font-size:1.125rem;line-height:1.5rem}.cat-button-xl .cat-button-prefix{margin-right:0.25rem}.cat-button-xl .cat-button-suffix{margin-left:0.25rem}.cat-button-xl.cat-button-icon{width:3.5rem;padding-left:0;padding-right:0}:host-context(nav) .cat-button-xl{padding-left:1rem;padding-right:1rem}:host-context(nav){width:100%}:host-context(nav) .cat-button{box-shadow:none;border-radius:0}:host-context(nav) .cat-button:focus-visible{outline-offset:-2px}:host-context(nav) .cat-button-content{text-align:left}:host([hidden]){display:none}:host(.cat-text-left) .cat-button{justify-content:left}:host(.cat-text-right) .cat-button{justify-content:right}";const E=class{constructor(e){t(this,e);this.catClick=n(this,"catClick",7);this.catFocus=n(this,"catFocus",7);this.catBlur=n(this,"catBlur",7);this._iconOnly=true;this.variant="outlined";this.color="secondary";this.size="m";this.disabled=false;this.loading=false;this.submit=false;this.ellipsed=true;this.round=false;this.iconOnly=false;this.iconSuffix=false}onIconOnlyChanged(t){var e,n;(e=this.mediaQueryList)===null||e===void 0?void 0:e.removeEventListener("change",this.mediaQueryListener);this.mediaQueryList=undefined;this.mediaQueryListener=undefined;if(m(t)){(n=this.mediaMatcher)!==null&&n!==void 0?n:this.mediaMatcher=new x;this.mediaQueryList=this.mediaMatcher.matchMedia(v[t]);this.mediaQueryListener=t=>this._iconOnly=t.matches;this.mediaQueryList.addEventListener("change",this.mediaQueryListener);this._iconOnly=this.mediaQueryList.matches}else{this._iconOnly=t}}componentWillLoad(){this.onIconOnlyChanged(this.iconOnly)}componentWillRender(){if(this.isIconButton&&!this.a11yLabel){d.warn("[A11y] Missing ARIA label on icon button",this)}}haltDisabledEvents(t){if(this.disabled||this.loading){t.preventDefault();t.stopImmediatePropagation()}}async setFocus(t){this.button.focus(t)}render(){var t;if(this.url){return e("a",{ref:t=>this.button=t,href:this.disabled?undefined:this.url,target:this.urlTarget,"aria-disabled":this.disabled?"true":null,"aria-label":this.a11yLabel,id:this.buttonId,part:"button",class:{"cat-button":true,"cat-button-icon":this.isIconButton,"cat-button-round":this.round,"cat-button-loading":this.loading,"cat-button-disabled":this.disabled,"cat-button-ellipsed":this.ellipsed&&!this.isIconButton,[`cat-button-${this.variant}`]:Boolean(this.variant),[`cat-button-${this.color}`]:Boolean(this.color),[`cat-button-${this.size}`]:Boolean(this.size)},onClick:this.onClick.bind(this),onFocus:this.onFocus.bind(this),onBlur:this.onBlur.bind(this)},this.content)}else{return e("button",{ref:t=>this.button=t,type:this.submit?"submit":"button",name:this.name,value:this.value,disabled:this.disabled,"aria-disabled":this.disabled?"true":null,"aria-label":this.a11yLabel,id:this.buttonId,part:"button",class:{"cat-button":true,"cat-button-icon":this.isIconButton,"cat-button-round":(t=this.round)!==null&&t!==void 0?t:this.isIconButton,"cat-button-loading":this.loading,"cat-button-disabled":this.disabled,"cat-button-ellipsed":this.ellipsed&&!this.isIconButton,[`cat-button-${this.variant}`]:Boolean(this.variant),[`cat-button-${this.color}`]:Boolean(this.color),[`cat-button-${this.size}`]:Boolean(this.size)},onClick:this.onClick.bind(this),onFocus:this.onFocus.bind(this),onBlur:this.onBlur.bind(this)},this.content)}}get iconSize(){switch(this.size){case"xs":return"s";default:return"l"}}get spinnerSize(){switch(this.size){case"xs":return"xs";default:return"m"}}get isIconButton(){return Boolean(this.icon)&&this._iconOnly}get hasPrefixIcon(){return Boolean(this.icon)&&!this._iconOnly&&!this.iconSuffix}get hasSuffixIcon(){return Boolean(this.icon)&&!this._iconOnly&&this.iconSuffix}get content(){return[this.hasPrefixIcon?e("cat-icon",{icon:this.icon,size:this.iconSize,class:"cat-button-prefix",part:"prefix"}):null,this.isIconButton?e("cat-icon",{icon:this.icon,size:this.iconSize}):e("span",{class:"cat-button-content",part:"content"},e("slot",null)),this.hasSuffixIcon?e("cat-icon",{icon:this.icon,size:this.iconSize,class:"cat-button-suffix",part:"suffix"}):null,this.loading?e("cat-spinner",{size:this.spinnerSize}):null]}onClick(t){this.catClick.emit(t)}onFocus(t){this.catFocus.emit(t)}onBlur(t){this.catBlur.emit(t)}static get watchers(){return{iconOnly:["onIconOnlyChanged"]}}};E.style=S;const A=":host{display:inline-flex;vertical-align:middle;-webkit-user-select:none;-ms-user-select:none;user-select:none;}:host([hidden]){display:none}span{display:inline-flex}svg{fill:currentColor;stroke:none;transform-origin:center center;width:1em;height:1em}.cat-icon-xs svg{font-size:0.75rem}.cat-icon-s svg{font-size:1rem}.cat-icon-m svg{font-size:1.25rem}.cat-icon-l svg{font-size:1.5rem}.cat-icon-xl svg{font-size:1.75rem}";const T=class{constructor(e){t(this,e);this.iconRegistry=o.getInstance();this.icon="";this.size="m"}render(){return e("span",{innerHTML:this.iconRegistry.getIcon(this.icon),"aria-label":this.a11yLabel,"aria-hidden":this.a11yLabel?null:"true",part:"icon",class:{[`cat-icon-${this.size}`]:this.size!=="inline"}})}};T.style=A;function z(t){return t.split("-")[0]}function O(t){return t.split("-")[1]}function C(t){return["top","bottom"].includes(z(t))?"x":"y"}function R(t){return t==="y"?"height":"width"}function I(t,e,n){let{reference:i,floating:r}=t;const o=i.x+i.width/2-r.width/2;const s=i.y+i.height/2-r.height/2;const a=C(e);const c=R(a);const l=i[c]/2-r[c]/2;const u=z(e);const f=a==="x";let h;switch(u){case"top":h={x:o,y:i.y-r.height};break;case"bottom":h={x:o,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:s};break;case"left":h={x:i.x-r.width,y:s};break;default:h={x:i.x,y:i.y}}switch(O(e)){case"start":h[a]-=l*(n&&f?-1:1);break;case"end":h[a]+=l*(n&&f?-1:1);break}return h}const F=async(t,e,n)=>{const{placement:i="bottom",strategy:r="absolute",middleware:o=[],platform:s}=n;const a=await(s.isRTL==null?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:r});let{x:l,y:u}=I(c,i,a);let f=i;let h={};for(let n=0;n<o.length;n++){const{name:d,fn:b}=o[n];const{x:v,y:m,data:p,reset:g}=await b({x:l,y:u,initialPlacement:i,placement:f,strategy:r,middlewareData:h,rects:c,platform:s,elements:{reference:t,floating:e}});l=v!=null?v:l;u=m!=null?m:u;h={...h,[d]:{...h[d],...p}};if(g){if(typeof g==="object"){if(g.placement){f=g.placement}if(g.rects){c=g.rects===true?await s.getElementRects({reference:t,floating:e,strategy:r}):g.rects}({x:l,y:u}=I(c,f,a))}n=-1;continue}}return{x:l,y:u,placement:f,strategy:r,middlewareData:h}};function B(t){return{top:0,right:0,bottom:0,left:0,...t}}function j(t){return typeof t!=="number"?B(t):{top:t,right:t,bottom:t,left:t}}function P(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function D(t,e){var n;if(e===void 0){e={}}const{x:i,y:r,platform:o,rects:s,elements:a,strategy:c}=t;const{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:h=false,padding:d=0}=e;const b=j(d);const v=f==="floating"?"reference":"floating";const m=a[h?v:f];const p=P(await o.getClippingRect({element:((n=await(o.isElement==null?void 0:o.isElement(m)))!=null?n:true)?m:m.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:l,rootBoundary:u,strategy:c}));const g=P(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:f==="floating"?{...s.floating,x:i,y:r}:s.reference,offsetParent:await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),strategy:c}):s[f]);return{top:p.top-g.top+b.top,bottom:g.bottom-p.bottom+b.bottom,left:p.left-g.left+b.left,right:g.right-p.right+b.right}}const _={left:"right",right:"left",bottom:"top",top:"bottom"};function $(t){return t.replace(/left|right|bottom|top/g,(t=>_[t]))}function L(t,e,n){if(n===void 0){n=false}const i=O(t);const r=C(t);const o=R(r);let s=r==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";if(e.reference[o]>e.floating[o]){s=$(s)}return{main:s,cross:$(s)}}const N={start:"end",end:"start"};function U(t){return t.replace(/start|end/g,(t=>N[t]))}function M(t){const e=$(t);return[U(t),e,U(e)]}const q=function(t){if(t===void 0){t={}}return{name:"flip",options:t,async fn(e){var n;const{placement:i,middlewareData:r,rects:o,initialPlacement:s,platform:a,elements:c}=e;const{mainAxis:l=true,crossAxis:u=true,fallbackPlacements:f,fallbackStrategy:h="bestFit",flipAlignment:d=true,...b}=t;const v=z(i);const m=v===s;const p=f||(m||!d?[$(s)]:M(s));const g=[s,...p];const w=await D(e,b);const y=[];let x=((n=r.flip)==null?void 0:n.overflows)||[];if(l){y.push(w[v])}if(u){const{main:t,cross:e}=L(i,o,await(a.isRTL==null?void 0:a.isRTL(c.floating)));y.push(w[t],w[e])}x=[...x,{placement:i,overflows:y}];if(!y.every((t=>t<=0))){var k,S;const t=((k=(S=r.flip)==null?void 0:S.index)!=null?k:0)+1;const e=g[t];if(e){return{data:{index:t,overflows:x},reset:{placement:e}}}let n="bottom";switch(h){case"bestFit":{var E;const t=(E=x.map((t=>[t,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])==null?void 0:E[0].placement;if(t){n=t}break}case"initialPlacement":n=s;break}if(i!==n){return{reset:{placement:n}}}}return{}}}};function Y(t,e,n,i){if(i===void 0){i=false}const r=z(t);const o=O(t);const s=C(t)==="x";const a=["left","top"].includes(r)?-1:1;const c=i&&s?-1:1;const l=typeof n==="function"?n({...e,placement:t}):n;let{mainAxis:u,crossAxis:f,alignmentAxis:h}=typeof l==="number"?{mainAxis:l,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...l};if(o&&typeof h==="number"){f=o==="end"?h*-1:h}return s?{x:f*c,y:u*a}:{x:u*a,y:f*c}}const W=function(t){if(t===void 0){t=0}return{name:"offset",options:t,async fn(e){const{x:n,y:i,placement:r,rects:o,platform:s,elements:a}=e;const c=Y(r,o,t,await(s.isRTL==null?void 0:s.isRTL(a.floating)));return{x:n+c.x,y:i+c.y,data:c}}}};function G(t){return(t==null?void 0:t.toString())==="[object Window]"}function H(t){if(t==null){return window}if(!G(t)){const e=t.ownerDocument;return e?e.defaultView||window:window}return t}function V(t){return H(t).getComputedStyle(t)}function X(t){return G(t)?"":t?(t.nodeName||"").toLowerCase():""}function J(t){return t instanceof H(t).HTMLElement}function K(t){return t instanceof H(t).Element}function Q(t){return t instanceof H(t).Node}function Z(t){const e=H(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function tt(t){const{overflow:e,overflowX:n,overflowY:i}=V(t);return/auto|scroll|overlay|hidden/.test(e+i+n)}function et(t){return["table","td","th"].includes(X(t))}function nt(t){const e=navigator.userAgent.toLowerCase().includes("firefox");const n=V(t);return n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].includes(n.willChange)||e&&n.willChange==="filter"||e&&(n.filter?n.filter!=="none":false)}function it(){return!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}const rt=Math.min;const ot=Math.max;const st=Math.round;function at(t,e,n){if(e===void 0){e=false}if(n===void 0){n=false}const i=t.getBoundingClientRect();let r=1;let o=1;if(e&&J(t)){r=t.offsetWidth>0?st(i.width)/t.offsetWidth||1:1;o=t.offsetHeight>0?st(i.height)/t.offsetHeight||1:1}const s=K(t)?H(t):window;const a=!it()&&n;const c=(i.left+(a?s.visualViewport.offsetLeft:0))/r;const l=(i.top+(a?s.visualViewport.offsetTop:0))/o;const u=i.width/r;const f=i.height/o;return{width:u,height:f,top:l,right:c+u,bottom:l+f,left:c,x:c,y:l}}function ct(t){return((Q(t)?t.ownerDocument:t.document)||window.document).documentElement}function lt(t){if(G(t)){return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function ut(t){return at(ct(t)).left+lt(t).scrollLeft}function ft(t){const e=at(t);return st(e.width)!==t.offsetWidth||st(e.height)!==t.offsetHeight}function ht(t,e,n){const i=J(e);const r=ct(e);const o=at(t,i&&ft(e),n==="fixed");let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(i||!i&&n!=="fixed"){if(X(e)!=="body"||tt(r)){s=lt(e)}if(J(e)){const t=at(e,true);a.x=t.x+e.clientLeft;a.y=t.y+e.clientTop}else if(r){a.x=ut(r)}}return{x:o.left+s.scrollLeft-a.x,y:o.top+s.scrollTop-a.y,width:o.width,height:o.height}}function dt(t){if(X(t)==="html"){return t}return t.assignedSlot||t.parentNode||(Z(t)?t.host:null)||ct(t)}function bt(t){if(!J(t)||getComputedStyle(t).position==="fixed"){return null}return t.offsetParent}function vt(t){let e=dt(t);if(Z(e)){e=e.host}while(J(e)&&!["html","body"].includes(X(e))){if(nt(e)){return e}else{e=e.parentNode}}return null}function mt(t){const e=H(t);let n=bt(t);while(n&&et(n)&&getComputedStyle(n).position==="static"){n=bt(n)}if(n&&(X(n)==="html"||X(n)==="body"&&getComputedStyle(n).position==="static"&&!nt(n))){return e}return n||vt(t)||e}function pt(t){if(J(t)){return{width:t.offsetWidth,height:t.offsetHeight}}const e=at(t);return{width:e.width,height:e.height}}function gt(t){let{rect:e,offsetParent:n,strategy:i}=t;const r=J(n);const o=ct(n);if(n===o){return e}let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(r||!r&&i!=="fixed"){if(X(n)!=="body"||tt(o)){s=lt(n)}if(J(n)){const t=at(n,true);a.x=t.x+n.clientLeft;a.y=t.y+n.clientTop}}return{...e,x:e.x-s.scrollLeft+a.x,y:e.y-s.scrollTop+a.y}}function wt(t,e){const n=H(t);const i=ct(t);const r=n.visualViewport;let o=i.clientWidth;let s=i.clientHeight;let a=0;let c=0;if(r){o=r.width;s=r.height;const t=it();if(t||!t&&e==="fixed"){a=r.offsetLeft;c=r.offsetTop}}return{width:o,height:s,x:a,y:c}}function yt(t){var e;const n=ct(t);const i=lt(t);const r=(e=t.ownerDocument)==null?void 0:e.body;const o=ot(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0);const s=ot(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let a=-i.scrollLeft+ut(t);const c=-i.scrollTop;if(V(r||n).direction==="rtl"){a+=ot(n.clientWidth,r?r.clientWidth:0)-o}return{width:o,height:s,x:a,y:c}}function xt(t){const e=dt(t);if(["html","body","#document"].includes(X(e))){return t.ownerDocument.body}if(J(e)&&tt(e)){return e}return xt(e)}function kt(t,e){var n;if(e===void 0){e=[]}const i=xt(t);const r=i===((n=t.ownerDocument)==null?void 0:n.body);const o=H(i);const s=r?[o].concat(o.visualViewport||[],tt(i)?i:[]):i;const a=e.concat(s);return r?a:a.concat(kt(dt(s)))}function St(t,e){const n=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e)){return true}else if(n&&Z(n)){let n=e;do{if(n&&t===n){return true}n=n.parentNode||n.host}while(n)}return false}function Et(t,e){const n=at(t,false,e==="fixed");const i=n.top+t.clientTop;const r=n.left+t.clientLeft;return{top:i,left:r,x:r,y:i,right:r+t.clientWidth,bottom:i+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}function At(t,e,n){if(e==="viewport"){return P(wt(t,n))}if(K(e)){return Et(e,n)}return P(yt(ct(t)))}function Tt(t){const e=kt(t);const n=["absolute","fixed"].includes(V(t).position);const i=n&&J(t)?mt(t):t;if(!K(i)){return[]}return e.filter((t=>K(t)&&St(t,i)&&X(t)!=="body"))}function zt(t){let{element:e,boundary:n,rootBoundary:i,strategy:r}=t;const o=n==="clippingAncestors"?Tt(e):[].concat(n);const s=[...o,i];const a=s[0];const c=s.reduce(((t,n)=>{const i=At(e,n,r);t.top=ot(i.top,t.top);t.right=rt(i.right,t.right);t.bottom=rt(i.bottom,t.bottom);t.left=ot(i.left,t.left);return t}),At(e,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}const Ot={getClippingRect:zt,convertOffsetParentRelativeRectToViewportRelativeRect:gt,isElement:K,getDimensions:pt,getOffsetParent:mt,getDocumentElement:ct,getElementRects:t=>{let{reference:e,floating:n,strategy:i}=t;return{reference:ht(e,mt(n),i),floating:{...pt(n),x:0,y:0}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>V(t).direction==="rtl"};function Ct(t,e,n,i){if(i===void 0){i={}}const{ancestorScroll:r=true,ancestorResize:o=true,elementResize:s=true,animationFrame:a=false}=i;let c=false;const l=r&&!a;const u=o&&!a;const f=s&&!a;const h=l||u?[...K(t)?kt(t):[],...kt(e)]:[];h.forEach((t=>{l&&t.addEventListener("scroll",n,{passive:true});u&&t.addEventListener("resize",n)}));let d=null;if(f){d=new ResizeObserver(n);K(t)&&d.observe(t);d.observe(e)}let b;let v=a?at(t):null;if(a){m()}function m(){if(c){return}const e=at(t);if(v&&(e.x!==v.x||e.y!==v.y||e.width!==v.width||e.height!==v.height)){n()}v=e;b=requestAnimationFrame(m)}return()=>{var t;c=true;h.forEach((t=>{l&&t.removeEventListener("scroll",n);u&&t.removeEventListener("resize",n)}));(t=d)==null?void 0:t.disconnect();d=null;if(a){cancelAnimationFrame(b)}}}const Rt=(t,e,n)=>F(t,e,{platform:Ot,...n})
2
+ /*!
3
+ * tabbable 5.3.0-beta.1
4
+ * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
5
+ */;var It=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"];var Ft=It.join(",");var Bt=typeof Element==="undefined";var jt=Bt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;var Pt=!Bt&&Element.prototype.getRootNode?function(t){return t.getRootNode()}:function(t){return t.ownerDocument};var Dt=function t(e,n,i){var r=Array.prototype.slice.apply(e.querySelectorAll(Ft));if(n&&jt.call(e,Ft)){r.unshift(e)}r=r.filter(i);return r};var _t=function t(e,n,i){var r=[];var o=Array.from(e);while(o.length){var s=o.shift();if(s.tagName==="SLOT"){var a=s.assignedElements();var c=a.length?a:s.children;var l=t(c,true,i);if(i.flatten){r.push.apply(r,l)}else{r.push({scope:s,candidates:l})}}else{var u=jt.call(s,Ft);if(u&&i.filter(s)&&(n||!e.includes(s))){r.push(s)}var f=s.shadowRoot||typeof i.getShadowRoot==="function"&&i.getShadowRoot(s);if(f){var h=t(f===true?s.children:f.children,true,i);if(i.flatten){r.push.apply(r,h)}else{r.push({scope:s,candidates:h})}}else{o.unshift.apply(o,s.children)}}}return r};var $t=function t(e){return e.contentEditable==="true"};var Lt=function t(e,n){var i=parseInt(e.getAttribute("tabindex"),10);if(!isNaN(i)){return i}if($t(e)){return 0}if((n||e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null){return 0}return e.tabIndex};var Nt=function t(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex};var Ut=function t(e){return e.tagName==="INPUT"};var Mt=function t(e){return Ut(e)&&e.type==="hidden"};var qt=function t(e){var n=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some((function(t){return t.tagName==="SUMMARY"}));return n};var Yt=function t(e,n){for(var i=0;i<e.length;i++){if(e[i].checked&&e[i].form===n){return e[i]}}};var Wt=function t(e){if(!e.name){return true}var n=e.form||Pt(e);var i=function t(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};var r;if(typeof window!=="undefined"&&typeof window.CSS!=="undefined"&&typeof window.CSS.escape==="function"){r=i(window.CSS.escape(e.name))}else{try{r=i(e.name)}catch(t){console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message);return false}}var o=Yt(r,e.form);return!o||o===e};var Gt=function t(e){return Ut(e)&&e.type==="radio"};var Ht=function t(e){return Gt(e)&&!Wt(e)};var Vt=function t(e){var n=e.getBoundingClientRect(),i=n.width,r=n.height;return i===0&&r===0};var Xt=function t(e,n){var i=n.displayCheck,r=n.getShadowRoot;if(getComputedStyle(e).visibility==="hidden"){return true}var o=jt.call(e,"details>summary:first-of-type");var s=o?e.parentElement:e;if(jt.call(s,"details:not([open]) *")){return true}if(!i||i==="full"){if(typeof r==="function"){var a=e;while(e){var c=e.parentElement;var l=Pt(e);if(c&&!c.shadowRoot&&r(c)===true){return Vt(e)}else if(e.assignedSlot){e=e.assignedSlot}else if(!c&&l!==e.ownerDocument){e=l.host}else{e=c}}e=a}return!e.getClientRects().length}else if(i==="non-zero-area"){return Vt(e)}return false};var Jt=function t(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName)){var n=e.parentElement;while(n){if(n.tagName==="FIELDSET"&&n.disabled){for(var i=0;i<n.children.length;i++){var r=n.children.item(i);if(r.tagName==="LEGEND"){return jt.call(n,"fieldset[disabled] *")?true:!r.contains(e)}}return true}n=n.parentElement}}return false};var Kt=function t(e,n){if(n.disabled||Mt(n)||Xt(n,e)||qt(n)||Jt(n)){return false}return true};var Qt=function t(e,n){if(!Kt(e,n)||Ht(n)||Lt(n)<0){return false}return true};var Zt=function t(e){var n=[];var i=[];e.forEach((function(e,r){var o=!!e.scope;var s=o?e.scope:e;var a=Lt(s,o);var c=o?t(e.candidates):s;if(a===0){o?n.push.apply(n,c):n.push(s)}else{i.push({documentOrder:r,tabIndex:a,item:e,isScope:o,content:c})}}));return i.sort(Nt).reduce((function(t,e){e.isScope?t.push.apply(t,e.content):t.push(e.content);return t}),[]).concat(n)};var te=function t(e,n){n=n||{};var i;if(n.getShadowRoot){i=_t([e],n.includeContainer,{filter:Qt.bind(null,n),flatten:false,getShadowRoot:n.getShadowRoot})}else{i=Dt(e,n.includeContainer,Qt.bind(null,n))}return Zt(i)};var ee=function t(e,n){n=n||{};var i;if(n.getShadowRoot){i=_t([e],n.includeContainer,{filter:Kt.bind(null,n),flatten:true,getShadowRoot:n.getShadowRoot})}else{i=Dt(e,n.includeContainer,Kt.bind(null,n))}return i};var ne=function t(e,n){n=n||{};if(!e){throw new Error("No node provided")}if(jt.call(e,Ft)===false){return false}return Qt(n,e)};var ie=It.concat("iframe").join(",");var re=function t(e,n){n=n||{};if(!e){throw new Error("No node provided")}if(jt.call(e,ie)===false){return false}return Kt(n,e)};
6
+ /*!
7
+ * focus-trap 6.8.0-beta.2
8
+ * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
9
+ */function oe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function se(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?oe(Object(n),!0).forEach((function(e){ae(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ae(t,e,n){if(e in t){Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true})}else{t[e]=n}return t}var ce=function(){var t=[];return{activateTrap:function e(n){if(t.length>0){var i=t[t.length-1];if(i!==n){i.pause()}}var r=t.indexOf(n);if(r===-1){t.push(n)}else{t.splice(r,1);t.push(n)}},deactivateTrap:function e(n){var i=t.indexOf(n);if(i!==-1){t.splice(i,1)}if(t.length>0){t[t.length-1].unpause()}}}}();var le=function t(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select==="function"};var ue=function t(e){return e.key==="Escape"||e.key==="Esc"||e.keyCode===27};var fe=function t(e){return e.key==="Tab"||e.keyCode===9};var he=function t(e){return setTimeout(e,0)};var de=function t(e,n){var i=-1;e.every((function(t,e){if(n(t)){i=e;return false}return true}));return i};var be=function t(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++){i[r-1]=arguments[r]}return typeof e==="function"?e.apply(void 0,i):e};var ve=function t(e){return e.target.shadowRoot&&typeof e.composedPath==="function"?e.composedPath()[0]:e.target};var me=function t(e,n){var i=(n===null||n===void 0?void 0:n.document)||document;var r=se({returnFocusOnDeactivate:true,escapeDeactivates:true,delayInitialFocus:true},n);var o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:false,paused:false,delayInitialFocusTimer:undefined};var s;var a=function t(e,n,i){return e&&e[n]!==undefined?e[n]:r[i||n]};var c=function t(e){return o.containerGroups.findIndex((function(t){var n=t.container,i=t.tabbableNodes;return n.contains(e)||i.find((function(t){return t===e}))}))};var l=function t(e){var n=r[e];if(typeof n==="function"){for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++){s[a-1]=arguments[a]}n=n.apply(void 0,s)}if(!n){if(n===undefined||n===false){return n}throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var c=n;if(typeof n==="string"){c=i.querySelector(n);if(!c){throw new Error("`".concat(e,"` as selector refers to no known node"))}}return c};var u=function t(){var e=l("initialFocus");if(e===false){return false}if(e===undefined){if(c(i.activeElement)>=0){e=i.activeElement}else{var n=o.tabbableGroups[0];var r=n&&n.firstTabbableNode;e=r||l("fallbackFocus")}}if(!e){throw new Error("Your focus-trap needs to have at least one focusable element")}return e};var f=function t(){o.containerGroups=o.containers.map((function(t){var e,n;var i=te(t,{getShadowRoot:(e=r.tabbableOptions)===null||e===void 0?void 0:e.getShadowRoot});var o=ee(t,{getShadowRoot:(n=r.tabbableOptions)===null||n===void 0?void 0:n.getShadowRoot});return{container:t,tabbableNodes:i,focusableNodes:o,firstTabbableNode:i.length>0?i[0]:null,lastTabbableNode:i.length>0?i[i.length-1]:null,nextTabbableNode:function t(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;var i=o.findIndex((function(t){return t===e}));if(i<0){return undefined}if(n){return o.slice(i+1).find((function(t){return ne(t)}))}return o.slice(0,i).reverse().find((function(t){return ne(t)}))}}}));o.tabbableGroups=o.containerGroups.filter((function(t){return t.tabbableNodes.length>0}));if(o.tabbableGroups.length<=0&&!l("fallbackFocus")){throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")}};var h=function t(e){if(e===false){return}if(e===i.activeElement){return}if(!e||!e.focus){t(u());return}e.focus({preventScroll:!!r.preventScroll});o.mostRecentlyFocusedNode=e;if(le(e)){e.select()}};var d=function t(e){var n=l("setReturnFocus",e);return n?n:n===false?false:e};var b=function t(e){var n=ve(e);if(c(n)>=0){return}if(be(r.clickOutsideDeactivates,e)){s.deactivate({returnFocus:r.returnFocusOnDeactivate&&!re(n)});return}if(be(r.allowOutsideClick,e)){return}e.preventDefault()};var v=function t(e){var n=ve(e);var i=c(n)>=0;if(i||n instanceof Document){if(i){o.mostRecentlyFocusedNode=n}}else{e.stopImmediatePropagation();h(o.mostRecentlyFocusedNode||u())}};var m=function t(e){var n=ve(e);f();var i=null;if(o.tabbableGroups.length>0){var r=c(n);var s=r>=0?o.containerGroups[r]:undefined;if(r<0){if(e.shiftKey){i=o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode}else{i=o.tabbableGroups[0].firstTabbableNode}}else if(e.shiftKey){var a=de(o.tabbableGroups,(function(t){var e=t.firstTabbableNode;return n===e}));if(a<0&&(s.container===n||re(n)&&!ne(n)&&!s.nextTabbableNode(n,false))){a=r}if(a>=0){var u=a===0?o.tabbableGroups.length-1:a-1;var d=o.tabbableGroups[u];i=d.lastTabbableNode}}else{var b=de(o.tabbableGroups,(function(t){var e=t.lastTabbableNode;return n===e}));if(b<0&&(s.container===n||re(n)&&!ne(n)&&!s.nextTabbableNode(n))){b=r}if(b>=0){var v=b===o.tabbableGroups.length-1?0:b+1;var m=o.tabbableGroups[v];i=m.firstTabbableNode}}}else{i=l("fallbackFocus")}if(i){e.preventDefault();h(i)}};var p=function t(e){if(ue(e)&&be(r.escapeDeactivates,e)!==false){e.preventDefault();s.deactivate();return}if(fe(e)){m(e);return}};var g=function t(e){if(be(r.clickOutsideDeactivates,e)){return}var n=ve(e);if(c(n)>=0){return}if(be(r.allowOutsideClick,e)){return}e.preventDefault();e.stopImmediatePropagation()};var w=function t(){if(!o.active){return}ce.activateTrap(s);o.delayInitialFocusTimer=r.delayInitialFocus?he((function(){h(u())})):h(u());i.addEventListener("focusin",v,true);i.addEventListener("mousedown",b,{capture:true,passive:false});i.addEventListener("touchstart",b,{capture:true,passive:false});i.addEventListener("click",g,{capture:true,passive:false});i.addEventListener("keydown",p,{capture:true,passive:false});return s};var y=function t(){if(!o.active){return}i.removeEventListener("focusin",v,true);i.removeEventListener("mousedown",b,true);i.removeEventListener("touchstart",b,true);i.removeEventListener("click",g,true);i.removeEventListener("keydown",p,true);return s};s={activate:function t(e){if(o.active){return this}var n=a(e,"onActivate");var r=a(e,"onPostActivate");var s=a(e,"checkCanFocusTrap");if(!s){f()}o.active=true;o.paused=false;o.nodeFocusedBeforeActivation=i.activeElement;if(n){n()}var c=function t(){if(s){f()}w();if(r){r()}};if(s){s(o.containers.concat()).then(c,c);return this}c();return this},deactivate:function t(e){if(!o.active){return this}clearTimeout(o.delayInitialFocusTimer);o.delayInitialFocusTimer=undefined;y();o.active=false;o.paused=false;ce.deactivateTrap(s);var n=a(e,"onDeactivate");var i=a(e,"onPostDeactivate");var r=a(e,"checkCanReturnFocus");if(n){n()}var c=a(e,"returnFocus","returnFocusOnDeactivate");var l=function t(){he((function(){if(c){h(d(o.nodeFocusedBeforeActivation))}if(i){i()}}))};if(c&&r){r(d(o.nodeFocusedBeforeActivation)).then(l,l);return this}l();return this},pause:function t(){if(o.paused||!o.active){return this}o.paused=true;y();return this},unpause:function t(){if(!o.paused||!o.active){return this}o.paused=false;f();w();return this},updateContainerElements:function t(e){var n=[].concat(e).filter(Boolean);o.containers=n.map((function(t){return typeof t==="string"?i.querySelector(t):t}));if(o.active){f()}return this}};s.updateContainerElements(e);return s};const pe=":host{display:inline-block}:host([hidden]){display:none}.content{padding-top:0.5rem;padding-bottom:0.5rem;position:absolute;background:white;display:none;overflow:auto;-webkit-overflow-scrolling:touch;min-width:8rem;max-width:16rem;min-height:2rem;max-height:calc(100vh - 48px);box-shadow:0 1px 4px 0 rgba(16, 29, 48, 0.2);border-radius:0.25rem}";let ge=0;const we=class{constructor(e){t(this,e);this.catOpen=n(this,"catOpen",7);this.catClose=n(this,"catClose",7);this.id=ge++;this.placement="bottom-start"}clickHandler(t){var e;if(this.content&&t.composedPath().includes(this.content)){(e=this.trap)===null||e===void 0?void 0:e.deactivate();this.hide()}}componentDidLoad(){var t,e,n,i,r;this.trigger=this.firstTabbable(this.triggerSlot);(t=this.trigger)===null||t===void 0?void 0:t.setAttribute("aria-haspopup","true");(e=this.trigger)===null||e===void 0?void 0:e.setAttribute("aria-expanded","false");(n=this.trigger)===null||n===void 0?void 0:n.setAttribute("aria-controls",this.contentId);(i=this.content)===null||i===void 0?void 0:i.setAttribute("id",this.contentId);if(this.trigger&&this.content){(r=this.trigger)===null||r===void 0?void 0:r.addEventListener("click",(()=>this.show()));Ct(this.trigger,this.content,(()=>this.update()))}this.keyListener=t=>{if(this.content&&["ArrowDown","ArrowUp"].includes(t.key)){const e=te(this.content,{includeContainer:false,getShadowRoot:true});const n=this.firstTabbable(document.activeElement);const i=n?e.indexOf(n):-1;const r=t.key==="ArrowDown"?1:-1;const o=i<0?0:(i+r+e.length)%e.length;e[o].focus();t.preventDefault()}};document.addEventListener("keydown",this.keyListener)}disconnectedCallback(){if(this.keyListener){document.removeEventListener("keydown",this.keyListener)}}render(){return e(i,null,e("slot",{name:"trigger",ref:t=>this.triggerSlot=t}),e("div",{class:"content",ref:t=>this.content=t},e("slot",{name:"content"})))}get contentId(){return`cat-menu-${this.id}`}show(){var t;if(this.content){this.content.style.display="block";(t=this.trigger)===null||t===void 0?void 0:t.setAttribute("aria-expanded","true");this.catOpen.emit();this.trap=this.trap?this.trap.updateContainerElements(this.content):me(this.content,{tabbableOptions:{getShadowRoot:true},allowOutsideClick:true,clickOutsideDeactivates:t=>!this.content||!t.composedPath().includes(this.content),onPostDeactivate:()=>this.hide()});this.trap.activate()}}hide(){var t;if(this.content){this.content.style.display="";(t=this.trigger)===null||t===void 0?void 0:t.setAttribute("aria-expanded","false");this.catClose.emit()}}update(){if(this.trigger&&this.content){Rt(this.trigger,this.content,{placement:this.placement,middleware:[W(we.OFFSET),q()]}).then((({x:t,y:e})=>{if(this.content){Object.assign(this.content.style,{left:`${t}px`,top:`${e}px`})}}))}}firstTabbable(t){return(t?te(t,{includeContainer:true,getShadowRoot:true}):[]).shift()}};we.OFFSET=4;we.style=pe;function ye(t){return typeof t==="function"}function xe(t){const e=t=>{Error.call(t);t.stack=(new Error).stack};const n=t(e);n.prototype=Object.create(Error.prototype);n.prototype.constructor=n;return n}const ke=xe((t=>function e(n){t(this);this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map(((t,e)=>`${e+1}) ${t.toString()}`)).join("\n ")}`:"";this.name="UnsubscriptionError";this.errors=n}));function Se(t,e){if(t){const n=t.indexOf(e);0<=n&&t.splice(n,1)}}class Ee{constructor(t){this.initialTeardown=t;this.closed=false;this._parentage=null;this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=true;const{_parentage:e}=this;if(e){this._parentage=null;if(Array.isArray(e)){for(const t of e){t.remove(this)}}else{e.remove(this)}}const{initialTeardown:n}=this;if(ye(n)){try{n()}catch(e){t=e instanceof ke?e.errors:[e]}}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const e of i){try{ze(e)}catch(e){t=t!==null&&t!==void 0?t:[];if(e instanceof ke){t=[...t,...e.errors]}else{t.push(e)}}}}if(t){throw new ke(t)}}}add(t){var e;if(t&&t!==this){if(this.closed){ze(t)}else{if(t instanceof Ee){if(t.closed||t._hasParent(this)){return}t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;if(e===t){this._parentage=null}else if(Array.isArray(e)){Se(e,t)}}remove(t){const{_finalizers:e}=this;e&&Se(e,t);if(t instanceof Ee){t._removeParent(this)}}}Ee.EMPTY=(()=>{const t=new Ee;t.closed=true;return t})();const Ae=Ee.EMPTY;function Te(t){return t instanceof Ee||t&&"closed"in t&&ye(t.remove)&&ye(t.add)&&ye(t.unsubscribe)}function ze(t){if(ye(t)){t()}else{t.unsubscribe()}}const Oe={onUnhandledError:null,onStoppedNotification:null,Promise:undefined,useDeprecatedSynchronousErrorHandling:false,useDeprecatedNextContext:false};const Ce={setTimeout(t,e,...n){const{delegate:i}=Ce;if(i===null||i===void 0?void 0:i.setTimeout){return i.setTimeout(t,e,...n)}return setTimeout(t,e,...n)},clearTimeout(t){const{delegate:e}=Ce;return((e===null||e===void 0?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:undefined};function Re(t){Ce.setTimeout((()=>{const{onUnhandledError:e}=Oe;if(e){e(t)}else{throw t}}))}function Ie(){}const Fe=(()=>Pe("C",undefined,undefined))();function Be(t){return Pe("E",undefined,t)}function je(t){return Pe("N",t,undefined)}function Pe(t,e,n){return{kind:t,value:e,error:n}}function De(t){{t()}}class _e extends Ee{constructor(t){super();this.isStopped=false;if(t){this.destination=t;if(Te(t)){t.add(this)}}else{this.destination=We}}static create(t,e,n){return new Ue(t,e,n)}next(t){if(this.isStopped){Ye(je(t),this)}else{this._next(t)}}error(t){if(this.isStopped){Ye(Be(t),this)}else{this.isStopped=true;this._error(t)}}complete(){if(this.isStopped){Ye(Fe,this)}else{this.isStopped=true;this._complete()}}unsubscribe(){if(!this.closed){this.isStopped=true;super.unsubscribe();this.destination=null}}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const $e=Function.prototype.bind;function Le(t,e){return $e.call(t,e)}class Ne{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next){try{e.next(t)}catch(t){Me(t)}}}error(t){const{partialObserver:e}=this;if(e.error){try{e.error(t)}catch(t){Me(t)}}else{Me(t)}}complete(){const{partialObserver:t}=this;if(t.complete){try{t.complete()}catch(t){Me(t)}}}}class Ue extends _e{constructor(t,e,n){super();let i;if(ye(t)||!t){i={next:t!==null&&t!==void 0?t:undefined,error:e!==null&&e!==void 0?e:undefined,complete:n!==null&&n!==void 0?n:undefined}}else{let e;if(this&&Oe.useDeprecatedNextContext){e=Object.create(t);e.unsubscribe=()=>this.unsubscribe();i={next:t.next&&Le(t.next,e),error:t.error&&Le(t.error,e),complete:t.complete&&Le(t.complete,e)}}else{i=t}}this.destination=new Ne(i)}}function Me(t){{Re(t)}}function qe(t){throw t}function Ye(t,e){const{onStoppedNotification:n}=Oe;n&&Ce.setTimeout((()=>n(t,e)))}const We={closed:true,next:Ie,error:qe,complete:Ie};const Ge=(()=>typeof Symbol==="function"&&Symbol.observable||"@@observable")();function He(t){return t}function Ve(t){if(t.length===0){return He}if(t.length===1){return t[0]}return function e(n){return t.reduce(((t,e)=>e(t)),n)}}class Xe{constructor(t){if(t){this._subscribe=t}}lift(t){const e=new Xe;e.source=this;e.operator=t;return e}subscribe(t,e,n){const i=Qe(t)?t:new Ue(t,e,n);De((()=>{const{operator:t,source:e}=this;i.add(t?t.call(i,e):e?this._subscribe(i):this._trySubscribe(i))}));return i}_trySubscribe(t){try{return this._subscribe(t)}catch(e){t.error(e)}}forEach(t,e){e=Je(e);return new e(((e,n)=>{const i=new Ue({next:e=>{try{t(e)}catch(t){n(t);i.unsubscribe()}},error:n,complete:e});this.subscribe(i)}))}_subscribe(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)}[Ge](){return this}pipe(...t){return Ve(t)(this)}toPromise(t){t=Je(t);return new t(((t,e)=>{let n;this.subscribe((t=>n=t),(t=>e(t)),(()=>t(n)))}))}}Xe.create=t=>new Xe(t);function Je(t){var e;return(e=t!==null&&t!==void 0?t:Oe.Promise)!==null&&e!==void 0?e:Promise}function Ke(t){return t&&ye(t.next)&&ye(t.error)&&ye(t.complete)}function Qe(t){return t&&t instanceof _e||Ke(t)&&Te(t)}function Ze(t){return ye(t===null||t===void 0?void 0:t.lift)}function tn(t){return e=>{if(Ze(e)){return e.lift((function(e){try{return t(e,this)}catch(t){this.error(t)}}))}throw new TypeError("Unable to lift unknown Observable type")}}function en(t,e,n,i,r){return new nn(t,e,n,i,r)}class nn extends _e{constructor(t,e,n,i,r,o){super(t);this.onFinalize=r;this.shouldUnsubscribe=o;this._next=e?function(n){try{e(n)}catch(e){t.error(e)}}:super._next;this._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:super._error;this._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe();!e&&((t=this.onFinalize)===null||t===void 0?void 0:t.call(this))}}}const rn=xe((t=>function e(){t(this);this.name="ObjectUnsubscribedError";this.message="object unsubscribed"}));class on extends Xe{constructor(){super();this.closed=false;this.currentObservers=null;this.observers=[];this.isStopped=false;this.hasError=false;this.thrownError=null}lift(t){const e=new sn(this,this);e.operator=t;return e}_throwIfClosed(){if(this.closed){throw new rn}}next(t){De((()=>{this._throwIfClosed();if(!this.isStopped){if(!this.currentObservers){this.currentObservers=Array.from(this.observers)}for(const e of this.currentObservers){e.next(t)}}}))}error(t){De((()=>{this._throwIfClosed();if(!this.isStopped){this.hasError=this.isStopped=true;this.thrownError=t;const{observers:e}=this;while(e.length){e.shift().error(t)}}}))}complete(){De((()=>{this._throwIfClosed();if(!this.isStopped){this.isStopped=true;const{observers:t}=this;while(t.length){t.shift().complete()}}}))}unsubscribe(){this.isStopped=this.closed=true;this.observers=this.currentObservers=null}get observed(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0}_trySubscribe(t){this._throwIfClosed();return super._trySubscribe(t)}_subscribe(t){this._throwIfClosed();this._checkFinalizedStatuses(t);return this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:e,isStopped:n,observers:i}=this;if(e||n){return Ae}this.currentObservers=null;i.push(t);return new Ee((()=>{this.currentObservers=null;Se(i,t)}))}_checkFinalizedStatuses(t){const{hasError:e,thrownError:n,isStopped:i}=this;if(e){t.error(n)}else if(i){t.complete()}}asObservable(){const t=new Xe;t.source=this;return t}}on.create=(t,e)=>new sn(t,e);class sn extends on{constructor(t,e){super();this.destination=t;this.source=e}next(t){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.next)===null||n===void 0?void 0:n.call(e,t)}error(t){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.error)===null||n===void 0?void 0:n.call(e,t)}complete(){var t,e;(e=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||e===void 0?void 0:e.call(t)}_subscribe(t){var e,n;return(n=(e=this.source)===null||e===void 0?void 0:e.subscribe(t))!==null&&n!==void 0?n:Ae}}const an=new Xe((t=>t.complete()));function cn(t){return t&&ye(t.schedule)}function ln(t){return t[t.length-1]}function un(t){return cn(ln(t))?t.pop():undefined}function fn(t,e){return typeof ln(t)==="number"?t.pop():e}function hn(t,e,n,i){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function s(t){try{c(i.next(t))}catch(t){o(t)}}function a(t){try{c(i["throw"](t))}catch(t){o(t)}}function c(t){t.done?n(t.value):r(t.value).then(s,a)}c((i=i.apply(t,e||[])).next())}))}function dn(t){var e=typeof Symbol==="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function bn(t){return this instanceof bn?(this.v=t,this):new bn(t)}function vn(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n.apply(t,e||[]),r,o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(t){if(i[t])r[t]=function(e){return new Promise((function(n,i){o.push([t,e,n,i])>1||a(t,e)}))}}function a(t,e){try{c(i[t](e))}catch(t){f(o[0][3],t)}}function c(t){t.value instanceof bn?Promise.resolve(t.value.v).then(l,u):f(o[0][2],t)}function l(t){a("next",t)}function u(t){a("throw",t)}function f(t,e){if(t(e),o.shift(),o.length)a(o[0][0],o[0][1])}}function mn(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof dn==="function"?dn(t):t[Symbol.iterator](),n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n);function i(e){n[e]=t[e]&&function(n){return new Promise((function(i,o){n=t[e](n),r(i,o,n.done,n.value)}))}}function r(t,e,n,i){Promise.resolve(i).then((function(e){t({value:e,done:n})}),e)}}const pn=t=>t&&typeof t.length==="number"&&typeof t!=="function";function gn(t){return ye(t===null||t===void 0?void 0:t.then)}function wn(t){return ye(t[Ge])}function yn(t){return Symbol.asyncIterator&&ye(t===null||t===void 0?void 0:t[Symbol.asyncIterator])}function xn(t){return new TypeError(`You provided ${t!==null&&typeof t==="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function kn(){if(typeof Symbol!=="function"||!Symbol.iterator){return"@@iterator"}return Symbol.iterator}const Sn=kn();function En(t){return ye(t===null||t===void 0?void 0:t[Sn])}function An(t){return vn(this,arguments,(function*e(){const n=t.getReader();try{while(true){const{value:t,done:e}=yield bn(n.read());if(e){return yield bn(void 0)}yield yield bn(t)}}finally{n.releaseLock()}}))}function Tn(t){return ye(t===null||t===void 0?void 0:t.getReader)}function zn(t){if(t instanceof Xe){return t}if(t!=null){if(wn(t)){return On(t)}if(pn(t)){return Cn(t)}if(gn(t)){return Rn(t)}if(yn(t)){return Fn(t)}if(En(t)){return In(t)}if(Tn(t)){return Bn(t)}}throw xn(t)}function On(t){return new Xe((e=>{const n=t[Ge]();if(ye(n.subscribe)){return n.subscribe(e)}throw new TypeError("Provided object does not correctly implement Symbol.observable")}))}function Cn(t){return new Xe((e=>{for(let n=0;n<t.length&&!e.closed;n++){e.next(t[n])}e.complete()}))}function Rn(t){return new Xe((e=>{t.then((t=>{if(!e.closed){e.next(t);e.complete()}}),(t=>e.error(t))).then(null,Re)}))}function In(t){return new Xe((e=>{for(const n of t){e.next(n);if(e.closed){return}}e.complete()}))}function Fn(t){return new Xe((e=>{jn(t,e).catch((t=>e.error(t)))}))}function Bn(t){return Fn(An(t))}function jn(t,e){var n,i;var r,o;return hn(this,void 0,void 0,(function*(){try{for(n=mn(t);i=yield n.next(),!i.done;){const t=i.value;e.next(t);if(e.closed){return}}}catch(t){r={error:t}}finally{try{if(i&&!i.done&&(o=n.return))yield o.call(n)}finally{if(r)throw r.error}}e.complete()}))}function Pn(t,e,n,i=0,r=false){const o=e.schedule((function(){n();if(r){t.add(this.schedule(null,i))}else{this.unsubscribe()}}),i);t.add(o);if(!r){return o}}function Dn(t,e=0){return tn(((n,i)=>{n.subscribe(en(i,(n=>Pn(i,t,(()=>i.next(n)),e)),(()=>Pn(i,t,(()=>i.complete()),e)),(n=>Pn(i,t,(()=>i.error(n)),e))))}))}function _n(t,e=0){return tn(((n,i)=>{i.add(t.schedule((()=>n.subscribe(i)),e))}))}function $n(t,e){return zn(t).pipe(_n(e),Dn(e))}function Ln(t,e){return zn(t).pipe(_n(e),Dn(e))}function Nn(t,e){return new Xe((n=>{let i=0;return e.schedule((function(){if(i===t.length){n.complete()}else{n.next(t[i++]);if(!n.closed){this.schedule()}}}))}))}function Un(t,e){return new Xe((n=>{let i;Pn(n,e,(()=>{i=t[Sn]();Pn(n,e,(()=>{let t;let e;try{({value:t,done:e}=i.next())}catch(t){n.error(t);return}if(e){n.complete()}else{n.next(t)}}),0,true)}));return()=>ye(i===null||i===void 0?void 0:i.return)&&i.return()}))}function Mn(t,e){if(!t){throw new Error("Iterable cannot be null")}return new Xe((n=>{Pn(n,e,(()=>{const i=t[Symbol.asyncIterator]();Pn(n,e,(()=>{i.next().then((t=>{if(t.done){n.complete()}else{n.next(t.value)}}))}),0,true)}))}))}function qn(t,e){return Mn(An(t),e)}function Yn(t,e){if(t!=null){if(wn(t)){return $n(t,e)}if(pn(t)){return Nn(t,e)}if(gn(t)){return Ln(t,e)}if(yn(t)){return Mn(t,e)}if(En(t)){return Un(t,e)}if(Tn(t)){return qn(t,e)}}throw xn(t)}function Wn(t,e){return e?Yn(t,e):zn(t)}function Gn(t,e){return tn(((n,i)=>{let r=0;n.subscribe(en(i,(n=>{i.next(t.call(e,n,r++))})))}))}const{isArray:Hn}=Array;function Vn(t,e){return Hn(e)?t(...e):t(e)}function Xn(t){return Gn((e=>Vn(t,e)))}function Jn(t,e,n,i,r,o,s,a){const c=[];let l=0;let u=0;let f=false;const h=()=>{if(f&&!c.length&&!l){e.complete()}};const d=t=>l<i?b(t):c.push(t);const b=t=>{o&&e.next(t);l++;let a=false;zn(n(t,u++)).subscribe(en(e,(t=>{r===null||r===void 0?void 0:r(t);if(o){d(t)}else{e.next(t)}}),(()=>{a=true}),undefined,(()=>{if(a){try{l--;while(c.length&&l<i){const t=c.shift();if(s){Pn(e,s,(()=>b(t)))}else{b(t)}}h()}catch(t){e.error(t)}}})))};t.subscribe(en(e,d,(()=>{f=true;h()})));return()=>{a===null||a===void 0?void 0:a()}}function Kn(t,e,n=Infinity){if(ye(e)){return Kn(((n,i)=>Gn(((t,r)=>e(n,t,i,r)))(zn(t(n,i)))),n)}else if(typeof e==="number"){n=e}return tn(((e,i)=>Jn(e,i,t,n)))}function Qn(t=Infinity){return Kn(He,t)}const Zn=["addListener","removeListener"];const ti=["addEventListener","removeEventListener"];const ei=["on","off"];function ni(t,e,n,i){if(ye(n)){i=n;n=undefined}if(i){return ni(t,e,n).pipe(Xn(i))}const[r,o]=si(t)?ti.map((i=>r=>t[i](e,r,n))):ri(t)?Zn.map(ii(t,e)):oi(t)?ei.map(ii(t,e)):[];if(!r){if(pn(t)){return Kn((t=>ni(t,e,n)))(zn(t))}}if(!r){throw new TypeError("Invalid event target")}return new Xe((t=>{const e=(...e)=>t.next(1<e.length?e:e[0]);r(e);return()=>o(e)}))}function ii(t,e){return n=>i=>t[n](e,i)}function ri(t){return ye(t.addListener)&&ye(t.removeListener)}function oi(t){return ye(t.on)&&ye(t.off)}function si(t){return ye(t.addEventListener)&&ye(t.removeEventListener)}function ai(...t){const e=un(t);const n=fn(t,Infinity);const i=t;return!i.length?an:i.length===1?zn(i[0]):Qn(n)(Wn(i,e))}function ci(t,e){return tn(((n,i)=>{let r=0;n.subscribe(en(i,(n=>t.call(e,n,r++)&&i.next(n))))}))}function li(t,e=He){t=t!==null&&t!==void 0?t:ui;return tn(((n,i)=>{let r;let o=true;n.subscribe(en(i,(n=>{const s=e(n);if(o||!t(r,s)){o=false;r=s;i.next(n)}})))}))}function ui(t,e){return t===e}function fi(t){return tn(((e,n)=>{zn(t).subscribe(en(n,(()=>n.complete()),Ie));!n.closed&&e.subscribe(n)}))}const hi=":host{overflow:hidden;position:relative;display:flex}:host([hidden]){display:none}.shadow-bottom,.shadow-right,.shadow-left,.shadow-top{position:absolute;transition:box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1)}.shadow-top{z-index:2;width:100%;top:0}.shadow-left{z-index:4;height:100%;left:0}.shadow-right{z-index:4;height:100%;right:0}.shadow-bottom{z-index:2;width:100%;bottom:0}.scrollable-wrapper{position:absolute;top:0;left:0;right:0;bottom:0;pointer-events:none}.scrollable-wrapper.cat-scrollable-top .shadow-top,.scrollable-wrapper.cat-scrollable-bottom .shadow-bottom,.scrollable-wrapper.cat-scrollable-left .shadow-left,.scrollable-wrapper.cat-scrollable-right .shadow-right{box-shadow:0 0 4px 1px rgba(16, 29, 48, 0.2)}.scrollable-content{overflow:hidden;white-space:nowrap}.scrollable-content.scroll-x{overflow-x:auto}.scrollable-content.scroll-y{overflow-y:auto}.scrollable-content.no-overscroll{overscroll-behavior:contain}";const di=class{constructor(e){t(this,e);this.scrolledTop=n(this,"scrolledTop",7);this.scrolledLeft=n(this,"scrolledLeft",7);this.scrolledRight=n(this,"scrolledRight",7);this.scrolledBottom=n(this,"scrolledBottom",7);this.init=new on;this.destroyed=new on;this.shadowX=true;this.shadowY=true;this.overflowX=true;this.overflowY=true;this.overscroll=true;this.scrolledInit=true;this.scrolledBuffer=0}componentDidRender(){if(this.scrollElement){this.scrolled=ni(this.scrollElement,"scroll").pipe(fi(this.destroyed))}this.attachEmitter("left",this.scrolledLeft,this.scrolledBuffer);this.attachEmitter("right",this.scrolledRight,this.scrolledBuffer);this.attachEmitter("bottom",this.scrolledBottom,this.scrolledBuffer);this.attachEmitter("top",this.scrolledTop,this.scrolledBuffer);ai(this.init,this.scrolled).pipe(Gn((()=>({top:this.getScrollOffset("top")>0,left:this.getScrollOffset("left")>0,right:this.getScrollOffset("right")>0,bottom:this.getScrollOffset("bottom")>0}))),li(),fi(this.destroyed)).subscribe((({top:t,left:e,right:n,bottom:i})=>{this.toggleClass("cat-scrollable-top",t);this.toggleClass("cat-scrollable-left",e);this.toggleClass("cat-scrollable-right",n);this.toggleClass("cat-scrollable-bottom",i)}))}componentDidLoad(){if(this.scrolledInit){this.init.next()}}disconnectedCallback(){this.init.complete();this.destroyed.next();this.destroyed.complete()}render(){return[e("div",{class:"scrollable-wrapper",ref:t=>this.scrollWrapperElement=t},this.shadowY&&e("div",{class:"shadow-top"}),this.shadowX&&e("div",{class:"shadow-left"}),this.shadowX&&e("div",{class:"shadow-right"}),this.shadowY&&e("div",{class:"shadow-bottom"})),e("div",{ref:t=>this.scrollElement=t,class:{"scrollable-content":true,"scroll-x":this.overflowX,"scroll-y":this.overflowY,"no-overscroll":!this.overscroll}},e("slot",null))]}attachEmitter(t,e,n){ai(this.init,this.scrolled).pipe(Gn((()=>this.getScrollOffset(t)))).pipe(Gn((t=>t<=n))).pipe(li()).pipe(ci((t=>t))).pipe(fi(this.destroyed)).subscribe((()=>e.emit()))}getScrollOffset(t){if(this.scrollElement){switch(t){case"top":return this.scrollElement.scrollTop;case"left":return this.scrollElement.scrollLeft;case"right":return this.scrollElement.scrollWidth-this.scrollElement.clientWidth-this.scrollElement.scrollLeft;case"bottom":return this.scrollElement.scrollHeight-this.scrollElement.clientHeight-this.scrollElement.scrollTop;default:return 0}}return 0}toggleClass(t,e){var n,i;if(e){(n=this.scrollWrapperElement)===null||n===void 0?void 0:n.classList.add(t)}else{(i=this.scrollWrapperElement)===null||i===void 0?void 0:i.classList.remove(t)}}get el(){return r(this)}};di.style=hi;const bi=':host{display:flex;flex-direction:column;position:relative;--background:#ebecf0;--highlight:#d7dbe0;--speed:2s}:host([variant=square]),:host([variant=circle]){display:inline-flex}:host([hidden]){display:none}:host([variant=head]){margin-bottom:0.5rem}:host([variant=body]){margin-bottom:1rem}.cat-skeleton{display:block;border-radius:0.25rem;background:var(--background)}.cat-skeleton-circle{border-radius:10rem}.cat-skeleton-xs.cat-skeleton-rectangle{width:var(--width, 100%);height:var(--height, 1.5rem)}.cat-skeleton-xs.cat-skeleton-square,.cat-skeleton-xs.cat-skeleton-circle{width:var(--width, 1.5rem);height:var(--height, 1.5rem)}.cat-skeleton-xs.cat-skeleton-head,.cat-skeleton-xs.cat-skeleton-body{width:var(--width, var(--line-width, 100%))}.cat-skeleton-xs.cat-skeleton-head{height:calc(0.9375rem - 4px);margin:calc((1.25rem - 0.9375rem + 4px) * 0.5) 0}.cat-skeleton-xs.cat-skeleton-body{height:calc(0.75rem - 4px);margin:calc((1rem - 0.75rem + 4px) * 0.5) 0}.cat-skeleton-s.cat-skeleton-rectangle{width:var(--width, 100%);height:var(--height, 2rem)}.cat-skeleton-s.cat-skeleton-square,.cat-skeleton-s.cat-skeleton-circle{width:var(--width, 2rem);height:var(--height, 2rem)}.cat-skeleton-s.cat-skeleton-head,.cat-skeleton-s.cat-skeleton-body{width:var(--width, var(--line-width, 100%))}.cat-skeleton-s.cat-skeleton-head{height:calc(1.125rem - 4px);margin:calc((1.5rem - 1.125rem + 4px) * 0.5) 0}.cat-skeleton-s.cat-skeleton-body{height:calc(0.875rem - 4px);margin:calc((1rem - 0.875rem + 4px) * 0.5) 0}.cat-skeleton-m.cat-skeleton-rectangle{width:var(--width, 100%);height:var(--height, 2.5rem)}.cat-skeleton-m.cat-skeleton-square,.cat-skeleton-m.cat-skeleton-circle{width:var(--width, 2.5rem);height:var(--height, 2.5rem)}.cat-skeleton-m.cat-skeleton-head,.cat-skeleton-m.cat-skeleton-body{width:var(--width, var(--line-width, 100%))}.cat-skeleton-m.cat-skeleton-head{height:calc(1.25rem - 4px);margin:calc((1.5rem - 1.25rem + 4px) * 0.5) 0}.cat-skeleton-m.cat-skeleton-body{height:calc(0.9375rem - 4px);margin:calc((1.25rem - 0.9375rem + 4px) * 0.5) 0}.cat-skeleton-l.cat-skeleton-rectangle{width:var(--width, 100%);height:var(--height, 3rem)}.cat-skeleton-l.cat-skeleton-square,.cat-skeleton-l.cat-skeleton-circle{width:var(--width, 3rem);height:var(--height, 3rem)}.cat-skeleton-l.cat-skeleton-head,.cat-skeleton-l.cat-skeleton-body{width:var(--width, var(--line-width, 100%))}.cat-skeleton-l.cat-skeleton-head{height:calc(1.5rem - 4px);margin:calc((1.75rem - 1.5rem + 4px) * 0.5) 0}.cat-skeleton-l.cat-skeleton-body{height:calc(1.125rem - 4px);margin:calc((1.5rem - 1.125rem + 4px) * 0.5) 0}.cat-skeleton-xl.cat-skeleton-rectangle{width:var(--width, 100%);height:var(--height, 3.5rem)}.cat-skeleton-xl.cat-skeleton-square,.cat-skeleton-xl.cat-skeleton-circle{width:var(--width, 3.5rem);height:var(--height, 3.5rem)}.cat-skeleton-xl.cat-skeleton-head,.cat-skeleton-xl.cat-skeleton-body{width:var(--width, var(--line-width, 100%))}.cat-skeleton-xl.cat-skeleton-head{height:calc(1.75rem - 4px);margin:calc((2rem - 1.75rem + 4px) * 0.5) 0}.cat-skeleton-xl.cat-skeleton-body{height:calc(1.25rem - 4px);margin:calc((1.5rem - 1.25rem + 4px) * 0.5) 0}.cat-skeleton-sheen{background:linear-gradient(90deg, var(--background) 33%, var(--highlight) 50%, var(--background) 66%) var(--background);background-size:300% 100%;animation:sheen var(--speed) ease-in-out infinite}.cat-skeleton-pulse{position:relative;overflow:hidden}.cat-skeleton-pulse::before{content:"";display:block;position:absolute;width:100%;height:100%;background-color:var(--highlight);animation:var(--speed) ease-in-out 0.5s infinite normal none running pulse;opacity:0}@keyframes sheen{0%{background-position:right}}@keyframes pulse{50%{opacity:1}}';const vi=class{constructor(e){t(this,e);this.effect="sheen";this.variant="rectangle";this.size="m"}render(){return e(i,null,Array.from(Array(this.count)).map((()=>e("div",{style:this.style,class:{"cat-skeleton":true,[`cat-skeleton-${this.effect}`]:Boolean(this.effect),[`cat-skeleton-${this.variant}`]:Boolean(this.variant),[`cat-skeleton-${this.size}`]:Boolean(this.size)}}))))}get count(){switch(this.variant){case"head":return Math.max(1,this.lines||1);case"body":return Math.max(1,this.lines||3);default:return 1}}get style(){return this.variant==="head"||this.variant==="body"?{"--line-width":`${this.random(50,100)}%`}:undefined}random(t,e){return Math.floor(Math.random()*(e-t+1)+t)}};vi.style=bi;const mi=":host{display:inline-flex;vertical-align:middle;-webkit-user-select:none;-ms-user-select:none;user-select:none;}:host[hidden]{display:none}span{display:inline-flex}svg{fill:none;stroke:currentColor;stroke-dasharray:135px;stroke-dashoffset:95px;stroke-linecap:round;stroke-width:5px;transform-origin:center center;animation:cat-spinner 0.75s cubic-bezier(0.4, 0.15, 0.6, 0.85) infinite;width:1em;height:1em}.cat-spinner-xs svg{font-size:0.75rem}.cat-spinner-s svg{font-size:1rem}.cat-spinner-m svg{font-size:1.25rem}.cat-spinner-l svg{font-size:1.5rem}.cat-spinner-xl svg{font-size:1.75rem}@keyframes cat-spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}";const pi=class{constructor(e){t(this,e);this.size="m"}render(){return e("span",{"aria-label":this.a11yLabel,"aria-hidden":this.a11yLabel?null:"true",class:{[`cat-spinner-${this.size}`]:this.size!=="inline"}},e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e("circle",{cx:"24",cy:"24",r:"21.5"})))}};pi.style=mi;export{a as cat_alert,l as cat_badge,E as cat_button,T as cat_icon,we as cat_menu,di as cat_scrollable,vi as cat_skeleton,pi as cat_spinner};
10
+ //# sourceMappingURL=p-31b500c7.entry.js.map