smoothly 1.0.0-alpha.76 → 1.0.0-alpha.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-6ae370b4.js → index-43af753b.js} +1 -4
- package/dist/cjs/index-43af753b.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/smoothly-accordion_66.cjs.entry.js +31 -22
- package/dist/cjs/smoothly-accordion_66.cjs.entry.js.map +1 -1
- package/dist/cjs/smoothly-address-display.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-address.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-addresses.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-color.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-country.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-display-date-time.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-google-font.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-reorder.cjs.entry.js +4 -4
- package/dist/cjs/smoothly-reorder.cjs.entry.js.map +1 -1
- package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js +1 -1
- package/dist/cjs/smoothly.cjs.js +2 -2
- package/dist/collection/components/app/index.js +2 -8
- package/dist/collection/components/app/index.js.map +1 -1
- package/dist/collection/components/app/style.css +6 -6
- package/dist/collection/components/burger/index.js +33 -18
- package/dist/collection/components/burger/index.js.map +1 -1
- package/dist/collection/components/burger/style.css +2 -2
- package/dist/collection/components/display-demo/index.js +1 -1
- package/dist/collection/components/display-demo/index.js.map +1 -1
- package/dist/custom-elements/index.js +32 -23
- package/dist/custom-elements/index.js.map +1 -1
- package/dist/esm/{index-c196715a.js → index-258984d3.js} +2 -4
- package/dist/esm/index-258984d3.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/smoothly-accordion_66.entry.js +31 -22
- package/dist/esm/smoothly-accordion_66.entry.js.map +1 -1
- package/dist/esm/smoothly-address-display.entry.js +1 -1
- package/dist/esm/smoothly-address.entry.js +1 -1
- package/dist/esm/smoothly-addresses.entry.js +1 -1
- package/dist/esm/smoothly-color.entry.js +1 -1
- package/dist/esm/smoothly-country.entry.js +1 -1
- package/dist/esm/smoothly-display-date-time.entry.js +1 -1
- package/dist/esm/smoothly-google-font.entry.js +1 -1
- package/dist/esm/smoothly-radio-group.entry.js +1 -1
- package/dist/esm/smoothly-reorder.entry.js +2 -2
- package/dist/esm/smoothly-reorder.entry.js.map +1 -1
- package/dist/esm/smoothly-trigger-sink.entry.js +1 -1
- package/dist/esm/smoothly-trigger-source.entry.js +1 -1
- package/dist/esm/smoothly.js +3 -3
- package/dist/smoothly/{p-663ccbd0.entry.js → p-12182a73.entry.js} +2 -2
- package/dist/smoothly/{p-9992c8c4.entry.js → p-47151a53.entry.js} +2 -2
- package/dist/smoothly/{p-d0b8061e.js → p-5e387578.js} +3 -3
- package/dist/smoothly/p-5e387578.js.map +1 -0
- package/dist/smoothly/{p-1efa3261.entry.js → p-66e9a8b1.entry.js} +2 -2
- package/dist/smoothly/{p-8a45ae84.entry.js → p-69108043.entry.js} +2 -2
- package/dist/smoothly/{p-dbd1afa9.entry.js → p-6aebb818.entry.js} +2 -2
- package/dist/smoothly/p-6dea9679.entry.js +2 -0
- package/dist/smoothly/p-6dea9679.entry.js.map +1 -0
- package/dist/smoothly/{p-c4ffc15d.entry.js → p-70dede91.entry.js} +2 -2
- package/dist/smoothly/{p-4d743f07.entry.js → p-7bf147bf.entry.js} +2 -2
- package/dist/smoothly/{p-b82ef190.entry.js → p-863ff3c6.entry.js} +2 -2
- package/dist/smoothly/p-b3eac6af.entry.js +2 -0
- package/dist/smoothly/{p-4ff439dd.entry.js.map → p-b3eac6af.entry.js.map} +1 -1
- package/dist/smoothly/{p-f96e41aa.entry.js → p-cb493516.entry.js} +2 -2
- package/dist/smoothly/{p-ce4e6f44.entry.js → p-eef1c80b.entry.js} +2 -2
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/smoothly/smoothly.esm.js.map +1 -1
- package/dist/types/components/app/index.d.ts +1 -1
- package/dist/types/components/burger/index.d.ts +3 -2
- package/dist/types/components.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/index-6ae370b4.js.map +0 -1
- package/dist/esm/index-c196715a.js.map +0 -1
- package/dist/smoothly/p-32d6942f.entry.js +0 -2
- package/dist/smoothly/p-32d6942f.entry.js.map +0 -1
- package/dist/smoothly/p-4ff439dd.entry.js +0 -2
- package/dist/smoothly/p-d0b8061e.js.map +0 -1
- /package/dist/smoothly/{p-663ccbd0.entry.js.map → p-12182a73.entry.js.map} +0 -0
- /package/dist/smoothly/{p-9992c8c4.entry.js.map → p-47151a53.entry.js.map} +0 -0
- /package/dist/smoothly/{p-1efa3261.entry.js.map → p-66e9a8b1.entry.js.map} +0 -0
- /package/dist/smoothly/{p-8a45ae84.entry.js.map → p-69108043.entry.js.map} +0 -0
- /package/dist/smoothly/{p-dbd1afa9.entry.js.map → p-6aebb818.entry.js.map} +0 -0
- /package/dist/smoothly/{p-c4ffc15d.entry.js.map → p-70dede91.entry.js.map} +0 -0
- /package/dist/smoothly/{p-4d743f07.entry.js.map → p-7bf147bf.entry.js.map} +0 -0
- /package/dist/smoothly/{p-b82ef190.entry.js.map → p-863ff3c6.entry.js.map} +0 -0
- /package/dist/smoothly/{p-f96e41aa.entry.js.map → p-cb493516.entry.js.map} +0 -0
- /package/dist/smoothly/{p-ce4e6f44.entry.js.map → p-eef1c80b.entry.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-258984d3.js';
|
|
2
2
|
|
|
3
3
|
const styleCss = "[color=default].sc-smoothly-color{--smoothly-color:var(--smoothly-default-color);--smoothly-color-contrast:var(--smoothly-default-contrast);--smoothly-color-shade:var(--smoothly-default-shade);--smoothly-color-tint:var(--smoothly-default-tint)}[color=primary].sc-smoothly-color{--smoothly-color:var(--smoothly-primary-color);--smoothly-color-contrast:var(--smoothly-primary-contrast);--smoothly-color-shade:var(--smoothly-primary-shade);--smoothly-color-tint:var(--smoothly-primary-tint)}[color=secondary].sc-smoothly-color{--smoothly-color:var(--smoothly-secondary-color);--smoothly-color-contrast:var(--smoothly-secondary-contrast);--smoothly-color-shade:var(--smoothly-secondary-shade);--smoothly-color-tint:var(--smoothly-secondary-tint)}[color=tertiary].sc-smoothly-color{--smoothly-color:var(--smoothly-tertiary-color);--smoothly-color-contrast:var(--smoothly-tertiary-contrast);--smoothly-color-shade:var(--smoothly-tertiary-shade);--smoothly-color-tint:var(--smoothly-tertiary-tint)}[color=success].sc-smoothly-color{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-color);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-color{--smoothly-color:var(--smoothly-warning-color);--smoothly-color-contrast:var(--smoothly-warning-contrast);--smoothly-color-shade:var(--smoothly-warning-shade);--smoothly-color-tint:var(--smoothly-warning-tint)}[color=danger].sc-smoothly-color{--smoothly-color:var(--smoothly-danger-color);--smoothly-color-contrast:var(--smoothly-danger-contrast);--smoothly-color-shade:var(--smoothly-danger-shade);--smoothly-color-tint:var(--smoothly-danger-tint)}[color=light].sc-smoothly-color{--smoothly-color:var(--smoothly-light-color);--smoothly-color-contrast:var(--smoothly-light-contrast);--smoothly-color-shade:var(--smoothly-light-shade);--smoothly-color-tint:var(--smoothly-light-tint)}[color=medium].sc-smoothly-color{--smoothly-color:var(--smoothly-medium-color);--smoothly-color-contrast:var(--smoothly-medium-contrast);--smoothly-color-shade:var(--smoothly-medium-shade);--smoothly-color-tint:var(--smoothly-medium-tint)}[color=dark].sc-smoothly-color{--smoothly-color:var(--smoothly-dark-color);--smoothly-color-contrast:var(--smoothly-dark-contrast);--smoothly-color-shade:var(--smoothly-dark-shade);--smoothly-color-tint:var(--smoothly-dark-tint)}";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-258984d3.js';
|
|
2
2
|
import { A as Alpha2, g as getLanguage } from './getLanguage-9c833eef.js';
|
|
3
3
|
|
|
4
4
|
function from$K(country) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-258984d3.js';
|
|
2
2
|
|
|
3
3
|
const styleCss = "smoothly-radio-group{display:flex;position:relative;color:none !important;background:none !important;margin:0.5em 0}smoothly-radio-group[hidden]{display:none}smoothly-radio-group[orientation=vertical] *:not(:first-of-type)>input[type=radio]~label{border-top:none}smoothly-radio-group:not([orientation=vertical]) *:not(:first-of-type)>input[type=radio]~label{border-left:none}smoothly-radio-group[orientation=vertical]{flex-direction:column}smoothly-radio-group[orientation=vertical] :first-of-type>input[type=radio]~label{border-radius:4px 4px 0 0}smoothly-radio-group[orientation=vertical] :last-of-type>input[type=radio]~label{border-radius:0 0 4px 4px}smoothly-radio-group:not([orientation=vertical]){flex-direction:row}smoothly-radio-group:not([orientation=vertical]) :first-of-type>input[type=radio]~label{border-radius:4px 0 0 4px}smoothly-radio-group:not([orientation=vertical]) :last-of-type>input[type=radio]~label{border-radius:0 4px 4px 0}";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent,
|
|
1
|
+
import { r as registerInstance, c as createEvent, g as getElement } from './index-258984d3.js';
|
|
2
2
|
|
|
3
3
|
const styleCss = "smoothly-reorder>*{cursor:move;transition:transform 0.3s}smoothly-reorder>*.dragging{transition:none;box-shadow:0 0 10px rgba(var(--smoothly-dark-color));z-index:1;user-select:none}";
|
|
4
4
|
|
|
@@ -14,7 +14,7 @@ const SmoothlyReorder = class {
|
|
|
14
14
|
else {
|
|
15
15
|
for (let index = 0; index < this.element.children.length; index++) {
|
|
16
16
|
const element = this.element.children[index];
|
|
17
|
-
if (element instanceof
|
|
17
|
+
if (element instanceof HTMLElement) {
|
|
18
18
|
const bounds = element.getBoundingClientRect();
|
|
19
19
|
result.push({
|
|
20
20
|
top: bounds.top,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"smoothly-reorder.entry.js","mappings":";;AAAA,MAAM,QAAQ,GAAG,uLAAuL;;MCM3L,eAAe;;;;;EAK3B,IAAY,QAAQ;IACnB,IAAI,MAAM,GAAgB,EAAE,CAAA;IAC5B,IAAI,IAAI,CAAC,aAAa;MACrB,MAAM,GAAG,IAAI,CAAC,aAAa,CAAA;SACvB;MACJ,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;QAClE,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;QAC5C,IAAI,OAAO,
|
|
1
|
+
{"file":"smoothly-reorder.entry.js","mappings":"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","names":[],"sources":["./src/components/reorder/style.css?tag=smoothly-reorder","./src/components/reorder/index.tsx"],"sourcesContent":["smoothly-reorder > * {\n\tcursor: move;\n\ttransition: transform 0.3s;\n}\nsmoothly-reorder > *.dragging {\n\ttransition: none;\n\tbox-shadow: 0 0 10px rgba(var(--smoothly-dark-color));\n\tz-index: 1;\n\tuser-select: none;\n}\n","import { Component, Element, Event, EventEmitter } from \"@stencil/core\"\n\n@Component({\n\ttag: \"smoothly-reorder\",\n\tstyleUrl: \"style.css\",\n})\nexport class SmoothlyReorder {\n\t@Event() reorder: EventEmitter<[number, number]>\n\t@Element() element: HTMLSmoothlyReorderElement\n\tprivate bounds?: DOMRect\n\tprivate childrenCache?: Draggable[]\n\tprivate get children(): Draggable[] {\n\t\tlet result: Draggable[] = []\n\t\tif (this.childrenCache)\n\t\t\tresult = this.childrenCache\n\t\telse {\n\t\t\tfor (let index = 0; index < this.element.children.length; index++) {\n\t\t\t\tconst element = this.element.children[index]\n\t\t\t\tif (element instanceof HTMLElement) {\n\t\t\t\t\tconst bounds = element.getBoundingClientRect()\n\t\t\t\t\tresult.push({\n\t\t\t\t\t\ttop: bounds.top,\n\t\t\t\t\t\tmiddle: bounds.top + bounds.height / 2,\n\t\t\t\t\t\tbottom: bounds.bottom,\n\t\t\t\t\t\telement: element,\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.childrenCache = result\n\t\t}\n\t\treturn result\n\t}\n\tprivate dragged?: Dragged\n\tprivate move?: { from: number; to: number }\n\n\tprivate onMouseDown(event: MouseEvent) {\n\t\tif (!this.move && this.element.children.length > 1) {\n\t\t\tthis.bounds = this.element.getBoundingClientRect()\n\t\t\tthis.childrenCache = undefined\n\t\t\tconst index = this.getCurrentIndex(event.clientY)\n\t\t\tthis.dragged = {\n\t\t\t\t...this.children[index],\n\t\t\t\tstartY: event.clientY,\n\t\t\t\toffsetY: event.clientY - this.children[index].middle,\n\t\t\t\tindex,\n\t\t\t\theight:\n\t\t\t\t\tindex < this.children.length - 1\n\t\t\t\t\t\t? this.children[index + 1].top - this.children[index].top\n\t\t\t\t\t\t: this.children[index].bottom - this.children[index - 1].bottom,\n\t\t\t}\n\t\t\tthis.dragged.element.className += \" dragging\"\n\t\t}\n\t}\n\n\tprivate onMouseMove(event: MouseEvent) {\n\t\tif (this.dragged && this.bounds && event.clientY >= this.bounds.top && event.clientY <= this.bounds.bottom) {\n\t\t\tconst currentIndex = this.getCurrentIndex(event.clientY - this.dragged.offsetY)\n\t\t\tthis.translate(this.dragged.index, currentIndex, event.clientY - this.dragged.startY)\n\t\t}\n\t}\n\n\tprivate onMouseUp(event: MouseEvent) {\n\t\tif (this.dragged) {\n\t\t\tthis.dragged.element.className = this.dragged.element.className.replace(\" dragging\", \"\")\n\t\t\tconst index = this.getCurrentIndex(event.clientY - this.dragged.offsetY)\n\t\t\tthis.translate(this.dragged.index, index, this.children[index].top - this.dragged.top)\n\t\t\tthis.move = { from: this.dragged.index, to: index }\n\t\t\tthis.dragged = undefined\n\n\t\t\twindow.setTimeout(() => {\n\t\t\t\tif (this.move) {\n\t\t\t\t\tconst children = [...this.children.map(c => c.element)]\n\t\t\t\t\tconst e = children.splice(this.move.from, 1)\n\t\t\t\t\tchildren.splice(this.move.to, 0, ...e)\n\t\t\t\t\tchildren.forEach(child => this.element.removeChild(child))\n\t\t\t\t\tchildren.forEach(child => {\n\t\t\t\t\t\tchild.style.transform = \"\"\n\t\t\t\t\t\tthis.element.appendChild(child)\n\t\t\t\t\t})\n\t\t\t\t\tthis.reorder.emit([this.move.from, this.move.to])\n\t\t\t\t\tthis.move = undefined\n\t\t\t\t}\n\t\t\t}, 500)\n\t\t}\n\t}\n\n\tprivate translate(fromIndex: number, toIndex: number, y: number) {\n\t\tfor (let index = 0; index < this.children.length; index++) {\n\t\t\tlet value: number\n\t\t\tif (this.dragged) {\n\t\t\t\tif (fromIndex < toIndex && index > fromIndex && index <= toIndex)\n\t\t\t\t\tvalue = -this.dragged.height\n\t\t\t\telse if (fromIndex > toIndex && index < fromIndex && index >= toIndex)\n\t\t\t\t\tvalue = this.dragged.height\n\t\t\t\telse\n\t\t\t\t\tvalue = index == fromIndex ? y : 0\n\n\t\t\t\tthis.children[index].element.style.transform = `translateY(${value}px)`\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate getCurrentIndex(y: number): number {\n\t\treturn this.children.findIndex(c => y < c.bottom)\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.element.childNodes.forEach(child => {\n\t\t\tchild.addEventListener(\"mousedown\", (e: MouseEvent) => this.onMouseDown(e))\n\t\t\tchild.addEventListener(\"mousemove\", (e: MouseEvent) => this.onMouseMove(e))\n\t\t\tchild.addEventListener(\"mouseup\", (e: MouseEvent) => this.onMouseUp(e))\n\t\t})\n\t}\n}\n"],"version":3}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-258984d3.js';
|
|
2
2
|
import { M as Message, T as Trigger } from './Data-77d2bdbe.js';
|
|
3
3
|
import './GoogleFont-8474516b.js';
|
|
4
4
|
|
package/dist/esm/smoothly.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-258984d3.js';
|
|
2
|
+
export { s as setNonce } from './index-258984d3.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
5
|
Stencil Client Patch Browser v2.22.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -14,7 +14,7 @@ const patchBrowser = () => {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
patchBrowser().then(options => {
|
|
17
|
-
return bootstrapLazy([["smoothly-accordion_66",[[0,"smoothly-app-demo",{"baseUrl":[1,"base-url"]}],[0,"smoothly-input-demo",null,[[0,"selectionChanged","handleSelectionChanged"]]],[2,"smoothly-table-demo"],[0,"smoothly-display-demo"],[4,"smoothly-app",{"label":[1],"color":[1],"menuOpen":[1540,"menu-open"],"selected":[32]},[[
|
|
17
|
+
return bootstrapLazy([["smoothly-accordion_66",[[0,"smoothly-app-demo",{"baseUrl":[1,"base-url"]}],[0,"smoothly-input-demo",null,[[0,"selectionChanged","handleSelectionChanged"]]],[2,"smoothly-table-demo"],[0,"smoothly-display-demo"],[4,"smoothly-app",{"label":[1],"color":[1],"menuOpen":[1540,"menu-open"],"selected":[32]},[[8,"popstate","locationChangeHandler"],[0,"smoothlyRoomSelected","roomSelectedHandler"],[0,"smoothlyRoomLoaded","roomLoadedHandler"]]],[0,"smoothly-button-demo"],[0,"smoothly-dialog-demo"],[2,"smoothly-select-demo"],[6,"smoothly-app-room",{"label":[1],"icon":[1],"path":[1],"to":[1],"selected":[1540],"getContent":[64]}],[2,"smoothly-icon-demo"],[2,"smoothly-picker-demo",{"data":[32],"change":[32]},[[0,"smoothlyFormSubmit","submitHandler"]]],[2,"smoothly-table-demo-filtered",{"criteria":[32],"data":[32],"selector":[32]},[[0,"filters","onFilterUpdate"],[2,"smoothlyChecked","smoothlyCheckedHandler"]]],[2,"smoothly-table-testing",{"counter":[32]}],[6,"smoothly-input-date",{"name":[513],"value":[1025],"open":[1028],"max":[1025],"min":[1025],"disabled":[1028],"clear":[64]},[[0,"dateSet","dateSetHandler"]]],[2,"smoothly-input-date-range",{"name":[513],"value":[1025],"start":[1025],"end":[1025],"max":[1025],"min":[1025],"open":[1028],"showLabel":[516,"show-label"],"labelStart":[1,"label-start"],"labelEnd":[1,"label-end"],"clear":[64]},[[0,"startChanged","onStartChanged"],[0,"endChanged","onEndChanged"],[0,"dateRangeSet","onDateRangeSet"]]],[6,"smoothly-notifier",{"notices":[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]],[6,"smoothly-dialog",{"color":[513],"open":[1540],"closable":[516],"header":[513]},[[0,"trigger","TriggerListener"]]],[2,"smoothly-burger",{"visible":[1540],"open":[1540],"mediaQuery":[513,"media-query"],"history":[32]},[[9,"resize","resizeHandler"]]],[6,"smoothly-checkbox",{"size":[1],"checked":[1540],"intermediate":[1540],"name":[1],"value":[8],"disabled":[516],"t":[32],"toggle":[64]}],[6,"smoothly-input-file",{"accept":[1],"camera":[513],"name":[513],"showLabel":[516,"show-label"],"value":[1040],"placeholder":[1537],"dragging":[32],"clear":[64]}],[6,"smoothly-radio-button-item",{"value":[8],"selected":[1540],"color":[513]}],[6,"smoothly-summary",{"open":[1540],"color":[1],"fill":[1],"size":[1]}],[1,"smoothly-toggle-switch",{"selected":[1540],"disabled":[516],"size":[513],"name":[1],"value":[8]}],[0,"smoothly-urlencoded",{"data":[1]}],[6,"smoothly-accordion",{"value":[1025],"removeItem":[64]},[[0,"smoothlyOpen","handleOpenClose"],[0,"smoothlyClose","handleOpenClose"],[0,"smoothlyAccordionItemWillLoad","onAccordionItemDidLoad"]]],[6,"smoothly-accordion-item",{"name":[1],"brand":[1],"open":[1540]}],[2,"smoothly-display",{"type":[1],"value":[8],"currency":[1],"country":[1],"format":[16]}],[2,"smoothly-display-amount",{"amount":[8],"currency":[1],"toInteger":[4,"to-integer"]}],[2,"smoothly-frame",{"url":[1],"name":[1],"origin":[1],"send":[64]}],[6,"smoothly-popup",{"visible":[1540],"direction":[1537],"cssVariables":[32]}],[6,"smoothly-quiet",{"color":[1]}],[6,"smoothly-radio",{"name":[1],"value":[1],"checked":[1540],"tab":[2]}],[6,"smoothly-radio-button",{"name":[1],"value":[1032],"deselectable":[516],"decoration":[513]},[[2,"radioItemSelectInternal","radioSelectHandler"]]],[2,"smoothly-skeleton",{"widths":[16],"width":[1025],"color":[1],"period":[2],"distance":[1],"align":[513]}],[2,"smoothly-svg",{"url":[513],"size":[513],"color":[1]}],[6,"smoothly-toggle",{"selected":[1540],"shape":[513],"disabled":[516],"name":[1],"value":[8]},[[0,"click","onClick"]]],[1,"smoothly-filter",{"placeholder":[1025],"criteria":[1040],"inputValue":[1032,"input-value"],"expanded":[32],"freeSearchValue":[32],"clear":[64]},[[0,"filter","filterHandler"]]],[6,"smoothly-picker",{"name":[513],"open":[1540],"mutable":[516],"multiple":[516],"readonly":[516],"validator":[16],"selected":[32],"display":[32],"clear":[64]},[[0,"smoothlyPickerMenuLoaded","menuLoadedHandler"],[0,"smoothlyPickerOptionLoaded","optionLoadedHandler"],[0,"smoothlyPickerOptionChange","optionChangeHandler"]]],[1,"smoothly-filter-input",{"name":[513],"value":[1025],"type":[513],"required":[1540],"minLength":[2,"min-length"],"showLabel":[516,"show-label"],"maxLength":[2,"max-length"],"autocomplete":[4],"pattern":[16],"placeholder":[1],"disabled":[4],"readonly":[516],"currency":[513],"comparison":[1],"criteria":[32],"clear":[64]}],[2,"smoothly-backtotop",{"opacity":[1],"bottom":[1],"right":[1],"visible":[32]}],[6,"smoothly-input-clear",{"color":[513],"expand":[513],"fill":[513],"disabled":[1540],"size":[513],"shape":[513],"display":[1540],"type":[513]},[[0,"click","clickHandler"]]],[6,"smoothly-tab",{"label":[1],"open":[1540]},[[0,"click","onClick"]]],[6,"smoothly-tab-switch",{"selectedElement":[32]},[[0,"expansionOpen","openChanged"]]],[6,"smoothly-table-expandable-row",{"align":[1],"open":[1540],"allowSpotlight":[32],"spotlight":[32]},[[0,"smoothlyTableLoad","handleTableLoaded"]]],[0,"smoothly-tuple",{"tuple":[16]}],[6,"smoothly-picker-menu",{"multiple":[516],"mutable":[516],"readonly":[516],"validator":[16],"backend":[32],"options":[32],"created":[32],"search":[32],"valid":[32],"display":[32]},[[0,"smoothlyPickerOptionLoad","optionLoadHandler"],[0,"smoothlyPickerOptionLoaded","optionLoadedHandler"],[0,"smoothlyPickerOptionChange","optionChangeHandler"],[0,"smoothlySlotEmpty","emptyDisplayHandler"]]],[2,"smoothly-calendar",{"month":[1025],"value":[1025],"start":[1025],"end":[1025],"max":[1025],"min":[1025],"doubleInput":[516,"double-input"],"firstSelected":[32]}],[6,"smoothly-table-cell"],[6,"smoothly-table-expandable-cell",{"align":[1],"open":[1540],"allowSpotlight":[32],"spotlight":[32]},[[0,"click","onClick"],[0,"smoothlyTableLoad","handleTableLoaded"]]],[6,"smoothly-table",{"root":[1540],"align":[513],"open":[1540]},[[0,"smoothlyExpandableLoad","handleExpandableLoaded"],[0,"smoothlyExpandableChange","handleExpandableState"],[0,"smoothlySpotlightChange","handleSpotlightState"],[0,"smoothlyNestedTable","handleNestedTable"],[0,"smoothlyExpansionLoad","handleEvents"],[0,"smoothlyExpansionOpen","handleEvents"]]],[6,"smoothly-table-header",{"name":[1]}],[6,"smoothly-table-row",{"open":[1540]},[[0,"smoothlyExpansionLoad","onExpansionLoad"],[0,"smoothlyExpandableChange","onExpansionChange"],[0,"smoothlyExpansionOpen","onExpansionOpen"]]],[2,"smoothly-input-month",{"value":[1025]}],[1,"smoothly-picker-option",{"selected":[1540],"visible":[1540],"value":[1032],"search":[1040],"readonly":[32],"slotted":[32],"clickHandler":[64]}],[6,"smoothly-slot-elements",{"clone":[4],"nodes":[1040]}],[6,"smoothly-submit",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"size":[513],"shape":[513],"prevent":[4]},[[0,"click","clickHandler"]]],[6,"smoothly-input-select",{"initialPrompt":[1,"initial-prompt"],"opened":[32],"selectedElement":[32],"missing":[32],"filter":[32],"reset":[64]},[[0,"click","onClick"],[0,"itemSelected","onItemSelected"],[0,"keydown","onKeyDown"]]],[6,"smoothly-item",{"value":[8],"selected":[1540],"marked":[1540],"filter":[64]},[[0,"click","onClick"]]],[6,"smoothly-slotted-elements",{"clone":[4]}],[4,"smoothly-form",{"value":[1040],"looks":[513],"name":[1],"method":[1],"action":[1],"processing":[1540],"prevent":[4],"changed":[1540],"notice":[32],"submit":[64],"clear":[64]},[[0,"smoothlyInput","smoothlyInputHandler"],[0,"smoothlySubmit","smoothlySubmitHandler"],[0,"smoothlyInputLoad","SmoothlyInputLoadHandler"]]],[6,"smoothly-button",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"size":[513],"shape":[513],"link":[1],"download":[4]}],[2,"smoothly-spinner",{"active":[516],"size":[513]}],[2,"smoothly-notification",{"notice":[16],"closable":[4],"icon":[4],"tick":[32]},[[0,"trigger","onTrigger"]]],[6,"smoothly-trigger",{"color":[513],"fill":[513],"disabled":[516],"type":[513],"name":[1],"value":[8]},[[0,"click","onClick"]]],[6,"smoothly-input",{"name":[513],"value":[1032],"type":[513],"required":[1540],"minLength":[1026,"min-length"],"showLabel":[516,"show-label"],"maxLength":[1026,"max-length"],"autocomplete":[1028],"pattern":[1040],"placeholder":[1537],"disabled":[1028],"readonly":[1540],"currency":[513],"changed":[1540],"initialValue":[32],"clear":[64],"getFormData":[64],"setKeepFocusOnReRender":[64],"setSelectionRange":[64]},[[0,"smoothlyInputLoad","SmoothlyInputLoadHandler"]]],[2,"smoothly-icon",{"color":[513],"fill":[513],"name":[513],"size":[513],"toolTip":[1,"tool-tip"],"document":[32]}]]],["smoothly-addresses",[[2,"smoothly-addresses",{"value":[16],"editable":[16]}]]],["smoothly-color",[[6,"smoothly-color",{"color":[513]}]]],["smoothly-country",[[2,"smoothly-country",{"value":[1],"text":[1],"language":[32]}]]],["smoothly-display-date-time",[[2,"smoothly-display-date-time",{"datetime":[1]}]]],["smoothly-google-font",[[2,"smoothly-google-font",{"value":[1]}]]],["smoothly-radio-group",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-reorder",[[0,"smoothly-reorder"]]],["smoothly-trigger-sink",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["smoothly-trigger-source",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["smoothly-address-display",[[2,"smoothly-address-display",{"value":[16],"editable":[4]}]]],["smoothly-address",[[2,"smoothly-address",{"value":[16],"editable":[4]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
|
|
20
20
|
//# sourceMappingURL=smoothly.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as s,h as e}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as s,h as e}from"./p-5e387578.js";const t=".sc-smoothly-addresses-h{display:flex;justify-content:space-around}";const o=class{constructor(e){s(this,e);this.value=undefined;this.editable=undefined}render(){return[this.value.map((s=>e("smoothly-address",{value:s})))]}};o.style=t;export{o as smoothly_addresses};
|
|
2
|
+
//# sourceMappingURL=p-12182a73.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as s,h as e}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as s,h as e}from"./p-5e387578.js";const t=".sc-smoothly-address-h{display:flex;justify-content:space-evenly}";const o=class{constructor(e){s(this,e);this.value=undefined;this.editable=false}render(){return e("smoothly-address-display",{value:this.value,editable:this.editable})}};o.style=t;export{o as smoothly_address};
|
|
2
|
+
//# sourceMappingURL=p-47151a53.entry.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const t="smoothly";let e;let n;let s;let l=false;let o=false;let c=false;let i=false;let f=false;const r=(t,e="")=>{{return()=>{}}};const u=(t,e)=>{{return()=>{}}};const a="{visibility:hidden}.hydrated{visibility:inherit}";const d={};const h="http://www.w3.org/2000/svg";const p="http://www.w3.org/1999/xhtml";const y=t=>t!=null;const m=t=>{t=typeof t;return t==="object"||t==="function"};function $(t){var e,n,s;return(s=(n=(e=t.head)===null||e===void 0?void 0:e.querySelector('meta[name="csp-nonce"]'))===null||n===void 0?void 0:n.getAttribute("content"))!==null&&s!==void 0?s:undefined}const b=(t,e,...n)=>{let s=null;let l=null;let o=null;let c=false;let i=false;const f=[];const r=e=>{for(let n=0;n<e.length;n++){s=e[n];if(Array.isArray(s)){r(s)}else if(s!=null&&typeof s!=="boolean"){if(c=typeof t!=="function"&&!m(s)){s=String(s)}if(c&&i){f[f.length-1].t+=s}else{f.push(c?w(null,s):s)}i=c}}};r(n);if(e){if(e.key){l=e.key}if(e.name){o=e.name}{const t=e.className||e.class;if(t){e.class=typeof t!=="object"?t:Object.keys(t).filter((e=>t[e])).join(" ")}}}if(typeof t==="function"){return t(e===null?{}:e,f,S)}const u=w(t,null);u.l=e;if(f.length>0){u.o=f}{u.i=l}{u.u=o}return u};const w=(t,e)=>{const n={h:0,p:t,t:e,m:null,o:null};{n.l=null}{n.i=null}{n.u=null}return n};const g={};const v=t=>t&&t.p===g;const S={forEach:(t,e)=>t.map(j).forEach(e),map:(t,e)=>t.map(j).map(e).map(k)};const j=t=>({vattrs:t.l,vchildren:t.o,vkey:t.i,vname:t.u,vtag:t.p,vtext:t.t});const k=t=>{if(typeof t.vtag==="function"){const e=Object.assign({},t.vattrs);if(t.vkey){e.key=t.vkey}if(t.vname){e.name=t.vname}return b(t.vtag,e,...t.vchildren||[])}const e=w(t.vtag,t.vtext);e.l=t.vattrs;e.o=t.vchildren;e.i=t.vkey;e.u=t.vname;return e};const O=(t,e)=>{if(t!=null&&!m(t)){if(e&4){return t==="false"?false:t===""||!!t}if(e&2){return parseFloat(t)}if(e&1){return String(t)}return t}return t};const C=t=>jt(t).$;const M=(t,e,n)=>{const s=C(t);return{emit:t=>R(s,e,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:t})}};const R=(t,e,n)=>{const s=Nt.ce(e,n);t.dispatchEvent(s);return s};const x=new WeakMap;const P=(t,e,n)=>{let s=Pt.get(t);if(Wt&&n){s=s||new CSSStyleSheet;if(typeof s==="string"){s=e}else{s.replaceSync(e)}}else{s=e}Pt.set(t,s)};const T=(t,e,n,s)=>{var l;let o=L(e);const c=Pt.get(o);t=t.nodeType===11?t:Et;if(c){if(typeof c==="string"){t=t.head||t;let e=x.get(t);let n;if(!e){x.set(t,e=new Set)}if(!e.has(o)){{{n=Et.createElement("style");n.innerHTML=c}const e=(l=Nt.g)!==null&&l!==void 0?l:$(Et);if(e!=null){n.setAttribute("nonce",e)}t.insertBefore(n,t.querySelector("link"))}if(e){e.add(o)}}}else if(!t.adoptedStyleSheets.includes(c)){t.adoptedStyleSheets=[...t.adoptedStyleSheets,c]}}return o};const E=t=>{const e=t.v;const n=t.$;const s=e.h;const l=r("attachStyles",e.S);const o=T(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);if(s&10){n["s-sc"]=o;n.classList.add(o+"-h");if(s&2){n.classList.add(o+"-s")}}l()};const L=(t,e)=>"sc-"+t.S;const N=(t,e,n,s,l,o)=>{if(n!==s){let c=Ct(t,e);let i=e.toLowerCase();if(e==="class"){const e=t.classList;const l=W(n);const o=W(s);e.remove(...l.filter((t=>t&&!o.includes(t))));e.add(...o.filter((t=>t&&!l.includes(t))))}else if(e==="style"){{for(const e in n){if(!s||s[e]==null){if(e.includes("-")){t.style.removeProperty(e)}else{t.style[e]=""}}}}for(const e in s){if(!n||s[e]!==n[e]){if(e.includes("-")){t.style.setProperty(e,s[e])}else{t.style[e]=s[e]}}}}else if(e==="key");else if(e==="ref"){if(s){s(t)}}else if(!c&&e[0]==="o"&&e[1]==="n"){if(e[2]==="-"){e=e.slice(3)}else if(Ct(Tt,i)){e=i.slice(2)}else{e=i[2]+e.slice(3)}if(n){Nt.rel(t,e,n,false)}if(s){Nt.ael(t,e,s,false)}}else{const i=m(s);if((c||i&&s!==null)&&!l){try{if(!t.tagName.includes("-")){const l=s==null?"":s;if(e==="list"){c=false}else if(n==null||t[e]!=l){t[e]=l}}else{t[e]=s}}catch(t){}}if(s==null||s===false){if(s!==false||t.getAttribute(e)===""){{t.removeAttribute(e)}}}else if((!c||o&4||l)&&!i){s=s===true?"":s;{t.setAttribute(e,s)}}}}};const U=/\s/;const W=t=>!t?[]:t.split(U);const A=(t,e,n,s)=>{const l=e.m.nodeType===11&&e.m.host?e.m.host:e.m;const o=t&&t.l||d;const c=e.l||d;{for(s in o){if(!(s in c)){N(l,s,o[s],undefined,n,e.h)}}}for(s in c){N(l,s,o[s],c[s],n,e.h)}};const D=(t,o,f,r)=>{const u=o.o[f];let a=0;let d;let m;let $;if(!l){c=true;if(u.p==="slot"){if(e){r.classList.add(e+"-s")}u.h|=u.o?2:1}}if(u.t!==null){d=u.m=Et.createTextNode(u.t)}else if(u.h&1){d=u.m=Et.createTextNode("")}else{if(!i){i=u.p==="svg"}d=u.m=Et.createElementNS(i?h:p,u.h&2?"slot-fb":u.p);if(i&&u.p==="foreignObject"){i=false}{A(null,u,i)}if(y(e)&&d["s-si"]!==e){d.classList.add(d["s-si"]=e)}if(u.o){for(a=0;a<u.o.length;++a){m=D(t,u,a,d);if(m){d.appendChild(m)}}}{if(u.p==="svg"){i=false}else if(d.tagName==="foreignObject"){i=true}}}{d["s-hn"]=s;if(u.h&(2|1)){d["s-sr"]=true;d["s-cr"]=n;d["s-sn"]=u.u||"";$=t&&t.o&&t.o[f];if($&&$.p===u.p&&t.m){F(t.m,false)}}}return d};const F=(t,e)=>{Nt.h|=1;const n=t.childNodes;for(let t=n.length-1;t>=0;t--){const l=n[t];if(l["s-hn"]!==s&&l["s-ol"]){z(l).insertBefore(l,_(l));l["s-ol"].remove();l["s-ol"]=undefined;c=true}if(e){F(l,e)}}Nt.h&=~1};const H=(t,e,n,l,o,c)=>{let i=t["s-cr"]&&t["s-cr"].parentNode||t;let f;if(i.shadowRoot&&i.tagName===s){i=i.shadowRoot}for(;o<=c;++o){if(l[o]){f=D(null,n,o,t);if(f){l[o].m=f;i.insertBefore(f,_(e))}}}};const q=(t,e,n,s,l)=>{for(;e<=n;++e){if(s=t[e]){l=s.m;X(s);{o=true;if(l["s-ol"]){l["s-ol"].remove()}else{F(l,true)}}l.remove()}}};const I=(t,e,n,s)=>{let l=0;let o=0;let c=0;let i=0;let f=e.length-1;let r=e[0];let u=e[f];let a=s.length-1;let d=s[0];let h=s[a];let p;let y;while(l<=f&&o<=a){if(r==null){r=e[++l]}else if(u==null){u=e[--f]}else if(d==null){d=s[++o]}else if(h==null){h=s[--a]}else if(V(r,d)){B(r,d);r=e[++l];d=s[++o]}else if(V(u,h)){B(u,h);u=e[--f];h=s[--a]}else if(V(r,h)){if(r.p==="slot"||h.p==="slot"){F(r.m.parentNode,false)}B(r,h);t.insertBefore(r.m,u.m.nextSibling);r=e[++l];h=s[--a]}else if(V(u,d)){if(r.p==="slot"||h.p==="slot"){F(u.m.parentNode,false)}B(u,d);t.insertBefore(u.m,r.m);u=e[--f];d=s[++o]}else{c=-1;{for(i=l;i<=f;++i){if(e[i]&&e[i].i!==null&&e[i].i===d.i){c=i;break}}}if(c>=0){y=e[c];if(y.p!==d.p){p=D(e&&e[o],n,c,t)}else{B(y,d);e[c]=undefined;p=y.m}d=s[++o]}else{p=D(e&&e[o],n,o,t);d=s[++o]}if(p){{z(r.m).insertBefore(p,_(r.m))}}}}if(l>f){H(t,s[a+1]==null?null:s[a+1].m,n,s,o,a)}else if(o>a){q(e,l,f)}};const V=(t,e)=>{if(t.p===e.p){if(t.p==="slot"){return t.u===e.u}{return t.i===e.i}}return false};const _=t=>t&&t["s-ol"]||t;const z=t=>(t["s-ol"]?t["s-ol"]:t).parentNode;const B=(t,e)=>{const n=e.m=t.m;const s=t.o;const l=e.o;const o=e.p;const c=e.t;let f;if(c===null){{i=o==="svg"?true:o==="foreignObject"?false:i}{if(o==="slot");else{A(t,e,i)}}if(s!==null&&l!==null){I(n,s,e,l)}else if(l!==null){if(t.t!==null){n.textContent=""}H(n,null,e,l,0,l.length-1)}else if(s!==null){q(s,0,s.length-1)}if(i&&o==="svg"){i=false}}else if(f=n["s-cr"]){f.parentNode.textContent=c}else if(t.t!==c){n.data=c}};const G=t=>{const e=t.childNodes;let n;let s;let l;let o;let c;let i;for(s=0,l=e.length;s<l;s++){n=e[s];if(n.nodeType===1){if(n["s-sr"]){c=n["s-sn"];n.hidden=false;for(o=0;o<l;o++){i=e[o].nodeType;if(e[o]["s-hn"]!==n["s-hn"]||c!==""){if(i===1&&c===e[o].getAttribute("slot")){n.hidden=true;break}}else{if(i===1||i===3&&e[o].textContent.trim()!==""){n.hidden=true;break}}}}G(n)}}};const J=[];const K=t=>{let e;let n;let s;let l;let c;let i;let f=0;const r=t.childNodes;const u=r.length;for(;f<u;f++){e=r[f];if(e["s-sr"]&&(n=e["s-cr"])&&n.parentNode){s=n.parentNode.childNodes;l=e["s-sn"];for(i=s.length-1;i>=0;i--){n=s[i];if(!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==e["s-hn"]){if(Q(n,l)){c=J.find((t=>t.j===n));o=true;n["s-sn"]=n["s-sn"]||l;if(c){c.k=e}else{J.push({k:e,j:n})}if(n["s-sr"]){J.map((t=>{if(Q(t.j,n["s-sn"])){c=J.find((t=>t.j===n));if(c&&!t.k){t.k=c.k}}}))}}else if(!J.some((t=>t.j===n))){J.push({j:n})}}}}if(e.nodeType===1){K(e)}}};const Q=(t,e)=>{if(t.nodeType===1){if(t.getAttribute("slot")===null&&e===""){return true}if(t.getAttribute("slot")===e){return true}return false}if(t["s-sn"]===e){return true}return e===""};const X=t=>{{t.l&&t.l.ref&&t.l.ref(null);t.o&&t.o.map(X)}};const Y=(t,i)=>{const f=t.$;const r=t.v;const u=t.O||w(null,null);const a=v(i)?i:b(null,null,i);s=f.tagName;if(r.C){a.l=a.l||{};r.C.map((([t,e])=>a.l[e]=f[t]))}a.p=null;a.h|=4;t.O=a;a.m=u.m=f.shadowRoot||f;{e=f["s-sc"]}{n=f["s-cr"];l=(r.h&1)!==0;o=false}B(u,a);{Nt.h|=1;if(c){K(a.m);let t;let e;let n;let s;let l;let o;let c=0;for(;c<J.length;c++){t=J[c];e=t.j;if(!e["s-ol"]){n=Et.createTextNode("");n["s-nr"]=e;e.parentNode.insertBefore(e["s-ol"]=n,e)}}for(c=0;c<J.length;c++){t=J[c];e=t.j;if(t.k){s=t.k.parentNode;l=t.k.nextSibling;n=e["s-ol"];while(n=n.previousSibling){o=n["s-nr"];if(o&&o["s-sn"]===e["s-sn"]&&s===o.parentNode){o=o.nextSibling;if(!o||!o["s-nr"]){l=o;break}}}if(!l&&s!==e.parentNode||e.nextSibling!==l){if(e!==l){if(!e["s-hn"]&&e["s-ol"]){e["s-hn"]=e["s-ol"].parentNode.nodeName}s.insertBefore(e,l)}}}else{if(e.nodeType===1){e.hidden=true}}}}if(o){G(a.m)}Nt.h&=~1;J.length=0}};const Z=(t,e)=>{if(e&&!t.M&&e["s-p"]){e["s-p"].push(new Promise((e=>t.M=e)))}};const tt=(t,e)=>{{t.h|=16}if(t.h&4){t.h|=512;return}Z(t,t.R);const n=()=>et(t,e);return Vt(n)};const et=(t,e)=>{const n=r("scheduleUpdate",t.v.S);const s=t.P;let l;if(e){{t.h|=256;if(t.T){t.T.map((([t,e])=>ct(s,t,e)));t.T=null}}{l=ct(s,"componentWillLoad")}}n();return it(l,(()=>nt(t,s,e)))};const nt=async(t,e,n)=>{const s=t.$;const l=r("update",t.v.S);const o=s["s-rc"];if(n){E(t)}const c=r("render",t.v.S);{st(t,e)}if(o){o.map((t=>t()));s["s-rc"]=undefined}c();l();{const e=s["s-p"];const n=()=>lt(t);if(e.length===0){n()}else{Promise.all(e).then(n);t.h|=4;e.length=0}}};const st=(t,e,n)=>{try{e=e.render&&e.render();{t.h&=~16}{t.h|=2}{{{Y(t,e)}}}}catch(e){Mt(e,t.$)}return null};const lt=t=>{const e=t.v.S;const n=t.$;const s=r("postUpdate",e);const l=t.P;const o=t.R;{ct(l,"componentDidRender")}if(!(t.h&64)){t.h|=64;{ft(n)}{ct(l,"componentDidLoad")}s();{t.L(n);if(!o){ot()}}}else{s()}{t.N(n)}{if(t.M){t.M();t.M=undefined}if(t.h&512){It((()=>tt(t,false)))}t.h&=~(4|512)}};const ot=e=>{{ft(Et.documentElement)}It((()=>R(Tt,"appload",{detail:{namespace:t}})))};const ct=(t,e,n)=>{if(t&&t[e]){try{return t[e](n)}catch(t){Mt(t)}}return undefined};const it=(t,e)=>t&&t.then?t.then(e):e();const ft=t=>t.classList.add("hydrated");const rt=(t,e)=>jt(t).U.get(e);const ut=(t,e,n,s)=>{const l=jt(t);const o=l.$;const c=l.U.get(e);const i=l.h;const f=l.P;n=O(n,s.W[e][0]);const r=Number.isNaN(c)&&Number.isNaN(n);const u=n!==c&&!r;if((!(i&8)||c===undefined)&&u){l.U.set(e,n);if(f){if(s.A&&i&128){const t=s.A[e];if(t){t.map((t=>{try{f[t](n,c,e)}catch(t){Mt(t,o)}}))}}if((i&(2|16))===2){tt(l,false)}}}};const at=(t,e,n)=>{if(e.W){if(t.watchers){e.A=t.watchers}const s=Object.entries(e.W);const l=t.prototype;s.map((([t,[s]])=>{if(s&31||n&2&&s&32){Object.defineProperty(l,t,{get(){return rt(this,t)},set(n){ut(this,t,n,e)},configurable:true,enumerable:true})}else if(n&1&&s&64){Object.defineProperty(l,t,{value(...e){const n=jt(this);return n.D.then((()=>n.P[t](...e)))}})}}));if(n&1){const n=new Map;l.attributeChangedCallback=function(t,e,s){Nt.jmp((()=>{const e=n.get(t);if(this.hasOwnProperty(e)){s=this[e];delete this[e]}else if(l.hasOwnProperty(e)&&typeof this[e]==="number"&&this[e]==s){return}this[e]=s===null&&typeof this[e]==="boolean"?false:s}))};t.observedAttributes=s.filter((([t,e])=>e[0]&15)).map((([t,s])=>{const l=s[1]||t;n.set(l,t);if(s[0]&512){e.C.push([t,l])}return l}))}}return t};const dt=async(t,e,n,s,l)=>{if((e.h&32)===0){{e.h|=32;l=xt(n);if(l.then){const t=u();l=await l;t()}if(!l.isProxied){{n.A=l.watchers}at(l,n,2);l.isProxied=true}const t=r("createInstance",n.S);{e.h|=8}try{new l(e)}catch(t){Mt(t)}{e.h&=~8}{e.h|=128}t()}if(l.style){let t=l.style;const e=L(n);if(!Pt.has(e)){const s=r("registerStyles",n.S);P(e,t,!!(n.h&1));s()}}}const o=e.R;const c=()=>tt(e,true);if(o&&o["s-rc"]){o["s-rc"].push(c)}else{c()}};const ht=t=>{if((Nt.h&1)===0){const e=jt(t);const n=e.v;const s=r("connectedCallback",n.S);if(!(e.h&1)){e.h|=1;{if(n.h&(4|8)){pt(t)}}{let n=t;while(n=n.parentNode||n.host){if(n["s-p"]){Z(e,e.R=n);break}}}if(n.W){Object.entries(n.W).map((([e,[n]])=>{if(n&31&&t.hasOwnProperty(e)){const n=t[e];delete t[e];t[e]=n}}))}{dt(t,e,n)}}else{$t(t,e,n.F)}s()}};const pt=t=>{const e=t["s-cr"]=Et.createComment("");e["s-cn"]=true;t.insertBefore(e,t.firstChild)};const yt=t=>{if((Nt.h&1)===0){const e=jt(t);const n=e.P;{if(e.H){e.H.map((t=>t()));e.H=undefined}}{ct(n,"disconnectedCallback")}}};const mt=(t,e={})=>{var n;const s=r();const l=[];const o=e.exclude||[];const c=Tt.customElements;const i=Et.head;const f=i.querySelector("meta[charset]");const u=Et.createElement("style");const d=[];let h;let p=true;Object.assign(Nt,e);Nt.q=new URL(e.resourcesUrl||"./",Et.baseURI).href;t.map((t=>{t[1].map((e=>{const n={h:e[0],S:e[1],W:e[2],F:e[3]};{n.W=e[2]}{n.F=e[3]}{n.C=[]}{n.A={}}const s=n.S;const i=class extends HTMLElement{constructor(t){super(t);t=this;Ot(t,n);if(n.h&1){{{t.attachShadow({mode:"open"})}}}}connectedCallback(){if(h){clearTimeout(h);h=null}if(p){d.push(this)}else{Nt.jmp((()=>ht(this)))}}disconnectedCallback(){Nt.jmp((()=>yt(this)))}componentOnReady(){return jt(this).I}};n.V=t[0];if(!o.includes(s)&&!c.get(s)){l.push(s);c.define(s,at(i,n,1))}}))}));{u.innerHTML=l+a;u.setAttribute("data-styles","");const t=(n=Nt.g)!==null&&n!==void 0?n:$(Et);if(t!=null){u.setAttribute("nonce",t)}i.insertBefore(u,f?f.nextSibling:i.firstChild)}p=false;if(d.length){d.map((t=>t.connectedCallback()))}else{{Nt.jmp((()=>h=setTimeout(ot,30)))}}s()};const $t=(t,e,n,s)=>{if(n){n.map((([n,s,l])=>{const o=wt(t,n);const c=bt(e,l);const i=gt(n);Nt.ael(o,s,c,i);(e.H=e.H||[]).push((()=>Nt.rel(o,s,c,i)))}))}};const bt=(t,e)=>n=>{try{{if(t.h&256){t.P[e](n)}else{(t.T=t.T||[]).push([e,n])}}}catch(t){Mt(t)}};const wt=(t,e)=>{if(e&8)return Tt;return t};const gt=t=>(t&2)!==0;const vt=t=>Nt.g=t;const St=new WeakMap;const jt=t=>St.get(t);const kt=(t,e)=>St.set(e.P=t,e);const Ot=(t,e)=>{const n={h:0,$:t,v:e,U:new Map};{n.D=new Promise((t=>n.N=t))}{n.I=new Promise((t=>n.L=t));t["s-p"]=[];t["s-rc"]=[]}$t(t,n,e.F);return St.set(t,n)};const Ct=(t,e)=>e in t;const Mt=(t,e)=>(0,console.error)(t,e);const Rt=new Map;const xt=(t,e,n)=>{const s=t.S.replace(/-/g,"_");const l=t.V;const o=Rt.get(l);if(o){return o[s]}
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${l}.entry.js${""}`).then((t=>{{Rt.set(l,t)}return t[s]}),Mt)};const Pt=new Map;const Tt=typeof window!=="undefined"?window:{};const Et=Tt.document||{head:{}};const Lt=
|
|
3
|
-
//# sourceMappingURL=p-
|
|
1
|
+
const t="smoothly";let e;let n;let s;let l=false;let o=false;let c=false;let i=false;let f=false;const r=(t,e="")=>{{return()=>{}}};const u=(t,e)=>{{return()=>{}}};const a="{visibility:hidden}.hydrated{visibility:inherit}";const d={};const h="http://www.w3.org/2000/svg";const p="http://www.w3.org/1999/xhtml";const y=t=>t!=null;const m=t=>{t=typeof t;return t==="object"||t==="function"};function $(t){var e,n,s;return(s=(n=(e=t.head)===null||e===void 0?void 0:e.querySelector('meta[name="csp-nonce"]'))===null||n===void 0?void 0:n.getAttribute("content"))!==null&&s!==void 0?s:undefined}const b=(t,e,...n)=>{let s=null;let l=null;let o=null;let c=false;let i=false;const f=[];const r=e=>{for(let n=0;n<e.length;n++){s=e[n];if(Array.isArray(s)){r(s)}else if(s!=null&&typeof s!=="boolean"){if(c=typeof t!=="function"&&!m(s)){s=String(s)}if(c&&i){f[f.length-1].t+=s}else{f.push(c?w(null,s):s)}i=c}}};r(n);if(e){if(e.key){l=e.key}if(e.name){o=e.name}{const t=e.className||e.class;if(t){e.class=typeof t!=="object"?t:Object.keys(t).filter((e=>t[e])).join(" ")}}}if(typeof t==="function"){return t(e===null?{}:e,f,S)}const u=w(t,null);u.l=e;if(f.length>0){u.o=f}{u.i=l}{u.u=o}return u};const w=(t,e)=>{const n={h:0,p:t,t:e,m:null,o:null};{n.l=null}{n.i=null}{n.u=null}return n};const g={};const v=t=>t&&t.p===g;const S={forEach:(t,e)=>t.map(j).forEach(e),map:(t,e)=>t.map(j).map(e).map(k)};const j=t=>({vattrs:t.l,vchildren:t.o,vkey:t.i,vname:t.u,vtag:t.p,vtext:t.t});const k=t=>{if(typeof t.vtag==="function"){const e=Object.assign({},t.vattrs);if(t.vkey){e.key=t.vkey}if(t.vname){e.name=t.vname}return b(t.vtag,e,...t.vchildren||[])}const e=w(t.vtag,t.vtext);e.l=t.vattrs;e.o=t.vchildren;e.i=t.vkey;e.u=t.vname;return e};const O=(t,e)=>{if(t!=null&&!m(t)){if(e&4){return t==="false"?false:t===""||!!t}if(e&2){return parseFloat(t)}if(e&1){return String(t)}return t}return t};const C=t=>jt(t).$;const M=(t,e,n)=>{const s=C(t);return{emit:t=>R(s,e,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:t})}};const R=(t,e,n)=>{const s=Lt.ce(e,n);t.dispatchEvent(s);return s};const x=new WeakMap;const P=(t,e,n)=>{let s=Pt.get(t);if(Ut&&n){s=s||new CSSStyleSheet;if(typeof s==="string"){s=e}else{s.replaceSync(e)}}else{s=e}Pt.set(t,s)};const T=(t,e,n,s)=>{var l;let o=L(e);const c=Pt.get(o);t=t.nodeType===11?t:Et;if(c){if(typeof c==="string"){t=t.head||t;let e=x.get(t);let n;if(!e){x.set(t,e=new Set)}if(!e.has(o)){{{n=Et.createElement("style");n.innerHTML=c}const e=(l=Lt.g)!==null&&l!==void 0?l:$(Et);if(e!=null){n.setAttribute("nonce",e)}t.insertBefore(n,t.querySelector("link"))}if(e){e.add(o)}}}else if(!t.adoptedStyleSheets.includes(c)){t.adoptedStyleSheets=[...t.adoptedStyleSheets,c]}}return o};const E=t=>{const e=t.v;const n=t.$;const s=e.h;const l=r("attachStyles",e.S);const o=T(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);if(s&10){n["s-sc"]=o;n.classList.add(o+"-h");if(s&2){n.classList.add(o+"-s")}}l()};const L=(t,e)=>"sc-"+t.S;const N=(t,e,n,s,l,o)=>{if(n!==s){let c=Ct(t,e);let i=e.toLowerCase();if(e==="class"){const e=t.classList;const l=W(n);const o=W(s);e.remove(...l.filter((t=>t&&!o.includes(t))));e.add(...o.filter((t=>t&&!l.includes(t))))}else if(e==="style"){{for(const e in n){if(!s||s[e]==null){if(e.includes("-")){t.style.removeProperty(e)}else{t.style[e]=""}}}}for(const e in s){if(!n||s[e]!==n[e]){if(e.includes("-")){t.style.setProperty(e,s[e])}else{t.style[e]=s[e]}}}}else if(e==="key");else if(e==="ref"){if(s){s(t)}}else if(!c&&e[0]==="o"&&e[1]==="n"){if(e[2]==="-"){e=e.slice(3)}else if(Ct(Tt,i)){e=i.slice(2)}else{e=i[2]+e.slice(3)}if(n){Lt.rel(t,e,n,false)}if(s){Lt.ael(t,e,s,false)}}else{const i=m(s);if((c||i&&s!==null)&&!l){try{if(!t.tagName.includes("-")){const l=s==null?"":s;if(e==="list"){c=false}else if(n==null||t[e]!=l){t[e]=l}}else{t[e]=s}}catch(t){}}if(s==null||s===false){if(s!==false||t.getAttribute(e)===""){{t.removeAttribute(e)}}}else if((!c||o&4||l)&&!i){s=s===true?"":s;{t.setAttribute(e,s)}}}}};const U=/\s/;const W=t=>!t?[]:t.split(U);const A=(t,e,n,s)=>{const l=e.m.nodeType===11&&e.m.host?e.m.host:e.m;const o=t&&t.l||d;const c=e.l||d;{for(s in o){if(!(s in c)){N(l,s,o[s],undefined,n,e.h)}}}for(s in c){N(l,s,o[s],c[s],n,e.h)}};const D=(t,o,f,r)=>{const u=o.o[f];let a=0;let d;let m;let $;if(!l){c=true;if(u.p==="slot"){if(e){r.classList.add(e+"-s")}u.h|=u.o?2:1}}if(u.t!==null){d=u.m=Et.createTextNode(u.t)}else if(u.h&1){d=u.m=Et.createTextNode("")}else{if(!i){i=u.p==="svg"}d=u.m=Et.createElementNS(i?h:p,u.h&2?"slot-fb":u.p);if(i&&u.p==="foreignObject"){i=false}{A(null,u,i)}if(y(e)&&d["s-si"]!==e){d.classList.add(d["s-si"]=e)}if(u.o){for(a=0;a<u.o.length;++a){m=D(t,u,a,d);if(m){d.appendChild(m)}}}{if(u.p==="svg"){i=false}else if(d.tagName==="foreignObject"){i=true}}}{d["s-hn"]=s;if(u.h&(2|1)){d["s-sr"]=true;d["s-cr"]=n;d["s-sn"]=u.u||"";$=t&&t.o&&t.o[f];if($&&$.p===u.p&&t.m){F(t.m,false)}}}return d};const F=(t,e)=>{Lt.h|=1;const n=t.childNodes;for(let t=n.length-1;t>=0;t--){const l=n[t];if(l["s-hn"]!==s&&l["s-ol"]){z(l).insertBefore(l,_(l));l["s-ol"].remove();l["s-ol"]=undefined;c=true}if(e){F(l,e)}}Lt.h&=~1};const H=(t,e,n,l,o,c)=>{let i=t["s-cr"]&&t["s-cr"].parentNode||t;let f;if(i.shadowRoot&&i.tagName===s){i=i.shadowRoot}for(;o<=c;++o){if(l[o]){f=D(null,n,o,t);if(f){l[o].m=f;i.insertBefore(f,_(e))}}}};const q=(t,e,n,s,l)=>{for(;e<=n;++e){if(s=t[e]){l=s.m;X(s);{o=true;if(l["s-ol"]){l["s-ol"].remove()}else{F(l,true)}}l.remove()}}};const I=(t,e,n,s)=>{let l=0;let o=0;let c=0;let i=0;let f=e.length-1;let r=e[0];let u=e[f];let a=s.length-1;let d=s[0];let h=s[a];let p;let y;while(l<=f&&o<=a){if(r==null){r=e[++l]}else if(u==null){u=e[--f]}else if(d==null){d=s[++o]}else if(h==null){h=s[--a]}else if(V(r,d)){B(r,d);r=e[++l];d=s[++o]}else if(V(u,h)){B(u,h);u=e[--f];h=s[--a]}else if(V(r,h)){if(r.p==="slot"||h.p==="slot"){F(r.m.parentNode,false)}B(r,h);t.insertBefore(r.m,u.m.nextSibling);r=e[++l];h=s[--a]}else if(V(u,d)){if(r.p==="slot"||h.p==="slot"){F(u.m.parentNode,false)}B(u,d);t.insertBefore(u.m,r.m);u=e[--f];d=s[++o]}else{c=-1;{for(i=l;i<=f;++i){if(e[i]&&e[i].i!==null&&e[i].i===d.i){c=i;break}}}if(c>=0){y=e[c];if(y.p!==d.p){p=D(e&&e[o],n,c,t)}else{B(y,d);e[c]=undefined;p=y.m}d=s[++o]}else{p=D(e&&e[o],n,o,t);d=s[++o]}if(p){{z(r.m).insertBefore(p,_(r.m))}}}}if(l>f){H(t,s[a+1]==null?null:s[a+1].m,n,s,o,a)}else if(o>a){q(e,l,f)}};const V=(t,e)=>{if(t.p===e.p){if(t.p==="slot"){return t.u===e.u}{return t.i===e.i}}return false};const _=t=>t&&t["s-ol"]||t;const z=t=>(t["s-ol"]?t["s-ol"]:t).parentNode;const B=(t,e)=>{const n=e.m=t.m;const s=t.o;const l=e.o;const o=e.p;const c=e.t;let f;if(c===null){{i=o==="svg"?true:o==="foreignObject"?false:i}{if(o==="slot");else{A(t,e,i)}}if(s!==null&&l!==null){I(n,s,e,l)}else if(l!==null){if(t.t!==null){n.textContent=""}H(n,null,e,l,0,l.length-1)}else if(s!==null){q(s,0,s.length-1)}if(i&&o==="svg"){i=false}}else if(f=n["s-cr"]){f.parentNode.textContent=c}else if(t.t!==c){n.data=c}};const G=t=>{const e=t.childNodes;let n;let s;let l;let o;let c;let i;for(s=0,l=e.length;s<l;s++){n=e[s];if(n.nodeType===1){if(n["s-sr"]){c=n["s-sn"];n.hidden=false;for(o=0;o<l;o++){i=e[o].nodeType;if(e[o]["s-hn"]!==n["s-hn"]||c!==""){if(i===1&&c===e[o].getAttribute("slot")){n.hidden=true;break}}else{if(i===1||i===3&&e[o].textContent.trim()!==""){n.hidden=true;break}}}}G(n)}}};const J=[];const K=t=>{let e;let n;let s;let l;let c;let i;let f=0;const r=t.childNodes;const u=r.length;for(;f<u;f++){e=r[f];if(e["s-sr"]&&(n=e["s-cr"])&&n.parentNode){s=n.parentNode.childNodes;l=e["s-sn"];for(i=s.length-1;i>=0;i--){n=s[i];if(!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==e["s-hn"]){if(Q(n,l)){c=J.find((t=>t.j===n));o=true;n["s-sn"]=n["s-sn"]||l;if(c){c.k=e}else{J.push({k:e,j:n})}if(n["s-sr"]){J.map((t=>{if(Q(t.j,n["s-sn"])){c=J.find((t=>t.j===n));if(c&&!t.k){t.k=c.k}}}))}}else if(!J.some((t=>t.j===n))){J.push({j:n})}}}}if(e.nodeType===1){K(e)}}};const Q=(t,e)=>{if(t.nodeType===1){if(t.getAttribute("slot")===null&&e===""){return true}if(t.getAttribute("slot")===e){return true}return false}if(t["s-sn"]===e){return true}return e===""};const X=t=>{{t.l&&t.l.ref&&t.l.ref(null);t.o&&t.o.map(X)}};const Y=(t,i)=>{const f=t.$;const r=t.v;const u=t.O||w(null,null);const a=v(i)?i:b(null,null,i);s=f.tagName;if(r.C){a.l=a.l||{};r.C.map((([t,e])=>a.l[e]=f[t]))}a.p=null;a.h|=4;t.O=a;a.m=u.m=f.shadowRoot||f;{e=f["s-sc"]}{n=f["s-cr"];l=(r.h&1)!==0;o=false}B(u,a);{Lt.h|=1;if(c){K(a.m);let t;let e;let n;let s;let l;let o;let c=0;for(;c<J.length;c++){t=J[c];e=t.j;if(!e["s-ol"]){n=Et.createTextNode("");n["s-nr"]=e;e.parentNode.insertBefore(e["s-ol"]=n,e)}}for(c=0;c<J.length;c++){t=J[c];e=t.j;if(t.k){s=t.k.parentNode;l=t.k.nextSibling;n=e["s-ol"];while(n=n.previousSibling){o=n["s-nr"];if(o&&o["s-sn"]===e["s-sn"]&&s===o.parentNode){o=o.nextSibling;if(!o||!o["s-nr"]){l=o;break}}}if(!l&&s!==e.parentNode||e.nextSibling!==l){if(e!==l){if(!e["s-hn"]&&e["s-ol"]){e["s-hn"]=e["s-ol"].parentNode.nodeName}s.insertBefore(e,l)}}}else{if(e.nodeType===1){e.hidden=true}}}}if(o){G(a.m)}Lt.h&=~1;J.length=0}};const Z=(t,e)=>{if(e&&!t.M&&e["s-p"]){e["s-p"].push(new Promise((e=>t.M=e)))}};const tt=(t,e)=>{{t.h|=16}if(t.h&4){t.h|=512;return}Z(t,t.R);const n=()=>et(t,e);return It(n)};const et=(t,e)=>{const n=r("scheduleUpdate",t.v.S);const s=t.P;let l;if(e){{t.h|=256;if(t.T){t.T.map((([t,e])=>ct(s,t,e)));t.T=null}}{l=ct(s,"componentWillLoad")}}n();return it(l,(()=>nt(t,s,e)))};const nt=async(t,e,n)=>{const s=t.$;const l=r("update",t.v.S);const o=s["s-rc"];if(n){E(t)}const c=r("render",t.v.S);{st(t,e)}if(o){o.map((t=>t()));s["s-rc"]=undefined}c();l();{const e=s["s-p"];const n=()=>lt(t);if(e.length===0){n()}else{Promise.all(e).then(n);t.h|=4;e.length=0}}};const st=(t,e,n)=>{try{e=e.render&&e.render();{t.h&=~16}{t.h|=2}{{{Y(t,e)}}}}catch(e){Mt(e,t.$)}return null};const lt=t=>{const e=t.v.S;const n=t.$;const s=r("postUpdate",e);const l=t.P;const o=t.R;{ct(l,"componentDidRender")}if(!(t.h&64)){t.h|=64;{ft(n)}{ct(l,"componentDidLoad")}s();{t.L(n);if(!o){ot()}}}else{s()}{t.N(n)}{if(t.M){t.M();t.M=undefined}if(t.h&512){qt((()=>tt(t,false)))}t.h&=~(4|512)}};const ot=e=>{{ft(Et.documentElement)}qt((()=>R(Tt,"appload",{detail:{namespace:t}})))};const ct=(t,e,n)=>{if(t&&t[e]){try{return t[e](n)}catch(t){Mt(t)}}return undefined};const it=(t,e)=>t&&t.then?t.then(e):e();const ft=t=>t.classList.add("hydrated");const rt=(t,e)=>jt(t).U.get(e);const ut=(t,e,n,s)=>{const l=jt(t);const o=l.$;const c=l.U.get(e);const i=l.h;const f=l.P;n=O(n,s.W[e][0]);const r=Number.isNaN(c)&&Number.isNaN(n);const u=n!==c&&!r;if((!(i&8)||c===undefined)&&u){l.U.set(e,n);if(f){if(s.A&&i&128){const t=s.A[e];if(t){t.map((t=>{try{f[t](n,c,e)}catch(t){Mt(t,o)}}))}}if((i&(2|16))===2){tt(l,false)}}}};const at=(t,e,n)=>{if(e.W){if(t.watchers){e.A=t.watchers}const s=Object.entries(e.W);const l=t.prototype;s.map((([t,[s]])=>{if(s&31||n&2&&s&32){Object.defineProperty(l,t,{get(){return rt(this,t)},set(n){ut(this,t,n,e)},configurable:true,enumerable:true})}else if(n&1&&s&64){Object.defineProperty(l,t,{value(...e){const n=jt(this);return n.D.then((()=>n.P[t](...e)))}})}}));if(n&1){const n=new Map;l.attributeChangedCallback=function(t,e,s){Lt.jmp((()=>{const e=n.get(t);if(this.hasOwnProperty(e)){s=this[e];delete this[e]}else if(l.hasOwnProperty(e)&&typeof this[e]==="number"&&this[e]==s){return}this[e]=s===null&&typeof this[e]==="boolean"?false:s}))};t.observedAttributes=s.filter((([t,e])=>e[0]&15)).map((([t,s])=>{const l=s[1]||t;n.set(l,t);if(s[0]&512){e.C.push([t,l])}return l}))}}return t};const dt=async(t,e,n,s,l)=>{if((e.h&32)===0){{e.h|=32;l=xt(n);if(l.then){const t=u();l=await l;t()}if(!l.isProxied){{n.A=l.watchers}at(l,n,2);l.isProxied=true}const t=r("createInstance",n.S);{e.h|=8}try{new l(e)}catch(t){Mt(t)}{e.h&=~8}{e.h|=128}t()}if(l.style){let t=l.style;const e=L(n);if(!Pt.has(e)){const s=r("registerStyles",n.S);P(e,t,!!(n.h&1));s()}}}const o=e.R;const c=()=>tt(e,true);if(o&&o["s-rc"]){o["s-rc"].push(c)}else{c()}};const ht=t=>{if((Lt.h&1)===0){const e=jt(t);const n=e.v;const s=r("connectedCallback",n.S);if(!(e.h&1)){e.h|=1;{if(n.h&(4|8)){pt(t)}}{let n=t;while(n=n.parentNode||n.host){if(n["s-p"]){Z(e,e.R=n);break}}}if(n.W){Object.entries(n.W).map((([e,[n]])=>{if(n&31&&t.hasOwnProperty(e)){const n=t[e];delete t[e];t[e]=n}}))}{dt(t,e,n)}}else{$t(t,e,n.F)}s()}};const pt=t=>{const e=t["s-cr"]=Et.createComment("");e["s-cn"]=true;t.insertBefore(e,t.firstChild)};const yt=t=>{if((Lt.h&1)===0){const e=jt(t);const n=e.P;{if(e.H){e.H.map((t=>t()));e.H=undefined}}{ct(n,"disconnectedCallback")}}};const mt=(t,e={})=>{var n;const s=r();const l=[];const o=e.exclude||[];const c=Tt.customElements;const i=Et.head;const f=i.querySelector("meta[charset]");const u=Et.createElement("style");const d=[];let h;let p=true;Object.assign(Lt,e);Lt.q=new URL(e.resourcesUrl||"./",Et.baseURI).href;t.map((t=>{t[1].map((e=>{const n={h:e[0],S:e[1],W:e[2],F:e[3]};{n.W=e[2]}{n.F=e[3]}{n.C=[]}{n.A={}}const s=n.S;const i=class extends HTMLElement{constructor(t){super(t);t=this;Ot(t,n);if(n.h&1){{{t.attachShadow({mode:"open"})}}}}connectedCallback(){if(h){clearTimeout(h);h=null}if(p){d.push(this)}else{Lt.jmp((()=>ht(this)))}}disconnectedCallback(){Lt.jmp((()=>yt(this)))}componentOnReady(){return jt(this).I}};n.V=t[0];if(!o.includes(s)&&!c.get(s)){l.push(s);c.define(s,at(i,n,1))}}))}));{u.innerHTML=l+a;u.setAttribute("data-styles","");const t=(n=Lt.g)!==null&&n!==void 0?n:$(Et);if(t!=null){u.setAttribute("nonce",t)}i.insertBefore(u,f?f.nextSibling:i.firstChild)}p=false;if(d.length){d.map((t=>t.connectedCallback()))}else{{Lt.jmp((()=>h=setTimeout(ot,30)))}}s()};const $t=(t,e,n,s)=>{if(n){n.map((([n,s,l])=>{const o=wt(t,n);const c=bt(e,l);const i=gt(n);Lt.ael(o,s,c,i);(e.H=e.H||[]).push((()=>Lt.rel(o,s,c,i)))}))}};const bt=(t,e)=>n=>{try{{if(t.h&256){t.P[e](n)}else{(t.T=t.T||[]).push([e,n])}}}catch(t){Mt(t)}};const wt=(t,e)=>{if(e&8)return Tt;return t};const gt=t=>(t&2)!==0;const vt=t=>Lt.g=t;const St=new WeakMap;const jt=t=>St.get(t);const kt=(t,e)=>St.set(e.P=t,e);const Ot=(t,e)=>{const n={h:0,$:t,v:e,U:new Map};{n.D=new Promise((t=>n.N=t))}{n.I=new Promise((t=>n.L=t));t["s-p"]=[];t["s-rc"]=[]}$t(t,n,e.F);return St.set(t,n)};const Ct=(t,e)=>e in t;const Mt=(t,e)=>(0,console.error)(t,e);const Rt=new Map;const xt=(t,e,n)=>{const s=t.S.replace(/-/g,"_");const l=t.V;const o=Rt.get(l);if(o){return o[s]}
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${l}.entry.js${""}`).then((t=>{{Rt.set(l,t)}return t[s]}),Mt)};const Pt=new Map;const Tt=typeof window!=="undefined"?window:{};const Et=Tt.document||{head:{}};const Lt={h:0,q:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,s)=>t.addEventListener(e,n,s),rel:(t,e,n,s)=>t.removeEventListener(e,n,s),ce:(t,e)=>new CustomEvent(t,e)};const Nt=t=>Promise.resolve(t);const Ut=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(t){}return false})();const Wt=[];const At=[];const Dt=(t,e)=>n=>{t.push(n);if(!f){f=true;if(e&&Lt.h&4){qt(Ht)}else{Lt.raf(Ht)}}};const Ft=t=>{for(let e=0;e<t.length;e++){try{t[e](performance.now())}catch(t){Mt(t)}}t.length=0};const Ht=()=>{Ft(Wt);{Ft(At);if(f=Wt.length>0){Lt.raf(Ht)}}};const qt=t=>Nt().then(t);const It=Dt(At,true);export{g as H,mt as b,M as c,C as g,b as h,Nt as p,kt as r,vt as s};
|
|
3
|
+
//# sourceMappingURL=p-5e387578.js.map
|