@pod-os/elements 0.26.1-rc.82a37be.0 → 0.26.1-rc.b9287e0.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.
Files changed (121) hide show
  1. package/dist/cjs/app-globals-97a7ec18.js +23 -0
  2. package/dist/cjs/app-globals-97a7ec18.js.map +1 -0
  3. package/dist/cjs/elements.cjs.js +2 -2
  4. package/dist/cjs/ion-badge_5.cjs.entry.js +1 -1
  5. package/dist/cjs/ion-icon_32.cjs.entry.js +9157 -0
  6. package/dist/cjs/ion-icon_32.cjs.entry.js.map +1 -0
  7. package/dist/cjs/loader.cjs.js +2 -2
  8. package/dist/cjs/pos-app-generic.cjs.entry.js +1 -1
  9. package/dist/cjs/pos-app-ldp-container.cjs.entry.js +1 -1
  10. package/dist/cjs/pos-app-rdf-document.cjs.entry.js +1 -1
  11. package/dist/collection/apps/pos-app-browser/pos-app-browser.js +2 -1
  12. package/dist/collection/apps/pos-app-browser/pos-app-browser.js.map +1 -1
  13. package/dist/collection/apps/pos-app-dashboard/pos-app-dashboard.js +1 -1
  14. package/dist/collection/apps/pos-app-dashboard/pos-example-resources/pos-example-resources.js +1 -1
  15. package/dist/collection/apps/pos-app-dashboard/pos-getting-started/pos-getting-started.js +1 -1
  16. package/dist/collection/apps/pos-app-generic/pos-app-generic.js +1 -1
  17. package/dist/collection/apps/pos-app-ldp-container/pos-app-ldp-container.js +1 -1
  18. package/dist/collection/apps/pos-app-rdf-document/pos-app-rdf-document.js +1 -1
  19. package/dist/collection/apps/pos-app-settings/pos-app-settings.js +1 -1
  20. package/dist/collection/apps/pos-app-settings/pos-setting-offline-cache/pos-setting-offline-cache.js +1 -1
  21. package/dist/collection/collection-manifest.json +1 -0
  22. package/dist/collection/components/pos-add-new-thing/pos-add-new-thing.js +1 -1
  23. package/dist/collection/components/pos-app/pos-app.js +1 -1
  24. package/dist/collection/components/pos-dialog/pos-dialog.js +1 -1
  25. package/dist/collection/components/pos-error-toast/pos-error-toast.js +1 -1
  26. package/dist/collection/components/pos-literals/pos-literals.js +1 -1
  27. package/dist/collection/components/pos-login/pos-login.js +7 -1
  28. package/dist/collection/components/pos-login/pos-login.js.map +1 -1
  29. package/dist/collection/components/pos-login-form/pos-login-form.js +1 -1
  30. package/dist/collection/components/pos-navigation/bar/pos-navigation-bar.js +1 -1
  31. package/dist/collection/components/pos-navigation/pos-navigation.js +1 -1
  32. package/dist/collection/components/pos-new-thing-form/pos-new-thing-form.js +1 -1
  33. package/dist/collection/components/pos-picture/pos-picture.js +1 -1
  34. package/dist/collection/components/pos-picture/pos-picture.js.map +1 -1
  35. package/dist/collection/components/pos-rich-link/pos-rich-link.js +2 -2
  36. package/dist/collection/components/pos-router/pos-router.js +1 -1
  37. package/dist/collection/components/pos-select-term/pos-select-term.js +1 -1
  38. package/dist/collection/components/pos-user-menu/pos-user-menu.css +24 -0
  39. package/dist/collection/components/pos-user-menu/pos-user-menu.js +102 -0
  40. package/dist/collection/components/pos-user-menu/pos-user-menu.js.map +1 -0
  41. package/dist/collection/components/pos-user-menu/shoelace.js +6 -0
  42. package/dist/collection/components/pos-user-menu/shoelace.js.map +1 -0
  43. package/dist/collection/global.js +6 -0
  44. package/dist/collection/global.js.map +1 -1
  45. package/dist/components/index.js +7 -0
  46. package/dist/components/index.js.map +1 -1
  47. package/dist/components/pos-add-new-thing2.js +1 -1
  48. package/dist/components/pos-app-browser.js +68 -61
  49. package/dist/components/pos-app-browser.js.map +1 -1
  50. package/dist/components/pos-app-dashboard2.js +1 -1
  51. package/dist/components/pos-app-generic.js +1 -1
  52. package/dist/components/pos-app-ldp-container.js +1 -1
  53. package/dist/components/pos-app-rdf-document.js +1 -1
  54. package/dist/components/pos-app-settings2.js +1 -1
  55. package/dist/components/pos-app2.js +1 -1
  56. package/dist/components/pos-dialog2.js +1 -1
  57. package/dist/components/pos-error-toast2.js +1 -1
  58. package/dist/components/pos-example-resources2.js +1 -1
  59. package/dist/components/pos-getting-started2.js +1 -1
  60. package/dist/components/pos-literals2.js +1 -1
  61. package/dist/components/pos-login-form2.js +1 -1
  62. package/dist/components/pos-login2.js +2 -2
  63. package/dist/components/pos-login2.js.map +1 -1
  64. package/dist/components/pos-navigation-bar2.js +1 -1
  65. package/dist/components/pos-navigation2.js +1 -1
  66. package/dist/components/pos-new-thing-form2.js +1 -1
  67. package/dist/components/pos-picture2.js +1 -1
  68. package/dist/components/pos-picture2.js.map +1 -1
  69. package/dist/components/pos-rich-link2.js +2 -2
  70. package/dist/components/pos-router2.js +1 -1
  71. package/dist/components/pos-select-term2.js +1 -1
  72. package/dist/components/pos-setting-offline-cache2.js +1 -1
  73. package/dist/components/pos-user-menu.d.ts +11 -0
  74. package/dist/components/pos-user-menu.js +8 -0
  75. package/dist/components/pos-user-menu.js.map +1 -0
  76. package/dist/components/pos-user-menu2.js +5064 -0
  77. package/dist/components/pos-user-menu2.js.map +1 -0
  78. package/dist/elements/elements.css +7 -1
  79. package/dist/elements/elements.esm.js +1 -1
  80. package/dist/elements/elements.esm.js.map +1 -1
  81. package/dist/elements/p-3f129942.entry.js +2 -0
  82. package/dist/elements/p-4789f893.entry.js +2 -0
  83. package/dist/elements/p-61cd1259.js +2 -0
  84. package/dist/elements/p-61cd1259.js.map +1 -0
  85. package/dist/elements/p-951ab33f.entry.js +2 -0
  86. package/dist/elements/p-bf4281d5.entry.js +652 -0
  87. package/dist/elements/p-bf4281d5.entry.js.map +1 -0
  88. package/dist/elements/{p-178b3852.entry.js → p-db7b0e71.entry.js} +2 -2
  89. package/dist/esm/app-globals-fd9221d0.js +21 -0
  90. package/dist/esm/app-globals-fd9221d0.js.map +1 -0
  91. package/dist/esm/elements.js +2 -2
  92. package/dist/esm/ion-badge_5.entry.js +1 -1
  93. package/dist/esm/ion-icon_32.entry.js +9122 -0
  94. package/dist/esm/ion-icon_32.entry.js.map +1 -0
  95. package/dist/esm/loader.js +2 -2
  96. package/dist/esm/pos-app-generic.entry.js +1 -1
  97. package/dist/esm/pos-app-ldp-container.entry.js +1 -1
  98. package/dist/esm/pos-app-rdf-document.entry.js +1 -1
  99. package/dist/types/components/pos-user-menu/pos-user-menu.d.ts +13 -0
  100. package/dist/types/components/pos-user-menu/shoelace.d.ts +5 -0
  101. package/dist/types/components.d.ts +33 -0
  102. package/package.json +2 -1
  103. package/dist/cjs/app-globals-1c06b5ae.js +0 -16
  104. package/dist/cjs/app-globals-1c06b5ae.js.map +0 -1
  105. package/dist/cjs/ion-icon_31.cjs.entry.js +0 -4156
  106. package/dist/cjs/ion-icon_31.cjs.entry.js.map +0 -1
  107. package/dist/elements/p-0252f287.entry.js +0 -20
  108. package/dist/elements/p-0252f287.entry.js.map +0 -1
  109. package/dist/elements/p-2cda3231.entry.js +0 -2
  110. package/dist/elements/p-c27a94bc.entry.js +0 -2
  111. package/dist/elements/p-e1957ea1.entry.js +0 -2
  112. package/dist/elements/p-ec7a6c44.js +0 -2
  113. package/dist/elements/p-ec7a6c44.js.map +0 -1
  114. package/dist/esm/app-globals-31ecda4c.js +0 -14
  115. package/dist/esm/app-globals-31ecda4c.js.map +0 -1
  116. package/dist/esm/ion-icon_31.entry.js +0 -4122
  117. package/dist/esm/ion-icon_31.entry.js.map +0 -1
  118. /package/dist/elements/{p-e1957ea1.entry.js.map → p-3f129942.entry.js.map} +0 -0
  119. /package/dist/elements/{p-c27a94bc.entry.js.map → p-4789f893.entry.js.map} +0 -0
  120. /package/dist/elements/{p-2cda3231.entry.js.map → p-951ab33f.entry.js.map} +0 -0
  121. /package/dist/elements/{p-178b3852.entry.js.map → p-db7b0e71.entry.js.map} +0 -0
