@pod-os/contacts 0.3.0 → 0.4.0-rc.20fe2f1.0
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/{chunk.5JY5FUCG-BJJbNIiG.js → chunk.5JY5FUCG-BDpED7an.js} +2 -2
- package/dist/cjs/{chunk.HVTXQL7M-C6x_EQ24.js → chunk.HVTXQL7M-CkQwB4ew.js} +4 -4
- package/dist/cjs/{chunk.URTPIBTY-BiNv2Ckb.js → chunk.URTPIBTY-De5L-27M.js} +3 -3
- package/dist/cjs/{chunk.XQ2OKYYA-CDJtWcvs.js → chunk.XQ2OKYYA-CZfHjZJv.js} +4 -4
- package/dist/cjs/{chunk.YHLNUJ7P-CoQhYOM2.js → chunk.YHLNUJ7P-C7S3ShkT.js} +1 -1
- package/dist/cjs/chunk.ZGGPD2XJ-DGjeHZ7b.js +5 -0
- package/dist/cjs/{class-map-CyEFRZYn.js → class-map-D_80IxYF.js} +1 -1
- package/dist/cjs/contacts.cjs.js +2 -2
- package/dist/cjs/{if-defined-TQmAS6tz.js → if-defined-BNj5GZso.js} +1 -1
- package/dist/cjs/{index-DdRXU5II.js → index-BiY-p204.js} +62 -20
- package/dist/cjs/{index-CpATWk39.js → index-D8Y89icW.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pos-add-literal-value_3.cjs.entry.js +6 -6
- package/dist/cjs/pos-add-new-thing_7.cjs.entry.js +9 -9
- package/dist/cjs/pos-app-browser.cjs.entry.js +2 -2
- package/dist/cjs/pos-app-dashboard_6.cjs.entry.js +3 -3
- package/dist/cjs/pos-app-document-viewer.cjs.entry.js +1 -1
- package/dist/cjs/pos-app-generic.cjs.entry.js +1 -1
- package/dist/cjs/pos-app-image-viewer.cjs.entry.js +1 -1
- package/dist/cjs/pos-app-ldp-container.cjs.entry.js +1 -1
- package/dist/cjs/pos-app-rdf-document.cjs.entry.js +1 -1
- package/dist/cjs/pos-app_24.cjs.entry.js +9 -9
- package/dist/cjs/pos-attachments.cjs.entry.js +1 -1
- package/dist/cjs/pos-container-contents.cjs.entry.js +1 -1
- package/dist/cjs/pos-container-item_3.cjs.entry.js +6 -6
- package/dist/cjs/pos-description_2.cjs.entry.js +1 -1
- package/dist/cjs/pos-document.cjs.entry.js +6 -6
- package/dist/cjs/pos-list.cjs.entry.js +1 -1
- package/dist/cjs/pos-make-findable_2.cjs.entry.js +7 -7
- package/dist/cjs/pos-markdown-document.cjs.entry.js +413 -123
- package/dist/cjs/pos-new-thing-form.cjs.entry.js +1 -1
- package/dist/cjs/pos-predicate.cjs.entry.js +6 -6
- package/dist/cjs/pos-relations_2.cjs.entry.js +1 -1
- package/dist/cjs/pos-select-term.cjs.entry.js +1 -1
- package/dist/cjs/pos-subjects.cjs.entry.js +1 -1
- package/dist/cjs/pos-tool-attachments.cjs.entry.js +1 -1
- package/dist/cjs/pos-tool-select.cjs.entry.js +3 -3
- package/dist/cjs/pos-value.cjs.entry.js +1 -1
- package/dist/cjs/{session-kBhmup9r.js → session-CW2xZDbl.js} +1 -1
- package/dist/cjs/{settings-CpwCCkhx.js → settings-D2bZj29K.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/components/pos-markdown-document2.js +1 -1
- package/dist/contacts/contacts.esm.js +1 -1
- package/dist/contacts/{p-78715d17.entry.js → p-11dd66c9.entry.js} +1 -1
- package/dist/contacts/{p-6d4ec7e5.entry.js → p-1943a383.entry.js} +1 -1
- package/dist/contacts/{p-46f8861e.entry.js → p-3c4fada1.entry.js} +1 -1
- package/dist/contacts/{p-ce6b4a9a.entry.js → p-3c6684c3.entry.js} +1 -1
- package/dist/contacts/{p-c4a1c42a.entry.js → p-4c02d7b7.entry.js} +1 -1
- package/dist/contacts/p-4da8f636.entry.js +1 -0
- package/dist/contacts/{p-84fdbc1a.entry.js → p-58ce4289.entry.js} +1 -1
- package/dist/contacts/{p-C1XsyD29.js → p-5RplWyqs.js} +1 -1
- package/dist/contacts/{p-649e7365.entry.js → p-5ae55c52.entry.js} +1 -1
- package/dist/contacts/{p-40b2d792.entry.js → p-5df07840.entry.js} +1 -1
- package/dist/contacts/{p-92fcdd59.entry.js → p-63e52cba.entry.js} +1 -1
- package/dist/contacts/{p-76382e6a.entry.js → p-6f9152d8.entry.js} +1 -1
- package/dist/contacts/p-7a60ece3.entry.js +1 -0
- package/dist/contacts/{p-a9d03996.entry.js → p-7aded942.entry.js} +1 -1
- package/dist/contacts/{p-7a01c820.entry.js → p-7cf756ed.entry.js} +1 -1
- package/dist/contacts/{p-c89722f1.entry.js → p-908587ff.entry.js} +1 -1
- package/dist/contacts/{p-a629ae72.entry.js → p-9f34648a.entry.js} +1 -1
- package/dist/contacts/{p-B0_xZCeV.js → p-B3jnBMMO.js} +3 -3
- package/dist/contacts/{p-C8LPXtIR.js → p-BvR_sP9G.js} +1 -1
- package/dist/contacts/{p-Bug_w-vi.js → p-C36YDIjT.js} +1 -1
- package/dist/contacts/{p-BXdS2klL.js → p-CzUN2DJY.js} +4 -4
- package/dist/contacts/p-D8UlKjrD.js +1 -0
- package/dist/contacts/{p-BXcFVJku.js → p-Dq6SRSqM.js} +2 -2
- package/dist/contacts/{p-DScSUBy-.js → p-Dunlf3Z7.js} +1 -1
- package/dist/contacts/{p-BkeypvMo.js → p-VfX5yLuQ.js} +7 -7
- package/dist/contacts/{p-SrdKoY3I.js → p-_eHMN8WS.js} +1 -1
- package/dist/contacts/{p-7f565d49.entry.js → p-a0da8fbf.entry.js} +1 -1
- package/dist/contacts/{p-d510fa6c.entry.js → p-a52ee32d.entry.js} +5 -5
- package/dist/contacts/{p-7d796ba8.entry.js → p-bbb51116.entry.js} +8 -8
- package/dist/contacts/{p-4ef3891c.entry.js → p-be0458af.entry.js} +1 -1
- package/dist/contacts/{p-ecf8719a.entry.js → p-be2bfaf2.entry.js} +1 -1
- package/dist/contacts/{p-D_nUMgR-.js → p-bf6nCqHq.js} +1 -1
- package/dist/contacts/{p-ae43e046.entry.js → p-c9d40209.entry.js} +1 -1
- package/dist/contacts/{p-f8517ff2.entry.js → p-d762c42d.entry.js} +1 -1
- package/dist/contacts/{p-26248da8.entry.js → p-dc6b0fb2.entry.js} +1 -1
- package/dist/contacts/{p-68gi0rt1.js → p-dsdWvqdi.js} +3 -3
- package/dist/contacts/{p-c306d8ca.entry.js → p-f403a62e.entry.js} +1 -1
- package/dist/contacts/p-feaa607e.entry.js +1 -0
- package/dist/esm/{chunk.5JY5FUCG-B58l5Mdn.js → chunk.5JY5FUCG-CPET0g0y.js} +2 -2
- package/dist/esm/{chunk.HVTXQL7M-DXJDg6h_.js → chunk.HVTXQL7M-Bo9_AX3Z.js} +4 -4
- package/dist/esm/{chunk.URTPIBTY-C1YI_wtI.js → chunk.URTPIBTY-Cec1N58N.js} +3 -3
- package/dist/esm/{chunk.XQ2OKYYA-B0surOUs.js → chunk.XQ2OKYYA-CdgFL-s-.js} +4 -4
- package/dist/esm/{chunk.YHLNUJ7P-B10Qbx9i.js → chunk.YHLNUJ7P-nIbF6vRN.js} +1 -1
- package/dist/esm/chunk.ZGGPD2XJ-BsTqrynL.js +3 -0
- package/dist/esm/{class-map-DcKoKhP0.js → class-map-BnsoOzsP.js} +1 -1
- package/dist/esm/contacts.js +3 -3
- package/dist/esm/{if-defined-TtuUo8or.js → if-defined-CmT83CRs.js} +1 -1
- package/dist/esm/{index-D4tjvI9D.js → index-CkwiZvFT.js} +1 -1
- package/dist/esm/{index-DScSUBy-.js → index-Dunlf3Z7.js} +61 -19
- package/dist/esm/loader.js +2 -2
- package/dist/esm/pos-add-literal-value_3.entry.js +6 -6
- package/dist/esm/pos-add-new-thing_7.entry.js +9 -9
- package/dist/esm/pos-app-browser.entry.js +2 -2
- package/dist/esm/pos-app-dashboard_6.entry.js +3 -3
- package/dist/esm/pos-app-document-viewer.entry.js +1 -1
- package/dist/esm/pos-app-generic.entry.js +1 -1
- package/dist/esm/pos-app-image-viewer.entry.js +1 -1
- package/dist/esm/pos-app-ldp-container.entry.js +1 -1
- package/dist/esm/pos-app-rdf-document.entry.js +1 -1
- package/dist/esm/pos-app_24.entry.js +9 -9
- package/dist/esm/pos-attachments.entry.js +1 -1
- package/dist/esm/pos-container-contents.entry.js +1 -1
- package/dist/esm/pos-container-item_3.entry.js +6 -6
- package/dist/esm/pos-description_2.entry.js +1 -1
- package/dist/esm/pos-document.entry.js +6 -6
- package/dist/esm/pos-list.entry.js +1 -1
- package/dist/esm/pos-make-findable_2.entry.js +7 -7
- package/dist/esm/pos-markdown-document.entry.js +413 -123
- package/dist/esm/pos-new-thing-form.entry.js +1 -1
- package/dist/esm/pos-predicate.entry.js +6 -6
- package/dist/esm/pos-relations_2.entry.js +1 -1
- package/dist/esm/pos-select-term.entry.js +1 -1
- package/dist/esm/pos-subjects.entry.js +1 -1
- package/dist/esm/pos-tool-attachments.entry.js +1 -1
- package/dist/esm/pos-tool-select.entry.js +3 -3
- package/dist/esm/pos-value.entry.js +1 -1
- package/dist/esm/{session-CtUoUtdF.js → session-VqDg66f5.js} +1 -1
- package/dist/esm/{settings-Cnw1mSJw.js → settings-CbiYsH1V.js} +1 -1
- package/package.json +3 -3
- package/dist/cjs/chunk.ZGGPD2XJ-C--tZiyf.js +0 -5
- package/dist/contacts/p-5e11ce90.entry.js +0 -1
- package/dist/contacts/p-8bc26fd9.entry.js +0 -1
- package/dist/contacts/p-Bk6kpzHk.js +0 -1
- package/dist/contacts/p-a3082900.entry.js +0 -1
- package/dist/esm/chunk.ZGGPD2XJ-CxH68zCl.js +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as a,e as d}from"./p-
|
|
1
|
+
import{r as e,h as a,e as d}from"./p-Dunlf3Z7.js";const r=class{constructor(a){e(this,a)}render(){return a(d,{key:"c77f9fc24e9ed8a47c2d60b570e8a231609f90ba"},a("section",{key:"d40607f64e45868c92bd9f226e3df300f14ab11a"},a("pos-subjects",{key:"83fc348454ea2659c93f69cf250050b4add05ba1"})),a("section",{key:"b7958ea13a5911c2c5709ca8b181346a677bfe20"},a("article",{key:"f5f2d24ed058471b893590b29e13a8e69d7f9a44","aria-labelledby":"doc-title"},a("header",{key:"71db64d04790d2ef8f11a8cefdb9b78348339d56"},a("h1",{key:"d857c251a9a507596d0025709c9f232764e83e66",id:"doc-title"},a("pos-label",{key:"db8554528e6690e331b2d4db3ee2cfaa87f7e27e"})),a("pos-type-badges",{key:"e4b49d6357a86028969e7f61d57755f1017d4948"})),a("pos-literals",{key:"55f2d23287107c18fc2ebb62eac05e0f84175e6f"}))))}};r.style=":host{--gap-size:var(--size-1);display:flex;flex-direction:column;gap:var(--gap-size);margin:var(--gap-size)}section{display:flex;flex-direction:column;gap:var(--gap-size)}@media (min-width: 640px){:host{--gap-size:var(--size-4);flex-direction:row;flex-wrap:wrap;section{&:first-of-type{flex:1}}section:not(:first-of-type){flex:0 0 30%}}}article{padding:var(--size-2);display:flex;flex-direction:column;gap:var(--size-2);outline:var(--pos-border-solid);border-radius:var(--radius-sm);box-shadow:var(--shadow-md);background-color:var(--pos-card-background);header{display:flex;flex-direction:column;gap:var(--size-2);h1{margin:0}}}";export{r as pos_app_rdf_document}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,c as t,h as r}from"./p-
|
|
1
|
+
import{r as o,c as t,h as r}from"./p-Dunlf3Z7.js";import"./p-D8UlKjrD.js";import"./p-BvR_sP9G.js";const e=class{constructor(r){o(this,r),this.toolSelected=t(this,"pod-os:tool-selected",7),this.tools=[]}render(){return this.tools.length>1?r("div",{role:"tablist","aria-label":"Tools","aria-multiselectable":"false"},this.tools.map((o=>{var t;return r("button",{role:"tab","aria-selected":(null===(t=this.selected)||void 0===t?void 0:t.element)===o.element,onClick:()=>this.toolSelected.emit(o)},r("sl-icon",{name:o.icon}),r("span",{class:"text"},o.label))}))):null}};e.style=":host { --button-size: var(--size-16); display: block; position: sticky; align-self: flex-start; top: 0; overflow: auto; min-width: var(--button-size); z-index: var(--layer-1); } [role='tablist'] { display: flex; flex-direction: column; justify-content: center; border-right: var(--size-px) solid var(--pos-border-color); button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; font-size: var(--size-6); position: relative; overflow: hidden; outline: none; border: none; width: var(--button-size); min-width: var(--button-size); height: var(--button-size); min-height: var(--button-size); color: var(--pos-normal-text-color); background-color: var(--pos-background-color); &::after { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; border-radius: 100%; background: color-mix(in srgb, var(--pos-primary-color), transparent 50%); transform: translate(-50%, -50%); opacity: 1; } &:active::after, &:focus::after { width: calc(var(--button-size) * 1.5); height: calc(var(--button-size) * 1.5); opacity: 0; transition: width 0.5s ease-out, height 0.5s ease-out, opacity 1s ease-out; } &:focus-visible { border: var(--size-px) solid var(--pos-primary-color); } @media (min-width: 640px) { &[aria-selected] { border-right: var(--size-1) solid var(--pos-primary-color); } } .text { font-size: var(--size-3); white-space: nowrap; text-overflow: ellipsis; width: 100%; overflow: hidden; } } } @media (max-width: 640px) { :host { position: fixed; top: unset; bottom: 0; width: 100dvw; } [role='tablist'] { flex-direction: row; background-color: var(--pos-background-color); border-top: var(--size-px) solid var(--pos-border-color); button { &[aria-selected] { border-top: var(--size-1) solid var(--pos-primary-color); } } } } ";export{e as pos_tool_select}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,c as r,h as a}from"./p-
|
|
1
|
+
import{r as o,c as r,h as a}from"./p-Dunlf3Z7.js";import{s as l}from"./p-BW_CkW1K.js";const s=class{constructor(a){o(this,a),this.subscribeResource=r(this,"pod-os:resource",7),this.data=[],this.receiveResource=o=>{this.data=o.relations()}}componentWillLoad(){l(this)}render(){const o=this.data.map((o=>a("div",{class:"predicate-values"},a("dt",null,a("pos-predicate",{uri:o.predicate,label:o.label})),a("div",{class:"values"},o.uris.map((o=>a("dd",null,a("pos-rich-link",{uri:o}))))))));return this.data.length>0?a("dl",null,o):null}};s.style=":host{--background-base-color:color-mix(in srgb, var(--pos-background-color), var(--color-grey-800) 10%);--background-color-even:hsl(from var(--background-base-color) h s calc(l + 7));--background-color-odd:hsl(from var(--background-base-color) h s calc(l + 10));--border-color:var(--background-base-color)}dd{padding:0;margin:0}dl{display:flex;flex-direction:column;gap:var(--size-1);padding:0;margin:0}dt{margin-bottom:var(--size-1)}.predicate-values:nth-child(odd){background-color:var(--background-color-odd)}.predicate-values:nth-child(even){background-color:var(--background-color-even)}.predicate-values{display:flex;flex-direction:column;border:var(--size-px) solid var(--border-color);padding:var(--size-2);gap:var(--size-1);.values{display:flex;flex-direction:column;gap:var(--size-3)}}pos-rich-link{--background-color:inherit}";const c=class{constructor(a){o(this,a),this.subscribeResource=r(this,"pod-os:resource",7),this.data=[],this.receiveResource=o=>{this.data=o.reverseRelations()}}componentWillLoad(){l(this)}render(){const o=this.data.map((o=>a("div",{class:"predicate-values"},a("dt",null,a("pos-predicate",{uri:o.predicate,label:`is ${o.label} of`})),a("div",{class:"values"},o.uris.map((o=>a("dd",null,a("pos-rich-link",{uri:o}))))))));return this.data.length>0?a("dl",null,o):null}};c.style=":host{--background-base-color:color-mix(in srgb, var(--pos-background-color), var(--color-grey-800) 10%);--background-color-even:hsl(from var(--background-base-color) h s calc(l + 7));--background-color-odd:hsl(from var(--background-base-color) h s calc(l + 10));--border-color:var(--background-base-color)}dd{padding:0;margin:0}dl{display:flex;flex-direction:column;gap:var(--size-1);padding:0;margin:0}dt{margin-bottom:var(--size-1)}.predicate-values:nth-child(odd){background-color:var(--background-color-odd)}.predicate-values:nth-child(even){background-color:var(--background-color-even)}.predicate-values{display:flex;flex-direction:column;border:var(--size-px) solid var(--border-color);padding:var(--size-2);gap:var(--size-1);.values{display:flex;flex-direction:column;gap:var(--size-3)}}pos-rich-link{--background-color:inherit}";export{s as pos_relations,c as pos_reverse_relations}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as s,e as i}from"./p-
|
|
1
|
+
import{r as t,c as e,h as s,e as i}from"./p-Dunlf3Z7.js";import{L as n}from"./p-B0L5m2PZ.js";import{s as o}from"./p-BW_CkW1K.js";const r=class{constructor(s){t(this,s),this.subscribeResource=e(this,"pod-os:resource",7),this.contents=[],this.loading=!0,this.createNewItem=null,this.receiveResource=t=>{this.container=t.assume(n),this.loading=!1,this.contents=this.container.contains().sort(((t,e)=>t.name.localeCompare(e.name)))}}onCreateNewFile(){this.createNewItem="file"}onCreateNewFolder(){this.createNewItem="folder"}componentWillLoad(){o(this)}handleKeyDown(t){"Escape"===t.key&&(this.createNewItem=null)}render(){if(this.loading)return null;const t=this.contents.map((t=>s("li",{key:t.uri},s("pos-resource",{lazy:!0,uri:t.uri},s("pos-container-item",null,t.name)))));return null!==this.createNewItem&&t.unshift(s("li",{key:"new-item"},s("pos-create-new-container-item",{type:this.createNewItem,container:this.container}))),s(i,null,s("pos-container-toolbar",{"onPod-os:create-new-file":()=>this.onCreateNewFile(),"onPod-os:create-new-folder":()=>this.onCreateNewFolder()}),t.length>0?s("ul",{"aria-label":"Container contents"},t):s("p",null,"The container is empty"))}};r.style="ul{list-style:none;padding:0;margin:0}li{padding:0;margin:0}";export{r as pos_container_contents}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as t,c as i,_ as s,n as o,w as e,a,x as h}from"./p-
|
|
1
|
+
import{i as t,c as i,_ as s,n as o,w as e,a,x as h}from"./p-BvR_sP9G.js";import{S as l,e as r,s as p,p as n,a as d,g as c,b as u,w as m}from"./p-CzUN2DJY.js";import{L as f}from"./p-BnGEOH37.js";import{e as w}from"./p-bf6nCqHq.js";var y=t`
|
|
2
2
|
:host {
|
|
3
3
|
--max-width: 20rem;
|
|
4
4
|
--hide-delay: 0ms;
|
|
@@ -50,7 +50,7 @@ import{i as t,c as i,_ as s,n as o,w as e,a,x as h}from"./p-C8LPXtIR.js";import{
|
|
|
50
50
|
user-select: none;
|
|
51
51
|
-webkit-user-select: none;
|
|
52
52
|
}
|
|
53
|
-
`,
|
|
53
|
+
`,g=class extends a{constructor(){super(),this.localize=new f(this),this.content="",this.placement="top",this.disabled=!1,this.distance=8,this.open=!1,this.skidding=0,this.trigger="hover focus",this.hoist=!1,this.handleBlur=()=>{this.hasTrigger("focus")&&this.hide()},this.handleClick=()=>{this.hasTrigger("click")&&(this.open?this.hide():this.show())},this.handleFocus=()=>{this.hasTrigger("focus")&&this.show()},this.handleDocumentKeyDown=t=>{"Escape"===t.key&&(t.stopPropagation(),this.hide())},this.handleMouseOver=()=>{if(this.hasTrigger("hover")){const t=n(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout((()=>this.show()),t)}},this.handleMouseOut=()=>{if(this.hasTrigger("hover")){const t=n(getComputedStyle(this).getPropertyValue("--hide-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout((()=>this.hide()),t)}},this.addEventListener("blur",this.handleBlur,!0),this.addEventListener("focus",this.handleFocus,!0),this.addEventListener("click",this.handleClick),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut)}disconnectedCallback(){var t;super.disconnectedCallback(),null==(t=this.closeWatcher)||t.destroy(),document.removeEventListener("keydown",this.handleDocumentKeyDown)}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}hasTrigger(t){return this.trigger.split(" ").includes(t)}async handleOpenChange(){var t,i;if(this.open){if(this.disabled)return;this.emit("sl-show"),"CloseWatcher"in window?(null==(t=this.closeWatcher)||t.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>{this.hide()}):document.addEventListener("keydown",this.handleDocumentKeyDown),await d(this.body),this.body.hidden=!1,this.popup.active=!0;const{keyframes:i,options:s}=c(this,"tooltip.show",{dir:this.localize.dir()});await u(this.popup.popup,i,s),this.popup.reposition(),this.emit("sl-after-show")}else{this.emit("sl-hide"),null==(i=this.closeWatcher)||i.destroy(),document.removeEventListener("keydown",this.handleDocumentKeyDown),await d(this.body);const{keyframes:t,options:s}=c(this,"tooltip.hide",{dir:this.localize.dir()});await u(this.popup.popup,t,s),this.popup.active=!1,this.body.hidden=!0,this.emit("sl-after-hide")}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,m(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,m(this,"sl-after-hide")}render(){return h`
|
|
54
54
|
<sl-popup
|
|
55
55
|
part="base"
|
|
56
56
|
exportparts="
|
|
@@ -75,4 +75,4 @@ import{i as t,c as i,_ as s,n as o,w as e,a,x as h}from"./p-C8LPXtIR.js";import{
|
|
|
75
75
|
<slot name="content">${this.content}</slot>
|
|
76
76
|
</div>
|
|
77
77
|
</sl-popup>
|
|
78
|
-
`}};
|
|
78
|
+
`}};g.styles=[i,y],g.dependencies={"sl-popup":l},s([r("slot:not([name])")],g.prototype,"defaultSlot",2),s([r(".tooltip__body")],g.prototype,"body",2),s([r("sl-popup")],g.prototype,"popup",2),s([o()],g.prototype,"content",2),s([o()],g.prototype,"placement",2),s([o({type:Boolean,reflect:!0})],g.prototype,"disabled",2),s([o({type:Number})],g.prototype,"distance",2),s([o({type:Boolean,reflect:!0})],g.prototype,"open",2),s([o({type:Number})],g.prototype,"skidding",2),s([o()],g.prototype,"trigger",2),s([o({type:Boolean})],g.prototype,"hoist",2),s([e("open",{waitUntilFirstUpdate:!0})],g.prototype,"handleOpenChange",1),s([e(["content","distance","hoist","placement","skidding"])],g.prototype,"handleOptionsChange",1),s([e("disabled")],g.prototype,"handleDisabledChange",1),p("tooltip.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:150,easing:"ease"}}),p("tooltip.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:150,easing:"ease"}}),g.define("sl-tooltip");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{k as t}from"./p-
|
|
1
|
+
import{k as t}from"./p-Dunlf3Z7.js";var s=Object.defineProperty,i=Object.defineProperties,e=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,l=(t,s)=>(s=Symbol[t])?s:Symbol.for("Symbol."+t),a=t=>{throw TypeError(t)},c=(t,i,e)=>i in t?s(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,d=(t,s)=>{for(var i in s||(s={}))o.call(s,i)&&c(t,i,s[i]);if(r)for(var i of r(s))h.call(s,i)&&c(t,i,s[i]);return t},u=(t,s)=>i(t,n(s)),v=(t,i,n,r)=>{for(var o,h=r>1?void 0:r?e(i,n):i,l=t.length-1;l>=0;l--)(o=t[l])&&(h=(r?o(i,n,h):o(h))||h);return r&&h&&s(i,n,h),h},f=(t,s,i)=>s.has(t)||a("Cannot "+i),p=function(t,s){this[0]=t,this[1]=s},g=t=>{var s,i=t[l("asyncIterator")],e=!1,n={};return null==i?(i=t[l("iterator")](),s=t=>n[t]=s=>i[t](s)):(i=i.call(t),s=t=>n[t]=s=>{if(e){if(e=!1,"throw"===t)throw s;return s}return e=!0,{done:!1,value:new p(new Promise((e=>{var n=i[t](s);n instanceof Object||a("Object expected"),e(n)})),1)}}),n[l("iterator")]=()=>n,s("next"),"throw"in i?s("throw"):n.throw=t=>{throw t},"return"in i&&s("return"),n};
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2019 Google LLC
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as e}from"./p-
|
|
1
|
+
import{S as e}from"./p-Dunlf3Z7.js";const t=(()=>{let e;return(...t)=>{e&&clearTimeout(e),e=setTimeout((()=>{e=0,(e=>{for(let t of e.keys()){const n=e.get(t).filter((e=>{const t=e.deref();return t&&(!("isConnected"in(n=t))||n.isConnected);var n}));e.set(t,n)}})(...t)}),2e3)}})(),n=e.forceUpdate,o=e.getRenderingRef,s=(e,t)=>{const n=e.indexOf(t);n>=0&&(e[n]=e[e.length-1],e.length--)},r=(e,r)=>{const c=((e,t=(e,t)=>e!==t)=>{const n=()=>{return("function"==typeof(t=e)?t():t)??{};var t},o=n();let r=new Map(Object.entries(o));const c="undefined"!=typeof Proxy,u=c?null:{},f={dispose:[],get:[],set:[],reset:[]},i=new Map,a=()=>{r=new Map(Object.entries(n())),c||w(),f.reset.forEach((e=>e()))},p=e=>(f.get.forEach((t=>t(e))),r.get(e)),l=(e,n)=>{const o=r.get(e);t(n,o,e)&&(r.set(e,n),c||b(e),f.set.forEach((t=>t(e,n,o))))},d=c?new Proxy(o,{get:(e,t)=>p(t),ownKeys:()=>Array.from(r.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,t)=>r.has(t),set:(e,t,n)=>(l(t,n),!0)}):(w(),u),g=(e,t)=>(f[e].push(t),()=>{s(f[e],t)});function b(e){!c&&u&&(Object.prototype.hasOwnProperty.call(u,e)||Object.defineProperty(u,e,{configurable:!0,enumerable:!0,get:()=>p(e),set(t){l(e,t)}}))}function w(){if(c||!u)return;const e=new Set(r.keys());for(const t of Object.keys(u))e.has(t)||delete u[t];for(const t of e)b(t)}return{state:d,get:p,set:l,on:g,onChange:(e,t)=>{const o=(n,o)=>{n===e&&t(o)},s=()=>{const o=n();t(o[e])},r=g("set",o),c=g("reset",s);return i.set(t,{setHandler:o,resetHandler:s,propName:e}),()=>{r(),c(),i.delete(t)}},use:(...e)=>{const t=e.reduce(((e,t)=>(t.set&&e.push(g("set",t.set)),t.get&&e.push(g("get",t.get)),t.reset&&e.push(g("reset",t.reset)),t.dispose&&e.push(g("dispose",t.dispose)),e)),[]);return()=>t.forEach((e=>e()))},dispose:()=>{f.dispose.forEach((e=>e())),a()},reset:a,forceUpdate:e=>{const t=r.get(e);f.set.forEach((n=>n(e,t,t)))},removeListener:(e,t)=>{const n=i.get(t);n&&n.propName===e&&(s(f.set,n.setHandler),s(f.reset,n.resetHandler),i.delete(t))}}})(e,r);return c.use((()=>{if("function"!=typeof o||"function"!=typeof n)return{};const e=n,s=o,r=new Map;return{dispose:()=>r.clear(),get:e=>{const t=s();t&&((e,t,n)=>{let o=e.get(t);o||(o=[],e.set(t,o)),o.some((e=>e.deref()===n))||o.push(new WeakRef(n))})(r,e,t)},set:n=>{const o=r.get(n);if(o){const t=o.filter((t=>{const n=t.deref();return!!n&&e(n)}));r.set(n,t)}t(r)},reset:()=>{r.forEach((t=>{t.forEach((t=>{const n=t.deref();n&&e(n)}))})),t(r)}}})()),c},c=r({isLoggedIn:!1,webId:"",profile:null});export{r as c,c as s}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as t,d as e,i as n,c as i,_ as o,n as r,a,x as s}from"./p-
|
|
1
|
+
import{b as t,d as e,i as n,c as i,_ as o,n as r,a,x as s}from"./p-BvR_sP9G.js";import{L as l}from"./p-BnGEOH37.js";import{e as c}from"./p-bf6nCqHq.js";
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
@@ -9,7 +9,7 @@ import{b as t,d as e,i as n,c as i,_ as o,n as r,a,x as s}from"./p-C8LPXtIR.js";
|
|
|
9
9
|
* Copyright 2017 Google LLC
|
|
10
10
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
11
|
*/
|
|
12
|
-
function u(t){return(e,n)=>((t,e,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,n),n))(e,n,{get(){return this.renderRoot?.querySelector(t)??null}})}var f=new Map,h=new WeakMap;function p(t,e){return"rtl"===e.toLowerCase()?{keyframes:t.rtlKeyframes||t.keyframes,options:t.options}:t}function d(t,e){f.set(t,function(t){return null!=t?t:{keyframes:[],options:{duration:0}}}(e))}function m(t,e,n){const i=h.get(t);if(null==i?void 0:i[e])return p(i[e],n.dir);const o=f.get(e);return o?p(o,n.dir):{keyframes:[],options:{duration:0}}}function
|
|
12
|
+
function u(t){return(e,n)=>((t,e,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,n),n))(e,n,{get(){return this.renderRoot?.querySelector(t)??null}})}var f=new Map,h=new WeakMap;function p(t,e){return"rtl"===e.toLowerCase()?{keyframes:t.rtlKeyframes||t.keyframes,options:t.options}:t}function d(t,e){f.set(t,function(t){return null!=t?t:{keyframes:[],options:{duration:0}}}(e))}function m(t,e,n){const i=h.get(t);if(null==i?void 0:i[e])return p(i[e],n.dir);const o=f.get(e);return o?p(o,n.dir):{keyframes:[],options:{duration:0}}}function b(t,e){return new Promise((n=>{t.addEventListener(e,(function i(o){o.target===t&&(t.removeEventListener(e,i),n())}))}))}function g(n,i,o){return new Promise((r=>{if((null==o?void 0:o.duration)===1/0)throw new Error("Promise-based animations must be finite.");const a=n.animate(i,t(e({},o),{duration:window.matchMedia("(prefers-reduced-motion: reduce)").matches?0:o.duration}));a.addEventListener("cancel",r,{once:!0}),a.addEventListener("finish",r,{once:!0})}))}function y(t){return(t=t.toString().toLowerCase()).indexOf("ms")>-1?parseFloat(t):t.indexOf("s")>-1?1e3*parseFloat(t):parseFloat(t)}function v(t){return Promise.all(t.getAnimations().map((t=>new Promise((e=>{t.cancel(),requestAnimationFrame(e)})))))}var w=n`
|
|
13
13
|
:host {
|
|
14
14
|
--arrow-color: var(--sl-color-neutral-1000);
|
|
15
15
|
--arrow-size: 6px;
|
|
@@ -67,7 +67,7 @@ function u(t){return(e,n)=>((t,e,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.
|
|
|
67
67
|
var(--hover-bridge-bottom-left-x, 0) var(--hover-bridge-bottom-left-y, 0)
|
|
68
68
|
);
|
|
69
69
|
}
|
|
70
|
-
`;const x=Math.min,z=Math.max,A=Math.round,S=Math.floor,$=t=>({x:t,y:t}),k={left:"right",right:"left",bottom:"top",top:"bottom"},P={start:"end",end:"start"};function F(t,e,n){return z(t,x(e,n))}function O(t,e){return"function"==typeof t?t(e):t}function R(t){return t.split("-")[0]}function B(t){return t.split("-")[1]}function E(t){return"x"===t?"y":"x"}function j(t){return"y"===t?"height":"width"}const C=new Set(["top","bottom"]);function T(t){return C.has(R(t))?"y":"x"}function D(t){return E(T(t))}function M(t){return t.replace(/start|end/g,(t=>P[t]))}const L=["left","right"],N=["right","left"],_=["top","bottom"],H=["bottom","top"];function q(t){return t.replace(/left|right|bottom|top/g,(t=>k[t]))}function I(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function W(t){const{x:e,y:n,width:i,height:o}=t;return{width:i,height:o,top:n,left:e,right:e+i,bottom:n+o,x:e,y:n}}function X(t,e,n){let{reference:i,floating:o}=t;const r=T(e),a=D(e),s=j(a),l=R(e),c="y"===r,u=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,h=i[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:i.y-o.height};break;case"bottom":p={x:u,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:f};break;case"left":p={x:i.x-o.width,y:f};break;default:p={x:i.x,y:i.y}}switch(B(e)){case"start":p[a]-=h*(n&&c?-1:1);break;case"end":p[a]+=h*(n&&c?-1:1)}return p}async function Y(t,e){var n;void 0===e&&(e={});const{x:i,y:o,platform:r,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:h=!1,padding:p=0}=O(e,t),d=I(p),m=s[h?"floating"===f?"reference":"floating":f],g=W(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(m)))||n?m:m.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),b="floating"===f?{x:i,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==r.getOffsetParent?void 0:r.getOffsetParent(s.floating)),v=await(null==r.isElement?void 0:r.isElement(y))&&await(null==r.getScale?void 0:r.getScale(y))||{x:1,y:1},w=W(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:y,strategy:l}):b);return{top:(g.top-w.top+d.top)/v.y,bottom:(w.bottom-g.bottom+d.bottom)/v.y,left:(g.left-w.left+d.left)/v.x,right:(w.right-g.right+d.right)/v.x}}const G=new Set(["left","top"]);function U(){return"undefined"!=typeof window}function V(t){return Q(t)?(t.nodeName||"").toLowerCase():"#document"}function J(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function K(t){var e;return null==(e=(Q(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Q(t){return!!U()&&(t instanceof Node||t instanceof J(t).Node)}function Z(t){return!!U()&&(t instanceof Element||t instanceof J(t).Element)}function tt(t){return!!U()&&(t instanceof HTMLElement||t instanceof J(t).HTMLElement)}function et(t){return!(!U()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof J(t).ShadowRoot)}const nt=new Set(["inline","contents"]);function it(t){const{overflow:e,overflowX:n,overflowY:i,display:o}=mt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!nt.has(o)}const ot=new Set(["table","td","th"]);function rt(t){return ot.has(V(t))}const at=[":popover-open",":modal"];function st(t){return at.some((e=>{try{return t.matches(e)}catch(t){return!1}}))}const lt=["transform","translate","scale","rotate","perspective"],ct=["transform","translate","scale","rotate","perspective","filter"],ut=["paint","layout","strict","content"];function ft(t){const e=ht(),n=Z(t)?mt(t):t;return lt.some((t=>!!n[t]&&"none"!==n[t]))||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||ct.some((t=>(n.willChange||"").includes(t)))||ut.some((t=>(n.contain||"").includes(t)))}function ht(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const pt=new Set(["html","body","#document"]);function dt(t){return pt.has(V(t))}function mt(t){return J(t).getComputedStyle(t)}function gt(t){return Z(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function bt(t){if("html"===V(t))return t;const e=t.assignedSlot||t.parentNode||et(t)&&t.host||K(t);return et(e)?e.host:e}function yt(t){const e=bt(t);return dt(e)?t.ownerDocument?t.ownerDocument.body:t.body:tt(e)&&it(e)?e:yt(e)}function vt(t,e,n){var i;void 0===e&&(e=[]),void 0===n&&(n=!0);const o=yt(t),r=o===(null==(i=t.ownerDocument)?void 0:i.body),a=J(o);if(r){const t=wt(a);return e.concat(a,a.visualViewport||[],it(o)?o:[],t&&n?vt(t):[])}return e.concat(o,vt(o,[],n))}function wt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function xt(t){const e=mt(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const o=tt(t),r=o?t.offsetWidth:n,a=o?t.offsetHeight:i,s=A(n)!==r||A(i)!==a;return s&&(n=r,i=a),{width:n,height:i,$:s}}function zt(t){return Z(t)?t:t.contextElement}function At(t){const e=zt(t);if(!tt(e))return $(1);const n=e.getBoundingClientRect(),{width:i,height:o,$:r}=xt(e);let a=(r?A(n.width):n.width)/i,s=(r?A(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const St=$(0);function $t(t){const e=J(t);return ht()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:St}function kt(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=!1);const o=t.getBoundingClientRect(),r=zt(t);let a=$(1);e&&(i?Z(i)&&(a=At(i)):a=At(t));const s=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==J(t))&&e}(r,n,i)?$t(r):$(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,f=o.height/a.y;if(r){const t=J(r),e=i&&Z(i)?J(i):i;let n=t,o=wt(n);for(;o&&i&&e!==n;){const t=At(o),e=o.getBoundingClientRect(),i=mt(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,a=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,u*=t.x,f*=t.y,l+=r,c+=a,n=J(o),o=wt(n)}}return W({width:u,height:f,x:l,y:c})}function Pt(t,e){const n=gt(t).scrollLeft;return e?e.left+n:kt(K(t)).left+n}function Ft(t,e,n){void 0===n&&(n=!1);const i=t.getBoundingClientRect();return{x:i.left+e.scrollLeft-(n?0:Pt(t,i)),y:i.top+e.scrollTop}}const Ot=new Set(["absolute","fixed"]);function Rt(t,e,n){let i;if("viewport"===e)i=function(t,e){const n=J(t),i=K(t),o=n.visualViewport;let r=i.clientWidth,a=i.clientHeight,s=0,l=0;if(o){r=o.width,a=o.height;const t=ht();(!t||t&&"fixed"===e)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:r,height:a,x:s,y:l}}(t,n);else if("document"===e)i=function(t){const e=K(t),n=gt(t),i=t.ownerDocument.body,o=z(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),r=z(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-n.scrollLeft+Pt(t);const s=-n.scrollTop;return"rtl"===mt(i).direction&&(a+=z(e.clientWidth,i.clientWidth)-o),{width:o,height:r,x:a,y:s}}(K(t));else if(Z(e))i=function(t,e){const n=kt(t,!0,"fixed"===e),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=tt(t)?At(t):$(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:o*r.x,y:i*r.y}}(e,n);else{const n=$t(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return W(i)}function Bt(t,e){const n=bt(t);return!(n===e||!Z(n)||dt(n))&&("fixed"===mt(n).position||Bt(n,e))}function Et(t,e,n){const i=tt(e),o=K(e),r="fixed"===n,a=kt(t,!0,r,e);let s={scrollLeft:0,scrollTop:0};const l=$(0);function c(){l.x=Pt(o)}if(i||!i&&!r)if(("body"!==V(e)||it(o))&&(s=gt(e)),i){const t=kt(e,!0,r,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else o&&c();r&&!i&&o&&c();const u=!o||i||r?$(0):Ft(o,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}function jt(t){return"static"===mt(t).position}function Ct(t,e){if(!tt(t)||"fixed"===mt(t).position)return null;if(e)return e(t);let n=t.offsetParent;return K(t)===n&&(n=n.ownerDocument.body),n}function Tt(t,e){const n=J(t);if(st(t))return n;if(!tt(t)){let e=bt(t);for(;e&&!dt(e);){if(Z(e)&&!jt(e))return e;e=bt(e)}return n}let i=Ct(t,e);for(;i&&rt(i)&&jt(i);)i=Ct(i,e);return i&&dt(i)&&jt(i)&&!ft(i)?n:i||function(t){let e=bt(t);for(;tt(e)&&!dt(e);){if(ft(e))return e;if(st(e))return null;e=bt(e)}return null}(t)||n}const Dt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t;const r="fixed"===o,a=K(i),s=!!e&&st(e.floating);if(i===a||s&&r)return n;let l={scrollLeft:0,scrollTop:0},c=$(1);const u=$(0),f=tt(i);if((f||!f&&!r)&&(("body"!==V(i)||it(a))&&(l=gt(i)),tt(i))){const t=kt(i);c=At(i),u.x=t.x+i.clientLeft,u.y=t.y+i.clientTop}const h=!a||f||r?$(0):Ft(a,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}},getDocumentElement:K,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t;const r=[..."clippingAncestors"===n?st(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let i=vt(t,[],!1).filter((t=>Z(t)&&"body"!==V(t))),o=null;const r="fixed"===mt(t).position;let a=r?bt(t):t;for(;Z(a)&&!dt(a);){const e=mt(a),n=ft(a);n||"fixed"!==e.position||(o=null),(r?!n&&!o:!n&&"static"===e.position&&o&&Ot.has(o.position)||it(a)&&!n&&Bt(t,a))?i=i.filter((t=>t!==a)):o=e,a=bt(a)}return e.set(t,i),i}(e,this._c):[].concat(n),i],a=r.reduce(((t,n)=>{const i=Rt(e,n,o);return t.top=z(i.top,t.top),t.right=x(i.right,t.right),t.bottom=x(i.bottom,t.bottom),t.left=z(i.left,t.left),t}),Rt(e,r[0],o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Tt,getElementRects:async function(t){const e=this.getOffsetParent||Tt,n=this.getDimensions,i=await n(t.floating);return{reference:Et(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=xt(t);return{width:e,height:n}},getScale:At,isElement:Z,isRTL:function(t){return"rtl"===mt(t).direction}};function Mt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}const Lt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,i;const{placement:o,middlewareData:r,rects:a,initialPlacement:s,platform:l,elements:c}=e,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:m=!0,...g}=O(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const b=R(o),y=T(s),v=R(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=h||(v||!m?[q(s)]:function(t){const e=q(t);return[M(t),e,M(e)]}(s)),z="none"!==d;!h&&z&&x.push(...function(t,e,n,i){const o=B(t);let r=function(t,e,n){switch(t){case"top":case"bottom":return n?e?N:L:e?L:N;case"left":case"right":return e?_:H;default:return[]}}(R(t),"start"===n,i);return o&&(r=r.map((t=>t+"-"+o)),e&&(r=r.concat(r.map(M)))),r}(s,m,d,w));const A=[s,...x],S=await Y(e,g),$=[];let k=(null==(i=r.flip)?void 0:i.overflows)||[];if(u&&$.push(S[b]),f){const t=function(t,e,n){void 0===n&&(n=!1);const i=B(t),o=D(t),r=j(o);let a="x"===o?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[r]>e.floating[r]&&(a=q(a)),[a,q(a)]}(o,a,w);$.push(S[t[0]],S[t[1]])}if(k=[...k,{placement:o,overflows:$}],!$.every((t=>t<=0))){var P,F;const t=((null==(P=r.flip)?void 0:P.index)||0)+1,e=A[t];if(e&&("alignment"!==f||y===T(e)||k.every((t=>t.overflows[0]>0&&T(t.placement)===y))))return{data:{index:t,overflows:k},reset:{placement:e}};let n=null==(F=k.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:F.placement;if(!n)switch(p){case"bestFit":{var E;const t=null==(E=k.filter((t=>{if(z){const e=T(t.placement);return e===y||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:E[0];t&&(n=t);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},Nt=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var n,i;const{placement:o,rects:r,platform:a,elements:s}=e,{apply:l=()=>{},...c}=O(t,e),u=await Y(e,c),f=R(o),h=B(o),p="y"===T(o),{width:d,height:m}=r.floating;let g,b;"top"===f||"bottom"===f?(g=f,b=h===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(b=f,g="end"===h?"top":"bottom");const y=m-u.top-u.bottom,v=d-u.left-u.right;let w=x(m-u[g],y),A=x(d-u[b],v);if(null!=(n=e.middlewareData.shift)&&n.enabled.x&&(A=v),null!=(i=e.middlewareData.shift)&&i.enabled.y&&(w=y),!e.middlewareData.shift&&!h){const t=z(u.left,0),e=z(u.right,0),n=z(u.top,0),i=z(u.bottom,0);p?A=d-2*(0!==t||0!==e?t+e:z(u.left,u.right)):w=m-2*(0!==n||0!==i?n+i:z(u.top,u.bottom))}await l({...e,availableWidth:A,availableHeight:w});const S=await a.getDimensions(s.floating);return d!==S.width||m!==S.height?{reset:{rects:!0}}:{}}}};function _t(t){return function(t){for(let e=t;e;e=Ht(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=Ht(t);e;e=Ht(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||ft(t))return e;if("BODY"===e.tagName)return e}}return null}(t)}function Ht(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var qt=class extends a{constructor(){super(...arguments),this.localize=new l(this),this.active=!1,this.placement="top",this.strategy="absolute",this.distance=0,this.skidding=0,this.arrow=!1,this.arrowPlacement="anchor",this.arrowPadding=10,this.flip=!1,this.flipFallbackPlacements="",this.flipFallbackStrategy="best-fit",this.flipPadding=0,this.shift=!1,this.shiftPadding=0,this.autoSizePadding=0,this.hoverBridge=!1,this.updateHoverBridge=()=>{if(this.hoverBridge&&this.anchorEl){const t=this.anchorEl.getBoundingClientRect(),e=this.popup.getBoundingClientRect();let n=0,i=0,o=0,r=0,a=0,s=0,l=0,c=0;this.placement.includes("top")||this.placement.includes("bottom")?t.top<e.top?(n=t.left,i=t.bottom,o=t.right,r=t.bottom,a=e.left,s=e.top,l=e.right,c=e.top):(n=e.left,i=e.bottom,o=e.right,r=e.bottom,a=t.left,s=t.top,l=t.right,c=t.top):t.left<e.left?(n=t.right,i=t.top,o=e.left,r=e.top,a=t.right,s=t.bottom,l=e.left,c=e.bottom):(n=e.right,i=e.top,o=t.left,r=t.top,a=e.right,s=e.bottom,l=t.left,c=t.bottom),this.style.setProperty("--hover-bridge-top-left-x",`${n}px`),this.style.setProperty("--hover-bridge-top-left-y",`${i}px`),this.style.setProperty("--hover-bridge-top-right-x",`${o}px`),this.style.setProperty("--hover-bridge-top-right-y",`${r}px`),this.style.setProperty("--hover-bridge-bottom-left-x",`${a}px`),this.style.setProperty("--hover-bridge-bottom-left-y",`${s}px`),this.style.setProperty("--hover-bridge-bottom-right-x",`${l}px`),this.style.setProperty("--hover-bridge-bottom-right-y",`${c}px`)}}}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start()}disconnectedCallback(){super.disconnectedCallback(),this.stop()}async updated(t){super.updated(t),t.has("active")&&(this.active?this.start():this.stop()),t.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){if(await this.stop(),this.anchor&&"string"==typeof this.anchor){const t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else this.anchorEl=this.anchor instanceof Element||function(t){return null!==t&&"object"==typeof t&&"getBoundingClientRect"in t&&(!("contextElement"in t)||t.contextElement instanceof Element)}(this.anchor)?this.anchor:this.querySelector('[slot="anchor"]');this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),this.anchorEl&&this.active&&this.start()}start(){this.anchorEl&&this.active&&(this.cleanup=function(t,e,n,i){void 0===i&&(i={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=i,c=zt(t),u=o||r?[...c?vt(c):[],...vt(e)]:[];u.forEach((t=>{o&&t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n)}));const f=c&&s?function(t,e){let n,i=null;const o=K(t);function r(){var t;clearTimeout(n),null==(t=i)||t.disconnect(),i=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),r();const c=t.getBoundingClientRect(),{left:u,top:f,width:h,height:p}=c;if(s||e(),!h||!p)return;const d={rootMargin:-S(f)+"px "+-S(o.clientWidth-(u+h))+"px "+-S(o.clientHeight-(f+p))+"px "+-S(u)+"px",threshold:z(0,x(1,l))||1};let m=!0;function g(e){const i=e[0].intersectionRatio;if(i!==l){if(!m)return a();i?a(!1,i):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==i||Mt(c,t.getBoundingClientRect())||a(),m=!1}try{i=new IntersectionObserver(g,{...d,root:o.ownerDocument})}catch(t){i=new IntersectionObserver(g,d)}i.observe(t)}(!0),r}(c,n):null;let h,p=-1,d=null;a&&(d=new ResizeObserver((t=>{let[i]=t;i&&i.target===c&&d&&(d.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var t;null==(t=d)||t.observe(e)}))),n()})),c&&!l&&d.observe(c),d.observe(e));let m=l?kt(t):null;return l&&function e(){const i=kt(t);m&&!Mt(m,i)&&n(),m=i,h=requestAnimationFrame(e)}(),n(),()=>{var t;u.forEach((t=>{o&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n)})),null==f||f(),null==(t=d)||t.disconnect(),d=null,l&&cancelAnimationFrame(h)}}(this.anchorEl,this.popup,(()=>{this.reposition()})))}async stop(){return new Promise((t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame((()=>t()))):t()}))}reposition(){if(!this.active||!this.anchorEl)return;const n=[(i={mainAxis:this.distance,crossAxis:this.skidding},void 0===i&&(i=0),{name:"offset",options:i,async fn(t){var e,n;const{x:o,y:r,placement:a,middlewareData:s}=t,l=await async function(t,e){const{placement:n,platform:i,elements:o}=t,r=await(null==i.isRTL?void 0:i.isRTL(o.floating)),a=R(n),s=B(n),l="y"===T(n),c=G.has(a)?-1:1,u=r&&l?-1:1,f=O(e,t);let{mainAxis:h,crossAxis:p,alignmentAxis:d}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&"number"==typeof d&&(p="end"===s?-1*d:d),l?{x:p*u,y:h*c}:{x:h*c,y:p*u}}(t,i);return a===(null==(e=s.offset)?void 0:e.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:o+l.x,y:r+l.y,data:{...l,placement:a}}}})];var i;this.sync?n.push(Nt({apply:({rects:t})=>{const e="height"===this.sync||"both"===this.sync;this.popup.style.width="width"===this.sync||"both"===this.sync?`${t.reference.width}px`:"",this.popup.style.height=e?`${t.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&n.push(Lt({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:"best-fit"===this.flipFallbackStrategy?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&n.push(function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:o}=e,{mainAxis:r=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...l}=O(t,e),c={x:n,y:i},u=await Y(e,l),f=T(R(o)),h=E(f);let p=c[h],d=c[f];r&&(p=F(p+u["y"===h?"top":"left"],p,p-u["y"===h?"bottom":"right"])),a&&(d=F(d+u["y"===f?"top":"left"],d,d-u["y"===f?"bottom":"right"]));const m=s.fn({...e,[h]:p,[f]:d});return{...m,data:{x:m.x-n,y:m.y-i,enabled:{[h]:r,[f]:a}}}}}}({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?n.push(Nt({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:t,availableHeight:e})=>{"vertical"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-height",`${e}px`):this.style.removeProperty("--auto-size-available-height"),"horizontal"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-width",`${t}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&n.push((t=>({name:"arrow",options:t,async fn(e){const{x:n,y:i,placement:o,rects:r,platform:a,elements:s,middlewareData:l}=e,{element:c,padding:u=0}=O(t,e)||{};if(null==c)return{};const f=I(u),h={x:n,y:i},p=D(o),d=j(p),m=await a.getDimensions(c),g="y"===p,b=g?"top":"left",y=g?"bottom":"right",v=g?"clientHeight":"clientWidth",w=r.reference[d]+r.reference[p]-h[p]-r.floating[d],z=h[p]-r.reference[p],A=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let S=A?A[v]:0;S&&await(null==a.isElement?void 0:a.isElement(A))||(S=s.floating[v]||r.floating[d]);const $=w/2-z/2,k=S/2-m[d]/2-1,P=x(f[b],k),R=x(f[y],k),E=P,C=S-m[d]-R,T=S/2-m[d]/2+$,M=F(E,T,C),L=!l.arrow&&null!=B(o)&&T!==M&&r.reference[d]/2-(T<E?P:R)-m[d]/2<0,N=L?T<E?T-E:T-C:0;return{[p]:h[p]+N,data:{[p]:M,centerOffset:T-M-N,...L&&{alignmentOffset:N}},reset:L}}}))({element:this.arrowEl,padding:this.arrowPadding}));const o="absolute"===this.strategy?t=>Dt.getOffsetParent(t,_t):Dt.getOffsetParent;((t,e,n)=>{const i=new Map,o={platform:Dt,...n},r={...o.platform,_c:i};return(async(t,e,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:a}=n,s=r.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:o}),{x:u,y:f}=X(c,i,l),h=i,p={},d=0;for(let n=0;n<s.length;n++){const{name:r,fn:m}=s[n],{x:g,y:b,data:y,reset:v}=await m({x:u,y:f,initialPlacement:i,placement:h,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:t,floating:e}});u=null!=g?g:u,f=null!=b?b:f,p={...p,[r]:{...p[r],...y}},v&&d<=50&&(d++,"object"==typeof v&&(v.placement&&(h=v.placement),v.rects&&(c=!0===v.rects?await a.getElementRects({reference:t,floating:e,strategy:o}):v.rects),({x:u,y:f}=X(c,h,l))),n=-1)}return{x:u,y:f,placement:h,strategy:o,middlewareData:p}})(t,e,{...o,platform:r})})(this.anchorEl,this.popup,{placement:this.placement,middleware:n,strategy:this.strategy,platform:t(e({},Dt),{getOffsetParent:o})}).then((({x:t,y:e,middlewareData:n,placement:i})=>{const o="rtl"===this.localize.dir(),r={top:"bottom",right:"left",bottom:"top",left:"right"}[i.split("-")[0]];if(this.setAttribute("data-current-placement",i),Object.assign(this.popup.style,{left:`${t}px`,top:`${e}px`}),this.arrow){const t=n.arrow.x,e=n.arrow.y;let i="",a="",s="",l="";if("start"===this.arrowPlacement){const n="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";i="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",a=o?n:"",l=o?"":n}else if("end"===this.arrowPlacement){const n="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";a=o?"":n,l=o?n:"",s="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else"center"===this.arrowPlacement?(l="number"==typeof t?"calc(50% - var(--arrow-size-diagonal))":"",i="number"==typeof e?"calc(50% - var(--arrow-size-diagonal))":""):(l="number"==typeof t?`${t}px`:"",i="number"==typeof e?`${e}px`:"");Object.assign(this.arrowEl.style,{top:i,right:a,bottom:s,left:l,[r]:"calc(var(--arrow-size-diagonal) * -1)"})}})),requestAnimationFrame((()=>this.updateHoverBridge())),this.emit("sl-reposition")}render(){return s`
|
|
70
|
+
`;const x=Math.min,z=Math.max,A=Math.round,S=Math.floor,$=t=>({x:t,y:t}),k={left:"right",right:"left",bottom:"top",top:"bottom"},P={start:"end",end:"start"};function F(t,e,n){return z(t,x(e,n))}function O(t,e){return"function"==typeof t?t(e):t}function B(t){return t.split("-")[0]}function R(t){return t.split("-")[1]}function E(t){return"x"===t?"y":"x"}function j(t){return"y"===t?"height":"width"}const C=new Set(["top","bottom"]);function T(t){return C.has(B(t))?"y":"x"}function D(t){return E(T(t))}function M(t){return t.replace(/start|end/g,(t=>P[t]))}const N=["left","right"],_=["right","left"],H=["top","bottom"],L=["bottom","top"];function q(t){return t.replace(/left|right|bottom|top/g,(t=>k[t]))}function W(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function I(t){const{x:e,y:n,width:i,height:o}=t;return{width:i,height:o,top:n,left:e,right:e+i,bottom:n+o,x:e,y:n}}function G(t,e,n){let{reference:i,floating:o}=t;const r=T(e),a=D(e),s=j(a),l=B(e),c="y"===r,u=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,h=i[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:i.y-o.height};break;case"bottom":p={x:u,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:f};break;case"left":p={x:i.x-o.width,y:f};break;default:p={x:i.x,y:i.y}}switch(R(e)){case"start":p[a]-=h*(n&&c?-1:1);break;case"end":p[a]+=h*(n&&c?-1:1)}return p}async function Y(t,e){var n;void 0===e&&(e={});const{x:i,y:o,platform:r,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:h=!1,padding:p=0}=O(e,t),d=W(p),m=s[h?"floating"===f?"reference":"floating":f],b=I(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(m)))||n?m:m.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),g="floating"===f?{x:i,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==r.getOffsetParent?void 0:r.getOffsetParent(s.floating)),v=await(null==r.isElement?void 0:r.isElement(y))&&await(null==r.getScale?void 0:r.getScale(y))||{x:1,y:1},w=I(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:y,strategy:l}):g);return{top:(b.top-w.top+d.top)/v.y,bottom:(w.bottom-b.bottom+d.bottom)/v.y,left:(b.left-w.left+d.left)/v.x,right:(w.right-b.right+d.right)/v.x}}const V=new Set(["left","top"]);function X(){return"undefined"!=typeof window}function J(t){return U(t)?(t.nodeName||"").toLowerCase():"#document"}function K(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Q(t){var e;return null==(e=(U(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function U(t){return!!X()&&(t instanceof Node||t instanceof K(t).Node)}function Z(t){return!!X()&&(t instanceof Element||t instanceof K(t).Element)}function tt(t){return!!X()&&(t instanceof HTMLElement||t instanceof K(t).HTMLElement)}function et(t){return!(!X()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof K(t).ShadowRoot)}const nt=new Set(["inline","contents"]);function it(t){const{overflow:e,overflowX:n,overflowY:i,display:o}=mt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!nt.has(o)}const ot=new Set(["table","td","th"]);function rt(t){return ot.has(J(t))}const at=[":popover-open",":modal"];function st(t){return at.some((e=>{try{return t.matches(e)}catch(t){return!1}}))}const lt=["transform","translate","scale","rotate","perspective"],ct=["transform","translate","scale","rotate","perspective","filter"],ut=["paint","layout","strict","content"];function ft(t){const e=ht(),n=Z(t)?mt(t):t;return lt.some((t=>!!n[t]&&"none"!==n[t]))||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||ct.some((t=>(n.willChange||"").includes(t)))||ut.some((t=>(n.contain||"").includes(t)))}function ht(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const pt=new Set(["html","body","#document"]);function dt(t){return pt.has(J(t))}function mt(t){return K(t).getComputedStyle(t)}function bt(t){return Z(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function gt(t){if("html"===J(t))return t;const e=t.assignedSlot||t.parentNode||et(t)&&t.host||Q(t);return et(e)?e.host:e}function yt(t){const e=gt(t);return dt(e)?t.ownerDocument?t.ownerDocument.body:t.body:tt(e)&&it(e)?e:yt(e)}function vt(t,e,n){var i;void 0===e&&(e=[]),void 0===n&&(n=!0);const o=yt(t),r=o===(null==(i=t.ownerDocument)?void 0:i.body),a=K(o);if(r){const t=wt(a);return e.concat(a,a.visualViewport||[],it(o)?o:[],t&&n?vt(t):[])}return e.concat(o,vt(o,[],n))}function wt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function xt(t){const e=mt(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const o=tt(t),r=o?t.offsetWidth:n,a=o?t.offsetHeight:i,s=A(n)!==r||A(i)!==a;return s&&(n=r,i=a),{width:n,height:i,$:s}}function zt(t){return Z(t)?t:t.contextElement}function At(t){const e=zt(t);if(!tt(e))return $(1);const n=e.getBoundingClientRect(),{width:i,height:o,$:r}=xt(e);let a=(r?A(n.width):n.width)/i,s=(r?A(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const St=$(0);function $t(t){const e=K(t);return ht()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:St}function kt(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=!1);const o=t.getBoundingClientRect(),r=zt(t);let a=$(1);e&&(i?Z(i)&&(a=At(i)):a=At(t));const s=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==K(t))&&e}(r,n,i)?$t(r):$(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,f=o.height/a.y;if(r){const t=K(r),e=i&&Z(i)?K(i):i;let n=t,o=wt(n);for(;o&&i&&e!==n;){const t=At(o),e=o.getBoundingClientRect(),i=mt(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,a=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,u*=t.x,f*=t.y,l+=r,c+=a,n=K(o),o=wt(n)}}return I({width:u,height:f,x:l,y:c})}function Pt(t,e){const n=bt(t).scrollLeft;return e?e.left+n:kt(Q(t)).left+n}function Ft(t,e,n){void 0===n&&(n=!1);const i=t.getBoundingClientRect();return{x:i.left+e.scrollLeft-(n?0:Pt(t,i)),y:i.top+e.scrollTop}}const Ot=new Set(["absolute","fixed"]);function Bt(t,e,n){let i;if("viewport"===e)i=function(t,e){const n=K(t),i=Q(t),o=n.visualViewport;let r=i.clientWidth,a=i.clientHeight,s=0,l=0;if(o){r=o.width,a=o.height;const t=ht();(!t||t&&"fixed"===e)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:r,height:a,x:s,y:l}}(t,n);else if("document"===e)i=function(t){const e=Q(t),n=bt(t),i=t.ownerDocument.body,o=z(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),r=z(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-n.scrollLeft+Pt(t);const s=-n.scrollTop;return"rtl"===mt(i).direction&&(a+=z(e.clientWidth,i.clientWidth)-o),{width:o,height:r,x:a,y:s}}(Q(t));else if(Z(e))i=function(t,e){const n=kt(t,!0,"fixed"===e),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=tt(t)?At(t):$(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:o*r.x,y:i*r.y}}(e,n);else{const n=$t(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return I(i)}function Rt(t,e){const n=gt(t);return!(n===e||!Z(n)||dt(n))&&("fixed"===mt(n).position||Rt(n,e))}function Et(t,e,n){const i=tt(e),o=Q(e),r="fixed"===n,a=kt(t,!0,r,e);let s={scrollLeft:0,scrollTop:0};const l=$(0);function c(){l.x=Pt(o)}if(i||!i&&!r)if(("body"!==J(e)||it(o))&&(s=bt(e)),i){const t=kt(e,!0,r,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else o&&c();r&&!i&&o&&c();const u=!o||i||r?$(0):Ft(o,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}function jt(t){return"static"===mt(t).position}function Ct(t,e){if(!tt(t)||"fixed"===mt(t).position)return null;if(e)return e(t);let n=t.offsetParent;return Q(t)===n&&(n=n.ownerDocument.body),n}function Tt(t,e){const n=K(t);if(st(t))return n;if(!tt(t)){let e=gt(t);for(;e&&!dt(e);){if(Z(e)&&!jt(e))return e;e=gt(e)}return n}let i=Ct(t,e);for(;i&&rt(i)&&jt(i);)i=Ct(i,e);return i&&dt(i)&&jt(i)&&!ft(i)?n:i||function(t){let e=gt(t);for(;tt(e)&&!dt(e);){if(ft(e))return e;if(st(e))return null;e=gt(e)}return null}(t)||n}const Dt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t;const r="fixed"===o,a=Q(i),s=!!e&&st(e.floating);if(i===a||s&&r)return n;let l={scrollLeft:0,scrollTop:0},c=$(1);const u=$(0),f=tt(i);if((f||!f&&!r)&&(("body"!==J(i)||it(a))&&(l=bt(i)),tt(i))){const t=kt(i);c=At(i),u.x=t.x+i.clientLeft,u.y=t.y+i.clientTop}const h=!a||f||r?$(0):Ft(a,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}},getDocumentElement:Q,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t;const r=[..."clippingAncestors"===n?st(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let i=vt(t,[],!1).filter((t=>Z(t)&&"body"!==J(t))),o=null;const r="fixed"===mt(t).position;let a=r?gt(t):t;for(;Z(a)&&!dt(a);){const e=mt(a),n=ft(a);n||"fixed"!==e.position||(o=null),(r?!n&&!o:!n&&"static"===e.position&&o&&Ot.has(o.position)||it(a)&&!n&&Rt(t,a))?i=i.filter((t=>t!==a)):o=e,a=gt(a)}return e.set(t,i),i}(e,this._c):[].concat(n),i],a=r.reduce(((t,n)=>{const i=Bt(e,n,o);return t.top=z(i.top,t.top),t.right=x(i.right,t.right),t.bottom=x(i.bottom,t.bottom),t.left=z(i.left,t.left),t}),Bt(e,r[0],o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Tt,getElementRects:async function(t){const e=this.getOffsetParent||Tt,n=this.getDimensions,i=await n(t.floating);return{reference:Et(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=xt(t);return{width:e,height:n}},getScale:At,isElement:Z,isRTL:function(t){return"rtl"===mt(t).direction}};function Mt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}const Nt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,i;const{placement:o,middlewareData:r,rects:a,initialPlacement:s,platform:l,elements:c}=e,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:m=!0,...b}=O(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const g=B(o),y=T(s),v=B(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=h||(v||!m?[q(s)]:function(t){const e=q(t);return[M(t),e,M(e)]}(s)),z="none"!==d;!h&&z&&x.push(...function(t,e,n,i){const o=R(t);let r=function(t,e,n){switch(t){case"top":case"bottom":return n?e?_:N:e?N:_;case"left":case"right":return e?H:L;default:return[]}}(B(t),"start"===n,i);return o&&(r=r.map((t=>t+"-"+o)),e&&(r=r.concat(r.map(M)))),r}(s,m,d,w));const A=[s,...x],S=await Y(e,b),$=[];let k=(null==(i=r.flip)?void 0:i.overflows)||[];if(u&&$.push(S[g]),f){const t=function(t,e,n){void 0===n&&(n=!1);const i=R(t),o=D(t),r=j(o);let a="x"===o?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[r]>e.floating[r]&&(a=q(a)),[a,q(a)]}(o,a,w);$.push(S[t[0]],S[t[1]])}if(k=[...k,{placement:o,overflows:$}],!$.every((t=>t<=0))){var P,F;const t=((null==(P=r.flip)?void 0:P.index)||0)+1,e=A[t];if(e&&("alignment"!==f||y===T(e)||k.every((t=>t.overflows[0]>0&&T(t.placement)===y))))return{data:{index:t,overflows:k},reset:{placement:e}};let n=null==(F=k.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:F.placement;if(!n)switch(p){case"bestFit":{var E;const t=null==(E=k.filter((t=>{if(z){const e=T(t.placement);return e===y||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:E[0];t&&(n=t);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},_t=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var n,i;const{placement:o,rects:r,platform:a,elements:s}=e,{apply:l=()=>{},...c}=O(t,e),u=await Y(e,c),f=B(o),h=R(o),p="y"===T(o),{width:d,height:m}=r.floating;let b,g;"top"===f||"bottom"===f?(b=f,g=h===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(g=f,b="end"===h?"top":"bottom");const y=m-u.top-u.bottom,v=d-u.left-u.right;let w=x(m-u[b],y),A=x(d-u[g],v);if(null!=(n=e.middlewareData.shift)&&n.enabled.x&&(A=v),null!=(i=e.middlewareData.shift)&&i.enabled.y&&(w=y),!e.middlewareData.shift&&!h){const t=z(u.left,0),e=z(u.right,0),n=z(u.top,0),i=z(u.bottom,0);p?A=d-2*(0!==t||0!==e?t+e:z(u.left,u.right)):w=m-2*(0!==n||0!==i?n+i:z(u.top,u.bottom))}await l({...e,availableWidth:A,availableHeight:w});const S=await a.getDimensions(s.floating);return d!==S.width||m!==S.height?{reset:{rects:!0}}:{}}}};function Ht(t){return function(t){for(let e=t;e;e=Lt(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=Lt(t);e;e=Lt(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||ft(t))return e;if("BODY"===e.tagName)return e}}return null}(t)}function Lt(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var qt=class extends a{constructor(){super(...arguments),this.localize=new l(this),this.active=!1,this.placement="top",this.strategy="absolute",this.distance=0,this.skidding=0,this.arrow=!1,this.arrowPlacement="anchor",this.arrowPadding=10,this.flip=!1,this.flipFallbackPlacements="",this.flipFallbackStrategy="best-fit",this.flipPadding=0,this.shift=!1,this.shiftPadding=0,this.autoSizePadding=0,this.hoverBridge=!1,this.updateHoverBridge=()=>{if(this.hoverBridge&&this.anchorEl){const t=this.anchorEl.getBoundingClientRect(),e=this.popup.getBoundingClientRect();let n=0,i=0,o=0,r=0,a=0,s=0,l=0,c=0;this.placement.includes("top")||this.placement.includes("bottom")?t.top<e.top?(n=t.left,i=t.bottom,o=t.right,r=t.bottom,a=e.left,s=e.top,l=e.right,c=e.top):(n=e.left,i=e.bottom,o=e.right,r=e.bottom,a=t.left,s=t.top,l=t.right,c=t.top):t.left<e.left?(n=t.right,i=t.top,o=e.left,r=e.top,a=t.right,s=t.bottom,l=e.left,c=e.bottom):(n=e.right,i=e.top,o=t.left,r=t.top,a=e.right,s=e.bottom,l=t.left,c=t.bottom),this.style.setProperty("--hover-bridge-top-left-x",`${n}px`),this.style.setProperty("--hover-bridge-top-left-y",`${i}px`),this.style.setProperty("--hover-bridge-top-right-x",`${o}px`),this.style.setProperty("--hover-bridge-top-right-y",`${r}px`),this.style.setProperty("--hover-bridge-bottom-left-x",`${a}px`),this.style.setProperty("--hover-bridge-bottom-left-y",`${s}px`),this.style.setProperty("--hover-bridge-bottom-right-x",`${l}px`),this.style.setProperty("--hover-bridge-bottom-right-y",`${c}px`)}}}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start()}disconnectedCallback(){super.disconnectedCallback(),this.stop()}async updated(t){super.updated(t),t.has("active")&&(this.active?this.start():this.stop()),t.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){if(await this.stop(),this.anchor&&"string"==typeof this.anchor){const t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else this.anchorEl=this.anchor instanceof Element||function(t){return null!==t&&"object"==typeof t&&"getBoundingClientRect"in t&&(!("contextElement"in t)||t.contextElement instanceof Element)}(this.anchor)?this.anchor:this.querySelector('[slot="anchor"]');this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),this.anchorEl&&this.active&&this.start()}start(){this.anchorEl&&this.active&&(this.cleanup=function(t,e,n,i){void 0===i&&(i={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=i,c=zt(t),u=o||r?[...c?vt(c):[],...vt(e)]:[];u.forEach((t=>{o&&t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n)}));const f=c&&s?function(t,e){let n,i=null;const o=Q(t);function r(){var t;clearTimeout(n),null==(t=i)||t.disconnect(),i=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),r();const c=t.getBoundingClientRect(),{left:u,top:f,width:h,height:p}=c;if(s||e(),!h||!p)return;const d={rootMargin:-S(f)+"px "+-S(o.clientWidth-(u+h))+"px "+-S(o.clientHeight-(f+p))+"px "+-S(u)+"px",threshold:z(0,x(1,l))||1};let m=!0;function b(e){const i=e[0].intersectionRatio;if(i!==l){if(!m)return a();i?a(!1,i):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==i||Mt(c,t.getBoundingClientRect())||a(),m=!1}try{i=new IntersectionObserver(b,{...d,root:o.ownerDocument})}catch(t){i=new IntersectionObserver(b,d)}i.observe(t)}(!0),r}(c,n):null;let h,p=-1,d=null;a&&(d=new ResizeObserver((t=>{let[i]=t;i&&i.target===c&&d&&(d.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var t;null==(t=d)||t.observe(e)}))),n()})),c&&!l&&d.observe(c),d.observe(e));let m=l?kt(t):null;return l&&function e(){const i=kt(t);m&&!Mt(m,i)&&n(),m=i,h=requestAnimationFrame(e)}(),n(),()=>{var t;u.forEach((t=>{o&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n)})),null==f||f(),null==(t=d)||t.disconnect(),d=null,l&&cancelAnimationFrame(h)}}(this.anchorEl,this.popup,(()=>{this.reposition()})))}async stop(){return new Promise((t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame((()=>t()))):t()}))}reposition(){if(!this.active||!this.anchorEl)return;const n=[(i={mainAxis:this.distance,crossAxis:this.skidding},void 0===i&&(i=0),{name:"offset",options:i,async fn(t){var e,n;const{x:o,y:r,placement:a,middlewareData:s}=t,l=await async function(t,e){const{placement:n,platform:i,elements:o}=t,r=await(null==i.isRTL?void 0:i.isRTL(o.floating)),a=B(n),s=R(n),l="y"===T(n),c=V.has(a)?-1:1,u=r&&l?-1:1,f=O(e,t);let{mainAxis:h,crossAxis:p,alignmentAxis:d}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&"number"==typeof d&&(p="end"===s?-1*d:d),l?{x:p*u,y:h*c}:{x:h*c,y:p*u}}(t,i);return a===(null==(e=s.offset)?void 0:e.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:o+l.x,y:r+l.y,data:{...l,placement:a}}}})];var i;this.sync?n.push(_t({apply:({rects:t})=>{const e="height"===this.sync||"both"===this.sync;this.popup.style.width="width"===this.sync||"both"===this.sync?`${t.reference.width}px`:"",this.popup.style.height=e?`${t.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&n.push(Nt({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:"best-fit"===this.flipFallbackStrategy?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&n.push(function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:o}=e,{mainAxis:r=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...l}=O(t,e),c={x:n,y:i},u=await Y(e,l),f=T(B(o)),h=E(f);let p=c[h],d=c[f];r&&(p=F(p+u["y"===h?"top":"left"],p,p-u["y"===h?"bottom":"right"])),a&&(d=F(d+u["y"===f?"top":"left"],d,d-u["y"===f?"bottom":"right"]));const m=s.fn({...e,[h]:p,[f]:d});return{...m,data:{x:m.x-n,y:m.y-i,enabled:{[h]:r,[f]:a}}}}}}({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?n.push(_t({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:t,availableHeight:e})=>{"vertical"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-height",`${e}px`):this.style.removeProperty("--auto-size-available-height"),"horizontal"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-width",`${t}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&n.push((t=>({name:"arrow",options:t,async fn(e){const{x:n,y:i,placement:o,rects:r,platform:a,elements:s,middlewareData:l}=e,{element:c,padding:u=0}=O(t,e)||{};if(null==c)return{};const f=W(u),h={x:n,y:i},p=D(o),d=j(p),m=await a.getDimensions(c),b="y"===p,g=b?"top":"left",y=b?"bottom":"right",v=b?"clientHeight":"clientWidth",w=r.reference[d]+r.reference[p]-h[p]-r.floating[d],z=h[p]-r.reference[p],A=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let S=A?A[v]:0;S&&await(null==a.isElement?void 0:a.isElement(A))||(S=s.floating[v]||r.floating[d]);const $=w/2-z/2,k=S/2-m[d]/2-1,P=x(f[g],k),B=x(f[y],k),E=P,C=S-m[d]-B,T=S/2-m[d]/2+$,M=F(E,T,C),N=!l.arrow&&null!=R(o)&&T!==M&&r.reference[d]/2-(T<E?P:B)-m[d]/2<0,_=N?T<E?T-E:T-C:0;return{[p]:h[p]+_,data:{[p]:M,centerOffset:T-M-_,...N&&{alignmentOffset:_}},reset:N}}}))({element:this.arrowEl,padding:this.arrowPadding}));const o="absolute"===this.strategy?t=>Dt.getOffsetParent(t,Ht):Dt.getOffsetParent;((t,e,n)=>{const i=new Map,o={platform:Dt,...n},r={...o.platform,_c:i};return(async(t,e,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:a}=n,s=r.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:o}),{x:u,y:f}=G(c,i,l),h=i,p={},d=0;for(let n=0;n<s.length;n++){const{name:r,fn:m}=s[n],{x:b,y:g,data:y,reset:v}=await m({x:u,y:f,initialPlacement:i,placement:h,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:t,floating:e}});u=null!=b?b:u,f=null!=g?g:f,p={...p,[r]:{...p[r],...y}},v&&d<=50&&(d++,"object"==typeof v&&(v.placement&&(h=v.placement),v.rects&&(c=!0===v.rects?await a.getElementRects({reference:t,floating:e,strategy:o}):v.rects),({x:u,y:f}=G(c,h,l))),n=-1)}return{x:u,y:f,placement:h,strategy:o,middlewareData:p}})(t,e,{...o,platform:r})})(this.anchorEl,this.popup,{placement:this.placement,middleware:n,strategy:this.strategy,platform:t(e({},Dt),{getOffsetParent:o})}).then((({x:t,y:e,middlewareData:n,placement:i})=>{const o="rtl"===this.localize.dir(),r={top:"bottom",right:"left",bottom:"top",left:"right"}[i.split("-")[0]];if(this.setAttribute("data-current-placement",i),Object.assign(this.popup.style,{left:`${t}px`,top:`${e}px`}),this.arrow){const t=n.arrow.x,e=n.arrow.y;let i="",a="",s="",l="";if("start"===this.arrowPlacement){const n="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";i="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",a=o?n:"",l=o?"":n}else if("end"===this.arrowPlacement){const n="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";a=o?"":n,l=o?n:"",s="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else"center"===this.arrowPlacement?(l="number"==typeof t?"calc(50% - var(--arrow-size-diagonal))":"",i="number"==typeof e?"calc(50% - var(--arrow-size-diagonal))":""):(l="number"==typeof t?`${t}px`:"",i="number"==typeof e?`${e}px`:"");Object.assign(this.arrowEl.style,{top:i,right:a,bottom:s,left:l,[r]:"calc(var(--arrow-size-diagonal) * -1)"})}})),requestAnimationFrame((()=>this.updateHoverBridge())),this.emit("sl-reposition")}render(){return s`
|
|
71
71
|
<slot name="anchor" @slotchange=${this.handleAnchorChange}></slot>
|
|
72
72
|
|
|
73
73
|
<span
|
|
@@ -82,4 +82,4 @@ function u(t){return(e,n)=>((t,e,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.
|
|
|
82
82
|
<slot></slot>
|
|
83
83
|
${this.arrow?s`<div part="arrow" class="popup__arrow" role="presentation"></div>`:""}
|
|
84
84
|
</div>
|
|
85
|
-
`}};qt.styles=[i,w],o([u(".popup")],qt.prototype,"popup",2),o([u(".popup__arrow")],qt.prototype,"arrowEl",2),o([r()],qt.prototype,"anchor",2),o([r({type:Boolean,reflect:!0})],qt.prototype,"active",2),o([r({reflect:!0})],qt.prototype,"placement",2),o([r({reflect:!0})],qt.prototype,"strategy",2),o([r({type:Number})],qt.prototype,"distance",2),o([r({type:Number})],qt.prototype,"skidding",2),o([r({type:Boolean})],qt.prototype,"arrow",2),o([r({attribute:"arrow-placement"})],qt.prototype,"arrowPlacement",2),o([r({attribute:"arrow-padding",type:Number})],qt.prototype,"arrowPadding",2),o([r({type:Boolean})],qt.prototype,"flip",2),o([r({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map((t=>t.trim())).filter((t=>""!==t)),toAttribute:t=>t.join(" ")}})],qt.prototype,"flipFallbackPlacements",2),o([r({attribute:"flip-fallback-strategy"})],qt.prototype,"flipFallbackStrategy",2),o([r({type:Object})],qt.prototype,"flipBoundary",2),o([r({attribute:"flip-padding",type:Number})],qt.prototype,"flipPadding",2),o([r({type:Boolean})],qt.prototype,"shift",2),o([r({type:Object})],qt.prototype,"shiftBoundary",2),o([r({attribute:"shift-padding",type:Number})],qt.prototype,"shiftPadding",2),o([r({attribute:"auto-size"})],qt.prototype,"autoSize",2),o([r()],qt.prototype,"sync",2),o([r({type:Object})],qt.prototype,"autoSizeBoundary",2),o([r({attribute:"auto-size-padding",type:Number})],qt.prototype,"autoSizePadding",2),o([r({attribute:"hover-bridge",type:Boolean})],qt.prototype,"hoverBridge",2);export{qt as S,v as a,b,u as e,m as g,y as p,d as s,
|
|
85
|
+
`}};qt.styles=[i,w],o([u(".popup")],qt.prototype,"popup",2),o([u(".popup__arrow")],qt.prototype,"arrowEl",2),o([r()],qt.prototype,"anchor",2),o([r({type:Boolean,reflect:!0})],qt.prototype,"active",2),o([r({reflect:!0})],qt.prototype,"placement",2),o([r({reflect:!0})],qt.prototype,"strategy",2),o([r({type:Number})],qt.prototype,"distance",2),o([r({type:Number})],qt.prototype,"skidding",2),o([r({type:Boolean})],qt.prototype,"arrow",2),o([r({attribute:"arrow-placement"})],qt.prototype,"arrowPlacement",2),o([r({attribute:"arrow-padding",type:Number})],qt.prototype,"arrowPadding",2),o([r({type:Boolean})],qt.prototype,"flip",2),o([r({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map((t=>t.trim())).filter((t=>""!==t)),toAttribute:t=>t.join(" ")}})],qt.prototype,"flipFallbackPlacements",2),o([r({attribute:"flip-fallback-strategy"})],qt.prototype,"flipFallbackStrategy",2),o([r({type:Object})],qt.prototype,"flipBoundary",2),o([r({attribute:"flip-padding",type:Number})],qt.prototype,"flipPadding",2),o([r({type:Boolean})],qt.prototype,"shift",2),o([r({type:Object})],qt.prototype,"shiftBoundary",2),o([r({attribute:"shift-padding",type:Number})],qt.prototype,"shiftPadding",2),o([r({attribute:"auto-size"})],qt.prototype,"autoSize",2),o([r()],qt.prototype,"sync",2),o([r({type:Object})],qt.prototype,"autoSizeBoundary",2),o([r({attribute:"auto-size-padding",type:Number})],qt.prototype,"autoSizePadding",2),o([r({attribute:"hover-bridge",type:Boolean})],qt.prototype,"hoverBridge",2);export{qt as S,v as a,g as b,u as e,m as g,y as p,d as s,b as w}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{S as s}from"./p-BvR_sP9G.js";s.define("sl-icon");
|