@@ -0,0 +1,652 @@
1
+ import{d as t,r as e,h as n,H as i,e as s,f as o,w as r,i as a,j as c,k as l}from"./p-97889672.js";import{c as d,g as h,r as u}from"./p-3f316fc4.js";import{c as f,h as p,g as b}from"./p-669fab6c.js";import{c as m,g}from"./p-ebe1c8ca.js";import{E as v,s as w}from"./p-46b6ae86.js";import{c as y}from"./p-3a4d289f.js";import{p as x}from"./p-d6769f21.js";import{O as k,c as z,a as S,i as _,p as C,s as $,b as A,d as I,e as E,f as M,G as T,t as j}from"./p-01adc2b7.js";import{c as L}from"./p-b110cb49.js";import{w as O}from"./p-7efd6867.js";import{createGesture as D}from"./p-b943833e.js";import{c as P,s as B,B as R}from"./p-5e8a3893.js";import{P as U,N,L as X}from"./p-b5ef6f04.js";import{s as W}from"./p-f6671856.js";import"./p-98c00bd2.js";import{s as H}from"./p-182f722d.js";import"./p-bde7428a.js";import"./p-30cd90ec.js";let F;const Y=()=>{if(typeof window==="undefined"){return new Map}else{if(!F){const t=window;t.Ionicons=t.Ionicons||{};F=t.Ionicons.map=t.Ionicons.map||new Map}return F}};const V=t=>{let e=K(t.src);if(e){return e}e=Z(t.name,t.icon,t.mode,t.ios,t.md);if(e){return q(e,t)}if(t.icon){e=K(t.icon);if(e){return e}e=K(t.icon[t.mode]);if(e){return e}}return null};const q=(e,n)=>{const i=Y().get(e);if(i){return i}try{return t(`svg/${e}.svg`)}catch(t){console.warn(`[Ionicons Warning]: Could not load icon with name "${e}". Ensure that the icon is registered using addIcons or that the icon SVG data is passed directly to the icon component.`,n)}};const Z=(t,e,n,i,s)=>{n=(n&&Q(n))==="ios"?"ios":"md";if(i&&n==="ios"){t=Q(i)}else if(s&&n==="md"){t=Q(s)}else{if(!t&&e&&!G(e)){t=e}if(J(t)){t=Q(t)}}if(!J(t)||t.trim()===""){return null}const o=t.replace(/[a-z]|-|\d/gi,"");if(o!==""){return null}return t};const K=t=>{if(J(t)){t=t.trim();if(G(t)){return t}}return null};const G=t=>t.length>0&&/(\/|\.)/.test(t);const J=t=>typeof t==="string";const Q=t=>t.toLowerCase();const tt=(t,e=[])=>{const n={};e.forEach((e=>{if(t.hasAttribute(e)){const i=t.getAttribute(e);if(i!==null){n[e]=t.getAttribute(e)}t.removeAttribute(e)}}));return n};const et=t=>{if(t){if(t.dir!==""){return t.dir.toLowerCase()==="rtl"}}return(document===null||document===void 0?void 0:document.dir.toLowerCase())==="rtl"};const nt=t=>{const e=document.createElement("div");e.innerHTML=t;for(let t=e.childNodes.length-1;t>=0;t--){if(e.childNodes[t].nodeName.toLowerCase()!=="svg"){e.removeChild(e.childNodes[t])}}const n=e.firstElementChild;if(n&&n.nodeName.toLowerCase()==="svg"){const t=n.getAttribute("class")||"";n.setAttribute("class",(t+" s-ion-icon").trim());if(it(n)){return e.innerHTML}}return""};const it=t=>{if(t.nodeType===1){if(t.nodeName.toLowerCase()==="script"){return false}for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;if(J(n)&&n.toLowerCase().indexOf("on")===0){return false}}for(let e=0;e<t.childNodes.length;e++){if(!it(t.childNodes[e])){return false}}}return true};const st=t=>t.startsWith("data:image/svg+xml");const ot=t=>t.indexOf(";utf8,")!==-1;const rt=new Map;const at=new Map;let ct;const lt=(t,e)=>{let n=at.get(t);if(!n){if(typeof fetch!=="undefined"&&typeof document!=="undefined"){if(st(t)&&ot(t)){if(!ct){ct=new DOMParser}const e=ct.parseFromString(t,"text/html");const n=e.querySelector("svg");if(n){rt.set(t,n.outerHTML)}return Promise.resolve()}else{n=fetch(t).then((n=>{if(n.ok){return n.text().then((n=>{if(n&&e!==false){n=nt(n)}rt.set(t,n||"")}))}rt.set(t,"")}));at.set(t,n)}}else{rt.set(t,"");return Promise.resolve()}}return n};const dt=":host{display:inline-block;width:1em;height:1em;contain:strict;fill:currentColor;box-sizing:content-box !important}:host .ionicon{stroke:currentColor}.ionicon-fill-none{fill:none}.ionicon-stroke-width{stroke-width:32px;stroke-width:var(--ionicon-stroke-width, 32px)}.icon-inner,.ionicon,svg{display:block;height:100%;width:100%}@supports (background: -webkit-named-image(i)){:host(.icon-rtl) .icon-inner{transform:scaleX(-1)}}@supports not selector(:dir(rtl)) and selector(:host-context([dir='rtl'])){:host(.icon-rtl) .icon-inner{transform:scaleX(-1)}}:host(.flip-rtl):host-context([dir='rtl']) .icon-inner{transform:scaleX(-1)}@supports selector(:dir(rtl)){:host(.flip-rtl:dir(rtl)) .icon-inner{transform:scaleX(-1)}:host(.flip-rtl:dir(ltr)) .icon-inner{transform:scaleX(1)}}:host(.icon-small){font-size:1.125rem !important}:host(.icon-large){font-size:2rem !important}:host(.ion-color){color:var(--ion-color-base) !important}:host(.ion-color-primary){--ion-color-base:var(--ion-color-primary, #3880ff)}:host(.ion-color-secondary){--ion-color-base:var(--ion-color-secondary, #0cd1e8)}:host(.ion-color-tertiary){--ion-color-base:var(--ion-color-tertiary, #f4a942)}:host(.ion-color-success){--ion-color-base:var(--ion-color-success, #10dc60)}:host(.ion-color-warning){--ion-color-base:var(--ion-color-warning, #ffce00)}:host(.ion-color-danger){--ion-color-base:var(--ion-color-danger, #f14141)}:host(.ion-color-light){--ion-color-base:var(--ion-color-light, #f4f5f8)}:host(.ion-color-medium){--ion-color-base:var(--ion-color-medium, #989aa2)}:host(.ion-color-dark){--ion-color-base:var(--ion-color-dark, #222428)}";const ht=dt;const ut=class{constructor(t){e(this,t);this.iconName=null;this.inheritedAttributes={};this.didLoadIcon=false;this.svgContent=undefined;this.isVisible=false;this.mode=ft();this.color=undefined;this.ios=undefined;this.md=undefined;this.flipRtl=undefined;this.name=undefined;this.src=undefined;this.icon=undefined;this.size=undefined;this.lazy=false;this.sanitize=true}componentWillLoad(){this.inheritedAttributes=tt(this.el,["aria-label"])}connectedCallback(){this.waitUntilVisible(this.el,"50px",(()=>{this.isVisible=true;this.loadIcon()}))}componentDidLoad(){if(!this.didLoadIcon){this.loadIcon()}}disconnectedCallback(){if(this.io){this.io.disconnect();this.io=undefined}}waitUntilVisible(t,e,n){if(this.lazy&&typeof window!=="undefined"&&window.IntersectionObserver){const i=this.io=new window.IntersectionObserver((t=>{if(t[0].isIntersecting){i.disconnect();this.io=undefined;n()}}),{rootMargin:e});i.observe(t)}else{n()}}loadIcon(){if(this.isVisible){const t=V(this);if(t){if(rt.has(t)){this.svgContent=rt.get(t)}else{lt(t,this.sanitize).then((()=>this.svgContent=rt.get(t)))}this.didLoadIcon=true}}this.iconName=Z(this.name,this.icon,this.mode,this.ios,this.md)}render(){const{flipRtl:t,iconName:e,inheritedAttributes:s,el:o}=this;const r=this.mode||"md";const a=e?(e.includes("arrow")||e.includes("chevron"))&&t!==false:false;const c=t||a;return n(i,Object.assign({role:"img",class:Object.assign(Object.assign({[r]:true},pt(this.color)),{[`icon-${this.size}`]:!!this.size,"flip-rtl":c,"icon-rtl":c&&et(o)})},s),this.svgContent?n("div",{class:"icon-inner",innerHTML:this.svgContent}):n("div",{class:"icon-inner"}))}static get assetsDirs(){return["svg"]}get el(){return s(this)}static get watchers(){return{name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"],ios:["loadIcon"],md:["loadIcon"]}}};const ft=()=>typeof document!=="undefined"&&document.documentElement.getAttribute("mode")||"md";const pt=t=>t?{"ion-color":true,[`ion-color-${t}`]:true}:null;ut.style=ht;const bt=":host{--background:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.3);--progress-background:var(--ion-color-primary, #3880ff);--buffer-background:var(--background);display:block;position:relative;width:100%;contain:strict;direction:ltr;overflow:hidden}.progress,.progress-indeterminate,.indeterminate-bar-primary,.indeterminate-bar-secondary,.progress-buffer-bar{left:0;right:0;top:0;bottom:0;position:absolute;width:100%;height:100%}.buffer-circles-container,.buffer-circles{left:0;right:0;top:0;bottom:0;position:absolute}.buffer-circles{right:-10px;left:-10px;}.progress,.progress-buffer-bar,.buffer-circles-container{transform-origin:left top;transition:transform 150ms linear}.progress,.progress-indeterminate{background:var(--progress-background);z-index:2}.progress-buffer-bar{background:var(--buffer-background);z-index:1}.buffer-circles-container{overflow:hidden}.indeterminate-bar-primary{top:0;right:0;bottom:0;left:-145.166611%;animation:primary-indeterminate-translate 2s infinite linear}.indeterminate-bar-primary .progress-indeterminate{animation:primary-indeterminate-scale 2s infinite linear;animation-play-state:inherit}.indeterminate-bar-secondary{top:0;right:0;bottom:0;left:-54.888891%;animation:secondary-indeterminate-translate 2s infinite linear}.indeterminate-bar-secondary .progress-indeterminate{animation:secondary-indeterminate-scale 2s infinite linear;animation-play-state:inherit}.buffer-circles{background-image:radial-gradient(ellipse at center, var(--buffer-background) 0%, var(--buffer-background) 30%, transparent 30%);background-repeat:repeat-x;background-position:5px center;background-size:10px 10px;z-index:0;animation:buffering 450ms infinite linear}:host(.progress-bar-reversed){transform:scaleX(-1)}:host(.progress-paused) .indeterminate-bar-secondary,:host(.progress-paused) .indeterminate-bar-primary,:host(.progress-paused) .buffer-circles{animation-play-state:paused}:host(.ion-color) .progress-buffer-bar{background:rgba(var(--ion-color-base-rgb), 0.3)}:host(.ion-color) .buffer-circles{background-image:radial-gradient(ellipse at center, rgba(var(--ion-color-base-rgb), 0.3) 0%, rgba(var(--ion-color-base-rgb), 0.3) 30%, transparent 30%)}:host(.ion-color) .progress,:host(.ion-color) .progress-indeterminate{background:var(--ion-color-base)}@keyframes primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes buffering{to{transform:translateX(-10px)}}:host{height:3px}";const mt=bt;const gt=":host{--background:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.3);--progress-background:var(--ion-color-primary, #3880ff);--buffer-background:var(--background);display:block;position:relative;width:100%;contain:strict;direction:ltr;overflow:hidden}.progress,.progress-indeterminate,.indeterminate-bar-primary,.indeterminate-bar-secondary,.progress-buffer-bar{left:0;right:0;top:0;bottom:0;position:absolute;width:100%;height:100%}.buffer-circles-container,.buffer-circles{left:0;right:0;top:0;bottom:0;position:absolute}.buffer-circles{right:-10px;left:-10px;}.progress,.progress-buffer-bar,.buffer-circles-container{transform-origin:left top;transition:transform 150ms linear}.progress,.progress-indeterminate{background:var(--progress-background);z-index:2}.progress-buffer-bar{background:var(--buffer-background);z-index:1}.buffer-circles-container{overflow:hidden}.indeterminate-bar-primary{top:0;right:0;bottom:0;left:-145.166611%;animation:primary-indeterminate-translate 2s infinite linear}.indeterminate-bar-primary .progress-indeterminate{animation:primary-indeterminate-scale 2s infinite linear;animation-play-state:inherit}.indeterminate-bar-secondary{top:0;right:0;bottom:0;left:-54.888891%;animation:secondary-indeterminate-translate 2s infinite linear}.indeterminate-bar-secondary .progress-indeterminate{animation:secondary-indeterminate-scale 2s infinite linear;animation-play-state:inherit}.buffer-circles{background-image:radial-gradient(ellipse at center, var(--buffer-background) 0%, var(--buffer-background) 30%, transparent 30%);background-repeat:repeat-x;background-position:5px center;background-size:10px 10px;z-index:0;animation:buffering 450ms infinite linear}:host(.progress-bar-reversed){transform:scaleX(-1)}:host(.progress-paused) .indeterminate-bar-secondary,:host(.progress-paused) .indeterminate-bar-primary,:host(.progress-paused) .buffer-circles{animation-play-state:paused}:host(.ion-color) .progress-buffer-bar{background:rgba(var(--ion-color-base-rgb), 0.3)}:host(.ion-color) .buffer-circles{background-image:radial-gradient(ellipse at center, rgba(var(--ion-color-base-rgb), 0.3) 0%, rgba(var(--ion-color-base-rgb), 0.3) 30%, transparent 30%)}:host(.ion-color) .progress,:host(.ion-color) .progress-indeterminate{background:var(--ion-color-base)}@keyframes primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes buffering{to{transform:translateX(-10px)}}:host{height:4px}";const vt=gt;const wt=class{constructor(t){e(this,t);this.type="determinate";this.reversed=false;this.value=0;this.buffer=1;this.color=undefined}render(){const{color:t,type:e,reversed:s,value:o,buffer:r}=this;const a=m.getBoolean("_testing");const c=g(this);return n(i,{key:"944b79ed6fce1b2c0ed48681cd8517a5abbddd80",role:"progressbar","aria-valuenow":e==="determinate"?o:null,"aria-valuemin":"0","aria-valuemax":"1",class:f(t,{[c]:true,[`progress-bar-${e}`]:true,"progress-paused":a,"progress-bar-reversed":document.dir==="rtl"?!s:s})},e==="indeterminate"?yt():xt(o,r))}};const yt=()=>n("div",{part:"track",class:"progress-buffer-bar"},n("div",{class:"indeterminate-bar-primary"},n("span",{part:"progress",class:"progress-indeterminate"})),n("div",{class:"indeterminate-bar-secondary"},n("span",{part:"progress",class:"progress-indeterminate"})));const xt=(t,e)=>{const i=d(0,t,1);const s=d(0,e,1);return[n("div",{part:"progress",class:"progress",style:{transform:`scaleX(${i})`}}),n("div",{class:{"buffer-circles-container":true,"ion-hide":s===1},style:{transform:`translateX(${s*100}%)`}},n("div",{class:"buffer-circles-container",style:{transform:`translateX(-${s*100}%)`}},n("div",{part:"stream",class:"buffer-circles"}))),n("div",{part:"track",class:"progress-buffer-bar",style:{transform:`scaleX(${s})`}})]};wt.style={ios:mt,md:vt};const kt=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:strict;pointer-events:none}:host(.unbounded){contain:layout size style}.ripple-effect{border-radius:50%;position:absolute;background-color:currentColor;color:inherit;contain:strict;opacity:0;animation:225ms rippleAnimation forwards, 75ms fadeInAnimation forwards;will-change:transform, opacity;pointer-events:none}.fade-out{transform:translate(var(--translate-end)) scale(var(--final-scale, 1));animation:150ms fadeOutAnimation forwards}@keyframes rippleAnimation{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:scale(1)}to{transform:translate(var(--translate-end)) scale(var(--final-scale, 1))}}@keyframes fadeInAnimation{from{animation-timing-function:linear;opacity:0}to{opacity:0.16}}@keyframes fadeOutAnimation{from{animation-timing-function:linear;opacity:0.16}to{opacity:0}}";const zt=kt;const St=class{constructor(t){e(this,t);this.type="bounded"}async addRipple(t,e){return new Promise((n=>{o((()=>{const i=this.el.getBoundingClientRect();const s=i.width;const o=i.height;const a=Math.sqrt(s*s+o*o);const c=Math.max(o,s);const l=this.unbounded?c:a+Ct;const d=Math.floor(c*$t);const h=l/d;let u=t-i.left;let f=e-i.top;if(this.unbounded){u=s*.5;f=o*.5}const p=u-d*.5;const b=f-d*.5;const m=s*.5-u;const g=o*.5-f;r((()=>{const t=document.createElement("div");t.classList.add("ripple-effect");const e=t.style;e.top=b+"px";e.left=p+"px";e.width=e.height=d+"px";e.setProperty("--final-scale",`${h}`);e.setProperty("--translate-end",`${m}px, ${g}px`);const i=this.el.shadowRoot||this.el;i.appendChild(t);setTimeout((()=>{n((()=>{_t(t)}))}),225+100)}))}))}))}get unbounded(){return this.type==="unbounded"}render(){const t=g(this);return n(i,{key:"f1129019a6d556b008c754aeb79618c69baea9f8",role:"presentation",class:{[t]:true,unbounded:this.unbounded}})}get el(){return s(this)}};const _t=t=>{t.classList.add("fade-out");setTimeout((()=>{t.remove()}),200)};const Ct=10;const $t=.5;St.style=zt;const At=":host{--background:rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.065);border-radius:var(--border-radius, inherit);display:block;width:100%;height:inherit;margin-top:4px;margin-bottom:4px;background:var(--background);line-height:10px;user-select:none;pointer-events:none}span{display:inline-block}:host(.in-media){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;height:100%}:host(.skeleton-text-animated){position:relative;background:linear-gradient(to right, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.065) 8%, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.135) 18%, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.065) 33%);background-size:800px 104px;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:shimmer;animation-timing-function:linear}@keyframes shimmer{0%{background-position:-400px 0}100%{background-position:400px 0}}";const It=At;const Et=class{constructor(t){e(this,t);this.ionStyle=a(this,"ionStyle",7);this.animated=false}componentWillLoad(){this.emitStyle()}emitStyle(){const t={"skeleton-text":true};this.ionStyle.emit(t)}render(){const t=this.animated&&m.getBoolean("animated",true);const e=p("ion-avatar",this.el)||p("ion-thumbnail",this.el);const s=g(this);return n(i,{key:"4dab0fd2de666de12ad8f6dc6ed1e1de0be67ddd",class:{[s]:true,"skeleton-text-animated":t,"in-media":e}},n("span",{key:"f8f908ec24d65e63b14d9a54640a5f18f0fa8fa5"}," "))}get el(){return s(this)}};Et.style=It;
2
+ /*!
3
+ * (C) Ionic http://ionicframework.com - MIT License
4
+ */function Mt(t,e,n,i){let s;if(n==="md"){s=t==="top"?8:-8}else{s=t==="top"?10:-10}if(e&&O){Tt(e,i);const n=e.getBoundingClientRect();if(t==="top"){s+=n.bottom}else if(t==="bottom"){s-=O.innerHeight-n.top}return{top:`${s}px`,bottom:`${s}px`}}else{return{top:`calc(${s}px + var(--ion-safe-area-top, 0px))`,bottom:`calc(${s}px - var(--ion-safe-area-bottom, 0px))`}}}function Tt(t,e){if(t.offsetParent===null){x("The positionAnchor element for ion-toast was found in the DOM, but appears to be hidden. This may lead to unexpected positioning of the toast.",e)}}const jt=(t,e)=>Math.floor(t/2-e/2);
5
+ /*!
6
+ * (C) Ionic http://ionicframework.com - MIT License
7
+ */const Lt=(t,e)=>{const n=L();const i=L();const{position:s,top:o,bottom:r}=e;const a=h(t);const c=a.querySelector(".toast-wrapper");i.addElement(c);switch(s){case"top":i.fromTo("transform","translateY(-100%)",`translateY(${o})`);break;case"middle":const e=jt(t.clientHeight,c.clientHeight);c.style.top=`${e}px`;i.fromTo("opacity",.01,1);break;default:i.fromTo("transform","translateY(100%)",`translateY(${r})`);break}return n.easing("cubic-bezier(.155,1.105,.295,1.12)").duration(400).addAnimation(i)};
8
+ /*!
9
+ * (C) Ionic http://ionicframework.com - MIT License
10
+ */const Ot=(t,e)=>{const n=L();const i=L();const{position:s,top:o,bottom:r}=e;const a=h(t);const c=a.querySelector(".toast-wrapper");i.addElement(c);switch(s){case"top":i.fromTo("transform",`translateY(${o})`,"translateY(-100%)");break;case"middle":i.fromTo("opacity",.99,0);break;default:i.fromTo("transform",`translateY(${r})`,"translateY(100%)");break}return n.easing("cubic-bezier(.36,.66,.04,1)").duration(300).addAnimation(i)};
11
+ /*!
12
+ * (C) Ionic http://ionicframework.com - MIT License
13
+ */const Dt=(t,e)=>{const n=L();const i=L();const{position:s,top:o,bottom:r}=e;const a=h(t);const c=a.querySelector(".toast-wrapper");i.addElement(c);switch(s){case"top":c.style.setProperty("transform",`translateY(${o})`);i.fromTo("opacity",.01,1);break;case"middle":const e=jt(t.clientHeight,c.clientHeight);c.style.top=`${e}px`;i.fromTo("opacity",.01,1);break;default:c.style.setProperty("transform",`translateY(${r})`);i.fromTo("opacity",.01,1);break}return n.easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation(i)};
14
+ /*!
15
+ * (C) Ionic http://ionicframework.com - MIT License
16
+ */const Pt=t=>{const e=L();const n=L();const i=h(t);const s=i.querySelector(".toast-wrapper");n.addElement(s).fromTo("opacity",.99,0);return e.easing("cubic-bezier(.36,.66,.04,1)").duration(300).addAnimation(n)};
17
+ /*!
18
+ * (C) Ionic http://ionicframework.com - MIT License
19
+ */const Bt=(t,e,n)=>{const i=h(t).querySelector(".toast-wrapper");const s=t.clientHeight;const o=i.getBoundingClientRect();let r=0;const a=.5;const c=t.position==="middle"?.5:0;const l=t.position==="top"?-1:1;const d=jt(s,o.height);const u=[{offset:0,transform:`translateY(-${d+o.height}px)`},{offset:.5,transform:`translateY(0px)`},{offset:1,transform:`translateY(${d+o.height}px)`}];const f=L("toast-swipe-to-dismiss-animation").addElement(i).duration(100);switch(t.position){case"middle":r=s+o.height;f.keyframes(u);f.progressStart(true,.5);break;case"top":r=o.bottom;f.keyframes([{offset:0,transform:`translateY(${e.top})`},{offset:1,transform:"translateY(-100%)"}]);f.progressStart(true,0);break;case"bottom":default:r=s-o.top;f.keyframes([{offset:0,transform:`translateY(${e.bottom})`},{offset:1,transform:"translateY(100%)"}]);f.progressStart(true,0);break}const p=t=>t*l/r;const b=t=>{const e=c+p(t.deltaY);f.progressStep(e)};const m=e=>{const s=e.velocityY;const o=(e.deltaY+s*1e3)/r*l;g.enable(false);let c=true;let h=1;let b=0;let m=0;if(t.position==="middle"){c=o>=a/2||o<=-a/2;h=1;b=0;const t=i.getBoundingClientRect();const n=t.top-d;const s=`${n}px`;const r=e.deltaY<=0?-1:1;const l=(d+t.height)*r;const u=c?`${l}px`:"0px";const p=[{offset:0,transform:`translateY(${s})`},{offset:1,transform:`translateY(${u})`}];f.keyframes(p);m=l-n}else{c=o>=a;h=c?1:0;b=p(e.deltaY);const t=c?1-b:b;m=t*r}const v=Math.min(Math.abs(m)/Math.abs(s),200);f.onFinish((()=>{if(c){n();f.destroy()}else{if(t.position==="middle"){f.keyframes(u).progressStart(true,.5)}else{f.progressStart(true,0)}g.enable(true)}}),{oneTimeCallback:true}).progressEnd(h,b,v)};const g=D({el:i,gestureName:"toast-swipe-to-dismiss",gesturePriority:k,direction:"y",onMove:b,onEnd:m});return g};const Rt=":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);contain:strict;z-index:1001;pointer-events:none}@supports (inset-inline-start: 0){:host{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host{left:0}:host-context([dir=rtl]){left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)){left:unset;right:unset;right:0}}}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);box-shadow:var(--box-shadow)}@supports (inset-inline-start: 0){.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}}@supports not (inset-inline-start: 0){.toast-wrapper{left:var(--start);right:var(--end)}:host-context([dir=rtl]) .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}[dir=rtl] .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}@supports selector(:dir(rtl)){.toast-wrapper:dir(rtl){left:unset;right:unset;left:var(--end);right:var(--start)}}}.toast-wrapper.toast-top{transform:translate3d(0, -100%, 0);top:0}.toast-wrapper.toast-bottom{transform:translate3d(0, 100%, 0);bottom:0}.toast-container{display:flex;align-items:center;pointer-events:auto;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{flex-wrap:wrap}.toast-layout-baseline .toast-content{display:flex;flex:1;flex-direction:column;justify-content:center}.toast-icon{-webkit-margin-start:16px;margin-inline-start:16px}.toast-content{min-width:0}.toast-message{flex:1;white-space:var(--white-space)}.toast-button-group{display:flex}.toast-layout-stacked .toast-button-group{justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-icon,.toast-button-icon{font-size:1.4em}.toast-button-inner{display:flex;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{--background:var(--ion-color-step-50, #f2f2f2);--border-radius:14px;--button-color:var(--ion-color-primary, #3880ff);--color:var(--ion-color-step-850, #262626);--max-width:700px;--max-height:478px;--start:10px;--end:10px;font-size:clamp(14px, 0.875rem, 43.4px)}.toast-wrapper{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;z-index:10}@supports (backdrop-filter: blur(0)){:host(.toast-translucent) .toast-wrapper{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);backdrop-filter:saturate(180%) blur(20px)}:host(.ion-color.toast-translucent) .toast-wrapper{background:rgba(var(--ion-color-base-rgb), 0.8)}}.toast-wrapper.toast-middle{opacity:0.01}.toast-content{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:15px;padding-bottom:15px}.toast-header{margin-bottom:2px;font-weight:500}.toast-button{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:10px;padding-bottom:10px;min-height:44px;transition:background-color, opacity 100ms linear;border:0;background-color:transparent;font-family:var(--ion-font-family);font-size:clamp(17px, 1.0625rem, 21.998px);font-weight:500;overflow:hidden}.toast-button.ion-activated{opacity:0.4}@media (any-hover: hover){.toast-button:hover{opacity:0.6}}";const Ut=Rt;const Nt=":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);contain:strict;z-index:1001;pointer-events:none}@supports (inset-inline-start: 0){:host{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host{left:0}:host-context([dir=rtl]){left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)){left:unset;right:unset;right:0}}}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);box-shadow:var(--box-shadow)}@supports (inset-inline-start: 0){.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}}@supports not (inset-inline-start: 0){.toast-wrapper{left:var(--start);right:var(--end)}:host-context([dir=rtl]) .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}[dir=rtl] .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}@supports selector(:dir(rtl)){.toast-wrapper:dir(rtl){left:unset;right:unset;left:var(--end);right:var(--start)}}}.toast-wrapper.toast-top{transform:translate3d(0, -100%, 0);top:0}.toast-wrapper.toast-bottom{transform:translate3d(0, 100%, 0);bottom:0}.toast-container{display:flex;align-items:center;pointer-events:auto;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{flex-wrap:wrap}.toast-layout-baseline .toast-content{display:flex;flex:1;flex-direction:column;justify-content:center}.toast-icon{-webkit-margin-start:16px;margin-inline-start:16px}.toast-content{min-width:0}.toast-message{flex:1;white-space:var(--white-space)}.toast-button-group{display:flex}.toast-layout-stacked .toast-button-group{justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-icon,.toast-button-icon{font-size:1.4em}.toast-button-inner{display:flex;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{--background:var(--ion-color-step-800, #333333);--border-radius:4px;--box-shadow:0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);--button-color:var(--ion-color-primary, #3880ff);--color:var(--ion-color-step-50, #f2f2f2);--max-width:700px;--start:8px;--end:8px;font-size:0.875rem}.toast-wrapper{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;opacity:0.01;z-index:10}.toast-content{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:14px;padding-bottom:14px}.toast-header{margin-bottom:2px;font-weight:500;line-height:1.25rem}.toast-message{line-height:1.25rem}.toast-layout-baseline .toast-button-group-start{-webkit-margin-start:8px;margin-inline-start:8px}.toast-layout-stacked .toast-button-group-start{-webkit-margin-end:8px;margin-inline-end:8px;margin-top:8px}.toast-layout-baseline .toast-button-group-end{-webkit-margin-end:8px;margin-inline-end:8px}.toast-layout-stacked .toast-button-group-end{-webkit-margin-end:8px;margin-inline-end:8px;margin-bottom:8px}.toast-button{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:10px;padding-bottom:10px;position:relative;background-color:transparent;font-family:var(--ion-font-family);font-size:0.875rem;font-weight:500;letter-spacing:0.84px;text-transform:uppercase;overflow:hidden}.toast-button-cancel{color:var(--ion-color-step-100, #e6e6e6)}.toast-button-icon-only{border-radius:50%;-webkit-padding-start:9px;padding-inline-start:9px;-webkit-padding-end:9px;padding-inline-end:9px;padding-top:9px;padding-bottom:9px;width:36px;height:36px}@media (any-hover: hover){.toast-button:hover{background-color:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.08)}.toast-button-cancel:hover{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.08)}}";const Xt=Nt;const Wt=class{constructor(t){e(this,t);this.didPresent=a(this,"ionToastDidPresent",7);this.willPresent=a(this,"ionToastWillPresent",7);this.willDismiss=a(this,"ionToastWillDismiss",7);this.didDismiss=a(this,"ionToastDidDismiss",7);this.didPresentShorthand=a(this,"didPresent",7);this.willPresentShorthand=a(this,"willPresent",7);this.willDismissShorthand=a(this,"willDismiss",7);this.didDismissShorthand=a(this,"didDismiss",7);this.delegateController=z(this);this.lockController=y();this.triggerController=S();this.customHTMLEnabled=m.get("innerHTMLTemplatesEnabled",v);this.presented=false;this.dispatchCancelHandler=t=>{const e=t.detail.role;if(_(e)){const t=this.getButtons().find((t=>t.role==="cancel"));this.callButtonHandler(t)}};this.createSwipeGesture=t=>{const e=this.gesture=Bt(this.el,t,(()=>{this.dismiss(undefined,T)}));e.enable(true)};this.destroySwipeGesture=()=>{const{gesture:t}=this;if(t===undefined){return}t.destroy();this.gesture=undefined};this.prefersSwipeGesture=()=>{const{swipeGesture:t}=this;return t==="vertical"};this.revealContentToScreenReader=false;this.overlayIndex=undefined;this.delegate=undefined;this.hasController=false;this.color=undefined;this.enterAnimation=undefined;this.leaveAnimation=undefined;this.cssClass=undefined;this.duration=m.getNumber("toastDuration",0);this.header=undefined;this.layout="baseline";this.message=undefined;this.keyboardClose=false;this.position="bottom";this.positionAnchor=undefined;this.buttons=undefined;this.translucent=false;this.animated=true;this.icon=undefined;this.htmlAttributes=undefined;this.swipeGesture=undefined;this.isOpen=false;this.trigger=undefined}swipeGestureChanged(){this.destroySwipeGesture();if(this.presented&&this.prefersSwipeGesture()){this.createSwipeGesture(this.lastPresentedPosition)}}onIsOpenChange(t,e){if(t===true&&e===false){this.present()}else if(t===false&&e===true){this.dismiss()}}triggerChanged(){const{trigger:t,el:e,triggerController:n}=this;if(t){n.addClickListener(e,t)}}connectedCallback(){C(this.el);this.triggerChanged()}disconnectedCallback(){this.triggerController.removeClickListener()}componentWillLoad(){$(this.el)}componentDidLoad(){if(this.isOpen===true){u((()=>this.present()))}this.triggerChanged()}async present(){const t=await this.lockController.lock();await this.delegateController.attachViewToDom();const{el:e,position:n}=this;const i=this.getAnchorElement();const s=Mt(n,i,g(this),e);this.lastPresentedPosition=s;await A(this,"toastEnter",Lt,Dt,{position:n,top:s.top,bottom:s.bottom});this.revealContentToScreenReader=true;if(this.duration>0){this.durationTimeout=setTimeout((()=>this.dismiss(undefined,"timeout")),this.duration)}if(this.prefersSwipeGesture()){this.createSwipeGesture(s)}t()}async dismiss(t,e){var n,i;const s=await this.lockController.lock();const{durationTimeout:o,position:r,lastPresentedPosition:a}=this;if(o){clearTimeout(o)}const c=await I(this,t,e,"toastLeave",Ot,Pt,{position:r,top:(n=a===null||a===void 0?void 0:a.top)!==null&&n!==void 0?n:"",bottom:(i=a===null||a===void 0?void 0:a.bottom)!==null&&i!==void 0?i:""});if(c){this.delegateController.removeViewFromDom();this.revealContentToScreenReader=false}this.lastPresentedPosition=undefined;this.destroySwipeGesture();s();return c}onDidDismiss(){return E(this.el,"ionToastDidDismiss")}onWillDismiss(){return E(this.el,"ionToastWillDismiss")}getButtons(){const t=this.buttons?this.buttons.map((t=>typeof t==="string"?{text:t}:t)):[];return t}getAnchorElement(){const{position:t,positionAnchor:e,el:n}=this;if(e===undefined){return}if(t==="middle"&&e!==undefined){x('The positionAnchor property is ignored when using position="middle".',this.el);return undefined}if(typeof e==="string"){const t=document.getElementById(e);if(t===null){x(`An anchor element with an ID of "${e}" was not found in the DOM.`,n);return undefined}return t}if(e instanceof HTMLElement){return e}x("Invalid positionAnchor value:",e,n);return undefined}async buttonClick(t){const e=t.role;if(_(e)){return this.dismiss(undefined,e)}const n=await this.callButtonHandler(t);if(n){return this.dismiss(undefined,e)}return Promise.resolve()}async callButtonHandler(t){if(t===null||t===void 0?void 0:t.handler){try{const e=await M(t.handler);if(e===false){return false}}catch(t){console.error(t)}}return true}renderButtons(t,e){if(t.length===0){return}const i=g(this);const s={"toast-button-group":true,[`toast-button-group-${e}`]:true};return n("div",{class:s},t.map((t=>n("button",Object.assign({},t.htmlAttributes,{type:"button",class:Ht(t),tabIndex:0,onClick:()=>this.buttonClick(t),part:Ft(t)}),n("div",{class:"toast-button-inner"},t.icon&&n("ion-icon",{"aria-hidden":"true",icon:t.icon,slot:t.text===undefined?"icon-only":undefined,class:"toast-button-icon"}),t.text),i==="md"&&n("ion-ripple-effect",{type:t.icon!==undefined&&t.text===undefined?"unbounded":"bounded"})))))}renderToastMessage(t,e=null){const{customHTMLEnabled:i,message:s}=this;if(i){return n("div",{key:t,"aria-hidden":e,class:"toast-message",part:"message",innerHTML:w(s)})}return n("div",{key:t,"aria-hidden":e,class:"toast-message",part:"message"},s)}renderHeader(t,e=null){return n("div",{key:t,class:"toast-header","aria-hidden":e,part:"header"},this.header)}render(){const{layout:t,el:e,revealContentToScreenReader:s,header:o,message:r}=this;const a=this.getButtons();const c=a.filter((t=>t.side==="start"));const l=a.filter((t=>t.side!=="start"));const d=g(this);const h={"toast-wrapper":true,[`toast-${this.position}`]:true,[`toast-layout-${t}`]:true};if(t==="stacked"&&c.length>0&&l.length>0){x("This toast is using start and end buttons with the stacked toast layout. We recommend following the best practice of using either start or end buttons with the stacked toast layout.",e)}return n(i,Object.assign({key:"23803334fb668f6ce7044d3a321cb84bc753bd16",tabindex:"-1"},this.htmlAttributes,{style:{zIndex:`${6e4+this.overlayIndex}`},class:f(this.color,Object.assign(Object.assign({[d]:true},b(this.cssClass)),{"overlay-hidden":true,"toast-translucent":this.translucent})),onIonToastWillDismiss:this.dispatchCancelHandler}),n("div",{key:"7cd7138ba079fccf97f318b91e9986491ab4214d",class:h},n("div",{key:"93b78fa64e24435adeb77a04c1d1d53d2f093864",class:"toast-container",part:"container"},this.renderButtons(c,"start"),this.icon!==undefined&&n("ion-icon",{key:"9a3c71b164ebcfba2540acb7568beffa76b62f47",class:"toast-icon",part:"icon",icon:this.icon,lazy:false,"aria-hidden":"true"}),n("div",{key:"feb9268102d844f1314205f7440de7066cf0620e",class:"toast-content",role:"status","aria-atomic":"true","aria-live":"polite"},!s&&o!==undefined&&this.renderHeader("oldHeader","true"),!s&&r!==undefined&&this.renderToastMessage("oldMessage","true"),s&&o!==undefined&&this.renderHeader("header"),s&&r!==undefined&&this.renderToastMessage("header")),this.renderButtons(l,"end"))))}get el(){return s(this)}static get watchers(){return{swipeGesture:["swipeGestureChanged"],isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}}};const Ht=t=>Object.assign({"toast-button":true,"toast-button-icon-only":t.icon!==undefined&&t.text===undefined,[`toast-button-${t.role}`]:t.role!==undefined,"ion-focusable":true,"ion-activatable":true},b(t.cssClass));const Ft=t=>_(t.role)?"button cancel":"button";Wt.style={ios:Ut,md:Xt};const Yt=":host{font-family:var(--font-sans);display:block}button#new{cursor:pointer;display:flex;align-items:center;justify-content:center;border:none;width:var(--size-10);height:var(--size-10);background-color:var(--pos-primary-color);color:var(--pos-primary-text-color);font-size:var(--scale-6);border-radius:var(--radius-xs)}button#new:hover,button#new:focus{outline:none;filter:brightness(110%);box-shadow:var(--shadow-sm)}pos-new-thing-form{margin:var(--scale-3)}";const Vt=Yt;const qt=class{constructor(t){e(this,t)}openDialog(){this.dialog.showModal()}render(){return n(i,{key:"4adcc80d1a0d810279a85be26c8ec6717d91c8a2"},n("button",{key:"9a3cdd12719c4d3e4ae1e0eff60ccd6101395d92",id:"new",title:"Add a new thing",onClick:()=>this.openDialog()},n("ion-icon",{key:"efb2723db05962c02293931d0a334ba55908f596",name:"add-circle-outline"})),n("pos-dialog",{key:"954a947b2dc4082519c50cb71a4b6f0f3550c0fb",ref:t=>this.dialog=t},n("span",{key:"0a7e91bab3d8740bc8228782d70a980779db7ca1",slot:"title"},"Add a new thing"),n("pos-new-thing-form",{key:"66ac9bcf72a71b58f4dbbc5cfd214b3609c78cbf",slot:"content",referenceUri:this.referenceUri})))}};qt.style=Vt;const Zt=localStorage.getItem("settings");const Kt=Zt?JSON.parse(Zt):{offlineCache:false};const Gt=P(Kt);Jt();Qt();function Jt(){Gt.on("set",(()=>{const t=JSON.stringify(Gt.state);localStorage.setItem("settings",t)}))}function Qt(){window.addEventListener("storage",(t=>{if(t.key==="settings"&&t.newValue){const e=JSON.parse(t.newValue);Gt.state.offlineCache=e.offlineCache}}))}const te=(t,e)=>e.some((e=>t instanceof e));let ee;let ne;function ie(){return ee||(ee=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function se(){return ne||(ne=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const oe=new WeakMap;const re=new WeakMap;const ae=new WeakMap;function ce(t){const e=new Promise(((e,n)=>{const i=()=>{t.removeEventListener("success",s);t.removeEventListener("error",o)};const s=()=>{e(pe(t.result));i()};const o=()=>{n(t.error);i()};t.addEventListener("success",s);t.addEventListener("error",o)}));ae.set(e,t);return e}function le(t){if(oe.has(t))return;const e=new Promise(((e,n)=>{const i=()=>{t.removeEventListener("complete",s);t.removeEventListener("error",o);t.removeEventListener("abort",o)};const s=()=>{e();i()};const o=()=>{n(t.error||new DOMException("AbortError","AbortError"));i()};t.addEventListener("complete",s);t.addEventListener("error",o);t.addEventListener("abort",o)}));oe.set(t,e)}let de={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return oe.get(t);if(e==="store"){return n.objectStoreNames[1]?undefined:n.objectStore(n.objectStoreNames[0])}}return pe(t[e])},set(t,e,n){t[e]=n;return true},has(t,e){if(t instanceof IDBTransaction&&(e==="done"||e==="store")){return true}return e in t}};function he(t){de=t(de)}function ue(t){if(se().includes(t)){return function(...e){t.apply(be(this),e);return pe(this.request)}}return function(...e){return pe(t.apply(be(this),e))}}function fe(t){if(typeof t==="function")return ue(t);if(t instanceof IDBTransaction)le(t);if(te(t,ie()))return new Proxy(t,de);return t}function pe(t){if(t instanceof IDBRequest)return ce(t);if(re.has(t))return re.get(t);const e=fe(t);if(e!==t){re.set(t,e);ae.set(e,t)}return e}const be=t=>ae.get(t);function me(t,e,{blocked:n,upgrade:i,blocking:s,terminated:o}={}){const r=indexedDB.open(t,e);const a=pe(r);if(i){r.addEventListener("upgradeneeded",(t=>{i(pe(r.result),t.oldVersion,t.newVersion,pe(r.transaction),t)}))}if(n){r.addEventListener("blocked",(t=>n(t.oldVersion,t.newVersion,t)))}a.then((t=>{if(o)t.addEventListener("close",(()=>o()));if(s){t.addEventListener("versionchange",(t=>s(t.oldVersion,t.newVersion,t)))}})).catch((()=>{}));return a}const ge=["get","getKey","getAll","getAllKeys","count"];const ve=["put","add","delete","clear"];const we=new Map;function ye(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e==="string")){return}if(we.get(e))return we.get(e);const n=e.replace(/FromIndex$/,"");const i=e!==n;const s=ve.includes(n);if(!(n in(i?IDBIndex:IDBObjectStore).prototype)||!(s||ge.includes(n))){return}const o=async function(t,...e){const o=this.transaction(t,s?"readwrite":"readonly");let r=o.store;if(i)r=r.index(e.shift());return(await Promise.all([r[n](...e),s&&o.done]))[0]};we.set(e,o);return o}he((t=>({...t,get:(e,n,i)=>ye(e,n)||t.get(e,n,i),has:(e,n)=>!!ye(e,n)||t.has(e,n)})));const xe=["continue","continuePrimaryKey","advance"];const ke={};const ze=new WeakMap;const Se=new WeakMap;const _e={get(t,e){if(!xe.includes(e))return t[e];let n=ke[e];if(!n){n=ke[e]=function(...t){ze.set(this,Se.get(this)[e](...t))}}return n}};async function*Ce(...t){let e=this;if(!(e instanceof IDBCursor)){e=await e.openCursor(...t)}if(!e)return;e=e;const n=new Proxy(e,_e);Se.set(n,e);ae.set(n,be(e));while(e){yield n;e=await(ze.get(n)||e.continue());ze.delete(n)}}function $e(t,e){return e===Symbol.asyncIterator&&te(t,[IDBIndex,IDBObjectStore,IDBCursor])||e==="iterate"&&te(t,[IDBIndex,IDBObjectStore])}he((t=>({...t,get(e,n,i){if($e(e,n))return Ce;return t.get(e,n,i)},has(e,n){return $e(e,n)||t.has(e,n)}})));class Ae{constructor(){this.dbPromise=me("OfflineCacheDB",1,{upgrade(t){if(!t.objectStoreNames.contains("documents")){const e=t.createObjectStore("documents",{keyPath:"url"});e.createIndex("url-revision",["url","revision"])}}})}async clear(){const t=await this.dbPromise;return t.clear("documents")}async get(t){const e=await this.dbPromise;return await e.get("documents",t)}async put(t){const e=await this.dbPromise;const n=await e.getFromIndex("documents","url-revision",[t.url,t.revision]);if(n){return}await e.put("documents",t)}}class Ie{isOnline(){return navigator.onLine}}const Ee=t=>new U({offlineCache:t.offlineCache?new Ae:new N,onlineStatus:new Ie});function Me(t){return typeof t==="function"}function Te(t){const e=t=>{Error.call(t);t.stack=(new Error).stack};const n=t(e);n.prototype=Object.create(Error.prototype);n.prototype.constructor=n;return n}const je=Te((t=>function e(n){t(this);this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map(((t,e)=>`${e+1}) ${t.toString()}`)).join("\n ")}`:"";this.name="UnsubscriptionError";this.errors=n}));function Le(t,e){if(t){const n=t.indexOf(e);0<=n&&t.splice(n,1)}}class Oe{constructor(t){this.initialTeardown=t;this.closed=false;this._parentage=null;this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=true;const{_parentage:e}=this;if(e){this._parentage=null;if(Array.isArray(e)){for(const t of e){t.remove(this)}}else{e.remove(this)}}const{initialTeardown:n}=this;if(Me(n)){try{n()}catch(e){t=e instanceof je?e.errors:[e]}}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const e of i){try{Be(e)}catch(e){t=t!==null&&t!==void 0?t:[];if(e instanceof je){t=[...t,...e.errors]}else{t.push(e)}}}}if(t){throw new je(t)}}}add(t){var e;if(t&&t!==this){if(this.closed){Be(t)}else{if(t instanceof Oe){if(t.closed||t._hasParent(this)){return}t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;if(e===t){this._parentage=null}else if(Array.isArray(e)){Le(e,t)}}remove(t){const{_finalizers:e}=this;e&&Le(e,t);if(t instanceof Oe){t._removeParent(this)}}}Oe.EMPTY=(()=>{const t=new Oe;t.closed=true;return t})();const De=Oe.EMPTY;function Pe(t){return t instanceof Oe||t&&"closed"in t&&Me(t.remove)&&Me(t.add)&&Me(t.unsubscribe)}function Be(t){if(Me(t)){t()}else{t.unsubscribe()}}const Re={onUnhandledError:null,onStoppedNotification:null,Promise:undefined,useDeprecatedSynchronousErrorHandling:false,useDeprecatedNextContext:false};const Ue={setTimeout(t,e,...n){const{delegate:i}=Ue;if(i===null||i===void 0?void 0:i.setTimeout){return i.setTimeout(t,e,...n)}return setTimeout(t,e,...n)},clearTimeout(t){const{delegate:e}=Ue;return((e===null||e===void 0?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:undefined};function Ne(t){Ue.setTimeout((()=>{const{onUnhandledError:e}=Re;if(e){e(t)}else{throw t}}))}function Xe(){}const We=(()=>Ye("C",undefined,undefined))();function He(t){return Ye("E",undefined,t)}function Fe(t){return Ye("N",t,undefined)}function Ye(t,e,n){return{kind:t,value:e,error:n}}let Ve=null;function qe(t){if(Re.useDeprecatedSynchronousErrorHandling){const e=!Ve;if(e){Ve={errorThrown:false,error:null}}t();if(e){const{errorThrown:t,error:e}=Ve;Ve=null;if(t){throw e}}}else{t()}}class Ze extends Oe{constructor(t){super();this.isStopped=false;if(t){this.destination=t;if(Pe(t)){t.add(this)}}else{this.destination=sn}}static create(t,e,n){return new Qe(t,e,n)}next(t){if(this.isStopped){nn(Fe(t),this)}else{this._next(t)}}error(t){if(this.isStopped){nn(He(t),this)}else{this.isStopped=true;this._error(t)}}complete(){if(this.isStopped){nn(We,this)}else{this.isStopped=true;this._complete()}}unsubscribe(){if(!this.closed){this.isStopped=true;super.unsubscribe();this.destination=null}}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Ke=Function.prototype.bind;function Ge(t,e){return Ke.call(t,e)}class Je{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next){try{e.next(t)}catch(t){tn(t)}}}error(t){const{partialObserver:e}=this;if(e.error){try{e.error(t)}catch(t){tn(t)}}else{tn(t)}}complete(){const{partialObserver:t}=this;if(t.complete){try{t.complete()}catch(t){tn(t)}}}}class Qe extends Ze{constructor(t,e,n){super();let i;if(Me(t)||!t){i={next:t!==null&&t!==void 0?t:undefined,error:e!==null&&e!==void 0?e:undefined,complete:n!==null&&n!==void 0?n:undefined}}else{let e;if(this&&Re.useDeprecatedNextContext){e=Object.create(t);e.unsubscribe=()=>this.unsubscribe();i={next:t.next&&Ge(t.next,e),error:t.error&&Ge(t.error,e),complete:t.complete&&Ge(t.complete,e)}}else{i=t}}this.destination=new Je(i)}}function tn(t){{Ne(t)}}function en(t){throw t}function nn(t,e){const{onStoppedNotification:n}=Re;n&&Ue.setTimeout((()=>n(t,e)))}const sn={closed:true,next:Xe,error:en,complete:Xe};const on=(()=>typeof Symbol==="function"&&Symbol.observable||"@@observable")();function rn(t){return t}function an(t){if(t.length===0){return rn}if(t.length===1){return t[0]}return function e(n){return t.reduce(((t,e)=>e(t)),n)}}class cn{constructor(t){if(t){this._subscribe=t}}lift(t){const e=new cn;e.source=this;e.operator=t;return e}subscribe(t,e,n){const i=hn(t)?t:new Qe(t,e,n);qe((()=>{const{operator:t,source:e}=this;i.add(t?t.call(i,e):e?this._subscribe(i):this._trySubscribe(i))}));return i}_trySubscribe(t){try{return this._subscribe(t)}catch(e){t.error(e)}}forEach(t,e){e=ln(e);return new e(((e,n)=>{const i=new Qe({next:e=>{try{t(e)}catch(t){n(t);i.unsubscribe()}},error:n,complete:e});this.subscribe(i)}))}_subscribe(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)}[on](){return this}pipe(...t){return an(t)(this)}toPromise(t){t=ln(t);return new t(((t,e)=>{let n;this.subscribe((t=>n=t),(t=>e(t)),(()=>t(n)))}))}}cn.create=t=>new cn(t);function ln(t){var e;return(e=t!==null&&t!==void 0?t:Re.Promise)!==null&&e!==void 0?e:Promise}function dn(t){return t&&Me(t.next)&&Me(t.error)&&Me(t.complete)}function hn(t){return t&&t instanceof Ze||dn(t)&&Pe(t)}function un(t){return Me(t===null||t===void 0?void 0:t.lift)}function fn(t){return e=>{if(un(e)){return e.lift((function(e){try{return t(e,this)}catch(t){this.error(t)}}))}throw new TypeError("Unable to lift unknown Observable type")}}function pn(t,e,n,i,s){return new bn(t,e,n,i,s)}class bn extends Ze{constructor(t,e,n,i,s,o){super(t);this.onFinalize=s;this.shouldUnsubscribe=o;this._next=e?function(n){try{e(n)}catch(e){t.error(e)}}:super._next;this._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:super._error;this._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe();!e&&((t=this.onFinalize)===null||t===void 0?void 0:t.call(this))}}}const mn=Te((t=>function e(){t(this);this.name="ObjectUnsubscribedError";this.message="object unsubscribed"}));class gn extends cn{constructor(){super();this.closed=false;this.currentObservers=null;this.observers=[];this.isStopped=false;this.hasError=false;this.thrownError=null}lift(t){const e=new vn(this,this);e.operator=t;return e}_throwIfClosed(){if(this.closed){throw new mn}}next(t){qe((()=>{this._throwIfClosed();if(!this.isStopped){if(!this.currentObservers){this.currentObservers=Array.from(this.observers)}for(const e of this.currentObservers){e.next(t)}}}))}error(t){qe((()=>{this._throwIfClosed();if(!this.isStopped){this.hasError=this.isStopped=true;this.thrownError=t;const{observers:e}=this;while(e.length){e.shift().error(t)}}}))}complete(){qe((()=>{this._throwIfClosed();if(!this.isStopped){this.isStopped=true;const{observers:t}=this;while(t.length){t.shift().complete()}}}))}unsubscribe(){this.isStopped=this.closed=true;this.observers=this.currentObservers=null}get observed(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0}_trySubscribe(t){this._throwIfClosed();return super._trySubscribe(t)}_subscribe(t){this._throwIfClosed();this._checkFinalizedStatuses(t);return this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:e,isStopped:n,observers:i}=this;if(e||n){return De}this.currentObservers=null;i.push(t);return new Oe((()=>{this.currentObservers=null;Le(i,t)}))}_checkFinalizedStatuses(t){const{hasError:e,thrownError:n,isStopped:i}=this;if(e){t.error(n)}else if(i){t.complete()}}asObservable(){const t=new cn;t.source=this;return t}}gn.create=(t,e)=>new vn(t,e);class vn extends gn{constructor(t,e){super();this.destination=t;this.source=e}next(t){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.next)===null||n===void 0?void 0:n.call(e,t)}error(t){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.error)===null||n===void 0?void 0:n.call(e,t)}complete(){var t,e;(e=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||e===void 0?void 0:e.call(t)}_subscribe(t){var e,n;return(n=(e=this.source)===null||e===void 0?void 0:e.subscribe(t))!==null&&n!==void 0?n:De}}const wn={now(){return(wn.delegate||Date).now()},delegate:undefined};class yn extends Oe{constructor(t,e){super()}schedule(t,e=0){return this}}const xn={setInterval(t,e,...n){const{delegate:i}=xn;if(i===null||i===void 0?void 0:i.setInterval){return i.setInterval(t,e,...n)}return setInterval(t,e,...n)},clearInterval(t){const{delegate:e}=xn;return((e===null||e===void 0?void 0:e.clearInterval)||clearInterval)(t)},delegate:undefined};class kn extends yn{constructor(t,e){super(t,e);this.scheduler=t;this.work=e;this.pending=false}schedule(t,e=0){var n;if(this.closed){return this}this.state=t;const i=this.id;const s=this.scheduler;if(i!=null){this.id=this.recycleAsyncId(s,i,e)}this.pending=true;this.delay=e;this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(s,this.id,e);return this}requestAsyncId(t,e,n=0){return xn.setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(n!=null&&this.delay===n&&this.pending===false){return e}if(e!=null){xn.clearInterval(e)}return undefined}execute(t,e){if(this.closed){return new Error("executing a cancelled action")}this.pending=false;const n=this._execute(t,e);if(n){return n}else if(this.pending===false&&this.id!=null){this.id=this.recycleAsyncId(this.scheduler,this.id,null)}}_execute(t,e){let n=false;let i;try{this.work(t)}catch(t){n=true;i=t?t:new Error("Scheduled action threw falsy error")}if(n){this.unsubscribe();return i}}unsubscribe(){if(!this.closed){const{id:t,scheduler:e}=this;const{actions:n}=e;this.work=this.state=this.scheduler=null;this.pending=false;Le(n,this);if(t!=null){this.id=this.recycleAsyncId(e,t,null)}this.delay=null;super.unsubscribe()}}}class zn{constructor(t,e=zn.now){this.schedulerActionCtor=t;this.now=e}schedule(t,e=0,n){return new this.schedulerActionCtor(this,t).schedule(n,e)}}zn.now=wn.now;class Sn extends zn{constructor(t,e=zn.now){super(t,e);this.actions=[];this._active=false}flush(t){const{actions:e}=this;if(this._active){e.push(t);return}let n;this._active=true;do{if(n=t.execute(t.state,t.delay)){break}}while(t=e.shift());this._active=false;if(n){while(t=e.shift()){t.unsubscribe()}throw n}}}const _n=new Sn(kn);function Cn(t,e,n,i){function s(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function r(t){try{c(i.next(t))}catch(t){o(t)}}function a(t){try{c(i["throw"](t))}catch(t){o(t)}}function c(t){t.done?n(t.value):s(t.value).then(r,a)}c((i=i.apply(t,e||[])).next())}))}function $n(t){var e=typeof Symbol==="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function An(t){return this instanceof An?(this.v=t,this):new An(t)}function In(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n.apply(t,e||[]),s,o=[];return s={},r("next"),r("throw"),r("return"),s[Symbol.asyncIterator]=function(){return this},s;function r(t){if(i[t])s[t]=function(e){return new Promise((function(n,i){o.push([t,e,n,i])>1||a(t,e)}))}}function a(t,e){try{c(i[t](e))}catch(t){h(o[0][3],t)}}function c(t){t.value instanceof An?Promise.resolve(t.value.v).then(l,d):h(o[0][2],t)}function l(t){a("next",t)}function d(t){a("throw",t)}function h(t,e){if(t(e),o.shift(),o.length)a(o[0][0],o[0][1])}}function En(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof $n==="function"?$n(t):t[Symbol.iterator](),n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n);function i(e){n[e]=t[e]&&function(n){return new Promise((function(i,o){n=t[e](n),s(i,o,n.done,n.value)}))}}function s(t,e,n,i){Promise.resolve(i).then((function(e){t({value:e,done:n})}),e)}}typeof SuppressedError==="function"?SuppressedError:function(t,e,n){var i=new Error(n);return i.name="SuppressedError",i.error=t,i.suppressed=e,i};const Mn=t=>t&&typeof t.length==="number"&&typeof t!=="function";function Tn(t){return Me(t===null||t===void 0?void 0:t.then)}function jn(t){return Me(t[on])}function Ln(t){return Symbol.asyncIterator&&Me(t===null||t===void 0?void 0:t[Symbol.asyncIterator])}function On(t){return new TypeError(`You provided ${t!==null&&typeof t==="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Dn(){if(typeof Symbol!=="function"||!Symbol.iterator){return"@@iterator"}return Symbol.iterator}const Pn=Dn();function Bn(t){return Me(t===null||t===void 0?void 0:t[Pn])}function Rn(t){return In(this,arguments,(function*e(){const n=t.getReader();try{while(true){const{value:t,done:e}=yield An(n.read());if(e){return yield An(void 0)}yield yield An(t)}}finally{n.releaseLock()}}))}function Un(t){return Me(t===null||t===void 0?void 0:t.getReader)}function Nn(t){if(t instanceof cn){return t}if(t!=null){if(jn(t)){return Xn(t)}if(Mn(t)){return Wn(t)}if(Tn(t)){return Hn(t)}if(Ln(t)){return Yn(t)}if(Bn(t)){return Fn(t)}if(Un(t)){return Vn(t)}}throw On(t)}function Xn(t){return new cn((e=>{const n=t[on]();if(Me(n.subscribe)){return n.subscribe(e)}throw new TypeError("Provided object does not correctly implement Symbol.observable")}))}function Wn(t){return new cn((e=>{for(let n=0;n<t.length&&!e.closed;n++){e.next(t[n])}e.complete()}))}function Hn(t){return new cn((e=>{t.then((t=>{if(!e.closed){e.next(t);e.complete()}}),(t=>e.error(t))).then(null,Ne)}))}function Fn(t){return new cn((e=>{for(const n of t){e.next(n);if(e.closed){return}}e.complete()}))}function Yn(t){return new cn((e=>{qn(t,e).catch((t=>e.error(t)))}))}function Vn(t){return Yn(Rn(t))}function qn(t,e){var n,i;var s,o;return Cn(this,void 0,void 0,(function*(){try{for(n=En(t);i=yield n.next(),!i.done;){const t=i.value;e.next(t);if(e.closed){return}}}catch(t){s={error:t}}finally{try{if(i&&!i.done&&(o=n.return))yield o.call(n)}finally{if(s)throw s.error}}e.complete()}))}function Zn(t,e=_n){return fn(((n,i)=>{let s=null;let o=null;let r=null;const a=()=>{if(s){s.unsubscribe();s=null;const t=o;o=null;i.next(t)}};function c(){const n=r+t;const o=e.now();if(o<n){s=this.schedule(undefined,n-o);i.add(s);return}a()}n.subscribe(pn(i,(n=>{o=n;r=e.now();if(!s){s=e.schedule(c,t);i.add(s)}}),(()=>{a();i.complete()}),undefined,(()=>{o=s=null})))}))}function Kn(t){return fn(((e,n)=>{Nn(t).subscribe(pn(n,(()=>n.complete()),Xe));!n.closed&&e.subscribe(n)}))}const Gn=class{constructor(t){e(this,t);this.sessionRestoredEmitter=a(this,"pod-os:session-restored",7);this.restorePreviousSession=false;this.disconnected$=new gn}componentWillLoad(){this.unsubscribeSettings=Gt.on("set",(()=>{this.os=Ee(Gt.state)}));this.os=Ee(Gt.state);this.os.onSessionRestore((t=>{this.sessionRestoredEmitter.emit({url:t})}));this.os.handleIncomingRedirect(this.restorePreviousSession);this.os.observeSession().pipe(Kn(this.disconnected$)).subscribe((async t=>{B.state.webId=t.webId;if(t.isLoggedIn){const e=await this.os.fetchProfile(t.webId);B.state.profile=e}B.state.isLoggedIn=t.isLoggedIn}))}disconnectedCallback(){this.unsubscribeSettings();this.disconnected$.next();this.disconnected$.unsubscribe()}async initializeOs(t){t.stopPropagation();t.detail(this.os)}async loadModule(t){t.stopPropagation();if(t.detail.module==="contacts"){const e=await this.os.loadContactsModule();t.detail.receiver(e)}else{throw Error(`Unknown module "${t.detail.module}"`)}}render(){return n("slot",{key:"eb7dfaa67c538b3e3e33f42556c1b604fc964729"})}};const Jn="pos-router {\n margin: 0;\n padding: 0;\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n\npos-navigation {\n max-width: var(--width-lg);\n margin: 0;\n min-width: var(--size-32);\n flex-shrink: 1; /* Ensure navigation can shrink */\n}\n\npos-add-new-thing,\npos-login {\n flex: 0 1 auto;\n flex-shrink: 0; /* Ensure those items don't shrink */\n}\n\nheader,\nfooter {\n display: flex;\n gap: var(--size-1);\n height: auto;\n justify-content: center;\n align-items: center;\n padding: var(--size-1);\n}\n\nfooter svg {\n width: var(--size-5);\n height: var(--size-5);\n}\n\nfooter {\n font-size: var(--scale-fluid-000);\n\n .settings {\n padding: 0 var(--size-1);\n text-decoration: none;\n background-color: var(--pos-background-color);\n border: 1px solid var(--pos-secondary-border-color);\n color: var(--pos-secondary-border-color);\n border-radius: var(--radius-xs);\n\n &:hover {\n background-color: var(--pos-secondary-border-color);\n color: var(--pos-background-color);\n }\n }\n}\n\nheader {\n flex-wrap: nowrap;\n padding: var(--size-1) var(--size-8);\n}\n\nmain {\n flex: 1;\n max-height: 100vh;\n overflow: auto;\n}\n\n@media (max-width: 640px) {\n header {\n padding: var(--size-1);\n justify-content: space-between;\n }\n}\n";const Qn=Jn;const ti=class{constructor(t){e(this,t);this.restorePreviousSession=false;this.mode="standalone";this.uri=""}render(){return n(i,{key:"08b186d2f354d6c07df02707eb4ada81aef7dec3"},n("pos-app",{key:"54c372343e916ab5d77584381b3965c925ae0cd0",restorePreviousSession:this.restorePreviousSession},n("pos-error-toast",{key:"ab63e18121ca16670f81da141219a782dde0694b"},n("pos-router",{key:"69b6f3bf8ce3720c6c39cdb4be69e640e27ccc5b",mode:this.mode,"onPod-os:route-changed":t=>this.uri=t.detail},n("header",{key:"5cd3412caf13b6d99da517ae7e6f5877234e65d7"},n("pos-add-new-thing",{key:"9b83b3cf03b7038303975386176df539b35ff547",referenceUri:this.uri}),n("pos-navigation",{key:"26bfed9b1c8dd1be018babc6ef40ae42808a5c42",uri:this.uri==="pod-os:dashboard"?"":this.uri}),n("pos-login",{key:"e29f18dcde866d8ac1e317fcd7b71ef584e69034"},n("pos-user-menu",{key:"be796f0914649eb4e8525a9d8acdfd535626303c",webId:B.state.webId,slot:"if-logged-in"}))),n("main",{key:"f99dfb2d43e949528bc767b94801c99bf04a7eea"},this.mainContent()),n("footer",{key:"64744d1246356fa00da9c6b561785e2b794a7907"},n(ei,{key:"a648f7f88e12c79348bda33152f2759d2b93e738"}),n("span",{key:"f22e2f9904ba517fc2e579a05018704b5ade6302"},"PodOS Browser"),n("span",{key:"24cfa0a74fa3759d919a4ef847705353d403f93b"},"|"),n("a",{key:"a4264428f853102c940b4babc71a8b32d7a400e7",class:"settings",href:"?uri=pod-os%3Asettings"},"⚙ Settings"))))))}mainContent(){if(this.uri===""){return null}if(this.uri.startsWith("pod-os:")){return n("pos-internal-router",{uri:this.uri})}return n("pos-resource",{key:this.uri,uri:this.uri},n("pos-type-router",null))}};const ei=()=>n("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg"},n("path",{d:"M50 350 L50 100 L200 50 L350 100 L350 350 Z",style:{fill:"#008BF8",stroke:"#008BF8","stroke-width":"70"},"stroke-linejoin":"round"}),n("path",{d:"M100 300 L100 150 L200 120 L300 150 L300 300 L130 300 L130 370 L100 370Z",style:{fill:"white",stroke:"white","stroke-width":"45"},"stroke-linejoin":"round"}),n("path",{d:"M150 250 L150 200 L200 180 L250 200 L250 250 Z",style:{fill:"#DC0073",stroke:"#DC0073","stroke-width":"20"},"stroke-linejoin":"round"}));ti.style=Qn;const ni=":host{display:grid;grid-template-columns:repeat(auto-fit, minmax(var(--size-12), var(--size-96)));gap:var(--size-4);padding:var(--size-2);justify-content:center;align-items:start;justify-items:stretch}";const ii=ni;const si=class{constructor(t){e(this,t)}render(){return n(i,{key:"935793247a6da2ea61fd709bcd54910c2ef9005a"},n("pos-getting-started",{key:"134f1bd649205b40bcff0f06abce95ebfc55d0e3"}),n("pos-example-resources",{key:"dfb16c9f8601dc7e8d9859063b40280aeccee734"}))}};si.style=ii;const oi=":host{display:grid;grid-template-columns:repeat(auto-fit, minmax(var(--size-12), var(--size-96)));gap:var(--size-4);padding:var(--size-2);justify-content:center;align-items:start;justify-items:stretch}";const ri=oi;const ai=class{constructor(t){e(this,t)}render(){return n("pos-setting-offline-cache",{key:"83d824c60d1eb9e2d60b0d7255dda841ad9c6164"})}};ai.style=ri;const ci=class{constructor(t){e(this,t);this.subscribeResource=a(this,"pod-os:resource",7);this.receiveResource=t=>{this.resource=t}}componentWillLoad(){W(this)}render(){return this.resource?this.resource.description():null}};const li="dialog{background-color:var(--pos-background-color);color:var(--pos-normal-text-color);border:none;border-radius:var(--radius-md);box-shadow:var(--shadow-md);max-width:var(--width-xs);animation:slideIn 0.2s ease-out}dialog::backdrop{background:rgba(0, 0, 0, 0.5);backdrop-filter:var(--blur-sm);animation:fadeIn 0.2s ease-out}@media (prefers-color-scheme: dark){dialog::backdrop{background:rgb(100, 100, 100, 0.5)}}dialog header>:first-child{flex-grow:1;font-weight:var(--weight-light);font-size:var(--scale-2);font-family:var(--font-sans);margin:0}dialog header{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:var(--scale-0);border-bottom-style:inset;padding:0 0 var(--scale-0) 0}dialog>:last-child{display:block;margin-top:var(--scale-3)}button#close{cursor:pointer;display:flex;align-items:center;justify-content:center;border:none;background:none;font-size:var(--scale-3);color:var(--color-grey-500)}button#close:hover{color:var(--pos-secondary-border-color)}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes slideIn{from{opacity:0;transform:translateY(-20px) scale(0.95)}to{opacity:1;transform:translateY(0) scale(1)}}";const di=li;const hi=class{constructor(t){e(this,t)}async showModal(){this.dialog.showModal()}async close(){this.dialog.close()}render(){return n(i,{key:"097959e50499628b0b3e9be024cd415d25182303"},n("dialog",{key:"0ac068acd6392cfc57f9e3bff866a6c865dcafe3",ref:t=>this.dialog=t},n("header",{key:"0cf470448e42f04c8a839eb67eec5a0708e306cb"},n("slot",{key:"3f3f457ff9130c66ac31e21da74f9ffa9cc42a06",name:"title"}),n("button",{key:"d420ee61dc91d4f193048f6c89351121c0337446",tabindex:-1,id:"close",title:"Close",onClick:()=>this.close()},n("ion-icon",{key:"9a775752b1678654b3446b964fe83ca15d8722ca",name:"close-outline"}))),n("slot",{key:"464e9fefd0dc8c32b52399358ff250e1982bdf36",name:"content"})))}};hi.style=di;const ui=class{constructor(t){e(this,t)}async unhandledRejection(t){t.stopPropagation();console.error("unhandled promise rejection",t);await this.showToast(t.reason.toString())}async catchError(t){t.stopPropagation();console.error(t.detail);await this.showToast(t.detail.message)}async showToast(t){const e=await j.create({message:t,duration:1e4,position:"top",color:"danger",buttons:[{text:"Dismiss",role:"cancel"}]});await e.present()}render(){return n(i,{key:"ca253ac051cc38f56c8db1224fea075293f796b4"},n("ion-toast",{key:"060b78fd54963782be40abca4592c5871fc84d82",trigger:"never",message:"Workarround to preload ion-toast and ion-ripple-effect to be able to show errors while offline",duration:0},n("ion-ripple-effect",{key:"45f799c8d1f36ad3f11a62485677fc38eb01857b"})),n("slot",{key:"02c6e3ad7cce764de694579056fc1fe1d97dfa32"}))}};const fi=":host{border:var(--size-px) solid var(--pos-border-color);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);padding:var(--size-8);max-width:var(--size-96);background:var(--pos-card-background)}.links{display:flex;flex-direction:column;gap:var(--size-3);max-width:80vw}";const pi=fi;const bi=class{constructor(t){e(this,t)}render(){return n(i,{key:"14484f71f3c276dbce320f6e7e2e6ef9826d08c3"},n("div",{key:"30cb09c9395c3a8377d67e59eeee30422a0adf89"},n("h2",{key:"7073083222ea5bb4ef68179b29df61e448a4507d"},"Try these... 💡"),n("p",{key:"737f00c4fadc5d46f1043123aa33112a1c20bc95"},"No idea where to start? Try these example resources, and follow your nose 👃"),n("div",{key:"c906b79ac82daf0aad831c9e70b578e45ca8df2d",class:"links"},n("pos-rich-link",{key:"8e59dbd9894f846aad3a64922b9753e0ed51bf9c",uri:"https://pod-os.solidcommunity.net/profile/card#me"}),n("pos-rich-link",{key:"ed467a98c53f0b08f4b465723c81ca112942018c",uri:"https://angelo.veltens.org/profile/card#me"}),n("pos-rich-link",{key:"29ad1e4d9388f791bdb697afe3bc5d28c85baca6",uri:"https://angelo.veltens.org/public/bookmarks"}),n("pos-rich-link",{key:"18324a6848603f624f8a8ae12e71c5c3d0dfc083",uri:"https://solidos.solidcommunity.net/profile/card#me"}))))}};bi.style=pi;const mi=":host{border:var(--size-px) solid var(--pos-border-color);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);padding:var(--size-8);max-width:var(--size-96);background:var(--pos-card-background)}.question{font-weight:var(--weight-semibold)}a{font-weight:var(--weight-bold);color:var(--pos-primary-color)}button.login{background:none;color:var(--pos-primary-color);display:inline;text-decoration:underline;border:none;padding:0;margin:0;cursor:pointer;font-size:unset}";const gi=mi;const vi=class{constructor(t){e(this,t);this.login=a(this,"pod-os:login",7)}render(){return n(i,{key:"77c0c7565e44f58e865c4fa81cacec9533d5bc03"},n("div",{key:"4d862bed654a16a5e5039237d623d50580017d34"},n("h2",{key:"dfef49eac9b554fe80e57ca1bece61e7b709a822"},"Getting started 🚀"),n("p",{key:"8b4b0718cba1b856fe7d43c1addb698be79b4ed1"},"🔎 Enter a URL into the above navigation bar to browse through the web of data. "),n("p",{key:"09db6644d168ced856218a68c7e14b82f34fcb4e"},"🔐"," ",n("button",{key:"f4fc2099340837292712ba0d5d1228aefb2e7f15",class:"login",onClick:()=>this.login.emit()},"Sign in")," ","to access private resources on your Solid Pod or those of your friends or coworkers.")),n("div",{key:"215f44616ebc87d343a6a4383dd8f6e777dd655e"},n("p",{key:"616828fc3ef6308f35c9725db6127841853c8d00",class:"question"},"New to Solid?"),n("p",{key:"74c150dd7437d1bb6d0e3131d26e06184b1fe8a6"},n("a",{key:"84644d33e55b02bd1b76106289a2a0de0a630546",href:"https://solidproject.org/for-developers#hosted-pod-services"},"Get a Pod →"))),n("div",{key:"65984c3d14e2995a448b789b680941d3669513e0"},n("p",{key:"98723fe96a22827ba74bc25407e2a24bb62d3ee8",class:"question"},"Want to dig deeper into PodOS?"),n("p",{key:"3be3af10d7a5cc7330bd525724276610de3c94bb"},n("a",{key:"5a6f5a9264ebf113e724ec712db97ff33acd875b",href:"http://pod-os.org"},"Learn more →"))))}};vi.style=gi;const wi=":host{display:flex;background-size:cover;background-repeat:no-repeat;background-position:center;border-radius:inherit}img,ion-skeleton-text,div.error{border-radius:var(--border-radius);width:var(--width);height:var(--height);max-width:var(--max-width);max-height:var(--max-height);object-fit:var(--object-fit)}img{backdrop-filter:var(--blur-xl)}.error{display:flex;opacity:0.8;background:repeating-linear-gradient(-45deg, rgba(150, 0, 0, 0.1), rgba(150, 0, 0, 0.1) 10px, #fff 5px, #fff 25px);flex-direction:column;border:1px solid red;color:black;align-items:center;justify-content:center;word-break:break-all;padding:1rem;box-sizing:border-box}.error ion-icon{color:#282828;--ionicon-stroke-width:calc(var(--width) / 5);font-size:calc(var(--width) / 2)}a.error{text-decoration:none;width:var(--width);height:var(--height)}.code{font-weight:bold;font-size:calc(var(--width) / 8)}.text{font-size:calc(var(--width) / 20)}";const yi=wi;const xi=class{constructor(t){e(this,t);this.initializeOsEmitter=a(this,"pod-os:init",7);this.resourceLoadedEmitter=a(this,"pod-os:resource-loaded",7);this.blurredBackground=false;this.loading=true;this.setOs=async t=>{this.os=t}}componentWillLoad(){B.onChange("isLoggedIn",(()=>this.fetchBlob()));this.initializeOsEmitter.emit(this.setOs)}async fetchBlob(){try{this.loading=true;this.imageError=null;this.networkError=null;this.brokenFile=null;const t=await this.os.fetchFile(this.src);this.resourceLoadedEmitter.emit(this.src);if(t.blob()){this.dataUri=URL.createObjectURL(t.blob())}else{this.brokenFile=t}}catch(t){this.networkError=t}finally{this.loading=false}}onImageError(t){this.networkError=null;this.imageError=t}render(){if(this.loading){return n("ion-skeleton-text",{animated:true})}if(this.networkError){return n("img",{alt:this.alt,src:this.src,onError:t=>this.onImageError(t)})}if(this.brokenFile){return n(R,{file:this.brokenFile})}if(this.imageError){return n("div",{class:"error"},n("a",{href:this.src},this.src))}return n(i,{style:{backgroundImage:this.blurredBackground?`url('${this.dataUri}')`:null}},n("img",{src:this.dataUri,alt:this.alt}))}static get watchers(){return{os:["fetchBlob"],src:["fetchBlob"]}}};xi.style=yi;const ki=class{constructor(t){e(this,t);this.uri="pod-os:dashboard"}render(){return this.uri==="pod-os:settings"?n("pos-app-settings",null):n("pos-app-dashboard",null)}};const zi=class{constructor(t){e(this,t);this.subscribeResource=a(this,"pod-os:resource",7);this.receiveResource=t=>{this.resource=t}}componentWillLoad(){W(this)}render(){return this.resource?this.resource.label():null}};const Si=".container{display:flex;align-items:center;gap:var(--size-2)}.user-data{align-items:center;display:inline-flex;gap:10px}.user-data pos-picture{--width:40px;--height:40px;--border-radius:50%}pos-login-form{margin:var(--size-2)}dialog{margin-top:var(--size-10)}button#login,button#logout{outline:none;font-weight:var(--weight-bold);letter-spacing:var(--letter-xl);border:none;box-sizing:border-box;border-radius:var(--radius-xs);padding:var(--size-2);box-shadow:var(--shadow-sm);color:var(--pos-primary-text-color);background-color:var(--pos-primary-color)}button#login:focus-within,button#logout:focus-within{outline:var(--pos-input-focus-outline)}button#login:focus,button#login:hover,button#logout:focus,button#logout:hover{filter:brightness(110%);box-shadow:var(--shadow-md)}";const _i=Si;const Ci=class{constructor(t){e(this,t);this.initializeOsEmitter=a(this,"pod-os:init",7);this.customLoggedInComponent=false;this.setOs=async t=>{this.os=t}}componentWillLoad(){this.customLoggedInComponent=!!this.host.querySelector('[slot="if-logged-in"]');this.initializeOsEmitter.emit(this.setOs)}login(t){const e=t.detail;this.os.login(e)}logout(){this.os.logout()}onLogin(){this.openDialog()}openDialog(){this.dialog.showModal()}render(){return n(i,{key:"e061448eb4f6dadc9c9e3a46f81fb005e616005e"},n("div",{key:"f3b3d50ffaa2ee4ef158c079d4c1c0d40193658c",class:"container"},!B.state.isLoggedIn?n("button",{id:"login",onClick:()=>this.openDialog()},"Login"):this.loggedInComponents()),n("pos-dialog",{key:"2cd28478553dd3efe744caa350bdb7f2853d5221",ref:t=>this.dialog=t},n("span",{key:"70c819fe9152d6c3ae186b848f5a156a90a7fe08",slot:"title"},"Sign in to your Pod"),n("pos-login-form",{key:"f4b1e70f049f40ad420d9907d24c8b14170e033a","onPod-os:idp-url-selected":t=>this.login(t),slot:"content"})))}loggedInComponents(){return this.customLoggedInComponent?n("slot",{name:"if-logged-in"}):this.defaultLoggedInComponents()}defaultLoggedInComponents(){return[n("pos-resource",{uri:B.state.webId},n("span",{class:"user-data"},n("pos-picture",null),n("pos-label",null))),n("button",{id:"logout",onClick:()=>this.logout()},"Logout")]}get host(){return s(this)}};Ci.style=_i;const $i=":host{display:block;margin:0}form{display:flex;flex-direction:column;gap:var(--size-4)}input{outline:var(--pos-input-outline);padding:var(--scale-000);border:none;border-radius:var(--radius-xs);width:var(--size-full);box-sizing:border-box;background:var(--pos-input-background-color);color:var(--pos-normal-text-color)}input:focus-within{outline:var(--pos-input-focus-outline)}input#login{outline:none;box-shadow:var(--shadow-sm);cursor:pointer;color:var(--pos-primary-text-color);background-color:var(--pos-primary-color)}input#login:disabled{cursor:default;color:var(--pos-disabled-text-color);background-color:var(--pos-disabled-color);box-shadow:none}input#login:hover:not(:disabled),input#login:focus{filter:brightness(110%);box-shadow:var(--shadow-md)}";const Ai=$i;const Ii=class{constructor(t){e(this,t);this.idpUrlSelected=a(this,"pod-os:idp-url-selected",7);this.idpUrl="";this.canSubmit=false}validate(){this.canSubmit=Boolean(this.idpUrl)}render(){return n("form",{key:"193d3790329d1480fd6b14fd55a0d8cee8ce61dd",method:"dialog",onSubmit:()=>this.handleSubmit()},n("label",{key:"d85ea6b508c9f229e1125f8cc97092335458b94a",htmlFor:"idpUrl"},"Please enter your Identity Provider"),n("input",{key:"a2f5e9955b27a8c1fab14c8f087fab167a19dc9a",id:"idpUrl",type:"url",value:this.idpUrl,required:true,onInput:t=>this.handleChange(t),list:"suggestedIssuers",placeholder:"Type to search..."}),n("datalist",{key:"fa0924b31e1a4fcdc794931dd2073022ab4ce95b",id:"suggestedIssuers"},n("option",{key:"c3495be7c2a98494ac3ca7fe504edd4b1b232394",value:"https://solidcommunity.net"},"solidcommunity.net"),n("option",{key:"7fd17434388ed31468df8682dcfc2b4263c27ccb",value:"https://solidweb.org"},"solidweb.org"),n("option",{key:"4c2a5854fc2499198b289181136cbd0a2fd9c1e1",value:"https://solidweb.me"},"solidweb.me"),n("option",{key:"02a81104db23c62e0d42b8b45b95eccbd16fc108",value:"https://inrupt.net"},"inrupt.net"),n("option",{key:"d7c15dca86800cafc5a974920e40bd117fa50194",value:"https://login.inrupt.com"},"Inrupt PodSpaces"),n("option",{key:"93ff71136f1775098fda80db5d437f37b51c496f",value:"https://trinpod.us"},"trinpod.us"),n("option",{key:"481f1630526e324cb24b38c0077b1aeb496b4690",value:"https://use.id"},"use.id"),n("option",{key:"abd85ffba7532ba488bf0a4c18a2da2f3dc481ee",value:"https://solid.redpencil.io"},"redpencil.io"),n("option",{key:"339562d277c4af2e10344f385d00aa4cc37375fa",value:"https://datapod.grant.io"},"Data Pod (grant.io)"),n("option",{key:"918224ac5af806666a7b77bc8049dcf79800ab8c",value:"https://teamid.live"},"teamid.live")),n("input",{key:"1ad3ef7998237d30c5eaf5bc9eebe55ede09d0a8",id:"login",type:"submit",value:"Login",disabled:!this.canSubmit}))}handleChange(t){this.validate();this.idpUrl=t.target.value}async handleSubmit(){this.idpUrlSelected.emit(this.idpUrl)}static get delegatesFocus(){return true}static get watchers(){return{idpUrl:["validate"]}}};Ii.style=Ai;const Ei="button.main {\n display: flex;\n transition:\n width 200ms,\n background-color 500ms,\n color 500ms,\n border-color 500ms;\n max-width: var(--size-40);\n flex-direction: row;\n overflow: hidden;\n height: var(--pos-navigation-bar-height);\n width: var(--pos-navigation-bar-height);\n align-items: center;\n justify-content: center;\n border-radius: var(--radius-md);\n color: var(--pos-subtle-text-color);\n border: var(--size-px) dashed var(--pos-subtle-text-color);\n background-color: var(--pos-background-color);\n\n p {\n padding: 0;\n margin: 0;\n display: none;\n white-space: nowrap;\n }\n\n &.success {\n color: var(--color-green-700);\n border-color: var(--color-green-700);\n border-style: solid;\n background-color: var(--color-green-100);\n }\n\n &:active {\n transform: scale(0.99);\n filter: brightness(90%);\n }\n &:focus {\n outline: var(--pos-input-focus-outline);\n }\n}\n\n.options {\n position: absolute;\n animation: fadeIn 300ms;\n padding: 0;\n margin-top: var(--size-1);\n z-index: var(--layer-top);\n\n ol {\n display: flex;\n flex-direction: column;\n box-shadow: var(--shadow-md);\n backdrop-filter: var(--blur-md);\n border-radius: var(--radius-xs);\n overflow: hidden;\n color: var(--color-grey-900);\n background-color: var(--color-grey-200);\n padding: 0;\n margin: 0;\n list-style: none;\n label {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n transition: all 300ms var(--ease-in-out-sine);\n margin: 0;\n border: none;\n outline: none;\n padding: var(--size-2);\n width: var(--size-full);\n\n &:hover,\n &:focus {\n filter: brightness(80%);\n }\n\n &:active {\n filter: brightness(90%);\n }\n }\n }\n label:has(input:checked) {\n background-color: var(--color-green-100);\n }\n}\n\nsvg {\n display: inline-block;\n height: var(--size-6);\n flex-shrink: 0;\n flex-grow: 0;\n width: var(--size-6);\n}\n\nbutton.main:hover,\nbutton.open {\n &.success {\n background: var(--color-green-200);\n }\n width: var(--size-full);\n height: var(--pos-navigation-bar-height);\n background: var(--pos-background-color);\n color: var(--pos-normal-text-color);\n\n p {\n display: inline-block;\n }\n}\n\n@keyframes fadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n";const Mi=Ei;const Ti=class{constructor(t){e(this,t);this.subscribePodOs=a(this,"pod-os:init",7);this.errorEmitter=a(this,"pod-os:error",7);this.indexUpdatedEmitter=a(this,"pod-os:search:index-updated",7);this.indexCreatedEmitter=a(this,"pod-os:search:index-created",7);this.indexes=[];this.showOptions=false;this.isIndexed=false;this.receivePodOs=async t=>{this.os=t;this.thing=this.os.store.get(this.uri);this.getLabelIndexes(B.state.profile);this.unsubscribeSessionChange=B.onChange("profile",(t=>{this.getLabelIndexes(t)}))}}componentWillLoad(){H(this)}disconnectedCallback(){this.unsubscribeSessionChange&&this.unsubscribeSessionChange()}hideOptions(t){if(!this.el.contains(t.target)){this.showOptions=false}}handleKeyDown(t){if(t.key==="Escape"){this.showOptions=false}}updateUri(t){this.thing=this.os.store.get(t);this.isIndexed=this.checkIfIndexed(t)}checkIfIndexed(t){return this.indexes.some((e=>e.contains(t)))}getLabelIndexes(t){if(t){this.indexes=t.getPrivateLabelIndexes().map((t=>this.os.store.get(t).assume(X)));this.isIndexed=this.checkIfIndexed(this.uri)}}async onClick(t){t.preventDefault();if(this.indexes.length===1){const t=this.indexes[0];await this.addToLabelIndex(t);this.indexUpdatedEmitter.emit(t)}else if(this.indexes.length>1){this.showOptions=!this.showOptions}else{const t=await this.createDefaultLabelIndex();await this.addToLabelIndex(t);this.indexCreatedEmitter.emit(t)}}async addToLabelIndex(t){try{await this.os.addToLabelIndex(this.thing,t);this.isIndexed=true}catch(t){this.errorEmitter.emit(t)}this.showOptions=false}async createDefaultLabelIndex(){try{return await this.os.createDefaultLabelIndex(B.state.profile)}catch(t){this.errorEmitter.emit(t)}}render(){if(!B.state.isLoggedIn||!this.uri){return null}const t="Make this findable";return n(i,null,n("button",{type:"button","aria-label":t,class:{main:true,open:this.showOptions,success:this.isIndexed},onClick:t=>this.onClick(t),title:""},this.isIndexed?n(Li,null):n(ji,null),n("p",null,t)),this.showOptions&&n("div",{class:"options"},n("ol",{role:"listbox"},this.indexes.map((t=>n("li",{role:"option"},n("label",null,n("input",{type:"checkbox",checked:t.contains(this.uri),onChange:e=>this.chooseOption(e,t)}),n("pos-resource",{uri:t.uri,lazy:true},n("pos-label",null)))))))))}async chooseOption(t,e){t.preventDefault();await this.addToLabelIndex(e);this.indexUpdatedEmitter.emit(e)}get el(){return s(this)}static get watchers(){return{uri:["updateUri"]}}};const ji=()=>n("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},n("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m5.231 13.481L15 17.25m-4.5-15H5.625c-.621 0-1.125.504-1.125 1.125v16.5c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Zm3.75 11.625a2.625 2.625 0 1 1-5.25 0 2.625 2.625 0 0 1 5.25 0Z"}));const Li=()=>n("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},n("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.125 2.25h-4.5c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125v-9M10.125 2.25h.375a9 9 0 0 1 9 9v.375M10.125 2.25A3.375 3.375 0 0 1 13.5 5.625v1.5c0 .621.504 1.125 1.125 1.125h1.5a3.375 3.375 0 0 1 3.375 3.375M9 15l2.25 2.25L15 12"}));Ti.style=Mi;const Oi=":host {\n --pos-navigation-bar-height: var(--size-10);\n}\n\nsearch {\n position: relative;\n}\n\n.suggestions ol {\n border: 1px solid var(--pos-border-color);\n display: flex;\n flex-direction: column;\n margin: 0;\n padding: 0;\n list-style-type: none;\n}\n\n.suggestions {\n width: 100%;\n overflow-y: auto;\n max-height: 90dvh;\n li {\n padding: 1rem;\n background-color: var(--pos-background-color);\n pos-rich-link {\n --background-color: inherit;\n }\n &[aria-selected='true'] {\n background-color: var(--pos-primary-color);\n &:hover {\n background-color: var(--pos-primary-color);\n }\n }\n &:hover {\n background-color: var(--pos-border-color);\n }\n }\n}\n\n.suggestions li.selected pos-rich-link {\n --label-color: white;\n --description-color: var(--pos-border-color);\n --uri-color: var(--pos-subtle-text-color);\n}\n\ndialog {\n position: absolute;\n margin-top: calc(-1 * var(--pos-navigation-bar-height));\n padding: 0;\n width: 100%;\n max-width: 100%;\n min-width: 100%;\n overflow: hidden;\n max-height: 100dvh;\n background-color: var(--pos-background-color);\n color: var(--pos-normal-text-color);\n border: var(--pos-border-color);\n border-radius: var(--radius-md);\n box-shadow: var(--shadow-md);\n form {\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n align-items: center;\n input {\n display: flex;\n font-size: var(--scale-1);\n height: var(--pos-navigation-bar-height);\n border-top-left-radius: var(--radius-md);\n border-top-right-radius: var(--radius-md);\n padding-left: var(--size-2);\n width: 100%;\n border: none;\n outline: none;\n color: var(--pos-normal-text-color);\n background-color: var(--pos-input-background-color);\n box-sizing: border-box;\n }\n }\n}\n\ndialog[open] {\n display: flex;\n z-index: var(--layer-top);\n animation: slideIn 100ms ease-out;\n}\n\n@media (max-width: 640px) {\n search {\n position: unset;\n }\n dialog {\n margin-top: var(--size-1);\n top: 0;\n width: 95dvw;\n max-width: unset;\n min-width: unset;\n form {\n input {\n height: var(--size-12);\n font-size: var(--scale-fluid-3);\n }\n }\n }\n}\n\n@keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n";const Di=Oi;const Pi=class{constructor(t){e(this,t);this.subscribePodOs=a(this,"pod-os:init",7);this.linkEmitter=a(this,"pod-os:link",7);this.uri="";this.inputValue=this.uri;this.searchIndex=undefined;this.suggestions=[];this.selectedIndex=-1;this.resource=null;this.changeEvents=new gn;this.debouncedSearch=null;this.receivePodOs=async t=>{this.os=t}}updateResource(){var t;try{this.resource=this.uri?(t=this.os)===null||t===void 0?void 0:t.store.get(this.uri):null}catch(t){this.resource=null}}componentWillLoad(){H(this);this.updateResource();B.onChange("isLoggedIn",(async t=>{if(t){await this.buildSearchIndex()}else{this.clearSearchIndex()}}));this.debouncedSearch=this.changeEvents.pipe(Zn(300)).subscribe((()=>this.search()))}disconnectedCallback(){var t;(t=this.debouncedSearch)===null||t===void 0?void 0:t.unsubscribe()}async buildSearchIndex(){this.searchIndex=await this.os.buildSearchIndex(B.state.profile)}rebuildSearchIndex(){this.searchIndex.rebuild()}openNavigationDialog(t){var e,n;this.resource=t.detail;if(t.detail){this.inputValue=t.detail.uri;this.search()}(e=this.inputRef)===null||e===void 0?void 0:e.select();(n=this.dialogRef)===null||n===void 0?void 0:n.show()}clearSearchIndex(){var t;(t=this.searchIndex)===null||t===void 0?void 0:t.clear()}onChange(t){this.inputValue=t.target.value;this.changeEvents.next()}closeDialog(){var t;(t=this.dialogRef)===null||t===void 0?void 0:t.close();this.selectedIndex=-1}clearSuggestions(){var t;this.suggestions=[];(t=this.dialogRef)===null||t===void 0?void 0:t.close();this.selectedIndex=-1}onClickSelf(t){t.stopPropagation()}handleKeyDown(t){if(t.key==="Escape"){this.closeDialog()}else if(t.key==="ArrowDown"){t.preventDefault();this.selectedIndex=Math.min(this.selectedIndex+1,this.suggestions.length-1)}else if(t.key==="ArrowUp"){t.preventDefault();this.selectedIndex=Math.max(this.selectedIndex-1,0)}}search(){if(this.searchIndex){this.suggestions=this.inputValue?this.searchIndex.search(this.inputValue):[]}}onSubmit(){if(this.suggestions&&this.selectedIndex>-1){this.linkEmitter.emit(this.suggestions[this.selectedIndex].ref)}else{this.linkEmitter.emit(this.inputValue)}}render(){return n("nav",{key:"f09437fdd0bdfc5912af62658f1f32ab54c439c8"},n("search",{key:"fa09fec64bacfe1460a1fad256e509a480dd6a01"},n("pos-navigation-bar",{key:"8dcd35cad5858da049ae942152f3cebe884aa761",searchIndexReady:this.searchIndex!==undefined,current:this.resource}),n("dialog",{key:"3ad61d48a6c5fcd0b010950c702e9488a9fd5160",ref:t=>this.dialogRef=t},n("form",{key:"1c23af28daf15f635d4c36002ca6fe153e33b48e",method:"dialog",onSubmit:()=>this.onSubmit()},n("input",{key:"b94910b19d32dbb091790f0ebbf59f5838e8d5ea",ref:t=>this.inputRef=t,enterkeyhint:"search","aria-label":"Search or enter URI",placeholder:"Search or enter URI",value:this.uri,onChange:t=>this.onChange(t),onInput:t=>this.onChange(t),role:"combobox","aria-autocomplete":"list","aria-expanded":this.suggestions.length>0,"aria-controls":"suggestions-list","aria-activedescendant":this.selectedIndex>=0?`option-${this.selectedIndex}`:null}),this.suggestions.length>0?n("div",{class:"suggestions"},n("ol",{id:"suggestions-list",role:"listbox","aria-label":"Search results"},this.suggestions.map(((t,e)=>n("li",{id:`option-${e}`,role:"option","aria-selected":e===this.selectedIndex?"true":"false"},n("pos-rich-link",{uri:t.ref})))))):null))))}static get watchers(){return{uri:["updateResource"],os:["updateResource"]}}};Pi.style=Di;const Bi="section.current {\n display: flex;\n height: var(--pos-navigation-bar-height);\n flex-grow: 1;\n gap: 0;\n background-color: var(--pos-input-background-color);\n border-radius: var(--radius-md);\n width: 100%;\n &:focus-within {\n outline: var(--pos-input-focus-outline);\n }\n}\n\nsection.current button {\n cursor: pointer;\n font-size: var(--scale-1);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-grow: 1;\n background: none;\n color: var(--pos-normal-text-color);\n outline: none;\n border: none;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n &:focus {\n text-decoration: underline;\n }\n :first-child {\n flex-grow: 1;\n }\n svg {\n width: var(--size-6);\n color: var(--pos-subtle-text-color);\n }\n}\n";const Ri=Bi;const Ui=class{constructor(t){e(this,t);this.navigate=a(this,"pod-os:navigate",7)}onClick(){this.navigate.emit(this.current)}activate(t){if((t.ctrlKey||t.metaKey)&&t.key==="k"){t.preventDefault();this.navigate.emit(this.current)}}render(){const t=this.current?`${this.current.label()} (Click to search or enter URI)`:"Search or enter URI";return n("section",{key:"79ac5c5dc2d6c2d44e852f9671d0895a29fb62a6",class:"current"},this.current&&this.searchIndexReady&&n("pos-make-findable",{key:"be92d99ead125c1a29520639da6dfd6e28007d85",uri:this.current.uri}),n("button",{key:"4ecdd49e46614f604c36ef760422d54f99ab00f1","aria-label":t,onClick:()=>this.onClick()},n("div",{key:"002c4138be9b798cecec90de50f7500cffd89df7"},this.current?this.current.label():"Search or enter URI"),this.icon()))}icon(){return n("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},n("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}};Ui.style=Ri;const Ni=":host{display:block}form{display:grid;grid-template-columns:var(--size-16) 1fr;grid-gap:var(--scale-0)}label{grid-column:1 / 2;display:flex;align-items:center;justify-content:flex-end}input,pos-select-term,button{grid-column:2 / 3}input,pos-select-term::part(input){outline:var(--pos-input-outline);padding:var(--scale-000);border:none;border-radius:var(--radius-xs);width:var(--size-full);box-sizing:border-box;background:var(--pos-input-background-color);color:var(--pos-normal-text-color)}input:focus-within,pos-select-term::part(input):focus-within{outline:var(--pos-input-focus-outline)}#new-uri{grid-column:1/3;cursor:default;word-break:break-all;color:var(--pos-normal-text-color);font-weight:var(--weight-light);background:var(--pos-disabled-color);padding:var(--scale-000);border-radius:var(--radius-xs)}input#create{outline:none;box-shadow:var(--shadow-sm);cursor:pointer;color:var(--pos-primary-text-color);background-color:var(--pos-primary-color)}input#create:disabled{cursor:default;color:var(--pos-disabled-text-color);background-color:var(--pos-disabled-color);box-shadow:none}input#create:hover:not(:disabled),input#create:focus{filter:brightness(110%);box-shadow:var(--shadow-md)}";const Xi=Ni;const Wi=class{constructor(t){e(this,t);this.linkEmitter=a(this,"pod-os:link",7);this.errorEmitter=a(this,"pod-os:error",7);this.subscribePodOs=a(this,"pod-os:init",7);this.canSubmit=false;this.receivePodOs=async t=>{this.os=t}}validate(){this.canSubmit=Boolean(this.name&&this.selectedTypeUri)}componentWillLoad(){H(this)}render(){return n("form",{key:"b1fb16121ecdbed1a3f19df9f9acd1cbc70f91f1",method:"dialog",onSubmit:t=>this.handleSubmit(t)},n("label",{key:"87397db04178def97089013afb85287bfc3fe679",htmlFor:"type"},"Type"),n("pos-select-term",{key:"dcc4829c2af46d899617f1ee1e8b3b3fd0a8ebf3",id:"type",placeholder:"",value:this.selectedTypeUri,"onPod-os:term-selected":t=>this.onTermSelected(t)}),n("label",{key:"a9ae3917bce29016bf2923b11a9c278a2e54afe4",htmlFor:"name"},"Name"),n("input",{key:"3638043dac61fdda67a28f95c0ab9991a3a36979",id:"name",type:"text",value:this.name,onInput:t=>this.handleChange(t)}),this.newUri?n("div",{id:"new-uri",title:"This will be the URI of the new thing"},this.newUri):null,n("input",{key:"2bcec9f76f2b2f45abadf395b826938d6dcc67ab",id:"create",type:"submit",value:"Create",disabled:!this.canSubmit}))}handleChange(t){this.name=t.target.value;this.newUri=this.os.proposeUriForNewThing(this.referenceUri,this.name)}onTermSelected(t){this.selectedTypeUri=t.detail.uri}async handleSubmit(t){try{await this.os.addNewThing(this.newUri,this.name,this.selectedTypeUri);this.linkEmitter.emit(this.newUri);this.reset()}catch(e){t.preventDefault();this.errorEmitter.emit(e)}}reset(){this.name="";this.newUri="";this.selectedTypeUri=""}static get delegatesFocus(){return true}static get watchers(){return{name:["validate"],selectedTypeUri:["validate"]}}};Wi.style=Xi;const Hi=":host{--width:300px;--height:300px;--border-radius:var(--border-radius, 0);--object-fit:var(--object-fit, cover)}";const Fi=Hi;const Yi=class{constructor(t){e(this,t);this.subscribeResource=a(this,"pod-os:resource",7);this.blurredBackground=false;this.receiveResource=t=>{this.resource=t}}componentWillLoad(){W(this)}render(){const t=this.resource?this.resource.picture():null;if(!t)return n("slot",null);return n("pos-image",{blurredBackground:this.blurredBackground,src:t.url,alt:this.resource.label()})}};Yi.style=Fi;const Vi="details.error {\n margin: var(--size-2);\n background-color: var(--pos-error-background-color);\n border: var(--size-px) solid var(--pos-error-border-color);\n padding: var(--size-2);\n border-radius: var(--radius-md);\n\n a {\n color: var(--pos-normal-text-color);\n }\n}\n";const qi=Vi;const Zi=class{constructor(t){e(this,t);this.subscribePodOs=a(this,"pod-os:init",7);this.resourceLoadedEmitter=a(this,"pod-os:resource-loaded",7);this.consumers=[];this.lazy=false;this.loading=true;this.receivePodOs=async t=>{this.os=t}}componentWillLoad(){B.onChange("isLoggedIn",(()=>this.loadResource()));H(this)}async provideResource(t){t.stopPropagation();if(this.resource){t.detail(this.resource)}this.consumers.push(t)}async loadResource(){await this.getResource(!this.lazy)}async fetch(){await this.getResource(true)}async getResource(t=false){try{if(t){this.loading=true;await this.os.fetch(this.uri);this.resourceLoadedEmitter.emit(this.uri)}this.resource=this.os.store.get(this.uri);this.error=null;this.consumers.forEach((t=>{t.detail(this.resource)}))}catch(t){this.error=t}finally{this.loading=false}}render(){if(this.loading){return n("ion-progress-bar",{type:"indeterminate"})}if(this.error){return n("details",{class:"error"},n("summary",{title:"Click to expand"},"⚠ Sorry, something went wrong"),n("p",null,"Status:",this.error.status),n("p",null,this.error.message),n("p",null,"You can try to open the link outside PodOS: ",n("a",{href:this.uri},this.uri)))}return n("slot",null)}static get watchers(){return{os:["loadResource"],uri:["loadResource"]}}};Zi.style=qi;const Ki=":host {\n --background-color: inherit;\n --label-color: var(--pos-normal-text-color);\n --description-color: var(--pos-normal-text-color);\n --uri-color: var(--pos-subtle-text-color);\n --font-family: var(--font-sans);\n}\n\np.content {\n background-color: var(--background-color);\n line-height: var(--line-xs);\n margin: 0;\n display: flex;\n flex-direction: column;\n align-items: baseline;\n gap: var(--size-1);\n\n .url {\n font-size: var(--scale-fluid-1);\n color: var(--pos-subtle-text-color);\n }\n}\n\na {\n color: var(--label-color);\n max-width: min(100%, var(--prose-lg));\n text-decoration: underline;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n text-decoration-thickness: var(--size-px);\n}\n\npos-label {\n color: var(--label-color);\n font-size: var(--scale-fluid-2);\n margin-bottom: var(--size-1);\n}\n\npos-description {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n text-overflow: ellipsis;\n overflow: hidden;\n font-weight: var(--weight-light);\n color: var(--description-color);\n font-size: var(--scale-fluid-2);\n}\n\n@media (min-width: 640px) {\n pos-label {\n font-size: var(--scale-fluid-0);\n }\n pos-description {\n font-size: var(--scale-fluid-1);\n }\n\n p.content {\n .url {\n font-size: var(--scale-fluid-000);\n }\n }\n}\n";const Gi=Ki;const Ji=class{constructor(t){e(this,t);this.linkEmitter=a(this,"pod-os:link",7)}render(){return n("pos-resource",{key:"73845f265bf6ce6b9245c3b1a98c169ee110b650",lazy:true,uri:this.uri},n("p",{key:"5d2698dd9cf27cb8b81cd679196f1b65eb8b45f8",class:"content"},n("a",{key:"26973e0fa9966c07b0568a1893aef2d35f51744a",href:this.uri,onClick:t=>{t.preventDefault();this.linkEmitter.emit(this.uri)}},n("pos-label",{key:"f0cfb727e32f5e3c760bd06e8c3031639959ff2c"})),n("span",{key:"93bfbe0f64ceceac6f600a39827aa3387460de1f",class:"url"},new URL(this.uri).host),n("pos-description",{key:"28a1a9afeb21720c3fe87ff5a4ad004173508a53"})))}};Ji.style=Gi;const Qi=(t,e,n)=>{const i=t.get(e);if(!i){t.set(e,[n])}else if(!i.includes(n)){i.push(n)}};const ts=(t,e)=>{let n;return(...i)=>{if(n){clearTimeout(n)}n=setTimeout((()=>{n=0;t(...i)}),e)}};const es=t=>!("isConnected"in t)||t.isConnected;const ns=ts((t=>{for(let e of t.keys()){t.set(e,t.get(e).filter(es))}}),2e3);const is=()=>{if(typeof c!=="function"){return{}}const t=new Map;return{dispose:()=>t.clear(),get:e=>{const n=c();if(n){Qi(t,e,n)}},set:e=>{const n=t.get(e);if(n){t.set(e,n.filter(l))}ns(t)},reset:()=>{t.forEach((t=>t.forEach(l)));ns(t)}}};const ss=(t,e=((t,e)=>t!==e))=>{let n=new Map(Object.entries(t!==null&&t!==void 0?t:{}));const i={dispose:[],get:[],set:[],reset:[]};const s=()=>{n=new Map(Object.entries(t!==null&&t!==void 0?t:{}));i.reset.forEach((t=>t()))};const o=()=>{i.dispose.forEach((t=>t()));s()};const r=t=>{i.get.forEach((e=>e(t)));return n.get(t)};const a=(t,s)=>{const o=n.get(t);if(e(s,o,t)){n.set(t,s);i.set.forEach((e=>e(t,s,o)))}};const c=typeof Proxy==="undefined"?{}:new Proxy(t,{get(t,e){return r(e)},ownKeys(t){return Array.from(n.keys())},getOwnPropertyDescriptor(){return{enumerable:true,configurable:true}},has(t,e){return n.has(e)},set(t,e,n){a(e,n);return true}});const l=(t,e)=>{i[t].push(e);return()=>{os(i[t],e)}};const d=(e,n)=>{const i=l("set",((t,i)=>{if(t===e){n(i)}}));const s=l("reset",(()=>n(t[e])));return()=>{i();s()}};const h=(...t)=>{const e=t.reduce(((t,e)=>{if(e.set){t.push(l("set",e.set))}if(e.get){t.push(l("get",e.get))}if(e.reset){t.push(l("reset",e.reset))}if(e.dispose){t.push(l("dispose",e.dispose))}return t}),[]);return()=>e.forEach((t=>t()))};const u=t=>{const e=n.get(t);i.set.forEach((n=>n(t,e,e)))};return{state:c,get:r,set:a,on:l,onChange:d,use:h,dispose:o,reset:s,forceUpdate:u}};const os=(t,e)=>{const n=t.indexOf(e);if(n>=0){t[n]=t[t.length-1];t.length--}};const rs=(t,e)=>{const n=ss(t,e);n.use(is());return n};const as=t=>{var e;const n=window;const i=new URL(n.location.href);const s=(e=t===null||t===void 0?void 0:t.parseURL)!==null&&e!==void 0?e:ls;const{state:o,onChange:r,dispose:a}=rs({url:i,activePath:s(i)},((t,e,n)=>{if(n==="url"){return t.href!==e.href}return t!==e}));const c=t=>{history.pushState(null,null,t);const e=new URL(t,document.baseURI);o.url=e;o.activePath=s(e)};const l=t=>{const{activePath:e}=o;for(let n of t){const i=cs(e,n.path);if(i){if(n.to!=null){const i=typeof n.to==="string"?n.to:n.to(e);c(i);return l(t)}else{return{params:i,route:n}}}}return undefined};const d=()=>{const t=new URL(n.location.href);o.url=t;o.activePath=s(t)};const h=(t,e)=>{const n=l(e);if(n){if(typeof n.route.jsx==="function"){return n.route.jsx(n.params)}else{return n.route.jsx}}};const u=()=>{n.removeEventListener("popstate",d);a()};const f={Switch:h,get url(){return o.url},get activePath(){return o.activePath},push:c,onChange:r,dispose:u};d();n.addEventListener("popstate",d);return f};const cs=(t,e)=>{if(typeof e==="string"){if(e===t){return{}}}else if(typeof e==="function"){const n=e(t);if(n){return n===true?{}:{...n}}}else{const n=e.exec(t);if(n){e.lastIndex=0;return{...n}}}return undefined};const ls=t=>t.pathname.toLowerCase();const ds=".toolbar{display:flex;flex-direction:row;gap:0;align-items:center;margin-left:0.5rem}pos-navigation{flex-grow:1}";const hs=ds;const us=as();const fs=class{constructor(t){e(this,t);this.routeChanged=a(this,"pod-os:route-changed",7);this.mode="standalone"}linkClicked(t){this.navigate(t.detail)}sessionRestored(t){us.push(t.detail.url)}componentWillLoad(){this.updateUri();us.onChange("url",(()=>{this.updateUri()}))}navigate(t){us.push("?uri="+encodeURIComponent(t))}updateUri(){this.uri=new URLSearchParams(window.location.search).get("uri")||(this.mode==="standalone"?"pod-os:dashboard":window.location.href);this.routeChanged.emit(this.uri)}render(){return n("slot",{key:"8b09de3dbbd253665cd541b9f264b0dcdc774354"})}};fs.style=hs;const ps=":host{display:block}input{background-color:transparent;color:var(--pos-normal-text-color);border:none;padding-top:1rem;padding-bottom:1rem}input:focus{outline:none}";const bs=ps;const ms=class{constructor(t){e(this,t);this.subscribePodOs=a(this,"pod-os:init",7);this.termSelected=a(this,"pod-os:term-selected",7);this.placeholder="Type to search...";this.value="";this.terms=[];this.receivePodOs=async t=>{this.os=t}}componentWillLoad(){H(this)}setTerms(){this.terms=this.os.listKnownTerms()}handleChange(t){this.termSelected.emit({uri:t.target.value})}render(){return n(i,{key:"88196bb6125fb061a14058eb4b8c5ece2a479316"},n("input",{key:"839d513d12de456412da84c6de912ecb0df1d36f",part:"input",list:"terms",placeholder:this.placeholder,value:this.value,onChange:t=>this.handleChange(t)}),n("datalist",{key:"3b62eb3eba017b4f092f20385c3cd79f7ab3c977",part:"terms",id:"terms"},this.terms.map((t=>n("option",{value:t.uri},t.shorthand)))))}static get delegatesFocus(){return true}static get watchers(){return{os:["setTerms"]}}};ms.style=bs;const gs=":host{border:var(--size-px) solid var(--pos-border-color);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);padding:var(--size-8);max-width:var(--size-96);background:var(--pos-card-background)}svg{width:var(--size-8)}h2{display:flex;align-items:center}p{padding:var(--size-2)}.info{color:var(--color-grey-900);background-color:var(--color-blue-200)}.warn{color:var(--color-grey-900);background-color:var(--color-yellow-200)}";const vs=gs;const ws=class{constructor(t){e(this,t)}render(){return n(i,{key:"a98de97ba1e0930b485a4a3610102deb02d927a7"},n("div",{key:"5cf196a71b95fdfed7e5d990b272e12d2b9dd3ff"},n("h2",{key:"99ddd9827f3ccc5a5277cc64e3952a3f5170f7bc"},n("svg",{key:"d9ce3722957428524cc9b264265320119f2e5c88",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},n("path",{key:"8e4e7af37df231e3141ba30b17a02517737cbe85","stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"})),"Cache Settings"),n("p",{key:"7175929cd9327bc705db305294afa362cb2f648c",class:"info"},"ℹ Enable offline cache to be able to access previously loaded data while offline."),n("p",{key:"784fd9141b339165fdab6a98c084430299ff7ed5",class:"warn"},"⚠ Private data may be stored on this device. Only enable it, if you trust this device."),n("label",{key:"dac2cddf6b6c374d1a2ef3c4d9bad63a9cb7b8d9"},n("input",{key:"e39adb18d03ce622a85dd48a28c6d3c0dc2ce7f4",type:"checkbox",checked:Gt.state.offlineCache,onChange:t=>Gt.state.offlineCache=t.target.checked}),"Enable offline cache")))}};ws.style=vs;var ys;(function(t){t["Generic"]="pos-app-generic";t["RdfDocument"]="pos-app-rdf-document";t["DocumentViewer"]="pos-app-document-viewer";t["ImageViewer"]="pos-app-image-viewer";t["LdpContainer"]="pos-app-ldp-container"})(ys||(ys={}));function xs(t,e){return t.some((t=>t.uri===e))}function ks(t){if(xs(t,"http://www.w3.org/ns/ldp#Container")){return ys.LdpContainer}else if(xs(t,"http://www.w3.org/2007/ont/link#RDFDocument")){return ys.RdfDocument}else if(xs(t,"http://www.w3.org/ns/iana/media-types/application/pdf#Resource")){return ys.DocumentViewer}else if(xs(t,"http://purl.org/dc/terms/Image")){return ys.ImageViewer}else if(xs(t,"http://www.w3.org/2007/ont/link#Document")){return ys.DocumentViewer}else{return ys.Generic}}const zs=class{constructor(t){e(this,t);this.subscribeResource=a(this,"pod-os:resource",7);this.receiveResource=t=>{this.types=t.types()}}componentWillLoad(){W(this)}render(){return this.types?this.renderApp():null}renderApp(){const t=ks(this.types);return n(t,null)}};
20
+ /**
21
+ * @license
22
+ * Copyright 2019 Google LLC
23
+ * SPDX-License-Identifier: BSD-3-Clause
24
+ */const Ss=globalThis,_s=Ss.ShadowRoot&&(void 0===Ss.ShadyCSS||Ss.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Cs=Symbol(),$s=new WeakMap;class As{constructor(t,e,n){if(this._$cssResult$=!0,n!==Cs)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(_s&&void 0===t){const n=void 0!==e&&1===e.length;n&&(t=$s.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&$s.set(e,t))}return t}toString(){return this.cssText}}const Is=t=>new As("string"==typeof t?t:t+"",void 0,Cs),Es=(t,...e)=>{const n=1===t.length?t[0]:e.reduce(((e,n,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[i+1]),t[0]);return new As(n,t,Cs)},Ms=(t,e)=>{if(_s)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const n of e){const e=document.createElement("style"),i=Ss.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=n.cssText,t.appendChild(e)}},Ts=_s?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return Is(e)})(t):t
25
+ /**
26
+ * @license
27
+ * Copyright 2017 Google LLC
28
+ * SPDX-License-Identifier: BSD-3-Clause
29
+ */;const{is:js,defineProperty:Ls,getOwnPropertyDescriptor:Os,getOwnPropertyNames:Ds,getOwnPropertySymbols:Ps,getPrototypeOf:Bs}=Object,Rs=globalThis,Us=Rs.trustedTypes,Ns=Us?Us.emptyScript:"",Xs=Rs.reactiveElementPolyfillSupport,Ws=(t,e)=>t,Hs={toAttribute(t,e){switch(e){case Boolean:t=t?Ns:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},Fs=(t,e)=>!js(t,e),Ys={attribute:!0,type:String,converter:Hs,reflect:!1,useDefault:!1,hasChanged:Fs};Symbol.metadata??=Symbol("metadata"),Rs.litPropertyMetadata??=new WeakMap;class Vs extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Ys){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const n=Symbol(),i=this.getPropertyDescriptor(t,n,e);void 0!==i&&Ls(this.prototype,t,i)}}static getPropertyDescriptor(t,e,n){const{get:i,set:s}=Os(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:i,set(e){const o=i?.call(this);s?.call(this,e),this.requestUpdate(t,o,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ys}static _$Ei(){if(this.hasOwnProperty(Ws("elementProperties")))return;const t=Bs(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Ws("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ws("properties"))){const t=this.properties,e=[...Ds(t),...Ps(t)];for(const n of e)this.createProperty(n,t[n])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,n]of e)this.elementProperties.set(t,n)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const n=this._$Eu(t,e);void 0!==n&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const t of n)e.unshift(Ts(t))}else void 0!==t&&e.push(Ts(t));return e}static _$Eu(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const n of e.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ms(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$ET(t,e){const n=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,n);if(void 0!==i&&!0===n.reflect){const s=(void 0!==n.converter?.toAttribute?n.converter:Hs).toAttribute(e,n.type);this._$Em=t,null==s?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(t,e){const n=this.constructor,i=n._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=n.getPropertyOptions(i),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:Hs;this._$Em=i;const o=s.fromAttribute(e,t.type);this[i]=o??this._$Ej?.get(i)??o,this._$Em=null}}requestUpdate(t,e,n){if(void 0!==t){const i=this.constructor,s=this[t];if(n??=i.getPropertyOptions(t),!((n.hasChanged??Fs)(s,e)||n.useDefault&&n.reflect&&s===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,n))))return;this.C(t,e,n)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:n,reflect:i,wrapped:s},o){n&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,o??e??this[t]),!0!==s||void 0!==o)||(this._$AL.has(t)||(this.hasUpdated||n||(e=void 0),this._$AL.set(t,e)),!0===i&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,n]of t){const{wrapped:t}=n,i=this[e];!0!==t||this._$AL.has(e)||void 0===i||this.C(e,void 0,n,i)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}}Vs.elementStyles=[],Vs.shadowRootOptions={mode:"open"},Vs[Ws("elementProperties")]=new Map,Vs[Ws("finalized")]=new Map,Xs?.({ReactiveElement:Vs}),(Rs.reactiveElementVersions??=[]).push("2.1.1");
30
+ /**
31
+ * @license
32
+ * Copyright 2017 Google LLC
33
+ * SPDX-License-Identifier: BSD-3-Clause
34
+ */const qs=globalThis,Zs=qs.trustedTypes,Ks=Zs?Zs.createPolicy("lit-html",{createHTML:t=>t}):void 0,Gs="$lit$",Js=`lit$${Math.random().toFixed(9).slice(2)}$`,Qs="?"+Js,to=`<${Qs}>`,eo=document,no=()=>eo.createComment(""),io=t=>null===t||"object"!=typeof t&&"function"!=typeof t,so=Array.isArray,oo=t=>so(t)||"function"==typeof t?.[Symbol.iterator],ro="[ \t\n\f\r]",ao=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,co=/-->/g,lo=/>/g,ho=RegExp(`>|${ro}(?:([^\\s"'>=/]+)(${ro}*=${ro}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),uo=/'/g,fo=/"/g,po=/^(?:script|style|textarea|title)$/i,bo=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),mo=bo(1),go=Symbol.for("lit-noChange"),vo=Symbol.for("lit-nothing"),wo=new WeakMap,yo=eo.createTreeWalker(eo,129);function xo(t,e){if(!so(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Ks?Ks.createHTML(e):e}const ko=(t,e)=>{const n=t.length-1,i=[];let s,o=2===e?"<svg>":3===e?"<math>":"",r=ao;for(let e=0;e<n;e++){const n=t[e];let a,c,l=-1,d=0;for(;d<n.length&&(r.lastIndex=d,c=r.exec(n),null!==c);)d=r.lastIndex,r===ao?"!--"===c[1]?r=co:void 0!==c[1]?r=lo:void 0!==c[2]?(po.test(c[2])&&(s=RegExp("</"+c[2],"g")),r=ho):void 0!==c[3]&&(r=ho):r===ho?">"===c[0]?(r=s??ao,l=-1):void 0===c[1]?l=-2:(l=r.lastIndex-c[2].length,a=c[1],r=void 0===c[3]?ho:'"'===c[3]?fo:uo):r===fo||r===uo?r=ho:r===co||r===lo?r=ao:(r=ho,s=void 0);const h=r===ho&&t[e+1].startsWith("/>")?" ":"";o+=r===ao?n+to:l>=0?(i.push(a),n.slice(0,l)+Gs+n.slice(l)+Js+h):n+Js+(-2===l?e:h)}return[xo(t,o+(t[n]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]};class zo{constructor({strings:t,_$litType$:e},n){let i;this.parts=[];let s=0,o=0;const r=t.length-1,a=this.parts,[c,l]=ko(t,e);if(this.el=zo.createElement(c,n),yo.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=yo.nextNode())&&a.length<r;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(Gs)){const e=l[o++],n=i.getAttribute(t).split(Js),r=/([.?@])?(.*)/.exec(e);a.push({type:1,index:s,name:r[2],strings:n,ctor:"."===r[1]?Ao:"?"===r[1]?Io:"@"===r[1]?Eo:$o}),i.removeAttribute(t)}else t.startsWith(Js)&&(a.push({type:6,index:s}),i.removeAttribute(t));if(po.test(i.tagName)){const t=i.textContent.split(Js),e=t.length-1;if(e>0){i.textContent=Zs?Zs.emptyScript:"";for(let n=0;n<e;n++)i.append(t[n],no()),yo.nextNode(),a.push({type:2,index:++s});i.append(t[e],no())}}}else if(8===i.nodeType)if(i.data===Qs)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=i.data.indexOf(Js,t+1));)a.push({type:7,index:s}),t+=Js.length-1}s++}}static createElement(t,e){const n=eo.createElement("template");return n.innerHTML=t,n}}function So(t,e,n=t,i){if(e===go)return e;let s=void 0!==i?n._$Co?.[i]:n._$Cl;const o=io(e)?void 0:e._$litDirective$;return s?.constructor!==o&&(s?._$AO?.(!1),void 0===o?s=void 0:(s=new o(t),s._$AT(t,n,i)),void 0!==i?(n._$Co??=[])[i]=s:n._$Cl=s),void 0!==s&&(e=So(t,s._$AS(t,e.values),s,i)),e}class _o{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:n}=this._$AD,i=(t?.creationScope??eo).importNode(e,!0);yo.currentNode=i;let s=yo.nextNode(),o=0,r=0,a=n[0];for(;void 0!==a;){if(o===a.index){let e;2===a.type?e=new Co(s,s.nextSibling,this,t):1===a.type?e=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(e=new Mo(s,this,t)),this._$AV.push(e),a=n[++r]}o!==a?.index&&(s=yo.nextNode(),o++)}return yo.currentNode=eo,i}p(t){let e=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class Co{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,n,i){this.type=2,this._$AH=vo,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=So(this,t,e),io(t)?t===vo||null==t||""===t?(this._$AH!==vo&&this._$AR(),this._$AH=vo):t!==this._$AH&&t!==go&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):oo(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==vo&&io(this._$AH)?this._$AA.nextSibling.data=t:this.T(eo.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:n}=t,i="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=zo.createElement(xo(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new _o(i,this),n=t.u(this.options);t.p(e),this.T(n),this._$AH=t}}_$AC(t){let e=wo.get(t.strings);return void 0===e&&wo.set(t.strings,e=new zo(t)),e}k(t){so(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,i=0;for(const s of t)i===e.length?e.push(n=new Co(this.O(no()),this.O(no()),this,this.options)):n=e[i],n._$AI(s),i++;i<e.length&&(this._$AR(n&&n._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class $o{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,n,i,s){this.type=1,this._$AH=vo,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=s,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=vo}_$AI(t,e=this,n,i){const s=this.strings;let o=!1;if(void 0===s)t=So(this,t,e,0),o=!io(t)||t!==this._$AH&&t!==go,o&&(this._$AH=t);else{const i=t;let r,a;for(t=s[0],r=0;r<s.length-1;r++)a=So(this,i[n+r],e,r),a===go&&(a=this._$AH[r]),o||=!io(a)||a!==this._$AH[r],a===vo?t=vo:t!==vo&&(t+=(a??"")+s[r+1]),this._$AH[r]=a}o&&!i&&this.j(t)}j(t){t===vo?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Ao extends $o{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===vo?void 0:t}}class Io extends $o{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==vo)}}class Eo extends $o{constructor(t,e,n,i,s){super(t,e,n,i,s),this.type=5}_$AI(t,e=this){if((t=So(this,t,e,0)??vo)===go)return;const n=this._$AH,i=t===vo&&n!==vo||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,s=t!==vo&&(n===vo||i);i&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class Mo{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){So(this,t)}}const To=qs.litHtmlPolyfillSupport;To?.(zo,Co),(qs.litHtmlVersions??=[]).push("3.3.1");const jo=(t,e,n)=>{const i=n?.renderBefore??e;let s=i._$litPart$;if(void 0===s){const t=n?.renderBefore??null;i._$litPart$=s=new Co(e.insertBefore(no(),t),t,void 0,n??{})}return s._$AI(t),s
35
+ /**
36
+ * @license
37
+ * Copyright 2017 Google LLC
38
+ * SPDX-License-Identifier: BSD-3-Clause
39
+ */};const Lo=globalThis;class Oo extends Vs{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=jo(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return go}}Oo._$litElement$=!0,Oo["finalized"]=!0,Lo.litElementHydrateSupport?.({LitElement:Oo});const Do=Lo.litElementPolyfillSupport;Do?.({LitElement:Oo});(Lo.litElementVersions??=[]).push("4.2.1");var Po=Es`
40
+ :host {
41
+ display: inline-block;
42
+ }
43
+
44
+ .dropdown::part(popup) {
45
+ z-index: var(--sl-z-index-dropdown);
46
+ }
47
+
48
+ .dropdown[data-current-placement^='top']::part(popup) {
49
+ transform-origin: bottom;
50
+ }
51
+
52
+ .dropdown[data-current-placement^='bottom']::part(popup) {
53
+ transform-origin: top;
54
+ }
55
+
56
+ .dropdown[data-current-placement^='left']::part(popup) {
57
+ transform-origin: right;
58
+ }
59
+
60
+ .dropdown[data-current-placement^='right']::part(popup) {
61
+ transform-origin: left;
62
+ }
63
+
64
+ .dropdown__trigger {
65
+ display: block;
66
+ }
67
+
68
+ .dropdown__panel {
69
+ font-family: var(--sl-font-sans);
70
+ font-size: var(--sl-font-size-medium);
71
+ font-weight: var(--sl-font-weight-normal);
72
+ box-shadow: var(--sl-shadow-large);
73
+ border-radius: var(--sl-border-radius-medium);
74
+ pointer-events: none;
75
+ }
76
+
77
+ .dropdown--open .dropdown__panel {
78
+ display: block;
79
+ pointer-events: all;
80
+ }
81
+
82
+ /* When users slot a menu, make sure it conforms to the popup's auto-size */
83
+ ::slotted(sl-menu) {
84
+ max-width: var(--auto-size-available-width) !important;
85
+ max-height: var(--auto-size-available-height) !important;
86
+ }
87
+ `;var Bo=Object.defineProperty;var Ro=Object.defineProperties;var Uo=Object.getOwnPropertyDescriptor;var No=Object.getOwnPropertyDescriptors;var Xo=Object.getOwnPropertySymbols;var Wo=Object.prototype.hasOwnProperty;var Ho=Object.prototype.propertyIsEnumerable;var Fo=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t);var Yo=t=>{throw TypeError(t)};var Vo=(t,e,n)=>e in t?Bo(t,e,{enumerable:true,configurable:true,writable:true,value:n}):t[e]=n;var qo=(t,e)=>{for(var n in e||(e={}))if(Wo.call(e,n))Vo(t,n,e[n]);if(Xo)for(var n of Xo(e)){if(Ho.call(e,n))Vo(t,n,e[n])}return t};var Zo=(t,e)=>Ro(t,No(e));var Ko=(t,e,n,i)=>{var s=i>1?void 0:i?Uo(e,n):e;for(var o=t.length-1,r;o>=0;o--)if(r=t[o])s=(i?r(e,n,s):r(s))||s;if(i&&s)Bo(e,n,s);return s};var Go=(t,e,n)=>e.has(t)||Yo("Cannot "+n);var Jo=(t,e,n)=>(Go(t,e,"read from private field"),n?n.call(t):e.get(t));var Qo=(t,e,n)=>e.has(t)?Yo("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n);var tr=(t,e,n,i)=>(Go(t,e,"write to private field"),i?i.call(t,n):e.set(t,n),n);var er=function(t,e){this[0]=t;this[1]=e};var nr=t=>{var e=t[Fo("asyncIterator")],n=false,i,s={};if(e==null){e=t[Fo("iterator")]();i=t=>s[t]=n=>e[t](n)}else{e=e.call(t);i=t=>s[t]=i=>{if(n){n=false;if(t==="throw")throw i;return i}n=true;return{done:false,value:new er(new Promise((n=>{var s=e[t](i);if(!(s instanceof Object))Yo("Object expected");n(s)})),1)}}}return s[Fo("iterator")]=()=>s,i("next"),"throw"in e?i("throw"):s.throw=t=>{throw t},"return"in e&&i("return"),s};function*ir(t=document.activeElement){if(t===null||t===void 0)return;yield t;if("shadowRoot"in t&&t.shadowRoot&&t.shadowRoot.mode!=="closed"){yield*nr(ir(t.shadowRoot.activeElement))}}function sr(){return[...ir()].pop()}var or=new WeakMap;function rr(t){let e=or.get(t);if(!e){e=window.getComputedStyle(t,null);or.set(t,e)}return e}function ar(t){if(typeof t.checkVisibility==="function"){return t.checkVisibility({checkOpacity:false,checkVisibilityCSS:true})}const e=rr(t);return e.visibility!=="hidden"&&e.display!=="none"}function cr(t){const e=rr(t);const{overflowY:n,overflowX:i}=e;if(n==="scroll"||i==="scroll"){return true}if(n!=="auto"||i!=="auto"){return false}const s=t.scrollHeight>t.clientHeight;if(s&&n==="auto"){return true}const o=t.scrollWidth>t.clientWidth;if(o&&i==="auto"){return true}return false}function lr(t){const e=t.tagName.toLowerCase();const n=Number(t.getAttribute("tabindex"));const i=t.hasAttribute("tabindex");if(i&&(isNaN(n)||n<=-1)){return false}if(t.hasAttribute("disabled")){return false}if(t.closest("[inert]")){return false}if(e==="input"&&t.getAttribute("type")==="radio"){const e=t.getRootNode();const n=`input[type='radio'][name="${t.getAttribute("name")}"]`;const i=e.querySelector(`${n}:checked`);if(i){return i===t}const s=e.querySelector(n);return s===t}if(!ar(t)){return false}if((e==="audio"||e==="video")&&t.hasAttribute("controls")){return true}if(t.hasAttribute("tabindex")){return true}if(t.hasAttribute("contenteditable")&&t.getAttribute("contenteditable")!=="false"){return true}const s=["button","input","select","textarea","a","audio","video","summary","iframe"].includes(e);if(s){return true}return cr(t)}function dr(t){var e,n;const i=ur(t);const s=(e=i[0])!=null?e:null;const o=(n=i[i.length-1])!=null?n:null;return{start:s,end:o}}function hr(t,e){var n;return((n=t.getRootNode({composed:true}))==null?void 0:n.host)!==e}function ur(t){const e=new WeakMap;const n=[];function i(s){if(s instanceof Element){if(s.hasAttribute("inert")||s.closest("[inert]")){return}if(e.has(s)){return}e.set(s,true);if(!n.includes(s)&&lr(s)){n.push(s)}if(s instanceof HTMLSlotElement&&hr(s,t)){s.assignedElements({flatten:true}).forEach((t=>{i(t)}))}if(s.shadowRoot!==null&&s.shadowRoot.mode==="open"){i(s.shadowRoot)}}for(const t of s.children){i(t)}}i(t);return n.sort(((t,e)=>{const n=Number(t.getAttribute("tabindex"))||0;const i=Number(e.getAttribute("tabindex"))||0;return i-n}))}var fr=Es`
88
+ :host {
89
+ --arrow-color: var(--sl-color-neutral-1000);
90
+ --arrow-size: 6px;
91
+
92
+ /*
93
+ * These properties are computed to account for the arrow's dimensions after being rotated 45º. The constant
94
+ * 0.7071 is derived from sin(45), which is the diagonal size of the arrow's container after rotating.
95
+ */
96
+ --arrow-size-diagonal: calc(var(--arrow-size) * 0.7071);
97
+ --arrow-padding-offset: calc(var(--arrow-size-diagonal) - var(--arrow-size));
98
+
99
+ display: contents;
100
+ }
101
+
102
+ .popup {
103
+ position: absolute;
104
+ isolation: isolate;
105
+ max-width: var(--auto-size-available-width, none);
106
+ max-height: var(--auto-size-available-height, none);
107
+ }
108
+
109
+ .popup--fixed {
110
+ position: fixed;
111
+ }
112
+
113
+ .popup:not(.popup--active) {
114
+ display: none;
115
+ }
116
+
117
+ .popup__arrow {
118
+ position: absolute;
119
+ width: calc(var(--arrow-size-diagonal) * 2);
120
+ height: calc(var(--arrow-size-diagonal) * 2);
121
+ rotate: 45deg;
122
+ background: var(--arrow-color);
123
+ z-index: -1;
124
+ }
125
+
126
+ /* Hover bridge */
127
+ .popup-hover-bridge:not(.popup-hover-bridge--visible) {
128
+ display: none;
129
+ }
130
+
131
+ .popup-hover-bridge {
132
+ position: fixed;
133
+ z-index: calc(var(--sl-z-index-dropdown) - 1);
134
+ top: 0;
135
+ right: 0;
136
+ bottom: 0;
137
+ left: 0;
138
+ clip-path: polygon(
139
+ var(--hover-bridge-top-left-x, 0) var(--hover-bridge-top-left-y, 0),
140
+ var(--hover-bridge-top-right-x, 0) var(--hover-bridge-top-right-y, 0),
141
+ var(--hover-bridge-bottom-right-x, 0) var(--hover-bridge-bottom-right-y, 0),
142
+ var(--hover-bridge-bottom-left-x, 0) var(--hover-bridge-bottom-left-y, 0)
143
+ );
144
+ }
145
+ `;const pr=new Set;const br=new Map;let mr;let gr="ltr";let vr="en";const wr=typeof MutationObserver!=="undefined"&&typeof document!=="undefined"&&typeof document.documentElement!=="undefined";if(wr){const t=new MutationObserver(xr);gr=document.documentElement.dir||"ltr";vr=document.documentElement.lang||navigator.language;t.observe(document.documentElement,{attributes:true,attributeFilter:["dir","lang"]})}function yr(...t){t.map((t=>{const e=t.$code.toLowerCase();if(br.has(e)){br.set(e,Object.assign(Object.assign({},br.get(e)),t))}else{br.set(e,t)}if(!mr){mr=t}}));xr()}function xr(){if(wr){gr=document.documentElement.dir||"ltr";vr=document.documentElement.lang||navigator.language}[...pr.keys()].map((t=>{if(typeof t.requestUpdate==="function"){t.requestUpdate()}}))}class kr{constructor(t){this.host=t;this.host.addController(this)}hostConnected(){pr.add(this.host)}hostDisconnected(){pr.delete(this.host)}dir(){return`${this.host.dir||gr}`.toLowerCase()}lang(){return`${this.host.lang||vr}`.toLowerCase()}getTranslationData(t){var e,n;const i=new Intl.Locale(t.replace(/_/g,"-"));const s=i===null||i===void 0?void 0:i.language.toLowerCase();const o=(n=(e=i===null||i===void 0?void 0:i.region)===null||e===void 0?void 0:e.toLowerCase())!==null&&n!==void 0?n:"";const r=br.get(`${s}-${o}`);const a=br.get(s);return{locale:i,language:s,region:o,primary:r,secondary:a}}exists(t,e){var n;const{primary:i,secondary:s}=this.getTranslationData((n=e.lang)!==null&&n!==void 0?n:this.lang());e=Object.assign({includeFallback:false},e);if(i&&i[t]||s&&s[t]||e.includeFallback&&mr&&mr[t]){return true}return false}term(t,...e){const{primary:n,secondary:i}=this.getTranslationData(this.lang());let s;if(n&&n[t]){s=n[t]}else if(i&&i[t]){s=i[t]}else if(mr&&mr[t]){s=mr[t]}else{console.error(`No translation found for: ${String(t)}`);return String(t)}if(typeof s==="function"){return s(...e)}return s}date(t,e){t=new Date(t);return new Intl.DateTimeFormat(this.lang(),e).format(t)}number(t,e){t=Number(t);return isNaN(t)?"":new Intl.NumberFormat(this.lang(),e).format(t)}relativeTime(t,e,n){return new Intl.RelativeTimeFormat(this.lang(),n).format(t,e)}}var zr={$code:"en",$name:"English",$dir:"ltr",carousel:"Carousel",clearEntry:"Clear entry",close:"Close",copied:"Copied",copy:"Copy",currentValue:"Current value",error:"Error",goToSlide:(t,e)=>`Go to slide ${t} of ${e}`,hidePassword:"Hide password",loading:"Loading",nextSlide:"Next slide",numOptionsSelected:t=>{if(t===0)return"No options selected";if(t===1)return"1 option selected";return`${t} options selected`},previousSlide:"Previous slide",progress:"Progress",remove:"Remove",resize:"Resize",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",selectAColorFromTheScreen:"Select a color from the screen",showPassword:"Show password",slideNum:t=>`Slide ${t}`,toggleColorFormat:"Toggle color format"};yr(zr);var Sr=zr;var _r=class extends kr{};yr(Sr);var Cr=Es`
146
+ :host {
147
+ box-sizing: border-box;
148
+ }
149
+
150
+ :host *,
151
+ :host *::before,
152
+ :host *::after {
153
+ box-sizing: inherit;
154
+ }
155
+
156
+ [hidden] {
157
+ display: none !important;
158
+ }
159
+ `
160
+ /**
161
+ * @license
162
+ * Copyright 2017 Google LLC
163
+ * SPDX-License-Identifier: BSD-3-Clause
164
+ */;const $r={attribute:!0,type:String,converter:Hs,reflect:!1,hasChanged:Fs},Ar=(t=$r,e,n)=>{const{kind:i,metadata:s}=n;let o=globalThis.litPropertyMetadata.get(s);if(void 0===o&&globalThis.litPropertyMetadata.set(s,o=new Map),"setter"===i&&((t=Object.create(t)).wrapped=!0),o.set(n.name,t),"accessor"===i){const{name:i}=n;return{set(n){const s=e.get.call(this);e.set.call(this,n),this.requestUpdate(i,s,t)},init(e){return void 0!==e&&this.C(i,void 0,t,e),e}}}if("setter"===i){const{name:i}=n;return function(n){const s=this[i];e.call(this,n),this.requestUpdate(i,s,t)}}throw Error("Unsupported decorator location: "+i)};function Ir(t){return(e,n)=>"object"==typeof n?Ar(t,e,n):((t,e,n)=>{const i=e.hasOwnProperty(n);return e.constructor.createProperty(n,t),i?Object.getOwnPropertyDescriptor(e,n):void 0})(t,e,n)
165
+ /**
166
+ * @license
167
+ * Copyright 2017 Google LLC
168
+ * SPDX-License-Identifier: BSD-3-Clause
169
+ */}function Er(t){return Ir({...t,state:!0,attribute:!1})}
170
+ /**
171
+ * @license
172
+ * Copyright 2017 Google LLC
173
+ * SPDX-License-Identifier: BSD-3-Clause
174
+ */const Mr=(t,e,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,n),n)
175
+ /**
176
+ * @license
177
+ * Copyright 2017 Google LLC
178
+ * SPDX-License-Identifier: BSD-3-Clause
179
+ */;function Tr(t,e){return(n,i,s)=>{const o=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:e}="object"==typeof i?n:s??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return Mr(n,i,{get(){let n=t.call(this);return void 0===n&&(n=o(this),(null!==n||this.hasUpdated)&&e.call(this,n)),n}})}return Mr(n,i,{get(){return o(this)}})}}var jr;var Lr=class extends Oo{constructor(){super();Qo(this,jr,false);this.initialReflectedProperties=new Map;Object.entries(this.constructor.dependencies).forEach((([t,e])=>{this.constructor.define(t,e)}))}emit(t,e){const n=new CustomEvent(t,qo({bubbles:true,cancelable:false,composed:true,detail:{}},e));this.dispatchEvent(n);return n}static define(t,e=this,n={}){const i=customElements.get(t);if(!i){try{customElements.define(t,e,n)}catch(i){customElements.define(t,class extends e{},n)}return}let s=" (unknown version)";let o=s;if("version"in e&&e.version){s=" v"+e.version}if("version"in i&&i.version){o=" v"+i.version}if(s&&o&&s===o){return}console.warn(`Attempted to register <${t}>${s}, but <${t}>${o} has already been registered.`)}attributeChangedCallback(t,e,n){if(!Jo(this,jr)){this.constructor.elementProperties.forEach(((t,e)=>{if(t.reflect&&this[e]!=null){this.initialReflectedProperties.set(e,this[e])}}));tr(this,jr,true)}super.attributeChangedCallback(t,e,n)}willUpdate(t){super.willUpdate(t);this.initialReflectedProperties.forEach(((e,n)=>{if(t.has(n)&&this[n]==null){this[n]=e}}))}};jr=new WeakMap;Lr.version="2.20.1";Lr.dependencies={};Ko([Ir()],Lr.prototype,"dir",2);Ko([Ir()],Lr.prototype,"lang",2);const Or=["top","right","bottom","left"];const Dr=["start","end"];const Pr=Or.reduce(((t,e)=>t.concat(e,e+"-"+Dr[0],e+"-"+Dr[1])),[]);const Br=Math.min;const Rr=Math.max;const Ur=Math.round;const Nr=Math.floor;const Xr=t=>({x:t,y:t});const Wr={left:"right",right:"left",bottom:"top",top:"bottom"};const Hr={start:"end",end:"start"};function Fr(t,e,n){return Rr(t,Br(e,n))}function Yr(t,e){return typeof t==="function"?t(e):t}function Vr(t){return t.split("-")[0]}function qr(t){return t.split("-")[1]}function Zr(t){return t==="x"?"y":"x"}function Kr(t){return t==="y"?"height":"width"}const Gr=new Set(["top","bottom"]);function Jr(t){return Gr.has(Vr(t))?"y":"x"}function Qr(t){return Zr(Jr(t))}function ta(t,e,n){if(n===void 0){n=false}const i=qr(t);const s=Qr(t);const o=Kr(s);let r=s==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";if(e.reference[o]>e.floating[o]){r=la(r)}return[r,la(r)]}function ea(t){const e=la(t);return[na(t),e,na(e)]}function na(t){return t.replace(/start|end/g,(t=>Hr[t]))}const ia=["left","right"];const sa=["right","left"];const oa=["top","bottom"];const ra=["bottom","top"];function aa(t,e,n){switch(t){case"top":case"bottom":if(n)return e?sa:ia;return e?ia:sa;case"left":case"right":return e?oa:ra;default:return[]}}function ca(t,e,n,i){const s=qr(t);let o=aa(Vr(t),n==="start",i);if(s){o=o.map((t=>t+"-"+s));if(e){o=o.concat(o.map(na))}}return o}function la(t){return t.replace(/left|right|bottom|top/g,(t=>Wr[t]))}function da(t){return{top:0,right:0,bottom:0,left:0,...t}}function ha(t){return typeof t!=="number"?da(t):{top:t,right:t,bottom:t,left:t}}function ua(t){const{x:e,y:n,width:i,height:s}=t;return{width:i,height:s,top:n,left:e,right:e+i,bottom:n+s,x:e,y:n}}function fa(t,e,n){let{reference:i,floating:s}=t;const o=Jr(e);const r=Qr(e);const a=Kr(r);const c=Vr(e);const l=o==="y";const d=i.x+i.width/2-s.width/2;const h=i.y+i.height/2-s.height/2;const u=i[a]/2-s[a]/2;let f;switch(c){case"top":f={x:d,y:i.y-s.height};break;case"bottom":f={x:d,y:i.y+i.height};break;case"right":f={x:i.x+i.width,y:h};break;case"left":f={x:i.x-s.width,y:h};break;default:f={x:i.x,y:i.y}}switch(qr(e)){case"start":f[r]-=u*(n&&l?-1:1);break;case"end":f[r]+=u*(n&&l?-1:1);break}return f}const pa=async(t,e,n)=>{const{placement:i="bottom",strategy:s="absolute",middleware:o=[],platform:r}=n;const a=o.filter(Boolean);const c=await(r.isRTL==null?void 0:r.isRTL(e));let l=await r.getElementRects({reference:t,floating:e,strategy:s});let{x:d,y:h}=fa(l,i,c);let u=i;let f={};let p=0;for(let n=0;n<a.length;n++){const{name:o,fn:b}=a[n];const{x:m,y:g,data:v,reset:w}=await b({x:d,y:h,initialPlacement:i,placement:u,strategy:s,middlewareData:f,rects:l,platform:r,elements:{reference:t,floating:e}});d=m!=null?m:d;h=g!=null?g:h;f={...f,[o]:{...f[o],...v}};if(w&&p<=50){p++;if(typeof w==="object"){if(w.placement){u=w.placement}if(w.rects){l=w.rects===true?await r.getElementRects({reference:t,floating:e,strategy:s}):w.rects}({x:d,y:h}=fa(l,u,c))}n=-1}}return{x:d,y:h,placement:u,strategy:s,middlewareData:f}};async function ba(t,e){var n;if(e===void 0){e={}}const{x:i,y:s,platform:o,rects:r,elements:a,strategy:c}=t;const{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:u=false,padding:f=0}=Yr(e,t);const p=ha(f);const b=h==="floating"?"reference":"floating";const m=a[u?b:h];const g=ua(await o.getClippingRect({element:((n=await(o.isElement==null?void 0:o.isElement(m)))!=null?n:true)?m:m.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:l,rootBoundary:d,strategy:c}));const v=h==="floating"?{x:i,y:s,width:r.floating.width,height:r.floating.height}:r.reference;const w=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating));const y=await(o.isElement==null?void 0:o.isElement(w))?await(o.getScale==null?void 0:o.getScale(w))||{x:1,y:1}:{x:1,y:1};const x=ua(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:w,strategy:c}):v);return{top:(g.top-x.top+p.top)/y.y,bottom:(x.bottom-g.bottom+p.bottom)/y.y,left:(g.left-x.left+p.left)/y.x,right:(x.right-g.right+p.right)/y.x}}const ma=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:i,placement:s,rects:o,platform:r,elements:a,middlewareData:c}=e;const{element:l,padding:d=0}=Yr(t,e)||{};if(l==null){return{}}const h=ha(d);const u={x:n,y:i};const f=Qr(s);const p=Kr(f);const b=await r.getDimensions(l);const m=f==="y";const g=m?"top":"left";const v=m?"bottom":"right";const w=m?"clientHeight":"clientWidth";const y=o.reference[p]+o.reference[f]-u[f]-o.floating[p];const x=u[f]-o.reference[f];const k=await(r.getOffsetParent==null?void 0:r.getOffsetParent(l));let z=k?k[w]:0;if(!z||!await(r.isElement==null?void 0:r.isElement(k))){z=a.floating[w]||o.floating[p]}const S=y/2-x/2;const _=z/2-b[p]/2-1;const C=Br(h[g],_);const $=Br(h[v],_);const A=C;const I=z-b[p]-$;const E=z/2-b[p]/2+S;const M=Fr(A,E,I);const T=!c.arrow&&qr(s)!=null&&E!==M&&o.reference[p]/2-(E<A?C:$)-b[p]/2<0;const j=T?E<A?E-A:E-I:0;return{[f]:u[f]+j,data:{[f]:M,centerOffset:E-M-j,...T&&{alignmentOffset:j}},reset:T}}});function ga(t,e,n){const i=t?[...n.filter((e=>qr(e)===t)),...n.filter((e=>qr(e)!==t))]:n.filter((t=>Vr(t)===t));return i.filter((n=>{if(t){return qr(n)===t||(e?na(n)!==n:false)}return true}))}const va=function(t){if(t===void 0){t={}}return{name:"autoPlacement",options:t,async fn(e){var n,i,s;const{rects:o,middlewareData:r,placement:a,platform:c,elements:l}=e;const{crossAxis:d=false,alignment:h,allowedPlacements:u=Pr,autoAlignment:f=true,...p}=Yr(t,e);const b=h!==undefined||u===Pr?ga(h||null,f,u):u;const m=await ba(e,p);const g=((n=r.autoPlacement)==null?void 0:n.index)||0;const v=b[g];if(v==null){return{}}const w=ta(v,o,await(c.isRTL==null?void 0:c.isRTL(l.floating)));if(a!==v){return{reset:{placement:b[0]}}}const y=[m[Vr(v)],m[w[0]],m[w[1]]];const x=[...((i=r.autoPlacement)==null?void 0:i.overflows)||[],{placement:v,overflows:y}];const k=b[g+1];if(k){return{data:{index:g+1,overflows:x},reset:{placement:k}}}const z=x.map((t=>{const e=qr(t.placement);return[t.placement,e&&d?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1]));const S=z.filter((t=>t[2].slice(0,qr(t[0])?2:3).every((t=>t<=0))));const _=((s=S[0])==null?void 0:s[0])||z[0][0];if(_!==a){return{data:{index:g+1,overflows:x},reset:{placement:_}}}return{}}}};const wa=function(t){if(t===void 0){t={}}return{name:"flip",options:t,async fn(e){var n,i;const{placement:s,middlewareData:o,rects:r,initialPlacement:a,platform:c,elements:l}=e;const{mainAxis:d=true,crossAxis:h=true,fallbackPlacements:u,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:b=true,...m}=Yr(t,e);if((n=o.arrow)!=null&&n.alignmentOffset){return{}}const g=Vr(s);const v=Jr(a);const w=Vr(a)===a;const y=await(c.isRTL==null?void 0:c.isRTL(l.floating));const x=u||(w||!b?[la(a)]:ea(a));const k=p!=="none";if(!u&&k){x.push(...ca(a,b,p,y))}const z=[a,...x];const S=await ba(e,m);const _=[];let C=((i=o.flip)==null?void 0:i.overflows)||[];if(d){_.push(S[g])}if(h){const t=ta(s,r,y);_.push(S[t[0]],S[t[1]])}C=[...C,{placement:s,overflows:_}];if(!_.every((t=>t<=0))){var $,A;const t=((($=o.flip)==null?void 0:$.index)||0)+1;const e=z[t];if(e){const n=h==="alignment"?v!==Jr(e):false;if(!n||C.every((t=>t.overflows[0]>0&&Jr(t.placement)===v))){return{data:{index:t,overflows:C},reset:{placement:e}}}}let n=(A=C.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])==null?void 0:A.placement;if(!n){switch(f){case"bestFit":{var I;const t=(I=C.filter((t=>{if(k){const e=Jr(t.placement);return e===v||e==="y"}return true})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])==null?void 0:I[0];if(t){n=t}break}case"initialPlacement":n=a;break}}if(s!==n){return{reset:{placement:n}}}}return{}}}};function ya(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function xa(t){return Or.some((e=>t[e]>=0))}const ka=function(t){if(t===void 0){t={}}return{name:"hide",options:t,async fn(e){const{rects:n}=e;const{strategy:i="referenceHidden",...s}=Yr(t,e);switch(i){case"referenceHidden":{const t=await ba(e,{...s,elementContext:"reference"});const i=ya(t,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:xa(i)}}}case"escaped":{const t=await ba(e,{...s,altBoundary:true});const i=ya(t,n.floating);return{data:{escapedOffsets:i,escaped:xa(i)}}}default:{return{}}}}}};function za(t){const e=Br(...t.map((t=>t.left)));const n=Br(...t.map((t=>t.top)));const i=Rr(...t.map((t=>t.right)));const s=Rr(...t.map((t=>t.bottom)));return{x:e,y:n,width:i-e,height:s-n}}function Sa(t){const e=t.slice().sort(((t,e)=>t.y-e.y));const n=[];let i=null;for(let t=0;t<e.length;t++){const s=e[t];if(!i||s.y-i.y>i.height/2){n.push([s])}else{n[n.length-1].push(s)}i=s}return n.map((t=>ua(za(t))))}const _a=function(t){if(t===void 0){t={}}return{name:"inline",options:t,async fn(e){const{placement:n,elements:i,rects:s,platform:o,strategy:r}=e;const{padding:a=2,x:c,y:l}=Yr(t,e);const d=Array.from(await(o.getClientRects==null?void 0:o.getClientRects(i.reference))||[]);const h=Sa(d);const u=ua(za(d));const f=ha(a);function p(){if(h.length===2&&h[0].left>h[1].right&&c!=null&&l!=null){return h.find((t=>c>t.left-f.left&&c<t.right+f.right&&l>t.top-f.top&&l<t.bottom+f.bottom))||u}if(h.length>=2){if(Jr(n)==="y"){const t=h[0];const e=h[h.length-1];const i=Vr(n)==="top";const s=t.top;const o=e.bottom;const r=i?t.left:e.left;const a=i?t.right:e.right;const c=a-r;const l=o-s;return{top:s,bottom:o,left:r,right:a,width:c,height:l,x:r,y:s}}const t=Vr(n)==="left";const e=Rr(...h.map((t=>t.right)));const i=Br(...h.map((t=>t.left)));const s=h.filter((n=>t?n.left===i:n.right===e));const o=s[0].top;const r=s[s.length-1].bottom;const a=i;const c=e;const l=c-a;const d=r-o;return{top:o,bottom:r,left:a,right:c,width:l,height:d,x:a,y:o}}return u}const b=await o.getElementRects({reference:{getBoundingClientRect:p},floating:i.floating,strategy:r});if(s.reference.x!==b.reference.x||s.reference.y!==b.reference.y||s.reference.width!==b.reference.width||s.reference.height!==b.reference.height){return{reset:{rects:b}}}return{}}}};const Ca=new Set(["left","top"]);async function $a(t,e){const{placement:n,platform:i,elements:s}=t;const o=await(i.isRTL==null?void 0:i.isRTL(s.floating));const r=Vr(n);const a=qr(n);const c=Jr(n)==="y";const l=Ca.has(r)?-1:1;const d=o&&c?-1:1;const h=Yr(e,t);let{mainAxis:u,crossAxis:f,alignmentAxis:p}=typeof h==="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};if(a&&typeof p==="number"){f=a==="end"?p*-1:p}return c?{x:f*d,y:u*l}:{x:u*l,y:f*d}}const Aa=function(t){if(t===void 0){t=0}return{name:"offset",options:t,async fn(e){var n,i;const{x:s,y:o,placement:r,middlewareData:a}=e;const c=await $a(e,t);if(r===((n=a.offset)==null?void 0:n.placement)&&(i=a.arrow)!=null&&i.alignmentOffset){return{}}return{x:s+c.x,y:o+c.y,data:{...c,placement:r}}}}};const Ia=function(t){if(t===void 0){t={}}return{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:s}=e;const{mainAxis:o=true,crossAxis:r=false,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...c}=Yr(t,e);const l={x:n,y:i};const d=await ba(e,c);const h=Jr(Vr(s));const u=Zr(h);let f=l[u];let p=l[h];if(o){const t=u==="y"?"top":"left";const e=u==="y"?"bottom":"right";const n=f+d[t];const i=f-d[e];f=Fr(n,f,i)}if(r){const t=h==="y"?"top":"left";const e=h==="y"?"bottom":"right";const n=p+d[t];const i=p-d[e];p=Fr(n,p,i)}const b=a.fn({...e,[u]:f,[h]:p});return{...b,data:{x:b.x-n,y:b.y-i,enabled:{[u]:o,[h]:r}}}}}};const Ea=function(t){if(t===void 0){t={}}return{options:t,fn(e){const{x:n,y:i,placement:s,rects:o,middlewareData:r}=e;const{offset:a=0,mainAxis:c=true,crossAxis:l=true}=Yr(t,e);const d={x:n,y:i};const h=Jr(s);const u=Zr(h);let f=d[u];let p=d[h];const b=Yr(a,e);const m=typeof b==="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(c){const t=u==="y"?"height":"width";const e=o.reference[u]-o.floating[t]+m.mainAxis;const n=o.reference[u]+o.reference[t]-m.mainAxis;if(f<e){f=e}else if(f>n){f=n}}if(l){var g,v;const t=u==="y"?"width":"height";const e=Ca.has(Vr(s));const n=o.reference[h]-o.floating[t]+(e?((g=r.offset)==null?void 0:g[h])||0:0)+(e?0:m.crossAxis);const i=o.reference[h]+o.reference[t]+(e?0:((v=r.offset)==null?void 0:v[h])||0)-(e?m.crossAxis:0);if(p<n){p=n}else if(p>i){p=i}}return{[u]:f,[h]:p}}}};const Ma=function(t){if(t===void 0){t={}}return{name:"size",options:t,async fn(e){var n,i;const{placement:s,rects:o,platform:r,elements:a}=e;const{apply:c=(()=>{}),...l}=Yr(t,e);const d=await ba(e,l);const h=Vr(s);const u=qr(s);const f=Jr(s)==="y";const{width:p,height:b}=o.floating;let m;let g;if(h==="top"||h==="bottom"){m=h;g=u===(await(r.isRTL==null?void 0:r.isRTL(a.floating))?"start":"end")?"left":"right"}else{g=h;m=u==="end"?"top":"bottom"}const v=b-d.top-d.bottom;const w=p-d.left-d.right;const y=Br(b-d[m],v);const x=Br(p-d[g],w);const k=!e.middlewareData.shift;let z=y;let S=x;if((n=e.middlewareData.shift)!=null&&n.enabled.x){S=w}if((i=e.middlewareData.shift)!=null&&i.enabled.y){z=v}if(k&&!u){const t=Rr(d.left,0);const e=Rr(d.right,0);const n=Rr(d.top,0);const i=Rr(d.bottom,0);if(f){S=p-2*(t!==0||e!==0?t+e:Rr(d.left,d.right))}else{z=b-2*(n!==0||i!==0?n+i:Rr(d.top,d.bottom))}}await c({...e,availableWidth:S,availableHeight:z});const _=await r.getDimensions(a.floating);if(p!==_.width||b!==_.height){return{reset:{rects:true}}}return{}}}};function Ta(){return typeof window!=="undefined"}function ja(t){if(Da(t)){return(t.nodeName||"").toLowerCase()}return"#document"}function La(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Oa(t){var e;return(e=(Da(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Da(t){if(!Ta()){return false}return t instanceof Node||t instanceof La(t).Node}function Pa(t){if(!Ta()){return false}return t instanceof Element||t instanceof La(t).Element}function Ba(t){if(!Ta()){return false}return t instanceof HTMLElement||t instanceof La(t).HTMLElement}function Ra(t){if(!Ta()||typeof ShadowRoot==="undefined"){return false}return t instanceof ShadowRoot||t instanceof La(t).ShadowRoot}const Ua=new Set(["inline","contents"]);function Na(t){const{overflow:e,overflowX:n,overflowY:i,display:s}=tc(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!Ua.has(s)}const Xa=new Set(["table","td","th"]);function Wa(t){return Xa.has(ja(t))}const Ha=[":popover-open",":modal"];function Fa(t){return Ha.some((e=>{try{return t.matches(e)}catch(t){return false}}))}const Ya=["transform","translate","scale","rotate","perspective"];const Va=["transform","translate","scale","rotate","perspective","filter"];const qa=["paint","layout","strict","content"];function Za(t){const e=Ga();const n=Pa(t)?tc(t):t;return Ya.some((t=>n[t]?n[t]!=="none":false))||(n.containerType?n.containerType!=="normal":false)||!e&&(n.backdropFilter?n.backdropFilter!=="none":false)||!e&&(n.filter?n.filter!=="none":false)||Va.some((t=>(n.willChange||"").includes(t)))||qa.some((t=>(n.contain||"").includes(t)))}function Ka(t){let e=nc(t);while(Ba(e)&&!Qa(e)){if(Za(e)){return e}else if(Fa(e)){return null}e=nc(e)}return null}function Ga(){if(typeof CSS==="undefined"||!CSS.supports)return false;return CSS.supports("-webkit-backdrop-filter","none")}const Ja=new Set(["html","body","#document"]);function Qa(t){return Ja.has(ja(t))}function tc(t){return La(t).getComputedStyle(t)}function ec(t){if(Pa(t)){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}return{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function nc(t){if(ja(t)==="html"){return t}const e=t.assignedSlot||t.parentNode||Ra(t)&&t.host||Oa(t);return Ra(e)?e.host:e}function ic(t){const e=nc(t);if(Qa(e)){return t.ownerDocument?t.ownerDocument.body:t.body}if(Ba(e)&&Na(e)){return e}return ic(e)}function sc(t,e,n){var i;if(e===void 0){e=[]}if(n===void 0){n=true}const s=ic(t);const o=s===((i=t.ownerDocument)==null?void 0:i.body);const r=La(s);if(o){const t=oc(r);return e.concat(r,r.visualViewport||[],Na(s)?s:[],t&&n?sc(t):[])}return e.concat(s,sc(s,[],n))}function oc(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function rc(t){const e=tc(t);let n=parseFloat(e.width)||0;let i=parseFloat(e.height)||0;const s=Ba(t);const o=s?t.offsetWidth:n;const r=s?t.offsetHeight:i;const a=Ur(n)!==o||Ur(i)!==r;if(a){n=o;i=r}return{width:n,height:i,$:a}}function ac(t){return!Pa(t)?t.contextElement:t}function cc(t){const e=ac(t);if(!Ba(e)){return Xr(1)}const n=e.getBoundingClientRect();const{width:i,height:s,$:o}=rc(e);let r=(o?Ur(n.width):n.width)/i;let a=(o?Ur(n.height):n.height)/s;if(!r||!Number.isFinite(r)){r=1}if(!a||!Number.isFinite(a)){a=1}return{x:r,y:a}}const lc=Xr(0);function dc(t){const e=La(t);if(!Ga()||!e.visualViewport){return lc}return{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function hc(t,e,n){if(e===void 0){e=false}if(!n||e&&n!==La(t)){return false}return e}function uc(t,e,n,i){if(e===void 0){e=false}if(n===void 0){n=false}const s=t.getBoundingClientRect();const o=ac(t);let r=Xr(1);if(e){if(i){if(Pa(i)){r=cc(i)}}else{r=cc(t)}}const a=hc(o,n,i)?dc(o):Xr(0);let c=(s.left+a.x)/r.x;let l=(s.top+a.y)/r.y;let d=s.width/r.x;let h=s.height/r.y;if(o){const t=La(o);const e=i&&Pa(i)?La(i):i;let n=t;let s=oc(n);while(s&&i&&e!==n){const t=cc(s);const e=s.getBoundingClientRect();const i=tc(s);const o=e.left+(s.clientLeft+parseFloat(i.paddingLeft))*t.x;const r=e.top+(s.clientTop+parseFloat(i.paddingTop))*t.y;c*=t.x;l*=t.y;d*=t.x;h*=t.y;c+=o;l+=r;n=La(s);s=oc(n)}}return ua({width:d,height:h,x:c,y:l})}function fc(t,e){const n=ec(t).scrollLeft;if(!e){return uc(Oa(t)).left+n}return e.left+n}function pc(t,e,n){if(n===void 0){n=false}const i=t.getBoundingClientRect();const s=i.left+e.scrollLeft-(n?0:fc(t,i));const o=i.top+e.scrollTop;return{x:s,y:o}}function bc(t){let{elements:e,rect:n,offsetParent:i,strategy:s}=t;const o=s==="fixed";const r=Oa(i);const a=e?Fa(e.floating):false;if(i===r||a&&o){return n}let c={scrollLeft:0,scrollTop:0};let l=Xr(1);const d=Xr(0);const h=Ba(i);if(h||!h&&!o){if(ja(i)!=="body"||Na(r)){c=ec(i)}if(Ba(i)){const t=uc(i);l=cc(i);d.x=t.x+i.clientLeft;d.y=t.y+i.clientTop}}const u=r&&!h&&!o?pc(r,c,true):Xr(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+d.x+u.x,y:n.y*l.y-c.scrollTop*l.y+d.y+u.y}}function mc(t){return Array.from(t.getClientRects())}function gc(t){const e=Oa(t);const n=ec(t);const i=t.ownerDocument.body;const s=Rr(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth);const o=Rr(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let r=-n.scrollLeft+fc(t);const a=-n.scrollTop;if(tc(i).direction==="rtl"){r+=Rr(e.clientWidth,i.clientWidth)-s}return{width:s,height:o,x:r,y:a}}function vc(t,e){const n=La(t);const i=Oa(t);const s=n.visualViewport;let o=i.clientWidth;let r=i.clientHeight;let a=0;let c=0;if(s){o=s.width;r=s.height;const t=Ga();if(!t||t&&e==="fixed"){a=s.offsetLeft;c=s.offsetTop}}return{width:o,height:r,x:a,y:c}}const wc=new Set(["absolute","fixed"]);function yc(t,e){const n=uc(t,true,e==="fixed");const i=n.top+t.clientTop;const s=n.left+t.clientLeft;const o=Ba(t)?cc(t):Xr(1);const r=t.clientWidth*o.x;const a=t.clientHeight*o.y;const c=s*o.x;const l=i*o.y;return{width:r,height:a,x:c,y:l}}function xc(t,e,n){let i;if(e==="viewport"){i=vc(t,n)}else if(e==="document"){i=gc(Oa(t))}else if(Pa(e)){i=yc(e,n)}else{const n=dc(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return ua(i)}function kc(t,e){const n=nc(t);if(n===e||!Pa(n)||Qa(n)){return false}return tc(n).position==="fixed"||kc(n,e)}function zc(t,e){const n=e.get(t);if(n){return n}let i=sc(t,[],false).filter((t=>Pa(t)&&ja(t)!=="body"));let s=null;const o=tc(t).position==="fixed";let r=o?nc(t):t;while(Pa(r)&&!Qa(r)){const e=tc(r);const n=Za(r);if(!n&&e.position==="fixed"){s=null}const a=o?!n&&!s:!n&&e.position==="static"&&!!s&&wc.has(s.position)||Na(r)&&!n&&kc(t,r);if(a){i=i.filter((t=>t!==r))}else{s=e}r=nc(r)}e.set(t,i);return i}function Sc(t){let{element:e,boundary:n,rootBoundary:i,strategy:s}=t;const o=n==="clippingAncestors"?Fa(e)?[]:zc(e,this._c):[].concat(n);const r=[...o,i];const a=r[0];const c=r.reduce(((t,n)=>{const i=xc(e,n,s);t.top=Rr(i.top,t.top);t.right=Br(i.right,t.right);t.bottom=Br(i.bottom,t.bottom);t.left=Rr(i.left,t.left);return t}),xc(e,a,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function _c(t){const{width:e,height:n}=rc(t);return{width:e,height:n}}function Cc(t,e,n){const i=Ba(e);const s=Oa(e);const o=n==="fixed";const r=uc(t,true,o,e);let a={scrollLeft:0,scrollTop:0};const c=Xr(0);function l(){c.x=fc(s)}if(i||!i&&!o){if(ja(e)!=="body"||Na(s)){a=ec(e)}if(i){const t=uc(e,true,o,e);c.x=t.x+e.clientLeft;c.y=t.y+e.clientTop}else if(s){l()}}if(o&&!i&&s){l()}const d=s&&!i&&!o?pc(s,a):Xr(0);const h=r.left+a.scrollLeft-c.x-d.x;const u=r.top+a.scrollTop-c.y-d.y;return{x:h,y:u,width:r.width,height:r.height}}function $c(t){return tc(t).position==="static"}function Ac(t,e){if(!Ba(t)||tc(t).position==="fixed"){return null}if(e){return e(t)}let n=t.offsetParent;if(Oa(t)===n){n=n.ownerDocument.body}return n}function Ic(t,e){const n=La(t);if(Fa(t)){return n}if(!Ba(t)){let e=nc(t);while(e&&!Qa(e)){if(Pa(e)&&!$c(e)){return e}e=nc(e)}return n}let i=Ac(t,e);while(i&&Wa(i)&&$c(i)){i=Ac(i,e)}if(i&&Qa(i)&&$c(i)&&!Za(i)){return n}return i||Ka(t)||n}const Ec=async function(t){const e=this.getOffsetParent||Ic;const n=this.getDimensions;const i=await n(t.floating);return{reference:Cc(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Mc(t){return tc(t).direction==="rtl"}const Tc={convertOffsetParentRelativeRectToViewportRelativeRect:bc,getDocumentElement:Oa,getClippingRect:Sc,getOffsetParent:Ic,getElementRects:Ec,getClientRects:mc,getDimensions:_c,getScale:cc,isElement:Pa,isRTL:Mc};function jc(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Lc(t,e){let n=null;let i;const s=Oa(t);function o(){var t;clearTimeout(i);(t=n)==null||t.disconnect();n=null}function r(a,c){if(a===void 0){a=false}if(c===void 0){c=1}o();const l=t.getBoundingClientRect();const{left:d,top:h,width:u,height:f}=l;if(!a){e()}if(!u||!f){return}const p=Nr(h);const b=Nr(s.clientWidth-(d+u));const m=Nr(s.clientHeight-(h+f));const g=Nr(d);const v=-p+"px "+-b+"px "+-m+"px "+-g+"px";const w={rootMargin:v,threshold:Rr(0,Br(1,c))||1};let y=true;function x(e){const n=e[0].intersectionRatio;if(n!==c){if(!y){return r()}if(!n){i=setTimeout((()=>{r(false,1e-7)}),1e3)}else{r(false,n)}}if(n===1&&!jc(l,t.getBoundingClientRect())){r()}y=false}try{n=new IntersectionObserver(x,{...w,root:s.ownerDocument})}catch(t){n=new IntersectionObserver(x,w)}n.observe(t)}r(true);return o}function Oc(t,e,n,i){if(i===void 0){i={}}const{ancestorScroll:s=true,ancestorResize:o=true,elementResize:r=typeof ResizeObserver==="function",layoutShift:a=typeof IntersectionObserver==="function",animationFrame:c=false}=i;const l=ac(t);const d=s||o?[...l?sc(l):[],...sc(e)]:[];d.forEach((t=>{s&&t.addEventListener("scroll",n,{passive:true});o&&t.addEventListener("resize",n)}));const h=l&&a?Lc(l,n):null;let u=-1;let f=null;if(r){f=new ResizeObserver((t=>{let[i]=t;if(i&&i.target===l&&f){f.unobserve(e);cancelAnimationFrame(u);u=requestAnimationFrame((()=>{var t;(t=f)==null||t.observe(e)}))}n()}));if(l&&!c){f.observe(l)}f.observe(e)}let p;let b=c?uc(t):null;if(c){m()}function m(){const e=uc(t);if(b&&!jc(b,e)){n()}b=e;p=requestAnimationFrame(m)}n();return()=>{var t;d.forEach((t=>{s&&t.removeEventListener("scroll",n);o&&t.removeEventListener("resize",n)}));h==null||h();(t=f)==null||t.disconnect();f=null;if(c){cancelAnimationFrame(p)}}}const Dc=Aa;va;const Pc=Ia;const Bc=wa;const Rc=Ma;ka;const Uc=ma;_a;Ea;const Nc=(t,e,n)=>{const i=new Map;const s={platform:Tc,...n};const o={...s.platform,_c:i};return pa(t,e,{...s,platform:o})};
180
+ /**
181
+ * @license
182
+ * Copyright 2017 Google LLC
183
+ * SPDX-License-Identifier: BSD-3-Clause
184
+ */const Xc={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Wc=t=>(...e)=>({_$litDirective$:t,values:e});class Hc{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
185
+ /**
186
+ * @license
187
+ * Copyright 2018 Google LLC
188
+ * SPDX-License-Identifier: BSD-3-Clause
189
+ */const Fc=Wc(class extends Hc{constructor(t){if(super(t),t.type!==Xc.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(e)}const n=t.element.classList;for(const t of this.st)t in e||(n.remove(t),this.st.delete(t));for(const t in e){const i=!!e[t];i===this.st.has(t)||this.nt?.has(t)||(i?(n.add(t),this.st.add(t)):(n.remove(t),this.st.delete(t)))}return go}});function Yc(t){return qc(t)}function Vc(t){if(t.assignedSlot){return t.assignedSlot}if(t.parentNode instanceof ShadowRoot){return t.parentNode.host}return t.parentNode}function qc(t){for(let e=t;e;e=Vc(e)){if(!(e instanceof Element)){continue}if(getComputedStyle(e).display==="none"){return null}}for(let e=Vc(t);e;e=Vc(e)){if(!(e instanceof Element)){continue}const t=getComputedStyle(e);if(t.display==="contents"){continue}if(t.position!=="static"||Za(t)){return e}if(e.tagName==="BODY"){return e}}return null}function Zc(t){return t!==null&&typeof t==="object"&&"getBoundingClientRect"in t&&("contextElement"in t?t.contextElement instanceof Element:true)}var Kc=class extends Lr{constructor(){super(...arguments);this.localize=new _r(this);this.active=false;this.placement="top";this.strategy="absolute";this.distance=0;this.skidding=0;this.arrow=false;this.arrowPlacement="anchor";this.arrowPadding=10;this.flip=false;this.flipFallbackPlacements="";this.flipFallbackStrategy="best-fit";this.flipPadding=0;this.shift=false;this.shiftPadding=0;this.autoSizePadding=0;this.hoverBridge=false;this.updateHoverBridge=()=>{if(this.hoverBridge&&this.anchorEl){const t=this.anchorEl.getBoundingClientRect();const e=this.popup.getBoundingClientRect();const n=this.placement.includes("top")||this.placement.includes("bottom");let i=0;let s=0;let o=0;let r=0;let a=0;let c=0;let l=0;let d=0;if(n){if(t.top<e.top){i=t.left;s=t.bottom;o=t.right;r=t.bottom;a=e.left;c=e.top;l=e.right;d=e.top}else{i=e.left;s=e.bottom;o=e.right;r=e.bottom;a=t.left;c=t.top;l=t.right;d=t.top}}else{if(t.left<e.left){i=t.right;s=t.top;o=e.left;r=e.top;a=t.right;c=t.bottom;l=e.left;d=e.bottom}else{i=e.right;s=e.top;o=t.left;r=t.top;a=e.right;c=e.bottom;l=t.left;d=t.bottom}}this.style.setProperty("--hover-bridge-top-left-x",`${i}px`);this.style.setProperty("--hover-bridge-top-left-y",`${s}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",`${c}px`);this.style.setProperty("--hover-bridge-bottom-right-x",`${l}px`);this.style.setProperty("--hover-bridge-bottom-right-y",`${d}px`)}}}async connectedCallback(){super.connectedCallback();await this.updateComplete;this.start()}disconnectedCallback(){super.disconnectedCallback();this.stop()}async updated(t){super.updated(t);if(t.has("active")){if(this.active){this.start()}else{this.stop()}}if(t.has("anchor")){this.handleAnchorChange()}if(this.active){await this.updateComplete;this.reposition()}}async handleAnchorChange(){await this.stop();if(this.anchor&&typeof this.anchor==="string"){const t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else if(this.anchor instanceof Element||Zc(this.anchor)){this.anchorEl=this.anchor}else{this.anchorEl=this.querySelector('[slot="anchor"]')}if(this.anchorEl instanceof HTMLSlotElement){this.anchorEl=this.anchorEl.assignedElements({flatten:true})[0]}if(this.anchorEl&&this.active){this.start()}}start(){if(!this.anchorEl||!this.active){return}this.cleanup=Oc(this.anchorEl,this.popup,(()=>{this.reposition()}))}async stop(){return new Promise((t=>{if(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()))}else{t()}}))}reposition(){if(!this.active||!this.anchorEl){return}const t=[Dc({mainAxis:this.distance,crossAxis:this.skidding})];if(this.sync){t.push(Rc({apply:({rects:t})=>{const e=this.sync==="width"||this.sync==="both";const n=this.sync==="height"||this.sync==="both";this.popup.style.width=e?`${t.reference.width}px`:"";this.popup.style.height=n?`${t.reference.height}px`:""}}))}else{this.popup.style.width="";this.popup.style.height=""}if(this.flip){t.push(Bc({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding}))}if(this.shift){t.push(Pc({boundary:this.shiftBoundary,padding:this.shiftPadding}))}if(this.autoSize){t.push(Rc({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:t,availableHeight:e})=>{if(this.autoSize==="vertical"||this.autoSize==="both"){this.style.setProperty("--auto-size-available-height",`${e}px`)}else{this.style.removeProperty("--auto-size-available-height")}if(this.autoSize==="horizontal"||this.autoSize==="both"){this.style.setProperty("--auto-size-available-width",`${t}px`)}else{this.style.removeProperty("--auto-size-available-width")}}}))}else{this.style.removeProperty("--auto-size-available-width");this.style.removeProperty("--auto-size-available-height")}if(this.arrow){t.push(Uc({element:this.arrowEl,padding:this.arrowPadding}))}const e=this.strategy==="absolute"?t=>Tc.getOffsetParent(t,Yc):Tc.getOffsetParent;Nc(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy,platform:Zo(qo({},Tc),{getOffsetParent:e})}).then((({x:t,y:e,middlewareData:n,placement:i})=>{const s=this.localize.dir()==="rtl";const o={top:"bottom",right:"left",bottom:"top",left:"right"}[i.split("-")[0]];this.setAttribute("data-current-placement",i);Object.assign(this.popup.style,{left:`${t}px`,top:`${e}px`});if(this.arrow){const t=n.arrow.x;const e=n.arrow.y;let i="";let r="";let a="";let c="";if(this.arrowPlacement==="start"){const n=typeof t==="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";i=typeof e==="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";r=s?n:"";c=s?"":n}else if(this.arrowPlacement==="end"){const n=typeof t==="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";r=s?"":n;c=s?n:"";a=typeof e==="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else if(this.arrowPlacement==="center"){c=typeof t==="number"?`calc(50% - var(--arrow-size-diagonal))`:"";i=typeof e==="number"?`calc(50% - var(--arrow-size-diagonal))`:""}else{c=typeof t==="number"?`${t}px`:"";i=typeof e==="number"?`${e}px`:""}Object.assign(this.arrowEl.style,{top:i,right:r,bottom:a,left:c,[o]:"calc(var(--arrow-size-diagonal) * -1)"})}}));requestAnimationFrame((()=>this.updateHoverBridge()));this.emit("sl-reposition")}render(){return mo`
190
+ <slot name="anchor" @slotchange=${this.handleAnchorChange}></slot>
191
+
192
+ <span
193
+ part="hover-bridge"
194
+ class=${Fc({"popup-hover-bridge":true,"popup-hover-bridge--visible":this.hoverBridge&&this.active})}
195
+ ></span>
196
+
197
+ <div
198
+ part="popup"
199
+ class=${Fc({popup:true,"popup--active":this.active,"popup--fixed":this.strategy==="fixed","popup--has-arrow":this.arrow})}
200
+ >
201
+ <slot></slot>
202
+ ${this.arrow?mo`<div part="arrow" class="popup__arrow" role="presentation"></div>`:""}
203
+ </div>
204
+ `}};Kc.styles=[Cr,fr];Ko([Tr(".popup")],Kc.prototype,"popup",2);Ko([Tr(".popup__arrow")],Kc.prototype,"arrowEl",2);Ko([Ir()],Kc.prototype,"anchor",2);Ko([Ir({type:Boolean,reflect:true})],Kc.prototype,"active",2);Ko([Ir({reflect:true})],Kc.prototype,"placement",2);Ko([Ir({reflect:true})],Kc.prototype,"strategy",2);Ko([Ir({type:Number})],Kc.prototype,"distance",2);Ko([Ir({type:Number})],Kc.prototype,"skidding",2);Ko([Ir({type:Boolean})],Kc.prototype,"arrow",2);Ko([Ir({attribute:"arrow-placement"})],Kc.prototype,"arrowPlacement",2);Ko([Ir({attribute:"arrow-padding",type:Number})],Kc.prototype,"arrowPadding",2);Ko([Ir({type:Boolean})],Kc.prototype,"flip",2);Ko([Ir({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map((t=>t.trim())).filter((t=>t!=="")),toAttribute:t=>t.join(" ")}})],Kc.prototype,"flipFallbackPlacements",2);Ko([Ir({attribute:"flip-fallback-strategy"})],Kc.prototype,"flipFallbackStrategy",2);Ko([Ir({type:Object})],Kc.prototype,"flipBoundary",2);Ko([Ir({attribute:"flip-padding",type:Number})],Kc.prototype,"flipPadding",2);Ko([Ir({type:Boolean})],Kc.prototype,"shift",2);Ko([Ir({type:Object})],Kc.prototype,"shiftBoundary",2);Ko([Ir({attribute:"shift-padding",type:Number})],Kc.prototype,"shiftPadding",2);Ko([Ir({attribute:"auto-size"})],Kc.prototype,"autoSize",2);Ko([Ir()],Kc.prototype,"sync",2);Ko([Ir({type:Object})],Kc.prototype,"autoSizeBoundary",2);Ko([Ir({attribute:"auto-size-padding",type:Number})],Kc.prototype,"autoSizePadding",2);Ko([Ir({attribute:"hover-bridge",type:Boolean})],Kc.prototype,"hoverBridge",2);var Gc=new Map;var Jc=new WeakMap;function Qc(t){return t!=null?t:{keyframes:[],options:{duration:0}}}function tl(t,e){if(e.toLowerCase()==="rtl"){return{keyframes:t.rtlKeyframes||t.keyframes,options:t.options}}return t}function el(t,e){Gc.set(t,Qc(e))}function nl(t,e,n){const i=Jc.get(t);if(i==null?void 0:i[e]){return tl(i[e],n.dir)}const s=Gc.get(e);if(s){return tl(s,n.dir)}return{keyframes:[],options:{duration:0}}}function il(t,e){return new Promise((n=>{function i(s){if(s.target===t){t.removeEventListener(e,i);n()}}t.addEventListener(e,i)}))}function sl(t,e,n){return new Promise((i=>{if((n==null?void 0:n.duration)===Infinity){throw new Error("Promise-based animations must be finite.")}const s=t.animate(e,Zo(qo({},n),{duration:ol()?0:n.duration}));s.addEventListener("cancel",i,{once:true});s.addEventListener("finish",i,{once:true})}))}function ol(){const t=window.matchMedia("(prefers-reduced-motion: reduce)");return t.matches}function rl(t){return Promise.all(t.getAnimations().map((t=>new Promise((e=>{t.cancel();requestAnimationFrame(e)})))))}function al(t,e){const n=qo({waitUntilFirstUpdate:false},e);return(e,i)=>{const{update:s}=e;const o=Array.isArray(t)?t:[t];e.update=function(t){o.forEach((e=>{const s=e;if(t.has(s)){const e=t.get(s);const o=this[s];if(e!==o){if(!n.waitUntilFirstUpdate||this.hasUpdated){this[i](e,o)}}}}));s.call(this,t)}}}
205
+ /**
206
+ * @license
207
+ * Copyright 2018 Google LLC
208
+ * SPDX-License-Identifier: BSD-3-Clause
209
+ */const cl=t=>t??vo;var ll=class extends Lr{constructor(){super(...arguments);this.localize=new _r(this);this.open=false;this.placement="bottom-start";this.disabled=false;this.stayOpenOnSelect=false;this.distance=0;this.skidding=0;this.hoist=false;this.sync=void 0;this.handleKeyDown=t=>{if(this.open&&t.key==="Escape"){t.stopPropagation();this.hide();this.focusOnTrigger()}};this.handleDocumentKeyDown=t=>{var e;if(t.key==="Escape"&&this.open&&!this.closeWatcher){t.stopPropagation();this.focusOnTrigger();this.hide();return}if(t.key==="Tab"){if(this.open&&((e=document.activeElement)==null?void 0:e.tagName.toLowerCase())==="sl-menu-item"){t.preventDefault();this.hide();this.focusOnTrigger();return}const n=(t,e)=>{if(!t)return null;const i=t.closest(e);if(i)return i;const s=t.getRootNode();if(s instanceof ShadowRoot){return n(s.host,e)}return null};setTimeout((()=>{var t;const e=((t=this.containingElement)==null?void 0:t.getRootNode())instanceof ShadowRoot?sr():document.activeElement;if(!this.containingElement||n(e,this.containingElement.tagName.toLowerCase())!==this.containingElement){this.hide()}}))}};this.handleDocumentMouseDown=t=>{const e=t.composedPath();if(this.containingElement&&!e.includes(this.containingElement)){this.hide()}};this.handlePanelSelect=t=>{const e=t.target;if(!this.stayOpenOnSelect&&e.tagName.toLowerCase()==="sl-menu"){this.hide();this.focusOnTrigger()}}}connectedCallback(){super.connectedCallback();if(!this.containingElement){this.containingElement=this}}firstUpdated(){this.panel.hidden=!this.open;if(this.open){this.addOpenListeners();this.popup.active=true}}disconnectedCallback(){super.disconnectedCallback();this.removeOpenListeners();this.hide()}focusOnTrigger(){const t=this.trigger.assignedElements({flatten:true})[0];if(typeof(t==null?void 0:t.focus)==="function"){t.focus()}}getMenu(){return this.panel.assignedElements({flatten:true}).find((t=>t.tagName.toLowerCase()==="sl-menu"))}handleTriggerClick(){if(this.open){this.hide()}else{this.show();this.focusOnTrigger()}}async handleTriggerKeyDown(t){if([" ","Enter"].includes(t.key)){t.preventDefault();this.handleTriggerClick();return}const e=this.getMenu();if(e){const n=e.getAllItems();const i=n[0];const s=n[n.length-1];if(["ArrowDown","ArrowUp","Home","End"].includes(t.key)){t.preventDefault();if(!this.open){this.show();await this.updateComplete}if(n.length>0){this.updateComplete.then((()=>{if(t.key==="ArrowDown"||t.key==="Home"){e.setCurrentItem(i);i.focus()}if(t.key==="ArrowUp"||t.key==="End"){e.setCurrentItem(s);s.focus()}}))}}}}handleTriggerKeyUp(t){if(t.key===" "){t.preventDefault()}}handleTriggerSlotChange(){this.updateAccessibleTrigger()}updateAccessibleTrigger(){const t=this.trigger.assignedElements({flatten:true});const e=t.find((t=>dr(t).start));let n;if(e){switch(e.tagName.toLowerCase()){case"sl-button":case"sl-icon-button":n=e.button;break;default:n=e}n.setAttribute("aria-haspopup","true");n.setAttribute("aria-expanded",this.open?"true":"false")}}async show(){if(this.open){return void 0}this.open=true;return il(this,"sl-after-show")}async hide(){if(!this.open){return void 0}this.open=false;return il(this,"sl-after-hide")}reposition(){this.popup.reposition()}addOpenListeners(){var t;this.panel.addEventListener("sl-select",this.handlePanelSelect);if("CloseWatcher"in window){(t=this.closeWatcher)==null?void 0:t.destroy();this.closeWatcher=new CloseWatcher;this.closeWatcher.onclose=()=>{this.hide();this.focusOnTrigger()}}else{this.panel.addEventListener("keydown",this.handleKeyDown)}document.addEventListener("keydown",this.handleDocumentKeyDown);document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){var t;if(this.panel){this.panel.removeEventListener("sl-select",this.handlePanelSelect);this.panel.removeEventListener("keydown",this.handleKeyDown)}document.removeEventListener("keydown",this.handleDocumentKeyDown);document.removeEventListener("mousedown",this.handleDocumentMouseDown);(t=this.closeWatcher)==null?void 0:t.destroy()}async handleOpenChange(){if(this.disabled){this.open=false;return}this.updateAccessibleTrigger();if(this.open){this.emit("sl-show");this.addOpenListeners();await rl(this);this.panel.hidden=false;this.popup.active=true;const{keyframes:t,options:e}=nl(this,"dropdown.show",{dir:this.localize.dir()});await sl(this.popup.popup,t,e);this.emit("sl-after-show")}else{this.emit("sl-hide");this.removeOpenListeners();await rl(this);const{keyframes:t,options:e}=nl(this,"dropdown.hide",{dir:this.localize.dir()});await sl(this.popup.popup,t,e);this.panel.hidden=true;this.popup.active=false;this.emit("sl-after-hide")}}render(){return mo`
210
+ <sl-popup
211
+ part="base"
212
+ exportparts="popup:base__popup"
213
+ id="dropdown"
214
+ placement=${this.placement}
215
+ distance=${this.distance}
216
+ skidding=${this.skidding}
217
+ strategy=${this.hoist?"fixed":"absolute"}
218
+ flip
219
+ shift
220
+ auto-size="vertical"
221
+ auto-size-padding="10"
222
+ sync=${cl(this.sync?this.sync:void 0)}
223
+ class=${Fc({dropdown:true,"dropdown--open":this.open})}
224
+ >
225
+ <slot
226
+ name="trigger"
227
+ slot="anchor"
228
+ part="trigger"
229
+ class="dropdown__trigger"
230
+ @click=${this.handleTriggerClick}
231
+ @keydown=${this.handleTriggerKeyDown}
232
+ @keyup=${this.handleTriggerKeyUp}
233
+ @slotchange=${this.handleTriggerSlotChange}
234
+ ></slot>
235
+
236
+ <div aria-hidden=${this.open?"false":"true"} aria-labelledby="dropdown">
237
+ <slot part="panel" class="dropdown__panel"></slot>
238
+ </div>
239
+ </sl-popup>
240
+ `}};ll.styles=[Cr,Po];ll.dependencies={"sl-popup":Kc};Ko([Tr(".dropdown")],ll.prototype,"popup",2);Ko([Tr(".dropdown__trigger")],ll.prototype,"trigger",2);Ko([Tr(".dropdown__panel")],ll.prototype,"panel",2);Ko([Ir({type:Boolean,reflect:true})],ll.prototype,"open",2);Ko([Ir({reflect:true})],ll.prototype,"placement",2);Ko([Ir({type:Boolean,reflect:true})],ll.prototype,"disabled",2);Ko([Ir({attribute:"stay-open-on-select",type:Boolean,reflect:true})],ll.prototype,"stayOpenOnSelect",2);Ko([Ir({attribute:false})],ll.prototype,"containingElement",2);Ko([Ir({type:Number})],ll.prototype,"distance",2);Ko([Ir({type:Number})],ll.prototype,"skidding",2);Ko([Ir({type:Boolean})],ll.prototype,"hoist",2);Ko([Ir({reflect:true})],ll.prototype,"sync",2);Ko([al("open",{waitUntilFirstUpdate:true})],ll.prototype,"handleOpenChange",1);el("dropdown.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}});el("dropdown.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});ll.define("sl-dropdown");var dl=Es`
241
+ :host {
242
+ display: block;
243
+ position: relative;
244
+ background: var(--sl-panel-background-color);
245
+ border: solid var(--sl-panel-border-width) var(--sl-panel-border-color);
246
+ border-radius: var(--sl-border-radius-medium);
247
+ padding: var(--sl-spacing-x-small) 0;
248
+ overflow: auto;
249
+ overscroll-behavior: none;
250
+ }
251
+
252
+ ::slotted(sl-divider) {
253
+ --spacing: var(--sl-spacing-x-small);
254
+ }
255
+ `;var hl=class extends Lr{connectedCallback(){super.connectedCallback();this.setAttribute("role","menu")}handleClick(t){const e=["menuitem","menuitemcheckbox"];const n=t.composedPath();const i=n.find((t=>{var n;return e.includes(((n=t==null?void 0:t.getAttribute)==null?void 0:n.call(t,"role"))||"")}));if(!i)return;const s=n.find((t=>{var e;return((e=t==null?void 0:t.getAttribute)==null?void 0:e.call(t,"role"))==="menu"}));const o=s!==this;if(o)return;const r=i;if(r.type==="checkbox"){r.checked=!r.checked}this.emit("sl-select",{detail:{item:r}})}handleKeyDown(t){if(t.key==="Enter"||t.key===" "){const e=this.getCurrentItem();t.preventDefault();t.stopPropagation();e==null?void 0:e.click()}else if(["ArrowDown","ArrowUp","Home","End"].includes(t.key)){const e=this.getAllItems();const n=this.getCurrentItem();let i=n?e.indexOf(n):0;if(e.length>0){t.preventDefault();t.stopPropagation();if(t.key==="ArrowDown"){i++}else if(t.key==="ArrowUp"){i--}else if(t.key==="Home"){i=0}else if(t.key==="End"){i=e.length-1}if(i<0){i=e.length-1}if(i>e.length-1){i=0}this.setCurrentItem(e[i]);e[i].focus()}}}handleMouseDown(t){const e=t.target;if(this.isMenuItem(e)){this.setCurrentItem(e)}}handleSlotChange(){const t=this.getAllItems();if(t.length>0){this.setCurrentItem(t[0])}}isMenuItem(t){var e;return t.tagName.toLowerCase()==="sl-menu-item"||["menuitem","menuitemcheckbox","menuitemradio"].includes((e=t.getAttribute("role"))!=null?e:"")}getAllItems(){return[...this.defaultSlot.assignedElements({flatten:true})].filter((t=>{if(t.inert||!this.isMenuItem(t)){return false}return true}))}getCurrentItem(){return this.getAllItems().find((t=>t.getAttribute("tabindex")==="0"))}setCurrentItem(t){const e=this.getAllItems();e.forEach((e=>{e.setAttribute("tabindex",e===t?"0":"-1")}))}render(){return mo`
256
+ <slot
257
+ @slotchange=${this.handleSlotChange}
258
+ @click=${this.handleClick}
259
+ @keydown=${this.handleKeyDown}
260
+ @mousedown=${this.handleMouseDown}
261
+ ></slot>
262
+ `}};hl.styles=[Cr,dl];Ko([Tr("slot")],hl.prototype,"defaultSlot",2);hl.define("sl-menu");var ul=Es`
263
+ :host {
264
+ --submenu-offset: -2px;
265
+
266
+ display: block;
267
+ }
268
+
269
+ :host([inert]) {
270
+ display: none;
271
+ }
272
+
273
+ .menu-item {
274
+ position: relative;
275
+ display: flex;
276
+ align-items: stretch;
277
+ font-family: var(--sl-font-sans);
278
+ font-size: var(--sl-font-size-medium);
279
+ font-weight: var(--sl-font-weight-normal);
280
+ line-height: var(--sl-line-height-normal);
281
+ letter-spacing: var(--sl-letter-spacing-normal);
282
+ color: var(--sl-color-neutral-700);
283
+ padding: var(--sl-spacing-2x-small) var(--sl-spacing-2x-small);
284
+ transition: var(--sl-transition-fast) fill;
285
+ user-select: none;
286
+ -webkit-user-select: none;
287
+ white-space: nowrap;
288
+ cursor: pointer;
289
+ }
290
+
291
+ .menu-item.menu-item--disabled {
292
+ outline: none;
293
+ opacity: 0.5;
294
+ cursor: not-allowed;
295
+ }
296
+
297
+ .menu-item.menu-item--loading {
298
+ outline: none;
299
+ cursor: wait;
300
+ }
301
+
302
+ .menu-item.menu-item--loading *:not(sl-spinner) {
303
+ opacity: 0.5;
304
+ }
305
+
306
+ .menu-item--loading sl-spinner {
307
+ --indicator-color: currentColor;
308
+ --track-width: 1px;
309
+ position: absolute;
310
+ font-size: 0.75em;
311
+ top: calc(50% - 0.5em);
312
+ left: 0.65rem;
313
+ opacity: 1;
314
+ }
315
+
316
+ .menu-item .menu-item__label {
317
+ flex: 1 1 auto;
318
+ display: inline-block;
319
+ text-overflow: ellipsis;
320
+ overflow: hidden;
321
+ }
322
+
323
+ .menu-item .menu-item__prefix {
324
+ flex: 0 0 auto;
325
+ display: flex;
326
+ align-items: center;
327
+ }
328
+
329
+ .menu-item .menu-item__prefix::slotted(*) {
330
+ margin-inline-end: var(--sl-spacing-x-small);
331
+ }
332
+
333
+ .menu-item .menu-item__suffix {
334
+ flex: 0 0 auto;
335
+ display: flex;
336
+ align-items: center;
337
+ }
338
+
339
+ .menu-item .menu-item__suffix::slotted(*) {
340
+ margin-inline-start: var(--sl-spacing-x-small);
341
+ }
342
+
343
+ /* Safe triangle */
344
+ .menu-item--submenu-expanded::after {
345
+ content: '';
346
+ position: fixed;
347
+ z-index: calc(var(--sl-z-index-dropdown) - 1);
348
+ top: 0;
349
+ right: 0;
350
+ bottom: 0;
351
+ left: 0;
352
+ clip-path: polygon(
353
+ var(--safe-triangle-cursor-x, 0) var(--safe-triangle-cursor-y, 0),
354
+ var(--safe-triangle-submenu-start-x, 0) var(--safe-triangle-submenu-start-y, 0),
355
+ var(--safe-triangle-submenu-end-x, 0) var(--safe-triangle-submenu-end-y, 0)
356
+ );
357
+ }
358
+
359
+ :host(:focus-visible) {
360
+ outline: none;
361
+ }
362
+
363
+ :host(:hover:not([aria-disabled='true'], :focus-visible)) .menu-item,
364
+ .menu-item--submenu-expanded {
365
+ background-color: var(--sl-color-neutral-100);
366
+ color: var(--sl-color-neutral-1000);
367
+ }
368
+
369
+ :host(:focus-visible) .menu-item {
370
+ outline: none;
371
+ background-color: var(--sl-color-primary-600);
372
+ color: var(--sl-color-neutral-0);
373
+ opacity: 1;
374
+ }
375
+
376
+ .menu-item .menu-item__check,
377
+ .menu-item .menu-item__chevron {
378
+ flex: 0 0 auto;
379
+ display: flex;
380
+ align-items: center;
381
+ justify-content: center;
382
+ width: 1.5em;
383
+ visibility: hidden;
384
+ }
385
+
386
+ .menu-item--checked .menu-item__check,
387
+ .menu-item--has-submenu .menu-item__chevron {
388
+ visibility: visible;
389
+ }
390
+
391
+ /* Add elevation and z-index to submenus */
392
+ sl-popup::part(popup) {
393
+ box-shadow: var(--sl-shadow-large);
394
+ z-index: var(--sl-z-index-dropdown);
395
+ margin-left: var(--submenu-offset);
396
+ }
397
+
398
+ .menu-item--rtl sl-popup::part(popup) {
399
+ margin-left: calc(-1 * var(--submenu-offset));
400
+ }
401
+
402
+ @media (forced-colors: active) {
403
+ :host(:hover:not([aria-disabled='true'])) .menu-item,
404
+ :host(:focus-visible) .menu-item {
405
+ outline: dashed 1px SelectedItem;
406
+ outline-offset: -1px;
407
+ }
408
+ }
409
+
410
+ ::slotted(sl-menu) {
411
+ max-width: var(--auto-size-available-width) !important;
412
+ max-height: var(--auto-size-available-height) !important;
413
+ }
414
+ `
415
+ /**
416
+ * @license
417
+ * Copyright 2020 Google LLC
418
+ * SPDX-License-Identifier: BSD-3-Clause
419
+ */;const fl=(t,e)=>void 0===e?void 0!==t?._$litType$:t?._$litType$===e,pl=t=>void 0===t.strings
420
+ /**
421
+ * @license
422
+ * Copyright 2017 Google LLC
423
+ * SPDX-License-Identifier: BSD-3-Clause
424
+ */;const bl=(t,e)=>{const n=t._$AN;if(void 0===n)return!1;for(const t of n)t._$AO?.(e,!1),bl(t,e);return!0},ml=t=>{let e,n;do{if(void 0===(e=t._$AM))break;n=e._$AN,n.delete(t),t=e}while(0===n?.size)},gl=t=>{for(let e;e=t._$AM;t=e){let n=e._$AN;if(void 0===n)e._$AN=n=new Set;else if(n.has(t))break;n.add(t),yl(e)}};function vl(t){void 0!==this._$AN?(ml(this),this._$AM=t,gl(this)):this._$AM=t}function wl(t,e=!1,n=0){const i=this._$AH,s=this._$AN;if(void 0!==s&&0!==s.size)if(e)if(Array.isArray(i))for(let t=n;t<i.length;t++)bl(i[t],!1),ml(i[t]);else null!=i&&(bl(i,!1),ml(i));else bl(this,t)}const yl=t=>{t.type==Xc.CHILD&&(t._$AP??=wl,t._$AQ??=vl)};class xl extends Hc{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,n){super._$AT(t,e,n),gl(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(bl(this,t),ml(this))}setValue(t){if(pl(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}
425
+ /**
426
+ * @license
427
+ * Copyright 2020 Google LLC
428
+ * SPDX-License-Identifier: BSD-3-Clause
429
+ */const kl=()=>new zl;class zl{}const Sl=new WeakMap,_l=Wc(class extends xl{render(t){return vo}update(t,[e]){const n=e!==this.G;return n&&void 0!==this.G&&this.rt(void 0),(n||this.lt!==this.ct)&&(this.G=e,this.ht=t.options?.host,this.rt(this.ct=t.element)),vo}rt(t){if(this.isConnected||(t=void 0),"function"==typeof this.G){const e=this.ht??globalThis;let n=Sl.get(e);void 0===n&&(n=new WeakMap,Sl.set(e,n)),void 0!==n.get(this.G)&&this.G.call(this.ht,void 0),n.set(this.G,t),void 0!==t&&this.G.call(this.ht,t)}else this.G.value=t}get lt(){return"function"==typeof this.G?Sl.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Cl=class{constructor(t,e){this.popupRef=kl();this.enableSubmenuTimer=-1;this.isConnected=false;this.isPopupConnected=false;this.skidding=0;this.submenuOpenDelay=100;this.handleMouseMove=t=>{this.host.style.setProperty("--safe-triangle-cursor-x",`${t.clientX}px`);this.host.style.setProperty("--safe-triangle-cursor-y",`${t.clientY}px`)};this.handleMouseOver=()=>{if(this.hasSlotController.test("submenu")){this.enableSubmenu()}};this.handleKeyDown=t=>{switch(t.key){case"Escape":case"Tab":this.disableSubmenu();break;case"ArrowLeft":if(t.target!==this.host){t.preventDefault();t.stopPropagation();this.host.focus();this.disableSubmenu()}break;case"ArrowRight":case"Enter":case" ":this.handleSubmenuEntry(t);break}};this.handleClick=t=>{var e;if(t.target===this.host){t.preventDefault();t.stopPropagation()}else if(t.target instanceof Element&&(t.target.tagName==="sl-menu-item"||((e=t.target.role)==null?void 0:e.startsWith("menuitem")))){this.disableSubmenu()}};this.handleFocusOut=t=>{if(t.relatedTarget&&t.relatedTarget instanceof Element&&this.host.contains(t.relatedTarget)){return}this.disableSubmenu()};this.handlePopupMouseover=t=>{t.stopPropagation()};this.handlePopupReposition=()=>{const t=this.host.renderRoot.querySelector("slot[name='submenu']");const e=t==null?void 0:t.assignedElements({flatten:true}).filter((t=>t.localName==="sl-menu"))[0];const n=getComputedStyle(this.host).direction==="rtl";if(!e){return}const{left:i,top:s,width:o,height:r}=e.getBoundingClientRect();this.host.style.setProperty("--safe-triangle-submenu-start-x",`${n?i+o:i}px`);this.host.style.setProperty("--safe-triangle-submenu-start-y",`${s}px`);this.host.style.setProperty("--safe-triangle-submenu-end-x",`${n?i+o:i}px`);this.host.style.setProperty("--safe-triangle-submenu-end-y",`${s+r}px`)};(this.host=t).addController(this);this.hasSlotController=e}hostConnected(){if(this.hasSlotController.test("submenu")&&!this.host.disabled){this.addListeners()}}hostDisconnected(){this.removeListeners()}hostUpdated(){if(this.hasSlotController.test("submenu")&&!this.host.disabled){this.addListeners();this.updateSkidding()}else{this.removeListeners()}}addListeners(){if(!this.isConnected){this.host.addEventListener("mousemove",this.handleMouseMove);this.host.addEventListener("mouseover",this.handleMouseOver);this.host.addEventListener("keydown",this.handleKeyDown);this.host.addEventListener("click",this.handleClick);this.host.addEventListener("focusout",this.handleFocusOut);this.isConnected=true}if(!this.isPopupConnected){if(this.popupRef.value){this.popupRef.value.addEventListener("mouseover",this.handlePopupMouseover);this.popupRef.value.addEventListener("sl-reposition",this.handlePopupReposition);this.isPopupConnected=true}}}removeListeners(){if(this.isConnected){this.host.removeEventListener("mousemove",this.handleMouseMove);this.host.removeEventListener("mouseover",this.handleMouseOver);this.host.removeEventListener("keydown",this.handleKeyDown);this.host.removeEventListener("click",this.handleClick);this.host.removeEventListener("focusout",this.handleFocusOut);this.isConnected=false}if(this.isPopupConnected){if(this.popupRef.value){this.popupRef.value.removeEventListener("mouseover",this.handlePopupMouseover);this.popupRef.value.removeEventListener("sl-reposition",this.handlePopupReposition);this.isPopupConnected=false}}}handleSubmenuEntry(t){const e=this.host.renderRoot.querySelector("slot[name='submenu']");if(!e){console.error("Cannot activate a submenu if no corresponding menuitem can be found.",this);return}let n=null;for(const t of e.assignedElements()){n=t.querySelectorAll("sl-menu-item, [role^='menuitem']");if(n.length!==0){break}}if(!n||n.length===0){return}n[0].setAttribute("tabindex","0");for(let t=1;t!==n.length;++t){n[t].setAttribute("tabindex","-1")}if(this.popupRef.value){t.preventDefault();t.stopPropagation();if(this.popupRef.value.active){if(n[0]instanceof HTMLElement){n[0].focus()}}else{this.enableSubmenu(false);this.host.updateComplete.then((()=>{if(n[0]instanceof HTMLElement){n[0].focus()}}));this.host.requestUpdate()}}}setSubmenuState(t){if(this.popupRef.value){if(this.popupRef.value.active!==t){this.popupRef.value.active=t;this.host.requestUpdate()}}}enableSubmenu(t=true){if(t){window.clearTimeout(this.enableSubmenuTimer);this.enableSubmenuTimer=window.setTimeout((()=>{this.setSubmenuState(true)}),this.submenuOpenDelay)}else{this.setSubmenuState(true)}}disableSubmenu(){window.clearTimeout(this.enableSubmenuTimer);this.setSubmenuState(false)}updateSkidding(){var t;if(!((t=this.host.parentElement)==null?void 0:t.computedStyleMap)){return}const e=this.host.parentElement.computedStyleMap();const n=["padding-top","border-top-width","margin-top"];const i=n.reduce(((t,n)=>{var i;const s=(i=e.get(n))!=null?i:new CSSUnitValue(0,"px");const o=s instanceof CSSUnitValue?s:new CSSUnitValue(0,"px");const r=o.to("px");return t-r.value}),0);this.skidding=i}isExpanded(){return this.popupRef.value?this.popupRef.value.active:false}renderSubmenu(){const t=getComputedStyle(this.host).direction==="rtl";if(!this.isConnected){return mo` <slot name="submenu" hidden></slot> `}return mo`
430
+ <sl-popup
431
+ ${_l(this.popupRef)}
432
+ placement=${t?"left-start":"right-start"}
433
+ anchor="anchor"
434
+ flip
435
+ flip-fallback-strategy="best-fit"
436
+ skidding="${this.skidding}"
437
+ strategy="fixed"
438
+ auto-size="vertical"
439
+ auto-size-padding="10"
440
+ >
441
+ <slot name="submenu"></slot>
442
+ </sl-popup>
443
+ `}};var $l=Es`
444
+ :host {
445
+ --track-width: 2px;
446
+ --track-color: rgb(128 128 128 / 25%);
447
+ --indicator-color: var(--sl-color-primary-600);
448
+ --speed: 2s;
449
+
450
+ display: inline-flex;
451
+ width: 1em;
452
+ height: 1em;
453
+ flex: none;
454
+ }
455
+
456
+ .spinner {
457
+ flex: 1 1 auto;
458
+ height: 100%;
459
+ width: 100%;
460
+ }
461
+
462
+ .spinner__track,
463
+ .spinner__indicator {
464
+ fill: none;
465
+ stroke-width: var(--track-width);
466
+ r: calc(0.5em - var(--track-width) / 2);
467
+ cx: 0.5em;
468
+ cy: 0.5em;
469
+ transform-origin: 50% 50%;
470
+ }
471
+
472
+ .spinner__track {
473
+ stroke: var(--track-color);
474
+ transform-origin: 0% 0%;
475
+ }
476
+
477
+ .spinner__indicator {
478
+ stroke: var(--indicator-color);
479
+ stroke-linecap: round;
480
+ stroke-dasharray: 150% 75%;
481
+ animation: spin var(--speed) linear infinite;
482
+ }
483
+
484
+ @keyframes spin {
485
+ 0% {
486
+ transform: rotate(0deg);
487
+ stroke-dasharray: 0.05em, 3em;
488
+ }
489
+
490
+ 50% {
491
+ transform: rotate(450deg);
492
+ stroke-dasharray: 1.375em, 1.375em;
493
+ }
494
+
495
+ 100% {
496
+ transform: rotate(1080deg);
497
+ stroke-dasharray: 0.05em, 3em;
498
+ }
499
+ }
500
+ `;var Al=class extends Lr{constructor(){super(...arguments);this.localize=new _r(this)}render(){return mo`
501
+ <svg part="base" class="spinner" role="progressbar" aria-label=${this.localize.term("loading")}>
502
+ <circle class="spinner__track"></circle>
503
+ <circle class="spinner__indicator"></circle>
504
+ </svg>
505
+ `}};Al.styles=[Cr,$l];var Il=class{constructor(t,...e){this.slotNames=[];this.handleSlotChange=t=>{const e=t.target;if(this.slotNames.includes("[default]")&&!e.name||e.name&&this.slotNames.includes(e.name)){this.host.requestUpdate()}};(this.host=t).addController(this);this.slotNames=e}hasDefaultSlot(){return[...this.host.childNodes].some((t=>{if(t.nodeType===t.TEXT_NODE&&t.textContent.trim()!==""){return true}if(t.nodeType===t.ELEMENT_NODE){const e=t;const n=e.tagName.toLowerCase();if(n==="sl-visually-hidden"){return false}if(!e.hasAttribute("slot")){return true}}return false}))}hasNamedSlot(t){return this.host.querySelector(`:scope > [slot="${t}"]`)!==null}test(t){return t==="[default]"?this.hasDefaultSlot():this.hasNamedSlot(t)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.handleSlotChange)}};function El(t){if(!t){return""}const e=t.assignedNodes({flatten:true});let n="";[...e].forEach((t=>{if(t.nodeType===Node.TEXT_NODE){n+=t.textContent}}));return n}var Ml="";function Tl(t){Ml=t}function jl(t=""){if(!Ml){const t=[...document.getElementsByTagName("script")];const e=t.find((t=>t.hasAttribute("data-shoelace")));if(e){Tl(e.getAttribute("data-shoelace"))}else{const e=t.find((t=>/shoelace(\.min)?\.js($|\?)/.test(t.src)||/shoelace-autoloader(\.min)?\.js($|\?)/.test(t.src)));let n="";if(e){n=e.getAttribute("src")}Tl(n.split("/").slice(0,-1).join("/"))}}return Ml.replace(/\/$/,"")+(t?`/${t.replace(/^\//,"")}`:``)}var Ll={name:"default",resolver:t=>jl(`assets/icons/${t}.svg`)};var Ol=Ll;var Dl={caret:`\n <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <polyline points="6 9 12 15 18 9"></polyline>\n </svg>\n `,check:`\n <svg part="checked-icon" class="checkbox__icon" viewBox="0 0 16 16">\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">\n <g stroke="currentColor">\n <g transform="translate(3.428571, 3.428571)">\n <path d="M0,5.71428571 L3.42857143,9.14285714"></path>\n <path d="M9.14285714,0 L3.42857143,9.14285714"></path>\n </g>\n </g>\n </g>\n </svg>\n `,"chevron-down":`\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-down" viewBox="0 0 16 16">\n <path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/>\n </svg>\n `,"chevron-left":`\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-left" viewBox="0 0 16 16">\n <path fill-rule="evenodd" d="M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"/>\n </svg>\n `,"chevron-right":`\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-right" viewBox="0 0 16 16">\n <path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"/>\n </svg>\n `,copy:`\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-copy" viewBox="0 0 16 16">\n <path fill-rule="evenodd" d="M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V2Zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H6ZM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1H2Z"/>\n </svg>\n `,eye:`\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye" viewBox="0 0 16 16">\n <path d="M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z"/>\n <path d="M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z"/>\n </svg>\n `,"eye-slash":`\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye-slash" viewBox="0 0 16 16">\n <path d="M13.359 11.238C15.06 9.72 16 8 16 8s-3-5.5-8-5.5a7.028 7.028 0 0 0-2.79.588l.77.771A5.944 5.944 0 0 1 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.134 13.134 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755-.165.165-.337.328-.517.486l.708.709z"/>\n <path d="M11.297 9.176a3.5 3.5 0 0 0-4.474-4.474l.823.823a2.5 2.5 0 0 1 2.829 2.829l.822.822zm-2.943 1.299.822.822a3.5 3.5 0 0 1-4.474-4.474l.823.823a2.5 2.5 0 0 0 2.829 2.829z"/>\n <path d="M3.35 5.47c-.18.16-.353.322-.518.487A13.134 13.134 0 0 0 1.172 8l.195.288c.335.48.83 1.12 1.465 1.755C4.121 11.332 5.881 12.5 8 12.5c.716 0 1.39-.133 2.02-.36l.77.772A7.029 7.029 0 0 1 8 13.5C3 13.5 0 8 0 8s.939-1.721 2.641-3.238l.708.709zm10.296 8.884-12-12 .708-.708 12 12-.708.708z"/>\n </svg>\n `,eyedropper:`\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eyedropper" viewBox="0 0 16 16">\n <path d="M13.354.646a1.207 1.207 0 0 0-1.708 0L8.5 3.793l-.646-.647a.5.5 0 1 0-.708.708L8.293 5l-7.147 7.146A.5.5 0 0 0 1 12.5v1.793l-.854.853a.5.5 0 1 0 .708.707L1.707 15H3.5a.5.5 0 0 0 .354-.146L11 7.707l1.146 1.147a.5.5 0 0 0 .708-.708l-.647-.646 3.147-3.146a1.207 1.207 0 0 0 0-1.708l-2-2zM2 12.707l7-7L10.293 7l-7 7H2v-1.293z"></path>\n </svg>\n `,"grip-vertical":`\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-grip-vertical" viewBox="0 0 16 16">\n <path d="M7 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"></path>\n </svg>\n `,indeterminate:`\n <svg part="indeterminate-icon" class="checkbox__icon" viewBox="0 0 16 16">\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">\n <g stroke="currentColor" stroke-width="2">\n <g transform="translate(2.285714, 6.857143)">\n <path d="M10.2857143,1.14285714 L1.14285714,1.14285714"></path>\n </g>\n </g>\n </g>\n </svg>\n `,"person-fill":`\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-person-fill" viewBox="0 0 16 16">\n <path d="M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/>\n </svg>\n `,"play-fill":`\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-play-fill" viewBox="0 0 16 16">\n <path d="m11.596 8.697-6.363 3.692c-.54.313-1.233-.066-1.233-.697V4.308c0-.63.692-1.01 1.233-.696l6.363 3.692a.802.802 0 0 1 0 1.393z"></path>\n </svg>\n `,"pause-fill":`\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-pause-fill" viewBox="0 0 16 16">\n <path d="M5.5 3.5A1.5 1.5 0 0 1 7 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5zm5 0A1.5 1.5 0 0 1 12 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5z"></path>\n </svg>\n `,radio:`\n <svg part="checked-icon" class="radio__icon" viewBox="0 0 16 16">\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g fill="currentColor">\n <circle cx="8" cy="8" r="3.42857143"></circle>\n </g>\n </g>\n </svg>\n `,"star-fill":`\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-star-fill" viewBox="0 0 16 16">\n <path d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"/>\n </svg>\n `,"x-lg":`\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-lg" viewBox="0 0 16 16">\n <path d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z"/>\n </svg>\n `,"x-circle-fill":`\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-circle-fill" viewBox="0 0 16 16">\n <path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z"></path>\n </svg>\n `};var Pl={name:"system",resolver:t=>{if(t in Dl){return`data:image/svg+xml,${encodeURIComponent(Dl[t])}`}return""}};var Bl=Pl;var Rl=[Ol,Bl];var Ul=[];function Nl(t){Ul.push(t)}function Xl(t){Ul=Ul.filter((e=>e!==t))}function Wl(t){return Rl.find((e=>e.name===t))}var Hl=Es`
506
+ :host {
507
+ display: inline-block;
508
+ width: 1em;
509
+ height: 1em;
510
+ box-sizing: content-box !important;
511
+ }
512
+
513
+ svg {
514
+ display: block;
515
+ height: 100%;
516
+ width: 100%;
517
+ }
518
+ `;var Fl=Symbol();var Yl=Symbol();var Vl;var ql=new Map;var Zl=class extends Lr{constructor(){super(...arguments);this.initialRender=false;this.svg=null;this.label="";this.library="default"}async resolveIcon(t,e){var n;let i;if(e==null?void 0:e.spriteSheet){this.svg=mo`<svg part="svg">
519
+ <use part="use" href="${t}"></use>
520
+ </svg>`;return this.svg}try{i=await fetch(t,{mode:"cors"});if(!i.ok)return i.status===410?Fl:Yl}catch(t){return Yl}try{const t=document.createElement("div");t.innerHTML=await i.text();const e=t.firstElementChild;if(((n=e==null?void 0:e.tagName)==null?void 0:n.toLowerCase())!=="svg")return Fl;if(!Vl)Vl=new DOMParser;const s=Vl.parseFromString(e.outerHTML,"text/html");const o=s.body.querySelector("svg");if(!o)return Fl;o.part.add("svg");return document.adoptNode(o)}catch(t){return Fl}}connectedCallback(){super.connectedCallback();Nl(this)}firstUpdated(){this.initialRender=true;this.setIcon()}disconnectedCallback(){super.disconnectedCallback();Xl(this)}getIconSource(){const t=Wl(this.library);if(this.name&&t){return{url:t.resolver(this.name),fromLibrary:true}}return{url:this.src,fromLibrary:false}}handleLabelChange(){const t=typeof this.label==="string"&&this.label.length>0;if(t){this.setAttribute("role","img");this.setAttribute("aria-label",this.label);this.removeAttribute("aria-hidden")}else{this.removeAttribute("role");this.removeAttribute("aria-label");this.setAttribute("aria-hidden","true")}}async setIcon(){var t;const{url:e,fromLibrary:n}=this.getIconSource();const i=n?Wl(this.library):void 0;if(!e){this.svg=null;return}let s=ql.get(e);if(!s){s=this.resolveIcon(e,i);ql.set(e,s)}if(!this.initialRender){return}const o=await s;if(o===Yl){ql.delete(e)}if(e!==this.getIconSource().url){return}if(fl(o)){this.svg=o;if(i){await this.updateComplete;const t=this.shadowRoot.querySelector("[part='svg']");if(typeof i.mutator==="function"&&t){i.mutator(t)}}return}switch(o){case Yl:case Fl:this.svg=null;this.emit("sl-error");break;default:this.svg=o.cloneNode(true);(t=i==null?void 0:i.mutator)==null?void 0:t.call(i,this.svg);this.emit("sl-load")}}render(){return this.svg}};Zl.styles=[Cr,Hl];Ko([Er()],Zl.prototype,"svg",2);Ko([Ir({reflect:true})],Zl.prototype,"name",2);Ko([Ir()],Zl.prototype,"src",2);Ko([Ir()],Zl.prototype,"label",2);Ko([Ir({reflect:true})],Zl.prototype,"library",2);Ko([al("label")],Zl.prototype,"handleLabelChange",1);Ko([al(["name","src","library"])],Zl.prototype,"setIcon",1);var Kl=class extends Lr{constructor(){super(...arguments);this.localize=new _r(this);this.type="normal";this.checked=false;this.value="";this.loading=false;this.disabled=false;this.hasSlotController=new Il(this,"submenu");this.submenuController=new Cl(this,this.hasSlotController);this.handleHostClick=t=>{if(this.disabled){t.preventDefault();t.stopImmediatePropagation()}};this.handleMouseOver=t=>{this.focus();t.stopPropagation()}}connectedCallback(){super.connectedCallback();this.addEventListener("click",this.handleHostClick);this.addEventListener("mouseover",this.handleMouseOver)}disconnectedCallback(){super.disconnectedCallback();this.removeEventListener("click",this.handleHostClick);this.removeEventListener("mouseover",this.handleMouseOver)}handleDefaultSlotChange(){const t=this.getTextLabel();if(typeof this.cachedTextLabel==="undefined"){this.cachedTextLabel=t;return}if(t!==this.cachedTextLabel){this.cachedTextLabel=t;this.emit("slotchange",{bubbles:true,composed:false,cancelable:false})}}handleCheckedChange(){if(this.checked&&this.type!=="checkbox"){this.checked=false;console.error('The checked attribute can only be used on menu items with type="checkbox"',this);return}if(this.type==="checkbox"){this.setAttribute("aria-checked",this.checked?"true":"false")}else{this.removeAttribute("aria-checked")}}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleTypeChange(){if(this.type==="checkbox"){this.setAttribute("role","menuitemcheckbox");this.setAttribute("aria-checked",this.checked?"true":"false")}else{this.setAttribute("role","menuitem");this.removeAttribute("aria-checked")}}getTextLabel(){return El(this.defaultSlot)}isSubmenu(){return this.hasSlotController.test("submenu")}render(){const t=this.localize.dir()==="rtl";const e=this.submenuController.isExpanded();return mo`
521
+ <div
522
+ id="anchor"
523
+ part="base"
524
+ class=${Fc({"menu-item":true,"menu-item--rtl":t,"menu-item--checked":this.checked,"menu-item--disabled":this.disabled,"menu-item--loading":this.loading,"menu-item--has-submenu":this.isSubmenu(),"menu-item--submenu-expanded":e})}
525
+ ?aria-haspopup="${this.isSubmenu()}"
526
+ ?aria-expanded="${e?true:false}"
527
+ >
528
+ <span part="checked-icon" class="menu-item__check">
529
+ <sl-icon name="check" library="system" aria-hidden="true"></sl-icon>
530
+ </span>
531
+
532
+ <slot name="prefix" part="prefix" class="menu-item__prefix"></slot>
533
+
534
+ <slot part="label" class="menu-item__label" @slotchange=${this.handleDefaultSlotChange}></slot>
535
+
536
+ <slot name="suffix" part="suffix" class="menu-item__suffix"></slot>
537
+
538
+ <span part="submenu-icon" class="menu-item__chevron">
539
+ <sl-icon name=${t?"chevron-left":"chevron-right"} library="system" aria-hidden="true"></sl-icon>
540
+ </span>
541
+
542
+ ${this.submenuController.renderSubmenu()}
543
+ ${this.loading?mo` <sl-spinner part="spinner" exportparts="base:spinner__base"></sl-spinner> `:""}
544
+ </div>
545
+ `}};Kl.styles=[Cr,ul];Kl.dependencies={"sl-icon":Zl,"sl-popup":Kc,"sl-spinner":Al};Ko([Tr("slot:not([name])")],Kl.prototype,"defaultSlot",2);Ko([Tr(".menu-item")],Kl.prototype,"menuItem",2);Ko([Ir()],Kl.prototype,"type",2);Ko([Ir({type:Boolean,reflect:true})],Kl.prototype,"checked",2);Ko([Ir()],Kl.prototype,"value",2);Ko([Ir({type:Boolean,reflect:true})],Kl.prototype,"loading",2);Ko([Ir({type:Boolean,reflect:true})],Kl.prototype,"disabled",2);Ko([al("checked")],Kl.prototype,"handleCheckedChange",1);Ko([al("disabled")],Kl.prototype,"handleDisabledChange",1);Ko([al("type")],Kl.prototype,"handleTypeChange",1);Kl.define("sl-menu-item");var Gl=Es`
546
+ :host {
547
+ display: inline-block;
548
+
549
+ --size: 3rem;
550
+ }
551
+
552
+ .avatar {
553
+ display: inline-flex;
554
+ align-items: center;
555
+ justify-content: center;
556
+ position: relative;
557
+ width: var(--size);
558
+ height: var(--size);
559
+ background-color: var(--sl-color-neutral-400);
560
+ font-family: var(--sl-font-sans);
561
+ font-size: calc(var(--size) * 0.5);
562
+ font-weight: var(--sl-font-weight-normal);
563
+ color: var(--sl-color-neutral-0);
564
+ user-select: none;
565
+ -webkit-user-select: none;
566
+ vertical-align: middle;
567
+ }
568
+
569
+ .avatar--circle,
570
+ .avatar--circle .avatar__image {
571
+ border-radius: var(--sl-border-radius-circle);
572
+ }
573
+
574
+ .avatar--rounded,
575
+ .avatar--rounded .avatar__image {
576
+ border-radius: var(--sl-border-radius-medium);
577
+ }
578
+
579
+ .avatar--square {
580
+ border-radius: 0;
581
+ }
582
+
583
+ .avatar__icon {
584
+ display: flex;
585
+ align-items: center;
586
+ justify-content: center;
587
+ position: absolute;
588
+ top: 0;
589
+ left: 0;
590
+ width: 100%;
591
+ height: 100%;
592
+ }
593
+
594
+ .avatar__initials {
595
+ line-height: 1;
596
+ text-transform: uppercase;
597
+ }
598
+
599
+ .avatar__image {
600
+ position: absolute;
601
+ top: 0;
602
+ left: 0;
603
+ width: 100%;
604
+ height: 100%;
605
+ object-fit: cover;
606
+ overflow: hidden;
607
+ }
608
+ `;var Jl=class extends Lr{constructor(){super(...arguments);this.hasError=false;this.image="";this.label="";this.initials="";this.loading="eager";this.shape="circle"}handleImageChange(){this.hasError=false}handleImageLoadError(){this.hasError=true;this.emit("sl-error")}render(){const t=mo`
609
+ <img
610
+ part="image"
611
+ class="avatar__image"
612
+ src="${this.image}"
613
+ loading="${this.loading}"
614
+ alt=""
615
+ @error="${this.handleImageLoadError}"
616
+ />
617
+ `;let e=mo``;if(this.initials){e=mo`<div part="initials" class="avatar__initials">${this.initials}</div>`}else{e=mo`
618
+ <div part="icon" class="avatar__icon" aria-hidden="true">
619
+ <slot name="icon">
620
+ <sl-icon name="person-fill" library="system"></sl-icon>
621
+ </slot>
622
+ </div>
623
+ `}return mo`
624
+ <div
625
+ part="base"
626
+ class=${Fc({avatar:true,"avatar--circle":this.shape==="circle","avatar--rounded":this.shape==="rounded","avatar--square":this.shape==="square"})}
627
+ role="img"
628
+ aria-label=${this.label}
629
+ >
630
+ ${this.image&&!this.hasError?t:e}
631
+ </div>
632
+ `}};Jl.styles=[Cr,Gl];Jl.dependencies={"sl-icon":Zl};Ko([Er()],Jl.prototype,"hasError",2);Ko([Ir()],Jl.prototype,"image",2);Ko([Ir()],Jl.prototype,"label",2);Ko([Ir()],Jl.prototype,"initials",2);Ko([Ir()],Jl.prototype,"loading",2);Ko([Ir({reflect:true})],Jl.prototype,"shape",2);Ko([al("image")],Jl.prototype,"handleImageChange",1);Jl.define("sl-avatar");var Ql=Es`
633
+ :host {
634
+ --color: var(--sl-panel-border-color);
635
+ --width: var(--sl-panel-border-width);
636
+ --spacing: var(--sl-spacing-medium);
637
+ }
638
+
639
+ :host(:not([vertical])) {
640
+ display: block;
641
+ border-top: solid var(--width) var(--color);
642
+ margin: var(--spacing) 0;
643
+ }
644
+
645
+ :host([vertical]) {
646
+ display: inline-block;
647
+ height: 100%;
648
+ border-left: solid var(--width) var(--color);
649
+ margin: 0 var(--spacing);
650
+ }
651
+ `;var td=class extends Lr{constructor(){super(...arguments);this.vertical=false}connectedCallback(){super.connectedCallback();this.setAttribute("role","separator")}handleVerticalChange(){this.setAttribute("aria-orientation",this.vertical?"vertical":"horizontal")}};td.styles=[Cr,Ql];Ko([Ir({type:Boolean,reflect:true})],td.prototype,"vertical",2);Ko([al("vertical")],td.prototype,"handleVerticalChange",1);td.define("sl-divider");const ed="button {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n margin: 0;\n border: none;\n background: none;\n cursor: pointer;\n border-radius: 50%;\n pos-picture {\n --width: 40px;\n --height: 40px;\n --border-radius: 50%;\n }\n sl-avatar {\n --size: 40px;\n }\n}\n\nsl-dropdown {\n display: block;\n --sl-color-primary-600: var(--pos-primary-color);\n}\n";const nd=ed;const id=class{constructor(t){e(this,t);this.logout=a(this,"pod-os:logout",7);this.link=a(this,"pod-os:link",7)}onSelect(t){const{value:e}=t.detail.item;if(e==="logout"){this.logout.emit()}else if(e==="profile"){this.link.emit(this.webId)}else if(e==="dashboard"){this.link.emit("pod-os:dashboard")}else if(e==="settings"){this.link.emit("pod-os:settings")}}render(){if(!this.webId)return null;return n("pos-resource",{uri:this.webId},n("sl-dropdown",null,n("button",{slot:"trigger"},n("pos-picture",null,n("sl-avatar",null))),n("sl-menu",null,n("sl-menu-item",{value:"dashboard"},"Dashboard"),n("sl-menu-item",{value:"profile"},n("pos-label",null)),n("sl-menu-item",{value:"settings"},"Settings"),n("sl-divider",null),n("sl-menu-item",{value:"logout"},"Logout"))))}};id.style=nd;export{ut as ion_icon,wt as ion_progress_bar,St as ion_ripple_effect,Et as ion_skeleton_text,Wt as ion_toast,qt as pos_add_new_thing,Gn as pos_app,ti as pos_app_browser,si as pos_app_dashboard,ai as pos_app_settings,ci as pos_description,hi as pos_dialog,ui as pos_error_toast,bi as pos_example_resources,vi as pos_getting_started,xi as pos_image,ki as pos_internal_router,zi as pos_label,Ci as pos_login,Ii as pos_login_form,Ti as pos_make_findable,Pi as pos_navigation,Ui as pos_navigation_bar,Wi as pos_new_thing_form,Yi as pos_picture,Zi as pos_resource,Ji as pos_rich_link,fs as pos_router,ms as pos_select_term,ws as pos_setting_offline_cache,zs as pos_type_router,id as pos_user_menu};
652
+ //# sourceMappingURL=p-bf4281d5.entry.js.map